Skip to content

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

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

Danielfa192faf0ead
diff --git a/app/src/boot/onGetConfig.ts b/app/src/boot/onGetConfig.ts
index 5f2f20417b..af0f65b23a 100644
--- a/app/src/boot/onGetConfig.ts
+++ b/app/src/boot/onGetConfig.ts
@@ -297,7 +297,6 @@ ${response.data.replace("%pages", "<span class=totalPages></span>").replace("%pa
pdf: true,
addTitle: ipcData.addTitle,
customTitle: ipcData.customTitle,
- removeAssets: ipcData.removeAssets,
merge: ipcData.mergeSubdocs,
mergeDocHeadingMode: ipcData.mergeDocHeadingMode,
mergeContentHeadingMode: ipcData.mergeContentHeadingMode,
diff --git a/app/src/config/tabs/appTab.ts b/app/src/config/tabs/appTab.ts
index 5ecb934252..aaae17dc35 100644
--- a/app/src/config/tabs/appTab.ts
+++ b/app/src/config/tabs/appTab.ts
@@ -362,7 +362,9 @@ const mountExportData = (root: HTMLElement) => {
root.querySelector("#exportData")?.addEventListener("click", async () => {
/// #if BROWSER
fetchPost("/api/export/exportData", {}, (response) => {
- saveExportFile(response.data.zip);
+ if (response.code === 0) {
+ saveExportFile(response.data.zip);
+ }
});
/// #else
const result = await ipcRenderer.invoke(Constants.SIYUAN_GET, {
diff --git a/app/src/menus/commonMenuItem.ts b/app/src/menus/commonMenuItem.ts
index 7500972066..169501089e 100644
--- a/app/src/menus/commonMenuItem.ts
+++ b/app/src/menus/commonMenuItem.ts
@@ -540,6 +540,9 @@ export const copySubMenu = (ids: string[], accelerator = true, focusElement?: El
fillCSSVar: false,
adjustHeadingLevel: false
});
+ if (response.code !== 0) {
+ return;
+ }
const text = response.data.content;
writeText(text);
if (focusElement) {
diff --git a/app/src/protyle/export/index.ts b/app/src/protyle/export/index.ts
index aba39cad84..1d1f4870c6 100644
--- a/app/src/protyle/export/index.ts
+++ b/app/src/protyle/export/index.ts
@@ -16,6 +16,7 @@ import {getFrontend} from "../../util/functions";
import {isEncryptedBox} from "../../util/pathName";
import {getHostCapabilities} from "../../util/hostCapabilities";
import {getLastExportPath, setLastExportPath} from "./path";
+import type {APICallbackResponse, APIPOSTRoutes} from "../../types/api";
const getPluginStyle = async () => {
const response = await fetchSyncPost("/api/petal/loadPetals", {frontend: getFrontend()});
@@ -42,29 +43,22 @@ export const saveExport = (option: IExportOptions) => {
const startExport = () => {
const msgId = showMessage(window.siyuan.languages.exporting, -1);
// 浏览器环境:先调用 API 生成资源文件,再在前端生成完整的 HTML
- const url = option.type === "htmlmd" ? "/api/export/exportMdHTML" : "/api/export/exportHTML";
- fetchPost(url, {
- id: option.id,
- pdf: false,
- removeAssets: false,
- merge: true,
- savePath: ""
- }, async exportResponse => {
+ const onExportHTML = async (exportResponse: APICallbackResponse<APIPOSTRoutes["/api/export/exportHTML"]["response"]>) => {
const html = await onExport(exportResponse, undefined, "", option);
fetchPost("/api/export/exportBrowserHTML", {
folder: exportResponse.data.folder,
html: html,
name: exportResponse.data.name
}, zipResponse => {
- if (zipResponse.code === -1) {
- hideMessage(msgId);
- showMessage(window.siyuan.languages._kernel[14].replace("%s", zipResponse.msg), 0, "error");
- return;
- }
// 与导出 .sy.zip/markdown.zip/图片一致,统一走 saveExportFile,以便移动端原生 App 调用 JSAndroid.saveExportFile 等接口保存到本地
saveExportFile(zipResponse.data.zip, msgId);
});
- });
+ };
+ if (option.type === "htmlmd") {
+ fetchPost("/api/export/exportMdHTML", {id: option.id, savePath: ""}, onExportHTML);
+ } else {
+ fetchPost("/api/export/exportHTML", {id: option.id, pdf: false, merge: true, savePath: ""}, onExportHTML);
+ }
};
fetchPost("/api/block/getBlockInfo", {id: option.id}, (response) => {
if (response.code === 0 && isEncryptedBox(response.data.box)) {
@@ -964,8 +958,10 @@ ${getIconScript(servePath)}
</script>
${getSnippetJS()}
</body></html>`;
- fetchPost("/api/export/exportTempContent", {content: html, id}, (response) => {
- ipcRenderer.send(Constants.SIYUAN_EXPORT_NEWWINDOW, response.data.url);
+ fetchPost("/api/export/exportTempContent", {content: html, id}, (response) => {
+ if (response.code === 0) {
+ ipcRenderer.send(Constants.SIYUAN_EXPORT_NEWWINDOW, response.data.url);
+ }
});
};
diff --git a/app/src/protyle/export/util.ts b/app/src/protyle/export/util.ts
index 48b6d4ef6a..95fb1f2237 100644
--- a/app/src/protyle/export/util.ts
+++ b/app/src/protyle/export/util.ts
@@ -4,6 +4,7 @@ import * as path from "path";
/// #endif
import {hideMessage, showMessage} from "../../dialog/message";
import {fetchPost} from "../../util/fetch";
+import {ContractFormData} from "../../util/contractFormData";
import {Dialog} from "../../dialog";
import {addScript} from "../util/addScript";
import {isMobile} from "../../util/functions";
@@ -103,9 +104,7 @@ export const exportImage = (id: string, copyOnly = false) => {
exportButton.disabled = disabled;
};
const uploadImageBlob = (blob: Blob) => {
- const formData = new FormData();
- formData.append("file", blob, imageName);
- formData.append("type", "image/png");
+ const formData = new ContractFormData({file: new File([blob], imageName, {type: blob.type}), type: "image/png"});
return new Promise<IWebSocketData>((resolve) => {
fetchPost("/api/export/exportAsFile", formData, (response) => {
resolve(response);
diff --git a/app/src/protyle/gutter/index.ts b/app/src/protyle/gutter/index.ts
index 14c6e0ae9c..9ca4b03bec 100644
--- a/app/src/protyle/gutter/index.ts
+++ b/app/src/protyle/gutter/index.ts
@@ -2391,7 +2391,9 @@ export class Gutter {
click() {
const msgId = showMessage(window.siyuan.languages.exporting, -1);
fetchPost("/api/export/exportCodeBlock", {id}, (response) => {
- saveExportFile(response.data.path, msgId);
+ if (response.code === 0) {
+ saveExportFile(response.data.path, msgId);
+ }
});
}
}] : [])]
@@ -2466,7 +2468,9 @@ export class Gutter {
id: nodeElement.getAttribute("data-av-id"),
blockID: id,
}, response => {
- saveExportFile(response.data.zip);
+ if (response.code === 0) {
+ saveExportFile(response.data.zip);
+ }
});
}
});
diff --git a/app/src/protyle/toolbar/index.ts b/app/src/protyle/toolbar/index.ts
index 9d354ae9ef..0c0ef7f49a 100644
--- a/app/src/protyle/toolbar/index.ts
+++ b/app/src/protyle/toolbar/index.ts
@@ -1,4 +1,5 @@
import {Divider} from "./Divider";
+import {ContractFormData} from "../../util/contractFormData";
import {Font, hasSameTextStyle, setFontStyle} from "./Font";
import {
FONT_FAMILY_EXCLUDED_BLOCK_TYPES,
@@ -1678,9 +1679,7 @@ export class Toolbar {
fetch(renderElement.querySelector("object").getAttribute("data")).then(function (response) {
return response.blob();
}).then(function (blob) {
- const formData = new FormData();
- formData.append("file", blob);
- formData.append("type", "image/svg+xml");
+ const formData = new ContractFormData({file: blob, type: "image/svg+xml"});
fetchPost("/api/export/exportAsFile", formData, (response) => {
saveExportFile(response.data.file, msgId);
});
@@ -1692,9 +1691,7 @@ export class Toolbar {
(renderElement as HTMLHtmlElement).style.display = "inline-block";
window.htmlToImage.toBlob(renderElement).then(blob => {
(renderElement as HTMLHtmlElement).style.display = "";
- const formData = new FormData();
- formData.append("file", blob);
- formData.append("type", "image/png");
+ const formData = new ContractFormData({file: blob, type: "image/png"});
fetchPost("/api/export/exportAsFile", formData, (response) => {
saveExportFile(response.data.file, msgId);
});
diff --git a/app/src/types/api/index.d.ts b/app/src/types/api/index.d.ts
index 287b5c2f8f..3251fc3f82 100644
--- a/app/src/types/api/index.d.ts
+++ b/app/src/types/api/index.d.ts
@@ -230,6 +230,8 @@ export type ContentWordCountRequestInput = { "content": string; "reqId"?: JSONVa
export type ContinueImportSYRequestInput = { "notebook": string; "token": string; };
+export type CopyExportFileRequestInput = { "dest": string; "srcPath": string; };
+
export type CopyFileRequestInput = { "dest": string; "src": string; };
export type CopyFilesRequestInput = { "destDir": string; "srcs": Array<string>; };
@@ -320,8 +322,64 @@ export type EncryptedNotebookStatus = { "id": string; "name": string; "state": "
export type EncryptedNotebookStatusData = { "boxes": Array<EncryptedNotebookStatus>; "count": number; "enabled": boolean; "hasHistoryDependency": boolean; "migrationBoxes": Array<string> | null; "migrationPending": boolean; "state": "Disabled" | "Enabled" | "RecoveryRequired"; };
+export type ExportAsFileRequestInput = { "file": Blob; "type": string; };
+
+export type ExportAttributeViewRequestInput = { "blockID": string; "id": string; };
+
+export type ExportBrowserHTMLRequestInput = { "folder": string; "html": string; "name": string; };
+
+export type ExportDocumentsMarkdownRequestInput = { "addTitle"?: boolean | null; "blockEmbedMode"?: number | null; "blockRefMode"?: number | null; "blockRefTextLeft"?: string | null; "blockRefTextRight"?: string | null; "fileAnnotationRefMode"?: number | null; "ids": Array<string>; "includeRelatedDocs"?: boolean | null; "includeSubDocs"?: boolean | null; "inlineMemo"?: boolean | null; "markdownYFM"?: boolean | null; "removeAssetsID"?: boolean | null; "tagCloseMarker"?: string | null; "tagOpenMarker"?: string | null; };
+
+export type ExportDocxRequestInput = { "id": string; "merge"?: boolean | null; "mergeContentHeadingMode"?: string | null; "mergeDocHeadingMode"?: string | null; "removeAssets": boolean; "savePath": string; };
+
+export type ExportFileData = { "file": string; };
+
+export type ExportFolderRequestInput = { "folder": string; };
+
+export type ExportHTMLData = { "content": string; "folder"?: string; "id": string; "name": string; };
+
+export type ExportHTMLRequestInput = { "addTitle"?: boolean | null; "customTitle"?: string | null; "id": string; "keepFold"?: boolean | null; "merge"?: boolean | null; "mergeContentHeadingMode"?: string | null; "mergeDocHeadingMode"?: string | null; "pdf": boolean; "savePath"?: string | null; };
+
+export type ExportIDRequestInput = { "id": string; };
+
+export type ExportIDsRequestInput = { "ids": Array<string>; };
+
+export type ExportMarkdownContentData = { "content": string; "hPath": string; };
+
+export type ExportMarkdownContentRequestInput = { "addTitle"?: boolean | null; "adjustHeadingLevel"?: boolean | null; "embedMode"?: number | null; "fillCSSVar"?: boolean | null; "id": string; "imgTag"?: boolean | null; "refMode"?: number | null; "yfm"?: boolean | null; };
+
+export type ExportMarkdownHTMLRequestInput = { "id": string; "savePath"?: string | null; };
+
+export type ExportMarkdownRequestInput = { "addTitle"?: boolean | null; "blockEmbedMode"?: number | null; "blockRefMode"?: number | null; "blockRefTextLeft"?: string | null; "blockRefTextRight"?: string | null; "fileAnnotationRefMode"?: number | null; "id": string; "includeRelatedDocs"?: boolean | null; "includeSubDocs"?: boolean | null; "inlineMemo"?: boolean | null; "markdownYFM"?: boolean | null; "removeAssetsID"?: boolean | null; "tagCloseMarker"?: string | null; "tagOpenMarker"?: string | null; };
+
+export type ExportNameData = { "name": string; };
+
+export type ExportNamedZipData = { "name": string; "zip": string; };
+
+export type ExportNotebookMarkdownRequestInput = { "addTitle"?: boolean | null; "blockEmbedMode"?: number | null; "blockRefMode"?: number | null; "blockRefTextLeft"?: string | null; "blockRefTextRight"?: string | null; "fileAnnotationRefMode"?: number | null; "includeRelatedDocs"?: boolean | null; "includeSubDocs"?: boolean | null; "inlineMemo"?: boolean | null; "markdownYFM"?: boolean | null; "notebook": string; "removeAssetsID"?: boolean | null; "tagCloseMarker"?: string | null; "tagOpenMarker"?: string | null; };
+
+export type ExportNotebooksMarkdownRequestInput = { "addTitle"?: boolean | null; "blockEmbedMode"?: number | null; "blockRefMode"?: number | null; "blockRefTextLeft"?: string | null; "blockRefTextRight"?: string | null; "fileAnnotationRefMode"?: number | null; "includeRelatedDocs"?: boolean | null; "includeSubDocs"?: boolean | null; "inlineMemo"?: boolean | null; "markdownYFM"?: boolean | null; "notebooks"?: Array<string> | null; "removeAssetsID"?: boolean | null; "tagCloseMarker"?: string | null; "tagOpenMarker"?: string | null; };
+
+export type ExportNotebooksRequestInput = { "notebooks"?: Array<string> | null; };
+
+export type ExportPathData = { "path": string; };
+
+export type ExportPreviewData = { "fillCSSVar": boolean; "html": string; };
+
+export type ExportPreviewHTMLData = { "attrs": Record<string, string> | null; "content": string; "id": string; "name": string; "type": string; };
+
+export type ExportPreviewHTMLRequestInput = { "addTitle"?: boolean | null; "customTitle"?: string | null; "id": string; "image"?: boolean | null; "keepFold"?: boolean | null; "merge"?: boolean | null; "mergeContentHeadingMode"?: string | null; "mergeDocHeadingMode"?: string | null; };
+
export type ExportRepoFileRequestInput = { "id": string; };
+export type ExportResourcesRequestInput = { "name"?: string | null; "paths"?: Array<string> | null; };
+
+export type ExportTempContentRequestInput = { "content": string; "id"?: string | null; };
+
+export type ExportURLData = { "url": string; };
+
+export type ExportZipData = { "zip": string; };
+
export type FileAnnotationRefRequestInput = { "id": string; "notebook"?: string | null; };
export type FilePathData = { "path": string; };
@@ -628,6 +686,8 @@ export type PrepareRichTextRequestInput = { "assets": Array<RichClipboardAssetIn
export type PrependBlockRequestInput = { "data": string; "dataType": string; "parentID": string; };
+export type ProcessPDFRequestInput = { "id": string; "merge"?: boolean | null; "mergeContentHeadingMode"?: string | null; "mergeDocHeadingMode"?: string | null; "path": string; "removeAssets": boolean; "watermark": boolean; };
+
export type PublishedBlockInfo = { "publishAccessRequired": true; "rootID": string; "rootIcon": string; "rootTitle": string; "rootTitleEmpty": boolean; };
export type PutFileRequestInput = { "app"?: string; "file"?: Blob; "isDir"?: string; "modTime"?: string; "path"?: string; };
@@ -1176,40 +1236,6 @@ export type APILegacyPOSTPath =
"/api/av/setDatabaseBlockView" |
"/api/av/sortAttributeViewKey" |
"/api/av/sortAttributeViewViewKey" |
- "/api/export/copyExportFile" |
- "/api/export/export2Liandi" |
- "/api/export/exportAsFile" |
- "/api/export/exportAsciiDoc" |
- "/api/export/exportAttributeView" |
- "/api/export/exportBrowserHTML" |
- "/api/export/exportCodeBlock" |
- "/api/export/exportData" |
- "/api/export/exportDataInFolder" |
- "/api/export/exportDocx" |
- "/api/export/exportEPUB" |
- "/api/export/exportHTML" |
- "/api/export/exportMd" |
- "/api/export/exportMdContent" |
- "/api/export/exportMdHTML" |
- "/api/export/exportMds" |
- "/api/export/exportMediaWiki" |
- "/api/export/exportNotebookMd" |
- "/api/export/exportNotebookSY" |
- "/api/export/exportNotebooksMd" |
- "/api/export/exportNotebooksSY" |
- "/api/export/exportODT" |
- "/api/export/exportOPML" |
- "/api/export/exportOrgMode" |
- "/api/export/exportPreviewHTML" |
- "/api/export/exportRTF" |
- "/api/export/exportReStructuredText" |
- "/api/export/exportResources" |
- "/api/export/exportSY" |
- "/api/export/exportSYs" |
- "/api/export/exportTempContent" |
- "/api/export/exportTextile" |
- "/api/export/preview" |
- "/api/export/processPDF" |
"/api/extension/copy" |
"/api/filetree/authFilePublishAccess" |
"/api/filetree/changeSort" |
@@ -1929,6 +1955,176 @@ export interface APIPOSTRoutes {
response: { "code": 0; "data": PandocData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
};
+ "/api/export/copyExportFile": {
+ request: CopyExportFileRequestInput;
+ response: { "code": 0; "data": null; "msg": string; } | { "code": -1 | -2; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "json";
+ };
+ "/api/export/export2Liandi": {
+ request: ExportIDRequestInput;
+ response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "json";
+ };
+ "/api/export/exportAsFile": {
+ request: ExportAsFileRequestInput;
+ response: { "code": 0; "data": ExportFileData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "multipart";
+ };
+ "/api/export/exportAsciiDoc": {
+ request: ExportIDRequestInput;
+ response: { "code": 0; "data": ExportNamedZipData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "json";
+ };
+ "/api/export/exportAttributeView": {
+ request: ExportAttributeViewRequestInput;
+ response: { "code": 0; "data": ExportZipData; "msg": string; } | { "code": -1 | 1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "json";
+ };
+ "/api/export/exportBrowserHTML": {
+ request: ExportBrowserHTMLRequestInput;
+ response: { "code": 0; "data": ExportZipData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "json";
+ };
+ "/api/export/exportCodeBlock": {
+ request: ExportIDRequestInput;
+ response: { "code": 0; "data": ExportPathData; "msg": string; } | { "code": -1 | 1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "json";
+ };
+ "/api/export/exportData": {
+ request: EmptyRequestInput;
+ response: { "code": 0; "data": ExportZipData; "msg": string; } | { "code": -1 | 1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "none";
+ };
+ "/api/export/exportDataInFolder": {
+ request: ExportFolderRequestInput;
+ response: { "code": 0; "data": ExportNameData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "json";
+ };
+ "/api/export/exportDocx": {
+ request: ExportDocxRequestInput;
+ response: { "code": 0; "data": ExportPathData; "msg": string; } | { "code": -1 | 1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "json";
+ };
+ "/api/export/exportEPUB": {
+ request: ExportIDRequestInput;
+ response: { "code": 0; "data": ExportNamedZipData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "json";
+ };
+ "/api/export/exportHTML": {
+ request: ExportHTMLRequestInput;
+ response: { "code": 0; "data": ExportHTMLData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "json";
+ };
+ "/api/export/exportMd": {
+ request: ExportMarkdownRequestInput;
+ response: { "code": 0; "data": ExportNamedZipData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "json";
+ };
+ "/api/export/exportMdContent": {
+ request: ExportMarkdownContentRequestInput;
+ response: { "code": 0; "data": ExportMarkdownContentData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "json";
+ };
+ "/api/export/exportMdHTML": {
+ request: ExportMarkdownHTMLRequestInput;
+ response: { "code": 0; "data": ExportHTMLData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "json";
+ };
+ "/api/export/exportMds": {
+ request: ExportDocumentsMarkdownRequestInput;
+ response: { "code": 0; "data": ExportNamedZipData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "json";
+ };
+ "/api/export/exportMediaWiki": {
+ request: ExportIDRequestInput;
+ response: { "code": 0; "data": ExportNamedZipData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "json";
+ };
+ "/api/export/exportNotebookMd": {
+ request: ExportNotebookMarkdownRequestInput;
+ response: { "code": 0; "data": ExportNamedZipData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "json";
+ };
+ "/api/export/exportNotebookSY": {
+ request: ExportIDRequestInput;
+ response: { "code": 0; "data": ExportZipData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "json";
+ };
+ "/api/export/exportNotebooksMd": {
+ request: ExportNotebooksMarkdownRequestInput;
+ response: { "code": 0; "data": ExportNamedZipData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "json";
+ };
+ "/api/export/exportNotebooksSY": {
+ request: ExportNotebooksRequestInput;
+ response: { "code": 0; "data": ExportZipData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "json";
+ };
+ "/api/export/exportODT": {
+ request: ExportIDRequestInput;
+ response: { "code": 0; "data": ExportNamedZipData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "json";
+ };
+ "/api/export/exportOPML": {
+ request: ExportIDRequestInput;
+ response: { "code": 0; "data": ExportNamedZipData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "json";
+ };
+ "/api/export/exportOrgMode": {
+ request: ExportIDRequestInput;
+ response: { "code": 0; "data": ExportNamedZipData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "json";
+ };
+ "/api/export/exportPreviewHTML": {
+ request: ExportPreviewHTMLRequestInput;
+ response: { "code": 0; "data": ExportPreviewHTMLData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "json";
+ };
+ "/api/export/exportRTF": {
+ request: ExportIDRequestInput;
+ response: { "code": 0; "data": ExportNamedZipData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "json";
+ };
+ "/api/export/exportReStructuredText": {
+ request: ExportIDRequestInput;
+ response: { "code": 0; "data": ExportNamedZipData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "json";
+ };
+ "/api/export/exportResources": {
+ request: ExportResourcesRequestInput;
+ response: { "code": 0; "data": ExportPathData; "msg": string; } | { "code": -1 | 1; "data": { "closeTimeout": number; } | null | string; "msg": string; };
+ body: "json";
+ };
+ "/api/export/exportSY": {
+ request: ExportIDRequestInput;
+ response: { "code": 0; "data": ExportZipData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "json";
+ };
+ "/api/export/exportSYs": {
+ request: ExportIDsRequestInput;
+ response: { "code": 0; "data": ExportZipData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "json";
+ };
+ "/api/export/exportTempContent": {
+ request: ExportTempContentRequestInput;
+ response: { "code": 0; "data": ExportURLData; "msg": string; } | { "code": -1 | 1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "json";
+ };
+ "/api/export/exportTextile": {
+ request: ExportIDRequestInput;
+ response: { "code": 0; "data": ExportNamedZipData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "json";
+ };
+ "/api/export/preview": {
+ request: ExportIDRequestInput;
+ response: { "code": 0; "data": ExportPreviewData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "json";
+ };
+ "/api/export/processPDF": {
+ request: ProcessPDFRequestInput;
+ response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "json";
+ };
"/api/file/copyFile": {
request: CopyFileRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1 | -2; "data": { "closeTimeout": number; } | null; "msg": string; };
diff --git a/app/tests/api-contract.types.ts b/app/tests/api-contract.types.ts
index 5538bcb090..ce719d1849 100644
--- a/app/tests/api-contract.types.ts
+++ b/app/tests/api-contract.types.ts
@@ -6,6 +6,30 @@ declare const fetchGet: FetchGet;
declare const fetchSyncPost: FetchSyncPost;
declare const dynamicURL: string;
+fetchPost("/api/export/exportHTML", {id: "document", pdf: false}, response => {
+ const folder: string | undefined = response.data.folder;
+ void folder;
+});
+fetchPost("/api/export/exportMd", {id: "document", blockRefMode: 1.5, addTitle: null}, response => {
+ const zip: string = response.data.zip;
+ void zip;
+});
+fetchPost("/api/export/exportCodeBlock", {id: "block"}, response => {
+ if (response.code === 0) {
+ const path: string = response.data.path;
+ void path;
+ }
+});
+fetchPost("/api/export/exportAsFile", new ContractFormData({file: new Blob(), type: "text/plain"}));
+// @ts-expect-error HTML 导出必须显式指定 PDF 模式。
+fetchPost("/api/export/exportHTML", {id: "document"});
+// @ts-expect-error Markdown 导出模式必须为数字。
+fetchPost("/api/export/exportMd", {id: "document", blockRefMode: "1"});
+// @ts-expect-error 文件上传必须包含 MIME 类型。
+fetchPost("/api/export/exportAsFile", new ContractFormData({file: new Blob()}));
+// @ts-expect-error 导出请求不能包含拼错的参数。
+fetchPost("/api/export/exportHTML", {id: "document", pdf: false, savepath: ""});
+
fetchPost("/api/repo/getRepoSnapshots", {page: 1}, response => {
const snapshots = response.data.snapshots;
void snapshots;
diff --git a/docs/API-CONTRACTS.md b/docs/API-CONTRACTS.md
index 8bd0bca8d1..1b7d6b5a88 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
+Export contracts retain Markdown option defaults and numeric truncation, notebook-list filtering, ignored title-option types, optional HTML folders, and file-upload field selection. Error responses preserve message durations and empty-string resource payloads. Publish filtering, encrypted-notebook admission, response-held leases, and temporary export cleanup remain in the existing lifecycle.
+
Repository contracts retain key encoding, snapshot metadata, numeric truncation and retention defaults, cloud pagination, and file access leases. Repository-file reads retain their media type and bytes; empty files retain the success envelope. Both file success and JSON failure use HTTP 200. For this explicitly declared shared status, `ValidateHTTPResponse` accepts raw file bytes and `ValidateErrorResponse` separately verifies known error payloads. No key material, encrypted file format, or snapshot recovery behavior changes.
Flashcard contracts retain numeric truncation, pagination defaults, optional reviewed-card lists, nullable block results, and non-null deck lists. Notebook and document admission still occurs before deferred pagination errors. Card and deck mutations keep their model-layer validation and persistence behavior; encrypted notebook restrictions remain unchanged.
diff --git a/docs/API-CONTRACTS.zh-CN.md b/docs/API-CONTRACTS.zh-CN.md
index fdae27db63..7480fdac5f 100644
--- a/docs/API-CONTRACTS.zh-CN.md
+++ b/docs/API-CONTRACTS.zh-CN.md
@@ -24,6 +24,8 @@
## 兼容要求
+导出契约保留 Markdown 选项默认值与数字截断、笔记本列表过滤、标题选项类型忽略规则、可省略的 HTML 目录字段及上传字段选择规则。错误响应保留消息显示时长与资源错误中的空字符串载荷。发布过滤、加密笔记本准入、覆盖响应阶段的租约及临时导出清理保持既有生命周期。
+
仓库契约保留密钥编码、快照元数据、数值截断与保留期限默认值、云端分页及文件访问租约。仓库文件读取保留媒体类型和原始字节,空文件保留成功信封。文件成功与 JSON 失败均返回 HTTP 200。对于显式声明的共用状态,`ValidateHTTPResponse` 接受文件原始字节,`ValidateErrorResponse` 单独验证已知错误载荷。密钥材料、加密文件格式及快照恢复行为保持不变。
闪卡契约保留数值截断、分页默认值、可选的已复习卡片列表、块结果的空值以及非空牌组列表。笔记本和文档准入仍先于延迟的分页错误。卡片与牌组修改保留模型层校验及持久化行为,加密笔记本限制保持不变。
diff --git a/kernel/api/contract_export_lease_test.go b/kernel/api/contract_export_lease_test.go
new file mode 100644
index 0000000000..c4b28632c2
--- /dev/null
+++ b/kernel/api/contract_export_lease_test.go
@@ -0,0 +1,118 @@
+//go:build (sqlcipher || libsqlcipher) && cgo
+
+package api
+
+import (
+ "context"
+ "encoding/json"
+ "net/http/httptest"
+ "net/url"
+ "os"
+ "os/exec"
+ "path/filepath"
+ "strings"
+ "sync"
+ "testing"
+ "time"
+
+ "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/filesys"
+ "github.com/siyuan-note/siyuan/kernel/model"
+ "github.com/siyuan-note/siyuan/kernel/sql"
+ "github.com/siyuan-note/siyuan/kernel/treenode"
+ "github.com/siyuan-note/siyuan/kernel/util"
+)
+
+func TestAPIContractExportNotebookResponseLease(t *testing.T) {
+ if os.Getenv("SIYUAN_TEST_EXPORT_RESPONSE_LEASE") != "1" {
+ ctx, cancel := context.WithTimeout(context.Background(), 45*time.Second)
+ defer cancel()
+ command := exec.CommandContext(ctx, os.Args[0], "-test.run=^TestAPIContractExportNotebookResponseLease$", "-test.v")
+ command.Env = append(os.Environ(), "SIYUAN_TEST_EXPORT_RESPONSE_LEASE=1")
+ if output, err := command.CombinedOutput(); err != nil {
+ t.Fatalf("export lease subprocess failed: %v\n%s", err, output)
+ }
+ return
+ }
+ root := t.TempDir()
+ util.ServerURL = &url.URL{Scheme: "http"}
+ util.DataDir, util.TempDir, util.ConfDir, util.HistoryDir = filepath.Join(root, "data"), filepath.Join(root, "temp"), filepath.Join(root, "conf"), filepath.Join(root, "history")
+ util.QueueDir = filepath.Join(util.TempDir, "queue")
+ util.DBPath, util.HistoryDBPath, util.AssetContentDBPath, util.BlockTreeDBPath = filepath.Join(util.TempDir, util.DBName), filepath.Join(util.TempDir, "history.db"), filepath.Join(util.TempDir, "asset_content.db"), filepath.Join(util.TempDir, "blocktree.db")
+ for _, dir := range []string{util.DataDir, util.TempDir, util.ConfDir, util.HistoryDir} {
+ if err := os.MkdirAll(dir, 0755); err != nil {
+ t.Fatal(err)
+ }
+ }
+ model.Conf = model.NewAppConf()
+ model.Conf.NotebookCrypto, model.Conf.Sync, model.Conf.FileTree = conf.NewNotebookCrypto(), conf.NewSync(), conf.NewFileTree()
+ model.Conf.Editor, model.Conf.Export, model.Conf.Search = conf.NewEditor(), conf.NewExport(), conf.NewSearch()
+ *model.Conf.FileTree.BoxDocEnabled = true
+ sql.InitDatabase(true)
+ sql.InitHistoryDatabase(true)
+ sql.InitAssetContentDatabase(true)
+ defer sql.CloseDatabase()
+ if err := model.EnableEncryptedNotebook("export-password"); err != nil {
+ t.Fatal(err)
+ }
+ boxID, err := model.CreateEncryptedBox("Export lease", "export-password")
+ if err != nil {
+ t.Fatal(err)
+ }
+ defer model.LockBox(boxID)
+ tree, err := filesys.LoadTree(boxID, "/"+boxID+".sy", util.NewLute())
+ if err != nil {
+ t.Fatal(err)
+ }
+ treenode.UpsertBlockTree(tree)
+ engine := gin.New()
+ engine.Use(boxLeaseMiddleware)
+ engine.POST("/api/export/exportTempContent", exportTempContent)
+ writer := &blockedBlockResponseWriter{ResponseRecorder: httptest.NewRecorder(), ready: make(chan []byte, 1), proceed: make(chan struct{})}
+ var release sync.Once
+ defer release.Do(func() { close(writer.proceed) })
+ request := httptest.NewRequest("POST", "/api/export/exportTempContent", strings.NewReader(`{"id":"`+boxID+`","content":"EXPORT-SECRET"}`))
+ done := make(chan struct{})
+ go func() { engine.ServeHTTP(writer, request); close(done) }()
+ var body []byte
+ select {
+ case body = <-writer.ready:
+ case <-time.After(5 * time.Second):
+ t.Fatal("export response never reached writer")
+ }
+ var response struct {
+ Code int `json:"code"`
+ Data apicontract.ExportURLData `json:"data"`
+ }
+ if err = json.Unmarshal(body, &response); err != nil || response.Code != 0 || !strings.Contains(response.Data.URL, boxID+"/temp/") {
+ t.Fatalf("managed export was not produced: %s %v", body, err)
+ }
+ locked := make(chan struct{})
+ go func() { model.LockBox(boxID); close(locked) }()
+ early := false
+ select {
+ case <-locked:
+ early = true
+ case <-time.After(300 * time.Millisecond):
+ }
+ release.Do(func() { close(writer.proceed) })
+ <-done
+ select {
+ case <-locked:
+ case <-time.After(5 * time.Second):
+ t.Fatal("locking did not complete after response")
+ }
+ if early {
+ t.Fatal("encrypted export lease ended before response serialization")
+ }
+ requireAPIContract(t, "POST", "/api/export/exportTempContent", writer.ResponseRecorder)
+ entries, err := os.ReadDir(filepath.Join(util.TempDir, "export", boxID, "temp"))
+ if err != nil && !os.IsNotExist(err) {
+ t.Fatal(err)
+ }
+ if len(entries) != 0 {
+ t.Fatal("locking retained plaintext export artifacts")
+ }
+}
diff --git a/kernel/api/contract_export_test.go b/kernel/api/contract_export_test.go
new file mode 100644
index 0000000000..248013ee92
--- /dev/null
+++ b/kernel/api/contract_export_test.go
@@ -0,0 +1,236 @@
+package api
+
+import (
+ archivezip "archive/zip"
+ "bytes"
+ "encoding/json"
+ "io"
+ "mime/multipart"
+ "net/http"
+ "net/http/httptest"
+ "net/url"
+ "os"
+ "path/filepath"
+ "reflect"
+ "strings"
+ "testing"
+
+ "github.com/gin-gonic/gin"
+ "github.com/siyuan-note/siyuan/kernel/apicontract"
+ "github.com/siyuan-note/siyuan/kernel/conf"
+ "github.com/siyuan-note/siyuan/kernel/model"
+ "github.com/siyuan-note/siyuan/kernel/util"
+)
+
+func exportContractRequest(t *testing.T, name string, handler gin.HandlerFunc, body string) (code int, message string, data json.RawMessage) {
+ t.Helper()
+ engine := gin.New()
+ path := "/api/export/" + name
+ engine.Use(boxLeaseMiddleware)
+ engine.POST(path, handler)
+ recorder := httptest.NewRecorder()
+ engine.ServeHTTP(recorder, httptest.NewRequest("POST", path, strings.NewReader(body)))
+ requireAPIContract(t, "POST", path, recorder)
+ var response struct {
+ Code int `json:"code"`
+ Msg string `json:"msg"`
+ Data json.RawMessage `json:"data"`
+ }
+ if err := json.Unmarshal(recorder.Body.Bytes(), &response); err != nil {
+ t.Fatal(err)
+ }
+ return response.Code, response.Msg, response.Data
+}
+
+func TestAPIContractExportErrorVariants(t *testing.T) {
+ for _, body := range []string{`{}`, `{"paths":null}`} {
+ code, msg, data := exportContractRequest(t, "exportResources", exportResources, body)
+ if code != 1 || msg != "[paths] is required" || string(data) != `""` {
+ t.Fatalf("resources prompt changed: %d %s %s", code, msg, data)
+ }
+ }
+ for _, entry := range []struct {
+ name string
+ handler gin.HandlerFunc
+ body string
+ code int
+ msg string
+ }{
+ {"exportCodeBlock", exportCodeBlock, `{}`, -1, "Field [id] is required"},
+ {"exportAttributeView", exportAttributeView, `{"id":"av","blockID":false}`, -1, "Field [blockID] should be of type [String]"},
+ {"exportDocx", exportDocx, `{"id":"id","savePath":"path"}`, -1, "Field [removeAssets] is required"},
+ {"exportHTML", exportHTML, `{"id":"id"}`, -1, "Field [pdf] is required"},
+ {"processPDF", processPDF, `{"id":"id","path":" "}`, -1, "Field [path] must not be empty"},
+ {"copyExportFile", copyExportFile, `{"srcPath":"/export/file","dest":"relative"}`, -1, "dest must be an absolute path"},
+ {"exportNotebooksSY", exportNotebooksSY, `{"notebooks":false}`, -1, ""},
+ {"exportNotebooksMd", exportNotebooksMd, `{"notebooks":[],"addTitle":false}`, -1, ""},
+ } {
+ code, msg, data := exportContractRequest(t, entry.name, entry.handler, entry.body)
+ if code != entry.code || msg != entry.msg || string(data) != "null" {
+ t.Fatalf("%s validation changed: %d %s %s", entry.name, code, msg, data)
+ }
+ }
+ previous := util.TempDir
+ util.TempDir = filepath.Join(t.TempDir(), "file")
+ t.Cleanup(func() { util.TempDir = previous })
+ if err := os.WriteFile(util.TempDir, []byte("occupied"), 0644); err != nil {
+ t.Fatal(err)
+ }
+ code, _, data := exportContractRequest(t, "exportTempContent", exportTempContent, `{"content":""}`)
+ if code != 1 || string(data) != `{"closeTimeout":7000}` {
+ t.Fatalf("export timeout prompt changed: %d %s", code, data)
+ }
+}
+
+func TestAPIContractExportLockedNotebook(t *testing.T) {
+ _, boxID := setupArchiveWorkspace(t)
+ previous := model.Conf
+ model.Conf = model.NewAppConf()
+ t.Cleanup(func() { model.Conf = previous })
+ for _, entry := range []struct {
+ name string
+ handler gin.HandlerFunc
+ body string
+ language int
+ }{
+ {"exportNotebookMd", exportNotebookMd, `{"notebook":"` + boxID + `","blockRefMode":false}`, 314},
+ {"exportNotebookSY", exportNotebookSY, `{"id":"` + boxID + `"}`, 314},
+ {"exportNotebooksMd", exportNotebooksMd, `{"notebooks":["` + boxID + `"],"blockRefMode":false}`, 395},
+ {"exportNotebooksSY", exportNotebooksSY, `{"notebooks":["` + boxID + `"]}`, 395},
+ {"exportBrowserHTML", exportBrowserHTML, `{"folder":"` + boxID + `/html-test","html":"<p>secret</p>","name":"secret"}`, 314},
+ } {
+ code, msg, data := exportContractRequest(t, entry.name, entry.handler, entry.body)
+ if code != -1 || msg != model.Conf.Language(entry.language) || string(data) != "null" {
+ t.Fatalf("%s encrypted admission changed: %d %s %s", entry.name, code, msg, data)
+ }
+ }
+}
+
+func TestAPIContractExportMarkdownOptions(t *testing.T) {
+ input := `{"id":"id","addTitle":false,"inlineMemo":true,"blockRefMode":2.9,"blockEmbedMode":-2.9,"fileAnnotationRefMode":3.9,"blockRefTextLeft":" left ","blockRefTextRight":"right","tagOpenMarker":"#","tagCloseMarker":"#","includeSubDocs":false,"includeRelatedDocs":true,"markdownYFM":false,"removeAssetsID":true}`
+ request, err := apicontract.ExportMd.Decode(strings.NewReader(input))
+ if err != nil || request.Validate() != nil {
+ t.Fatalf("decode failed: %v", err)
+ }
+ var fields map[string]interface{}
+ if err = json.Unmarshal([]byte(input), &fields); err != nil {
+ t.Fatal(err)
+ }
+ if got, want := exportMarkdownOptions(request.ExportMarkdownOptions), model.ParseExportOptions(fields); !reflect.DeepEqual(got, want) {
+ t.Fatalf("markdown conversion changed: %+v != %+v", got, want)
+ }
+ previous := model.Conf
+ model.Conf = model.NewAppConf()
+ model.Conf.Export = conf.NewExport()
+ model.Conf.Export.AddTitle = true
+ t.Cleanup(func() { model.Conf = previous })
+ addTitle, title := exportTitleOptions(apicontract.ExportTitleOptions{CustomTitle: " custom "})
+ if !addTitle || title != "custom" {
+ t.Fatalf("title defaults changed: %v %q", addTitle, title)
+ }
+}
+
+func TestAPIContractExportArtifacts(t *testing.T) {
+ previousTemp, previousURL := util.TempDir, util.ServerURL
+ util.TempDir = t.TempDir()
+ util.ServerURL = &url.URL{Scheme: "http"}
+ t.Cleanup(func() { util.TempDir, util.ServerURL = previousTemp, previousURL })
+ code, msg, data := exportContractRequest(t, "exportTempContent", exportTempContent, `{"content":" content\n"}`)
+ var temp apicontract.ExportURLData
+ if err := json.Unmarshal(data, &temp); err != nil || code != 0 {
+ t.Fatalf("temp export failed: %d %s %s %v", code, msg, data, err)
+ }
+ u, err := url.Parse(temp.URL)
+ if err != nil {
+ t.Fatal(err)
+ }
+ content, err := os.ReadFile(filepath.Join(util.TempDir, filepath.FromSlash(strings.TrimPrefix(u.Path, "/"))))
+ if err != nil || string(content) != " content\n" {
+ t.Fatalf("temp content changed: %q %v", content, err)
+ }
+ if err = os.MkdirAll(filepath.Join(util.TempDir, "export", "folder"), 0755); err != nil {
+ t.Fatal(err)
+ }
+ code, msg, data = exportContractRequest(t, "exportBrowserHTML", exportBrowserHTML, `{"folder":" folder ","html":" <p>content</p> ","name":" name "}`)
+ var archive apicontract.ExportZipData
+ if err = json.Unmarshal(data, &archive); err != nil || code != 0 {
+ t.Fatalf("browser export failed: %d %s %s %v", code, msg, data, err)
+ }
+ zipPath, err := url.PathUnescape(archive.Zip)
+ if err != nil {
+ t.Fatal(err)
+ }
+ reader, err := archivezip.OpenReader(filepath.Join(util.TempDir, filepath.FromSlash(strings.TrimPrefix(zipPath, "/"))))
+ if err != nil {
+ t.Fatal(err)
+ }
+ defer reader.Close()
+ found := false
+ for _, file := range reader.File {
+ if file.Name == "index.html" {
+ stream, err := file.Open()
+ if err != nil {
+ t.Fatal(err)
+ }
+ body, err := io.ReadAll(stream)
+ stream.Close()
+ if err != nil || string(body) != "<p>content</p>" {
+ t.Fatalf("browser content changed: %q %v", body, err)
+ }
+ found = true
+ }
+ }
+ if !found {
+ t.Fatal("browser archive is missing index.html")
+ }
+ if _, err = os.Stat(filepath.Join(util.TempDir, "export", "folder")); !os.IsNotExist(err) {
+ t.Fatalf("temporary browser folder was not removed: %v", err)
+ }
+}
+
+func TestAPIContractExportAsFile(t *testing.T) {
+ previous := util.TempDir
+ util.TempDir = t.TempDir()
+ t.Cleanup(func() { util.TempDir = previous })
+ var body bytes.Buffer
+ writer := multipart.NewWriter(&body)
+ for _, content := range []string{"first", "second"} {
+ part, err := writer.CreateFormFile("file", "sample#file.txt")
+ if err != nil {
+ t.Fatal(err)
+ }
+ if _, err = io.WriteString(part, content); err != nil {
+ t.Fatal(err)
+ }
+ }
+ if err := writer.WriteField("type", "application/octet-stream"); err != nil {
+ t.Fatal(err)
+ }
+ if err := writer.WriteField("type", "image/png"); err != nil {
+ t.Fatal(err)
+ }
+ if err := writer.Close(); err != nil {
+ t.Fatal(err)
+ }
+ engine := gin.New()
+ engine.POST("/api/export/exportAsFile", exportAsFile)
+ recorder := httptest.NewRecorder()
+ request := httptest.NewRequest(http.MethodPost, "/api/export/exportAsFile", &body)
+ request.Header.Set("Content-Type", writer.FormDataContentType())
+ engine.ServeHTTP(recorder, request)
+ requireAPIContract(t, "POST", "/api/export/exportAsFile", recorder)
+ var response struct {
+ Code int `json:"code"`
+ Data apicontract.ExportFileData `json:"data"`
+ }
+ if err := json.Unmarshal(recorder.Body.Bytes(), &response); err != nil || response.Code != 0 {
+ t.Fatalf("file export failed: %s %v", recorder.Body.String(), err)
+ }
+ if strings.Contains(response.Data.File, "#") || strings.HasSuffix(response.Data.File, ".png") {
+ t.Fatalf("file naming changed: %s", response.Data.File)
+ }
+ content, err := os.ReadFile(filepath.Join(util.TempDir, filepath.FromSlash(strings.TrimPrefix(response.Data.File, "/"))))
+ if err != nil || string(content) != "first" {
+ t.Fatalf("first upload changed: %q %v", content, err)
+ }
+}
diff --git a/kernel/api/export.go b/kernel/api/export.go
index abe72cbf6c..27f581a6ec 100644
--- a/kernel/api/export.go
+++ b/kernel/api/export.go
@@ -20,7 +20,6 @@ import (
"fmt"
"io"
"mime"
- "net/http"
"net/url"
"os"
"path"
@@ -35,681 +34,395 @@ import (
"github.com/mssola/useragent"
"github.com/siyuan-note/filelock"
"github.com/siyuan-note/logging"
+ "github.com/siyuan-note/siyuan/kernel/apicontract"
"github.com/siyuan-note/siyuan/kernel/model"
"github.com/siyuan-note/siyuan/kernel/treenode"
"github.com/siyuan-note/siyuan/kernel/util"
)
-func exportCodeBlock(c *gin.Context) {
+var exportCodeBlock = contractHandler(apicontract.ExportCodeBlock, func(c *gin.Context, request apicontract.ExportIDRequest) apicontract.Response[apicontract.ExportPathData] {
ret := gulu.Ret.NewResult()
- defer c.JSON(http.StatusOK, ret)
- arg, ok := util.JsonArg(c, ret)
- if !ok {
- return
- }
-
- var id string
- if !util.ParseJsonArgs(arg, ret, util.BindJsonArg("id", &id, true, true)) {
- return
- }
+ id := request.ID
if !holdEncryptedExportRequest(c, id, ret) {
- return
+ return contractFailure[apicontract.ExportPathData](ret)
}
filePath, err := model.ExportCodeBlock(id)
if err != nil {
ret.Code = 1
ret.Msg = err.Error()
- ret.Data = map[string]any{"closeTimeout": 7000}
- return
+ return apicontract.FailureWithTimeout[apicontract.ExportPathData](ret.Code, ret.Msg, 7000)
}
- ret.Data = map[string]any{
- "path": filePath,
- }
-}
+ return apicontract.Success(apicontract.ExportPathData{Path: filePath})
+})
-func exportAttributeView(c *gin.Context) {
+var exportAttributeView = contractHandler(apicontract.ExportAttributeView, func(c *gin.Context, request apicontract.ExportAttributeViewRequest) apicontract.Response[apicontract.ExportZipData] {
ret := gulu.Ret.NewResult()
- defer c.JSON(http.StatusOK, ret)
-
- arg, ok := util.JsonArg(c, ret)
- if !ok {
- return
- }
- var avID, blockID string
- if !util.ParseJsonArgs(arg, ret,
- util.BindJsonArg("id", &avID, true, true),
- util.BindJsonArg("blockID", &blockID, true, true),
- ) {
- return
- }
+ avID := request.ID
+ blockID := request.BlockID
if !holdEncryptedExportRequest(c, blockID, ret) {
- return
+ return contractFailure[apicontract.ExportZipData](ret)
}
zipPath, err := model.ExportAv2CSV(avID, blockID)
if err != nil {
ret.Code = 1
ret.Msg = err.Error()
- ret.Data = map[string]any{"closeTimeout": 7000}
- return
+ return apicontract.FailureWithTimeout[apicontract.ExportZipData](ret.Code, ret.Msg, 7000)
}
- ret.Data = map[string]any{
- "zip": zipPath,
- }
-}
+ return apicontract.Success(apicontract.ExportZipData{Zip: zipPath})
+})
-func exportEPUB(c *gin.Context) {
+var exportEPUB = contractHandler(apicontract.ExportEPUB, func(c *gin.Context, request apicontract.ExportIDRequest) apicontract.Response[apicontract.ExportNamedZipData] {
ret := gulu.Ret.NewResult()
- defer c.JSON(http.StatusOK, ret)
-
- arg, ok := util.JsonArg(c, ret)
- if !ok {
- return
- }
- var id string
- if !util.ParseJsonArgs(arg, ret, util.BindJsonArg("id", &id, true, true)) {
- return
- }
+ id := request.ID
if !holdEncryptedExportRequest(c, id, ret) {
- return
+ return contractFailure[apicontract.ExportNamedZipData](ret)
}
name, zipPath := model.ExportPandocConvertZip([]string{id}, "epub", ".epub")
- ret.Data = map[string]any{
- "name": name,
- "zip": zipPath,
- }
-}
+ return apicontract.Success(apicontract.ExportNamedZipData{Name: name, Zip: zipPath})
+})
-func exportRTF(c *gin.Context) {
+var exportRTF = contractHandler(apicontract.ExportRTF, func(c *gin.Context, request apicontract.ExportIDRequest) apicontract.Response[apicontract.ExportNamedZipData] {
ret := gulu.Ret.NewResult()
- defer c.JSON(http.StatusOK, ret)
- arg, ok := util.JsonArg(c, ret)
- if !ok {
- return
- }
-
- var id string
- if !util.ParseJsonArgs(arg, ret, util.BindJsonArg("id", &id, true, true)) {
- return
- }
+ id := request.ID
if !holdEncryptedExportRequest(c, id, ret) {
- return
+ return contractFailure[apicontract.ExportNamedZipData](ret)
}
name, zipPath := model.ExportPandocConvertZip([]string{id}, "rtf", ".rtf")
- ret.Data = map[string]any{
- "name": name,
- "zip": zipPath,
- }
-}
+ return apicontract.Success(apicontract.ExportNamedZipData{Name: name, Zip: zipPath})
+})
-func exportODT(c *gin.Context) {
+var exportODT = contractHandler(apicontract.ExportODT, func(c *gin.Context, request apicontract.ExportIDRequest) apicontract.Response[apicontract.ExportNamedZipData] {
ret := gulu.Ret.NewResult()
- defer c.JSON(http.StatusOK, ret)
- arg, ok := util.JsonArg(c, ret)
- if !ok {
- return
- }
-
- var id string
- if !util.ParseJsonArgs(arg, ret, util.BindJsonArg("id", &id, true, true)) {
- return
- }
+ id := request.ID
if !holdEncryptedExportRequest(c, id, ret) {
- return
+ return contractFailure[apicontract.ExportNamedZipData](ret)
}
name, zipPath := model.ExportPandocConvertZip([]string{id}, "odt", ".odt")
- ret.Data = map[string]any{
- "name": name,
- "zip": zipPath,
- }
-}
+ return apicontract.Success(apicontract.ExportNamedZipData{Name: name, Zip: zipPath})
+})
-func exportMediaWiki(c *gin.Context) {
+var exportMediaWiki = contractHandler(apicontract.ExportMediaWiki, func(c *gin.Context, request apicontract.ExportIDRequest) apicontract.Response[apicontract.ExportNamedZipData] {
ret := gulu.Ret.NewResult()
- defer c.JSON(http.StatusOK, ret)
-
- arg, ok := util.JsonArg(c, ret)
- if !ok {
- return
- }
- var id string
- if !util.ParseJsonArgs(arg, ret, util.BindJsonArg("id", &id, true, true)) {
- return
- }
+ id := request.ID
if !holdEncryptedExportRequest(c, id, ret) {
- return
+ return contractFailure[apicontract.ExportNamedZipData](ret)
}
name, zipPath := model.ExportPandocConvertZip([]string{id}, "mediawiki", ".wiki")
- ret.Data = map[string]any{
- "name": name,
- "zip": zipPath,
- }
-}
+ return apicontract.Success(apicontract.ExportNamedZipData{Name: name, Zip: zipPath})
+})
-func exportOrgMode(c *gin.Context) {
+var exportOrgMode = contractHandler(apicontract.ExportOrgMode, func(c *gin.Context, request apicontract.ExportIDRequest) apicontract.Response[apicontract.ExportNamedZipData] {
ret := gulu.Ret.NewResult()
- defer c.JSON(http.StatusOK, ret)
-
- arg, ok := util.JsonArg(c, ret)
- if !ok {
- return
- }
- var id string
- if !util.ParseJsonArgs(arg, ret, util.BindJsonArg("id", &id, true, true)) {
- return
- }
+ id := request.ID
if !holdEncryptedExportRequest(c, id, ret) {
- return
+ return contractFailure[apicontract.ExportNamedZipData](ret)
}
name, zipPath := model.ExportPandocConvertZip([]string{id}, "org", ".org")
- ret.Data = map[string]any{
- "name": name,
- "zip": zipPath,
- }
-}
+ return apicontract.Success(apicontract.ExportNamedZipData{Name: name, Zip: zipPath})
+})
-func exportOPML(c *gin.Context) {
+var exportOPML = contractHandler(apicontract.ExportOPML, func(c *gin.Context, request apicontract.ExportIDRequest) apicontract.Response[apicontract.ExportNamedZipData] {
ret := gulu.Ret.NewResult()
- defer c.JSON(http.StatusOK, ret)
- arg, ok := util.JsonArg(c, ret)
- if !ok {
- return
- }
-
- var id string
- if !util.ParseJsonArgs(arg, ret, util.BindJsonArg("id", &id, true, true)) {
- return
- }
+ id := request.ID
if !holdEncryptedExportRequest(c, id, ret) {
- return
+ return contractFailure[apicontract.ExportNamedZipData](ret)
}
name, zipPath := model.ExportPandocConvertZip([]string{id}, "opml", ".opml")
- ret.Data = map[string]any{
- "name": name,
- "zip": zipPath,
- }
-}
+ return apicontract.Success(apicontract.ExportNamedZipData{Name: name, Zip: zipPath})
+})
-func exportTextile(c *gin.Context) {
+var exportTextile = contractHandler(apicontract.ExportTextile, func(c *gin.Context, request apicontract.ExportIDRequest) apicontract.Response[apicontract.ExportNamedZipData] {
ret := gulu.Ret.NewResult()
- defer c.JSON(http.StatusOK, ret)
- arg, ok := util.JsonArg(c, ret)
- if !ok {
- return
- }
-
- var id string
- if !util.ParseJsonArgs(arg, ret, util.BindJsonArg("id", &id, true, true)) {
- return
- }
+ id := request.ID
if !holdEncryptedExportRequest(c, id, ret) {
- return
+ return contractFailure[apicontract.ExportNamedZipData](ret)
}
name, zipPath := model.ExportPandocConvertZip([]string{id}, "textile", ".textile")
- ret.Data = map[string]any{
- "name": name,
- "zip": zipPath,
- }
-}
+ return apicontract.Success(apicontract.ExportNamedZipData{Name: name, Zip: zipPath})
+})
-func exportAsciiDoc(c *gin.Context) {
+var exportAsciiDoc = contractHandler(apicontract.ExportAsciiDoc, func(c *gin.Context, request apicontract.ExportIDRequest) apicontract.Response[apicontract.ExportNamedZipData] {
ret := gulu.Ret.NewResult()
- defer c.JSON(http.StatusOK, ret)
-
- arg, ok := util.JsonArg(c, ret)
- if !ok {
- return
- }
- var id string
- if !util.ParseJsonArgs(arg, ret, util.BindJsonArg("id", &id, true, true)) {
- return
- }
+ id := request.ID
if !holdEncryptedExportRequest(c, id, ret) {
- return
+ return contractFailure[apicontract.ExportNamedZipData](ret)
}
name, zipPath := model.ExportPandocConvertZip([]string{id}, "asciidoc", ".adoc")
- ret.Data = map[string]any{
- "name": name,
- "zip": zipPath,
- }
-}
+ return apicontract.Success(apicontract.ExportNamedZipData{Name: name, Zip: zipPath})
+})
-func exportReStructuredText(c *gin.Context) {
+var exportReStructuredText = contractHandler(apicontract.ExportReStructuredText, func(c *gin.Context, request apicontract.ExportIDRequest) apicontract.Response[apicontract.ExportNamedZipData] {
ret := gulu.Ret.NewResult()
- defer c.JSON(http.StatusOK, ret)
-
- arg, ok := util.JsonArg(c, ret)
- if !ok {
- return
- }
- var id string
- if !util.ParseJsonArgs(arg, ret, util.BindJsonArg("id", &id, true, true)) {
- return
- }
+ id := request.ID
if !holdEncryptedExportRequest(c, id, ret) {
- return
+ return contractFailure[apicontract.ExportNamedZipData](ret)
}
name, zipPath := model.ExportPandocConvertZip([]string{id}, "rst", ".rst")
- ret.Data = map[string]any{
- "name": name,
- "zip": zipPath,
- }
-}
+ return apicontract.Success(apicontract.ExportNamedZipData{Name: name, Zip: zipPath})
+})
-func export2Liandi(c *gin.Context) {
+var export2Liandi = contractHandler(apicontract.Export2Liandi, func(c *gin.Context, request apicontract.ExportIDRequest) apicontract.Response[apicontract.Null] {
ret := gulu.Ret.NewResult()
- defer c.JSON(http.StatusOK, ret)
- arg, ok := util.JsonArg(c, ret)
- if !ok {
- return
- }
-
- var id string
- if !util.ParseJsonArgs(arg, ret, util.BindJsonArg("id", &id, true, true)) {
- return
- }
+ id := request.ID
err := model.Export2Liandi(id)
if err != nil {
ret.Code = -1
ret.Msg = err.Error()
- return
+ return contractFailure[apicontract.Null](ret)
}
-}
+ return apicontract.Success(apicontract.Null{})
+})
-func exportDataInFolder(c *gin.Context) {
+var exportDataInFolder = contractHandler(apicontract.ExportDataInFolder, func(c *gin.Context, request apicontract.ExportFolderRequest) apicontract.Response[apicontract.ExportNameData] {
ret := gulu.Ret.NewResult()
- defer c.JSON(http.StatusOK, ret)
-
- arg, ok := util.JsonArg(c, ret)
- if !ok {
- return
- }
- var exportFolder string
- if !util.ParseJsonArgs(arg, ret, util.BindJsonArg("folder", &exportFolder, true, true)) {
- return
- }
+ exportFolder := request.Folder
name, err := model.ExportDataInFolder(exportFolder)
if err != nil {
ret.Code = -1
ret.Msg = err.Error()
- ret.Data = map[string]any{"closeTimeout": 7000}
- return
- }
- ret.Data = map[string]any{
- "name": name,
+ return apicontract.FailureWithTimeout[apicontract.ExportNameData](ret.Code, ret.Msg, 7000)
}
-}
+ return apicontract.Success(apicontract.ExportNameData{Name: name})
+})
-func exportData(c *gin.Context) {
+var exportData = contractHandler(apicontract.ExportData, func(c *gin.Context, request apicontract.EmptyRequest) apicontract.Response[apicontract.ExportZipData] {
ret := gulu.Ret.NewResult()
- defer c.JSON(http.StatusOK, ret)
zipPath, err := model.ExportData()
if err != nil {
ret.Code = 1
ret.Msg = err.Error()
- ret.Data = map[string]any{"closeTimeout": 7000}
- return
+ return apicontract.FailureWithTimeout[apicontract.ExportZipData](ret.Code, ret.Msg, 7000)
}
- ret.Data = map[string]any{
- "zip": zipPath,
- }
-}
+ return apicontract.Success(apicontract.ExportZipData{Zip: zipPath})
+})
-func exportResources(c *gin.Context) {
+var exportResources = contractHandler(apicontract.ExportResources, func(c *gin.Context, request apicontract.ExportResourcesRequest) apicontract.Response[apicontract.ExportPathData] {
ret := gulu.Ret.NewResult()
- defer c.JSON(http.StatusOK, ret)
-
- arg, ok := util.JsonArg(c, ret)
- if !ok {
- return
- }
var name string
- if nil != arg["name"] {
- name = util.TruncateLenFileName(arg["name"].(string))
+ if request.Name != nil {
+ name = util.TruncateLenFileName(*request.Name)
}
if name == "" {
name = time.Now().Format("export-2006-01-02_15-04-05") // 生成的 *.zip 文件主文件名
}
- if nil == arg["paths"] {
+ if request.Paths == nil {
ret.Code = 1
- ret.Data = ""
- ret.Msg = "[paths] is required"
- return
+ return apicontract.FailureWithText[apicontract.ExportPathData](1, "[paths] is required", "")
}
- var resourcePaths []string // 文件/文件夹在工作空间中的路径
- for _, resourcePath := range arg["paths"].([]any) {
- resourcePaths = append(resourcePaths, resourcePath.(string))
- }
+ resourcePaths := exportStrings(*request.Paths)
zipFilePath, err := model.ExportResources(resourcePaths, name)
if err != nil {
ret.Code = 1
ret.Msg = err.Error()
- ret.Data = map[string]any{"closeTimeout": 7000}
- return
+ return apicontract.FailureWithTimeout[apicontract.ExportPathData](ret.Code, ret.Msg, 7000)
}
- ret.Data = map[string]any{
- "path": zipFilePath, // 相对于工作空间目录的路径
- }
-}
+ return apicontract.Success(apicontract.ExportPathData{Path: zipFilePath})
+})
-func exportNotebookMd(c *gin.Context) {
+var exportNotebookMd = contractHandler(apicontract.ExportNotebookMd, func(c *gin.Context, request apicontract.ExportNotebookMarkdownRequest) apicontract.Response[apicontract.ExportNamedZipData] {
ret := gulu.Ret.NewResult()
- defer c.JSON(http.StatusOK, ret)
-
- arg, ok := util.JsonArg(c, ret)
- if !ok {
- return
- }
- var notebook string
- if !util.ParseJsonArgs(arg, ret, util.BindJsonArg("notebook", &notebook, true, true)) {
- return
- }
+ notebook := request.Notebook
if err := holdEncryptedBoxRequest(c, notebook); err != nil {
ret.Code = -1
ret.Msg = model.Conf.Language(314)
- return
+ return contractFailure[apicontract.ExportNamedZipData](ret)
}
- zipPath := model.ExportNotebookMarkdownWithOptions(notebook, model.ParseExportOptions(arg))
- ret.Data = map[string]any{
- "name": path.Base(zipPath),
- "zip": zipPath,
+ if err := request.Validate(); err != nil {
+ ret.Code = -1
+ ret.Msg = err.Error()
+ return contractFailure[apicontract.ExportNamedZipData](ret)
}
-}
+ zipPath := model.ExportNotebookMarkdownWithOptions(notebook, exportMarkdownOptions(request.ExportMarkdownOptions))
+ return apicontract.Success(apicontract.ExportNamedZipData{Name: path.Base(zipPath), Zip: zipPath})
+})
-func exportNotebooksMd(c *gin.Context) {
+var exportNotebooksMd = contractHandler(apicontract.ExportNotebooksMd, func(c *gin.Context, request apicontract.ExportNotebooksMarkdownRequest) apicontract.Response[apicontract.ExportNamedZipData] {
ret := gulu.Ret.NewResult()
- defer c.JSON(http.StatusOK, ret)
- arg, ok := util.JsonArg(c, ret)
- if !ok {
- return
- }
- notebooks := parseExportNotebookIDs(arg)
+ notebooks := request.IDs()
if len(notebooks) < 1 {
ret.Code = -1
- return
+ return contractFailure[apicontract.ExportNamedZipData](ret)
}
for _, notebook := range notebooks {
if model.IsEncryptedBox(notebook) {
ret.Code = -1
ret.Msg = model.Conf.Language(395)
- return
+ return contractFailure[apicontract.ExportNamedZipData](ret)
}
}
- zipPath := model.ExportNotebooksMarkdownWithOptions(notebooks, model.ParseExportOptions(arg))
- ret.Data = map[string]any{
- "name": path.Base(zipPath),
- "zip": zipPath,
+ if err := request.Validate(); err != nil {
+ ret.Code = -1
+ ret.Msg = err.Error()
+ return contractFailure[apicontract.ExportNamedZipData](ret)
}
-}
+ zipPath := model.ExportNotebooksMarkdownWithOptions(notebooks, exportMarkdownOptions(request.ExportMarkdownOptions))
+ return apicontract.Success(apicontract.ExportNamedZipData{Name: path.Base(zipPath), Zip: zipPath})
+})
-func exportMds(c *gin.Context) {
+var exportMds = contractHandler(apicontract.ExportMds, func(c *gin.Context, request apicontract.ExportDocumentsMarkdownRequest) apicontract.Response[apicontract.ExportNamedZipData] {
ret := gulu.Ret.NewResult()
- defer c.JSON(http.StatusOK, ret)
- arg, ok := util.JsonArg(c, ret)
- if !ok {
- return
- }
-
- idsArg := arg["ids"].([]any)
- var ids []string
- for _, id := range idsArg {
- ids = append(ids, id.(string))
- }
+ ids := exportStrings(request.IDs)
if !holdEncryptedExportRequests(c, ids, ret) {
- return
+ return contractFailure[apicontract.ExportNamedZipData](ret)
}
- name, zipPath := model.ExportPandocConvertZipWithOptions(ids, "", ".md", model.ParseExportOptions(arg))
- ret.Data = map[string]any{
- "name": name,
- "zip": zipPath,
+ if err := request.Validate(); err != nil {
+ ret.Code = -1
+ ret.Msg = err.Error()
+ return contractFailure[apicontract.ExportNamedZipData](ret)
}
-}
+ name, zipPath := model.ExportPandocConvertZipWithOptions(ids, "", ".md", exportMarkdownOptions(request.ExportMarkdownOptions))
+ return apicontract.Success(apicontract.ExportNamedZipData{Name: name, Zip: zipPath})
+})
-func exportMd(c *gin.Context) {
+var exportMd = contractHandler(apicontract.ExportMd, func(c *gin.Context, request apicontract.ExportMarkdownRequest) apicontract.Response[apicontract.ExportNamedZipData] {
ret := gulu.Ret.NewResult()
- defer c.JSON(http.StatusOK, ret)
- arg, ok := util.JsonArg(c, ret)
- if !ok {
- return
- }
-
- var id string
- if !util.ParseJsonArgs(arg, ret, util.BindJsonArg("id", &id, true, true)) {
- return
- }
+ id := request.ID
if !holdEncryptedExportRequest(c, id, ret) {
- return
+ return contractFailure[apicontract.ExportNamedZipData](ret)
}
- name, zipPath := model.ExportPandocConvertZipWithOptions([]string{id}, "", ".md", model.ParseExportOptions(arg))
- ret.Data = map[string]any{
- "name": name,
- "zip": zipPath,
+ if err := request.Validate(); err != nil {
+ ret.Code = -1
+ ret.Msg = err.Error()
+ return contractFailure[apicontract.ExportNamedZipData](ret)
}
-}
+ name, zipPath := model.ExportPandocConvertZipWithOptions([]string{id}, "", ".md", exportMarkdownOptions(request.ExportMarkdownOptions))
+ return apicontract.Success(apicontract.ExportNamedZipData{Name: name, Zip: zipPath})
+})
-func exportNotebookSY(c *gin.Context) {
+var exportNotebookSY = contractHandler(apicontract.ExportNotebookSY, func(c *gin.Context, request apicontract.ExportIDRequest) apicontract.Response[apicontract.ExportZipData] {
ret := gulu.Ret.NewResult()
- defer c.JSON(http.StatusOK, ret)
-
- arg, ok := util.JsonArg(c, ret)
- if !ok {
- return
- }
- var id string
- if !util.ParseJsonArgs(arg, ret, util.BindJsonArg("id", &id, true, true)) {
- return
- }
+ id := request.ID
if err := holdEncryptedBoxRequest(c, id); err != nil {
ret.Code = -1
ret.Msg = model.Conf.Language(314)
- return
+ return contractFailure[apicontract.ExportZipData](ret)
}
zipPath := model.ExportNotebookSY(id)
- ret.Data = map[string]any{
- "zip": zipPath,
- }
-}
+ return apicontract.Success(apicontract.ExportZipData{Zip: zipPath})
+})
-func exportNotebooksSY(c *gin.Context) {
+var exportNotebooksSY = contractHandler(apicontract.ExportNotebooksSY, func(c *gin.Context, request apicontract.ExportNotebooksRequest) apicontract.Response[apicontract.ExportZipData] {
ret := gulu.Ret.NewResult()
- defer c.JSON(http.StatusOK, ret)
- arg, ok := util.JsonArg(c, ret)
- if !ok {
- return
- }
- notebooks := parseExportNotebookIDs(arg)
+ notebooks := request.IDs()
if len(notebooks) < 1 {
ret.Code = -1
- return
+ return contractFailure[apicontract.ExportZipData](ret)
}
for _, notebook := range notebooks {
if model.IsEncryptedBox(notebook) {
ret.Code = -1
ret.Msg = model.Conf.Language(395)
- return
+ return contractFailure[apicontract.ExportZipData](ret)
}
}
zipPath := model.ExportNotebooksSY(notebooks)
- ret.Data = map[string]any{
- "zip": zipPath,
- }
-}
+ return apicontract.Success(apicontract.ExportZipData{Zip: zipPath})
+})
-func parseExportNotebookIDs(arg map[string]any) (ret []string) {
- values, ok := arg["notebooks"].([]any)
- if !ok {
- return
- }
- for _, value := range values {
- if notebook, valueOK := value.(string); valueOK && notebook != "" {
- ret = append(ret, notebook)
- }
- }
- return
-}
-
-func exportSYs(c *gin.Context) {
+var exportSYs = contractHandler(apicontract.ExportSYs, func(c *gin.Context, request apicontract.ExportIDsRequest) apicontract.Response[apicontract.ExportZipData] {
ret := gulu.Ret.NewResult()
- defer c.JSON(http.StatusOK, ret)
-
- arg, ok := util.JsonArg(c, ret)
- if !ok {
- return
- }
- idsArg := arg["ids"].([]any)
- var ids []string
- for _, id := range idsArg {
- ids = append(ids, id.(string))
- }
+ ids := exportStrings(request.IDs)
if !holdEncryptedExportRequests(c, ids, ret) {
- return
+ return contractFailure[apicontract.ExportZipData](ret)
}
zipPath := model.ExportSYs(ids)
- ret.Data = map[string]any{
- "zip": zipPath,
- }
-}
+ return apicontract.Success(apicontract.ExportZipData{Zip: zipPath})
+})
-func exportSY(c *gin.Context) {
+var exportSY = contractHandler(apicontract.ExportSY, func(c *gin.Context, request apicontract.ExportIDRequest) apicontract.Response[apicontract.ExportZipData] {
ret := gulu.Ret.NewResult()
- defer c.JSON(http.StatusOK, ret)
-
- arg, ok := util.JsonArg(c, ret)
- if !ok {
- return
- }
- var id string
- if !util.ParseJsonArgs(arg, ret, util.BindJsonArg("id", &id, true, true)) {
- return
- }
+ id := request.ID
if !holdEncryptedExportRequest(c, id, ret) {
- return
+ return contractFailure[apicontract.ExportZipData](ret)
}
zipPath := model.ExportSYs([]string{id})
- ret.Data = map[string]any{
- "zip": zipPath,
- }
-}
+ return apicontract.Success(apicontract.ExportZipData{Zip: zipPath})
+})
-func exportMdContent(c *gin.Context) {
+var exportMdContent = contractHandler(apicontract.ExportMdContent, func(c *gin.Context, request apicontract.ExportMarkdownContentRequest) apicontract.Response[apicontract.ExportMarkdownContentData] {
ret := gulu.Ret.NewResult()
- defer c.JSON(http.StatusOK, ret)
-
- arg, ok := util.JsonArg(c, ret)
- if !ok {
- return
- }
- var id string
- if !util.ParseJsonArgs(arg, ret, util.BindJsonArg("id", &id, true, true)) {
- return
- }
+ id := request.ID
if util.InvalidIDPattern(id, ret) {
- return
+ return contractFailure[apicontract.ExportMarkdownContentData](ret)
}
if !holdEncryptedExportRequest(c, id, ret) {
- return
+ return contractFailure[apicontract.ExportMarkdownContentData](ret)
}
- refMode := model.Conf.Export.BlockRefMode
- if nil != arg["refMode"] {
- refMode = int(arg["refMode"].(float64))
+ if err := request.Validate(); err != nil {
+ ret.Code = -1
+ ret.Msg = err.Error()
+ return contractFailure[apicontract.ExportMarkdownContentData](ret)
}
-
- embedMode := model.Conf.Export.BlockEmbedMode
- if nil != arg["embedMode"] {
- embedMode = int(arg["embedMode"].(float64))
+ refMode, embedMode, yfm := model.Conf.Export.BlockRefMode, model.Conf.Export.BlockEmbedMode, true
+ if request.RefMode != nil {
+ refMode = int(*request.RefMode)
}
-
- yfm := true
- if nil != arg["yfm"] {
- yfm = arg["yfm"].(bool)
+ if request.EmbedMode != nil {
+ embedMode = int(*request.EmbedMode)
}
-
- var fillCSSVar, adjustHeadingLevel, imgTag bool
- if !util.ParseJsonArgs(arg, ret,
- util.BindJsonArg("fillCSSVar", &fillCSSVar, false, false),
- util.BindJsonArg("adjustHeadingLevel", &adjustHeadingLevel, false, false),
- util.BindJsonArg("imgTag", &imgTag, false, false),
- ) {
- return
+ if request.YFM != nil {
+ yfm = *request.YFM
}
-
+ fillCSSVar, adjustHeadingLevel, imgTag := request.FillCSSVar, request.AdjustHeadingLevel, request.ImgTag
addTitle := model.Conf.Export.AddTitle
- if nil != arg["addTitle"] {
- if arg["addTitle"].(bool) {
- addTitle = true
- } else {
- addTitle = false
- }
+ if request.AddTitle != nil {
+ addTitle = *request.AddTitle
}
hPath, content := model.ExportMarkdownContent(id, refMode, embedMode, yfm, fillCSSVar, adjustHeadingLevel, imgTag, addTitle)
- ret.Data = map[string]any{
- "hPath": hPath,
- "content": content,
- }
-}
+ return apicontract.Success(apicontract.ExportMarkdownContentData{HPath: hPath, Content: content})
+})
-func exportDocx(c *gin.Context) {
+var exportDocx = contractHandler(apicontract.ExportDocx, func(c *gin.Context, request apicontract.ExportDocxRequest) apicontract.Response[apicontract.ExportPathData] {
ret := gulu.Ret.NewResult()
- defer c.JSON(http.StatusOK, ret)
-
- arg, ok := util.JsonArg(c, ret)
- if !ok {
- return
- }
- var id, savePath, mergeDocHeadingMode, mergeContentHeadingMode string
- var removeAssets, merge bool
- if !util.ParseJsonArgs(arg, ret,
- util.BindJsonArg("id", &id, true, true),
- util.BindJsonArg("savePath", &savePath, true, true),
- util.BindJsonArg("removeAssets", &removeAssets, true, false),
- util.BindJsonArg("merge", &merge, false, false),
- util.BindJsonArg("mergeDocHeadingMode", &mergeDocHeadingMode, false, false),
- util.BindJsonArg("mergeContentHeadingMode", &mergeContentHeadingMode, false, false),
- ) {
- return
- }
+ id := request.ID
+ savePath := request.SavePath
+ removeAssets := request.RemoveAssets
+ merge := request.Merge
+ mergeDocHeadingMode := request.MergeDocHeadingMode
+ mergeContentHeadingMode := request.MergeContentHeadingMode
if !holdEncryptedExportRequest(c, id, ret) {
- return
+ return contractFailure[apicontract.ExportPathData](ret)
}
// savePath 由客户端指定,禁止写入加密笔记本目录(明文导出物会绕过加密、锁定后残留)
if rejectEncryptedBoxPath(savePath) {
ret.Code = -1
ret.Msg = model.Conf.Language(383)
- return
+ return contractFailure[apicontract.ExportPathData](ret)
}
mergeHeadingOptions := model.MergeHeadingOptions{DocHeadingMode: mergeDocHeadingMode, ContentHeadingMode: mergeContentHeadingMode}
@@ -717,32 +430,18 @@ func exportDocx(c *gin.Context) {
if err != nil {
ret.Code = 1
ret.Msg = err.Error()
- ret.Data = map[string]any{"closeTimeout": 7000}
- return
- }
- ret.Data = map[string]any{
- "path": fullPath,
+ return apicontract.FailureWithTimeout[apicontract.ExportPathData](ret.Code, ret.Msg, 7000)
}
-}
+ return apicontract.Success(apicontract.ExportPathData{Path: fullPath})
+})
-func exportMdHTML(c *gin.Context) {
+var exportMdHTML = contractHandler(apicontract.ExportMdHTML, func(c *gin.Context, request apicontract.ExportMarkdownHTMLRequest) apicontract.Response[apicontract.ExportHTMLData] {
ret := gulu.Ret.NewResult()
- defer c.JSON(http.StatusOK, ret)
- arg, ok := util.JsonArg(c, ret)
- if !ok {
- return
- }
-
- var id, savePath string
- if !util.ParseJsonArgs(arg, ret,
- util.BindJsonArg("id", &id, true, true),
- util.BindJsonArg("savePath", &savePath, false, false),
- ) {
- return
- }
+ id := request.ID
+ savePath := request.SavePath
if !holdEncryptedExportRequest(c, id, ret) {
- return
+ return contractFailure[apicontract.ExportHTMLData](ret)
}
savePath = strings.TrimSpace(savePath)
@@ -754,48 +453,27 @@ func exportMdHTML(c *gin.Context) {
}
tmpDir := filepath.Join(util.TempDir, "export", folderName)
name, content := model.ExportMarkdownHTML(id, tmpDir, false, false)
- ret.Data = map[string]any{
- "id": id,
- "name": name,
- "content": content,
- "folder": folderName,
- }
- return
+ return apicontract.Success(apicontract.ExportHTMLData{ID: id, Name: name, Content: content, Folder: folderName})
}
// savePath 由客户端指定,禁止写入加密笔记本目录(明文导出物会绕过加密、锁定后残留)
if rejectEncryptedBoxPath(savePath) {
ret.Code = -1
ret.Msg = model.Conf.Language(383)
- return
+ return contractFailure[apicontract.ExportHTMLData](ret)
}
name, content := model.ExportMarkdownHTML(id, savePath, false, false)
- ret.Data = map[string]any{
- "id": id,
- "name": name,
- "content": content,
- }
-}
+ return apicontract.Success(apicontract.ExportHTMLData{ID: id, Name: name, Content: content})
+})
-func exportTempContent(c *gin.Context) {
+var exportTempContent = contractHandler(apicontract.ExportTempContent, func(c *gin.Context, request apicontract.ExportTempContentRequest) apicontract.Response[apicontract.ExportURLData] {
ret := gulu.Ret.NewResult()
- defer c.JSON(http.StatusOK, ret)
-
- arg, ok := util.JsonArg(c, ret)
- if !ok {
- return
- }
- var content, id string
- if !util.ParseJsonArgs(arg, ret,
- util.BindJsonArg("content", &content, true, false),
- util.BindJsonArg("id", &id, false, false),
- ) {
- return
- }
+ content := request.Content
+ id := request.ID
if !holdEncryptedExportRequest(c, id, ret) {
- return
+ return contractFailure[apicontract.ExportURLData](ret)
}
tmpExport := filepath.Join(util.TempDir, "export")
// 加密笔记本的临时导出归入 boxID 子目录,确保 LockBox 清理和服务端校验锁定状态
@@ -808,15 +486,13 @@ func exportTempContent(c *gin.Context) {
if err := os.MkdirAll(tmpExport, 0755); err != nil {
ret.Code = 1
ret.Msg = err.Error()
- ret.Data = map[string]any{"closeTimeout": 7000}
- return
+ return apicontract.FailureWithTimeout[apicontract.ExportURLData](ret.Code, ret.Msg, 7000)
}
p := filepath.Join(tmpExport, gulu.Rand.String(7))
if err := os.WriteFile(p, []byte(content), 0644); err != nil {
ret.Code = 1
ret.Msg = err.Error()
- ret.Data = map[string]any{"closeTimeout": 7000}
- return
+ return apicontract.FailureWithTimeout[apicontract.ExportURLData](ret.Code, ret.Msg, 7000)
}
baseName := filepath.Base(p)
urlPath := "/export/"
@@ -834,28 +510,15 @@ func exportTempContent(c *gin.Context) {
} else {
urlPath = path.Join(urlPath, "temp", baseName)
}
- ret.Data = map[string]any{
- "url": util.ServerURL.Scheme + "://" + util.LocalHost + ":" + util.ServerPort + urlPath,
- }
-}
+ return apicontract.Success(apicontract.ExportURLData{URL: util.ServerURL.Scheme + "://" + util.LocalHost + ":" + util.ServerPort + urlPath})
+})
-func exportBrowserHTML(c *gin.Context) {
+var exportBrowserHTML = contractHandler(apicontract.ExportBrowserHTML, func(c *gin.Context, request apicontract.ExportBrowserHTMLRequest) apicontract.Response[apicontract.ExportZipData] {
ret := gulu.Ret.NewResult()
- defer c.JSON(http.StatusOK, ret)
- arg, ok := util.JsonArg(c, ret)
- if !ok {
- return
- }
-
- var folder, htmlContent, name string
- if !util.ParseJsonArgs(arg, ret,
- util.BindJsonArg("folder", &folder, true, true),
- util.BindJsonArg("html", &htmlContent, true, true),
- util.BindJsonArg("name", &name, true, true),
- ) {
- return
- }
+ folder := request.Folder
+ htmlContent := request.HTML
+ name := request.Name
// folder 由客户端指定,禁止包含 ..、绝对路径等穿越组件,防止在导出目录之外写入 index.html
exportDir := filepath.Join(util.TempDir, "export")
@@ -863,7 +526,7 @@ func exportBrowserHTML(c *gin.Context) {
if !gulu.File.IsSubPath(exportDir, tmpDir) {
ret.Code = -1
ret.Msg = model.Conf.Language(383)
- return
+ return contractFailure[apicontract.ExportZipData](ret)
}
// 检测是否来自加密笔记本:folder 形如 <boxID>/<folderName>
@@ -875,7 +538,7 @@ func exportBrowserHTML(c *gin.Context) {
if err := holdEncryptedBoxRequest(c, boxID); err != nil {
ret.Code = -1
ret.Msg = model.Conf.Language(314)
- return
+ return contractFailure[apicontract.ExportZipData](ret)
}
}
@@ -883,8 +546,7 @@ func exportBrowserHTML(c *gin.Context) {
if err := filelock.WriteFile(htmlPath, []byte(htmlContent)); err != nil {
ret.Code = -1
ret.Msg = err.Error()
- ret.Data = nil
- return
+ return contractFailure[apicontract.ExportZipData](ret)
}
zipFileName := util.FilterFileName(name) + ".zip"
@@ -895,7 +557,7 @@ func exportBrowserHTML(c *gin.Context) {
if err := os.MkdirAll(filepath.Dir(zipAbsPath), 0755); err != nil {
ret.Code = -1
ret.Msg = err.Error()
- return
+ return contractFailure[apicontract.ExportZipData](ret)
}
} else {
zipAbsPath = filepath.Join(util.TempDir, "export", zipFileName)
@@ -905,8 +567,7 @@ func exportBrowserHTML(c *gin.Context) {
if err != nil {
ret.Code = -1
ret.Msg = err.Error()
- ret.Data = nil
- return
+ return contractFailure[apicontract.ExportZipData](ret)
}
err = zip.AddDirectory("", tmpDir, func(string) {})
@@ -915,16 +576,14 @@ func exportBrowserHTML(c *gin.Context) {
_ = os.Remove(zipAbsPath)
ret.Code = -1
ret.Msg = err.Error()
- ret.Data = nil
- return
+ return contractFailure[apicontract.ExportZipData](ret)
}
if err = zip.Close(); err != nil {
_ = os.Remove(zipAbsPath)
ret.Code = -1
ret.Msg = err.Error()
- ret.Data = nil
- return
+ return contractFailure[apicontract.ExportZipData](ret)
}
os.RemoveAll(tmpDir)
@@ -935,36 +594,21 @@ func exportBrowserHTML(c *gin.Context) {
} else {
zipURL = "/export/" + url.PathEscape(filepath.Base(zipAbsPath))
}
- ret.Data = map[string]any{
- "zip": zipURL,
- }
-}
+ return apicontract.Success(apicontract.ExportZipData{Zip: zipURL})
+})
-func exportPreviewHTML(c *gin.Context) {
+var exportPreviewHTML = contractHandler(apicontract.ExportPreviewHTML, func(c *gin.Context, request apicontract.ExportPreviewHTMLRequest) apicontract.Response[apicontract.ExportPreviewHTMLData] {
ret := gulu.Ret.NewResult()
- defer c.JSON(http.StatusOK, ret)
- arg, ok := util.JsonArg(c, ret)
- if !ok {
- return
- }
-
- var id, mergeDocHeadingMode, mergeContentHeadingMode string
- var keepFold, merge, image bool
- if !util.ParseJsonArgs(arg, ret,
- util.BindJsonArg("id", &id, true, true),
- util.BindJsonArg("keepFold", &keepFold, false, false),
- util.BindJsonArg("merge", &merge, false, false),
- util.BindJsonArg("image", &image, false, false),
- util.BindJsonArg("mergeDocHeadingMode", &mergeDocHeadingMode, false, false),
- util.BindJsonArg("mergeContentHeadingMode", &mergeContentHeadingMode, false, false),
- ) {
- return
- }
+ id := request.ID
+ keepFold := request.KeepFold
+ merge := request.Merge
+ mergeDocHeadingMode := request.MergeDocHeadingMode
+ mergeContentHeadingMode := request.MergeContentHeadingMode
if !holdEncryptedExportRequest(c, id, ret) {
- return
+ return contractFailure[apicontract.ExportPreviewHTMLData](ret)
}
- addTitle, customTitle := exportTitleOptions(arg)
+ addTitle, customTitle := exportTitleOptions(request.ExportTitleOptions)
mergeHeadingOptions := model.MergeHeadingOptions{DocHeadingMode: mergeDocHeadingMode, ContentHeadingMode: mergeContentHeadingMode}
name, content, node := model.ExportHTMLWithTitle(id, "", true, keepFold, merge, addTitle, customTitle, mergeHeadingOptions)
// 导出 PDF 预览时点击块引转换后的脚注跳转不正确 https://github.com/siyuan-note/siyuan/issues/5894
@@ -978,42 +622,24 @@ func exportPreviewHTML(c *gin.Context) {
typ = node.Type.String()
}
- ret.Data = map[string]any{
- "id": id,
- "name": name,
- "content": content,
- "attrs": attrs,
- "type": typ,
- }
-}
+ return apicontract.Success(apicontract.ExportPreviewHTMLData{ID: id, Name: name, Content: content, Attrs: attrs, Type: typ})
+})
-func exportHTML(c *gin.Context) {
+var exportHTML = contractHandler(apicontract.ExportHTML, func(c *gin.Context, request apicontract.ExportHTMLRequest) apicontract.Response[apicontract.ExportHTMLData] {
ret := gulu.Ret.NewResult()
- defer c.JSON(http.StatusOK, ret)
-
- arg, ok := util.JsonArg(c, ret)
- if !ok {
- return
- }
-
- var id, savePath, mergeDocHeadingMode, mergeContentHeadingMode string
- var pdf, keepFold, merge bool
- if !util.ParseJsonArgs(arg, ret,
- util.BindJsonArg("id", &id, true, true),
- util.BindJsonArg("pdf", &pdf, true, false),
- util.BindJsonArg("savePath", &savePath, false, false),
- util.BindJsonArg("keepFold", &keepFold, false, false),
- util.BindJsonArg("merge", &merge, false, false),
- util.BindJsonArg("mergeDocHeadingMode", &mergeDocHeadingMode, false, false),
- util.BindJsonArg("mergeContentHeadingMode", &mergeContentHeadingMode, false, false),
- ) {
- return
- }
+
+ id := request.ID
+ pdf := request.PDF
+ savePath := request.SavePath
+ keepFold := request.KeepFold
+ merge := request.Merge
+ mergeDocHeadingMode := request.MergeDocHeadingMode
+ mergeContentHeadingMode := request.MergeContentHeadingMode
if !holdEncryptedExportRequest(c, id, ret) {
- return
+ return contractFailure[apicontract.ExportHTMLData](ret)
}
- addTitle, customTitle := exportTitleOptions(arg)
+ addTitle, customTitle := exportTitleOptions(request.ExportTitleOptions)
mergeHeadingOptions := model.MergeHeadingOptions{DocHeadingMode: mergeDocHeadingMode, ContentHeadingMode: mergeContentHeadingMode}
savePath = strings.TrimSpace(savePath)
if savePath == "" {
@@ -1024,39 +650,49 @@ func exportHTML(c *gin.Context) {
}
tmpDir := filepath.Join(util.TempDir, "export", folderName)
name, content, _ := model.ExportHTMLWithTitle(id, tmpDir, pdf, keepFold, merge, addTitle, customTitle, mergeHeadingOptions)
- ret.Data = map[string]any{
- "id": id,
- "name": name,
- "content": content,
- "folder": folderName,
- }
- return
+ return apicontract.Success(apicontract.ExportHTMLData{ID: id, Name: name, Content: content, Folder: folderName})
}
// savePath 由客户端指定,禁止写入加密笔记本目录(明文导出物会绕过加密、锁定后残留)
if rejectEncryptedBoxPath(savePath) {
ret.Code = -1
ret.Msg = model.Conf.Language(383)
- return
+ return contractFailure[apicontract.ExportHTMLData](ret)
}
name, content, _ := model.ExportHTMLWithTitle(id, savePath, pdf, keepFold, merge, addTitle, customTitle, mergeHeadingOptions)
- ret.Data = map[string]any{
- "id": id,
- "name": name,
- "content": content,
+ return apicontract.Success(apicontract.ExportHTMLData{ID: id, Name: name, Content: content})
+})
+
+func exportTitleOptions(options apicontract.ExportTitleOptions) (addTitle bool, customTitle string) {
+ addTitle = model.Conf.Export.AddTitle
+ if options.AddTitle != nil {
+ addTitle = *options.AddTitle
}
+ return addTitle, strings.TrimSpace(options.CustomTitle)
}
-func exportTitleOptions(arg map[string]any) (addTitle bool, customTitle string) {
- addTitle = model.Conf.Export.AddTitle
- if value, ok := arg["addTitle"].(bool); ok {
- addTitle = value
+func exportStrings(values []string) []string {
+ if len(values) == 0 {
+ return nil
}
- if value, ok := arg["customTitle"].(string); ok {
- customTitle = strings.TrimSpace(value)
+ return values
+}
+
+func exportMarkdownOptions(options apicontract.ExportMarkdownOptions) *model.ExportOptions {
+ integer := func(value *float64) *int {
+ if value == nil {
+ return nil
+ }
+ result := int(*value)
+ return &result
}
- return
+ return &model.ExportOptions{AddTitle: options.AddTitle, InlineMemo: options.InlineMemo,
+ BlockRefMode: integer(options.BlockRefMode), BlockEmbedMode: integer(options.BlockEmbedMode),
+ FileAnnotationRefMode: integer(options.FileAnnotationRefMode), BlockRefTextLeft: options.BlockRefTextLeft,
+ BlockRefTextRight: options.BlockRefTextRight, TagOpenMarker: options.TagOpenMarker, TagCloseMarker: options.TagCloseMarker,
+ IncludeSubDocs: options.IncludeSubDocs, IncludeRelatedDocs: options.IncludeRelatedDocs,
+ MarkdownYFM: options.MarkdownYFM, RemoveAssetsID: options.RemoveAssetsID}
}
func holdEncryptedExportRequest(c *gin.Context, id string, ret *gulu.Result) bool {
@@ -1081,50 +717,28 @@ func holdEncryptedExportRequests(c *gin.Context, ids []string, ret *gulu.Result)
return true
}
-func processPDF(c *gin.Context) {
+var processPDF = contractHandler(apicontract.ProcessPDF, func(c *gin.Context, request apicontract.ProcessPDFRequest) apicontract.Response[apicontract.Null] {
ret := gulu.Ret.NewResult()
- defer c.JSON(http.StatusOK, ret)
-
- arg, ok := util.JsonArg(c, ret)
- if !ok {
- return
- }
-
- var id, pdfPath, mergeDocHeadingMode, mergeContentHeadingMode string
- var merge bool
- if !util.ParseJsonArgs(arg, ret,
- util.BindJsonArg("id", &id, true, true),
- util.BindJsonArg("path", &pdfPath, true, true),
- util.BindJsonArg("merge", &merge, false, false),
- util.BindJsonArg("mergeDocHeadingMode", &mergeDocHeadingMode, false, false),
- util.BindJsonArg("mergeContentHeadingMode", &mergeContentHeadingMode, false, false),
- ) {
- return
- }
- removeAssets := arg["removeAssets"].(bool)
- watermark := arg["watermark"].(bool)
+
+ id := request.ID
+ pdfPath := request.Path
+ merge := request.Merge
+ mergeDocHeadingMode := request.MergeDocHeadingMode
+ mergeContentHeadingMode := request.MergeContentHeadingMode
+ removeAssets := request.RemoveAssets
+ watermark := request.Watermark
mergeHeadingOptions := model.MergeHeadingOptions{DocHeadingMode: mergeDocHeadingMode, ContentHeadingMode: mergeContentHeadingMode}
err := model.ProcessPDF(id, pdfPath, merge, removeAssets, watermark, mergeHeadingOptions)
if err != nil {
ret.Code = -1
ret.Msg = err.Error()
- return
+ return contractFailure[apicontract.Null](ret)
}
-}
+ return apicontract.Success(apicontract.Null{})
+})
-func exportPreview(c *gin.Context) {
- ret := gulu.Ret.NewResult()
- defer c.JSON(http.StatusOK, ret)
-
- arg, ok := util.JsonArg(c, ret)
- if !ok {
- return
- }
-
- var id string
- if !util.ParseJsonArgs(arg, ret, util.BindJsonArg("id", &id, true, true)) {
- return
- }
+var exportPreview = contractHandler(apicontract.ExportPreview, func(c *gin.Context, request apicontract.ExportIDRequest) apicontract.Response[apicontract.ExportPreviewData] {
+ id := request.ID
userAgentStr := c.GetHeader("User-Agent")
fillCSSVar := true
@@ -1153,31 +767,20 @@ func exportPreview(c *gin.Context) {
stdHTML = model.FilterContentByPublishAccess(c, publishAccess, bt.BoxID, bt.Path, stdHTML, true)
}
}
- ret.Data = map[string]any{
- "html": stdHTML,
- "fillCSSVar": fillCSSVar,
- }
-}
+ return apicontract.Success(apicontract.ExportPreviewData{HTML: stdHTML, FillCSSVar: fillCSSVar})
+})
-func exportAsFile(c *gin.Context) {
+var exportAsFile = contractHandler(apicontract.ExportAsFile, func(c *gin.Context, request apicontract.ExportAsFileRequest) apicontract.Response[apicontract.ExportFileData] {
ret := gulu.Ret.NewResult()
- defer c.JSON(http.StatusOK, ret)
- form, err := c.MultipartForm()
- if err != nil {
- logging.LogErrorf("export as file failed: %s", err)
- ret.Code = -1
- ret.Msg = err.Error()
- return
- }
+ file := request.File
- file := form.File["file"][0]
reader, err := file.Open()
if err != nil {
logging.LogErrorf("export as file failed: %s", err)
ret.Code = -1
ret.Msg = err.Error()
- return
+ return contractFailure[apicontract.ExportFileData](ret)
}
defer reader.Close()
@@ -1186,11 +789,11 @@ func exportAsFile(c *gin.Context) {
logging.LogErrorf("export as file failed: %s", err)
ret.Code = -1
ret.Msg = err.Error()
- return
+ return contractFailure[apicontract.ExportFileData](ret)
}
name := "file-" + file.Filename
- typ := form.Value["type"][0]
+ typ := request.Type
exts, _ := mime.ExtensionsByType(typ)
if 0 < len(exts) && filepath.Ext(name) != exts[0] {
name += exts[0]
@@ -1202,7 +805,7 @@ func exportAsFile(c *gin.Context) {
logging.LogErrorf("export as file failed: %s", err)
ret.Code = -1
ret.Msg = err.Error()
- return
+ return contractFailure[apicontract.ExportFileData](ret)
}
tmp := filepath.Join(tmpDir, name)
@@ -1211,35 +814,22 @@ func exportAsFile(c *gin.Context) {
logging.LogErrorf("export as file failed: %s", err)
ret.Code = -1
ret.Msg = err.Error()
- return
+ return contractFailure[apicontract.ExportFileData](ret)
}
- ret.Data = map[string]any{
- "file": path.Join("/export/", name),
- }
-}
+ return apicontract.Success(apicontract.ExportFileData{File: path.Join("/export/", name)})
+})
-func copyExportFile(c *gin.Context) {
+var copyExportFile = contractHandler(apicontract.CopyExportFile, func(c *gin.Context, request apicontract.CopyExportFileRequest) apicontract.Response[apicontract.Null] {
ret := gulu.Ret.NewResult()
- defer c.JSON(http.StatusOK, ret)
- arg, ok := util.JsonArg(c, ret)
- if !ok {
- return
- }
-
- var srcPath, dest string
- if !util.ParseJsonArgs(arg, ret,
- util.BindJsonArg("srcPath", &srcPath, true, true),
- util.BindJsonArg("dest", &dest, true, true),
- ) {
- return
- }
+ srcPath := request.SrcPath
+ dest := request.Dest
if !filepath.IsAbs(dest) {
ret.Code = -1
ret.Msg = "dest must be an absolute path"
- return
+ return contractFailure[apicontract.Null](ret)
}
srcPath = filepath.Clean(srcPath)
@@ -1253,7 +843,7 @@ func copyExportFile(c *gin.Context) {
if !gulu.File.IsSubPath(exportBaseDir, srcFullPath) && srcFullPath != exportBaseDir {
ret.Code = -1
ret.Msg = "invalid source path"
- return
+ return contractFailure[apicontract.Null](ret)
}
// 加密导出受控路径(<boxID>/<kind>/<file>):按注册表无条件校验,不依赖 IsEncryptedBox。
@@ -1266,19 +856,19 @@ func copyExportFile(c *gin.Context) {
if !ok {
ret.Code = -1
ret.Msg = "export file is not available"
- return
+ return contractFailure[apicontract.Null](ret)
}
if err := holdEncryptedBoxRequest(c, boxID); err != nil {
ret.Code = -1
ret.Msg = model.Conf.Language(314)
- return
+ return contractFailure[apicontract.Null](ret)
}
model.HoldBoxReadLock(boxID)
if _, dekErr := model.GetDEKIfUnlocked(boxID); dekErr != nil {
model.ReleaseBoxReadLock(boxID)
ret.Code = -1
ret.Msg = model.Conf.Language(314)
- return
+ return contractFailure[apicontract.Null](ret)
}
defer model.ReleaseBoxReadLock(boxID)
}
@@ -1286,16 +876,17 @@ func copyExportFile(c *gin.Context) {
if util.IsSensitivePath(dest) {
ret.Code = -2
ret.Msg = "refuse to copy to sensitive path: " + dest
- return
+ return contractFailure[apicontract.Null](ret)
}
if err := copyExportFileToDestination(srcFullPath, dest); err != nil {
logging.LogErrorf("copy export file [%s] to [%s] failed: %s", srcFullPath, dest, err)
ret.Code = -1
ret.Msg = err.Error()
- return
+ return contractFailure[apicontract.Null](ret)
}
-}
+ return apicontract.Success(apicontract.Null{})
+})
func copyExportFileToDestination(src, dest string) (err error) {
filelock.Lock(src)
diff --git a/kernel/apicontract/contracts.go b/kernel/apicontract/contracts.go
index e5837c0b43..207b8f0262 100644
--- a/kernel/apicontract/contracts.go
+++ b/kernel/apicontract/contracts.go
@@ -675,3 +675,38 @@ var InitRepoKey = define[EmptyRequest, RepoKeyData]("initRepoKey", "/api/repo/in
var ResetRepo = define[EmptyRequest, Null]("resetRepo", "/api/repo/resetRepo", NoBody, ResponseOptions{}, "POST")
var PurgeRepo = define[EmptyRequest, Null]("purgeRepo", "/api/repo/purgeRepo", NoBody, ResponseOptions{}, "POST")
var PurgeCloudRepo = define[EmptyRequest, Null]("purgeCloudRepo", "/api/repo/purgeCloudRepo", NoBody, ResponseOptions{}, "POST")
+
+var ExportCodeBlock = define[ExportIDRequest, ExportPathData]("exportCodeBlock", "/api/export/exportCodeBlock", JSONBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
+var ExportAttributeView = define[ExportAttributeViewRequest, ExportZipData]("exportAttributeView", "/api/export/exportAttributeView", JSONBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
+var Export2Liandi = define[ExportIDRequest, Null]("export2Liandi", "/api/export/export2Liandi", JSONBody, ResponseOptions{}, "POST")
+var ExportDataInFolder = define[ExportFolderRequest, ExportNameData]("exportDataInFolder", "/api/export/exportDataInFolder", JSONBody, ResponseOptions{}, "POST")
+var ExportData = define[EmptyRequest, ExportZipData]("exportData", "/api/export/exportData", NoBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
+var ExportResources = define[ExportResourcesRequest, ExportPathData]("exportResources", "/api/export/exportResources", JSONBody, ResponseOptions{AdditionalCodes: []int{1}, Text: true}, "POST")
+var ExportNotebookMd = define[ExportNotebookMarkdownRequest, ExportNamedZipData]("exportNotebookMd", "/api/export/exportNotebookMd", JSONBody, ResponseOptions{}, "POST")
+var ExportNotebooksMd = define[ExportNotebooksMarkdownRequest, ExportNamedZipData]("exportNotebooksMd", "/api/export/exportNotebooksMd", JSONBody, ResponseOptions{}, "POST")
+var ExportMds = define[ExportDocumentsMarkdownRequest, ExportNamedZipData]("exportMds", "/api/export/exportMds", JSONBody, ResponseOptions{}, "POST")
+var ExportMd = define[ExportMarkdownRequest, ExportNamedZipData]("exportMd", "/api/export/exportMd", JSONBody, ResponseOptions{}, "POST")
+var ExportNotebookSY = define[ExportIDRequest, ExportZipData]("exportNotebookSY", "/api/export/exportNotebookSY", JSONBody, ResponseOptions{}, "POST")
+var ExportNotebooksSY = define[ExportNotebooksRequest, ExportZipData]("exportNotebooksSY", "/api/export/exportNotebooksSY", JSONBody, ResponseOptions{}, "POST")
+var ExportSYs = define[ExportIDsRequest, ExportZipData]("exportSYs", "/api/export/exportSYs", JSONBody, ResponseOptions{}, "POST")
+var ExportSY = define[ExportIDRequest, ExportZipData]("exportSY", "/api/export/exportSY", JSONBody, ResponseOptions{}, "POST")
+var ExportMdContent = define[ExportMarkdownContentRequest, ExportMarkdownContentData]("exportMdContent", "/api/export/exportMdContent", JSONBody, ResponseOptions{}, "POST")
+var ExportDocx = define[ExportDocxRequest, ExportPathData]("exportDocx", "/api/export/exportDocx", JSONBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
+var ExportMdHTML = define[ExportMarkdownHTMLRequest, ExportHTMLData]("exportMdHTML", "/api/export/exportMdHTML", JSONBody, ResponseOptions{}, "POST")
+var ExportTempContent = define[ExportTempContentRequest, ExportURLData]("exportTempContent", "/api/export/exportTempContent", JSONBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
+var ExportBrowserHTML = define[ExportBrowserHTMLRequest, ExportZipData]("exportBrowserHTML", "/api/export/exportBrowserHTML", JSONBody, ResponseOptions{}, "POST")
+var ExportPreviewHTML = define[ExportPreviewHTMLRequest, ExportPreviewHTMLData]("exportPreviewHTML", "/api/export/exportPreviewHTML", JSONBody, ResponseOptions{}, "POST")
+var ExportHTML = define[ExportHTMLRequest, ExportHTMLData]("exportHTML", "/api/export/exportHTML", JSONBody, ResponseOptions{}, "POST")
+var ProcessPDF = define[ProcessPDFRequest, Null]("processPDF", "/api/export/processPDF", JSONBody, ResponseOptions{}, "POST")
+var ExportPreview = define[ExportIDRequest, ExportPreviewData]("exportPreview", "/api/export/preview", JSONBody, ResponseOptions{}, "POST")
+var ExportAsFile = define[ExportAsFileRequest, ExportFileData]("exportAsFile", "/api/export/exportAsFile", MultipartBody, ResponseOptions{}, "POST")
+var CopyExportFile = define[CopyExportFileRequest, Null]("copyExportFile", "/api/export/copyExportFile", JSONBody, ResponseOptions{AdditionalCodes: []int{-2}}, "POST")
+var ExportEPUB = define[ExportIDRequest, ExportNamedZipData]("exportEPUB", "/api/export/exportEPUB", JSONBody, ResponseOptions{}, "POST")
+var ExportRTF = define[ExportIDRequest, ExportNamedZipData]("exportRTF", "/api/export/exportRTF", JSONBody, ResponseOptions{}, "POST")
+var ExportODT = define[ExportIDRequest, ExportNamedZipData]("exportODT", "/api/export/exportODT", JSONBody, ResponseOptions{}, "POST")
+var ExportMediaWiki = define[ExportIDRequest, ExportNamedZipData]("exportMediaWiki", "/api/export/exportMediaWiki", JSONBody, ResponseOptions{}, "POST")
+var ExportOrgMode = define[ExportIDRequest, ExportNamedZipData]("exportOrgMode", "/api/export/exportOrgMode", JSONBody, ResponseOptions{}, "POST")
+var ExportOPML = define[ExportIDRequest, ExportNamedZipData]("exportOPML", "/api/export/exportOPML", JSONBody, ResponseOptions{}, "POST")
+var ExportTextile = define[ExportIDRequest, ExportNamedZipData]("exportTextile", "/api/export/exportTextile", JSONBody, ResponseOptions{}, "POST")
+var ExportAsciiDoc = define[ExportIDRequest, ExportNamedZipData]("exportAsciiDoc", "/api/export/exportAsciiDoc", JSONBody, ResponseOptions{}, "POST")
+var ExportReStructuredText = define[ExportIDRequest, ExportNamedZipData]("exportReStructuredText", "/api/export/exportReStructuredText", JSONBody, ResponseOptions{}, "POST")
diff --git a/kernel/apicontract/export.go b/kernel/apicontract/export.go
new file mode 100644
index 0000000000..cbf758e7e1
--- /dev/null
+++ b/kernel/apicontract/export.go
@@ -0,0 +1,310 @@
+package apicontract
+
+import (
+ "bytes"
+ "encoding/json"
+ "fmt"
+ "io"
+ "mime/multipart"
+ "reflect"
+ "strings"
+)
+
+type ExportIDRequest struct {
+ ID string `json:"id" api:"trim"`
+}
+type ExportIDsRequest struct {
+ IDs []string `json:"ids"`
+}
+type ExportAttributeViewRequest struct {
+ ID string `json:"id" api:"trim"`
+ BlockID string `json:"blockID" api:"trim"`
+}
+type ExportFolderRequest struct {
+ Folder string `json:"folder" api:"trim"`
+}
+type ExportResourcesRequest struct {
+ Name *string `json:"name" api:"optional"`
+ Paths *[]string `json:"paths" api:"optional"`
+}
+type ExportNotebooksRequest struct {
+ Notebooks []string `json:"notebooks" api:"optional,nullable,filterstrings"`
+}
+
+func (r ExportNotebooksRequest) IDs() (ids []string) {
+ for _, id := range r.Notebooks {
+ if id != "" {
+ ids = append(ids, id)
+ }
+ }
+ return
+}
+
+type ExportMarkdownOptions struct {
+ AddTitle *bool `json:"addTitle" api:"optional"`
+ InlineMemo *bool `json:"inlineMemo" api:"optional"`
+ BlockRefMode *float64 `json:"blockRefMode" api:"optional"`
+ BlockEmbedMode *float64 `json:"blockEmbedMode" api:"optional"`
+ FileAnnotationRefMode *float64 `json:"fileAnnotationRefMode" api:"optional"`
+ BlockRefTextLeft *string `json:"blockRefTextLeft" api:"optional"`
+ BlockRefTextRight *string `json:"blockRefTextRight" api:"optional"`
+ TagOpenMarker *string `json:"tagOpenMarker" api:"optional"`
+ TagCloseMarker *string `json:"tagCloseMarker" api:"optional"`
+ IncludeSubDocs *bool `json:"includeSubDocs" api:"optional"`
+ IncludeRelatedDocs *bool `json:"includeRelatedDocs" api:"optional"`
+ MarkdownYFM *bool `json:"markdownYFM" api:"optional"`
+ RemoveAssetsID *bool `json:"removeAssetsID" api:"optional"`
+ OptionsError error `json:"-"`
+}
+
+func (o ExportMarkdownOptions) Validate() error { return o.OptionsError }
+
+type ExportMarkdownRequest struct {
+ ExportIDRequest
+ ExportMarkdownOptions
+}
+type ExportDocumentsMarkdownRequest struct {
+ ExportIDsRequest
+ ExportMarkdownOptions
+}
+type ExportNotebookMarkdownRequest struct {
+ Notebook string `json:"notebook" api:"trim"`
+ ExportMarkdownOptions
+}
+type ExportNotebooksMarkdownRequest struct {
+ ExportNotebooksRequest
+ ExportMarkdownOptions
+}
+
+type ExportMarkdownContentOptions struct {
+ RefMode *float64 `json:"refMode" api:"optional"`
+ EmbedMode *float64 `json:"embedMode" api:"optional"`
+ YFM *bool `json:"yfm" api:"optional"`
+ FillCSSVar bool `json:"fillCSSVar" api:"optional,nullable"`
+ AdjustHeadingLevel bool `json:"adjustHeadingLevel" api:"optional,nullable"`
+ ImgTag bool `json:"imgTag" api:"optional,nullable"`
+ AddTitle *bool `json:"addTitle" api:"optional"`
+ OptionsError error `json:"-"`
+}
+
+func (o ExportMarkdownContentOptions) Validate() error { return o.OptionsError }
+
+type ExportMarkdownContentRequest struct {
+ ExportIDRequest
+ ExportMarkdownContentOptions
+}
+
+type ExportDocxRequest struct {
+ ID string `json:"id" api:"trim"`
+ SavePath string `json:"savePath" api:"trim"`
+ RemoveAssets bool `json:"removeAssets"`
+ Merge bool `json:"merge" api:"optional,nullable"`
+ MergeDocHeadingMode string `json:"mergeDocHeadingMode" api:"optional,nullable"`
+ MergeContentHeadingMode string `json:"mergeContentHeadingMode" api:"optional,nullable"`
+}
+type ExportTitleOptions struct {
+ AddTitle *bool `json:"addTitle" api:"optional"`
+ CustomTitle string `json:"customTitle" api:"optional,nullable,ignoretype"`
+}
+type ExportHTMLRequest struct {
+ ID string `json:"id" api:"trim"`
+ PDF bool `json:"pdf"`
+ SavePath string `json:"savePath" api:"optional,nullable"`
+ KeepFold bool `json:"keepFold" api:"optional,nullable"`
+ Merge bool `json:"merge" api:"optional,nullable"`
+ MergeDocHeadingMode string `json:"mergeDocHeadingMode" api:"optional,nullable"`
+ MergeContentHeadingMode string `json:"mergeContentHeadingMode" api:"optional,nullable"`
+ ExportTitleOptions
+}
+type ExportPreviewHTMLRequest struct {
+ ID string `json:"id" api:"trim"`
+ KeepFold bool `json:"keepFold" api:"optional,nullable"`
+ Merge bool `json:"merge" api:"optional,nullable"`
+ Image bool `json:"image" api:"optional,nullable"`
+ MergeDocHeadingMode string `json:"mergeDocHeadingMode" api:"optional,nullable"`
+ MergeContentHeadingMode string `json:"mergeContentHeadingMode" api:"optional,nullable"`
+ ExportTitleOptions
+}
+type ExportMarkdownHTMLRequest struct {
+ ID string `json:"id" api:"trim"`
+ SavePath string `json:"savePath" api:"optional,nullable"`
+}
+type ExportTempContentRequest struct {
+ Content string `json:"content"`
+ ID string `json:"id" api:"optional,nullable"`
+}
+type ExportBrowserHTMLRequest struct {
+ Folder string `json:"folder" api:"trim"`
+ HTML string `json:"html" api:"trim"`
+ Name string `json:"name" api:"trim"`
+}
+type ProcessPDFRequest struct {
+ ID string `json:"id" api:"trim"`
+ Path string `json:"path" api:"trim"`
+ Merge bool `json:"merge" api:"optional,nullable"`
+ MergeDocHeadingMode string `json:"mergeDocHeadingMode" api:"optional,nullable"`
+ MergeContentHeadingMode string `json:"mergeContentHeadingMode" api:"optional,nullable"`
+ RemoveAssets bool `json:"removeAssets"`
+ Watermark bool `json:"watermark"`
+}
+type ExportAsFileRequest struct {
+ File *multipart.FileHeader `json:"file"`
+ Type string `json:"type"`
+}
+type CopyExportFileRequest struct {
+ SrcPath string `json:"srcPath" api:"trim"`
+ Dest string `json:"dest" api:"trim"`
+}
+
+type ExportPathData struct {
+ Path string `json:"path"`
+}
+type ExportZipData struct {
+ Zip string `json:"zip"`
+}
+type ExportNamedZipData struct {
+ Name string `json:"name"`
+ Zip string `json:"zip"`
+}
+type ExportNameData struct {
+ Name string `json:"name"`
+}
+type ExportMarkdownContentData struct {
+ HPath string `json:"hPath"`
+ Content string `json:"content"`
+}
+type ExportHTMLData struct {
+ ID string `json:"id"`
+ Name string `json:"name"`
+ Content string `json:"content"`
+ Folder string `json:"folder,omitempty"`
+}
+type ExportPreviewHTMLData struct {
+ ID string `json:"id"`
+ Name string `json:"name"`
+ Content string `json:"content"`
+ Attrs map[string]string `json:"attrs"`
+ Type string `json:"type"`
+}
+type ExportURLData struct {
+ URL string `json:"url"`
+}
+type ExportPreviewData struct {
+ HTML string `json:"html"`
+ FillCSSVar bool `json:"fillCSSVar"`
+}
+type ExportFileData struct {
+ File string `json:"file"`
+}
+
+// 导出请求保持字段检查顺序,附加 Markdown 选项的错误延迟到笔记本准入后报告。
+func decodeExportFields(value reflect.Value, fields map[string]json.RawMessage) error {
+ for i := 0; i < value.NumField(); i++ {
+ field := value.Type().Field(i)
+ if !field.IsExported() || field.Tag.Get("json") == "-" {
+ continue
+ }
+ dest := value.Field(i)
+ if field.Anonymous {
+ err := decodeExportFields(dest, fields)
+ if field.Type == reflect.TypeFor[ExportMarkdownOptions]() || field.Type == reflect.TypeFor[ExportMarkdownContentOptions]() {
+ if err != nil {
+ dest.FieldByName("OptionsError").Set(reflect.ValueOf(err))
+ }
+ } else if err != nil {
+ return err
+ }
+ continue
+ }
+ name := strings.Split(field.Tag.Get("json"), ",")[0]
+ opts := "," + field.Tag.Get("api") + ","
+ has := func(option string) bool { return strings.Contains(opts, ","+option+",") }
+ if has("filterstrings") {
+ var entries []json.RawMessage
+ var values []string
+ if json.Unmarshal(fields[name], &entries) == nil {
+ for _, entry := range entries {
+ var text string
+ if json.Unmarshal(entry, &text) == nil && text != "" {
+ values = append(values, text)
+ }
+ }
+ }
+ dest.Set(reflect.ValueOf(values))
+ continue
+ }
+ raw := fields[name]
+ if len(raw) == 0 || bytes.Equal(bytes.TrimSpace(raw), []byte("null")) {
+ if has("optional") {
+ continue
+ }
+ return fmt.Errorf("Field [%s] is required", name)
+ }
+ if err := decodeRequestValue(raw, dest); err != nil {
+ if has("ignoretype") || value.Type() == reflect.TypeFor[ExportTitleOptions]() && name == "addTitle" {
+ dest.SetZero()
+ continue
+ }
+ kind := dest.Kind()
+ if kind == reflect.Pointer {
+ kind = dest.Type().Elem().Kind()
+ }
+ kindName := map[reflect.Kind]string{reflect.String: "String", reflect.Bool: "Boolean", reflect.Float64: "Number", reflect.Slice: "Array"}[kind]
+ return fmt.Errorf("Field [%s] should be of type [%s]", name, kindName)
+ }
+ if has("trim") {
+ text := strings.TrimSpace(dest.String())
+ if text == "" {
+ return fmt.Errorf("Field [%s] must not be empty", name)
+ }
+ dest.SetString(text)
+ }
+ }
+ return nil
+}
+
+func bindExportDecoder[Request, Data any](endpoint *Endpoint[Request, Data]) {
+ endpoint.decodeRequest = func(reader io.Reader) (request Request, err error) {
+ fields, err := blockRequestFields(reader, endpoint.Definition().Path)
+ if err != nil {
+ return request, err
+ }
+ err = decodeExportFields(reflect.ValueOf(&request).Elem(), fields)
+ return request, err
+ }
+}
+
+func init() {
+ bindExportDecoder(&ExportCodeBlock)
+ bindExportDecoder(&ExportAttributeView)
+ bindExportDecoder(&Export2Liandi)
+ bindExportDecoder(&ExportDataInFolder)
+ bindExportDecoder(&ExportResources)
+ bindExportDecoder(&ExportNotebookMd)
+ bindExportDecoder(&ExportNotebooksMd)
+ bindExportDecoder(&ExportMds)
+ bindExportDecoder(&ExportMd)
+ bindExportDecoder(&ExportNotebookSY)
+ bindExportDecoder(&ExportNotebooksSY)
+ bindExportDecoder(&ExportSYs)
+ bindExportDecoder(&ExportSY)
+ bindExportDecoder(&ExportMdContent)
+ bindExportDecoder(&ExportDocx)
+ bindExportDecoder(&ExportMdHTML)
+ bindExportDecoder(&ExportTempContent)
+ bindExportDecoder(&ExportBrowserHTML)
+ bindExportDecoder(&ExportPreviewHTML)
+ bindExportDecoder(&ExportHTML)
+ bindExportDecoder(&ProcessPDF)
+ bindExportDecoder(&ExportPreview)
+ bindExportDecoder(&CopyExportFile)
+ bindExportDecoder(&ExportEPUB)
+ bindExportDecoder(&ExportRTF)
+ bindExportDecoder(&ExportODT)
+ bindExportDecoder(&ExportMediaWiki)
+ bindExportDecoder(&ExportOrgMode)
+ bindExportDecoder(&ExportOPML)
+ bindExportDecoder(&ExportTextile)
+ bindExportDecoder(&ExportAsciiDoc)
+ bindExportDecoder(&ExportReStructuredText)
+}
diff --git a/kernel/apicontract/export_test.go b/kernel/apicontract/export_test.go
new file mode 100644
index 0000000000..a9772a0674
--- /dev/null
+++ b/kernel/apicontract/export_test.go
@@ -0,0 +1,90 @@
+package apicontract
+
+import (
+ "strings"
+ "testing"
+)
+
+func TestExportRequiredFieldCompatibility(t *testing.T) {
+ for _, entry := range []struct{ body, message string }{
+ {`{}`, "Field [id] is required"}, {`{"id":null}`, "Field [id] is required"},
+ {`{"id":false}`, "Field [id] should be of type [String]"}, {`{"id":" \t "}`, "Field [id] must not be empty"},
+ } {
+ if _, err := ExportCodeBlock.Decode(strings.NewReader(entry.body)); err == nil || err.Error() != entry.message {
+ t.Fatalf("field error changed: %s: %v", entry.body, err)
+ }
+ }
+ request, err := ExportDocx.Decode(strings.NewReader(`{"id":" id ","savePath":" path ","removeAssets":false,"merge":null,"mergeDocHeadingMode":" untouched "}`))
+ if err != nil || request.ID != "id" || request.SavePath != "path" || request.Merge || request.MergeDocHeadingMode != " untouched " {
+ t.Fatalf("docx normalization changed: %+v %v", request, err)
+ }
+ if _, err := ExportDocx.Decode(strings.NewReader(`{"id":"id","savePath":"path","removeAssets":null}`)); err == nil || err.Error() != "Field [removeAssets] is required" {
+ t.Fatal(err)
+ }
+}
+
+func TestExportOptionsAdmissionOrder(t *testing.T) {
+ request, err := ExportNotebookMd.Decode(strings.NewReader(`{"notebook":" box ","blockRefMode":false}`))
+ if err != nil || request.Notebook != "box" || request.Validate() == nil {
+ t.Fatalf("options error was not deferred: %+v %v", request, err)
+ }
+ content, err := ExportMdContent.Decode(strings.NewReader(`{"id":" id ","refMode":2.9,"embedMode":-2.9,"yfm":null,"fillCSSVar":null,"imgTag":false,"addTitle":true}`))
+ if err != nil || content.Validate() != nil || content.ID != "id" || int(*content.RefMode) != 2 || int(*content.EmbedMode) != -2 || content.YFM != nil || content.FillCSSVar || !*content.AddTitle {
+ t.Fatalf("content options changed: %+v %v", content, err)
+ }
+ content, err = ExportMdContent.Decode(strings.NewReader(`{"id":"id","fillCSSVar":"bad"}`))
+ if err != nil || content.Validate() == nil || content.Validate().Error() != "Field [fillCSSVar] should be of type [Boolean]" {
+ t.Fatalf("content option validation changed: %+v %v", content, err)
+ }
+ md, err := ExportMd.Decode(strings.NewReader(`{"id":"id","addTitle":false,"inlineMemo":null,"blockRefMode":3.9,"blockRefTextLeft":" left ","includeRelatedDocs":true}`))
+ if err != nil || md.Validate() != nil || *md.AddTitle || md.InlineMemo != nil || int(*md.BlockRefMode) != 3 || *md.BlockRefTextLeft != " left " || !*md.IncludeRelatedDocs {
+ t.Fatalf("markdown options changed: %+v %v", md, err)
+ }
+}
+
+func TestExportNotebookFiltering(t *testing.T) {
+ for _, body := range []string{`{}`, `{"notebooks":null}`, `{"notebooks":true}`, `{"notebooks":{}}`} {
+ request, err := ExportNotebooksSY.Decode(strings.NewReader(body))
+ if err != nil || request.IDs() != nil {
+ t.Fatalf("notebook filtering changed: %+v %v", request, err)
+ }
+ }
+ request, err := ExportNotebooksMd.Decode(strings.NewReader(`{"notebooks":[null,3,false,""," box ","box","box"],"addTitle":false}`))
+ if err != nil || request.Validate() != nil || strings.Join(request.IDs(), ",") != " box ,box,box" {
+ t.Fatalf("notebook order changed: %+v %v", request, err)
+ }
+}
+
+func TestExportIgnoredTitleOptions(t *testing.T) {
+ for _, extra := range []string{``, `,"addTitle":null,"customTitle":null`, `,"addTitle":"bad","customTitle":false`, `,"addTitle":{},"customTitle":[]`} {
+ request, err := ExportHTML.Decode(strings.NewReader(`{"id":"id","pdf":false` + extra + `}`))
+ if err != nil || request.AddTitle != nil || request.CustomTitle != "" {
+ t.Fatalf("ignored title option changed: %+v %v", request, err)
+ }
+ }
+ request, err := ExportPreviewHTML.Decode(strings.NewReader(`{"id":"id","image":true,"addTitle":false,"customTitle":" custom "}`))
+ if err != nil || !request.Image || request.AddTitle == nil || *request.AddTitle || request.CustomTitle != " custom " {
+ t.Fatalf("title option changed: %+v %v", request, err)
+ }
+}
+
+func TestExportResourcesOptionalPaths(t *testing.T) {
+ for _, body := range []string{`{}`, `{"paths":null,"name":null}`} {
+ request, err := ExportResources.Decode(strings.NewReader(body))
+ if err != nil || request.Paths != nil {
+ t.Fatalf("missing paths must reach business validation: %+v %v", request, err)
+ }
+ }
+ request, err := ExportResources.Decode(strings.NewReader(`{"paths":[],"name":" name "}`))
+ if err != nil || request.Paths == nil || len(*request.Paths) != 0 || *request.Name != " name " {
+ t.Fatalf("empty paths changed: %+v %v", request, err)
+ }
+ for _, body := range []string{`{"paths":[null]}`, `{"paths":[false]}`} {
+ if _, err := ExportResources.Decode(strings.NewReader(body)); err == nil {
+ t.Fatalf("invalid resource path accepted: %s", body)
+ }
+ }
+ if _, err := ExportData.Decode(strings.NewReader("ignored body")); err != nil {
+ t.Fatal(err)
+ }
+}
diff --git a/kernel/apicontract/legacy_routes.json b/kernel/apicontract/legacy_routes.json
index 929e009a87..f13fff5041 100644
--- a/kernel/apicontract/legacy_routes.json
+++ b/kernel/apicontract/legacy_routes.json
@@ -114,40 +114,6 @@
{"method":"POST","path":"/api/av/setDatabaseBlockView","handler":"setDatabaseBlockView"},
{"method":"POST","path":"/api/av/sortAttributeViewKey","handler":"sortAttributeViewKey"},
{"method":"POST","path":"/api/av/sortAttributeViewViewKey","handler":"sortAttributeViewViewKey"},
- {"method":"POST","path":"/api/export/copyExportFile","handler":"copyExportFile"},
- {"method":"POST","path":"/api/export/export2Liandi","handler":"export2Liandi"},
- {"method":"POST","path":"/api/export/exportAsFile","handler":"exportAsFile"},
- {"method":"POST","path":"/api/export/exportAsciiDoc","handler":"exportAsciiDoc"},
- {"method":"POST","path":"/api/export/exportAttributeView","handler":"exportAttributeView"},
- {"method":"POST","path":"/api/export/exportBrowserHTML","handler":"exportBrowserHTML"},
- {"method":"POST","path":"/api/export/exportCodeBlock","handler":"exportCodeBlock"},
- {"method":"POST","path":"/api/export/exportData","handler":"exportData"},
- {"method":"POST","path":"/api/export/exportDataInFolder","handler":"exportDataInFolder"},
- {"method":"POST","path":"/api/export/exportDocx","handler":"exportDocx"},
- {"method":"POST","path":"/api/export/exportEPUB","handler":"exportEPUB"},
- {"method":"POST","path":"/api/export/exportHTML","handler":"exportHTML"},
- {"method":"POST","path":"/api/export/exportMd","handler":"exportMd"},
- {"method":"POST","path":"/api/export/exportMdContent","handler":"exportMdContent"},
- {"method":"POST","path":"/api/export/exportMdHTML","handler":"exportMdHTML"},
- {"method":"POST","path":"/api/export/exportMds","handler":"exportMds"},
- {"method":"POST","path":"/api/export/exportMediaWiki","handler":"exportMediaWiki"},
- {"method":"POST","path":"/api/export/exportNotebookMd","handler":"exportNotebookMd"},
- {"method":"POST","path":"/api/export/exportNotebookSY","handler":"exportNotebookSY"},
- {"method":"POST","path":"/api/export/exportNotebooksMd","handler":"exportNotebooksMd"},
- {"method":"POST","path":"/api/export/exportNotebooksSY","handler":"exportNotebooksSY"},
- {"method":"POST","path":"/api/export/exportODT","handler":"exportODT"},
- {"method":"POST","path":"/api/export/exportOPML","handler":"exportOPML"},
- {"method":"POST","path":"/api/export/exportOrgMode","handler":"exportOrgMode"},
- {"method":"POST","path":"/api/export/exportPreviewHTML","handler":"exportPreviewHTML"},
- {"method":"POST","path":"/api/export/exportRTF","handler":"exportRTF"},
- {"method":"POST","path":"/api/export/exportReStructuredText","handler":"exportReStructuredText"},
- {"method":"POST","path":"/api/export/exportResources","handler":"exportResources"},
- {"method":"POST","path":"/api/export/exportSY","handler":"exportSY"},
- {"method":"POST","path":"/api/export/exportSYs","handler":"exportSYs"},
- {"method":"POST","path":"/api/export/exportTempContent","handler":"exportTempContent"},
- {"method":"POST","path":"/api/export/exportTextile","handler":"exportTextile"},
- {"method":"POST","path":"/api/export/preview","handler":"exportPreview"},
- {"method":"POST","path":"/api/export/processPDF","handler":"processPDF"},
{"method":"POST","path":"/api/extension/copy","handler":"extensionCopy"},
{"method":"POST","path":"/api/filetree/authFilePublishAccess","handler":"authFilePublishAccess"},
{"method":"POST","path":"/api/filetree/changeSort","handler":"changeSort"},
diff --git a/kernel/apicontract/schema.json b/kernel/apicontract/schema.json
index 0b705e6218..04727cf6b0 100644
--- a/kernel/apicontract/schema.json
+++ b/kernel/apicontract/schema.json
@@ -4052,6 +4052,22 @@
],
"additionalProperties": false
},
+ "CopyExportFileRequestInput": {
+ "type": "object",
+ "properties": {
+ "dest": {
+ "type": "string"
+ },
+ "srcPath": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "dest",
+ "srcPath"
+ ],
+ "additionalProperties": false
+ },
"CopyFileRequestInput": {
"type": "object",
"properties": {
@@ -5912,68 +5928,113 @@
],
"additionalProperties": false
},
- "ExportRepoFileRequestInput": {
+ "ExportAsFileRequestInput": {
"type": "object",
"properties": {
- "id": {
+ "file": {
+ "type": "string",
+ "format": "binary"
+ },
+ "type": {
"type": "string"
}
},
"required": [
- "id"
+ "file",
+ "type"
],
"additionalProperties": false
},
- "FileAnnotationRefRequestInput": {
+ "ExportAttributeViewRequestInput": {
"type": "object",
"properties": {
- "id": {
+ "blockID": {
"type": "string"
},
- "notebook": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
+ "id": {
+ "type": "string"
}
},
"required": [
+ "blockID",
"id"
],
"additionalProperties": false
},
- "FilePathData": {
+ "ExportBrowserHTMLRequestInput": {
"type": "object",
"properties": {
- "path": {
+ "folder": {
"type": "string"
- }
- },
- "required": [
- "path"
- ],
- "additionalProperties": false
- },
- "FilePathRequestInput": {
- "type": "object",
- "properties": {
- "path": {
+ },
+ "html": {
+ "type": "string"
+ },
+ "name": {
"type": "string"
}
},
"required": [
- "path"
+ "folder",
+ "html",
+ "name"
],
"additionalProperties": false
},
- "FindReplaceRequestInput": {
+ "ExportDocumentsMarkdownRequestInput": {
"type": "object",
"properties": {
- "groupBy": {
+ "addTitle": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "blockEmbedMode": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "blockRefMode": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "blockRefTextLeft": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "blockRefTextRight": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "fileAnnotationRefMode": {
"anyOf": [
{
"type": "number"
@@ -5989,63 +6050,57 @@
"type": "string"
}
},
- "k": {
- "type": "string"
- },
- "method": {
+ "includeRelatedDocs": {
"anyOf": [
{
- "type": "number"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "orderBy": {
+ "includeSubDocs": {
"anyOf": [
{
- "type": "number"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "page": {
+ "inlineMemo": {
"anyOf": [
{
- "type": "number"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "pageSize": {
+ "markdownYFM": {
"anyOf": [
{
- "type": "number"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "paths": {
+ "removeAssetsID": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "query": {
+ "tagCloseMarker": {
"anyOf": [
{
"type": "string"
@@ -6055,211 +6110,166 @@
}
]
},
- "r": {
+ "tagOpenMarker": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "ids"
+ ],
+ "additionalProperties": false
+ },
+ "ExportDocxRequestInput": {
+ "type": "object",
+ "properties": {
+ "id": {
"type": "string"
},
- "replaceTypes": {
+ "merge": {
"anyOf": [
{
- "type": "object",
- "additionalProperties": {
- "type": "boolean"
- }
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "subTypes": {
+ "mergeContentHeadingMode": {
"anyOf": [
{
- "$ref": "#/$defs/SearchSubtypeFilterInput"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "types": {
+ "mergeDocHeadingMode": {
"anyOf": [
{
- "type": "object",
- "additionalProperties": {
- "type": "boolean"
- }
+ "type": "string"
},
{
"type": "null"
}
]
+ },
+ "removeAssets": {
+ "type": "boolean"
+ },
+ "savePath": {
+ "type": "string"
}
},
"required": [
- "ids",
- "k",
- "r"
+ "id",
+ "removeAssets",
+ "savePath"
],
"additionalProperties": false
},
- "FullBlockInfo": {
+ "ExportFileData": {
"type": "object",
"properties": {
- "box": {
- "type": "string"
- },
- "path": {
- "type": "string"
- },
- "rootChildID": {
- "type": "string"
- },
- "rootID": {
- "type": "string"
- },
- "rootIcon": {
+ "file": {
"type": "string"
- },
- "rootTitle": {
+ }
+ },
+ "required": [
+ "file"
+ ],
+ "additionalProperties": false
+ },
+ "ExportFolderRequestInput": {
+ "type": "object",
+ "properties": {
+ "folder": {
"type": "string"
- },
- "rootTitleEmpty": {
- "type": "boolean"
}
},
"required": [
- "box",
- "path",
- "rootChildID",
- "rootID",
- "rootIcon",
- "rootTitle",
- "rootTitleEmpty"
+ "folder"
],
"additionalProperties": false
},
- "FullTextSearchBlockData": {
+ "ExportHTMLData": {
"type": "object",
"properties": {
- "blocks": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/SearchBlock"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- {
- "type": "null"
- }
- ]
- },
- "docMode": {
- "type": "boolean"
+ "content": {
+ "type": "string"
},
- "matchedBlockCount": {
- "type": "integer"
+ "folder": {
+ "type": "string"
},
- "matchedRootCount": {
- "type": "integer"
+ "id": {
+ "type": "string"
},
- "pageCount": {
- "type": "integer"
+ "name": {
+ "type": "string"
}
},
"required": [
- "blocks",
- "docMode",
- "matchedBlockCount",
- "matchedRootCount",
- "pageCount"
+ "content",
+ "id",
+ "name"
],
"additionalProperties": false
},
- "FullTextSearchBlockRequestInput": {
+ "ExportHTMLRequestInput": {
"type": "object",
"properties": {
- "groupBy": {
+ "addTitle": {
"anyOf": [
{
- "type": "number"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "method": {
+ "customTitle": {
"anyOf": [
{
- "type": "number"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "notebook": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "orderBy": {
- "anyOf": [
- {
- "type": "number"
- },
- {
- "type": "null"
- }
- ]
- },
- "page": {
- "anyOf": [
- {
- "type": "number"
- },
- {
- "type": "null"
- }
- ]
+ "id": {
+ "type": "string"
},
- "pageSize": {
+ "keepFold": {
"anyOf": [
{
- "type": "number"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "paths": {
+ "merge": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "query": {
+ "mergeContentHeadingMode": {
"anyOf": [
{
"type": "string"
@@ -6269,46 +6279,20 @@
}
]
},
- "searchHPath": {
+ "mergeDocHeadingMode": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "subTypes": {
- "anyOf": [
- {
- "$ref": "#/$defs/SearchSubtypeFilterInput"
- },
- {
- "type": "null"
- }
- ]
+ "pdf": {
+ "type": "boolean"
},
- "types": {
- "anyOf": [
- {
- "type": "object",
- "additionalProperties": {
- "type": "boolean"
- }
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "additionalProperties": false
- },
- "GetBazaarIconRequestInput": {
- "type": "object",
- "properties": {
- "keyword": {
+ "savePath": {
"anyOf": [
{
"type": "string"
@@ -6319,163 +6303,125 @@
]
}
},
+ "required": [
+ "id",
+ "pdf"
+ ],
"additionalProperties": false
},
- "GetBazaarPackageREADMERequestInput": {
+ "ExportIDRequestInput": {
"type": "object",
"properties": {
- "packageType": {
- "type": "string"
- },
- "repoHash": {
- "type": "string"
- },
- "repoURL": {
+ "id": {
"type": "string"
}
},
"required": [
- "packageType",
- "repoHash",
- "repoURL"
+ "id"
],
"additionalProperties": false
},
- "GetBazaarPackageRatingRequestInput": {
+ "ExportIDsRequestInput": {
"type": "object",
"properties": {
- "packageName": {
- "type": "string"
- },
- "packageType": {
- "type": "string"
+ "ids": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
}
},
"required": [
- "packageName",
- "packageType"
+ "ids"
],
"additionalProperties": false
},
- "GetBazaarPackageRatingsRequestInput": {
+ "ExportMarkdownContentData": {
"type": "object",
"properties": {
- "packageNames": {
- "type": "array",
- "items": {
- "type": "string"
- }
+ "content": {
+ "type": "string"
},
- "packageType": {
+ "hPath": {
"type": "string"
}
},
"required": [
- "packageNames",
- "packageType"
+ "content",
+ "hPath"
],
"additionalProperties": false
},
- "GetBazaarPackageRequestInput": {
+ "ExportMarkdownContentRequestInput": {
"type": "object",
"properties": {
- "frontend": {
+ "addTitle": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "packageName": {
- "type": "string"
- },
- "packageType": {
- "type": "string"
- }
- },
- "required": [
- "packageName",
- "packageType"
- ],
- "additionalProperties": false
- },
- "GetBazaarPackageUserRatingsRequestInput": {
- "type": "object",
- "properties": {
- "packageNames": {
- "type": "array",
- "items": {
- "type": "string"
- }
+ "adjustHeadingLevel": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "packageType": {
- "type": "string"
- }
- },
- "required": [
- "packageNames",
- "packageType"
- ],
- "additionalProperties": false
- },
- "GetBazaarPluginRequestInput": {
- "type": "object",
- "properties": {
- "frontend": {
- "type": "string"
+ "embedMode": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "keyword": {
+ "fillCSSVar": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
- }
- },
- "required": [
- "frontend"
- ],
- "additionalProperties": false
- },
- "GetBazaarTemplateRequestInput": {
- "type": "object",
- "properties": {
- "keyword": {
+ },
+ "id": {
+ "type": "string"
+ },
+ "imgTag": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "GetBazaarThemeRequestInput": {
- "type": "object",
- "properties": {
- "frontend": {
+ },
+ "refMode": {
"anyOf": [
{
- "type": "string"
+ "type": "number"
},
{
"type": "null"
}
]
},
- "keyword": {
+ "yfm": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
@@ -6483,12 +6429,18 @@
]
}
},
+ "required": [
+ "id"
+ ],
"additionalProperties": false
},
- "GetBazaarWidgetRequestInput": {
+ "ExportMarkdownHTMLRequestInput": {
"type": "object",
"properties": {
- "keyword": {
+ "id": {
+ "type": "string"
+ },
+ "savePath": {
"anyOf": [
{
"type": "string"
@@ -6499,24 +6451,15 @@
]
}
},
- "additionalProperties": false
- },
- "GetCloudRepoSnapshotsRequestInput": {
- "type": "object",
- "properties": {
- "page": {
- "type": "number"
- }
- },
"required": [
- "page"
+ "id"
],
"additionalProperties": false
},
- "GetEmbedBlockRequestInput": {
+ "ExportMarkdownRequestInput": {
"type": "object",
"properties": {
- "breadcrumb": {
+ "addTitle": {
"anyOf": [
{
"type": "boolean"
@@ -6526,10 +6469,17 @@
}
]
},
- "embedBlockID": {
- "type": "string"
+ "blockEmbedMode": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "headingMode": {
+ "blockRefMode": {
"anyOf": [
{
"type": "number"
@@ -6539,13 +6489,17 @@
}
]
},
- "includeIDs": {
- "type": "array",
- "items": {
- "type": "string"
- }
+ "blockRefTextLeft": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "notebook": {
+ "blockRefTextRight": {
"anyOf": [
{
"type": "string"
@@ -6554,114 +6508,71 @@
"type": "null"
}
]
- }
- },
- "required": [
- "embedBlockID",
- "includeIDs"
- ],
- "additionalProperties": false
- },
- "GetInstalledIconRequestInput": {
- "type": "object",
- "properties": {
- "keyword": {
+ },
+ "fileAnnotationRefMode": {
"anyOf": [
{
- "type": "string"
+ "type": "number"
},
{
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "GetInstalledPackageSizeRequestInput": {
- "type": "object",
- "properties": {
- "packageName": {
- "type": "string"
},
- "packageType": {
- "type": "string"
- }
- },
- "required": [
- "packageName",
- "packageType"
- ],
- "additionalProperties": false
- },
- "GetInstalledPluginRequestInput": {
- "type": "object",
- "properties": {
- "frontend": {
+ "id": {
"type": "string"
},
- "keyword": {
+ "includeRelatedDocs": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
- }
- },
- "required": [
- "frontend"
- ],
- "additionalProperties": false
- },
- "GetInstalledTemplateRequestInput": {
- "type": "object",
- "properties": {
- "keyword": {
+ },
+ "includeSubDocs": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "GetInstalledThemeRequestInput": {
- "type": "object",
- "properties": {
- "frontend": {
+ },
+ "inlineMemo": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "keyword": {
+ "markdownYFM": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "GetInstalledWidgetRequestInput": {
- "type": "object",
- "properties": {
- "keyword": {
+ },
+ "removeAssetsID": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "tagCloseMarker": {
"anyOf": [
{
"type": "string"
@@ -6670,263 +6581,181 @@
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "GetRepoDocHistoryRequestInput": {
- "type": "object",
- "properties": {
- "id": {
- "type": "string"
},
- "page": {
- "type": "number"
+ "tagOpenMarker": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
"required": [
- "id",
- "page"
+ "id"
],
"additionalProperties": false
},
- "GetRepoFileRequestInput": {
+ "ExportNameData": {
"type": "object",
"properties": {
- "id": {
+ "name": {
"type": "string"
}
},
"required": [
- "id"
+ "name"
],
"additionalProperties": false
},
- "GetRepoSnapshotsRequestInput": {
+ "ExportNamedZipData": {
"type": "object",
"properties": {
- "page": {
- "type": "number"
+ "name": {
+ "type": "string"
+ },
+ "zip": {
+ "type": "string"
}
},
"required": [
- "page"
+ "name",
+ "zip"
],
"additionalProperties": false
},
- "GetSnippetRequestInput": {
+ "ExportNotebookMarkdownRequestInput": {
"type": "object",
"properties": {
- "enabled": {
- "type": "number"
- },
- "keyword": {
+ "addTitle": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "type": {
- "type": "string"
- }
- },
- "required": [
- "enabled",
- "type"
- ],
- "additionalProperties": false
- },
- "GetTagRequestInput": {
- "type": "object",
- "properties": {
- "app": {
+ "blockEmbedMode": {
"anyOf": [
{
- "type": "string"
+ "type": "number"
},
{
"type": "null"
}
]
},
- "ignoreMaxListHint": {
+ "blockRefMode": {
"anyOf": [
{
- "type": "boolean"
+ "type": "number"
},
{
"type": "null"
}
]
},
- "sort": {
+ "blockRefTextLeft": {
"anyOf": [
{
- "type": "number"
+ "type": "string"
},
{
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "GetUpdatedPackageRequestInput": {
- "type": "object",
- "properties": {
- "frontend": {
- "type": "string"
- }
- },
- "required": [
- "frontend"
- ],
- "additionalProperties": false
- },
- "GlobalGraphConf": {
- "type": "object",
- "properties": {
- "d3": {
+ },
+ "blockRefTextRight": {
"anyOf": [
{
- "$ref": "#/$defs/GraphD3"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "dailyNote": {
- "type": "boolean"
- },
- "minRefs": {
- "type": "integer"
- },
- "type": {
+ "fileAnnotationRefMode": {
"anyOf": [
{
- "$ref": "#/$defs/GraphTypeFilter"
+ "type": "number"
},
{
"type": "null"
}
]
- }
- },
- "required": [
- "d3",
- "dailyNote",
- "minRefs",
- "type"
- ],
- "additionalProperties": false
- },
- "GlobalGraphRequestInput": {
- "type": "object",
- "properties": {
- "conf": {
- "$ref": "#/$defs/GraphConfigurationFieldsInput"
},
- "k": {
+ "includeRelatedDocs": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "reqId": {
+ "includeSubDocs": {
"anyOf": [
{
- "$ref": "#/$defs/JSONValue"
+ "type": "boolean"
},
{
"type": "null"
}
]
- }
- },
- "required": [
- "conf"
- ],
- "additionalProperties": false
- },
- "GlobalGraphResult": {
- "type": "object",
- "properties": {
- "box": {
- "type": "string"
- },
- "conf": {
- "$ref": "#/$defs/GlobalGraphConf"
},
- "links": {
+ "inlineMemo": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/GraphLink"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "nodes": {
+ "markdownYFM": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/GraphNode"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "reqId": {
- "$ref": "#/$defs/JSONValue"
- }
- },
- "required": [
- "box",
- "conf",
- "links",
- "nodes",
- "reqId"
- ],
- "additionalProperties": false
- },
- "GraphArrows": {
- "type": "object",
- "properties": {
- "to": {
+ "notebook": {
+ "type": "string"
+ },
+ "removeAssetsID": {
"anyOf": [
{
- "$ref": "#/$defs/GraphArrowsTo"
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "tagCloseMarker": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "tagOpenMarker": {
+ "anyOf": [
+ {
+ "type": "string"
},
{
"type": "null"
@@ -6935,124 +6764,74 @@
}
},
"required": [
- "to"
- ],
- "additionalProperties": false
- },
- "GraphArrowsTo": {
- "type": "object",
- "properties": {
- "enabled": {
- "type": "boolean"
- }
- },
- "required": [
- "enabled"
+ "notebook"
],
"additionalProperties": false
},
- "GraphConfigurationFieldsInput": {
+ "ExportNotebooksMarkdownRequestInput": {
"type": "object",
"properties": {
- "d3": {
+ "addTitle": {
"anyOf": [
{
- "$ref": "#/$defs/GraphD3Input"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "dailyNote": {
+ "blockEmbedMode": {
"anyOf": [
{
- "type": "boolean"
+ "type": "number"
},
{
"type": "null"
}
]
},
- "minRefs": {
+ "blockRefMode": {
"anyOf": [
{
- "type": "integer"
+ "type": "number"
},
{
"type": "null"
}
]
},
- "type": {
+ "blockRefTextLeft": {
"anyOf": [
{
- "$ref": "#/$defs/GraphTypeFilterInput"
+ "type": "string"
},
{
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "GraphCorrelation": {
- "type": "object",
- "properties": {
- "reqId": {
- "$ref": "#/$defs/JSONValue"
- }
- },
- "required": [
- "reqId"
- ],
- "additionalProperties": false
- },
- "GraphD3": {
- "type": "object",
- "properties": {
- "arrow": {
- "type": "boolean"
- },
- "centerStrength": {
- "type": "number"
- },
- "collideRadius": {
- "type": "number"
- },
- "collideStrength": {
- "type": "number"
},
- "lineOpacity": {
- "type": "number"
- },
- "linkDistance": {
- "type": "integer"
+ "blockRefTextRight": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "linkWidth": {
- "type": "number"
+ "fileAnnotationRefMode": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "nodeSize": {
- "type": "number"
- }
- },
- "required": [
- "arrow",
- "centerStrength",
- "collideRadius",
- "collideStrength",
- "lineOpacity",
- "linkDistance",
- "linkWidth",
- "nodeSize"
- ],
- "additionalProperties": false
- },
- "GraphD3Input": {
- "type": "object",
- "properties": {
- "arrow": {
+ "includeRelatedDocs": {
"anyOf": [
{
"type": "boolean"
@@ -7062,70 +6841,73 @@
}
]
},
- "centerStrength": {
+ "includeSubDocs": {
"anyOf": [
{
- "type": "number"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "collideRadius": {
+ "inlineMemo": {
"anyOf": [
{
- "type": "number"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "collideStrength": {
+ "markdownYFM": {
"anyOf": [
{
- "type": "number"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "lineOpacity": {
+ "notebooks": {
"anyOf": [
{
- "type": "number"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "linkDistance": {
+ "removeAssetsID": {
"anyOf": [
{
- "type": "integer"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "linkWidth": {
+ "tagCloseMarker": {
"anyOf": [
{
- "type": "number"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "nodeSize": {
+ "tagOpenMarker": {
"anyOf": [
{
- "type": "number"
+ "type": "string"
},
{
"type": "null"
@@ -7135,62 +6917,76 @@
},
"additionalProperties": false
},
- "GraphLink": {
+ "ExportNotebooksRequestInput": {
"type": "object",
"properties": {
- "arrows": {
+ "notebooks": {
"anyOf": [
{
- "$ref": "#/$defs/GraphArrows"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
- },
- "from": {
+ }
+ },
+ "additionalProperties": false
+ },
+ "ExportPathData": {
+ "type": "object",
+ "properties": {
+ "path": {
"type": "string"
- },
- "ref": {
+ }
+ },
+ "required": [
+ "path"
+ ],
+ "additionalProperties": false
+ },
+ "ExportPreviewData": {
+ "type": "object",
+ "properties": {
+ "fillCSSVar": {
"type": "boolean"
},
- "to": {
+ "html": {
"type": "string"
}
},
"required": [
- "arrows",
- "from",
- "ref",
- "to"
+ "fillCSSVar",
+ "html"
],
"additionalProperties": false
},
- "GraphNode": {
+ "ExportPreviewHTMLData": {
"type": "object",
"properties": {
- "box": {
- "type": "string"
- },
- "defs": {
- "type": "integer"
- },
- "id": {
- "type": "string"
+ "attrs": {
+ "anyOf": [
+ {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "label": {
+ "content": {
"type": "string"
},
- "path": {
+ "id": {
"type": "string"
},
- "refs": {
- "type": "integer"
- },
- "size": {
- "type": "number"
- },
- "title": {
+ "name": {
"type": "string"
},
"type": {
@@ -7198,103 +6994,41 @@
}
},
"required": [
- "box",
- "defs",
+ "attrs",
+ "content",
"id",
- "label",
- "path",
- "refs",
- "size",
+ "name",
"type"
],
"additionalProperties": false
},
- "GraphTypeFilter": {
+ "ExportPreviewHTMLRequestInput": {
"type": "object",
"properties": {
- "blockquote": {
- "type": "boolean"
- },
- "callout": {
- "type": "boolean"
- },
- "code": {
- "type": "boolean"
+ "addTitle": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "heading": {
- "type": "boolean"
- },
- "list": {
- "type": "boolean"
- },
- "listItem": {
- "type": "boolean"
- },
- "math": {
- "type": "boolean"
- },
- "paragraph": {
- "type": "boolean"
- },
- "super": {
- "type": "boolean"
- },
- "table": {
- "type": "boolean"
- },
- "tag": {
- "type": "boolean"
- }
- },
- "required": [
- "blockquote",
- "callout",
- "code",
- "heading",
- "list",
- "listItem",
- "math",
- "paragraph",
- "super",
- "table",
- "tag"
- ],
- "additionalProperties": false
- },
- "GraphTypeFilterInput": {
- "type": "object",
- "properties": {
- "blockquote": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
- },
- "callout": {
+ "customTitle": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "code": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
+ "id": {
+ "type": "string"
},
- "heading": {
+ "image": {
"anyOf": [
{
"type": "boolean"
@@ -7304,7 +7038,7 @@
}
]
},
- "list": {
+ "keepFold": {
"anyOf": [
{
"type": "boolean"
@@ -7314,7 +7048,7 @@
}
]
},
- "listItem": {
+ "merge": {
"anyOf": [
{
"type": "boolean"
@@ -7324,50 +7058,83 @@
}
]
},
- "math": {
+ "mergeContentHeadingMode": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "paragraph": {
+ "mergeDocHeadingMode": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
- },
- "super": {
+ }
+ },
+ "required": [
+ "id"
+ ],
+ "additionalProperties": false
+ },
+ "ExportRepoFileRequestInput": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id"
+ ],
+ "additionalProperties": false
+ },
+ "ExportResourcesRequestInput": {
+ "type": "object",
+ "properties": {
+ "name": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "table": {
+ "paths": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
+ }
+ },
+ "additionalProperties": false
+ },
+ "ExportTempContentRequestInput": {
+ "type": "object",
+ "properties": {
+ "content": {
+ "type": "string"
},
- "tag": {
+ "id": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
@@ -7375,37 +7142,42 @@
]
}
},
+ "required": [
+ "content"
+ ],
"additionalProperties": false
},
- "HTMLClipboardPreflight": {
+ "ExportURLData": {
"type": "object",
"properties": {
- "converted": {
- "type": "boolean"
- },
- "dom": {
+ "url": {
"type": "string"
- },
- "normalizedHTML": {
+ }
+ },
+ "required": [
+ "url"
+ ],
+ "additionalProperties": false
+ },
+ "ExportZipData": {
+ "type": "object",
+ "properties": {
+ "zip": {
"type": "string"
- },
- "useHTML": {
- "type": "boolean"
}
},
"required": [
- "converted",
- "useHTML"
+ "zip"
],
"additionalProperties": false
},
- "HTMLClipboardRequestInput": {
+ "FileAnnotationRefRequestInput": {
"type": "object",
"properties": {
- "dom": {
+ "id": {
"type": "string"
},
- "mathML": {
+ "notebook": {
"anyOf": [
{
"type": "string"
@@ -7414,111 +7186,155 @@
"type": "null"
}
]
- },
- "notebook": {
+ }
+ },
+ "required": [
+ "id"
+ ],
+ "additionalProperties": false
+ },
+ "FilePathData": {
+ "type": "object",
+ "properties": {
+ "path": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "path"
+ ],
+ "additionalProperties": false
+ },
+ "FilePathRequestInput": {
+ "type": "object",
+ "properties": {
+ "path": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "path"
+ ],
+ "additionalProperties": false
+ },
+ "FindReplaceRequestInput": {
+ "type": "object",
+ "properties": {
+ "groupBy": {
"anyOf": [
{
- "type": "string"
+ "type": "number"
},
{
"type": "null"
}
]
},
- "office": {
+ "ids": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "k": {
+ "type": "string"
+ },
+ "method": {
"anyOf": [
{
- "type": "string"
+ "type": "number"
},
{
"type": "null"
}
]
},
- "officeMathHTML": {
+ "orderBy": {
"anyOf": [
{
- "type": "string"
+ "type": "number"
},
{
"type": "null"
}
]
},
- "preflight": {
+ "page": {
"anyOf": [
{
- "type": "boolean"
+ "type": "number"
},
{
"type": "null"
}
]
},
- "preparedHTML": {
+ "pageSize": {
"anyOf": [
{
- "type": "boolean"
+ "type": "number"
},
{
"type": "null"
}
]
},
- "preserveSourceFormat": {
+ "paths": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "skipBase64Assets": {
+ "query": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "skipInlineSVGAssets": {
+ "r": {
+ "type": "string"
+ },
+ "replaceTypes": {
"anyOf": [
{
- "type": "boolean"
+ "type": "object",
+ "additionalProperties": {
+ "type": "boolean"
+ }
},
{
"type": "null"
}
]
},
- "skipLocalAssets": {
+ "subTypes": {
"anyOf": [
{
- "type": "boolean"
+ "$ref": "#/$defs/SearchSubtypeFilterInput"
},
{
"type": "null"
}
]
},
- "text": {
+ "types": {
"anyOf": [
{
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "wps": {
- "anyOf": [
- {
- "type": "string"
+ "type": "object",
+ "additionalProperties": {
+ "type": "boolean"
+ }
},
{
"type": "null"
@@ -7527,88 +7343,110 @@
}
},
"required": [
- "dom"
+ "ids",
+ "k",
+ "r"
],
"additionalProperties": false
},
- "HTMLData": {
+ "FullBlockInfo": {
"type": "object",
"properties": {
- "html": {
+ "box": {
+ "type": "string"
+ },
+ "path": {
+ "type": "string"
+ },
+ "rootChildID": {
+ "type": "string"
+ },
+ "rootID": {
+ "type": "string"
+ },
+ "rootIcon": {
"type": "string"
+ },
+ "rootTitle": {
+ "type": "string"
+ },
+ "rootTitleEmpty": {
+ "type": "boolean"
}
},
"required": [
- "html"
+ "box",
+ "path",
+ "rootChildID",
+ "rootID",
+ "rootIcon",
+ "rootTitle",
+ "rootTitleEmpty"
],
"additionalProperties": false
},
- "HeadingChildrenRequestInput": {
+ "FullTextSearchBlockData": {
"type": "object",
"properties": {
- "id": {
- "type": "string"
- },
- "removeFoldAttr": {
+ "blocks": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SearchBlock"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
- }
- },
- "required": [
- "id"
- ],
- "additionalProperties": false
- },
- "HeadingFoldRequestInput": {
- "type": "object",
- "properties": {
- "id": {
- "type": "string"
},
- "scope": {
- "type": "string"
- }
- },
- "required": [
- "id",
- "scope"
- ],
- "additionalProperties": false
- },
- "HeadingLevelRequestInput": {
- "type": "object",
- "properties": {
- "id": {
- "type": "string"
+ "docMode": {
+ "type": "boolean"
},
- "ids": {
- "type": "array",
- "items": {
- "type": "string"
- }
+ "matchedBlockCount": {
+ "type": "integer"
},
- "level": {
- "type": "number"
+ "matchedRootCount": {
+ "type": "integer"
+ },
+ "pageCount": {
+ "type": "integer"
}
},
"required": [
- "level"
+ "blocks",
+ "docMode",
+ "matchedBlockCount",
+ "matchedRootCount",
+ "pageCount"
],
"additionalProperties": false
},
- "HeadingNumbersRequestInput": {
+ "FullTextSearchBlockRequestInput": {
"type": "object",
"properties": {
- "id": {
+ "groupBy": {
"anyOf": [
{
- "type": "string"
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "method": {
+ "anyOf": [
+ {
+ "type": "number"
},
{
"type": "null"
@@ -7624,107 +7462,51 @@
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "History": {
- "type": "object",
- "properties": {
- "hCreated": {
- "type": "string"
},
- "items": {
+ "orderBy": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/HistoryItem"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "number"
},
{
"type": "null"
}
]
- }
- },
- "required": [
- "hCreated",
- "items"
- ],
- "additionalProperties": false
- },
- "HistoryItem": {
- "type": "object",
- "properties": {
- "id": {
- "type": "string"
- },
- "notebook": {
- "type": "string"
},
- "op": {
- "type": "string"
+ "page": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "path": {
- "type": "string"
+ "pageSize": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "title": {
- "type": "string"
- }
- },
- "required": [
- "id",
- "notebook",
- "op",
- "path",
- "title"
- ],
- "additionalProperties": false
- },
- "HistoryItemsData": {
- "type": "object",
- "properties": {
- "items": {
+ "paths": {
"anyOf": [
{
"type": "array",
"items": {
- "anyOf": [
- {
- "$ref": "#/$defs/HistoryItem"
- },
- {
- "type": "null"
- }
- ]
+ "type": "string"
}
},
{
"type": "null"
}
]
- }
- },
- "required": [
- "items"
- ],
- "additionalProperties": false
- },
- "HistoryItemsRequestInput": {
- "type": "object",
- "properties": {
- "created": {
- "type": "string"
},
- "notebook": {
+ "query": {
"anyOf": [
{
"type": "string"
@@ -7734,30 +7516,33 @@
}
]
},
- "op": {
+ "searchHPath": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "query": {
+ "subTypes": {
"anyOf": [
{
- "type": "string"
+ "$ref": "#/$defs/SearchSubtypeFilterInput"
},
{
"type": "null"
}
]
},
- "type": {
+ "types": {
"anyOf": [
{
- "type": "number"
+ "type": "object",
+ "additionalProperties": {
+ "type": "boolean"
+ }
},
{
"type": "null"
@@ -7765,240 +7550,179 @@
]
}
},
- "required": [
- "created"
- ],
"additionalProperties": false
},
- "HistoryPathRequestInput": {
+ "GetBazaarIconRequestInput": {
"type": "object",
"properties": {
- "historyPath": {
- "type": "string"
+ "keyword": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
- "required": [
- "historyPath"
- ],
"additionalProperties": false
},
- "ImportAutoDocument": {
+ "GetBazaarPackageREADMERequestInput": {
"type": "object",
"properties": {
- "token": {
+ "packageType": {
"type": "string"
},
- "type": {
- "type": "string",
- "enum": [
- "document"
- ]
- }
- },
- "required": [
- "type"
- ],
- "additionalProperties": false
- },
- "ImportAutoNotebook": {
- "type": "object",
- "properties": {
- "notebook": {
- "anyOf": [
- {
- "$ref": "#/$defs/Notebook"
- },
- {
- "type": "null"
- }
- ]
+ "repoHash": {
+ "type": "string"
},
- "type": {
- "type": "string",
- "enum": [
- "notebook"
- ]
+ "repoURL": {
+ "type": "string"
}
},
"required": [
- "notebook",
- "type"
+ "packageType",
+ "repoHash",
+ "repoURL"
],
"additionalProperties": false
},
- "ImportAutoNotebooks": {
+ "GetBazaarPackageRatingRequestInput": {
"type": "object",
"properties": {
- "notebooks": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/Notebook"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- {
- "type": "null"
- }
- ]
+ "packageName": {
+ "type": "string"
},
- "type": {
- "type": "string",
- "enum": [
- "notebooks"
- ]
+ "packageType": {
+ "type": "string"
}
},
"required": [
- "notebooks",
- "type"
+ "packageName",
+ "packageType"
],
"additionalProperties": false
},
- "ImportDataRequestInput": {
- "type": "object",
- "properties": {
- "file": {
- "type": "string",
- "format": "binary"
- }
- },
- "additionalProperties": false
- },
- "ImportDocumentData": {
+ "GetBazaarPackageRatingsRequestInput": {
"type": "object",
"properties": {
- "type": {
- "type": "string",
- "enum": [
- "document"
- ]
+ "packageNames": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "packageType": {
+ "type": "string"
}
},
"required": [
- "type"
+ "packageNames",
+ "packageType"
],
"additionalProperties": false
},
- "ImportMarkdownRequestInput": {
+ "GetBazaarPackageRequestInput": {
"type": "object",
"properties": {
- "localPath": {
- "type": "string"
- },
- "notebook": {
- "type": "string"
- },
- "skipRoot": {
+ "frontend": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "toPath": {
+ "packageName": {
"type": "string"
- }
- },
- "required": [
- "localPath",
- "notebook",
- "toPath"
- ],
- "additionalProperties": false
- },
- "ImportNotebookCryptoBackupRequestInput": {
- "type": "object",
- "properties": {
- "file": {
- "type": "string",
- "format": "binary"
},
- "password": {
+ "packageType": {
"type": "string"
}
},
"required": [
- "file"
+ "packageName",
+ "packageType"
],
"additionalProperties": false
},
- "ImportRepoKeyRequestInput": {
+ "GetBazaarPackageUserRatingsRequestInput": {
"type": "object",
"properties": {
- "key": {
+ "packageNames": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "packageType": {
"type": "string"
}
},
"required": [
- "key"
+ "packageNames",
+ "packageType"
],
"additionalProperties": false
},
- "ImportSYRequestInput": {
+ "GetBazaarPluginRequestInput": {
"type": "object",
"properties": {
- "file": {
- "type": "string",
- "format": "binary"
- },
- "notebook": {
+ "frontend": {
"type": "string"
},
- "toPath": {
- "type": "string"
- }
- },
- "additionalProperties": false
- },
- "ImportTokenRequestInput": {
- "type": "object",
- "properties": {
- "token": {
- "type": "string"
+ "keyword": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
"required": [
- "token"
+ "frontend"
],
"additionalProperties": false
},
- "ImportZipMarkdownRequestInput": {
+ "GetBazaarTemplateRequestInput": {
"type": "object",
"properties": {
- "file": {
- "type": "string",
- "format": "binary"
- },
- "notebook": {
- "type": "string"
- },
- "skipRoot": {
- "type": "string"
- },
- "toPath": {
- "type": "string"
+ "keyword": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
"additionalProperties": false
},
- "ImportedNotebook": {
+ "GetBazaarThemeRequestInput": {
"type": "object",
"properties": {
- "notebook": {
+ "frontend": {
"anyOf": [
{
- "$ref": "#/$defs/Notebook"
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "keyword": {
+ "anyOf": [
+ {
+ "type": "string"
},
{
"type": "null"
@@ -8006,28 +7730,15 @@
]
}
},
- "required": [
- "notebook"
- ],
"additionalProperties": false
},
- "ImportedNotebooks": {
+ "GetBazaarWidgetRequestInput": {
"type": "object",
"properties": {
- "notebooks": {
+ "keyword": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/Notebook"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "string"
},
{
"type": "null"
@@ -8035,137 +7746,111 @@
]
}
},
- "required": [
- "notebooks"
- ],
"additionalProperties": false
},
- "InitRepoKeyFromPassphraseRequestInput": {
+ "GetCloudRepoSnapshotsRequestInput": {
"type": "object",
"properties": {
- "pass": {
- "type": "string"
+ "page": {
+ "type": "number"
}
},
"required": [
- "pass"
+ "page"
],
"additionalProperties": false
},
- "InlineStyle": {
+ "GetEmbedBlockRequestInput": {
"type": "object",
"properties": {
- "dark": {
+ "breadcrumb": {
"anyOf": [
{
- "$ref": "#/$defs/InlineStyleTheme"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "hidden": {
- "type": "boolean"
- },
- "id": {
+ "embedBlockID": {
"type": "string"
},
- "light": {
+ "headingMode": {
"anyOf": [
{
- "$ref": "#/$defs/InlineStyleTheme"
+ "type": "number"
},
{
"type": "null"
}
]
},
- "name": {
- "type": "string"
+ "includeIDs": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "notebook": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
"required": [
- "dark",
- "id",
- "light",
- "name"
+ "embedBlockID",
+ "includeIDs"
],
"additionalProperties": false
},
- "InlineStyleAV": {
+ "GetInstalledIconRequestInput": {
"type": "object",
"properties": {
- "colors": {
+ "keyword": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/AttributeViewCustomColor"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "string"
},
{
"type": "null"
}
]
+ }
+ },
+ "additionalProperties": false
+ },
+ "GetInstalledPackageSizeRequestInput": {
+ "type": "object",
+ "properties": {
+ "packageName": {
+ "type": "string"
},
- "order": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- {
- "type": "null"
- }
- ]
+ "packageType": {
+ "type": "string"
}
},
"required": [
- "colors",
- "order"
+ "packageName",
+ "packageType"
],
"additionalProperties": false
},
- "InlineStyleAVInput": {
+ "GetInstalledPluginRequestInput": {
"type": "object",
"properties": {
- "colors": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/AttributeViewCustomColorInput"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- {
- "type": "null"
- }
- ]
+ "frontend": {
+ "type": "string"
},
- "order": {
+ "keyword": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "type": "string"
},
{
"type": "null"
@@ -8173,55 +7858,44 @@
]
}
},
+ "required": [
+ "frontend"
+ ],
"additionalProperties": false
},
- "InlineStyleBuiltin": {
+ "GetInstalledTemplateRequestInput": {
"type": "object",
"properties": {
- "colors": {
+ "keyword": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/InlineStyleBuiltinColor"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "string"
},
{
"type": "null"
}
]
- },
- "hidden": {
+ }
+ },
+ "additionalProperties": false
+ },
+ "GetInstalledThemeRequestInput": {
+ "type": "object",
+ "properties": {
+ "frontend": {
"anyOf": [
{
- "$ref": "#/$defs/InlineStyleBuiltinHidden"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "styles": {
+ "keyword": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/InlineStyleBuiltinStyle"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "string"
},
{
"type": "null"
@@ -8229,74 +7903,117 @@
]
}
},
- "required": [
- "colors",
- "hidden",
- "styles"
- ],
"additionalProperties": false
},
- "InlineStyleBuiltinColor": {
+ "GetInstalledWidgetRequestInput": {
"type": "object",
"properties": {
- "dark": {
+ "keyword": {
"anyOf": [
{
- "$ref": "#/$defs/InlineStyleTheme"
+ "type": "string"
},
{
"type": "null"
}
]
+ }
+ },
+ "additionalProperties": false
+ },
+ "GetRepoDocHistoryRequestInput": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
},
- "index": {
- "type": "integer"
+ "page": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "id",
+ "page"
+ ],
+ "additionalProperties": false
+ },
+ "GetRepoFileRequestInput": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id"
+ ],
+ "additionalProperties": false
+ },
+ "GetRepoSnapshotsRequestInput": {
+ "type": "object",
+ "properties": {
+ "page": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "page"
+ ],
+ "additionalProperties": false
+ },
+ "GetSnippetRequestInput": {
+ "type": "object",
+ "properties": {
+ "enabled": {
+ "type": "number"
},
- "light": {
+ "keyword": {
"anyOf": [
{
- "$ref": "#/$defs/InlineStyleTheme"
+ "type": "string"
},
{
"type": "null"
}
]
+ },
+ "type": {
+ "type": "string"
}
},
"required": [
- "dark",
- "index",
- "light"
+ "enabled",
+ "type"
],
"additionalProperties": false
},
- "InlineStyleBuiltinColorInput": {
+ "GetTagRequestInput": {
"type": "object",
"properties": {
- "dark": {
+ "app": {
"anyOf": [
{
- "$ref": "#/$defs/InlineStyleThemeInput"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "index": {
+ "ignoreMaxListHint": {
"anyOf": [
{
- "type": "integer"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "light": {
+ "sort": {
"anyOf": [
{
- "$ref": "#/$defs/InlineStyleThemeInput"
+ "type": "number"
},
{
"type": "null"
@@ -8306,55 +8023,41 @@
},
"additionalProperties": false
},
- "InlineStyleBuiltinHidden": {
+ "GetUpdatedPackageRequestInput": {
"type": "object",
"properties": {
- "av": {
+ "frontend": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "frontend"
+ ],
+ "additionalProperties": false
+ },
+ "GlobalGraphConf": {
+ "type": "object",
+ "properties": {
+ "d3": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "integer"
- }
+ "$ref": "#/$defs/GraphD3"
},
{
"type": "null"
}
]
},
- "backgroundColor": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "type": "integer"
- }
- },
- {
- "type": "null"
- }
- ]
+ "dailyNote": {
+ "type": "boolean"
},
- "color": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "type": "integer"
- }
- },
- {
- "type": "null"
- }
- ]
+ "minRefs": {
+ "type": "integer"
},
- "style1": {
+ "type": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "$ref": "#/$defs/GraphTypeFilter"
},
{
"type": "null"
@@ -8363,62 +8066,33 @@
}
},
"required": [
- "av",
- "backgroundColor",
- "color",
- "style1"
+ "d3",
+ "dailyNote",
+ "minRefs",
+ "type"
],
"additionalProperties": false
},
- "InlineStyleBuiltinHiddenInput": {
+ "GlobalGraphRequestInput": {
"type": "object",
"properties": {
- "av": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "type": "integer"
- }
- },
- {
- "type": "null"
- }
- ]
- },
- "backgroundColor": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "type": "integer"
- }
- },
- {
- "type": "null"
- }
- ]
+ "conf": {
+ "$ref": "#/$defs/GraphConfigurationFieldsInput"
},
- "color": {
+ "k": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "integer"
- }
+ "type": "string"
},
{
"type": "null"
}
]
},
- "style1": {
+ "reqId": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "$ref": "#/$defs/JSONValue"
},
{
"type": "null"
@@ -8426,19 +8100,28 @@
]
}
},
+ "required": [
+ "conf"
+ ],
"additionalProperties": false
},
- "InlineStyleBuiltinInput": {
+ "GlobalGraphResult": {
"type": "object",
"properties": {
- "colors": {
+ "box": {
+ "type": "string"
+ },
+ "conf": {
+ "$ref": "#/$defs/GlobalGraphConf"
+ },
+ "links": {
"anyOf": [
{
"type": "array",
"items": {
"anyOf": [
{
- "$ref": "#/$defs/InlineStyleBuiltinColorInput"
+ "$ref": "#/$defs/GraphLink"
},
{
"type": "null"
@@ -8451,24 +8134,14 @@
}
]
},
- "hidden": {
- "anyOf": [
- {
- "$ref": "#/$defs/InlineStyleBuiltinHiddenInput"
- },
- {
- "type": "null"
- }
- ]
- },
- "styles": {
+ "nodes": {
"anyOf": [
{
"type": "array",
"items": {
"anyOf": [
{
- "$ref": "#/$defs/InlineStyleBuiltinStyleInput"
+ "$ref": "#/$defs/GraphNode"
},
{
"type": "null"
@@ -8480,30 +8153,27 @@
"type": "null"
}
]
+ },
+ "reqId": {
+ "$ref": "#/$defs/JSONValue"
}
},
+ "required": [
+ "box",
+ "conf",
+ "links",
+ "nodes",
+ "reqId"
+ ],
"additionalProperties": false
},
- "InlineStyleBuiltinStyle": {
+ "GraphArrows": {
"type": "object",
"properties": {
- "dark": {
- "anyOf": [
- {
- "$ref": "#/$defs/InlineStyleTheme"
- },
- {
- "type": "null"
- }
- ]
- },
- "id": {
- "type": "string"
- },
- "light": {
+ "to": {
"anyOf": [
{
- "$ref": "#/$defs/InlineStyleTheme"
+ "$ref": "#/$defs/GraphArrowsTo"
},
{
"type": "null"
@@ -8512,39 +8182,59 @@
}
},
"required": [
- "dark",
- "id",
- "light"
+ "to"
],
"additionalProperties": false
},
- "InlineStyleBuiltinStyleInput": {
+ "GraphArrowsTo": {
"type": "object",
"properties": {
- "dark": {
+ "enabled": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "enabled"
+ ],
+ "additionalProperties": false
+ },
+ "GraphConfigurationFieldsInput": {
+ "type": "object",
+ "properties": {
+ "d3": {
"anyOf": [
{
- "$ref": "#/$defs/InlineStyleThemeInput"
+ "$ref": "#/$defs/GraphD3Input"
},
{
"type": "null"
}
]
},
- "id": {
+ "dailyNote": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "light": {
+ "minRefs": {
"anyOf": [
{
- "$ref": "#/$defs/InlineStyleThemeInput"
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "type": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/GraphTypeFilterInput"
},
{
"type": "null"
@@ -8554,98 +8244,135 @@
},
"additionalProperties": false
},
- "InlineStyleInput": {
+ "GraphCorrelation": {
"type": "object",
"properties": {
- "dark": {
+ "reqId": {
+ "$ref": "#/$defs/JSONValue"
+ }
+ },
+ "required": [
+ "reqId"
+ ],
+ "additionalProperties": false
+ },
+ "GraphD3": {
+ "type": "object",
+ "properties": {
+ "arrow": {
+ "type": "boolean"
+ },
+ "centerStrength": {
+ "type": "number"
+ },
+ "collideRadius": {
+ "type": "number"
+ },
+ "collideStrength": {
+ "type": "number"
+ },
+ "lineOpacity": {
+ "type": "number"
+ },
+ "linkDistance": {
+ "type": "integer"
+ },
+ "linkWidth": {
+ "type": "number"
+ },
+ "nodeSize": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "arrow",
+ "centerStrength",
+ "collideRadius",
+ "collideStrength",
+ "lineOpacity",
+ "linkDistance",
+ "linkWidth",
+ "nodeSize"
+ ],
+ "additionalProperties": false
+ },
+ "GraphD3Input": {
+ "type": "object",
+ "properties": {
+ "arrow": {
"anyOf": [
{
- "$ref": "#/$defs/InlineStyleThemeInput"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "hidden": {
+ "centerStrength": {
"anyOf": [
{
- "type": "boolean"
+ "type": "number"
},
{
"type": "null"
}
]
},
- "id": {
+ "collideRadius": {
"anyOf": [
{
- "type": "string"
+ "type": "number"
},
{
"type": "null"
}
]
},
- "light": {
+ "collideStrength": {
"anyOf": [
{
- "$ref": "#/$defs/InlineStyleThemeInput"
+ "type": "number"
},
{
"type": "null"
}
]
},
- "name": {
+ "lineOpacity": {
"anyOf": [
{
- "type": "string"
+ "type": "number"
},
{
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "InlineStyleOrder": {
- "type": "object",
- "properties": {
- "backgroundColor": {
+ },
+ "linkDistance": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "color": {
+ "linkWidth": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "type": "number"
},
{
"type": "null"
}
]
},
- "style1": {
+ "nodeSize": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "type": "number"
},
{
"type": "null"
@@ -8653,255 +8380,279 @@
]
}
},
- "required": [
- "backgroundColor",
- "color",
- "style1"
- ],
"additionalProperties": false
},
- "InlineStyleOrderInput": {
+ "GraphLink": {
"type": "object",
"properties": {
- "backgroundColor": {
+ "arrows": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "$ref": "#/$defs/GraphArrows"
},
{
"type": "null"
}
]
},
- "color": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- {
- "type": "null"
- }
- ]
+ "from": {
+ "type": "string"
},
- "style1": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- {
- "type": "null"
- }
- ]
+ "ref": {
+ "type": "boolean"
+ },
+ "to": {
+ "type": "string"
}
},
+ "required": [
+ "arrows",
+ "from",
+ "ref",
+ "to"
+ ],
"additionalProperties": false
},
- "InlineStyleTheme": {
+ "GraphNode": {
"type": "object",
"properties": {
- "backgroundColor": {
+ "box": {
"type": "string"
},
- "color": {
+ "defs": {
+ "type": "integer"
+ },
+ "id": {
+ "type": "string"
+ },
+ "label": {
+ "type": "string"
+ },
+ "path": {
+ "type": "string"
+ },
+ "refs": {
+ "type": "integer"
+ },
+ "size": {
+ "type": "number"
+ },
+ "title": {
+ "type": "string"
+ },
+ "type": {
"type": "string"
}
},
+ "required": [
+ "box",
+ "defs",
+ "id",
+ "label",
+ "path",
+ "refs",
+ "size",
+ "type"
+ ],
"additionalProperties": false
},
- "InlineStyleThemeInput": {
+ "GraphTypeFilter": {
"type": "object",
"properties": {
- "backgroundColor": {
+ "blockquote": {
+ "type": "boolean"
+ },
+ "callout": {
+ "type": "boolean"
+ },
+ "code": {
+ "type": "boolean"
+ },
+ "heading": {
+ "type": "boolean"
+ },
+ "list": {
+ "type": "boolean"
+ },
+ "listItem": {
+ "type": "boolean"
+ },
+ "math": {
+ "type": "boolean"
+ },
+ "paragraph": {
+ "type": "boolean"
+ },
+ "super": {
+ "type": "boolean"
+ },
+ "table": {
+ "type": "boolean"
+ },
+ "tag": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "blockquote",
+ "callout",
+ "code",
+ "heading",
+ "list",
+ "listItem",
+ "math",
+ "paragraph",
+ "super",
+ "table",
+ "tag"
+ ],
+ "additionalProperties": false
+ },
+ "GraphTypeFilterInput": {
+ "type": "object",
+ "properties": {
+ "blockquote": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "color": {
+ "callout": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "InlineStyles": {
- "type": "object",
- "properties": {
- "av": {
+ },
+ "code": {
"anyOf": [
{
- "$ref": "#/$defs/InlineStyleAV"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "builtin": {
+ "heading": {
"anyOf": [
{
- "$ref": "#/$defs/InlineStyleBuiltin"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "order": {
+ "list": {
"anyOf": [
{
- "$ref": "#/$defs/InlineStyleOrder"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "styles": {
+ "listItem": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/InlineStyle"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "version": {
- "type": "integer"
- }
- },
- "required": [
- "av",
- "builtin",
- "order",
- "styles",
- "version"
- ],
- "additionalProperties": false
- },
- "InsertBlockRequestInput": {
- "type": "object",
- "properties": {
- "data": {
- "type": "string"
- },
- "dataType": {
- "type": "string"
- },
- "nextID": {
+ "math": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "parentID": {
+ "paragraph": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "previousID": {
+ "super": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
- }
- },
- "required": [
- "data",
- "dataType"
- ],
- "additionalProperties": false
- },
- "InstallBazaarIconRequestInput": {
- "type": "object",
- "properties": {
- "keyword": {
+ },
+ "table": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "packageName": {
- "type": "string"
- },
- "repoHash": {
- "type": "string"
- },
- "repoRef": {
+ "tag": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
+ }
+ },
+ "additionalProperties": false
+ },
+ "HTMLClipboardPreflight": {
+ "type": "object",
+ "properties": {
+ "converted": {
+ "type": "boolean"
},
- "repoURL": {
+ "dom": {
+ "type": "string"
+ },
+ "normalizedHTML": {
"type": "string"
+ },
+ "useHTML": {
+ "type": "boolean"
}
},
"required": [
- "packageName",
- "repoHash",
- "repoURL"
+ "converted",
+ "useHTML"
],
"additionalProperties": false
},
- "InstallBazaarPluginRequestInput": {
+ "HTMLClipboardRequestInput": {
"type": "object",
"properties": {
- "frontend": {
+ "dom": {
"type": "string"
},
- "keyword": {
+ "mathML": {
"anyOf": [
{
"type": "string"
@@ -8911,13 +8662,7 @@
}
]
},
- "packageName": {
- "type": "string"
- },
- "repoHash": {
- "type": "string"
- },
- "repoRef": {
+ "notebook": {
"anyOf": [
{
"type": "string"
@@ -8927,22 +8672,7 @@
}
]
},
- "repoURL": {
- "type": "string"
- }
- },
- "required": [
- "frontend",
- "packageName",
- "repoHash",
- "repoURL"
- ],
- "additionalProperties": false
- },
- "InstallBazaarTemplateRequestInput": {
- "type": "object",
- "properties": {
- "keyword": {
+ "office": {
"anyOf": [
{
"type": "string"
@@ -8952,13 +8682,7 @@
}
]
},
- "packageName": {
- "type": "string"
- },
- "repoHash": {
- "type": "string"
- },
- "repoRef": {
+ "officeMathHTML": {
"anyOf": [
{
"type": "string"
@@ -8968,77 +8692,67 @@
}
]
},
- "repoURL": {
- "type": "string"
- }
- },
- "required": [
- "packageName",
- "repoHash",
- "repoURL"
- ],
- "additionalProperties": false
- },
- "InstallBazaarThemeRequestInput": {
- "type": "object",
- "properties": {
- "frontend": {
+ "preflight": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "keyword": {
+ "preparedHTML": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "mode": {
- "type": "number"
- },
- "modeOS": {
- "type": "boolean"
+ "preserveSourceFormat": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "packageName": {
- "type": "string"
+ "skipBase64Assets": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "repoHash": {
- "type": "string"
+ "skipInlineSVGAssets": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "repoRef": {
+ "skipLocalAssets": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "repoURL": {
- "type": "string"
- }
- },
- "required": [
- "packageName",
- "repoHash",
- "repoURL"
- ],
- "additionalProperties": false
- },
- "InstallBazaarWidgetRequestInput": {
- "type": "object",
- "properties": {
- "keyword": {
+ "text": {
"anyOf": [
{
"type": "string"
@@ -9048,13 +8762,7 @@
}
]
},
- "packageName": {
- "type": "string"
- },
- "repoHash": {
- "type": "string"
- },
- "repoRef": {
+ "wps": {
"anyOf": [
{
"type": "string"
@@ -9063,122 +8771,101 @@
"type": "null"
}
]
- },
- "repoURL": {
- "type": "string"
}
},
"required": [
- "packageName",
- "repoHash",
- "repoURL"
+ "dom"
],
"additionalProperties": false
},
- "InstallLocalBazaarPackageRequestInput": {
+ "HTMLData": {
"type": "object",
"properties": {
- "file": {
- "type": "string",
- "format": "binary"
- },
- "frontend": {
- "type": "string"
- },
- "overwrite": {
+ "html": {
"type": "string"
}
},
+ "required": [
+ "html"
+ ],
"additionalProperties": false
},
- "JSONValue": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "type": "boolean"
- },
- {
- "type": "number"
- },
- {
+ "HeadingChildrenRequestInput": {
+ "type": "object",
+ "properties": {
+ "id": {
"type": "string"
},
- {
- "type": "array",
- "items": {
- "$ref": "#/$defs/JSONValue"
- }
- },
- {
- "type": "object",
- "additionalProperties": {
- "$ref": "#/$defs/JSONValue"
- }
+ "removeFoldAttr": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
- ]
+ },
+ "required": [
+ "id"
+ ],
+ "additionalProperties": false
},
- "KernelPetal": {
+ "HeadingFoldRequestInput": {
"type": "object",
"properties": {
- "existed": {
- "type": "boolean"
- },
- "incompatible": {
- "type": "boolean"
+ "id": {
+ "type": "string"
},
- "js": {
+ "scope": {
"type": "string"
}
},
"required": [
- "existed",
- "incompatible",
- "js"
+ "id",
+ "scope"
],
"additionalProperties": false
},
- "ListNotebooksData": {
+ "HeadingLevelRequestInput": {
"type": "object",
"properties": {
- "boxDocEnabled": {
- "type": "boolean"
+ "id": {
+ "type": "string"
},
- "notebooks": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/Notebook"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- {
- "type": "null"
- }
- ]
+ "ids": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "level": {
+ "type": "number"
}
},
"required": [
- "boxDocEnabled",
- "notebooks"
+ "level"
],
"additionalProperties": false
},
- "ListNotebooksRequestInput": {
+ "HeadingNumbersRequestInput": {
"type": "object",
"properties": {
- "flashcard": {
+ "id": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "notebook": {
+ "anyOf": [
+ {
+ "type": "string"
},
{
"type": "null"
@@ -9188,29 +8875,20 @@
},
"additionalProperties": false
},
- "LoadPetalsRequestInput": {
+ "History": {
"type": "object",
"properties": {
- "frontend": {
+ "hCreated": {
"type": "string"
- }
- },
- "required": [
- "frontend"
- ],
- "additionalProperties": false
- },
- "LoadedPlugin": {
- "type": "object",
- "properties": {
- "methods": {
+ },
+ "items": {
"anyOf": [
{
"type": "array",
"items": {
"anyOf": [
{
- "$ref": "#/$defs/PluginRPCMethod"
+ "$ref": "#/$defs/HistoryItem"
},
{
"type": "null"
@@ -9222,57 +8900,59 @@
"type": "null"
}
]
- },
- "name": {
- "type": "string"
- },
- "state": {
- "type": "string"
- },
- "stateCode": {
- "type": "integer"
}
},
"required": [
- "methods",
- "name",
- "state",
- "stateCode"
+ "hCreated",
+ "items"
],
"additionalProperties": false
},
- "LoadedPluginRequestInput": {
+ "HistoryItem": {
"type": "object",
"properties": {
- "name": {
+ "id": {
+ "type": "string"
+ },
+ "notebook": {
+ "type": "string"
+ },
+ "op": {
+ "type": "string"
+ },
+ "path": {
+ "type": "string"
+ },
+ "title": {
"type": "string"
}
},
"required": [
- "name"
+ "id",
+ "notebook",
+ "op",
+ "path",
+ "title"
],
"additionalProperties": false
},
- "LocalGraphConf": {
+ "HistoryItemsData": {
"type": "object",
"properties": {
- "d3": {
- "anyOf": [
- {
- "$ref": "#/$defs/GraphD3"
- },
- {
- "type": "null"
- }
- ]
- },
- "dailyNote": {
- "type": "boolean"
- },
- "type": {
+ "items": {
"anyOf": [
{
- "$ref": "#/$defs/GraphTypeFilter"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/HistoryItem"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
@@ -9281,19 +8961,17 @@
}
},
"required": [
- "d3",
- "dailyNote",
- "type"
+ "items"
],
"additionalProperties": false
},
- "LocalGraphRequestInput": {
+ "HistoryItemsRequestInput": {
"type": "object",
"properties": {
- "conf": {
- "$ref": "#/$defs/GraphConfigurationFieldsInput"
+ "created": {
+ "type": "string"
},
- "id": {
+ "notebook": {
"anyOf": [
{
"type": "string"
@@ -9303,7 +8981,7 @@
}
]
},
- "k": {
+ "op": {
"anyOf": [
{
"type": "string"
@@ -9313,7 +8991,7 @@
}
]
},
- "notebook": {
+ "query": {
"anyOf": [
{
"type": "string"
@@ -9323,20 +9001,10 @@
}
]
},
- "reqId": {
- "anyOf": [
- {
- "$ref": "#/$defs/JSONValue"
- },
- {
- "type": "null"
- }
- ]
- },
"type": {
"anyOf": [
{
- "type": "string"
+ "type": "number"
},
{
"type": "null"
@@ -9344,48 +9012,78 @@
]
}
},
+ "required": [
+ "created"
+ ],
"additionalProperties": false
},
- "LocalGraphResult": {
+ "HistoryPathRequestInput": {
"type": "object",
"properties": {
- "box": {
+ "historyPath": {
"type": "string"
- },
- "conf": {
- "$ref": "#/$defs/LocalGraphConf"
- },
- "id": {
+ }
+ },
+ "required": [
+ "historyPath"
+ ],
+ "additionalProperties": false
+ },
+ "ImportAutoDocument": {
+ "type": "object",
+ "properties": {
+ "token": {
"type": "string"
},
- "links": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "document"
+ ]
+ }
+ },
+ "required": [
+ "type"
+ ],
+ "additionalProperties": false
+ },
+ "ImportAutoNotebook": {
+ "type": "object",
+ "properties": {
+ "notebook": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/GraphLink"
- },
- {
- "type": "null"
- }
- ]
- }
+ "$ref": "#/$defs/Notebook"
},
{
"type": "null"
}
]
},
- "nodes": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "notebook"
+ ]
+ }
+ },
+ "required": [
+ "notebook",
+ "type"
+ ],
+ "additionalProperties": false
+ },
+ "ImportAutoNotebooks": {
+ "type": "object",
+ "properties": {
+ "notebooks": {
"anyOf": [
{
"type": "array",
"items": {
"anyOf": [
{
- "$ref": "#/$defs/GraphNode"
+ "$ref": "#/$defs/Notebook"
},
{
"type": "null"
@@ -9398,492 +9096,512 @@
}
]
},
- "reqId": {
- "$ref": "#/$defs/JSONValue"
+ "type": {
+ "type": "string",
+ "enum": [
+ "notebooks"
+ ]
}
},
"required": [
- "box",
- "conf",
- "id",
- "links",
- "nodes",
- "reqId"
+ "notebooks",
+ "type"
],
"additionalProperties": false
},
- "LockScreenRequestInput": {
+ "ImportDataRequestInput": {
"type": "object",
"properties": {
- "lockScreenMode": {
- "type": "number"
+ "file": {
+ "type": "string",
+ "format": "binary"
}
},
- "required": [
- "lockScreenMode"
- ],
"additionalProperties": false
},
- "MarkdownHTMLRequestInput": {
+ "ImportDocumentData": {
"type": "object",
"properties": {
- "markdown": {
- "type": "string"
- },
- "mode": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
+ "type": {
+ "type": "string",
+ "enum": [
+ "document"
]
}
},
"required": [
- "markdown"
+ "type"
],
"additionalProperties": false
},
- "MoveBlockRequestInput": {
+ "ImportMarkdownRequestInput": {
"type": "object",
"properties": {
- "id": {
+ "localPath": {
"type": "string"
},
- "parentID": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
+ "notebook": {
+ "type": "string"
},
- "previousID": {
+ "skipRoot": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
+ },
+ "toPath": {
+ "type": "string"
}
},
"required": [
- "id"
+ "localPath",
+ "notebook",
+ "toPath"
],
"additionalProperties": false
},
- "NetImageAssetsRequestInput": {
+ "ImportNotebookCryptoBackupRequestInput": {
"type": "object",
"properties": {
- "id": {
- "type": "string"
+ "file": {
+ "type": "string",
+ "format": "binary"
},
- "url": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
+ "password": {
+ "type": "string"
}
},
"required": [
- "id"
+ "file"
],
"additionalProperties": false
},
- "NetworkData": {
+ "ImportRepoKeyRequestInput": {
"type": "object",
"properties": {
- "proxy": {
- "anyOf": [
- {
- "$ref": "#/$defs/NetworkProxy"
- },
- {
- "type": "null"
- }
- ]
+ "key": {
+ "type": "string"
}
},
"required": [
- "proxy"
+ "key"
],
"additionalProperties": false
},
- "NetworkProxy": {
+ "ImportSYRequestInput": {
"type": "object",
"properties": {
- "host": {
- "type": "string"
+ "file": {
+ "type": "string",
+ "format": "binary"
},
- "port": {
+ "notebook": {
"type": "string"
},
- "scheme": {
+ "toPath": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false
+ },
+ "ImportTokenRequestInput": {
+ "type": "object",
+ "properties": {
+ "token": {
"type": "string"
}
},
"required": [
- "host",
- "port",
- "scheme"
+ "token"
],
"additionalProperties": false
},
- "NetworkProxyInput": {
+ "ImportZipMarkdownRequestInput": {
"type": "object",
"properties": {
- "host": {
+ "file": {
+ "type": "string",
+ "format": "binary"
+ },
+ "notebook": {
"type": "string"
},
- "port": {
+ "skipRoot": {
"type": "string"
},
- "scheme": {
+ "toPath": {
"type": "string"
}
},
- "required": [
- "host",
- "port",
- "scheme"
- ],
"additionalProperties": false
},
- "NetworkServeRequestInput": {
+ "ImportedNotebook": {
"type": "object",
"properties": {
- "networkServe": {
- "type": "boolean"
+ "notebook": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/Notebook"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
"required": [
- "networkServe"
+ "notebook"
],
"additionalProperties": false
},
- "NetworkServeTLSRequestInput": {
+ "ImportedNotebooks": {
"type": "object",
"properties": {
- "networkServeTLS": {
- "type": "boolean"
+ "notebooks": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/Notebook"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
"required": [
- "networkServeTLS"
+ "notebooks"
],
"additionalProperties": false
},
- "Notebook": {
+ "InitRepoKeyFromPassphraseRequestInput": {
"type": "object",
"properties": {
- "closed": {
- "type": "boolean"
- },
- "dueFlashcardCount": {
- "type": "integer"
- },
- "encrypted": {
- "type": "boolean"
- },
- "flashcardCount": {
- "type": "integer"
- },
- "icon": {
- "type": "string"
- },
- "id": {
- "type": "string"
- },
- "name": {
+ "pass": {
"type": "string"
- },
- "newFlashcardCount": {
- "type": "integer"
- },
- "sort": {
- "type": "integer"
- },
- "sortMode": {
- "type": "integer"
- },
- "state": {
- "type": "string",
- "enum": [
- "Locked",
- "Unlocking",
- "Unlocked",
- "Locking",
- "Error"
- ]
- },
- "subFileCount": {
- "type": "integer"
- },
- "unlocked": {
- "type": "boolean"
}
},
"required": [
- "closed",
- "dueFlashcardCount",
- "encrypted",
- "flashcardCount",
- "icon",
- "id",
- "name",
- "newFlashcardCount",
- "sort",
- "sortMode",
- "subFileCount",
- "unlocked"
+ "pass"
],
"additionalProperties": false
},
- "NotebookConf": {
+ "InlineStyle": {
"type": "object",
"properties": {
- "boxCrypt": {
+ "dark": {
"anyOf": [
{
- "$ref": "#/$defs/NotebookEncryption"
+ "$ref": "#/$defs/InlineStyleTheme"
},
{
"type": "null"
}
]
},
- "closed": {
+ "hidden": {
"type": "boolean"
},
- "dailyNoteSavePath": {
- "type": "string"
- },
- "dailyNoteTemplatePath": {
- "type": "string"
- },
- "docCreateSaveBox": {
- "type": "string"
- },
- "docCreateSavePath": {
- "type": "string"
- },
- "docCreateTemplatePath": {
+ "id": {
"type": "string"
},
- "encrypted": {
- "type": "boolean"
- },
- "icon": {
- "type": "string"
+ "light": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/InlineStyleTheme"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
"name": {
"type": "string"
- },
- "refCreateSaveBox": {
- "type": "string"
- },
- "refCreateSavePath": {
- "type": "string"
- },
- "sort": {
- "type": "integer"
- },
- "sortMode": {
- "type": "integer"
}
},
"required": [
- "boxCrypt",
- "closed",
- "dailyNoteSavePath",
- "dailyNoteTemplatePath",
- "docCreateSaveBox",
- "docCreateSavePath",
- "docCreateTemplatePath",
- "encrypted",
- "icon",
- "name",
- "refCreateSaveBox",
- "refCreateSavePath",
- "sort",
- "sortMode"
+ "dark",
+ "id",
+ "light",
+ "name"
],
"additionalProperties": false
},
- "NotebookConfData": {
+ "InlineStyleAV": {
"type": "object",
"properties": {
- "box": {
- "type": "string"
- },
- "conf": {
+ "colors": {
"anyOf": [
{
- "$ref": "#/$defs/NotebookConf"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AttributeViewCustomColor"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
},
- "name": {
- "type": "string"
+ "order": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
"required": [
- "box",
- "conf",
- "name"
+ "colors",
+ "order"
],
"additionalProperties": false
},
- "NotebookConfPatchInput": {
+ "InlineStyleAVInput": {
"type": "object",
"properties": {
- "boxCrypt": {
+ "colors": {
"anyOf": [
{
- "$ref": "#/$defs/NotebookEncryptionPatchInput"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AttributeViewCustomColorInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
},
- "closed": {
+ "order": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
- },
- "dailyNoteSavePath": {
+ }
+ },
+ "additionalProperties": false
+ },
+ "InlineStyleBuiltin": {
+ "type": "object",
+ "properties": {
+ "colors": {
"anyOf": [
{
- "type": "string"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/InlineStyleBuiltinColor"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
},
- "dailyNoteTemplatePath": {
+ "hidden": {
"anyOf": [
{
- "type": "string"
+ "$ref": "#/$defs/InlineStyleBuiltinHidden"
},
{
"type": "null"
}
]
},
- "docCreateSaveBox": {
+ "styles": {
"anyOf": [
{
- "type": "string"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/InlineStyleBuiltinStyle"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
- },
- "docCreateSavePath": {
+ }
+ },
+ "required": [
+ "colors",
+ "hidden",
+ "styles"
+ ],
+ "additionalProperties": false
+ },
+ "InlineStyleBuiltinColor": {
+ "type": "object",
+ "properties": {
+ "dark": {
"anyOf": [
{
- "type": "string"
+ "$ref": "#/$defs/InlineStyleTheme"
},
{
"type": "null"
}
]
},
- "docCreateTemplatePath": {
+ "index": {
+ "type": "integer"
+ },
+ "light": {
"anyOf": [
{
- "type": "string"
+ "$ref": "#/$defs/InlineStyleTheme"
},
{
"type": "null"
}
]
- },
- "encrypted": {
+ }
+ },
+ "required": [
+ "dark",
+ "index",
+ "light"
+ ],
+ "additionalProperties": false
+ },
+ "InlineStyleBuiltinColorInput": {
+ "type": "object",
+ "properties": {
+ "dark": {
"anyOf": [
{
- "type": "boolean"
+ "$ref": "#/$defs/InlineStyleThemeInput"
},
{
"type": "null"
}
]
},
- "icon": {
+ "index": {
"anyOf": [
{
- "type": "string"
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "name": {
+ "light": {
"anyOf": [
{
- "type": "string"
+ "$ref": "#/$defs/InlineStyleThemeInput"
},
{
"type": "null"
}
]
- },
- "refCreateSaveBox": {
+ }
+ },
+ "additionalProperties": false
+ },
+ "InlineStyleBuiltinHidden": {
+ "type": "object",
+ "properties": {
+ "av": {
"anyOf": [
{
- "type": "string"
+ "type": "array",
+ "items": {
+ "type": "integer"
+ }
},
{
"type": "null"
}
]
},
- "refCreateSavePath": {
+ "backgroundColor": {
"anyOf": [
{
- "type": "string"
+ "type": "array",
+ "items": {
+ "type": "integer"
+ }
},
{
"type": "null"
}
]
},
- "sort": {
+ "color": {
"anyOf": [
{
- "type": "integer"
+ "type": "array",
+ "items": {
+ "type": "integer"
+ }
},
{
"type": "null"
}
]
},
- "sortMode": {
+ "style1": {
"anyOf": [
{
- "type": "integer"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
@@ -9891,170 +9609,113 @@
]
}
},
- "additionalProperties": false
- },
- "NotebookCryptoAutoLockRequestInput": {
- "type": "object",
- "properties": {
- "autoLockMinutes": {
- "type": "number"
- }
- },
- "required": [
- "autoLockMinutes"
- ],
- "additionalProperties": false
- },
- "NotebookCryptoBackupData": {
- "type": "object",
- "properties": {
- "file": {
- "type": "string"
- }
- },
"required": [
- "file"
+ "av",
+ "backgroundColor",
+ "color",
+ "style1"
],
"additionalProperties": false
},
- "NotebookEncryption": {
+ "InlineStyleBuiltinHiddenInput": {
"type": "object",
"properties": {
- "createdAt": {
- "type": "integer"
- },
- "metadata": {
- "type": "string"
- },
- "spec": {
- "type": "integer"
- },
- "wrapNonce": {
+ "av": {
"anyOf": [
{
- "type": "string"
+ "type": "array",
+ "items": {
+ "type": "integer"
+ }
},
{
"type": "null"
}
]
},
- "wrappedDEK": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "createdAt",
- "spec",
- "wrapNonce",
- "wrappedDEK"
- ],
- "additionalProperties": false
- },
- "NotebookEncryptionPatchInput": {
- "type": "object",
- "properties": {
- "createdAt": {
+ "backgroundColor": {
"anyOf": [
{
- "type": "integer"
+ "type": "array",
+ "items": {
+ "type": "integer"
+ }
},
{
"type": "null"
}
]
},
- "metadata": {
+ "color": {
"anyOf": [
{
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "array",
- "items": {
- "type": "integer"
- }
- }
- ]
+ "type": "array",
+ "items": {
+ "type": "integer"
+ }
},
{
"type": "null"
}
]
},
- "spec": {
+ "style1": {
"anyOf": [
{
- "type": "integer"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
- },
- "wrapNonce": {
+ }
+ },
+ "additionalProperties": false
+ },
+ "InlineStyleBuiltinInput": {
+ "type": "object",
+ "properties": {
+ "colors": {
"anyOf": [
{
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "array",
- "items": {
- "type": "integer"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/InlineStyleBuiltinColorInput"
+ },
+ {
+ "type": "null"
}
- }
- ]
+ ]
+ }
},
{
"type": "null"
}
]
},
- "wrappedDEK": {
+ "hidden": {
"anyOf": [
{
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "array",
- "items": {
- "type": "integer"
- }
- }
- ]
+ "$ref": "#/$defs/InlineStyleBuiltinHiddenInput"
},
{
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "NotebookHistoryData": {
- "type": "object",
- "properties": {
- "histories": {
+ },
+ "styles": {
"anyOf": [
{
"type": "array",
"items": {
"anyOf": [
{
- "$ref": "#/$defs/History"
+ "$ref": "#/$defs/InlineStyleBuiltinStyleInput"
},
{
"type": "null"
@@ -10068,120 +9729,69 @@
]
}
},
- "required": [
- "histories"
- ],
- "additionalProperties": false
- },
- "NotebookIDRequestInput": {
- "type": "object",
- "properties": {
- "notebook": {
- "type": "string"
- }
- },
- "required": [
- "notebook"
- ],
"additionalProperties": false
},
- "NotebookInfo": {
+ "InlineStyleBuiltinStyle": {
"type": "object",
"properties": {
- "ctime": {
- "type": "integer"
- },
- "docCount": {
- "type": "integer"
- },
- "hCtime": {
- "type": "string"
- },
- "hMtime": {
- "type": "string"
- },
- "hSize": {
- "type": "string"
+ "dark": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/InlineStyleTheme"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
"id": {
"type": "string"
},
- "mtime": {
- "type": "integer"
- },
- "name": {
- "type": "string"
- },
- "size": {
- "type": "integer"
+ "light": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/InlineStyleTheme"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
"required": [
- "ctime",
- "docCount",
- "hCtime",
- "hMtime",
- "hSize",
+ "dark",
"id",
- "mtime",
- "name",
- "size"
+ "light"
],
"additionalProperties": false
},
- "NotebookInfoData": {
+ "InlineStyleBuiltinStyleInput": {
"type": "object",
"properties": {
- "boxInfo": {
+ "dark": {
"anyOf": [
{
- "$ref": "#/$defs/NotebookInfo"
+ "$ref": "#/$defs/InlineStyleThemeInput"
},
{
"type": "null"
}
]
- }
- },
- "required": [
- "boxInfo"
- ],
- "additionalProperties": false
- },
- "NotebookPasswordRequestInput": {
- "type": "object",
- "properties": {
- "password": {
- "type": "string"
- }
- },
- "required": [
- "password"
- ],
- "additionalProperties": false
- },
- "NotificationData": {
- "type": "object",
- "properties": {
+ },
"id": {
- "type": "string"
- }
- },
- "required": [
- "id"
- ],
- "additionalProperties": false
- },
- "NotificationRequestInput": {
- "type": "object",
- "properties": {
- "msg": {
- "type": "string"
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "timeout": {
+ "light": {
"anyOf": [
{
- "type": "number"
+ "$ref": "#/$defs/InlineStyleThemeInput"
},
{
"type": "null"
@@ -10189,61 +9799,118 @@
]
}
},
- "required": [
- "msg"
- ],
- "additionalProperties": false
- },
- "ObsidianAnalysisRequestInput": {
- "type": "object",
- "properties": {
- "localPath": {
- "type": "string"
- }
- },
- "required": [
- "localPath"
- ],
"additionalProperties": false
},
- "ObsidianImportRequestInput": {
+ "InlineStyleInput": {
"type": "object",
"properties": {
- "notebookName": {
- "type": "string"
- },
- "taskID": {
- "type": "string"
+ "dark": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/InlineStyleThemeInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "hidden": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "id": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "light": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/InlineStyleThemeInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "name": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
- "required": [
- "notebookName",
- "taskID"
- ],
"additionalProperties": false
},
- "ObsidianTaskRequestInput": {
+ "InlineStyleOrder": {
"type": "object",
"properties": {
- "taskID": {
- "type": "string"
+ "backgroundColor": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "color": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "style1": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
"required": [
- "taskID"
+ "backgroundColor",
+ "color",
+ "style1"
],
"additionalProperties": false
},
- "ObsidianVaultAnalysis": {
+ "InlineStyleOrderInput": {
"type": "object",
"properties": {
- "ambiguousCount": {
- "type": "integer"
- },
- "blockIDCount": {
- "type": "integer"
- },
- "blockingErrors": {
+ "backgroundColor": {
"anyOf": [
{
"type": "array",
@@ -10256,61 +9923,7 @@
}
]
},
- "commentCount": {
- "type": "integer"
- },
- "embedCount": {
- "type": "integer"
- },
- "footnoteCount": {
- "type": "integer"
- },
- "importableAssetCount": {
- "type": "integer"
- },
- "importableAssetSize": {
- "type": "integer"
- },
- "markdownCount": {
- "type": "integer"
- },
- "missingCount": {
- "type": "integer"
- },
- "nameAdjustmentCount": {
- "type": "integer"
- },
- "notebookName": {
- "type": "string"
- },
- "skippedHiddenCount": {
- "type": "integer"
- },
- "skippedLinkCount": {
- "type": "integer"
- },
- "skippedNestedVaultCount": {
- "type": "integer"
- },
- "skippedSpecialCount": {
- "type": "integer"
- },
- "syntheticParentCount": {
- "type": "integer"
- },
- "unreferencedFileCount": {
- "type": "integer"
- },
- "unsupportedCount": {
- "type": "integer"
- },
- "vaultName": {
- "type": "string"
- },
- "vaultPath": {
- "type": "string"
- },
- "warnings": {
+ "color": {
"anyOf": [
{
"type": "array",
@@ -10323,144 +9936,38 @@
}
]
},
- "wikiLinkCount": {
- "type": "integer"
+ "style1": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
- "required": [
- "ambiguousCount",
- "blockIDCount",
- "blockingErrors",
- "commentCount",
- "embedCount",
- "footnoteCount",
- "importableAssetCount",
- "importableAssetSize",
- "markdownCount",
- "missingCount",
- "nameAdjustmentCount",
- "notebookName",
- "skippedHiddenCount",
- "skippedLinkCount",
- "skippedNestedVaultCount",
- "skippedSpecialCount",
- "syntheticParentCount",
- "unreferencedFileCount",
- "unsupportedCount",
- "vaultName",
- "vaultPath",
- "warnings",
- "wikiLinkCount"
- ],
"additionalProperties": false
},
- "ObsidianVaultImportResult": {
+ "InlineStyleTheme": {
"type": "object",
"properties": {
- "convertedEmbedCount": {
- "type": "integer"
- },
- "convertedFootnoteCount": {
- "type": "integer"
- },
- "convertedLinkCount": {
- "type": "integer"
- },
- "failedStage": {
- "type": "string"
- },
- "importedAttachmentCount": {
- "type": "integer"
- },
- "incomplete": {
- "type": "boolean"
- },
- "markdownCount": {
- "type": "integer"
- },
- "nameAdjustmentCount": {
- "type": "integer"
- },
- "notebookID": {
+ "backgroundColor": {
"type": "string"
},
- "notebookName": {
+ "color": {
"type": "string"
- },
- "preservedCommentCount": {
- "type": "integer"
- },
- "preservedUnresolvedCount": {
- "type": "integer"
- },
- "skippedPathCount": {
- "type": "integer"
- },
- "syntheticParentCount": {
- "type": "integer"
- },
- "unreferencedFileCount": {
- "type": "integer"
}
},
- "required": [
- "convertedEmbedCount",
- "convertedFootnoteCount",
- "convertedLinkCount",
- "importedAttachmentCount",
- "incomplete",
- "markdownCount",
- "nameAdjustmentCount",
- "notebookID",
- "notebookName",
- "preservedCommentCount",
- "preservedUnresolvedCount",
- "skippedPathCount",
- "syntheticParentCount",
- "unreferencedFileCount"
- ],
- "additionalProperties": false
- },
- "ObsidianVaultTask": {
- "type": "object",
- "properties": {
- "analysis": {
- "$ref": "#/$defs/ObsidianVaultAnalysis"
- },
- "detail": {
- "type": "string"
- },
- "error": {
- "type": "string"
- },
- "message": {
- "type": "string"
- },
- "progress": {
- "type": "integer"
- },
- "result": {
- "$ref": "#/$defs/ObsidianVaultImportResult"
- },
- "state": {
- "type": "string"
- },
- "taskID": {
- "type": "string"
- }
- },
- "required": [
- "message",
- "progress",
- "state",
- "taskID"
- ],
"additionalProperties": false
},
- "OpenNotebookRequestInput": {
+ "InlineStyleThemeInput": {
"type": "object",
"properties": {
- "app": {
+ "backgroundColor": {
"anyOf": [
{
"type": "string"
@@ -10470,47 +9977,95 @@
}
]
},
- "notebook": {
- "type": "string"
- }
- },
- "required": [
- "notebook"
- ],
- "additionalProperties": false
- },
- "OpenRepoSnapshotFileRequestInput": {
- "type": "object",
- "properties": {
- "id": {
- "type": "string"
+ "color": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
- "required": [
- "id"
- ],
"additionalProperties": false
},
- "OrderedListStartData": {
+ "InlineStyles": {
"type": "object",
"properties": {
- "found": {
- "type": "boolean"
+ "av": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/InlineStyleAV"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "start": {
+ "builtin": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/InlineStyleBuiltin"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "order": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/InlineStyleOrder"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "styles": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/InlineStyle"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "version": {
"type": "integer"
}
},
"required": [
- "found",
- "start"
+ "av",
+ "builtin",
+ "order",
+ "styles",
+ "version"
],
"additionalProperties": false
},
- "OutlineRequestInput": {
+ "InsertBlockRequestInput": {
"type": "object",
"properties": {
- "id": {
+ "data": {
+ "type": "string"
+ },
+ "dataType": {
+ "type": "string"
+ },
+ "nextID": {
"anyOf": [
{
"type": "string"
@@ -10520,7 +10075,7 @@
}
]
},
- "notebook": {
+ "parentID": {
"anyOf": [
{
"type": "string"
@@ -10530,10 +10085,10 @@
}
]
},
- "preview": {
+ "previousID": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
@@ -10541,61 +10096,75 @@
]
}
},
- "additionalProperties": false
- },
- "OutlineStorageRequestInput": {
- "type": "object",
- "properties": {
- "docID": {
- "type": "string"
- }
- },
"required": [
- "docID"
+ "data",
+ "dataType"
],
"additionalProperties": false
},
- "OutlineStorageSetRequestInput": {
+ "InstallBazaarIconRequestInput": {
"type": "object",
"properties": {
- "docID": {
+ "keyword": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "packageName": {
"type": "string"
},
- "val": {
- "type": "object",
- "additionalProperties": {
- "$ref": "#/$defs/JSONValue"
- }
- }
- },
- "required": [
- "docID",
- "val"
- ],
- "additionalProperties": false
- },
- "PandocData": {
- "type": "object",
- "properties": {
- "path": {
+ "repoHash": {
+ "type": "string"
+ },
+ "repoRef": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "repoURL": {
"type": "string"
}
},
"required": [
- "path"
+ "packageName",
+ "repoHash",
+ "repoURL"
],
"additionalProperties": false
},
- "PandocRequestInput": {
+ "InstallBazaarPluginRequestInput": {
"type": "object",
"properties": {
- "args": {
- "type": "array",
- "items": {
- "type": "string"
- }
+ "frontend": {
+ "type": "string"
},
- "dir": {
+ "keyword": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "packageName": {
+ "type": "string"
+ },
+ "repoHash": {
+ "type": "string"
+ },
+ "repoRef": {
"anyOf": [
{
"type": "string"
@@ -10604,294 +10173,417 @@
"type": "null"
}
]
+ },
+ "repoURL": {
+ "type": "string"
}
},
"required": [
- "args"
+ "frontend",
+ "packageName",
+ "repoHash",
+ "repoURL"
],
"additionalProperties": false
},
- "PerformSyncRequestInput": {
+ "InstallBazaarTemplateRequestInput": {
"type": "object",
"properties": {
- "mobileSwitch": {
+ "keyword": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "upload": {
- "type": "boolean"
+ "packageName": {
+ "type": "string"
+ },
+ "repoHash": {
+ "type": "string"
+ },
+ "repoRef": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "repoURL": {
+ "type": "string"
}
},
+ "required": [
+ "packageName",
+ "repoHash",
+ "repoURL"
+ ],
"additionalProperties": false
},
- "Petal": {
+ "InstallBazaarThemeRequestInput": {
"type": "object",
"properties": {
- "css": {
- "type": "string"
- },
- "disabledInPublish": {
- "type": "boolean"
- },
- "disallowInstall": {
- "type": "boolean"
- },
- "displayName": {
- "type": "string"
- },
- "enabled": {
- "type": "boolean"
+ "frontend": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "i18n": {
+ "keyword": {
"anyOf": [
{
- "type": "object",
- "additionalProperties": {
- "$ref": "#/$defs/JSONValue"
- }
+ "type": "string"
},
{
"type": "null"
}
]
},
- "incompatible": {
+ "mode": {
+ "type": "number"
+ },
+ "modeOS": {
"type": "boolean"
},
- "js": {
+ "packageName": {
"type": "string"
},
- "kernel": {
- "$ref": "#/$defs/KernelPetal"
- },
- "name": {
+ "repoHash": {
"type": "string"
},
- "userDisabledInPublish": {
- "type": "boolean"
+ "repoRef": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "version": {
+ "repoURL": {
"type": "string"
}
},
"required": [
- "css",
- "disabledInPublish",
- "disallowInstall",
- "displayName",
- "enabled",
- "i18n",
- "incompatible",
- "js",
- "kernel",
- "name",
- "userDisabledInPublish",
- "version"
+ "packageName",
+ "repoHash",
+ "repoURL"
],
"additionalProperties": false
},
- "PinnedDoc": {
+ "InstallBazaarWidgetRequestInput": {
"type": "object",
"properties": {
- "childrenSortMode": {
+ "keyword": {
"anyOf": [
{
- "type": "integer"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "icon": {
+ "packageName": {
"type": "string"
},
- "id": {
+ "repoHash": {
"type": "string"
},
- "name": {
- "type": "string"
+ "repoRef": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "notebook": {
+ "repoURL": {
"type": "string"
+ }
+ },
+ "required": [
+ "packageName",
+ "repoHash",
+ "repoURL"
+ ],
+ "additionalProperties": false
+ },
+ "InstallLocalBazaarPackageRequestInput": {
+ "type": "object",
+ "properties": {
+ "file": {
+ "type": "string",
+ "format": "binary"
},
- "path": {
+ "frontend": {
"type": "string"
},
- "subFileCount": {
- "type": "integer"
- },
- "unavailable": {
- "type": "boolean"
+ "overwrite": {
+ "type": "string"
}
},
- "required": [
- "childrenSortMode",
- "icon",
- "id",
- "name",
- "notebook",
- "path",
- "subFileCount",
- "unavailable"
- ],
"additionalProperties": false
},
- "PluginRPCError": {
+ "JSONValue": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "type": "string"
+ },
+ {
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/JSONValue"
+ }
+ },
+ {
+ "type": "object",
+ "additionalProperties": {
+ "$ref": "#/$defs/JSONValue"
+ }
+ }
+ ]
+ },
+ "KernelPetal": {
"type": "object",
"properties": {
- "code": {
- "type": "integer"
+ "existed": {
+ "type": "boolean"
},
- "data": {
- "$ref": "#/$defs/JSONValue"
+ "incompatible": {
+ "type": "boolean"
},
- "message": {
+ "js": {
"type": "string"
}
},
"required": [
- "code",
- "message"
+ "existed",
+ "incompatible",
+ "js"
],
"additionalProperties": false
},
- "PluginRPCFailure": {
+ "ListNotebooksData": {
"type": "object",
"properties": {
- "error": {
- "anyOf": [
- {
- "$ref": "#/$defs/PluginRPCError"
- },
- {
- "type": "null"
- }
- ]
+ "boxDocEnabled": {
+ "type": "boolean"
},
- "id": {
+ "notebooks": {
"anyOf": [
{
- "type": "string"
- },
- {
- "type": "number"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/Notebook"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
- },
- "jsonrpc": {
- "type": "string",
- "enum": [
- "2.0"
- ]
}
},
"required": [
- "error",
- "id",
- "jsonrpc"
+ "boxDocEnabled",
+ "notebooks"
],
"additionalProperties": false
},
- "PluginRPCMethod": {
+ "ListNotebooksRequestInput": {
"type": "object",
"properties": {
- "descriptions": {
+ "flashcard": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "type": "boolean"
},
{
"type": "null"
}
]
- },
- "name": {
- "type": "string"
}
},
- "required": [
- "descriptions",
- "name"
- ],
"additionalProperties": false
},
- "PluginRPCNotification": {
+ "LoadPetalsRequestInput": {
"type": "object",
"properties": {
- "jsonrpc": {
- "type": "string",
- "enum": [
- "2.0"
+ "frontend": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "frontend"
+ ],
+ "additionalProperties": false
+ },
+ "LoadedPlugin": {
+ "type": "object",
+ "properties": {
+ "methods": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/PluginRPCMethod"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
]
},
- "method": {
+ "name": {
"type": "string"
},
- "params": {
- "$ref": "#/$defs/JSONValue"
+ "state": {
+ "type": "string"
+ },
+ "stateCode": {
+ "type": "integer"
}
},
"required": [
- "jsonrpc",
- "method"
+ "methods",
+ "name",
+ "state",
+ "stateCode"
],
"additionalProperties": false
},
- "PluginRPCRequestFieldsInput": {
+ "LoadedPluginRequestInput": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "name"
+ ],
+ "additionalProperties": false
+ },
+ "LocalGraphConf": {
"type": "object",
"properties": {
+ "d3": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/GraphD3"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "dailyNote": {
+ "type": "boolean"
+ },
+ "type": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/GraphTypeFilter"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "d3",
+ "dailyNote",
+ "type"
+ ],
+ "additionalProperties": false
+ },
+ "LocalGraphRequestInput": {
+ "type": "object",
+ "properties": {
+ "conf": {
+ "$ref": "#/$defs/GraphConfigurationFieldsInput"
+ },
"id": {
"anyOf": [
{
"type": "string"
},
{
- "type": "number"
+ "type": "null"
+ }
+ ]
+ },
+ "k": {
+ "anyOf": [
+ {
+ "type": "string"
},
{
"type": "null"
}
]
},
- "jsonrpc": {
- "type": "string",
- "enum": [
- "2.0"
+ "notebook": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
]
},
- "method": {
- "type": "string"
+ "reqId": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/JSONValue"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "params": {
+ "type": {
"anyOf": [
{
- "anyOf": [
- {
- "type": "array",
- "items": {
- "$ref": "#/$defs/JSONValue"
- }
- },
- {
- "type": "object",
- "additionalProperties": {
- "$ref": "#/$defs/JSONValue"
- }
- }
- ]
+ "type": "string"
},
{
"type": "null"
@@ -10899,176 +10591,115 @@
]
}
},
- "required": [
- "jsonrpc",
- "method"
- ],
"additionalProperties": false
},
- "PluginRPCSuccess": {
+ "LocalGraphResult": {
"type": "object",
"properties": {
+ "box": {
+ "type": "string"
+ },
+ "conf": {
+ "$ref": "#/$defs/LocalGraphConf"
+ },
"id": {
+ "type": "string"
+ },
+ "links": {
"anyOf": [
{
- "type": "string"
- },
- {
- "type": "number"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/GraphLink"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
},
- "jsonrpc": {
- "type": "string",
- "enum": [
- "2.0"
+ "nodes": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/GraphNode"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
]
},
- "result": {
+ "reqId": {
"$ref": "#/$defs/JSONValue"
}
},
"required": [
+ "box",
+ "conf",
"id",
- "jsonrpc",
- "result"
+ "links",
+ "nodes",
+ "reqId"
],
"additionalProperties": false
},
- "PrepareRichTextRequestInput": {
+ "LockScreenRequestInput": {
"type": "object",
"properties": {
- "assets": {
- "type": "array",
- "items": {
- "$ref": "#/$defs/RichClipboardAssetInput"
- }
+ "lockScreenMode": {
+ "type": "number"
}
},
"required": [
- "assets"
+ "lockScreenMode"
],
"additionalProperties": false
},
- "PrependBlockRequestInput": {
+ "MarkdownHTMLRequestInput": {
"type": "object",
"properties": {
- "data": {
- "type": "string"
- },
- "dataType": {
+ "markdown": {
"type": "string"
},
- "parentID": {
- "type": "string"
+ "mode": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
"required": [
- "data",
- "dataType",
- "parentID"
+ "markdown"
],
"additionalProperties": false
},
- "PublishedBlockInfo": {
+ "MoveBlockRequestInput": {
"type": "object",
"properties": {
- "publishAccessRequired": {
- "type": "boolean",
- "enum": [
- true
- ]
- },
- "rootID": {
+ "id": {
"type": "string"
},
- "rootIcon": {
- "type": "string"
- },
- "rootTitle": {
- "type": "string"
- },
- "rootTitleEmpty": {
- "type": "boolean"
- }
- },
- "required": [
- "publishAccessRequired",
- "rootID",
- "rootIcon",
- "rootTitle",
- "rootTitleEmpty"
- ],
- "additionalProperties": false
- },
- "PutFileRequestInput": {
- "type": "object",
- "properties": {
- "app": {
- "type": "string"
- },
- "file": {
- "type": "string",
- "format": "binary"
- },
- "isDir": {
- "type": "string"
- },
- "modTime": {
- "type": "string"
- },
- "path": {
- "type": "string"
- }
- },
- "additionalProperties": false
- },
- "ReadDirectoryRequestInput": {
- "type": "object",
- "properties": {
- "path": {
- "type": "string"
- }
- },
- "required": [
- "path"
- ],
- "additionalProperties": false
- },
- "RecentDoc": {
- "type": "object",
- "properties": {
- "closedAt": {
- "type": "integer"
- },
- "icon": {
- "type": "string"
- },
- "openAt": {
- "type": "integer"
- },
- "rootID": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "viewedAt": {
- "type": "integer"
- }
- },
- "required": [
- "rootID"
- ],
- "additionalProperties": false
- },
- "RecentDocUpdateRequestInput": {
- "type": "object",
- "properties": {
- "rootID": {
+ "parentID": {
"anyOf": [
{
"type": "string"
@@ -11077,14 +10708,8 @@
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "RecentDocsRequestInput": {
- "type": "object",
- "properties": {
- "sortBy": {
+ },
+ "previousID": {
"anyOf": [
{
"type": "string"
@@ -11095,18 +10720,21 @@
]
}
},
+ "required": [
+ "id"
+ ],
"additionalProperties": false
},
- "RecentDocsUpdateRequestInput": {
+ "NetImageAssetsRequestInput": {
"type": "object",
"properties": {
- "rootIDs": {
+ "id": {
+ "type": "string"
+ },
+ "url": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "type": "string"
},
{
"type": "null"
@@ -11114,434 +10742,292 @@
]
}
},
+ "required": [
+ "id"
+ ],
"additionalProperties": false
},
- "RefDefs": {
+ "NetworkData": {
"type": "object",
"properties": {
- "defIDs": {
+ "proxy": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "$ref": "#/$defs/NetworkProxy"
},
{
"type": "null"
}
]
- },
- "refID": {
- "type": "string"
- }
- },
- "required": [
- "defIDs",
- "refID"
- ],
- "additionalProperties": false
- },
- "RefDefsData": {
- "type": "object",
- "properties": {
- "refDefs": {
- "type": "array",
- "items": {
- "$ref": "#/$defs/RefDefs"
- }
}
},
"required": [
- "refDefs"
+ "proxy"
],
"additionalProperties": false
},
- "RefIDsData": {
+ "NetworkProxy": {
"type": "object",
"properties": {
- "originalRefBlockIDs": {
- "anyOf": [
- {
- "type": "object",
- "additionalProperties": {
- "type": "string"
- }
- },
- {
- "type": "null"
- }
- ]
+ "host": {
+ "type": "string"
},
- "refDefs": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/RefDefs"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- {
- "type": "null"
- }
- ]
+ "port": {
+ "type": "string"
+ },
+ "scheme": {
+ "type": "string"
}
},
"required": [
- "originalRefBlockIDs",
- "refDefs"
+ "host",
+ "port",
+ "scheme"
],
"additionalProperties": false
},
- "RefIDsRequestInput": {
+ "NetworkProxyInput": {
"type": "object",
"properties": {
- "id": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
+ "host": {
+ "type": "string"
},
- "ids": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- {
- "type": "null"
- }
- ]
+ "port": {
+ "type": "string"
},
- "notebook": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
+ "scheme": {
+ "type": "string"
}
},
+ "required": [
+ "host",
+ "port",
+ "scheme"
+ ],
"additionalProperties": false
},
- "RefTextQueryRequestInput": {
+ "NetworkServeRequestInput": {
"type": "object",
"properties": {
- "anchor": {
- "type": "string"
- },
- "notebook": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
+ "networkServe": {
+ "type": "boolean"
}
},
"required": [
- "anchor"
+ "networkServe"
],
"additionalProperties": false
},
- "RefreshBacklinkRequestInput": {
+ "NetworkServeTLSRequestInput": {
"type": "object",
"properties": {
- "id": {
- "type": "string"
+ "networkServeTLS": {
+ "type": "boolean"
}
},
"required": [
- "id"
+ "networkServeTLS"
],
"additionalProperties": false
},
- "RemoveBookmarkRequestInput": {
+ "Notebook": {
"type": "object",
"properties": {
- "bookmark": {
+ "closed": {
+ "type": "boolean"
+ },
+ "dueFlashcardCount": {
+ "type": "integer"
+ },
+ "encrypted": {
+ "type": "boolean"
+ },
+ "flashcardCount": {
+ "type": "integer"
+ },
+ "icon": {
"type": "string"
- }
- },
- "required": [
- "bookmark"
- ],
- "additionalProperties": false
- },
- "RemoveCloudRepoTagSnapshotRequestInput": {
- "type": "object",
- "properties": {
- "tag": {
+ },
+ "id": {
"type": "string"
- }
- },
- "required": [
- "tag"
- ],
- "additionalProperties": false
- },
- "RemoveCriterionRequestInput": {
- "type": "object",
- "properties": {
+ },
"name": {
"type": "string"
+ },
+ "newFlashcardCount": {
+ "type": "integer"
+ },
+ "sort": {
+ "type": "integer"
+ },
+ "sortMode": {
+ "type": "integer"
+ },
+ "state": {
+ "type": "string",
+ "enum": [
+ "Locked",
+ "Unlocking",
+ "Unlocked",
+ "Locking",
+ "Error"
+ ]
+ },
+ "subFileCount": {
+ "type": "integer"
+ },
+ "unlocked": {
+ "type": "boolean"
}
},
"required": [
- "name"
+ "closed",
+ "dueFlashcardCount",
+ "encrypted",
+ "flashcardCount",
+ "icon",
+ "id",
+ "name",
+ "newFlashcardCount",
+ "sort",
+ "sortMode",
+ "subFileCount",
+ "unlocked"
],
"additionalProperties": false
},
- "RemoveFileRequestInput": {
+ "NotebookConf": {
"type": "object",
"properties": {
- "app": {
+ "boxCrypt": {
"anyOf": [
{
- "type": "string"
+ "$ref": "#/$defs/NotebookEncryption"
},
{
"type": "null"
}
]
},
- "path": {
- "type": "string"
- }
- },
- "required": [
- "path"
- ],
- "additionalProperties": false
- },
- "RemoveRepoTagSnapshotRequestInput": {
- "type": "object",
- "properties": {
- "tag": {
+ "closed": {
+ "type": "boolean"
+ },
+ "dailyNoteSavePath": {
"type": "string"
- }
- },
- "required": [
- "tag"
- ],
- "additionalProperties": false
- },
- "RemoveShorthandsRequestInput": {
- "type": "object",
- "properties": {
- "ids": {
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- },
- "required": [
- "ids"
- ],
- "additionalProperties": false
- },
- "RemoveTagRequestInput": {
- "type": "object",
- "properties": {
- "label": {
+ },
+ "dailyNoteTemplatePath": {
"type": "string"
- }
- },
- "required": [
- "label"
- ],
- "additionalProperties": false
- },
- "RenameBookmarkRequestInput": {
- "type": "object",
- "properties": {
- "newBookmark": {
+ },
+ "docCreateSaveBox": {
"type": "string"
},
- "oldBookmark": {
+ "docCreateSavePath": {
"type": "string"
- }
- },
- "required": [
- "newBookmark",
- "oldBookmark"
- ],
- "additionalProperties": false
- },
- "RenameFileRequestInput": {
- "type": "object",
- "properties": {
- "newPath": {
+ },
+ "docCreateTemplatePath": {
"type": "string"
},
- "path": {
+ "encrypted": {
+ "type": "boolean"
+ },
+ "icon": {
"type": "string"
- }
- },
- "required": [
- "newPath",
- "path"
- ],
- "additionalProperties": false
- },
- "RenameNotebookRequestInput": {
- "type": "object",
- "properties": {
+ },
"name": {
"type": "string"
},
- "notebook": {
+ "refCreateSaveBox": {
"type": "string"
+ },
+ "refCreateSavePath": {
+ "type": "string"
+ },
+ "sort": {
+ "type": "integer"
+ },
+ "sortMode": {
+ "type": "integer"
}
},
"required": [
+ "boxCrypt",
+ "closed",
+ "dailyNoteSavePath",
+ "dailyNoteTemplatePath",
+ "docCreateSaveBox",
+ "docCreateSavePath",
+ "docCreateTemplatePath",
+ "encrypted",
+ "icon",
"name",
- "notebook"
+ "refCreateSaveBox",
+ "refCreateSavePath",
+ "sort",
+ "sortMode"
],
"additionalProperties": false
},
- "RenameRiffDeckRequestInput": {
+ "NotebookConfData": {
"type": "object",
"properties": {
- "deckID": {
+ "box": {
"type": "string"
},
+ "conf": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/NotebookConf"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
"name": {
"type": "string"
}
},
"required": [
- "deckID",
+ "box",
+ "conf",
"name"
],
"additionalProperties": false
},
- "RenameTagRequestInput": {
+ "NotebookConfPatchInput": {
"type": "object",
"properties": {
- "newLabel": {
- "type": "string"
+ "boxCrypt": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/NotebookEncryptionPatchInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "oldLabel": {
- "type": "string"
- }
- },
- "required": [
- "newLabel",
- "oldLabel"
- ],
- "additionalProperties": false
- },
- "RenderSprigRequestInput": {
- "type": "object",
- "properties": {
- "template": {
- "type": "string"
- }
- },
- "required": [
- "template"
- ],
- "additionalProperties": false
- },
- "RenderTemplateData": {
- "type": "object",
- "properties": {
- "content": {
- "type": "string"
- },
- "docTreePlan": {
- "$ref": "#/$defs/TemplatePlan"
- },
- "path": {
- "type": "string"
- }
- },
- "required": [
- "content",
- "path"
- ],
- "additionalProperties": false
- },
- "RenderTemplateRequestInput": {
- "type": "object",
- "properties": {
- "content": {
- "type": "string"
- },
- "id": {
- "type": "string"
- },
- "mode": {
+ "closed": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "path": {
- "type": "string"
- },
- "preview": {
+ "dailyNoteSavePath": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
- }
- },
- "required": [
- "id",
- "path"
- ],
- "additionalProperties": false
- },
- "ReorderData": {
- "type": "object",
- "properties": {
- "changed": {
- "type": "boolean"
- },
- "notebook": {
- "type": "string"
},
- "parentPath": {
- "type": "string"
- }
- },
- "required": [
- "changed"
- ],
- "additionalProperties": false
- },
- "ReorderNotebooksRequestInput": {
- "type": "object",
- "properties": {
- "position": {
+ "dailyNoteTemplatePath": {
"anyOf": [
{
"type": "string"
@@ -11551,20 +11037,17 @@
}
]
},
- "sourceIDs": {
+ "docCreateSaveBox": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "type": "string"
},
{
"type": "null"
}
]
},
- "targetID": {
+ "docCreateSavePath": {
"anyOf": [
{
"type": "string"
@@ -11573,173 +11056,81 @@
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "RepoCloudSnapshotsData": {
- "type": "object",
- "properties": {
- "pageCount": {
- "type": "integer"
},
- "snapshots": {
+ "docCreateTemplatePath": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/RepoLog"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "string"
},
{
"type": "null"
}
]
},
- "totalCount": {
- "type": "integer"
- }
- },
- "required": [
- "pageCount",
- "snapshots",
- "totalCount"
- ],
- "additionalProperties": false
- },
- "RepoCloudTagsData": {
- "type": "object",
- "properties": {
- "snapshots": {
+ "encrypted": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/RepoLog"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "boolean"
},
{
"type": "null"
}
]
- }
- },
- "required": [
- "snapshots"
- ],
- "additionalProperties": false
- },
- "RepoDiffData": {
- "type": "object",
- "properties": {
- "addsLeft": {
+ },
+ "icon": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/RepoDiffFile"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "string"
},
{
"type": "null"
}
]
},
- "left": {
+ "name": {
"anyOf": [
{
- "$ref": "#/$defs/RepoDiffIndex"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "removesRight": {
+ "refCreateSaveBox": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/RepoDiffFile"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "string"
},
{
"type": "null"
}
]
},
- "right": {
+ "refCreateSavePath": {
"anyOf": [
{
- "$ref": "#/$defs/RepoDiffIndex"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "updatesLeft": {
+ "sort": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/RepoDiffFile"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "updatesRight": {
+ "sortMode": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/RepoDiffFile"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "integer"
},
{
"type": "null"
@@ -11747,488 +11138,297 @@
]
}
},
- "required": [
- "addsLeft",
- "left",
- "removesRight",
- "right",
- "updatesLeft",
- "updatesRight"
- ],
"additionalProperties": false
},
- "RepoDiffFile": {
+ "NotebookCryptoAutoLockRequestInput": {
"type": "object",
"properties": {
- "fileID": {
- "type": "string"
- },
- "hPath": {
- "type": "string"
- },
- "hSize": {
- "type": "string"
- },
- "indexID": {
- "type": "string"
- },
- "path": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "updated": {
- "type": "integer"
+ "autoLockMinutes": {
+ "type": "number"
}
},
"required": [
- "fileID",
- "hSize",
- "indexID",
- "path",
- "title",
- "updated"
+ "autoLockMinutes"
],
"additionalProperties": false
},
- "RepoDiffIndex": {
+ "NotebookCryptoBackupData": {
"type": "object",
"properties": {
- "created": {
- "type": "integer"
- },
- "id": {
+ "file": {
"type": "string"
}
},
"required": [
- "created",
- "id"
+ "file"
],
"additionalProperties": false
},
- "RepoDocHistory": {
+ "NotebookEncryption": {
"type": "object",
"properties": {
- "fileID": {
- "type": "string"
+ "createdAt": {
+ "type": "integer"
},
- "hSize": {
+ "metadata": {
"type": "string"
},
- "indexID": {
- "type": "string"
+ "spec": {
+ "type": "integer"
},
- "title": {
- "type": "string"
+ "wrapNonce": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "updated": {
- "type": "integer"
+ "wrappedDEK": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
"required": [
- "fileID",
- "hSize",
- "indexID",
- "title",
- "updated"
+ "createdAt",
+ "spec",
+ "wrapNonce",
+ "wrappedDEK"
],
"additionalProperties": false
},
- "RepoDocHistoryData": {
+ "NotebookEncryptionPatchInput": {
"type": "object",
"properties": {
- "files": {
+ "createdAt": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/RepoDocHistory"
- },
- {
- "type": "null"
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "metadata": {
+ "anyOf": [
+ {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "array",
+ "items": {
+ "type": "integer"
}
- ]
- }
+ }
+ ]
},
{
"type": "null"
}
]
},
- "pageCount": {
- "type": "integer"
+ "spec": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "totalCount": {
- "type": "integer"
- }
- },
- "required": [
- "files",
- "pageCount",
- "totalCount"
- ],
- "additionalProperties": false
- },
- "RepoExportData": {
- "type": "object",
- "properties": {
- "path": {
- "type": "string"
+ "wrapNonce": {
+ "anyOf": [
+ {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "array",
+ "items": {
+ "type": "integer"
+ }
+ }
+ ]
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "wrappedDEK": {
+ "anyOf": [
+ {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "array",
+ "items": {
+ "type": "integer"
+ }
+ }
+ ]
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
- "required": [
- "path"
- ],
"additionalProperties": false
},
- "RepoFile": {
+ "NotebookHistoryData": {
"type": "object",
"properties": {
- "chunks": {
+ "histories": {
"anyOf": [
{
"type": "array",
"items": {
- "type": "string"
+ "anyOf": [
+ {
+ "$ref": "#/$defs/History"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
{
"type": "null"
}
]
- },
- "id": {
- "type": "string"
- },
- "path": {
- "type": "string"
- },
- "size": {
- "type": "integer"
- },
- "updated": {
- "type": "integer"
}
},
"required": [
- "chunks",
- "id",
- "path",
- "size",
- "updated"
+ "histories"
],
"additionalProperties": false
},
- "RepoKeyData": {
+ "NotebookIDRequestInput": {
"type": "object",
"properties": {
- "key": {
+ "notebook": {
"type": "string"
}
},
"required": [
- "key"
+ "notebook"
],
"additionalProperties": false
},
- "RepoLog": {
+ "NotebookInfo": {
"type": "object",
"properties": {
- "count": {
+ "ctime": {
"type": "integer"
},
- "created": {
+ "docCount": {
"type": "integer"
},
- "files": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/RepoFile"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- {
- "type": "null"
- }
- ]
- },
- "hCreated": {
+ "hCtime": {
"type": "string"
},
- "hSize": {
+ "hMtime": {
"type": "string"
},
- "hTagUpdated": {
+ "hSize": {
"type": "string"
},
"id": {
"type": "string"
},
- "memo": {
- "type": "string"
- },
- "size": {
+ "mtime": {
"type": "integer"
},
- "systemID": {
- "type": "string"
- },
- "systemName": {
- "type": "string"
- },
- "systemOS": {
+ "name": {
"type": "string"
},
- "tag": {
- "type": "string"
+ "size": {
+ "type": "integer"
}
},
"required": [
- "count",
- "created",
- "files",
- "hCreated",
+ "ctime",
+ "docCount",
+ "hCtime",
+ "hMtime",
"hSize",
- "hTagUpdated",
"id",
- "memo",
- "size",
- "systemID",
- "systemName",
- "systemOS",
- "tag"
+ "mtime",
+ "name",
+ "size"
],
"additionalProperties": false
},
- "RepoOpenFileData": {
+ "NotebookInfoData": {
"type": "object",
"properties": {
- "content": {
- "type": "string"
- },
- "displayInText": {
- "type": "boolean"
- },
- "title": {
- "type": "string"
- },
- "updated": {
- "type": "integer"
- }
- },
- "required": [
- "content",
- "displayInText",
- "title",
- "updated"
- ],
- "additionalProperties": false
- },
- "RepoSearchData": {
- "type": "object",
- "properties": {
- "files": {
+ "boxInfo": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/RepoDiffFile"
- },
- {
- "type": "null"
- }
- ]
- }
+ "$ref": "#/$defs/NotebookInfo"
},
{
"type": "null"
}
]
- },
- "pageCount": {
- "type": "integer"
- },
- "totalCount": {
- "type": "integer"
}
},
"required": [
- "files",
- "pageCount",
- "totalCount"
+ "boxInfo"
],
"additionalProperties": false
},
- "RepoSnapshot": {
+ "NotebookPasswordRequestInput": {
"type": "object",
"properties": {
- "count": {
- "type": "integer"
- },
- "created": {
- "type": "integer"
- },
- "files": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/RepoFile"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- {
- "type": "null"
- }
- ]
- },
- "hCreated": {
- "type": "string"
- },
- "hSize": {
- "type": "string"
- },
- "hTagUpdated": {
- "type": "string"
- },
- "id": {
- "type": "string"
- },
- "memo": {
- "type": "string"
- },
- "requiresDownload": {
- "type": "boolean"
- },
- "size": {
- "type": "integer"
- },
- "systemID": {
- "type": "string"
- },
- "systemName": {
- "type": "string"
- },
- "systemOS": {
- "type": "string"
- },
- "tag": {
+ "password": {
"type": "string"
- },
- "typesCount": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/RepoTypeCount"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- {
- "type": "null"
- }
- ]
}
},
"required": [
- "count",
- "created",
- "files",
- "hCreated",
- "hSize",
- "hTagUpdated",
- "id",
- "memo",
- "requiresDownload",
- "size",
- "systemID",
- "systemName",
- "systemOS",
- "tag",
- "typesCount"
+ "password"
],
"additionalProperties": false
},
- "RepoSnapshotsData": {
+ "NotificationData": {
"type": "object",
"properties": {
- "pageCount": {
- "type": "integer"
- },
- "snapshots": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/RepoSnapshot"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- {
- "type": "null"
- }
- ]
- },
- "totalCount": {
- "type": "integer"
+ "id": {
+ "type": "string"
}
},
"required": [
- "pageCount",
- "snapshots",
- "totalCount"
+ "id"
],
"additionalProperties": false
},
- "RepoTagsData": {
+ "NotificationRequestInput": {
"type": "object",
"properties": {
- "snapshots": {
+ "msg": {
+ "type": "string"
+ },
+ "timeout": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/RepoSnapshot"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "number"
},
{
"type": "null"
@@ -12237,54 +11437,60 @@
}
},
"required": [
- "snapshots"
+ "msg"
],
"additionalProperties": false
},
- "RepoTypeCount": {
+ "ObsidianAnalysisRequestInput": {
"type": "object",
"properties": {
- "count": {
- "type": "integer"
- },
- "type": {
+ "localPath": {
"type": "string"
}
},
"required": [
- "count",
- "type"
+ "localPath"
],
"additionalProperties": false
},
- "ResetGraphData": {
+ "ObsidianImportRequestInput": {
"type": "object",
"properties": {
- "conf": {
- "$ref": "#/$defs/GlobalGraphConf"
+ "notebookName": {
+ "type": "string"
+ },
+ "taskID": {
+ "type": "string"
}
},
"required": [
- "conf"
+ "notebookName",
+ "taskID"
],
"additionalProperties": false
},
- "ResetLocalGraphData": {
+ "ObsidianTaskRequestInput": {
"type": "object",
"properties": {
- "conf": {
- "$ref": "#/$defs/LocalGraphConf"
+ "taskID": {
+ "type": "string"
}
},
"required": [
- "conf"
+ "taskID"
],
"additionalProperties": false
},
- "ResetRiffCardsRequestInput": {
+ "ObsidianVaultAnalysis": {
"type": "object",
"properties": {
- "blockIDs": {
+ "ambiguousCount": {
+ "type": "integer"
+ },
+ "blockIDCount": {
+ "type": "integer"
+ },
+ "blockingErrors": {
"anyOf": [
{
"type": "array",
@@ -12297,95 +11503,61 @@
}
]
},
- "deckID": {
- "type": "string"
+ "commentCount": {
+ "type": "integer"
},
- "id": {
- "type": "string"
+ "embedCount": {
+ "type": "integer"
},
- "type": {
- "type": "string"
- }
- },
- "required": [
- "deckID",
- "id",
- "type"
- ],
- "additionalProperties": false
- },
- "ReviewRiffCardRequestInput": {
- "type": "object",
- "properties": {
- "cardID": {
- "type": "string"
+ "footnoteCount": {
+ "type": "integer"
},
- "deckID": {
- "type": "string"
+ "importableAssetCount": {
+ "type": "integer"
},
- "rating": {
- "type": "number"
+ "importableAssetSize": {
+ "type": "integer"
},
- "reviewedCards": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "$ref": "#/$defs/RiffReviewedCardInput"
- }
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "cardID",
- "deckID",
- "rating"
- ],
- "additionalProperties": false
- },
- "RichClipboardAssetInput": {
- "type": "object",
- "properties": {
- "box": {
+ "markdownCount": {
+ "type": "integer"
+ },
+ "missingCount": {
+ "type": "integer"
+ },
+ "nameAdjustmentCount": {
+ "type": "integer"
+ },
+ "notebookName": {
"type": "string"
},
- "index": {
+ "skippedHiddenCount": {
"type": "integer"
},
- "path": {
+ "skippedLinkCount": {
+ "type": "integer"
+ },
+ "skippedNestedVaultCount": {
+ "type": "integer"
+ },
+ "skippedSpecialCount": {
+ "type": "integer"
+ },
+ "syntheticParentCount": {
+ "type": "integer"
+ },
+ "unreferencedFileCount": {
+ "type": "integer"
+ },
+ "unsupportedCount": {
+ "type": "integer"
+ },
+ "vaultName": {
"type": "string"
- }
- },
- "required": [
- "index",
- "path"
- ],
- "additionalProperties": false
- },
- "RichClipboardPrepared": {
- "type": "object",
- "properties": {
- "assets": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "$ref": "#/$defs/RichClipboardPreparedAsset"
- }
- },
- {
- "type": "null"
- }
- ]
},
- "batch": {
+ "vaultPath": {
"type": "string"
},
- "groups": {
+ "warnings": {
"anyOf": [
{
"type": "array",
@@ -12397,157 +11569,218 @@
"type": "null"
}
]
+ },
+ "wikiLinkCount": {
+ "type": "integer"
}
},
"required": [
- "assets",
- "batch",
- "groups"
+ "ambiguousCount",
+ "blockIDCount",
+ "blockingErrors",
+ "commentCount",
+ "embedCount",
+ "footnoteCount",
+ "importableAssetCount",
+ "importableAssetSize",
+ "markdownCount",
+ "missingCount",
+ "nameAdjustmentCount",
+ "notebookName",
+ "skippedHiddenCount",
+ "skippedLinkCount",
+ "skippedNestedVaultCount",
+ "skippedSpecialCount",
+ "syntheticParentCount",
+ "unreferencedFileCount",
+ "unsupportedCount",
+ "vaultName",
+ "vaultPath",
+ "warnings",
+ "wikiLinkCount"
],
"additionalProperties": false
},
- "RichClipboardPreparedAsset": {
+ "ObsidianVaultImportResult": {
"type": "object",
"properties": {
- "index": {
+ "convertedEmbedCount": {
"type": "integer"
},
- "path": {
+ "convertedFootnoteCount": {
+ "type": "integer"
+ },
+ "convertedLinkCount": {
+ "type": "integer"
+ },
+ "failedStage": {
+ "type": "string"
+ },
+ "importedAttachmentCount": {
+ "type": "integer"
+ },
+ "incomplete": {
+ "type": "boolean"
+ },
+ "markdownCount": {
+ "type": "integer"
+ },
+ "nameAdjustmentCount": {
+ "type": "integer"
+ },
+ "notebookID": {
"type": "string"
+ },
+ "notebookName": {
+ "type": "string"
+ },
+ "preservedCommentCount": {
+ "type": "integer"
+ },
+ "preservedUnresolvedCount": {
+ "type": "integer"
+ },
+ "skippedPathCount": {
+ "type": "integer"
+ },
+ "syntheticParentCount": {
+ "type": "integer"
+ },
+ "unreferencedFileCount": {
+ "type": "integer"
}
},
"required": [
- "index",
- "path"
+ "convertedEmbedCount",
+ "convertedFootnoteCount",
+ "convertedLinkCount",
+ "importedAttachmentCount",
+ "incomplete",
+ "markdownCount",
+ "nameAdjustmentCount",
+ "notebookID",
+ "notebookName",
+ "preservedCommentCount",
+ "preservedUnresolvedCount",
+ "skippedPathCount",
+ "syntheticParentCount",
+ "unreferencedFileCount"
],
"additionalProperties": false
},
- "RiffBlockIDsRequestInput": {
+ "ObsidianVaultTask": {
"type": "object",
"properties": {
- "blockIDs": {
- "type": "array",
- "items": {
- "type": "string"
- }
+ "analysis": {
+ "$ref": "#/$defs/ObsidianVaultAnalysis"
+ },
+ "detail": {
+ "type": "string"
+ },
+ "error": {
+ "type": "string"
+ },
+ "message": {
+ "type": "string"
+ },
+ "progress": {
+ "type": "integer"
+ },
+ "result": {
+ "$ref": "#/$defs/ObsidianVaultImportResult"
+ },
+ "state": {
+ "type": "string"
+ },
+ "taskID": {
+ "type": "string"
}
},
"required": [
- "blockIDs"
+ "message",
+ "progress",
+ "state",
+ "taskID"
],
"additionalProperties": false
},
- "RiffBlocksData": {
+ "OpenNotebookRequestInput": {
"type": "object",
"properties": {
- "blocks": {
+ "app": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/SearchBlock"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "string"
},
{
"type": "null"
}
]
+ },
+ "notebook": {
+ "type": "string"
}
},
"required": [
- "blocks"
+ "notebook"
],
"additionalProperties": false
},
- "RiffCardDueInput": {
+ "OpenRepoSnapshotFileRequestInput": {
"type": "object",
"properties": {
- "due": {
- "type": "string"
- },
"id": {
"type": "string"
}
},
"required": [
- "due",
"id"
],
"additionalProperties": false
},
- "RiffCardRequestInput": {
+ "OrderedListStartData": {
"type": "object",
"properties": {
- "cardID": {
- "type": "string"
+ "found": {
+ "type": "boolean"
},
- "deckID": {
- "type": "string"
+ "start": {
+ "type": "integer"
}
},
"required": [
- "cardID",
- "deckID"
+ "found",
+ "start"
],
"additionalProperties": false
},
- "RiffCardsData": {
+ "OutlineRequestInput": {
"type": "object",
"properties": {
- "blocks": {
+ "id": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/SearchBlock"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "string"
},
{
"type": "null"
}
]
},
- "pageCount": {
- "type": "integer"
- },
- "total": {
- "type": "integer"
- }
- },
- "required": [
- "blocks",
- "pageCount",
- "total"
- ],
- "additionalProperties": false
- },
- "RiffCardsRequestInput": {
- "type": "object",
- "properties": {
- "id": {
- "type": "string"
- },
- "page": {
- "type": "number"
+ "notebook": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "pageSize": {
+ "preview": {
"anyOf": [
{
- "type": "number"
+ "type": "boolean"
},
{
"type": "null"
@@ -12555,233 +11788,276 @@
]
}
},
- "required": [
- "id",
- "page"
- ],
"additionalProperties": false
},
- "RiffDeck": {
+ "OutlineStorageRequestInput": {
"type": "object",
"properties": {
- "created": {
- "type": "string"
- },
- "id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "size": {
- "type": "integer"
- },
- "updated": {
+ "docID": {
"type": "string"
}
},
"required": [
- "created",
- "id",
- "name",
- "size",
- "updated"
+ "docID"
],
"additionalProperties": false
},
- "RiffDeckCardsRequestInput": {
+ "OutlineStorageSetRequestInput": {
"type": "object",
"properties": {
- "blockIDs": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "deckID": {
+ "docID": {
"type": "string"
+ },
+ "val": {
+ "type": "object",
+ "additionalProperties": {
+ "$ref": "#/$defs/JSONValue"
+ }
}
},
"required": [
- "blockIDs",
- "deckID"
+ "docID",
+ "val"
],
"additionalProperties": false
},
- "RiffDeckRequestInput": {
+ "PandocData": {
"type": "object",
"properties": {
- "deckID": {
+ "path": {
"type": "string"
}
},
"required": [
- "deckID"
+ "path"
],
"additionalProperties": false
},
- "RiffDueCard": {
+ "PandocRequestInput": {
"type": "object",
"properties": {
- "blockID": {
- "type": "string"
- },
- "cardID": {
- "type": "string"
- },
- "deckID": {
- "type": "string"
- },
- "lapses": {
- "type": "integer"
- },
- "lastReview": {
- "type": "integer"
+ "args": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
- "nextDues": {
+ "dir": {
"anyOf": [
{
- "type": "object",
- "additionalProperties": {
- "type": "string"
- }
+ "type": "string"
},
{
"type": "null"
}
]
- },
- "reps": {
- "type": "integer"
- },
- "state": {
- "type": "integer"
}
},
"required": [
- "blockID",
- "cardID",
- "deckID",
- "lapses",
- "lastReview",
- "nextDues",
- "reps",
- "state"
+ "args"
],
"additionalProperties": false
},
- "RiffDueCardsData": {
+ "PerformSyncRequestInput": {
"type": "object",
"properties": {
- "cards": {
+ "mobileSwitch": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/RiffDueCard"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "unreviewedCount": {
- "type": "integer"
- },
- "unreviewedNewCardCount": {
- "type": "integer"
- },
- "unreviewedOldCardCount": {
- "type": "integer"
+ "upload": {
+ "type": "boolean"
}
},
- "required": [
- "cards",
- "unreviewedCount",
- "unreviewedNewCardCount",
- "unreviewedOldCardCount"
- ],
"additionalProperties": false
},
- "RiffDueCardsRequestInput": {
+ "Petal": {
"type": "object",
"properties": {
- "deckID": {
+ "css": {
"type": "string"
},
- "reviewedCards": {
+ "disabledInPublish": {
+ "type": "boolean"
+ },
+ "disallowInstall": {
+ "type": "boolean"
+ },
+ "displayName": {
+ "type": "string"
+ },
+ "enabled": {
+ "type": "boolean"
+ },
+ "i18n": {
"anyOf": [
{
- "type": "array",
- "items": {
- "$ref": "#/$defs/RiffReviewedCardInput"
+ "type": "object",
+ "additionalProperties": {
+ "$ref": "#/$defs/JSONValue"
}
},
{
"type": "null"
}
]
+ },
+ "incompatible": {
+ "type": "boolean"
+ },
+ "js": {
+ "type": "string"
+ },
+ "kernel": {
+ "$ref": "#/$defs/KernelPetal"
+ },
+ "name": {
+ "type": "string"
+ },
+ "userDisabledInPublish": {
+ "type": "boolean"
+ },
+ "version": {
+ "type": "string"
}
},
"required": [
- "deckID"
+ "css",
+ "disabledInPublish",
+ "disallowInstall",
+ "displayName",
+ "enabled",
+ "i18n",
+ "incompatible",
+ "js",
+ "kernel",
+ "name",
+ "userDisabledInPublish",
+ "version"
],
"additionalProperties": false
},
- "RiffNotebookDueCardsRequestInput": {
+ "PinnedDoc": {
"type": "object",
"properties": {
- "notebook": {
- "type": "string"
- },
- "reviewedCards": {
+ "childrenSortMode": {
"anyOf": [
{
- "type": "array",
- "items": {
- "$ref": "#/$defs/RiffReviewedCardInput"
- }
+ "type": "integer"
},
{
"type": "null"
}
]
- }
- },
- "required": [
- "notebook"
- ],
- "additionalProperties": false
- },
- "RiffReviewedCardInput": {
- "type": "object",
- "properties": {
- "cardID": {
+ },
+ "icon": {
"type": "string"
+ },
+ "id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "notebook": {
+ "type": "string"
+ },
+ "path": {
+ "type": "string"
+ },
+ "subFileCount": {
+ "type": "integer"
+ },
+ "unavailable": {
+ "type": "boolean"
}
},
"required": [
- "cardID"
+ "childrenSortMode",
+ "icon",
+ "id",
+ "name",
+ "notebook",
+ "path",
+ "subFileCount",
+ "unavailable"
],
"additionalProperties": false
},
- "RiffTreeDueCardsRequestInput": {
+ "PluginRPCError": {
"type": "object",
"properties": {
- "reviewedCards": {
+ "code": {
+ "type": "integer"
+ },
+ "data": {
+ "$ref": "#/$defs/JSONValue"
+ },
+ "message": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "message"
+ ],
+ "additionalProperties": false
+ },
+ "PluginRPCFailure": {
+ "type": "object",
+ "properties": {
+ "error": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/PluginRPCError"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "id": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "jsonrpc": {
+ "type": "string",
+ "enum": [
+ "2.0"
+ ]
+ }
+ },
+ "required": [
+ "error",
+ "id",
+ "jsonrpc"
+ ],
+ "additionalProperties": false
+ },
+ "PluginRPCMethod": {
+ "type": "object",
+ "properties": {
+ "descriptions": {
"anyOf": [
{
"type": "array",
"items": {
- "$ref": "#/$defs/RiffReviewedCardInput"
+ "type": "string"
}
},
{
@@ -12789,176 +12065,311 @@
}
]
},
- "rootID": {
+ "name": {
"type": "string"
}
},
"required": [
- "rootID"
+ "descriptions",
+ "name"
],
"additionalProperties": false
},
- "RollbackRepoSnapshotFileRequestInput": {
+ "PluginRPCNotification": {
"type": "object",
"properties": {
- "id": {
+ "jsonrpc": {
+ "type": "string",
+ "enum": [
+ "2.0"
+ ]
+ },
+ "method": {
"type": "string"
+ },
+ "params": {
+ "$ref": "#/$defs/JSONValue"
}
},
"required": [
- "id"
+ "jsonrpc",
+ "method"
],
"additionalProperties": false
},
- "SQLQueryRequestInput": {
+ "PluginRPCRequestFieldsInput": {
"type": "object",
"properties": {
- "mode": {
+ "id": {
"anyOf": [
{
"type": "string"
},
+ {
+ "type": "number"
+ },
{
"type": "null"
}
]
},
- "stmt": {
+ "jsonrpc": {
+ "type": "string",
+ "enum": [
+ "2.0"
+ ]
+ },
+ "method": {
"type": "string"
+ },
+ "params": {
+ "anyOf": [
+ {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/JSONValue"
+ }
+ },
+ {
+ "type": "object",
+ "additionalProperties": {
+ "$ref": "#/$defs/JSONValue"
+ }
+ }
+ ]
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
"required": [
- "stmt"
+ "jsonrpc",
+ "method"
],
"additionalProperties": false
},
- "SaveTemplateRequestInput": {
+ "PluginRPCSuccess": {
"type": "object",
"properties": {
- "databaseMode": {
- "type": "string"
- },
- "directory": {
- "type": "string"
- },
"id": {
- "type": "string"
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "name": {
- "type": "string"
+ "jsonrpc": {
+ "type": "string",
+ "enum": [
+ "2.0"
+ ]
},
- "overwrite": {
- "type": "boolean"
+ "result": {
+ "$ref": "#/$defs/JSONValue"
}
},
"required": [
"id",
- "name",
- "overwrite"
+ "jsonrpc",
+ "result"
],
"additionalProperties": false
},
- "SearchAsset": {
+ "PrepareRichTextRequestInput": {
"type": "object",
"properties": {
- "hName": {
- "type": "string"
- },
- "path": {
- "type": "string"
- },
- "updated": {
- "type": "integer"
+ "assets": {
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/RichClipboardAssetInput"
+ }
}
},
"required": [
- "hName",
- "path",
- "updated"
+ "assets"
],
"additionalProperties": false
},
- "SearchAssetContentData": {
+ "PrependBlockRequestInput": {
"type": "object",
"properties": {
- "assetContents": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/AssetContent"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- {
- "type": "null"
- }
- ]
+ "data": {
+ "type": "string"
},
- "matchedAssetCount": {
- "type": "integer"
+ "dataType": {
+ "type": "string"
},
- "pageCount": {
- "type": "integer"
+ "parentID": {
+ "type": "string"
}
},
"required": [
- "assetContents",
- "matchedAssetCount",
- "pageCount"
+ "data",
+ "dataType",
+ "parentID"
],
"additionalProperties": false
},
- "SearchAssetContentRequestInput": {
+ "ProcessPDFRequestInput": {
"type": "object",
"properties": {
- "method": {
+ "id": {
+ "type": "string"
+ },
+ "merge": {
"anyOf": [
{
- "type": "number"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "orderBy": {
+ "mergeContentHeadingMode": {
"anyOf": [
{
- "type": "number"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "page": {
+ "mergeDocHeadingMode": {
"anyOf": [
{
- "type": "number"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "pageSize": {
- "anyOf": [
- {
- "type": "number"
- },
- {
- "type": "null"
- }
+ "path": {
+ "type": "string"
+ },
+ "removeAssets": {
+ "type": "boolean"
+ },
+ "watermark": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "id",
+ "path",
+ "removeAssets",
+ "watermark"
+ ],
+ "additionalProperties": false
+ },
+ "PublishedBlockInfo": {
+ "type": "object",
+ "properties": {
+ "publishAccessRequired": {
+ "type": "boolean",
+ "enum": [
+ true
]
},
- "query": {
+ "rootID": {
+ "type": "string"
+ },
+ "rootIcon": {
+ "type": "string"
+ },
+ "rootTitle": {
+ "type": "string"
+ },
+ "rootTitleEmpty": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "publishAccessRequired",
+ "rootID",
+ "rootIcon",
+ "rootTitle",
+ "rootTitleEmpty"
+ ],
+ "additionalProperties": false
+ },
+ "PutFileRequestInput": {
+ "type": "object",
+ "properties": {
+ "app": {
+ "type": "string"
+ },
+ "file": {
+ "type": "string",
+ "format": "binary"
+ },
+ "isDir": {
+ "type": "string"
+ },
+ "modTime": {
+ "type": "string"
+ },
+ "path": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false
+ },
+ "ReadDirectoryRequestInput": {
+ "type": "object",
+ "properties": {
+ "path": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "path"
+ ],
+ "additionalProperties": false
+ },
+ "RecentDoc": {
+ "type": "object",
+ "properties": {
+ "closedAt": {
+ "type": "integer"
+ },
+ "icon": {
+ "type": "string"
+ },
+ "openAt": {
+ "type": "integer"
+ },
+ "rootID": {
+ "type": "string"
+ },
+ "title": {
+ "type": "string"
+ },
+ "viewedAt": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "rootID"
+ ],
+ "additionalProperties": false
+ },
+ "RecentDocUpdateRequestInput": {
+ "type": "object",
+ "properties": {
+ "rootID": {
"anyOf": [
{
"type": "string"
@@ -12967,14 +12378,17 @@
"type": "null"
}
]
- },
- "types": {
+ }
+ },
+ "additionalProperties": false
+ },
+ "RecentDocsRequestInput": {
+ "type": "object",
+ "properties": {
+ "sortBy": {
"anyOf": [
{
- "type": "object",
- "additionalProperties": {
- "type": "boolean"
- }
+ "type": "string"
},
{
"type": "null"
@@ -12984,10 +12398,10 @@
},
"additionalProperties": false
},
- "SearchAssetRequestInput": {
+ "RecentDocsUpdateRequestInput": {
"type": "object",
"properties": {
- "exts": {
+ "rootIDs": {
"anyOf": [
{
"type": "array",
@@ -12999,38 +12413,19 @@
"type": "null"
}
]
- },
- "k": {
- "type": "string"
}
},
- "required": [
- "k"
- ],
"additionalProperties": false
},
- "SearchBlock": {
+ "RefDefs": {
"type": "object",
"properties": {
- "alias": {
- "type": "string"
- },
- "box": {
- "type": "string"
- },
- "children": {
+ "defIDs": {
"anyOf": [
{
"type": "array",
"items": {
- "anyOf": [
- {
- "$ref": "#/$defs/SearchBlock"
- },
- {
- "type": "null"
- }
- ]
+ "type": "string"
}
},
{
@@ -13038,34 +12433,35 @@
}
]
},
- "content": {
- "type": "string"
- },
- "count": {
- "type": "integer"
- },
- "created": {
- "type": "string"
- },
- "defID": {
- "type": "string"
- },
- "defPath": {
- "type": "string"
- },
- "depth": {
- "type": "integer"
- },
- "fcontent": {
- "type": "string"
- },
- "folded": {
- "type": "boolean"
- },
- "hPath": {
+ "refID": {
"type": "string"
- },
- "ial": {
+ }
+ },
+ "required": [
+ "defIDs",
+ "refID"
+ ],
+ "additionalProperties": false
+ },
+ "RefDefsData": {
+ "type": "object",
+ "properties": {
+ "refDefs": {
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/RefDefs"
+ }
+ }
+ },
+ "required": [
+ "refDefs"
+ ],
+ "additionalProperties": false
+ },
+ "RefIDsData": {
+ "type": "object",
+ "properties": {
+ "originalRefBlockIDs": {
"anyOf": [
{
"type": "object",
@@ -13078,41 +12474,14 @@
}
]
},
- "id": {
- "type": "string"
- },
- "markdown": {
- "type": "string"
- },
- "memo": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "number": {
- "type": "string"
- },
- "parentID": {
- "type": "string"
- },
- "path": {
- "type": "string"
- },
- "refCount": {
- "type": "integer"
- },
- "refText": {
- "type": "string"
- },
- "refs": {
+ "refDefs": {
"anyOf": [
{
"type": "array",
"items": {
"anyOf": [
{
- "$ref": "#/$defs/SearchBlock"
+ "$ref": "#/$defs/RefDefs"
},
{
"type": "null"
@@ -13124,155 +12493,28 @@
"type": "null"
}
]
- },
- "riffCard": {
- "anyOf": [
- {
- "$ref": "#/$defs/SearchBlockCard"
- },
- {
- "type": "null"
- }
- ]
- },
- "riffCardID": {
- "type": "string"
- },
- "rootID": {
- "type": "string"
- },
- "sort": {
- "type": "integer"
- },
- "subType": {
- "type": "string"
- },
- "tag": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "updated": {
- "type": "string"
- }
- },
- "required": [
- "alias",
- "box",
- "children",
- "content",
- "count",
- "created",
- "defID",
- "defPath",
- "depth",
- "fcontent",
- "folded",
- "hPath",
- "ial",
- "id",
- "markdown",
- "memo",
- "name",
- "parentID",
- "path",
- "refCount",
- "refText",
- "refs",
- "riffCard",
- "riffCardID",
- "rootID",
- "sort",
- "subType",
- "tag",
- "type",
- "updated"
- ],
- "additionalProperties": false
- },
- "SearchBlockCard": {
- "type": "object",
- "properties": {
- "due": {
- "type": "string"
- },
- "lapses": {
- "type": "integer"
- },
- "lastReview": {
- "type": "string"
- },
- "reps": {
- "type": "integer"
- },
- "state": {
- "type": "integer"
}
},
"required": [
- "due",
- "lapses",
- "lastReview",
- "reps",
- "state"
+ "originalRefBlockIDs",
+ "refDefs"
],
"additionalProperties": false
},
- "SearchBlockRequestInput": {
+ "RefIDsRequestInput": {
"type": "object",
"properties": {
- "groupBy": {
- "anyOf": [
- {
- "type": "number"
- },
- {
- "type": "null"
- }
- ]
- },
- "method": {
- "anyOf": [
- {
- "type": "number"
- },
- {
- "type": "null"
- }
- ]
- },
- "orderBy": {
- "anyOf": [
- {
- "type": "number"
- },
- {
- "type": "null"
- }
- ]
- },
- "page": {
- "anyOf": [
- {
- "type": "number"
- },
- {
- "type": "null"
- }
- ]
- },
- "pageSize": {
+ "id": {
"anyOf": [
{
- "type": "number"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "paths": {
+ "ids": {
"anyOf": [
{
"type": "array",
@@ -13285,7 +12527,7 @@
}
]
},
- "query": {
+ "notebook": {
"anyOf": [
{
"type": "string"
@@ -13294,158 +12536,275 @@
"type": "null"
}
]
- },
- "subTypes": {
- "anyOf": [
- {
- "$ref": "#/$defs/SearchSubtypeFilterInput"
- },
- {
- "type": "null"
- }
- ]
- },
- "types": {
- "anyOf": [
- {
- "type": "object",
- "additionalProperties": {
- "type": "boolean"
- }
- },
- {
- "type": "null"
- }
- ]
}
},
"additionalProperties": false
},
- "SearchBlocksData": {
+ "RefTextQueryRequestInput": {
"type": "object",
"properties": {
- "blocks": {
+ "anchor": {
+ "type": "string"
+ },
+ "notebook": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/SearchBlock"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "string"
},
{
"type": "null"
}
]
- },
- "matchedBlockCount": {
- "type": "integer"
- },
- "matchedRootCount": {
- "type": "integer"
- },
- "pageCount": {
- "type": "integer"
}
},
"required": [
- "blocks",
- "matchedBlockCount",
- "matchedRootCount",
- "pageCount"
+ "anchor"
],
"additionalProperties": false
},
- "SearchEmbedBlockRequestInput": {
+ "RefreshBacklinkRequestInput": {
"type": "object",
"properties": {
- "breadcrumb": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
- },
- "embedBlockID": {
+ "id": {
"type": "string"
- },
- "excludeIDs": {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "headingMode": {
- "anyOf": [
- {
- "type": "number"
- },
- {
- "type": "null"
- }
- ]
- },
- "notebook": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "stmt": {
+ }
+ },
+ "required": [
+ "id"
+ ],
+ "additionalProperties": false
+ },
+ "RemoveBookmarkRequestInput": {
+ "type": "object",
+ "properties": {
+ "bookmark": {
"type": "string"
}
},
"required": [
- "embedBlockID",
- "excludeIDs",
- "stmt"
+ "bookmark"
],
"additionalProperties": false
},
- "SearchHeadingFilterInput": {
+ "RemoveCloudRepoTagSnapshotRequestInput": {
"type": "object",
"properties": {
- "h1": {
+ "tag": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "tag"
+ ],
+ "additionalProperties": false
+ },
+ "RemoveCriterionRequestInput": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "name"
+ ],
+ "additionalProperties": false
+ },
+ "RemoveFileRequestInput": {
+ "type": "object",
+ "properties": {
+ "app": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "h2": {
+ "path": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "path"
+ ],
+ "additionalProperties": false
+ },
+ "RemoveRepoTagSnapshotRequestInput": {
+ "type": "object",
+ "properties": {
+ "tag": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "tag"
+ ],
+ "additionalProperties": false
+ },
+ "RemoveShorthandsRequestInput": {
+ "type": "object",
+ "properties": {
+ "ids": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ },
+ "required": [
+ "ids"
+ ],
+ "additionalProperties": false
+ },
+ "RemoveTagRequestInput": {
+ "type": "object",
+ "properties": {
+ "label": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "label"
+ ],
+ "additionalProperties": false
+ },
+ "RenameBookmarkRequestInput": {
+ "type": "object",
+ "properties": {
+ "newBookmark": {
+ "type": "string"
+ },
+ "oldBookmark": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "newBookmark",
+ "oldBookmark"
+ ],
+ "additionalProperties": false
+ },
+ "RenameFileRequestInput": {
+ "type": "object",
+ "properties": {
+ "newPath": {
+ "type": "string"
+ },
+ "path": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "newPath",
+ "path"
+ ],
+ "additionalProperties": false
+ },
+ "RenameNotebookRequestInput": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string"
+ },
+ "notebook": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "name",
+ "notebook"
+ ],
+ "additionalProperties": false
+ },
+ "RenameRiffDeckRequestInput": {
+ "type": "object",
+ "properties": {
+ "deckID": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "deckID",
+ "name"
+ ],
+ "additionalProperties": false
+ },
+ "RenameTagRequestInput": {
+ "type": "object",
+ "properties": {
+ "newLabel": {
+ "type": "string"
+ },
+ "oldLabel": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "newLabel",
+ "oldLabel"
+ ],
+ "additionalProperties": false
+ },
+ "RenderSprigRequestInput": {
+ "type": "object",
+ "properties": {
+ "template": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "template"
+ ],
+ "additionalProperties": false
+ },
+ "RenderTemplateData": {
+ "type": "object",
+ "properties": {
+ "content": {
+ "type": "string"
+ },
+ "docTreePlan": {
+ "$ref": "#/$defs/TemplatePlan"
+ },
+ "path": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "content",
+ "path"
+ ],
+ "additionalProperties": false
+ },
+ "RenderTemplateRequestInput": {
+ "type": "object",
+ "properties": {
+ "content": {
+ "type": "string"
+ },
+ "id": {
+ "type": "string"
+ },
+ "mode": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "h3": {
+ "path": {
+ "type": "string"
+ },
+ "preview": {
"anyOf": [
{
"type": "boolean"
@@ -13454,31 +12813,62 @@
"type": "null"
}
]
+ }
+ },
+ "required": [
+ "id",
+ "path"
+ ],
+ "additionalProperties": false
+ },
+ "ReorderData": {
+ "type": "object",
+ "properties": {
+ "changed": {
+ "type": "boolean"
},
- "h4": {
+ "notebook": {
+ "type": "string"
+ },
+ "parentPath": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "changed"
+ ],
+ "additionalProperties": false
+ },
+ "ReorderNotebooksRequestInput": {
+ "type": "object",
+ "properties": {
+ "position": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "h5": {
+ "sourceIDs": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "h6": {
+ "targetID": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
@@ -13488,15 +12878,25 @@
},
"additionalProperties": false
},
- "SearchHistoryData": {
+ "RepoCloudSnapshotsData": {
"type": "object",
"properties": {
- "histories": {
+ "pageCount": {
+ "type": "integer"
+ },
+ "snapshots": {
"anyOf": [
{
"type": "array",
"items": {
- "type": "string"
+ "anyOf": [
+ {
+ "$ref": "#/$defs/RepoLog"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
{
@@ -13504,141 +12904,143 @@
}
]
},
- "pageCount": {
- "type": "integer"
- },
"totalCount": {
"type": "integer"
}
},
"required": [
- "histories",
"pageCount",
+ "snapshots",
"totalCount"
],
"additionalProperties": false
},
- "SearchHistoryRequestInput": {
+ "RepoCloudTagsData": {
"type": "object",
"properties": {
- "notebook": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "op": {
+ "snapshots": {
"anyOf": [
{
- "type": "string"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/RepoLog"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
- },
- "page": {
+ }
+ },
+ "required": [
+ "snapshots"
+ ],
+ "additionalProperties": false
+ },
+ "RepoDiffData": {
+ "type": "object",
+ "properties": {
+ "addsLeft": {
"anyOf": [
{
- "type": "number"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/RepoDiffFile"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
},
- "query": {
+ "left": {
"anyOf": [
{
- "type": "string"
+ "$ref": "#/$defs/RepoDiffIndex"
},
{
"type": "null"
}
]
},
- "type": {
- "anyOf": [
- {
- "type": "number"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "additionalProperties": false
- },
- "SearchKeywordRequestInput": {
- "type": "object",
- "properties": {
- "k": {
- "type": "string"
- }
- },
- "required": [
- "k"
- ],
- "additionalProperties": false
- },
- "SearchListFilterInput": {
- "type": "object",
- "properties": {
- "o": {
+ "removesRight": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/RepoDiffFile"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
},
- "t": {
+ "right": {
"anyOf": [
{
- "type": "boolean"
+ "$ref": "#/$defs/RepoDiffIndex"
},
{
"type": "null"
}
]
},
- "u": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "additionalProperties": false
- },
- "SearchPageRequestInput": {
- "type": "object",
- "properties": {
- "page": {
+ "updatesLeft": {
"anyOf": [
{
- "type": "number"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/RepoDiffFile"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
},
- "pageSize": {
+ "updatesRight": {
"anyOf": [
{
- "type": "number"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/RepoDiffFile"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
@@ -13646,193 +13048,211 @@
]
}
},
+ "required": [
+ "addsLeft",
+ "left",
+ "removesRight",
+ "right",
+ "updatesLeft",
+ "updatesRight"
+ ],
"additionalProperties": false
},
- "SearchPath": {
+ "RepoDiffFile": {
"type": "object",
"properties": {
- "blocks": {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/SearchBlock"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "box": {
- "type": "string"
- },
- "children": {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/SearchPath"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "count": {
- "type": "integer"
- },
- "created": {
+ "fileID": {
"type": "string"
},
- "depth": {
- "type": "integer"
- },
- "folded": {
- "type": "boolean"
- },
"hPath": {
"type": "string"
},
- "id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "nodeType": {
+ "hSize": {
"type": "string"
},
- "number": {
+ "indexID": {
"type": "string"
},
- "subType": {
+ "path": {
"type": "string"
},
- "type": {
+ "title": {
"type": "string"
},
"updated": {
- "type": "string"
+ "type": "integer"
}
},
"required": [
- "box",
- "count",
- "created",
- "depth",
- "folded",
- "hPath",
- "id",
- "name",
- "nodeType",
- "subType",
- "type",
+ "fileID",
+ "hSize",
+ "indexID",
+ "path",
+ "title",
"updated"
],
"additionalProperties": false
},
- "SearchPathRequestInput": {
+ "RepoDiffIndex": {
"type": "object",
"properties": {
- "path": {
+ "created": {
+ "type": "integer"
+ },
+ "id": {
"type": "string"
}
},
"required": [
- "path"
+ "created",
+ "id"
],
"additionalProperties": false
},
- "SearchRefBlockRequestInput": {
+ "RepoDocHistory": {
"type": "object",
"properties": {
- "beforeLen": {
- "type": "number"
+ "fileID": {
+ "type": "string"
},
- "id": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "isDatabase": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
+ "hSize": {
+ "type": "string"
},
- "isSquareBrackets": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
+ "indexID": {
+ "type": "string"
},
- "k": {
+ "title": {
"type": "string"
},
- "notebook": {
+ "updated": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "fileID",
+ "hSize",
+ "indexID",
+ "title",
+ "updated"
+ ],
+ "additionalProperties": false
+ },
+ "RepoDocHistoryData": {
+ "type": "object",
+ "properties": {
+ "files": {
"anyOf": [
{
- "type": "string"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/RepoDocHistory"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
},
- "reqId": {
+ "pageCount": {
+ "type": "integer"
+ },
+ "totalCount": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "files",
+ "pageCount",
+ "totalCount"
+ ],
+ "additionalProperties": false
+ },
+ "RepoExportData": {
+ "type": "object",
+ "properties": {
+ "path": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "path"
+ ],
+ "additionalProperties": false
+ },
+ "RepoFile": {
+ "type": "object",
+ "properties": {
+ "chunks": {
"anyOf": [
{
- "$ref": "#/$defs/JSONValue"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "rootID": {
+ "id": {
+ "type": "string"
+ },
+ "path": {
"type": "string"
+ },
+ "size": {
+ "type": "integer"
+ },
+ "updated": {
+ "type": "integer"
}
},
+ "required": [
+ "chunks",
+ "id",
+ "path",
+ "size",
+ "updated"
+ ],
"additionalProperties": false
},
- "SearchRefCorrelation": {
+ "RepoKeyData": {
"type": "object",
"properties": {
- "reqId": {
- "$ref": "#/$defs/JSONValue"
+ "key": {
+ "type": "string"
}
},
"required": [
- "reqId"
+ "key"
],
"additionalProperties": false
},
- "SearchRefResult": {
+ "RepoLog": {
"type": "object",
"properties": {
- "blocks": {
+ "count": {
+ "type": "integer"
+ },
+ "created": {
+ "type": "integer"
+ },
+ "files": {
"anyOf": [
{
"type": "array",
"items": {
"anyOf": [
{
- "$ref": "#/$defs/SearchBlock"
+ "$ref": "#/$defs/RepoFile"
},
{
"type": "null"
@@ -13845,49 +13265,94 @@
}
]
},
- "k": {
+ "hCreated": {
"type": "string"
},
- "newDoc": {
- "type": "boolean"
+ "hSize": {
+ "type": "string"
},
- "reqId": {
- "$ref": "#/$defs/JSONValue"
+ "hTagUpdated": {
+ "type": "string"
+ },
+ "id": {
+ "type": "string"
+ },
+ "memo": {
+ "type": "string"
+ },
+ "size": {
+ "type": "integer"
+ },
+ "systemID": {
+ "type": "string"
+ },
+ "systemName": {
+ "type": "string"
+ },
+ "systemOS": {
+ "type": "string"
+ },
+ "tag": {
+ "type": "string"
}
},
"required": [
- "blocks",
- "k",
- "newDoc",
- "reqId"
+ "count",
+ "created",
+ "files",
+ "hCreated",
+ "hSize",
+ "hTagUpdated",
+ "id",
+ "memo",
+ "size",
+ "systemID",
+ "systemName",
+ "systemOS",
+ "tag"
],
"additionalProperties": false
},
- "SearchRepoFileRequestInput": {
+ "RepoOpenFileData": {
"type": "object",
"properties": {
- "keyword": {
+ "content": {
"type": "string"
},
- "page": {
- "type": "number"
+ "displayInText": {
+ "type": "boolean"
+ },
+ "title": {
+ "type": "string"
+ },
+ "updated": {
+ "type": "integer"
}
},
"required": [
- "keyword",
- "page"
+ "content",
+ "displayInText",
+ "title",
+ "updated"
],
"additionalProperties": false
},
- "SearchSubTypes": {
+ "RepoSearchData": {
"type": "object",
"properties": {
- "heading": {
+ "files": {
"anyOf": [
{
- "type": "object",
- "additionalProperties": {
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/RepoDiffFile"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
{
@@ -13895,112 +13360,96 @@
}
]
},
- "list": {
- "anyOf": [
- {
- "type": "object",
- "additionalProperties": {
- "type": "boolean"
- }
- },
- {
- "type": "null"
- }
- ]
+ "pageCount": {
+ "type": "integer"
},
- "listItem": {
- "anyOf": [
- {
- "type": "object",
- "additionalProperties": {
- "type": "boolean"
- }
- },
- {
- "type": "null"
- }
- ]
+ "totalCount": {
+ "type": "integer"
}
},
"required": [
- "heading",
- "list",
- "listItem"
- ],
- "additionalProperties": false
+ "files",
+ "pageCount",
+ "totalCount"
+ ],
+ "additionalProperties": false
},
- "SearchSubTypesInput": {
+ "RepoSnapshot": {
"type": "object",
"properties": {
- "heading": {
- "anyOf": [
- {
- "type": "object",
- "additionalProperties": {
- "type": "boolean"
- }
- },
- {
- "type": "null"
- }
- ]
+ "count": {
+ "type": "integer"
},
- "list": {
- "anyOf": [
- {
- "type": "object",
- "additionalProperties": {
- "type": "boolean"
- }
- },
- {
- "type": "null"
- }
- ]
+ "created": {
+ "type": "integer"
},
- "listItem": {
+ "files": {
"anyOf": [
{
- "type": "object",
- "additionalProperties": {
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/RepoFile"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
{
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "SearchSubtypeFilterInput": {
- "type": "object",
- "properties": {
- "heading": {
- "anyOf": [
- {
- "$ref": "#/$defs/SearchHeadingFilterInput"
- },
- {
- "type": "null"
- }
- ]
},
- "list": {
- "anyOf": [
- {
- "$ref": "#/$defs/SearchListFilterInput"
- },
- {
- "type": "null"
- }
- ]
+ "hCreated": {
+ "type": "string"
},
- "listItem": {
+ "hSize": {
+ "type": "string"
+ },
+ "hTagUpdated": {
+ "type": "string"
+ },
+ "id": {
+ "type": "string"
+ },
+ "memo": {
+ "type": "string"
+ },
+ "requiresDownload": {
+ "type": "boolean"
+ },
+ "size": {
+ "type": "integer"
+ },
+ "systemID": {
+ "type": "string"
+ },
+ "systemName": {
+ "type": "string"
+ },
+ "systemOS": {
+ "type": "string"
+ },
+ "tag": {
+ "type": "string"
+ },
+ "typesCount": {
"anyOf": [
{
- "$ref": "#/$defs/SearchListFilterInput"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/RepoTypeCount"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
@@ -14008,53 +13457,39 @@
]
}
},
- "additionalProperties": false
- },
- "SearchTagData": {
- "type": "object",
- "properties": {
- "k": {
- "type": "string"
- },
- "tags": {
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- },
- "required": [
- "k",
- "tags"
- ],
- "additionalProperties": false
- },
- "SearchTagRequestInput": {
- "type": "object",
- "properties": {
- "k": {
- "type": "string"
- }
- },
"required": [
- "k"
+ "count",
+ "created",
+ "files",
+ "hCreated",
+ "hSize",
+ "hTagUpdated",
+ "id",
+ "memo",
+ "requiresDownload",
+ "size",
+ "systemID",
+ "systemName",
+ "systemOS",
+ "tag",
+ "typesCount"
],
"additionalProperties": false
},
- "SearchTemplateData": {
+ "RepoSnapshotsData": {
"type": "object",
"properties": {
- "k": {
- "type": "string"
+ "pageCount": {
+ "type": "integer"
},
- "templates": {
+ "snapshots": {
"anyOf": [
{
"type": "array",
"items": {
"anyOf": [
{
- "$ref": "#/$defs/SearchTemplateResult"
+ "$ref": "#/$defs/RepoSnapshot"
},
{
"type": "null"
@@ -14066,48 +13501,29 @@
"type": "null"
}
]
- }
- },
- "required": [
- "k",
- "templates"
- ],
- "additionalProperties": false
- },
- "SearchTemplateResult": {
- "type": "object",
- "properties": {
- "content": {
- "type": "string"
},
- "path": {
- "type": "string"
- },
- "relativePath": {
- "type": "string"
+ "totalCount": {
+ "type": "integer"
}
},
"required": [
- "content",
- "path",
- "relativePath"
+ "pageCount",
+ "snapshots",
+ "totalCount"
],
"additionalProperties": false
},
- "SearchWidgetData": {
+ "RepoTagsData": {
"type": "object",
"properties": {
- "k": {
- "type": "string"
- },
- "widgets": {
+ "snapshots": {
"anyOf": [
{
"type": "array",
"items": {
"anyOf": [
{
- "$ref": "#/$defs/SearchWidgetResult"
+ "$ref": "#/$defs/RepoSnapshot"
},
{
"type": "null"
@@ -14122,438 +13538,413 @@
}
},
"required": [
- "k",
- "widgets"
+ "snapshots"
],
"additionalProperties": false
},
- "SearchWidgetResult": {
+ "RepoTypeCount": {
"type": "object",
"properties": {
- "content": {
- "type": "string"
+ "count": {
+ "type": "integer"
},
- "name": {
+ "type": {
"type": "string"
}
},
"required": [
- "content",
- "name"
+ "count",
+ "type"
],
"additionalProperties": false
},
- "SetBazaarPackageRatingRequestInput": {
+ "ResetGraphData": {
"type": "object",
"properties": {
- "packageName": {
- "type": "string"
- },
- "packageType": {
- "type": "string"
- },
- "rating": {
- "type": "number"
+ "conf": {
+ "$ref": "#/$defs/GlobalGraphConf"
}
},
"required": [
- "packageName",
- "packageType",
- "rating"
+ "conf"
],
"additionalProperties": false
},
- "SetBlockAttrsRequestInput": {
+ "ResetLocalGraphData": {
"type": "object",
"properties": {
- "attrs": {
- "type": "object",
- "additionalProperties": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "id": {
- "type": "string"
+ "conf": {
+ "$ref": "#/$defs/LocalGraphConf"
}
},
"required": [
- "attrs",
- "id"
+ "conf"
],
"additionalProperties": false
},
- "SetCriterionRequestInput": {
+ "ResetRiffCardsRequestInput": {
"type": "object",
"properties": {
- "criterion": {
+ "blockIDs": {
"anyOf": [
{
- "$ref": "#/$defs/CriterionInput"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
- }
- },
- "required": [
- "criterion"
- ],
- "additionalProperties": false
- },
- "SetGraphConfRequestInput": {
- "type": "object",
- "properties": {
- "conf": {
- "$ref": "#/$defs/GraphConfigurationFieldsInput"
+ },
+ "deckID": {
+ "type": "string"
+ },
+ "id": {
+ "type": "string"
},
"type": {
"type": "string"
}
},
"required": [
- "conf",
+ "deckID",
+ "id",
"type"
],
"additionalProperties": false
},
- "SetInlineStylesRequestInput": {
+ "ReviewRiffCardRequestInput": {
"type": "object",
"properties": {
- "app": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
+ "cardID": {
+ "type": "string"
},
- "av": {
- "anyOf": [
- {
- "$ref": "#/$defs/InlineStyleAVInput"
- },
- {
- "type": "null"
- }
- ]
+ "deckID": {
+ "type": "string"
},
- "builtin": {
- "anyOf": [
- {
- "$ref": "#/$defs/InlineStyleBuiltinInput"
- },
- {
- "type": "null"
- }
- ]
+ "rating": {
+ "type": "number"
},
- "order": {
+ "reviewedCards": {
"anyOf": [
{
- "$ref": "#/$defs/InlineStyleOrderInput"
- },
- {
- "type": "null"
- }
- ]
- },
- "styles": {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/InlineStyleInput"
- },
- {
- "type": "null"
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/RiffReviewedCardInput"
}
- ]
- }
- },
- "version": {
- "type": "number"
- }
- },
- "required": [
- "styles",
- "version"
- ],
- "additionalProperties": false
- },
- "SetNotebookConfRequestInput": {
- "type": "object",
- "properties": {
- "conf": {
- "anyOf": [
- {
- "$ref": "#/$defs/NotebookConfPatchInput"
},
{
"type": "null"
}
]
- },
- "notebook": {
- "type": "string"
}
},
"required": [
- "notebook"
+ "cardID",
+ "deckID",
+ "rating"
],
"additionalProperties": false
},
- "SetNotebookIconRequestInput": {
+ "RichClipboardAssetInput": {
"type": "object",
"properties": {
- "icon": {
+ "box": {
"type": "string"
},
- "notebook": {
+ "index": {
+ "type": "integer"
+ },
+ "path": {
"type": "string"
}
},
"required": [
- "icon",
- "notebook"
+ "index",
+ "path"
],
"additionalProperties": false
},
- "SetPetalEnabledRequestInput": {
+ "RichClipboardPrepared": {
"type": "object",
"properties": {
- "app": {
+ "assets": {
"anyOf": [
{
- "type": "string"
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/RichClipboardPreparedAsset"
+ }
},
{
"type": "null"
}
]
},
- "enabled": {
- "type": "boolean"
- },
- "packageName": {
+ "batch": {
"type": "string"
+ },
+ "groups": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
"required": [
- "enabled",
- "packageName"
+ "assets",
+ "batch",
+ "groups"
],
"additionalProperties": false
},
- "SetPetalPublishEnabledRequestInput": {
+ "RichClipboardPreparedAsset": {
"type": "object",
"properties": {
- "enabled": {
- "type": "boolean"
+ "index": {
+ "type": "integer"
},
- "packageName": {
+ "path": {
"type": "string"
}
},
"required": [
- "enabled",
- "packageName"
- ],
- "additionalProperties": false
- },
- "SetRepoIndexRetentionDaysRequestInput": {
- "type": "object",
- "properties": {
- "days": {
- "type": "number"
- }
- },
- "required": [
- "days"
+ "index",
+ "path"
],
"additionalProperties": false
},
- "SetRetentionIndexesDailyRequestInput": {
+ "RiffBlockIDsRequestInput": {
"type": "object",
"properties": {
- "indexes": {
- "type": "number"
+ "blockIDs": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
}
},
"required": [
- "indexes"
+ "blockIDs"
],
"additionalProperties": false
},
- "SetRiffCardsDueRequestInput": {
+ "RiffBlocksData": {
"type": "object",
"properties": {
- "cardDues": {
- "type": "array",
- "items": {
- "$ref": "#/$defs/RiffCardDueInput"
- }
+ "blocks": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SearchBlock"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
"required": [
- "cardDues"
+ "blocks"
],
"additionalProperties": false
},
- "SetSnapshotMemoRequestInput": {
+ "RiffCardDueInput": {
"type": "object",
"properties": {
- "id": {
+ "due": {
"type": "string"
},
- "memo": {
+ "id": {
"type": "string"
}
},
"required": [
- "id",
- "memo"
+ "due",
+ "id"
],
"additionalProperties": false
},
- "SetSnippetRequestInput": {
+ "RiffCardRequestInput": {
"type": "object",
"properties": {
- "snippets": {
- "type": "array",
- "items": {
- "$ref": "#/$defs/SnippetInput"
- }
+ "cardID": {
+ "type": "string"
+ },
+ "deckID": {
+ "type": "string"
}
},
"required": [
- "snippets"
+ "cardID",
+ "deckID"
],
"additionalProperties": false
},
- "SetSyncLocalRequestInput": {
+ "RiffCardsData": {
"type": "object",
"properties": {
- "local": {
- "$ref": "#/$defs/SyncLocalInput"
- }
- },
- "required": [
- "local"
- ],
- "additionalProperties": false
- },
- "SetSyncS3RequestInput": {
- "type": "object",
- "properties": {
- "s3": {
- "$ref": "#/$defs/SyncS3Input"
+ "blocks": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SearchBlock"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "pageCount": {
+ "type": "integer"
+ },
+ "total": {
+ "type": "integer"
}
},
"required": [
- "s3"
+ "blocks",
+ "pageCount",
+ "total"
],
"additionalProperties": false
},
- "SetSyncWebDAVRequestInput": {
+ "RiffCardsRequestInput": {
"type": "object",
"properties": {
- "webdav": {
- "$ref": "#/$defs/SyncWebDAVInput"
+ "id": {
+ "type": "string"
+ },
+ "page": {
+ "type": "number"
+ },
+ "pageSize": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
"required": [
- "webdav"
+ "id",
+ "page"
],
"additionalProperties": false
},
- "Shorthand": {
+ "RiffDeck": {
"type": "object",
"properties": {
- "hCreated": {
- "type": "string"
- },
- "oId": {
+ "created": {
"type": "string"
},
- "shorthandContent": {
+ "id": {
"type": "string"
},
- "shorthandDesc": {
+ "name": {
"type": "string"
},
- "shorthandFrom": {
+ "size": {
"type": "integer"
},
- "shorthandMd": {
- "type": "string"
- },
- "shorthandTitle": {
- "type": "string"
- },
- "shorthandURL": {
+ "updated": {
"type": "string"
}
},
"required": [
- "hCreated",
- "oId",
- "shorthandContent",
- "shorthandDesc",
- "shorthandFrom",
- "shorthandMd",
- "shorthandTitle",
- "shorthandURL"
+ "created",
+ "id",
+ "name",
+ "size",
+ "updated"
],
"additionalProperties": false
},
- "ShorthandPage": {
+ "RiffDeckCardsRequestInput": {
"type": "object",
"properties": {
- "pagination": {
- "$ref": "#/$defs/ShorthandPagination"
- },
- "shorthands": {
+ "blockIDs": {
"type": "array",
"items": {
- "anyOf": [
- {
- "$ref": "#/$defs/Shorthand"
- },
- {
- "type": "null"
- }
- ]
+ "type": "string"
}
+ },
+ "deckID": {
+ "type": "string"
}
},
"required": [
- "pagination",
- "shorthands"
+ "blockIDs",
+ "deckID"
],
"additionalProperties": false
},
- "ShorthandPagination": {
+ "RiffDeckRequestInput": {
"type": "object",
"properties": {
- "paginationPageCount": {
+ "deckID": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "deckID"
+ ],
+ "additionalProperties": false
+ },
+ "RiffDueCard": {
+ "type": "object",
+ "properties": {
+ "blockID": {
+ "type": "string"
+ },
+ "cardID": {
+ "type": "string"
+ },
+ "deckID": {
+ "type": "string"
+ },
+ "lapses": {
"type": "integer"
},
- "paginationPageNums": {
+ "lastReview": {
+ "type": "integer"
+ },
+ "nextDues": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "integer"
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
}
},
{
@@ -14561,219 +13952,169 @@
}
]
},
- "paginationRecordCount": {
+ "reps": {
+ "type": "integer"
+ },
+ "state": {
"type": "integer"
}
},
"required": [
- "paginationPageCount",
- "paginationPageNums",
- "paginationRecordCount"
+ "blockID",
+ "cardID",
+ "deckID",
+ "lapses",
+ "lastReview",
+ "nextDues",
+ "reps",
+ "state"
],
"additionalProperties": false
},
- "ShorthandsData": {
+ "RiffDueCardsData": {
"type": "object",
"properties": {
- "code": {
+ "cards": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/RiffDueCard"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "unreviewedCount": {
"type": "integer"
},
- "data": {
- "$ref": "#/$defs/ShorthandPage"
+ "unreviewedNewCardCount": {
+ "type": "integer"
},
- "msg": {
- "type": "string"
+ "unreviewedOldCardCount": {
+ "type": "integer"
}
},
"required": [
- "code",
- "data",
- "msg"
+ "cards",
+ "unreviewedCount",
+ "unreviewedNewCardCount",
+ "unreviewedOldCardCount"
],
"additionalProperties": false
},
- "ShorthandsRequestInput": {
+ "RiffDueCardsRequestInput": {
"type": "object",
"properties": {
- "page": {
- "type": "number"
+ "deckID": {
+ "type": "string"
+ },
+ "reviewedCards": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/RiffReviewedCardInput"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
"required": [
- "page"
+ "deckID"
],
"additionalProperties": false
},
- "Snippet": {
+ "RiffNotebookDueCardsRequestInput": {
"type": "object",
"properties": {
- "content": {
- "type": "string"
- },
- "disabledInPublish": {
- "type": "boolean"
- },
- "enabled": {
- "type": "boolean"
- },
- "id": {
- "type": "string"
- },
- "name": {
+ "notebook": {
"type": "string"
},
- "type": {
- "type": "string"
- }
- },
- "required": [
- "content",
- "disabledInPublish",
- "enabled",
- "id",
- "name",
- "type"
- ],
- "additionalProperties": false
- },
- "SnippetInput": {
- "type": "object",
- "properties": {
- "content": {
- "type": "string"
- },
- "disabledInPublish": {
+ "reviewedCards": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/RiffReviewedCardInput"
+ }
},
{
"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"
+ "notebook"
],
"additionalProperties": false
},
- "StorageKeyRequestInput": {
+ "RiffReviewedCardInput": {
"type": "object",
"properties": {
- "key": {
+ "cardID": {
"type": "string"
}
},
"required": [
- "key"
- ],
- "additionalProperties": false
- },
- "StorageKeysRequestInput": {
- "type": "object",
- "properties": {
- "keys": {
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- },
- "required": [
- "keys"
+ "cardID"
],
"additionalProperties": false
},
- "StorageRemoveKeysRequestInput": {
+ "RiffTreeDueCardsRequestInput": {
"type": "object",
"properties": {
- "app": {
+ "reviewedCards": {
"anyOf": [
{
- "type": "string"
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/RiffReviewedCardInput"
+ }
},
{
"type": "null"
}
]
},
- "keys": {
- "type": "array",
- "items": {
- "type": "string"
- }
+ "rootID": {
+ "type": "string"
}
},
"required": [
- "keys"
+ "rootID"
],
"additionalProperties": false
},
- "StorageRemoveRequestInput": {
+ "RollbackRepoSnapshotFileRequestInput": {
"type": "object",
"properties": {
- "app": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "key": {
+ "id": {
"type": "string"
}
},
"required": [
- "key"
+ "id"
],
"additionalProperties": false
},
- "StorageSetKeysRequestInput": {
+ "SQLQueryRequestInput": {
"type": "object",
"properties": {
- "app": {
+ "mode": {
"anyOf": [
{
"type": "string"
@@ -14783,108 +14124,72 @@
}
]
},
- "keyVals": {
- "type": "object",
- "additionalProperties": {
- "$ref": "#/$defs/JSONValue"
- }
+ "stmt": {
+ "type": "string"
}
},
"required": [
- "keyVals"
+ "stmt"
],
"additionalProperties": false
},
- "StorageSetRequestInput": {
+ "SaveTemplateRequestInput": {
"type": "object",
"properties": {
- "app": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "key": {
+ "databaseMode": {
"type": "string"
},
- "val": {
- "anyOf": [
- {
- "$ref": "#/$defs/JSONValue"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "key"
- ],
- "additionalProperties": false
- },
- "SwapBlockRefRequestInput": {
- "type": "object",
- "properties": {
- "defID": {
+ "directory": {
"type": "string"
},
- "includeChildren": {
- "type": "boolean"
+ "id": {
+ "type": "string"
},
- "refID": {
+ "name": {
"type": "string"
+ },
+ "overwrite": {
+ "type": "boolean"
}
},
"required": [
- "defID",
- "includeChildren",
- "refID"
+ "id",
+ "name",
+ "overwrite"
],
"additionalProperties": false
},
- "SyncAssetDownloadModeData": {
+ "SearchAsset": {
"type": "object",
"properties": {
- "assetDownloadMode": {
+ "hName": {
+ "type": "string"
+ },
+ "path": {
+ "type": "string"
+ },
+ "updated": {
"type": "integer"
}
},
"required": [
- "assetDownloadMode"
- ],
- "additionalProperties": false
- },
- "SyncEnabledRequestInput": {
- "type": "object",
- "properties": {
- "enabled": {
- "type": "boolean"
- }
- },
- "required": [
- "enabled"
+ "hName",
+ "path",
+ "updated"
],
"additionalProperties": false
},
- "SyncInfoData": {
+ "SearchAssetContentData": {
"type": "object",
"properties": {
- "kernel": {
- "type": "string"
- },
- "kernels": {
+ "assetContents": {
"anyOf": [
{
"type": "array",
"items": {
"anyOf": [
{
- "$ref": "#/$defs/SyncOnlineKernel"
+ "$ref": "#/$defs/AssetContent"
},
{
"type": "null"
@@ -14897,40 +14202,34 @@
}
]
},
- "stat": {
- "type": "string"
+ "matchedAssetCount": {
+ "type": "integer"
},
- "synced": {
+ "pageCount": {
"type": "integer"
}
},
"required": [
- "kernel",
- "kernels",
- "stat",
- "synced"
- ],
- "additionalProperties": false
- },
- "SyncIntervalRequestInput": {
- "type": "object",
- "properties": {
- "interval": {
- "type": "number"
- }
- },
- "required": [
- "interval"
+ "assetContents",
+ "matchedAssetCount",
+ "pageCount"
],
"additionalProperties": false
},
- "SyncLANRequestInput": {
+ "SearchAssetContentRequestInput": {
"type": "object",
"properties": {
- "enabled": {
- "type": "boolean"
+ "method": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "maxConcurrentReqs": {
+ "orderBy": {
"anyOf": [
{
"type": "number"
@@ -14939,94 +14238,28 @@
"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": {
+ "page": {
"anyOf": [
{
- "$ref": "#/$defs/SyncLocal"
+ "type": "number"
},
{
"type": "null"
}
]
- }
- },
- "required": [
- "local"
- ],
- "additionalProperties": false
- },
- "SyncLocalInput": {
- "type": "object",
- "properties": {
- "concurrentReqs": {
+ },
+ "pageSize": {
"anyOf": [
{
- "type": "integer"
+ "type": "number"
},
{
"type": "null"
}
]
},
- "endpoint": {
+ "query": {
"anyOf": [
{
"type": "string"
@@ -15036,10 +14269,13 @@
}
]
},
- "timeout": {
+ "types": {
"anyOf": [
{
- "type": "integer"
+ "type": "object",
+ "additionalProperties": {
+ "type": "boolean"
+ }
},
{
"type": "null"
@@ -15049,356 +14285,308 @@
},
"additionalProperties": false
},
- "SyncModeRequestInput": {
- "type": "object",
- "properties": {
- "mode": {
- "type": "number"
- }
- },
- "required": [
- "mode"
- ],
- "additionalProperties": false
- },
- "SyncNameRequestInput": {
+ "SearchAssetRequestInput": {
"type": "object",
"properties": {
- "name": {
+ "exts": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "k": {
"type": "string"
}
},
"required": [
- "name"
+ "k"
],
"additionalProperties": false
},
- "SyncOnlineKernel": {
+ "SearchBlock": {
"type": "object",
"properties": {
- "hostname": {
+ "alias": {
"type": "string"
},
- "id": {
+ "box": {
"type": "string"
},
- "os": {
- "type": "string"
+ "children": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SearchBlock"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "ver": {
- "type": "string"
- }
- },
- "required": [
- "hostname",
- "id",
- "os",
- "ver"
- ],
- "additionalProperties": false
- },
- "SyncProviderExportData": {
- "type": "object",
- "properties": {
- "name": {
+ "content": {
"type": "string"
},
- "zip": {
+ "count": {
+ "type": "integer"
+ },
+ "created": {
"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": {
+ },
+ "defID": {
"type": "string"
},
- "bucket": {
+ "defPath": {
"type": "string"
},
- "concurrentReqs": {
+ "depth": {
"type": "integer"
},
- "endpoint": {
+ "fcontent": {
"type": "string"
},
- "pathStyle": {
+ "folded": {
"type": "boolean"
},
- "region": {
- "type": "string"
- },
- "secretKey": {
+ "hPath": {
"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": {
+ "ial": {
"anyOf": [
{
- "$ref": "#/$defs/SyncS3"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "s3"
- ],
- "additionalProperties": false
- },
- "SyncS3Input": {
- "type": "object",
- "properties": {
- "accessKey": {
- "anyOf": [
- {
- "type": "string"
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "bucket": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
+ "id": {
+ "type": "string"
},
- "concurrentReqs": {
- "anyOf": [
- {
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
+ "markdown": {
+ "type": "string"
},
- "endpoint": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
+ "memo": {
+ "type": "string"
},
- "pathStyle": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
+ "name": {
+ "type": "string"
},
- "region": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
+ "number": {
+ "type": "string"
},
- "secretKey": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
+ "parentID": {
+ "type": "string"
},
- "skipTlsVerify": {
+ "path": {
+ "type": "string"
+ },
+ "refCount": {
+ "type": "integer"
+ },
+ "refText": {
+ "type": "string"
+ },
+ "refs": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SearchBlock"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
},
- "timeout": {
+ "riffCard": {
"anyOf": [
{
- "type": "integer"
+ "$ref": "#/$defs/SearchBlockCard"
},
{
"type": "null"
}
]
+ },
+ "riffCardID": {
+ "type": "string"
+ },
+ "rootID": {
+ "type": "string"
+ },
+ "sort": {
+ "type": "integer"
+ },
+ "subType": {
+ "type": "string"
+ },
+ "tag": {
+ "type": "string"
+ },
+ "type": {
+ "type": "string"
+ },
+ "updated": {
+ "type": "string"
}
},
+ "required": [
+ "alias",
+ "box",
+ "children",
+ "content",
+ "count",
+ "created",
+ "defID",
+ "defPath",
+ "depth",
+ "fcontent",
+ "folded",
+ "hPath",
+ "ial",
+ "id",
+ "markdown",
+ "memo",
+ "name",
+ "parentID",
+ "path",
+ "refCount",
+ "refText",
+ "refs",
+ "riffCard",
+ "riffCardID",
+ "rootID",
+ "sort",
+ "subType",
+ "tag",
+ "type",
+ "updated"
+ ],
"additionalProperties": false
},
- "SyncWebDAV": {
+ "SearchBlockCard": {
"type": "object",
"properties": {
- "concurrentReqs": {
- "type": "integer"
- },
- "endpoint": {
+ "due": {
"type": "string"
},
- "password": {
- "type": "string"
+ "lapses": {
+ "type": "integer"
},
- "skipTlsVerify": {
- "type": "boolean"
+ "lastReview": {
+ "type": "string"
},
- "timeout": {
+ "reps": {
"type": "integer"
},
- "username": {
- "type": "string"
+ "state": {
+ "type": "integer"
}
},
"required": [
- "concurrentReqs",
- "endpoint",
- "password",
- "skipTlsVerify",
- "timeout",
- "username"
+ "due",
+ "lapses",
+ "lastReview",
+ "reps",
+ "state"
],
"additionalProperties": false
},
- "SyncWebDAVData": {
+ "SearchBlockRequestInput": {
"type": "object",
"properties": {
- "webdav": {
+ "groupBy": {
"anyOf": [
{
- "$ref": "#/$defs/SyncWebDAV"
+ "type": "number"
},
{
"type": "null"
}
]
- }
- },
- "required": [
- "webdav"
- ],
- "additionalProperties": false
- },
- "SyncWebDAVInput": {
- "type": "object",
- "properties": {
- "concurrentReqs": {
+ },
+ "method": {
"anyOf": [
{
- "type": "integer"
+ "type": "number"
},
{
"type": "null"
}
]
},
- "endpoint": {
+ "orderBy": {
"anyOf": [
{
- "type": "string"
+ "type": "number"
},
{
"type": "null"
}
]
},
- "password": {
+ "page": {
"anyOf": [
{
- "type": "string"
+ "type": "number"
},
{
"type": "null"
}
]
},
- "skipTlsVerify": {
+ "pageSize": {
"anyOf": [
{
- "type": "boolean"
+ "type": "number"
},
{
"type": "null"
}
]
},
- "timeout": {
+ "paths": {
"anyOf": [
{
- "type": "integer"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "username": {
+ "query": {
"anyOf": [
{
"type": "string"
@@ -15407,21 +14595,44 @@
"type": "null"
}
]
+ },
+ "subTypes": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SearchSubtypeFilterInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "types": {
+ "anyOf": [
+ {
+ "type": "object",
+ "additionalProperties": {
+ "type": "boolean"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
"additionalProperties": false
},
- "TagData": {
+ "SearchBlocksData": {
"type": "object",
"properties": {
- "children": {
+ "blocks": {
"anyOf": [
{
"type": "array",
"items": {
"anyOf": [
{
- "$ref": "#/$defs/TagData"
+ "$ref": "#/$defs/SearchBlock"
},
{
"type": "null"
@@ -15434,81 +14645,141 @@
}
]
},
- "count": {
+ "matchedBlockCount": {
"type": "integer"
},
- "depth": {
+ "matchedRootCount": {
"type": "integer"
},
- "label": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "type": {
- "type": "string"
+ "pageCount": {
+ "type": "integer"
}
},
"required": [
- "children",
- "count",
- "depth",
- "label",
- "name",
- "type"
+ "blocks",
+ "matchedBlockCount",
+ "matchedRootCount",
+ "pageCount"
],
"additionalProperties": false
},
- "TagSnapshotRequestInput": {
+ "SearchEmbedBlockRequestInput": {
"type": "object",
"properties": {
- "id": {
+ "breadcrumb": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "embedBlockID": {
"type": "string"
},
- "name": {
+ "excludeIDs": {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "headingMode": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "notebook": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "stmt": {
"type": "string"
}
},
"required": [
- "id",
- "name"
+ "embedBlockID",
+ "excludeIDs",
+ "stmt"
],
"additionalProperties": false
},
- "TailChildBlocksRequestInput": {
+ "SearchHeadingFilterInput": {
"type": "object",
"properties": {
- "id": {
- "type": "string"
+ "h1": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "ids": {
+ "h2": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "n": {
+ "h3": {
"anyOf": [
{
- "type": "number"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "notebook": {
+ "h4": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "h5": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "h6": {
+ "anyOf": [
+ {
+ "type": "boolean"
},
{
"type": "null"
@@ -15516,215 +14787,282 @@
]
}
},
- "required": [
- "id"
- ],
"additionalProperties": false
},
- "TaskListMarkerRequestInput": {
+ "SearchHistoryData": {
"type": "object",
"properties": {
- "id": {
- "type": "string"
+ "histories": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "marker": {
- "type": "string"
+ "pageCount": {
+ "type": "integer"
+ },
+ "totalCount": {
+ "type": "integer"
}
},
"required": [
- "id",
- "marker"
+ "histories",
+ "pageCount",
+ "totalCount"
],
"additionalProperties": false
},
- "TemplateDocumentInfo": {
+ "SearchHistoryRequestInput": {
"type": "object",
"properties": {
- "directory": {
- "type": "string"
+ "notebook": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "hasDatabase": {
- "type": "boolean"
+ "op": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "name": {
- "type": "string"
+ "page": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "query": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "type": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
- "required": [
- "directory",
- "hasDatabase",
- "name"
- ],
"additionalProperties": false
},
- "TemplateDocumentRequestInput": {
+ "SearchKeywordRequestInput": {
"type": "object",
"properties": {
- "id": {
+ "k": {
"type": "string"
}
},
"required": [
- "id"
+ "k"
],
"additionalProperties": false
},
- "TemplateFileEntry": {
+ "SearchListFilterInput": {
"type": "object",
"properties": {
- "isDir": {
- "type": "boolean"
+ "o": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "isPackage": {
- "type": "boolean"
+ "t": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "path": {
- "type": "string"
+ "u": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
- "required": [
- "isDir",
- "path"
- ],
"additionalProperties": false
},
- "TemplateFileRequestInput": {
+ "SearchPageRequestInput": {
"type": "object",
"properties": {
- "action": {
- "type": "string"
- },
- "content": {
- "type": "string"
- },
- "path": {
- "type": "string"
- },
- "revision": {
- "type": "string"
+ "page": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "target": {
- "type": "string"
- }
- },
- "additionalProperties": false
- },
- "TemplateFileRevision": {
- "type": "object",
- "properties": {
- "revision": {
- "type": "string"
+ "pageSize": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
- "required": [
- "revision"
- ],
"additionalProperties": false
},
- "TemplateFileSource": {
+ "SearchPath": {
"type": "object",
"properties": {
- "content": {
- "type": "string"
+ "blocks": {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SearchBlock"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
- "path": {
+ "box": {
"type": "string"
},
- "revision": {
- "type": "string"
- }
- },
- "required": [
- "content",
- "revision"
- ],
- "additionalProperties": false
- },
- "TemplatePlan": {
- "type": "object",
- "properties": {
+ "children": {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SearchPath"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
"count": {
"type": "integer"
},
- "id": {
+ "created": {
"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"
},
+ "folded": {
+ "type": "boolean"
+ },
"hPath": {
"type": "string"
},
"id": {
"type": "string"
},
- "parentID": {
+ "name": {
"type": "string"
},
- "title": {
+ "nodeType": {
+ "type": "string"
+ },
+ "number": {
+ "type": "string"
+ },
+ "subType": {
+ "type": "string"
+ },
+ "type": {
+ "type": "string"
+ },
+ "updated": {
"type": "string"
}
},
"required": [
+ "box",
+ "count",
+ "created",
"depth",
+ "folded",
"hPath",
"id",
- "parentID",
- "title"
+ "name",
+ "nodeType",
+ "subType",
+ "type",
+ "updated"
],
"additionalProperties": false
},
- "TransferBlockRefRequestInput": {
+ "SearchPathRequestInput": {
"type": "object",
"properties": {
- "fromID": {
+ "path": {
"type": "string"
+ }
+ },
+ "required": [
+ "path"
+ ],
+ "additionalProperties": false
+ },
+ "SearchRefBlockRequestInput": {
+ "type": "object",
+ "properties": {
+ "beforeLen": {
+ "type": "number"
},
- "refIDs": {
+ "id": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "type": "string"
},
{
"type": "null"
}
]
},
- "reloadUI": {
+ "isDatabase": {
"anyOf": [
{
"type": "boolean"
@@ -15734,74 +15072,73 @@
}
]
},
- "toID": {
- "type": "string"
- }
- },
- "required": [
- "fromID",
- "toID"
- ],
- "additionalProperties": false
- },
- "TreeStatData": {
- "type": "object",
- "properties": {
- "containsEmbed": {
- "type": "boolean"
- },
- "embedStat": {
+ "isSquareBrackets": {
"anyOf": [
{
- "$ref": "#/$defs/EmbedStat"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "reqId": {
- "$ref": "#/$defs/JSONValue"
+ "k": {
+ "type": "string"
},
- "stat": {
+ "notebook": {
"anyOf": [
{
- "$ref": "#/$defs/BlockStat"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "statWithEmbed": {
+ "reqId": {
"anyOf": [
{
- "$ref": "#/$defs/BlockStat"
+ "$ref": "#/$defs/JSONValue"
},
{
"type": "null"
}
]
+ },
+ "rootID": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false
+ },
+ "SearchRefCorrelation": {
+ "type": "object",
+ "properties": {
+ "reqId": {
+ "$ref": "#/$defs/JSONValue"
}
},
"required": [
- "reqId",
- "stat"
+ "reqId"
],
"additionalProperties": false
},
- "TreeStatRequestInput": {
+ "SearchRefResult": {
"type": "object",
"properties": {
- "id": {
- "type": "string"
- },
- "ids": {
+ "blocks": {
"anyOf": [
{
"type": "array",
"items": {
- "type": "string"
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SearchBlock"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
{
@@ -15809,274 +15146,275 @@
}
]
},
- "includeEmbed": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
+ "k": {
+ "type": "string"
},
- "notebook": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
+ "newDoc": {
+ "type": "boolean"
},
"reqId": {
- "anyOf": [
- {
- "$ref": "#/$defs/JSONValue"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "id"
- ],
- "additionalProperties": false
- },
- "TrimmedIDRequestInput": {
- "type": "object",
- "properties": {
- "id": {
- "type": "string"
+ "$ref": "#/$defs/JSONValue"
}
},
"required": [
- "id"
+ "blocks",
+ "k",
+ "newDoc",
+ "reqId"
],
"additionalProperties": false
},
- "UnfoldedParentData": {
+ "SearchRepoFileRequestInput": {
"type": "object",
"properties": {
- "parentID": {
+ "keyword": {
"type": "string"
+ },
+ "page": {
+ "type": "number"
}
},
"required": [
- "parentID"
+ "keyword",
+ "page"
],
"additionalProperties": false
},
- "UninstallBazaarIconRequestInput": {
+ "SearchSubTypes": {
"type": "object",
"properties": {
- "keyword": {
+ "heading": {
"anyOf": [
{
- "type": "string"
+ "type": "object",
+ "additionalProperties": {
+ "type": "boolean"
+ }
},
{
"type": "null"
}
]
},
- "packageName": {
- "type": "string"
- }
- },
- "required": [
- "packageName"
- ],
- "additionalProperties": false
- },
- "UninstallBazaarPluginRequestInput": {
- "type": "object",
- "properties": {
- "frontend": {
+ "list": {
"anyOf": [
{
- "type": "string"
+ "type": "object",
+ "additionalProperties": {
+ "type": "boolean"
+ }
},
{
"type": "null"
}
]
},
- "keyword": {
+ "listItem": {
"anyOf": [
{
- "type": "string"
+ "type": "object",
+ "additionalProperties": {
+ "type": "boolean"
+ }
},
{
"type": "null"
}
]
- },
- "packageName": {
- "type": "string"
}
},
"required": [
- "packageName"
+ "heading",
+ "list",
+ "listItem"
],
"additionalProperties": false
},
- "UninstallBazaarTemplateRequestInput": {
+ "SearchSubTypesInput": {
"type": "object",
"properties": {
- "keyword": {
+ "heading": {
"anyOf": [
{
- "type": "string"
+ "type": "object",
+ "additionalProperties": {
+ "type": "boolean"
+ }
},
{
"type": "null"
}
]
},
- "packageName": {
- "type": "string"
- }
- },
- "required": [
- "packageName"
- ],
- "additionalProperties": false
- },
- "UninstallBazaarThemeRequestInput": {
- "type": "object",
- "properties": {
- "frontend": {
+ "list": {
"anyOf": [
{
- "type": "string"
+ "type": "object",
+ "additionalProperties": {
+ "type": "boolean"
+ }
},
{
"type": "null"
}
]
},
- "keyword": {
+ "listItem": {
"anyOf": [
{
- "type": "string"
+ "type": "object",
+ "additionalProperties": {
+ "type": "boolean"
+ }
},
{
"type": "null"
}
]
- },
- "packageName": {
- "type": "string"
}
},
- "required": [
- "packageName"
- ],
"additionalProperties": false
},
- "UninstallBazaarWidgetRequestInput": {
+ "SearchSubtypeFilterInput": {
"type": "object",
"properties": {
- "keyword": {
+ "heading": {
"anyOf": [
{
- "type": "string"
+ "$ref": "#/$defs/SearchHeadingFilterInput"
},
{
"type": "null"
}
]
},
- "packageName": {
- "type": "string"
+ "list": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SearchListFilterInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "listItem": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SearchListFilterInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
- "required": [
- "packageName"
- ],
"additionalProperties": false
},
- "UnlockNotebookRequestInput": {
+ "SearchTagData": {
"type": "object",
"properties": {
- "notebook": {
+ "k": {
"type": "string"
},
- "password": {
- "type": "string"
+ "tags": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
}
},
"required": [
- "notebook",
- "password"
+ "k",
+ "tags"
],
"additionalProperties": false
},
- "UnzipRequestInput": {
+ "SearchTagRequestInput": {
"type": "object",
"properties": {
- "path": {
- "type": "string"
- },
- "zipPath": {
+ "k": {
"type": "string"
}
},
"required": [
- "path",
- "zipPath"
+ "k"
],
"additionalProperties": false
},
- "UpdateBazaarPackageRequestInput": {
+ "SearchTemplateData": {
"type": "object",
"properties": {
- "frontend": {
+ "k": {
"type": "string"
},
- "keyword": {
+ "templates": {
"anyOf": [
{
- "type": "string"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SearchTemplateResult"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
- },
- "packageName": {
- "type": "string"
- },
- "packageType": {
- "type": "string"
}
},
"required": [
- "frontend",
- "packageName",
- "packageType"
+ "k",
+ "templates"
],
"additionalProperties": false
},
- "UpdateBlockRequestInput": {
+ "SearchTemplateResult": {
"type": "object",
"properties": {
- "data": {
+ "content": {
"type": "string"
},
- "dataType": {
+ "path": {
"type": "string"
},
- "id": {
+ "relativePath": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "content",
+ "path",
+ "relativePath"
+ ],
+ "additionalProperties": false
+ },
+ "SearchWidgetData": {
+ "type": "object",
+ "properties": {
+ "k": {
"type": "string"
},
- "lockType": {
+ "widgets": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SearchWidgetResult"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
@@ -16085,287 +15423,157 @@
}
},
"required": [
- "data",
- "dataType",
- "id"
+ "k",
+ "widgets"
],
"additionalProperties": false
},
- "UpdateChannelRequestInput": {
- "type": "object",
- "properties": {
- "updateChannel": {
- "type": "string"
- }
- },
- "required": [
- "updateChannel"
- ],
- "additionalProperties": false
- },
- "UpdateEmbedBlockRequestInput": {
+ "SearchWidgetResult": {
"type": "object",
"properties": {
"content": {
"type": "string"
},
- "id": {
+ "name": {
"type": "string"
}
},
"required": [
"content",
- "id"
+ "name"
],
"additionalProperties": false
},
- "UpdatePinnedDocsRequestInput": {
+ "SetBazaarPackageRatingRequestInput": {
"type": "object",
"properties": {
- "action": {
+ "packageName": {
"type": "string"
},
- "after": {
- "type": "boolean"
- },
- "ids": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "targetID": {
- "type": "string"
- }
- },
- "required": [
- "action",
- "ids"
- ],
- "additionalProperties": false
- },
- "UploadCloudSnapshotRequestInput": {
- "type": "object",
- "properties": {
- "id": {
+ "packageType": {
"type": "string"
},
- "tag": {
- "type": "string"
+ "rating": {
+ "type": "number"
}
},
"required": [
- "id",
- "tag"
+ "packageName",
+ "packageType",
+ "rating"
],
"additionalProperties": false
},
- "ViewStatePatchRequestInput": {
+ "SetBlockAttrsRequestInput": {
"type": "object",
"properties": {
- "key": {
- "type": "string"
- },
- "removeKeys": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- {
- "type": "null"
- }
- ]
- },
- "values": {
+ "attrs": {
"type": "object",
"additionalProperties": {
- "$ref": "#/$defs/JSONValue"
- }
- }
- },
- "required": [
- "key"
- ],
- "additionalProperties": false
- },
- "VirtualBlockRefRequestInput": {
- "type": "object",
- "properties": {
- "keywords": {
- "type": "array",
- "items": {
- "type": "string"
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
- }
- },
- "required": [
- "keywords"
- ],
- "additionalProperties": false
- },
- "WPSPresentationData": {
- "type": "object",
- "properties": {
- "converted": {
- "type": "boolean"
},
- "dom": {
+ "id": {
"type": "string"
}
},
"required": [
- "converted",
- "dom"
+ "attrs",
+ "id"
],
"additionalProperties": false
},
- "WPSPresentationRequestInput": {
+ "SetCriterionRequestInput": {
"type": "object",
"properties": {
- "data": {
- "type": "string"
- },
- "text": {
+ "criterion": {
"anyOf": [
{
- "type": "string"
+ "$ref": "#/$defs/CriterionInput"
},
{
"type": "null"
}
]
- },
- "type": {
- "type": "string"
}
},
"required": [
- "data",
- "type"
+ "criterion"
],
"additionalProperties": false
},
- "WordCountData": {
+ "SetGraphConfRequestInput": {
"type": "object",
"properties": {
- "reqId": {
- "$ref": "#/$defs/JSONValue"
+ "conf": {
+ "$ref": "#/$defs/GraphConfigurationFieldsInput"
},
- "stat": {
- "anyOf": [
- {
- "$ref": "#/$defs/BlockStat"
- },
- {
- "type": "null"
- }
- ]
+ "type": {
+ "type": "string"
}
},
"required": [
- "reqId",
- "stat"
+ "conf",
+ "type"
],
"additionalProperties": false
},
- "WorkspaceAVBuiltinColorUpdateInput": {
+ "SetInlineStylesRequestInput": {
"type": "object",
"properties": {
- "customized": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
- },
- "dark": {
- "anyOf": [
- {
- "$ref": "#/$defs/InlineStyleThemeInput"
- },
- {
- "type": "null"
- }
- ]
- },
- "hidden": {
+ "app": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "index": {
+ "av": {
"anyOf": [
{
- "type": "integer"
+ "$ref": "#/$defs/InlineStyleAVInput"
},
{
"type": "null"
}
]
},
- "light": {
- "anyOf": [
- {
- "$ref": "#/$defs/InlineStyleThemeInput"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "additionalProperties": false
- },
- "WorkspaceAVPaletteRequestInput": {
- "type": "object",
- "properties": {
- "app": {
+ "builtin": {
"anyOf": [
{
- "type": "string"
+ "$ref": "#/$defs/InlineStyleBuiltinInput"
},
{
"type": "null"
}
]
},
- "builtinColors": {
+ "order": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/WorkspaceAVBuiltinColorUpdateInput"
- },
- {
- "type": "null"
- }
- ]
- }
+ "$ref": "#/$defs/InlineStyleOrderInput"
},
{
"type": "null"
}
]
},
- "colors": {
+ "styles": {
"type": "array",
"items": {
"anyOf": [
{
- "$ref": "#/$defs/AttributeViewCustomColorInput"
+ "$ref": "#/$defs/InlineStyleInput"
},
{
"type": "null"
@@ -16373,60 +15581,4708 @@
]
}
},
- "order": {
- "type": "array",
- "items": {
- "type": "string"
- }
+ "version": {
+ "type": "number"
}
},
"required": [
- "colors",
- "order"
+ "styles",
+ "version"
],
"additionalProperties": false
},
- "WorkspaceInfoData": {
+ "SetNotebookConfRequestInput": {
"type": "object",
"properties": {
- "siyuanVer": {
- "type": "string"
+ "conf": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/NotebookConfPatchInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "workspaceDir": {
+ "notebook": {
"type": "string"
}
},
"required": [
- "siyuanVer",
- "workspaceDir"
+ "notebook"
],
"additionalProperties": false
},
- "ZipRequestInput": {
+ "SetNotebookIconRequestInput": {
"type": "object",
"properties": {
- "path": {
+ "icon": {
"type": "string"
},
- "zipPath": {
+ "notebook": {
"type": "string"
}
},
"required": [
- "path",
- "zipPath"
- ],
+ "icon",
+ "notebook"
+ ],
"additionalProperties": false
- }
- },
- "endpoints": [
+ },
+ "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
+ },
+ "SetRepoIndexRetentionDaysRequestInput": {
+ "type": "object",
+ "properties": {
+ "days": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "days"
+ ],
+ "additionalProperties": false
+ },
+ "SetRetentionIndexesDailyRequestInput": {
+ "type": "object",
+ "properties": {
+ "indexes": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "indexes"
+ ],
+ "additionalProperties": false
+ },
+ "SetRiffCardsDueRequestInput": {
+ "type": "object",
+ "properties": {
+ "cardDues": {
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/RiffCardDueInput"
+ }
+ }
+ },
+ "required": [
+ "cardDues"
+ ],
+ "additionalProperties": false
+ },
+ "SetSnapshotMemoRequestInput": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "memo": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "memo"
+ ],
+ "additionalProperties": false
+ },
+ "SetSnippetRequestInput": {
+ "type": "object",
+ "properties": {
+ "snippets": {
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/SnippetInput"
+ }
+ }
+ },
+ "required": [
+ "snippets"
+ ],
+ "additionalProperties": false
+ },
+ "SetSyncLocalRequestInput": {
+ "type": "object",
+ "properties": {
+ "local": {
+ "$ref": "#/$defs/SyncLocalInput"
+ }
+ },
+ "required": [
+ "local"
+ ],
+ "additionalProperties": false
+ },
+ "SetSyncS3RequestInput": {
+ "type": "object",
+ "properties": {
+ "s3": {
+ "$ref": "#/$defs/SyncS3Input"
+ }
+ },
+ "required": [
+ "s3"
+ ],
+ "additionalProperties": false
+ },
+ "SetSyncWebDAVRequestInput": {
+ "type": "object",
+ "properties": {
+ "webdav": {
+ "$ref": "#/$defs/SyncWebDAVInput"
+ }
+ },
+ "required": [
+ "webdav"
+ ],
+ "additionalProperties": false
+ },
+ "Shorthand": {
+ "type": "object",
+ "properties": {
+ "hCreated": {
+ "type": "string"
+ },
+ "oId": {
+ "type": "string"
+ },
+ "shorthandContent": {
+ "type": "string"
+ },
+ "shorthandDesc": {
+ "type": "string"
+ },
+ "shorthandFrom": {
+ "type": "integer"
+ },
+ "shorthandMd": {
+ "type": "string"
+ },
+ "shorthandTitle": {
+ "type": "string"
+ },
+ "shorthandURL": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "hCreated",
+ "oId",
+ "shorthandContent",
+ "shorthandDesc",
+ "shorthandFrom",
+ "shorthandMd",
+ "shorthandTitle",
+ "shorthandURL"
+ ],
+ "additionalProperties": false
+ },
+ "ShorthandPage": {
+ "type": "object",
+ "properties": {
+ "pagination": {
+ "$ref": "#/$defs/ShorthandPagination"
+ },
+ "shorthands": {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/Shorthand"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ }
+ },
+ "required": [
+ "pagination",
+ "shorthands"
+ ],
+ "additionalProperties": false
+ },
+ "ShorthandPagination": {
+ "type": "object",
+ "properties": {
+ "paginationPageCount": {
+ "type": "integer"
+ },
+ "paginationPageNums": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "integer"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "paginationRecordCount": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "paginationPageCount",
+ "paginationPageNums",
+ "paginationRecordCount"
+ ],
+ "additionalProperties": false
+ },
+ "ShorthandsData": {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer"
+ },
+ "data": {
+ "$ref": "#/$defs/ShorthandPage"
+ },
+ "msg": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "data",
+ "msg"
+ ],
+ "additionalProperties": false
+ },
+ "ShorthandsRequestInput": {
+ "type": "object",
+ "properties": {
+ "page": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "page"
+ ],
+ "additionalProperties": false
+ },
+ "Snippet": {
+ "type": "object",
+ "properties": {
+ "content": {
+ "type": "string"
+ },
+ "disabledInPublish": {
+ "type": "boolean"
+ },
+ "enabled": {
+ "type": "boolean"
+ },
+ "id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "type": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "content",
+ "disabledInPublish",
+ "enabled",
+ "id",
+ "name",
+ "type"
+ ],
+ "additionalProperties": false
+ },
+ "SnippetInput": {
+ "type": "object",
+ "properties": {
+ "content": {
+ "type": "string"
+ },
+ "disabledInPublish": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "enabled": {
+ "type": "boolean"
+ },
+ "id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "type": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "content",
+ "enabled",
+ "id",
+ "name",
+ "type"
+ ],
+ "additionalProperties": false
+ },
+ "SnippetsData": {
+ "type": "object",
+ "properties": {
+ "snippets": {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/Snippet"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ }
+ },
+ "required": [
+ "snippets"
+ ],
+ "additionalProperties": false
+ },
+ "StorageKeyRequestInput": {
+ "type": "object",
+ "properties": {
+ "key": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "key"
+ ],
+ "additionalProperties": false
+ },
+ "StorageKeysRequestInput": {
+ "type": "object",
+ "properties": {
+ "keys": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ },
+ "required": [
+ "keys"
+ ],
+ "additionalProperties": false
+ },
+ "StorageRemoveKeysRequestInput": {
+ "type": "object",
+ "properties": {
+ "app": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "keys": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ },
+ "required": [
+ "keys"
+ ],
+ "additionalProperties": false
+ },
+ "StorageRemoveRequestInput": {
+ "type": "object",
+ "properties": {
+ "app": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "key": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "key"
+ ],
+ "additionalProperties": false
+ },
+ "StorageSetKeysRequestInput": {
+ "type": "object",
+ "properties": {
+ "app": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "keyVals": {
+ "type": "object",
+ "additionalProperties": {
+ "$ref": "#/$defs/JSONValue"
+ }
+ }
+ },
+ "required": [
+ "keyVals"
+ ],
+ "additionalProperties": false
+ },
+ "StorageSetRequestInput": {
+ "type": "object",
+ "properties": {
+ "app": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "key": {
+ "type": "string"
+ },
+ "val": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/JSONValue"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "key"
+ ],
+ "additionalProperties": false
+ },
+ "SwapBlockRefRequestInput": {
+ "type": "object",
+ "properties": {
+ "defID": {
+ "type": "string"
+ },
+ "includeChildren": {
+ "type": "boolean"
+ },
+ "refID": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "defID",
+ "includeChildren",
+ "refID"
+ ],
+ "additionalProperties": false
+ },
+ "SyncAssetDownloadModeData": {
+ "type": "object",
+ "properties": {
+ "assetDownloadMode": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "assetDownloadMode"
+ ],
+ "additionalProperties": false
+ },
+ "SyncEnabledRequestInput": {
+ "type": "object",
+ "properties": {
+ "enabled": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "enabled"
+ ],
+ "additionalProperties": false
+ },
+ "SyncInfoData": {
+ "type": "object",
+ "properties": {
+ "kernel": {
+ "type": "string"
+ },
+ "kernels": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SyncOnlineKernel"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "stat": {
+ "type": "string"
+ },
+ "synced": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "kernel",
+ "kernels",
+ "stat",
+ "synced"
+ ],
+ "additionalProperties": false
+ },
+ "SyncIntervalRequestInput": {
+ "type": "object",
+ "properties": {
+ "interval": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "interval"
+ ],
+ "additionalProperties": false
+ },
+ "SyncLANRequestInput": {
+ "type": "object",
+ "properties": {
+ "enabled": {
+ "type": "boolean"
+ },
+ "maxConcurrentReqs": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "enabled"
+ ],
+ "additionalProperties": false
+ },
+ "SyncLANStatus": {
+ "type": "object",
+ "properties": {
+ "active": {
+ "type": "boolean"
+ },
+ "connectedPeers": {
+ "type": "integer"
+ },
+ "discoveredPeers": {
+ "type": "integer"
+ },
+ "enabled": {
+ "type": "boolean"
+ },
+ "maxConcurrentReqs": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "active",
+ "connectedPeers",
+ "discoveredPeers",
+ "enabled",
+ "maxConcurrentReqs"
+ ],
+ "additionalProperties": false
+ },
+ "SyncLocal": {
+ "type": "object",
+ "properties": {
+ "concurrentReqs": {
+ "type": "integer"
+ },
+ "endpoint": {
+ "type": "string"
+ },
+ "timeout": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "concurrentReqs",
+ "endpoint",
+ "timeout"
+ ],
+ "additionalProperties": false
+ },
+ "SyncLocalData": {
+ "type": "object",
+ "properties": {
+ "local": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SyncLocal"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "local"
+ ],
+ "additionalProperties": false
+ },
+ "SyncLocalInput": {
+ "type": "object",
+ "properties": {
+ "concurrentReqs": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "endpoint": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "timeout": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "SyncModeRequestInput": {
+ "type": "object",
+ "properties": {
+ "mode": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "mode"
+ ],
+ "additionalProperties": false
+ },
+ "SyncNameRequestInput": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "name"
+ ],
+ "additionalProperties": false
+ },
+ "SyncOnlineKernel": {
+ "type": "object",
+ "properties": {
+ "hostname": {
+ "type": "string"
+ },
+ "id": {
+ "type": "string"
+ },
+ "os": {
+ "type": "string"
+ },
+ "ver": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "hostname",
+ "id",
+ "os",
+ "ver"
+ ],
+ "additionalProperties": false
+ },
+ "SyncProviderExportData": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string"
+ },
+ "zip": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "name",
+ "zip"
+ ],
+ "additionalProperties": false
+ },
+ "SyncProviderImportRequestInput": {
+ "type": "object",
+ "properties": {
+ "file": {
+ "type": "string",
+ "format": "binary"
+ }
+ },
+ "additionalProperties": false
+ },
+ "SyncProviderRequestInput": {
+ "type": "object",
+ "properties": {
+ "provider": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "provider"
+ ],
+ "additionalProperties": false
+ },
+ "SyncS3": {
+ "type": "object",
+ "properties": {
+ "accessKey": {
+ "type": "string"
+ },
+ "bucket": {
+ "type": "string"
+ },
+ "concurrentReqs": {
+ "type": "integer"
+ },
+ "endpoint": {
+ "type": "string"
+ },
+ "pathStyle": {
+ "type": "boolean"
+ },
+ "region": {
+ "type": "string"
+ },
+ "secretKey": {
+ "type": "string"
+ },
+ "skipTlsVerify": {
+ "type": "boolean"
+ },
+ "timeout": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "accessKey",
+ "bucket",
+ "concurrentReqs",
+ "endpoint",
+ "pathStyle",
+ "region",
+ "secretKey",
+ "skipTlsVerify",
+ "timeout"
+ ],
+ "additionalProperties": false
+ },
+ "SyncS3Data": {
+ "type": "object",
+ "properties": {
+ "s3": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SyncS3"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "s3"
+ ],
+ "additionalProperties": false
+ },
+ "SyncS3Input": {
+ "type": "object",
+ "properties": {
+ "accessKey": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "bucket": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "concurrentReqs": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "endpoint": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "pathStyle": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "region": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "secretKey": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "skipTlsVerify": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "timeout": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "SyncWebDAV": {
+ "type": "object",
+ "properties": {
+ "concurrentReqs": {
+ "type": "integer"
+ },
+ "endpoint": {
+ "type": "string"
+ },
+ "password": {
+ "type": "string"
+ },
+ "skipTlsVerify": {
+ "type": "boolean"
+ },
+ "timeout": {
+ "type": "integer"
+ },
+ "username": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "concurrentReqs",
+ "endpoint",
+ "password",
+ "skipTlsVerify",
+ "timeout",
+ "username"
+ ],
+ "additionalProperties": false
+ },
+ "SyncWebDAVData": {
+ "type": "object",
+ "properties": {
+ "webdav": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SyncWebDAV"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "webdav"
+ ],
+ "additionalProperties": false
+ },
+ "SyncWebDAVInput": {
+ "type": "object",
+ "properties": {
+ "concurrentReqs": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "endpoint": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "password": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "skipTlsVerify": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "timeout": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "username": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "TagData": {
+ "type": "object",
+ "properties": {
+ "children": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/TagData"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "count": {
+ "type": "integer"
+ },
+ "depth": {
+ "type": "integer"
+ },
+ "label": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "type": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "children",
+ "count",
+ "depth",
+ "label",
+ "name",
+ "type"
+ ],
+ "additionalProperties": false
+ },
+ "TagSnapshotRequestInput": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "name"
+ ],
+ "additionalProperties": false
+ },
+ "TailChildBlocksRequestInput": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "ids": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "n": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "notebook": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "id"
+ ],
+ "additionalProperties": false
+ },
+ "TaskListMarkerRequestInput": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "marker": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "marker"
+ ],
+ "additionalProperties": false
+ },
+ "TemplateDocumentInfo": {
+ "type": "object",
+ "properties": {
+ "directory": {
+ "type": "string"
+ },
+ "hasDatabase": {
+ "type": "boolean"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "directory",
+ "hasDatabase",
+ "name"
+ ],
+ "additionalProperties": false
+ },
+ "TemplateDocumentRequestInput": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id"
+ ],
+ "additionalProperties": false
+ },
+ "TemplateFileEntry": {
+ "type": "object",
+ "properties": {
+ "isDir": {
+ "type": "boolean"
+ },
+ "isPackage": {
+ "type": "boolean"
+ },
+ "path": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "isDir",
+ "path"
+ ],
+ "additionalProperties": false
+ },
+ "TemplateFileRequestInput": {
+ "type": "object",
+ "properties": {
+ "action": {
+ "type": "string"
+ },
+ "content": {
+ "type": "string"
+ },
+ "path": {
+ "type": "string"
+ },
+ "revision": {
+ "type": "string"
+ },
+ "target": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false
+ },
+ "TemplateFileRevision": {
+ "type": "object",
+ "properties": {
+ "revision": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "revision"
+ ],
+ "additionalProperties": false
+ },
+ "TemplateFileSource": {
+ "type": "object",
+ "properties": {
+ "content": {
+ "type": "string"
+ },
+ "path": {
+ "type": "string"
+ },
+ "revision": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "content",
+ "revision"
+ ],
+ "additionalProperties": false
+ },
+ "TemplatePlan": {
+ "type": "object",
+ "properties": {
+ "count": {
+ "type": "integer"
+ },
+ "id": {
+ "type": "string"
+ },
+ "nodes": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/TemplatePlanNode"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "count",
+ "id",
+ "nodes"
+ ],
+ "additionalProperties": false
+ },
+ "TemplatePlanNode": {
+ "type": "object",
+ "properties": {
+ "depth": {
+ "type": "integer"
+ },
+ "hPath": {
+ "type": "string"
+ },
+ "id": {
+ "type": "string"
+ },
+ "parentID": {
+ "type": "string"
+ },
+ "title": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "depth",
+ "hPath",
+ "id",
+ "parentID",
+ "title"
+ ],
+ "additionalProperties": false
+ },
+ "TransferBlockRefRequestInput": {
+ "type": "object",
+ "properties": {
+ "fromID": {
+ "type": "string"
+ },
+ "refIDs": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "reloadUI": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "toID": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "fromID",
+ "toID"
+ ],
+ "additionalProperties": false
+ },
+ "TreeStatData": {
+ "type": "object",
+ "properties": {
+ "containsEmbed": {
+ "type": "boolean"
+ },
+ "embedStat": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/EmbedStat"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "reqId": {
+ "$ref": "#/$defs/JSONValue"
+ },
+ "stat": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/BlockStat"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "statWithEmbed": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/BlockStat"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "reqId",
+ "stat"
+ ],
+ "additionalProperties": false
+ },
+ "TreeStatRequestInput": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "ids": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "includeEmbed": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "notebook": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "reqId": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/JSONValue"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "id"
+ ],
+ "additionalProperties": false
+ },
+ "TrimmedIDRequestInput": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id"
+ ],
+ "additionalProperties": false
+ },
+ "UnfoldedParentData": {
+ "type": "object",
+ "properties": {
+ "parentID": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "parentID"
+ ],
+ "additionalProperties": false
+ },
+ "UninstallBazaarIconRequestInput": {
+ "type": "object",
+ "properties": {
+ "keyword": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "packageName": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "packageName"
+ ],
+ "additionalProperties": false
+ },
+ "UninstallBazaarPluginRequestInput": {
+ "type": "object",
+ "properties": {
+ "frontend": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "keyword": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "packageName": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "packageName"
+ ],
+ "additionalProperties": false
+ },
+ "UninstallBazaarTemplateRequestInput": {
+ "type": "object",
+ "properties": {
+ "keyword": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "packageName": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "packageName"
+ ],
+ "additionalProperties": false
+ },
+ "UninstallBazaarThemeRequestInput": {
+ "type": "object",
+ "properties": {
+ "frontend": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "keyword": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "packageName": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "packageName"
+ ],
+ "additionalProperties": false
+ },
+ "UninstallBazaarWidgetRequestInput": {
+ "type": "object",
+ "properties": {
+ "keyword": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "packageName": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "packageName"
+ ],
+ "additionalProperties": false
+ },
+ "UnlockNotebookRequestInput": {
+ "type": "object",
+ "properties": {
+ "notebook": {
+ "type": "string"
+ },
+ "password": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "notebook",
+ "password"
+ ],
+ "additionalProperties": false
+ },
+ "UnzipRequestInput": {
+ "type": "object",
+ "properties": {
+ "path": {
+ "type": "string"
+ },
+ "zipPath": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "path",
+ "zipPath"
+ ],
+ "additionalProperties": false
+ },
+ "UpdateBazaarPackageRequestInput": {
+ "type": "object",
+ "properties": {
+ "frontend": {
+ "type": "string"
+ },
+ "keyword": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "packageName": {
+ "type": "string"
+ },
+ "packageType": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "frontend",
+ "packageName",
+ "packageType"
+ ],
+ "additionalProperties": false
+ },
+ "UpdateBlockRequestInput": {
+ "type": "object",
+ "properties": {
+ "data": {
+ "type": "string"
+ },
+ "dataType": {
+ "type": "string"
+ },
+ "id": {
+ "type": "string"
+ },
+ "lockType": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "data",
+ "dataType",
+ "id"
+ ],
+ "additionalProperties": false
+ },
+ "UpdateChannelRequestInput": {
+ "type": "object",
+ "properties": {
+ "updateChannel": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "updateChannel"
+ ],
+ "additionalProperties": false
+ },
+ "UpdateEmbedBlockRequestInput": {
+ "type": "object",
+ "properties": {
+ "content": {
+ "type": "string"
+ },
+ "id": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "content",
+ "id"
+ ],
+ "additionalProperties": false
+ },
+ "UpdatePinnedDocsRequestInput": {
+ "type": "object",
+ "properties": {
+ "action": {
+ "type": "string"
+ },
+ "after": {
+ "type": "boolean"
+ },
+ "ids": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "targetID": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "action",
+ "ids"
+ ],
+ "additionalProperties": false
+ },
+ "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/attr/batchGetBlockAttrs",
+ "handler": "batchGetBlockAttrs",
+ "body": "json",
+ "request": {
+ "$ref": "#/$defs/BlockIDsRequestInput"
+ },
+ "response": {
+ "anyOf": [
+ {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer",
+ "enum": [
+ 0
+ ]
+ },
+ "data": {
+ "type": "object",
+ "additionalProperties": {
+ "anyOf": [
+ {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "msg": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "msg",
+ "data"
+ ],
+ "additionalProperties": false
+ },
+ {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer",
+ "enum": [
+ -1
+ ]
+ },
+ "data": {
+ "anyOf": [
+ {
+ "type": "object",
+ "properties": {
+ "closeTimeout": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "closeTimeout"
+ ],
+ "additionalProperties": false
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "msg": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "msg",
+ "data"
+ ],
+ "additionalProperties": true
+ }
+ ]
+ }
+ },
+ {
+ "method": "POST",
+ "path": "/api/attr/batchSetBlockAttrs",
+ "handler": "batchSetBlockAttrs",
+ "body": "json",
+ "request": {
+ "$ref": "#/$defs/BatchSetBlockAttrsRequestInput"
+ },
+ "response": {
+ "anyOf": [
+ {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer",
+ "enum": [
+ 0
+ ]
+ },
+ "data": {
+ "type": "null"
+ },
+ "msg": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "msg",
+ "data"
+ ],
+ "additionalProperties": false
+ },
+ {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer",
+ "enum": [
+ -1
+ ]
+ },
+ "data": {
+ "anyOf": [
+ {
+ "type": "object",
+ "properties": {
+ "closeTimeout": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "closeTimeout"
+ ],
+ "additionalProperties": false
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "msg": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "msg",
+ "data"
+ ],
+ "additionalProperties": true
+ }
+ ]
+ }
+ },
+ {
+ "method": "POST",
+ "path": "/api/attr/getBlockAttrs",
+ "handler": "getBlockAttrs",
+ "body": "json",
+ "request": {
+ "$ref": "#/$defs/BlockIDRequestInput"
+ },
+ "response": {
+ "anyOf": [
+ {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer",
+ "enum": [
+ 0
+ ]
+ },
+ "data": {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ }
+ },
+ "msg": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "msg",
+ "data"
+ ],
+ "additionalProperties": false
+ },
+ {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer",
+ "enum": [
+ -1
+ ]
+ },
+ "data": {
+ "anyOf": [
+ {
+ "type": "object",
+ "properties": {
+ "closeTimeout": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "closeTimeout"
+ ],
+ "additionalProperties": false
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "msg": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "msg",
+ "data"
+ ],
+ "additionalProperties": true
+ }
+ ]
+ }
+ },
+ {
+ "method": "POST",
+ "path": "/api/attr/getBookmarkLabels",
+ "handler": "getBookmarkLabels",
+ "body": "none",
+ "request": {
+ "$ref": "#/$defs/EmptyRequestInput"
+ },
+ "response": {
+ "anyOf": [
+ {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer",
+ "enum": [
+ 0
+ ]
+ },
+ "data": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "msg": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "msg",
+ "data"
+ ],
+ "additionalProperties": false
+ },
+ {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer",
+ "enum": [
+ -1
+ ]
+ },
+ "data": {
+ "anyOf": [
+ {
+ "type": "object",
+ "properties": {
+ "closeTimeout": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "closeTimeout"
+ ],
+ "additionalProperties": false
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "msg": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "msg",
+ "data"
+ ],
+ "additionalProperties": true
+ }
+ ]
+ }
+ },
+ {
+ "method": "POST",
+ "path": "/api/attr/resetBlockAttrs",
+ "handler": "resetBlockAttrs",
+ "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/attr/setBlockAttrs",
+ "handler": "setBlockAttrs",
+ "body": "json",
+ "request": {
+ "$ref": "#/$defs/SetBlockAttrsRequestInput"
+ },
+ "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/av/searchAttributeViewNonRelationKey",
+ "handler": "searchAttributeViewNonRelationKey",
+ "body": "none",
+ "request": {
+ "$ref": "#/$defs/EmptyRequestInput"
+ },
+ "response": {
+ "anyOf": [
+ {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer",
+ "enum": [
+ 0
+ ]
+ },
+ "data": {
+ "type": "null"
+ },
+ "msg": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "msg",
+ "data"
+ ],
+ "additionalProperties": false
+ },
+ {
+ "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/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
+ },
+ {
+ "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/bazaar/getBazaarIcon",
+ "handler": "getBazaarIcon",
+ "body": "json",
+ "request": {
+ "$ref": "#/$defs/GetBazaarIconRequestInput"
+ },
+ "response": {
+ "anyOf": [
+ {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer",
+ "enum": [
+ 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": "null"
+ }
+ ]
+ },
+ "msg": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "msg",
+ "data"
+ ],
+ "additionalProperties": true
+ }
+ ]
+ }
+ },
+ {
+ "method": "POST",
+ "path": "/api/bazaar/getBazaarPackage",
+ "handler": "getBazaarPackage",
+ "body": "json",
+ "request": {
+ "$ref": "#/$defs/GetBazaarPackageRequestInput"
+ },
+ "response": {
+ "anyOf": [
+ {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer",
+ "enum": [
+ 0
+ ]
+ },
+ "data": {
+ "$ref": "#/$defs/BazaarPackageDetail"
+ },
+ "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/bazaar/getBazaarPackageREADME",
+ "handler": "getBazaarPackageREADME",
+ "body": "json",
+ "request": {
+ "$ref": "#/$defs/GetBazaarPackageREADMERequestInput"
+ },
+ "response": {
+ "anyOf": [
+ {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer",
+ "enum": [
+ 0
+ ]
+ },
+ "data": {
+ "$ref": "#/$defs/BazaarREADMEData"
+ },
+ "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/bazaar/getBazaarPackageRating",
+ "handler": "getBazaarPackageRating",
+ "body": "json",
+ "request": {
+ "$ref": "#/$defs/GetBazaarPackageRatingRequestInput"
+ },
+ "response": {
+ "anyOf": [
+ {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer",
+ "enum": [
+ 0
+ ]
+ },
+ "data": {
+ "$ref": "#/$defs/BazaarRatingResult"
+ },
+ "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"
+ },
+ {
+ "$ref": "#/$defs/BazaarRatingResult"
+ }
+ ]
+ },
+ "msg": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "msg",
+ "data"
+ ],
+ "additionalProperties": true
+ }
+ ]
+ }
+ },
+ {
+ "method": "POST",
+ "path": "/api/bazaar/getBazaarPackageRatings",
+ "handler": "getBazaarPackageRatings",
+ "body": "json",
+ "request": {
+ "$ref": "#/$defs/GetBazaarPackageRatingsRequestInput"
+ },
+ "response": {
+ "anyOf": [
+ {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer",
+ "enum": [
+ 0
+ ]
+ },
+ "data": {
+ "$ref": "#/$defs/BazaarRatingsData"
+ },
+ "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/bazaar/getBazaarPackageUserRatings",
+ "handler": "getBazaarPackageUserRatings",
+ "body": "json",
+ "request": {
+ "$ref": "#/$defs/GetBazaarPackageUserRatingsRequestInput"
+ },
+ "response": {
+ "anyOf": [
+ {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer",
+ "enum": [
+ 0
+ ]
+ },
+ "data": {
+ "$ref": "#/$defs/BazaarUserRatingsResult"
+ },
+ "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"
+ },
+ {
+ "$ref": "#/$defs/BazaarUserRatingsResult"
+ }
+ ]
+ },
+ "msg": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "msg",
+ "data"
+ ],
+ "additionalProperties": true
+ }
+ ]
+ }
+ },
+ {
+ "method": "POST",
+ "path": "/api/bazaar/getBazaarPlugin",
+ "handler": "getBazaarPlugin",
+ "body": "json",
+ "request": {
+ "$ref": "#/$defs/GetBazaarPluginRequestInput"
+ },
+ "response": {
+ "anyOf": [
+ {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer",
+ "enum": [
+ 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": "null"
+ }
+ ]
+ },
+ "msg": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "msg",
+ "data"
+ ],
+ "additionalProperties": true
+ }
+ ]
+ }
+ },
{
- "method": "GET",
- "path": "/api/plugin",
- "handler": "listLoadedPluginsGET",
- "body": "none",
+ "method": "POST",
+ "path": "/api/bazaar/getBazaarTemplate",
+ "handler": "getBazaarTemplate",
+ "body": "json",
+ "request": {
+ "$ref": "#/$defs/GetBazaarTemplateRequestInput"
+ },
+ "response": {
+ "anyOf": [
+ {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer",
+ "enum": [
+ 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": "null"
+ }
+ ]
+ },
+ "msg": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "msg",
+ "data"
+ ],
+ "additionalProperties": true
+ }
+ ]
+ }
+ },
+ {
+ "method": "POST",
+ "path": "/api/bazaar/getBazaarTheme",
+ "handler": "getBazaarTheme",
+ "body": "json",
+ "request": {
+ "$ref": "#/$defs/GetBazaarThemeRequestInput"
+ },
+ "response": {
+ "anyOf": [
+ {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer",
+ "enum": [
+ 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": "null"
+ }
+ ]
+ },
+ "msg": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "msg",
+ "data"
+ ],
+ "additionalProperties": true
+ }
+ ]
+ }
+ },
+ {
+ "method": "POST",
+ "path": "/api/bazaar/getBazaarWidget",
+ "handler": "getBazaarWidget",
+ "body": "json",
+ "request": {
+ "$ref": "#/$defs/GetBazaarWidgetRequestInput"
+ },
+ "response": {
+ "anyOf": [
+ {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer",
+ "enum": [
+ 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": "null"
+ }
+ ]
+ },
+ "msg": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "msg",
+ "data"
+ ],
+ "additionalProperties": true
+ }
+ ]
+ }
+ },
+ {
+ "method": "POST",
+ "path": "/api/bazaar/getInstalledIcon",
+ "handler": "getInstalledIcon",
+ "body": "json",
"request": {
- "$ref": "#/$defs/EmptyRequestInput"
+ "$ref": "#/$defs/GetInstalledIconRequestInput"
},
"response": {
"anyOf": [
@@ -16440,24 +20296,7 @@
]
},
"data": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/LoadedPlugin"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- {
- "type": "null"
- }
- ]
+ "$ref": "#/$defs/BazaarPackagesData"
},
"msg": {
"type": "string"
@@ -16476,7 +20315,8 @@
"code": {
"type": "integer",
"enum": [
- -1
+ -1,
+ 1
]
},
"data": {
@@ -16513,12 +20353,12 @@
}
},
{
- "method": "GET",
- "path": "/api/plugin/rpc",
- "handler": "getLoadedPluginRPC",
+ "method": "POST",
+ "path": "/api/bazaar/getInstalledPackageSize",
+ "handler": "getInstalledPackageSize",
"body": "json",
"request": {
- "$ref": "#/$defs/LoadedPluginRequestInput"
+ "$ref": "#/$defs/GetInstalledPackageSizeRequestInput"
},
"response": {
"anyOf": [
@@ -16532,14 +20372,7 @@
]
},
"data": {
- "anyOf": [
- {
- "$ref": "#/$defs/LoadedPlugin"
- },
- {
- "type": "null"
- }
- ]
+ "$ref": "#/$defs/BazaarPackageSizeData"
},
"msg": {
"type": "string"
@@ -16559,10 +20392,7 @@
"type": "integer",
"enum": [
-1,
- 1,
- 2,
- 3,
- 4
+ 1
]
},
"data": {
@@ -16599,12 +20429,12 @@
}
},
{
- "method": "GET",
- "path": "/api/plugin/rpc/:name",
- "handler": "getLoadedPluginRPCByName",
+ "method": "POST",
+ "path": "/api/bazaar/getInstalledPlugin",
+ "handler": "getInstalledPlugin",
"body": "json",
"request": {
- "$ref": "#/$defs/LoadedPluginRequestInput"
+ "$ref": "#/$defs/GetInstalledPluginRequestInput"
},
"response": {
"anyOf": [
@@ -16617,10 +20447,43 @@
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": [
{
- "$ref": "#/$defs/LoadedPlugin"
+ "type": "object",
+ "properties": {
+ "closeTimeout": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "closeTimeout"
+ ],
+ "additionalProperties": false
},
{
"type": "null"
@@ -16636,6 +20499,42 @@
"msg",
"data"
],
+ "additionalProperties": true
+ }
+ ]
+ }
+ },
+ {
+ "method": "POST",
+ "path": "/api/bazaar/getInstalledTemplate",
+ "handler": "getInstalledTemplate",
+ "body": "json",
+ "request": {
+ "$ref": "#/$defs/GetInstalledTemplateRequestInput"
+ },
+ "response": {
+ "anyOf": [
+ {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer",
+ "enum": [
+ 0
+ ]
+ },
+ "data": {
+ "$ref": "#/$defs/BazaarPackagesData"
+ },
+ "msg": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "msg",
+ "data"
+ ],
"additionalProperties": false
},
{
@@ -16645,10 +20544,7 @@
"type": "integer",
"enum": [
-1,
- 1,
- 2,
- 3,
- 4
+ 1
]
},
"data": {
@@ -16685,12 +20581,12 @@
}
},
{
- "method": "GET",
- "path": "/api/system/bootProgress",
- "handler": "bootProgress",
- "body": "none",
+ "method": "POST",
+ "path": "/api/bazaar/getInstalledTheme",
+ "handler": "getInstalledTheme",
+ "body": "json",
"request": {
- "$ref": "#/$defs/EmptyRequestInput"
+ "$ref": "#/$defs/GetInstalledThemeRequestInput"
},
"response": {
"anyOf": [
@@ -16704,7 +20600,7 @@
]
},
"data": {
- "$ref": "#/$defs/BootProgressData"
+ "$ref": "#/$defs/BazaarPackagesData"
},
"msg": {
"type": "string"
@@ -16723,7 +20619,8 @@
"code": {
"type": "integer",
"enum": [
- -1
+ -1,
+ 1
]
},
"data": {
@@ -16760,12 +20657,12 @@
}
},
{
- "method": "GET",
- "path": "/api/system/version",
- "handler": "version",
- "body": "none",
+ "method": "POST",
+ "path": "/api/bazaar/getInstalledWidget",
+ "handler": "getInstalledWidget",
+ "body": "json",
"request": {
- "$ref": "#/$defs/EmptyRequestInput"
+ "$ref": "#/$defs/GetInstalledWidgetRequestInput"
},
"response": {
"anyOf": [
@@ -16779,7 +20676,7 @@
]
},
"data": {
- "type": "string"
+ "$ref": "#/$defs/BazaarPackagesData"
},
"msg": {
"type": "string"
@@ -16798,7 +20695,8 @@
"code": {
"type": "integer",
"enum": [
- -1
+ -1,
+ 1
]
},
"data": {
@@ -16835,17 +20733,37 @@
}
},
{
- "method": "GET",
- "path": "/ws/plugin/rpc",
- "handler": "pluginJsonRpcWebSocket",
- "body": "none",
+ "method": "POST",
+ "path": "/api/bazaar/getUpdatedPackage",
+ "handler": "getUpdatedPackage",
+ "body": "json",
"request": {
- "$ref": "#/$defs/EmptyRequestInput"
+ "$ref": "#/$defs/GetUpdatedPackageRequestInput"
},
"response": {
"anyOf": [
{
- "$ref": "#/$defs/PluginRPCFailure"
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer",
+ "enum": [
+ 0
+ ]
+ },
+ "data": {
+ "$ref": "#/$defs/BazaarUpdatedData"
+ },
+ "msg": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "msg",
+ "data"
+ ],
+ "additionalProperties": false
},
{
"type": "object",
@@ -16853,7 +20771,8 @@
"code": {
"type": "integer",
"enum": [
- -1
+ -1,
+ 1
]
},
"data": {
@@ -16887,65 +20806,116 @@
"additionalProperties": true
}
]
+ }
+ },
+ {
+ "method": "POST",
+ "path": "/api/bazaar/installBazaarIcon",
+ "handler": "installBazaarIcon",
+ "body": "json",
+ "request": {
+ "$ref": "#/$defs/InstallBazaarIconRequestInput"
},
- "output": "websocket",
- "websocket": {
- "incoming": {
- "anyOf": [
- {
- "$ref": "#/$defs/PluginRPCRequestFieldsInput"
- },
- {
- "type": "array",
- "items": {
- "$ref": "#/$defs/PluginRPCRequestFieldsInput"
+ "response": {
+ "anyOf": [
+ {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer",
+ "enum": [
+ 0
+ ]
},
- "minItems": 1
- }
- ]
- },
- "outgoing": {
- "anyOf": [
- {
- "$ref": "#/$defs/PluginRPCSuccess"
- },
- {
- "$ref": "#/$defs/PluginRPCFailure"
+ "data": {
+ "$ref": "#/$defs/BazaarAppearancePackagesData"
+ },
+ "msg": {
+ "type": "string"
+ }
},
- {
- "type": "array",
- "items": {
+ "required": [
+ "code",
+ "msg",
+ "data"
+ ],
+ "additionalProperties": false
+ },
+ {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer",
+ "enum": [
+ -1,
+ 1
+ ]
+ },
+ "data": {
"anyOf": [
{
- "$ref": "#/$defs/PluginRPCSuccess"
+ "type": "object",
+ "properties": {
+ "closeTimeout": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "closeTimeout"
+ ],
+ "additionalProperties": false
},
{
- "$ref": "#/$defs/PluginRPCFailure"
+ "type": "null"
}
]
},
- "minItems": 1
+ "msg": {
+ "type": "string"
+ }
},
- {
- "$ref": "#/$defs/PluginRPCNotification"
- }
- ]
- },
- "failureStatus": 404
+ "required": [
+ "code",
+ "msg",
+ "data"
+ ],
+ "additionalProperties": true
+ }
+ ]
}
},
{
- "method": "GET",
- "path": "/ws/plugin/rpc/:name",
- "handler": "pluginJsonRpcWebSocketByName",
- "body": "none",
+ "method": "POST",
+ "path": "/api/bazaar/installBazaarPlugin",
+ "handler": "installBazaarPlugin",
+ "body": "json",
"request": {
- "$ref": "#/$defs/EmptyRequestInput"
+ "$ref": "#/$defs/InstallBazaarPluginRequestInput"
},
"response": {
"anyOf": [
{
- "$ref": "#/$defs/PluginRPCFailure"
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer",
+ "enum": [
+ 0
+ ]
+ },
+ "data": {
+ "$ref": "#/$defs/BazaarPackagesData"
+ },
+ "msg": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "msg",
+ "data"
+ ],
+ "additionalProperties": false
},
{
"type": "object",
@@ -16953,7 +20923,8 @@
"code": {
"type": "integer",
"enum": [
- -1
+ -1,
+ 1
]
},
"data": {
@@ -16987,60 +20958,15 @@
"additionalProperties": true
}
]
- },
- "output": "websocket",
- "websocket": {
- "incoming": {
- "anyOf": [
- {
- "$ref": "#/$defs/PluginRPCRequestFieldsInput"
- },
- {
- "type": "array",
- "items": {
- "$ref": "#/$defs/PluginRPCRequestFieldsInput"
- },
- "minItems": 1
- }
- ]
- },
- "outgoing": {
- "anyOf": [
- {
- "$ref": "#/$defs/PluginRPCSuccess"
- },
- {
- "$ref": "#/$defs/PluginRPCFailure"
- },
- {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/PluginRPCSuccess"
- },
- {
- "$ref": "#/$defs/PluginRPCFailure"
- }
- ]
- },
- "minItems": 1
- },
- {
- "$ref": "#/$defs/PluginRPCNotification"
- }
- ]
- },
- "failureStatus": 404
}
},
{
"method": "POST",
- "path": "/api/account/checkActivationcode",
- "handler": "checkActivationcode",
+ "path": "/api/bazaar/installBazaarTemplate",
+ "handler": "installBazaarTemplate",
"body": "json",
"request": {
- "$ref": "#/$defs/CheckActivationCodeRequestInput"
+ "$ref": "#/$defs/InstallBazaarTemplateRequestInput"
},
"response": {
"anyOf": [
@@ -17054,7 +20980,7 @@
]
},
"data": {
- "type": "null"
+ "$ref": "#/$defs/BazaarPackagesData"
},
"msg": {
"type": "string"
@@ -17091,9 +21017,6 @@
],
"additionalProperties": false
},
- {
- "type": "null"
- },
{
"type": "null"
}
@@ -17115,11 +21038,11 @@
},
{
"method": "POST",
- "path": "/api/account/deactivate",
- "handler": "deactivateUser",
- "body": "none",
+ "path": "/api/bazaar/installBazaarTheme",
+ "handler": "installBazaarTheme",
+ "body": "json",
"request": {
- "$ref": "#/$defs/EmptyRequestInput"
+ "$ref": "#/$defs/InstallBazaarThemeRequestInput"
},
"response": {
"anyOf": [
@@ -17133,7 +21056,7 @@
]
},
"data": {
- "type": "null"
+ "$ref": "#/$defs/BazaarAppearancePackagesData"
},
"msg": {
"type": "string"
@@ -17152,7 +21075,8 @@
"code": {
"type": "integer",
"enum": [
- -1
+ -1,
+ 1
]
},
"data": {
@@ -17190,11 +21114,11 @@
},
{
"method": "POST",
- "path": "/api/account/login",
- "handler": "login",
+ "path": "/api/bazaar/installBazaarWidget",
+ "handler": "installBazaarWidget",
"body": "json",
"request": {
- "$ref": "#/$defs/AccountLoginRequestInput"
+ "$ref": "#/$defs/InstallBazaarWidgetRequestInput"
},
"response": {
"anyOf": [
@@ -17208,14 +21132,7 @@
]
},
"data": {
- "anyOf": [
- {
- "$ref": "#/$defs/AccountLoginData"
- },
- {
- "type": "null"
- }
- ]
+ "$ref": "#/$defs/BazaarPackagesData"
},
"msg": {
"type": "string"
@@ -17235,8 +21152,7 @@
"type": "integer",
"enum": [
-1,
- 1,
- 10
+ 1
]
},
"data": {
@@ -17255,16 +21171,6 @@
},
{
"type": "null"
- },
- {
- "anyOf": [
- {
- "$ref": "#/$defs/AccountLoginData"
- },
- {
- "type": "null"
- }
- ]
}
]
},
@@ -17284,11 +21190,11 @@
},
{
"method": "POST",
- "path": "/api/account/startFreeTrial",
- "handler": "startFreeTrial",
- "body": "none",
+ "path": "/api/bazaar/installLocalBazaarPackage",
+ "handler": "installLocalBazaarPackage",
+ "body": "multipart",
"request": {
- "$ref": "#/$defs/EmptyRequestInput"
+ "$ref": "#/$defs/InstallLocalBazaarPackageRequestInput"
},
"response": {
"anyOf": [
@@ -17302,7 +21208,7 @@
]
},
"data": {
- "type": "null"
+ "$ref": "#/$defs/BazaarLocalInstallResult"
},
"msg": {
"type": "string"
@@ -17321,7 +21227,8 @@
"code": {
"type": "integer",
"enum": [
- -1
+ -1,
+ 1
]
},
"data": {
@@ -17340,6 +21247,9 @@
},
{
"type": "null"
+ },
+ {
+ "$ref": "#/$defs/BazaarLocalInstallResult"
}
]
},
@@ -17359,11 +21269,11 @@
},
{
"method": "POST",
- "path": "/api/account/useActivationcode",
- "handler": "useActivationcode",
+ "path": "/api/bazaar/setBazaarPackageRating",
+ "handler": "setBazaarPackageRating",
"body": "json",
"request": {
- "$ref": "#/$defs/ActivationCodeRequestInput"
+ "$ref": "#/$defs/SetBazaarPackageRatingRequestInput"
},
"response": {
"anyOf": [
@@ -17377,7 +21287,7 @@
]
},
"data": {
- "type": "null"
+ "$ref": "#/$defs/BazaarRatingResult"
},
"msg": {
"type": "string"
@@ -17396,7 +21306,8 @@
"code": {
"type": "integer",
"enum": [
- -1
+ -1,
+ 1
]
},
"data": {
@@ -17415,6 +21326,9 @@
},
{
"type": "null"
+ },
+ {
+ "$ref": "#/$defs/BazaarRatingResult"
}
]
},
@@ -17434,11 +21348,11 @@
},
{
"method": "POST",
- "path": "/api/archive/unzip",
- "handler": "unzip",
+ "path": "/api/bazaar/uninstallBazaarIcon",
+ "handler": "uninstallBazaarIcon",
"body": "json",
"request": {
- "$ref": "#/$defs/UnzipRequestInput"
+ "$ref": "#/$defs/UninstallBazaarIconRequestInput"
},
"response": {
"anyOf": [
@@ -17452,7 +21366,7 @@
]
},
"data": {
- "type": "null"
+ "$ref": "#/$defs/BazaarAppearancePackagesData"
},
"msg": {
"type": "string"
@@ -17471,7 +21385,8 @@
"code": {
"type": "integer",
"enum": [
- -1
+ -1,
+ 1
]
},
"data": {
@@ -17509,11 +21424,11 @@
},
{
"method": "POST",
- "path": "/api/archive/zip",
- "handler": "zip",
+ "path": "/api/bazaar/uninstallBazaarPlugin",
+ "handler": "uninstallBazaarPlugin",
"body": "json",
"request": {
- "$ref": "#/$defs/ZipRequestInput"
+ "$ref": "#/$defs/UninstallBazaarPluginRequestInput"
},
"response": {
"anyOf": [
@@ -17527,7 +21442,7 @@
]
},
"data": {
- "type": "null"
+ "$ref": "#/$defs/BazaarPackagesData"
},
"msg": {
"type": "string"
@@ -17546,7 +21461,8 @@
"code": {
"type": "integer",
"enum": [
- -1
+ -1,
+ 1
]
},
"data": {
@@ -17584,11 +21500,11 @@
},
{
"method": "POST",
- "path": "/api/attr/batchGetBlockAttrs",
- "handler": "batchGetBlockAttrs",
+ "path": "/api/bazaar/uninstallBazaarTemplate",
+ "handler": "uninstallBazaarTemplate",
"body": "json",
"request": {
- "$ref": "#/$defs/BlockIDsRequestInput"
+ "$ref": "#/$defs/UninstallBazaarTemplateRequestInput"
},
"response": {
"anyOf": [
@@ -17602,20 +21518,7 @@
]
},
"data": {
- "type": "object",
- "additionalProperties": {
- "anyOf": [
- {
- "type": "object",
- "additionalProperties": {
- "type": "string"
- }
- },
- {
- "type": "null"
- }
- ]
- }
+ "$ref": "#/$defs/BazaarPackagesData"
},
"msg": {
"type": "string"
@@ -17634,7 +21537,8 @@
"code": {
"type": "integer",
"enum": [
- -1
+ -1,
+ 1
]
},
"data": {
@@ -17672,11 +21576,11 @@
},
{
"method": "POST",
- "path": "/api/attr/batchSetBlockAttrs",
- "handler": "batchSetBlockAttrs",
+ "path": "/api/bazaar/uninstallBazaarTheme",
+ "handler": "uninstallBazaarTheme",
"body": "json",
"request": {
- "$ref": "#/$defs/BatchSetBlockAttrsRequestInput"
+ "$ref": "#/$defs/UninstallBazaarThemeRequestInput"
},
"response": {
"anyOf": [
@@ -17690,7 +21594,7 @@
]
},
"data": {
- "type": "null"
+ "$ref": "#/$defs/BazaarAppearancePackagesData"
},
"msg": {
"type": "string"
@@ -17709,7 +21613,8 @@
"code": {
"type": "integer",
"enum": [
- -1
+ -1,
+ 1
]
},
"data": {
@@ -17747,11 +21652,11 @@
},
{
"method": "POST",
- "path": "/api/attr/getBlockAttrs",
- "handler": "getBlockAttrs",
+ "path": "/api/bazaar/uninstallBazaarWidget",
+ "handler": "uninstallBazaarWidget",
"body": "json",
"request": {
- "$ref": "#/$defs/BlockIDRequestInput"
+ "$ref": "#/$defs/UninstallBazaarWidgetRequestInput"
},
"response": {
"anyOf": [
@@ -17765,10 +21670,7 @@
]
},
"data": {
- "type": "object",
- "additionalProperties": {
- "type": "string"
- }
+ "$ref": "#/$defs/BazaarPackagesData"
},
"msg": {
"type": "string"
@@ -17787,7 +21689,8 @@
"code": {
"type": "integer",
"enum": [
- -1
+ -1,
+ 1
]
},
"data": {
@@ -17825,11 +21728,11 @@
},
{
"method": "POST",
- "path": "/api/attr/getBookmarkLabels",
- "handler": "getBookmarkLabels",
- "body": "none",
+ "path": "/api/bazaar/updateBazaarPackage",
+ "handler": "updateBazaarPackage",
+ "body": "json",
"request": {
- "$ref": "#/$defs/EmptyRequestInput"
+ "$ref": "#/$defs/UpdateBazaarPackageRequestInput"
},
"response": {
"anyOf": [
@@ -17843,17 +21746,7 @@
]
},
"data": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- {
- "type": "null"
- }
- ]
+ "$ref": "#/$defs/BazaarPackagesData"
},
"msg": {
"type": "string"
@@ -17872,7 +21765,8 @@
"code": {
"type": "integer",
"enum": [
- -1
+ -1,
+ 1
]
},
"data": {
@@ -17910,11 +21804,11 @@
},
{
"method": "POST",
- "path": "/api/attr/resetBlockAttrs",
- "handler": "resetBlockAttrs",
- "body": "none",
+ "path": "/api/block/appendBlock",
+ "handler": "appendBlock",
+ "body": "json",
"request": {
- "$ref": "#/$defs/EmptyRequestInput"
+ "$ref": "#/$defs/AppendBlockRequestInput"
},
"response": {
"anyOf": [
@@ -17928,7 +21822,24 @@
]
},
"data": {
- "type": "null"
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/BlockTransaction"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
"msg": {
"type": "string"
@@ -17985,11 +21896,11 @@
},
{
"method": "POST",
- "path": "/api/attr/setBlockAttrs",
- "handler": "setBlockAttrs",
+ "path": "/api/block/appendDailyNoteBlock",
+ "handler": "appendDailyNoteBlock",
"body": "json",
"request": {
- "$ref": "#/$defs/SetBlockAttrsRequestInput"
+ "$ref": "#/$defs/DailyNoteBlockRequestInput"
},
"response": {
"anyOf": [
@@ -18003,7 +21914,24 @@
]
},
"data": {
- "type": "null"
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/BlockTransaction"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
"msg": {
"type": "string"
@@ -18060,11 +21988,11 @@
},
{
"method": "POST",
- "path": "/api/av/searchAttributeViewNonRelationKey",
- "handler": "searchAttributeViewNonRelationKey",
- "body": "none",
+ "path": "/api/block/appendHeadingChildren",
+ "handler": "appendHeadingChildren",
+ "body": "json",
"request": {
- "$ref": "#/$defs/EmptyRequestInput"
+ "$ref": "#/$defs/AppendHeadingChildrenRequestInput"
},
"response": {
"anyOf": [
@@ -18135,11 +22063,11 @@
},
{
"method": "POST",
- "path": "/api/bazaar/batchUpdatePackage",
- "handler": "batchUpdatePackage",
+ "path": "/api/block/batchAppendBlock",
+ "handler": "batchAppendBlock",
"body": "json",
"request": {
- "$ref": "#/$defs/BatchUpdatePackageRequestInput"
+ "$ref": "#/$defs/BatchParentBlockRequestInput"
},
"response": {
"anyOf": [
@@ -18153,7 +22081,24 @@
]
},
"data": {
- "type": "null"
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/BlockTransaction"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
"msg": {
"type": "string"
@@ -18172,8 +22117,7 @@
"code": {
"type": "integer",
"enum": [
- -1,
- 1
+ -1
]
},
"data": {
@@ -18211,11 +22155,11 @@
},
{
"method": "POST",
- "path": "/api/bazaar/getBazaarIcon",
- "handler": "getBazaarIcon",
+ "path": "/api/block/batchInsertBlock",
+ "handler": "batchInsertBlock",
"body": "json",
"request": {
- "$ref": "#/$defs/GetBazaarIconRequestInput"
+ "$ref": "#/$defs/BatchInsertBlockRequestInput"
},
"response": {
"anyOf": [
@@ -18229,7 +22173,24 @@
]
},
"data": {
- "$ref": "#/$defs/BazaarPackagesData"
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/BlockTransaction"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
"msg": {
"type": "string"
@@ -18248,8 +22209,7 @@
"code": {
"type": "integer",
"enum": [
- -1,
- 1
+ -1
]
},
"data": {
@@ -18287,11 +22247,11 @@
},
{
"method": "POST",
- "path": "/api/bazaar/getBazaarPackage",
- "handler": "getBazaarPackage",
+ "path": "/api/block/batchPrependBlock",
+ "handler": "batchPrependBlock",
"body": "json",
"request": {
- "$ref": "#/$defs/GetBazaarPackageRequestInput"
+ "$ref": "#/$defs/BatchParentBlockRequestInput"
},
"response": {
"anyOf": [
@@ -18305,7 +22265,24 @@
]
},
"data": {
- "$ref": "#/$defs/BazaarPackageDetail"
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/BlockTransaction"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
"msg": {
"type": "string"
@@ -18324,8 +22301,7 @@
"code": {
"type": "integer",
"enum": [
- -1,
- 1
+ -1
]
},
"data": {
@@ -18363,11 +22339,11 @@
},
{
"method": "POST",
- "path": "/api/bazaar/getBazaarPackageREADME",
- "handler": "getBazaarPackageREADME",
+ "path": "/api/block/batchUpdateBlock",
+ "handler": "batchUpdateBlock",
"body": "json",
"request": {
- "$ref": "#/$defs/GetBazaarPackageREADMERequestInput"
+ "$ref": "#/$defs/BatchUpdateBlockRequestInput"
},
"response": {
"anyOf": [
@@ -18381,7 +22357,24 @@
]
},
"data": {
- "$ref": "#/$defs/BazaarREADMEData"
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/BlockTransaction"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
"msg": {
"type": "string"
@@ -18400,8 +22393,7 @@
"code": {
"type": "integer",
"enum": [
- -1,
- 1
+ -1
]
},
"data": {
@@ -18439,11 +22431,11 @@
},
{
"method": "POST",
- "path": "/api/bazaar/getBazaarPackageRating",
- "handler": "getBazaarPackageRating",
+ "path": "/api/block/batchUpdateTaskListItemMarker",
+ "handler": "batchUpdateTaskListItemMarker",
"body": "json",
"request": {
- "$ref": "#/$defs/GetBazaarPackageRatingRequestInput"
+ "$ref": "#/$defs/BatchTaskListMarkerRequestInput"
},
"response": {
"anyOf": [
@@ -18457,7 +22449,24 @@
]
},
"data": {
- "$ref": "#/$defs/BazaarRatingResult"
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/BlockTransaction"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
"msg": {
"type": "string"
@@ -18476,8 +22485,7 @@
"code": {
"type": "integer",
"enum": [
- -1,
- 1
+ -1
]
},
"data": {
@@ -18496,9 +22504,6 @@
},
{
"type": "null"
- },
- {
- "$ref": "#/$defs/BazaarRatingResult"
}
]
},
@@ -18518,11 +22523,11 @@
},
{
"method": "POST",
- "path": "/api/bazaar/getBazaarPackageRatings",
- "handler": "getBazaarPackageRatings",
+ "path": "/api/block/checkBlockExist",
+ "handler": "checkBlockExist",
"body": "json",
"request": {
- "$ref": "#/$defs/GetBazaarPackageRatingsRequestInput"
+ "$ref": "#/$defs/BlockQueryRequestInput"
},
"response": {
"anyOf": [
@@ -18536,7 +22541,7 @@
]
},
"data": {
- "$ref": "#/$defs/BazaarRatingsData"
+ "type": "boolean"
},
"msg": {
"type": "string"
@@ -18555,8 +22560,7 @@
"code": {
"type": "integer",
"enum": [
- -1,
- 1
+ -1
]
},
"data": {
@@ -18594,11 +22598,11 @@
},
{
"method": "POST",
- "path": "/api/bazaar/getBazaarPackageUserRatings",
- "handler": "getBazaarPackageUserRatings",
+ "path": "/api/block/checkBlockFold",
+ "handler": "checkBlockFold",
"body": "json",
"request": {
- "$ref": "#/$defs/GetBazaarPackageUserRatingsRequestInput"
+ "$ref": "#/$defs/BlockQueryRequestInput"
},
"response": {
"anyOf": [
@@ -18612,7 +22616,7 @@
]
},
"data": {
- "$ref": "#/$defs/BazaarUserRatingsResult"
+ "$ref": "#/$defs/BlockFoldData"
},
"msg": {
"type": "string"
@@ -18631,8 +22635,7 @@
"code": {
"type": "integer",
"enum": [
- -1,
- 1
+ -1
]
},
"data": {
@@ -18651,9 +22654,6 @@
},
{
"type": "null"
- },
- {
- "$ref": "#/$defs/BazaarUserRatingsResult"
}
]
},
@@ -18673,11 +22673,11 @@
},
{
"method": "POST",
- "path": "/api/bazaar/getBazaarPlugin",
- "handler": "getBazaarPlugin",
+ "path": "/api/block/checkBlockRef",
+ "handler": "checkBlockRef",
"body": "json",
"request": {
- "$ref": "#/$defs/GetBazaarPluginRequestInput"
+ "$ref": "#/$defs/CheckBlockRefRequestInput"
},
"response": {
"anyOf": [
@@ -18691,7 +22691,7 @@
]
},
"data": {
- "$ref": "#/$defs/BazaarPackagesData"
+ "type": "boolean"
},
"msg": {
"type": "string"
@@ -18710,8 +22710,7 @@
"code": {
"type": "integer",
"enum": [
- -1,
- 1
+ -1
]
},
"data": {
@@ -18730,6 +22729,9 @@
},
{
"type": "null"
+ },
+ {
+ "type": "boolean"
}
]
},
@@ -18749,11 +22751,11 @@
},
{
"method": "POST",
- "path": "/api/bazaar/getBazaarTemplate",
- "handler": "getBazaarTemplate",
+ "path": "/api/block/checkBlocksExist",
+ "handler": "checkBlocksExist",
"body": "json",
"request": {
- "$ref": "#/$defs/GetBazaarTemplateRequestInput"
+ "$ref": "#/$defs/CheckBlocksExistRequestInput"
},
"response": {
"anyOf": [
@@ -18767,7 +22769,17 @@
]
},
"data": {
- "$ref": "#/$defs/BazaarPackagesData"
+ "anyOf": [
+ {
+ "type": "object",
+ "additionalProperties": {
+ "type": "boolean"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
"msg": {
"type": "string"
@@ -18786,8 +22798,7 @@
"code": {
"type": "integer",
"enum": [
- -1,
- 1
+ -1
]
},
"data": {
@@ -18825,11 +22836,11 @@
},
{
"method": "POST",
- "path": "/api/bazaar/getBazaarTheme",
- "handler": "getBazaarTheme",
+ "path": "/api/block/deleteBlock",
+ "handler": "deleteBlock",
"body": "json",
"request": {
- "$ref": "#/$defs/GetBazaarThemeRequestInput"
+ "$ref": "#/$defs/DeleteBlockRequestInput"
},
"response": {
"anyOf": [
@@ -18843,7 +22854,24 @@
]
},
"data": {
- "$ref": "#/$defs/BazaarPackagesData"
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/BlockTransaction"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
"msg": {
"type": "string"
@@ -18862,8 +22890,7 @@
"code": {
"type": "integer",
"enum": [
- -1,
- 1
+ -1
]
},
"data": {
@@ -18901,11 +22928,11 @@
},
{
"method": "POST",
- "path": "/api/bazaar/getBazaarWidget",
- "handler": "getBazaarWidget",
+ "path": "/api/block/foldBlock",
+ "handler": "foldBlock",
"body": "json",
"request": {
- "$ref": "#/$defs/GetBazaarWidgetRequestInput"
+ "$ref": "#/$defs/BlockIDRequestInput"
},
"response": {
"anyOf": [
@@ -18919,7 +22946,7 @@
]
},
"data": {
- "$ref": "#/$defs/BazaarPackagesData"
+ "type": "null"
},
"msg": {
"type": "string"
@@ -18938,8 +22965,7 @@
"code": {
"type": "integer",
"enum": [
- -1,
- 1
+ -1
]
},
"data": {
@@ -18977,11 +23003,11 @@
},
{
"method": "POST",
- "path": "/api/bazaar/getInstalledIcon",
- "handler": "getInstalledIcon",
+ "path": "/api/block/getBlockBreadcrumb",
+ "handler": "getBlockBreadcrumb",
"body": "json",
"request": {
- "$ref": "#/$defs/GetInstalledIconRequestInput"
+ "$ref": "#/$defs/BlockBreadcrumbRequestInput"
},
"response": {
"anyOf": [
@@ -18995,7 +23021,24 @@
]
},
"data": {
- "$ref": "#/$defs/BazaarPackagesData"
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/BlockPath"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
"msg": {
"type": "string"
@@ -19014,8 +23057,7 @@
"code": {
"type": "integer",
"enum": [
- -1,
- 1
+ -1
]
},
"data": {
@@ -19053,11 +23095,11 @@
},
{
"method": "POST",
- "path": "/api/bazaar/getInstalledPackageSize",
- "handler": "getInstalledPackageSize",
+ "path": "/api/block/getBlockBreadcrumbChildren",
+ "handler": "getBlockBreadcrumbChildren",
"body": "json",
"request": {
- "$ref": "#/$defs/GetInstalledPackageSizeRequestInput"
+ "$ref": "#/$defs/BlockBreadcrumbChildrenRequestInput"
},
"response": {
"anyOf": [
@@ -19071,7 +23113,14 @@
]
},
"data": {
- "$ref": "#/$defs/BazaarPackageSizeData"
+ "anyOf": [
+ {
+ "$ref": "#/$defs/BlockBreadcrumbChildren"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
"msg": {
"type": "string"
@@ -19090,8 +23139,7 @@
"code": {
"type": "integer",
"enum": [
- -1,
- 1
+ -1
]
},
"data": {
@@ -19129,11 +23177,11 @@
},
{
"method": "POST",
- "path": "/api/bazaar/getInstalledPlugin",
- "handler": "getInstalledPlugin",
+ "path": "/api/block/getBlockDOM",
+ "handler": "getBlockDOM",
"body": "json",
"request": {
- "$ref": "#/$defs/GetInstalledPluginRequestInput"
+ "$ref": "#/$defs/BlockQueryRequestInput"
},
"response": {
"anyOf": [
@@ -19147,7 +23195,7 @@
]
},
"data": {
- "$ref": "#/$defs/BazaarPackagesData"
+ "$ref": "#/$defs/BlockDOMData"
},
"msg": {
"type": "string"
@@ -19166,8 +23214,7 @@
"code": {
"type": "integer",
"enum": [
- -1,
- 1
+ -1
]
},
"data": {
@@ -19205,11 +23252,11 @@
},
{
"method": "POST",
- "path": "/api/bazaar/getInstalledTemplate",
- "handler": "getInstalledTemplate",
+ "path": "/api/block/getBlockDOMWithEmbed",
+ "handler": "getBlockDOMWithEmbed",
"body": "json",
"request": {
- "$ref": "#/$defs/GetInstalledTemplateRequestInput"
+ "$ref": "#/$defs/BlockQueryRequestInput"
},
"response": {
"anyOf": [
@@ -19223,7 +23270,7 @@
]
},
"data": {
- "$ref": "#/$defs/BazaarPackagesData"
+ "$ref": "#/$defs/BlockDOMData"
},
"msg": {
"type": "string"
@@ -19242,8 +23289,7 @@
"code": {
"type": "integer",
"enum": [
- -1,
- 1
+ -1
]
},
"data": {
@@ -19281,11 +23327,11 @@
},
{
"method": "POST",
- "path": "/api/bazaar/getInstalledTheme",
- "handler": "getInstalledTheme",
+ "path": "/api/block/getBlockDOMs",
+ "handler": "getBlockDOMs",
"body": "json",
"request": {
- "$ref": "#/$defs/GetInstalledThemeRequestInput"
+ "$ref": "#/$defs/BlocksQueryRequestInput"
},
"response": {
"anyOf": [
@@ -19299,7 +23345,17 @@
]
},
"data": {
- "$ref": "#/$defs/BazaarPackagesData"
+ "anyOf": [
+ {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
"msg": {
"type": "string"
@@ -19318,8 +23374,7 @@
"code": {
"type": "integer",
"enum": [
- -1,
- 1
+ -1
]
},
"data": {
@@ -19357,11 +23412,11 @@
},
{
"method": "POST",
- "path": "/api/bazaar/getInstalledWidget",
- "handler": "getInstalledWidget",
+ "path": "/api/block/getBlockDOMsWithEmbed",
+ "handler": "getBlockDOMsWithEmbed",
"body": "json",
"request": {
- "$ref": "#/$defs/GetInstalledWidgetRequestInput"
+ "$ref": "#/$defs/BlocksQueryRequestInput"
},
"response": {
"anyOf": [
@@ -19375,7 +23430,17 @@
]
},
"data": {
- "$ref": "#/$defs/BazaarPackagesData"
+ "anyOf": [
+ {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
"msg": {
"type": "string"
@@ -19394,8 +23459,7 @@
"code": {
"type": "integer",
"enum": [
- -1,
- 1
+ -1
]
},
"data": {
@@ -19433,11 +23497,11 @@
},
{
"method": "POST",
- "path": "/api/bazaar/getUpdatedPackage",
- "handler": "getUpdatedPackage",
+ "path": "/api/block/getBlockDefIDsByRefText",
+ "handler": "getBlockDefIDsByRefText",
"body": "json",
"request": {
- "$ref": "#/$defs/GetUpdatedPackageRequestInput"
+ "$ref": "#/$defs/RefTextQueryRequestInput"
},
"response": {
"anyOf": [
@@ -19451,7 +23515,7 @@
]
},
"data": {
- "$ref": "#/$defs/BazaarUpdatedData"
+ "$ref": "#/$defs/RefDefsData"
},
"msg": {
"type": "string"
@@ -19470,8 +23534,7 @@
"code": {
"type": "integer",
"enum": [
- -1,
- 1
+ -1
]
},
"data": {
@@ -19509,11 +23572,11 @@
},
{
"method": "POST",
- "path": "/api/bazaar/installBazaarIcon",
- "handler": "installBazaarIcon",
+ "path": "/api/block/getBlockIndex",
+ "handler": "getBlockIndex",
"body": "json",
"request": {
- "$ref": "#/$defs/InstallBazaarIconRequestInput"
+ "$ref": "#/$defs/BlockQueryRequestInput"
},
"response": {
"anyOf": [
@@ -19527,7 +23590,7 @@
]
},
"data": {
- "$ref": "#/$defs/BazaarAppearancePackagesData"
+ "type": "integer"
},
"msg": {
"type": "string"
@@ -19546,8 +23609,7 @@
"code": {
"type": "integer",
"enum": [
- -1,
- 1
+ -1
]
},
"data": {
@@ -19585,11 +23647,11 @@
},
{
"method": "POST",
- "path": "/api/bazaar/installBazaarPlugin",
- "handler": "installBazaarPlugin",
+ "path": "/api/block/getBlockInfo",
+ "handler": "getBlockInfo",
"body": "json",
"request": {
- "$ref": "#/$defs/InstallBazaarPluginRequestInput"
+ "$ref": "#/$defs/BlockInfoRequestInput"
},
"response": {
"anyOf": [
@@ -19603,7 +23665,7 @@
]
},
"data": {
- "$ref": "#/$defs/BazaarPackagesData"
+ "$ref": "#/$defs/BlockInfoData"
},
"msg": {
"type": "string"
@@ -19623,7 +23685,7 @@
"type": "integer",
"enum": [
-1,
- 1
+ 3
]
},
"data": {
@@ -19642,6 +23704,9 @@
},
{
"type": "null"
+ },
+ {
+ "type": "string"
}
]
},
@@ -19661,11 +23726,11 @@
},
{
"method": "POST",
- "path": "/api/bazaar/installBazaarTemplate",
- "handler": "installBazaarTemplate",
+ "path": "/api/block/getBlockKramdown",
+ "handler": "getBlockKramdown",
"body": "json",
"request": {
- "$ref": "#/$defs/InstallBazaarTemplateRequestInput"
+ "$ref": "#/$defs/BlockKramdownRequestInput"
},
"response": {
"anyOf": [
@@ -19679,7 +23744,7 @@
]
},
"data": {
- "$ref": "#/$defs/BazaarPackagesData"
+ "$ref": "#/$defs/BlockKramdownData"
},
"msg": {
"type": "string"
@@ -19698,8 +23763,7 @@
"code": {
"type": "integer",
"enum": [
- -1,
- 1
+ -1
]
},
"data": {
@@ -19737,11 +23801,11 @@
},
{
"method": "POST",
- "path": "/api/bazaar/installBazaarTheme",
- "handler": "installBazaarTheme",
+ "path": "/api/block/getBlockKramdowns",
+ "handler": "getBlockKramdowns",
"body": "json",
"request": {
- "$ref": "#/$defs/InstallBazaarThemeRequestInput"
+ "$ref": "#/$defs/BlocksKramdownRequestInput"
},
"response": {
"anyOf": [
@@ -19754,9 +23818,19 @@
0
]
},
- "data": {
- "$ref": "#/$defs/BazaarAppearancePackagesData"
- },
+ "data": {
+ "anyOf": [
+ {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
"msg": {
"type": "string"
}
@@ -19774,8 +23848,7 @@
"code": {
"type": "integer",
"enum": [
- -1,
- 1
+ -1
]
},
"data": {
@@ -19813,11 +23886,11 @@
},
{
"method": "POST",
- "path": "/api/bazaar/installBazaarWidget",
- "handler": "installBazaarWidget",
+ "path": "/api/block/getBlockRelevantIDs",
+ "handler": "getBlockRelevantIDs",
"body": "json",
"request": {
- "$ref": "#/$defs/InstallBazaarWidgetRequestInput"
+ "$ref": "#/$defs/BlockQueryRequestInput"
},
"response": {
"anyOf": [
@@ -19831,7 +23904,7 @@
]
},
"data": {
- "$ref": "#/$defs/BazaarPackagesData"
+ "$ref": "#/$defs/BlockRelevantData"
},
"msg": {
"type": "string"
@@ -19850,8 +23923,7 @@
"code": {
"type": "integer",
"enum": [
- -1,
- 1
+ -1
]
},
"data": {
@@ -19889,11 +23961,11 @@
},
{
"method": "POST",
- "path": "/api/bazaar/installLocalBazaarPackage",
- "handler": "installLocalBazaarPackage",
- "body": "multipart",
+ "path": "/api/block/getBlockSiblingID",
+ "handler": "getBlockSiblingID",
+ "body": "json",
"request": {
- "$ref": "#/$defs/InstallLocalBazaarPackageRequestInput"
+ "$ref": "#/$defs/BlockQueryRequestInput"
},
"response": {
"anyOf": [
@@ -19907,7 +23979,7 @@
]
},
"data": {
- "$ref": "#/$defs/BazaarLocalInstallResult"
+ "$ref": "#/$defs/BlockSiblingData"
},
"msg": {
"type": "string"
@@ -19926,8 +23998,7 @@
"code": {
"type": "integer",
"enum": [
- -1,
- 1
+ -1
]
},
"data": {
@@ -19946,9 +24017,6 @@
},
{
"type": "null"
- },
- {
- "$ref": "#/$defs/BazaarLocalInstallResult"
}
]
},
@@ -19968,11 +24036,11 @@
},
{
"method": "POST",
- "path": "/api/bazaar/setBazaarPackageRating",
- "handler": "setBazaarPackageRating",
+ "path": "/api/block/getBlockTreeInfos",
+ "handler": "getBlockTreeInfos",
"body": "json",
"request": {
- "$ref": "#/$defs/SetBazaarPackageRatingRequestInput"
+ "$ref": "#/$defs/BlocksQueryRequestInput"
},
"response": {
"anyOf": [
@@ -19986,7 +24054,24 @@
]
},
"data": {
- "$ref": "#/$defs/BazaarRatingResult"
+ "anyOf": [
+ {
+ "type": "object",
+ "additionalProperties": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/BlockTreeInfo"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
"msg": {
"type": "string"
@@ -20005,8 +24090,7 @@
"code": {
"type": "integer",
"enum": [
- -1,
- 1
+ -1
]
},
"data": {
@@ -20025,9 +24109,6 @@
},
{
"type": "null"
- },
- {
- "$ref": "#/$defs/BazaarRatingResult"
}
]
},
@@ -20047,11 +24128,11 @@
},
{
"method": "POST",
- "path": "/api/bazaar/uninstallBazaarIcon",
- "handler": "uninstallBazaarIcon",
+ "path": "/api/block/getBlocksIndexes",
+ "handler": "getBlocksIndexes",
"body": "json",
"request": {
- "$ref": "#/$defs/UninstallBazaarIconRequestInput"
+ "$ref": "#/$defs/BlocksQueryRequestInput"
},
"response": {
"anyOf": [
@@ -20065,7 +24146,17 @@
]
},
"data": {
- "$ref": "#/$defs/BazaarAppearancePackagesData"
+ "anyOf": [
+ {
+ "type": "object",
+ "additionalProperties": {
+ "type": "integer"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
"msg": {
"type": "string"
@@ -20084,8 +24175,7 @@
"code": {
"type": "integer",
"enum": [
- -1,
- 1
+ -1
]
},
"data": {
@@ -20123,11 +24213,11 @@
},
{
"method": "POST",
- "path": "/api/bazaar/uninstallBazaarPlugin",
- "handler": "uninstallBazaarPlugin",
+ "path": "/api/block/getBlocksWordCount",
+ "handler": "getBlocksWordCount",
"body": "json",
"request": {
- "$ref": "#/$defs/UninstallBazaarPluginRequestInput"
+ "$ref": "#/$defs/BlocksWordCountRequestInput"
},
"response": {
"anyOf": [
@@ -20141,7 +24231,7 @@
]
},
"data": {
- "$ref": "#/$defs/BazaarPackagesData"
+ "$ref": "#/$defs/WordCountData"
},
"msg": {
"type": "string"
@@ -20160,8 +24250,7 @@
"code": {
"type": "integer",
"enum": [
- -1,
- 1
+ -1
]
},
"data": {
@@ -20199,11 +24288,11 @@
},
{
"method": "POST",
- "path": "/api/bazaar/uninstallBazaarTemplate",
- "handler": "uninstallBazaarTemplate",
+ "path": "/api/block/getChildBlocks",
+ "handler": "getChildBlocks",
"body": "json",
"request": {
- "$ref": "#/$defs/UninstallBazaarTemplateRequestInput"
+ "$ref": "#/$defs/BlockQueryRequestInput"
},
"response": {
"anyOf": [
@@ -20217,7 +24306,17 @@
]
},
"data": {
- "$ref": "#/$defs/BazaarPackagesData"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/ChildBlock"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
"msg": {
"type": "string"
@@ -20236,8 +24335,7 @@
"code": {
"type": "integer",
"enum": [
- -1,
- 1
+ -1
]
},
"data": {
@@ -20275,11 +24373,11 @@
},
{
"method": "POST",
- "path": "/api/bazaar/uninstallBazaarTheme",
- "handler": "uninstallBazaarTheme",
+ "path": "/api/block/getContentWordCount",
+ "handler": "getContentWordCount",
"body": "json",
"request": {
- "$ref": "#/$defs/UninstallBazaarThemeRequestInput"
+ "$ref": "#/$defs/ContentWordCountRequestInput"
},
"response": {
"anyOf": [
@@ -20293,7 +24391,7 @@
]
},
"data": {
- "$ref": "#/$defs/BazaarAppearancePackagesData"
+ "$ref": "#/$defs/WordCountData"
},
"msg": {
"type": "string"
@@ -20312,8 +24410,7 @@
"code": {
"type": "integer",
"enum": [
- -1,
- 1
+ -1
]
},
"data": {
@@ -20351,11 +24448,11 @@
},
{
"method": "POST",
- "path": "/api/bazaar/uninstallBazaarWidget",
- "handler": "uninstallBazaarWidget",
+ "path": "/api/block/getDOMText",
+ "handler": "getDOMText",
"body": "json",
"request": {
- "$ref": "#/$defs/UninstallBazaarWidgetRequestInput"
+ "$ref": "#/$defs/DOMTextRequestInput"
},
"response": {
"anyOf": [
@@ -20369,7 +24466,7 @@
]
},
"data": {
- "$ref": "#/$defs/BazaarPackagesData"
+ "type": "string"
},
"msg": {
"type": "string"
@@ -20388,8 +24485,7 @@
"code": {
"type": "integer",
"enum": [
- -1,
- 1
+ -1
]
},
"data": {
@@ -20427,11 +24523,11 @@
},
{
"method": "POST",
- "path": "/api/bazaar/updateBazaarPackage",
- "handler": "updateBazaarPackage",
+ "path": "/api/block/getDocBlocksOrders",
+ "handler": "getDocBlocksOrders",
"body": "json",
"request": {
- "$ref": "#/$defs/UpdateBazaarPackageRequestInput"
+ "$ref": "#/$defs/DocOrdersRequestInput"
},
"response": {
"anyOf": [
@@ -20445,7 +24541,17 @@
]
},
"data": {
- "$ref": "#/$defs/BazaarPackagesData"
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
"msg": {
"type": "string"
@@ -20464,8 +24570,7 @@
"code": {
"type": "integer",
"enum": [
- -1,
- 1
+ -1
]
},
"data": {
@@ -20503,11 +24608,11 @@
},
{
"method": "POST",
- "path": "/api/block/appendBlock",
- "handler": "appendBlock",
- "body": "json",
+ "path": "/api/block/getDocHeadingLevelTransaction",
+ "handler": "getDocHeadingLevelTransaction",
+ "body": "structJSON",
"request": {
- "$ref": "#/$defs/AppendBlockRequestInput"
+ "$ref": "#/$defs/DocHeadingLevelRequestInput"
},
"response": {
"anyOf": [
@@ -20523,17 +24628,7 @@
"data": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/BlockTransaction"
- },
- {
- "type": "null"
- }
- ]
- }
+ "$ref": "#/$defs/DocHeadingLevelData"
},
{
"type": "null"
@@ -20595,11 +24690,11 @@
},
{
"method": "POST",
- "path": "/api/block/appendDailyNoteBlock",
- "handler": "appendDailyNoteBlock",
+ "path": "/api/block/getDocInfo",
+ "handler": "getDocInfo",
"body": "json",
"request": {
- "$ref": "#/$defs/DailyNoteBlockRequestInput"
+ "$ref": "#/$defs/BlockQueryRequestInput"
},
"response": {
"anyOf": [
@@ -20615,17 +24710,7 @@
"data": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/BlockTransaction"
- },
- {
- "type": "null"
- }
- ]
- }
+ "$ref": "#/$defs/DocInfo"
},
{
"type": "null"
@@ -20687,11 +24772,11 @@
},
{
"method": "POST",
- "path": "/api/block/appendHeadingChildren",
- "handler": "appendHeadingChildren",
+ "path": "/api/block/getDocsInfo",
+ "handler": "getDocsInfo",
"body": "json",
"request": {
- "$ref": "#/$defs/AppendHeadingChildrenRequestInput"
+ "$ref": "#/$defs/DocsInfoRequestInput"
},
"response": {
"anyOf": [
@@ -20705,7 +24790,24 @@
]
},
"data": {
- "type": "null"
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/DocInfo"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
"msg": {
"type": "string"
@@ -20762,11 +24864,11 @@
},
{
"method": "POST",
- "path": "/api/block/batchAppendBlock",
- "handler": "batchAppendBlock",
+ "path": "/api/block/getHeadingChildrenDOM",
+ "handler": "getHeadingChildrenDOM",
"body": "json",
"request": {
- "$ref": "#/$defs/BatchParentBlockRequestInput"
+ "$ref": "#/$defs/HeadingChildrenRequestInput"
},
"response": {
"anyOf": [
@@ -20780,24 +24882,7 @@
]
},
"data": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/BlockTransaction"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- {
- "type": "null"
- }
- ]
+ "type": "string"
},
"msg": {
"type": "string"
@@ -20854,11 +24939,11 @@
},
{
"method": "POST",
- "path": "/api/block/batchInsertBlock",
- "handler": "batchInsertBlock",
+ "path": "/api/block/getHeadingChildrenIDs",
+ "handler": "getHeadingChildrenIDs",
"body": "json",
"request": {
- "$ref": "#/$defs/BatchInsertBlockRequestInput"
+ "$ref": "#/$defs/BlockIDRequestInput"
},
"response": {
"anyOf": [
@@ -20876,14 +24961,7 @@
{
"type": "array",
"items": {
- "anyOf": [
- {
- "$ref": "#/$defs/BlockTransaction"
- },
- {
- "type": "null"
- }
- ]
+ "type": "string"
}
},
{
@@ -20946,11 +25024,11 @@
},
{
"method": "POST",
- "path": "/api/block/batchPrependBlock",
- "handler": "batchPrependBlock",
+ "path": "/api/block/getHeadingDeleteTransaction",
+ "handler": "getHeadingDeleteTransaction",
"body": "json",
"request": {
- "$ref": "#/$defs/BatchParentBlockRequestInput"
+ "$ref": "#/$defs/BlockIDRequestInput"
},
"response": {
"anyOf": [
@@ -20966,17 +25044,7 @@
"data": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/BlockTransaction"
- },
- {
- "type": "null"
- }
- ]
- }
+ "$ref": "#/$defs/BlockTransaction"
},
{
"type": "null"
@@ -21038,11 +25106,11 @@
},
{
"method": "POST",
- "path": "/api/block/batchUpdateBlock",
- "handler": "batchUpdateBlock",
+ "path": "/api/block/getHeadingFoldTransaction",
+ "handler": "getHeadingFoldTransaction",
"body": "json",
"request": {
- "$ref": "#/$defs/BatchUpdateBlockRequestInput"
+ "$ref": "#/$defs/HeadingFoldRequestInput"
},
"response": {
"anyOf": [
@@ -21058,17 +25126,7 @@
"data": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/BlockTransaction"
- },
- {
- "type": "null"
- }
- ]
- }
+ "$ref": "#/$defs/BlockTransaction"
},
{
"type": "null"
@@ -21130,11 +25188,11 @@
},
{
"method": "POST",
- "path": "/api/block/batchUpdateTaskListItemMarker",
- "handler": "batchUpdateTaskListItemMarker",
+ "path": "/api/block/getHeadingInsertTransaction",
+ "handler": "getHeadingInsertTransaction",
"body": "json",
"request": {
- "$ref": "#/$defs/BatchTaskListMarkerRequestInput"
+ "$ref": "#/$defs/BlockIDRequestInput"
},
"response": {
"anyOf": [
@@ -21150,17 +25208,7 @@
"data": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/BlockTransaction"
- },
- {
- "type": "null"
- }
- ]
- }
+ "$ref": "#/$defs/BlockTransaction"
},
{
"type": "null"
@@ -21222,11 +25270,11 @@
},
{
"method": "POST",
- "path": "/api/block/checkBlockExist",
- "handler": "checkBlockExist",
+ "path": "/api/block/getHeadingLevelTransaction",
+ "handler": "getHeadingLevelTransaction",
"body": "json",
"request": {
- "$ref": "#/$defs/BlockQueryRequestInput"
+ "$ref": "#/$defs/HeadingLevelRequestInput"
},
"response": {
"anyOf": [
@@ -21240,7 +25288,14 @@
]
},
"data": {
- "type": "boolean"
+ "anyOf": [
+ {
+ "$ref": "#/$defs/BlockTransaction"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
"msg": {
"type": "string"
@@ -21297,8 +25352,8 @@
},
{
"method": "POST",
- "path": "/api/block/checkBlockFold",
- "handler": "checkBlockFold",
+ "path": "/api/block/getOrderedListContinueStart",
+ "handler": "getOrderedListContinueStart",
"body": "json",
"request": {
"$ref": "#/$defs/BlockQueryRequestInput"
@@ -21315,7 +25370,7 @@
]
},
"data": {
- "$ref": "#/$defs/BlockFoldData"
+ "$ref": "#/$defs/OrderedListStartData"
},
"msg": {
"type": "string"
@@ -21372,11 +25427,11 @@
},
{
"method": "POST",
- "path": "/api/block/checkBlockRef",
- "handler": "checkBlockRef",
- "body": "json",
+ "path": "/api/block/getRecentUpdatedBlocks",
+ "handler": "getRecentUpdatedBlocks",
+ "body": "none",
"request": {
- "$ref": "#/$defs/CheckBlockRefRequestInput"
+ "$ref": "#/$defs/EmptyRequestInput"
},
"response": {
"anyOf": [
@@ -21390,7 +25445,24 @@
]
},
"data": {
- "type": "boolean"
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SearchBlock"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
"msg": {
"type": "string"
@@ -21428,9 +25500,6 @@
},
{
"type": "null"
- },
- {
- "type": "boolean"
}
]
},
@@ -21450,11 +25519,11 @@
},
{
"method": "POST",
- "path": "/api/block/checkBlocksExist",
- "handler": "checkBlocksExist",
+ "path": "/api/block/getRefIDs",
+ "handler": "getRefIDs",
"body": "json",
"request": {
- "$ref": "#/$defs/CheckBlocksExistRequestInput"
+ "$ref": "#/$defs/RefIDsRequestInput"
},
"response": {
"anyOf": [
@@ -21468,17 +25537,7 @@
]
},
"data": {
- "anyOf": [
- {
- "type": "object",
- "additionalProperties": {
- "type": "boolean"
- }
- },
- {
- "type": "null"
- }
- ]
+ "$ref": "#/$defs/RefIDsData"
},
"msg": {
"type": "string"
@@ -21535,11 +25594,11 @@
},
{
"method": "POST",
- "path": "/api/block/deleteBlock",
- "handler": "deleteBlock",
+ "path": "/api/block/getRefIDsByFileAnnotationID",
+ "handler": "getRefIDsByFileAnnotationID",
"body": "json",
"request": {
- "$ref": "#/$defs/DeleteBlockRequestInput"
+ "$ref": "#/$defs/FileAnnotationRefRequestInput"
},
"response": {
"anyOf": [
@@ -21553,24 +25612,7 @@
]
},
"data": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/BlockTransaction"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- {
- "type": "null"
- }
- ]
+ "$ref": "#/$defs/RefDefsData"
},
"msg": {
"type": "string"
@@ -21627,11 +25669,11 @@
},
{
"method": "POST",
- "path": "/api/block/foldBlock",
- "handler": "foldBlock",
+ "path": "/api/block/getRefText",
+ "handler": "getRefText",
"body": "json",
"request": {
- "$ref": "#/$defs/BlockIDRequestInput"
+ "$ref": "#/$defs/BlockQueryRequestInput"
},
"response": {
"anyOf": [
@@ -21645,7 +25687,7 @@
]
},
"data": {
- "type": "null"
+ "type": "string"
},
"msg": {
"type": "string"
@@ -21702,11 +25744,11 @@
},
{
"method": "POST",
- "path": "/api/block/getBlockBreadcrumb",
- "handler": "getBlockBreadcrumb",
+ "path": "/api/block/getTailChildBlocks",
+ "handler": "getTailChildBlocks",
"body": "json",
"request": {
- "$ref": "#/$defs/BlockBreadcrumbRequestInput"
+ "$ref": "#/$defs/TailChildBlocksRequestInput"
},
"response": {
"anyOf": [
@@ -21720,24 +25762,17 @@
]
},
"data": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/BlockPath"
- },
- {
- "type": "null"
- }
- ]
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/ChildBlock"
+ },
+ {
+ "type": "null"
}
- },
- {
- "type": "null"
- }
- ]
+ ]
+ }
},
"msg": {
"type": "string"
@@ -21794,11 +25829,11 @@
},
{
"method": "POST",
- "path": "/api/block/getBlockBreadcrumbChildren",
- "handler": "getBlockBreadcrumbChildren",
+ "path": "/api/block/getTreeStat",
+ "handler": "getTreeStat",
"body": "json",
"request": {
- "$ref": "#/$defs/BlockBreadcrumbChildrenRequestInput"
+ "$ref": "#/$defs/TreeStatRequestInput"
},
"response": {
"anyOf": [
@@ -21812,14 +25847,7 @@
]
},
"data": {
- "anyOf": [
- {
- "$ref": "#/$defs/BlockBreadcrumbChildren"
- },
- {
- "type": "null"
- }
- ]
+ "$ref": "#/$defs/TreeStatData"
},
"msg": {
"type": "string"
@@ -21876,8 +25904,8 @@
},
{
"method": "POST",
- "path": "/api/block/getBlockDOM",
- "handler": "getBlockDOM",
+ "path": "/api/block/getUnfoldedParentID",
+ "handler": "getUnfoldedParentID",
"body": "json",
"request": {
"$ref": "#/$defs/BlockQueryRequestInput"
@@ -21894,7 +25922,7 @@
]
},
"data": {
- "$ref": "#/$defs/BlockDOMData"
+ "$ref": "#/$defs/UnfoldedParentData"
},
"msg": {
"type": "string"
@@ -21951,11 +25979,11 @@
},
{
"method": "POST",
- "path": "/api/block/getBlockDOMWithEmbed",
- "handler": "getBlockDOMWithEmbed",
+ "path": "/api/block/insertBlock",
+ "handler": "insertBlock",
"body": "json",
"request": {
- "$ref": "#/$defs/BlockQueryRequestInput"
+ "$ref": "#/$defs/InsertBlockRequestInput"
},
"response": {
"anyOf": [
@@ -21969,7 +25997,24 @@
]
},
"data": {
- "$ref": "#/$defs/BlockDOMData"
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/BlockTransaction"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
"msg": {
"type": "string"
@@ -22026,11 +26071,11 @@
},
{
"method": "POST",
- "path": "/api/block/getBlockDOMs",
- "handler": "getBlockDOMs",
+ "path": "/api/block/moveBlock",
+ "handler": "moveBlock",
"body": "json",
"request": {
- "$ref": "#/$defs/BlocksQueryRequestInput"
+ "$ref": "#/$defs/MoveBlockRequestInput"
},
"response": {
"anyOf": [
@@ -22044,17 +26089,7 @@
]
},
"data": {
- "anyOf": [
- {
- "type": "object",
- "additionalProperties": {
- "type": "string"
- }
- },
- {
- "type": "null"
- }
- ]
+ "type": "null"
},
"msg": {
"type": "string"
@@ -22111,11 +26146,11 @@
},
{
"method": "POST",
- "path": "/api/block/getBlockDOMsWithEmbed",
- "handler": "getBlockDOMsWithEmbed",
+ "path": "/api/block/moveOutlineHeading",
+ "handler": "moveOutlineHeading",
"body": "json",
"request": {
- "$ref": "#/$defs/BlocksQueryRequestInput"
+ "$ref": "#/$defs/MoveBlockRequestInput"
},
"response": {
"anyOf": [
@@ -22131,9 +26166,16 @@
"data": {
"anyOf": [
{
- "type": "object",
- "additionalProperties": {
- "type": "string"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/BlockTransaction"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
{
@@ -22196,11 +26238,11 @@
},
{
"method": "POST",
- "path": "/api/block/getBlockDefIDsByRefText",
- "handler": "getBlockDefIDsByRefText",
+ "path": "/api/block/prependBlock",
+ "handler": "prependBlock",
"body": "json",
"request": {
- "$ref": "#/$defs/RefTextQueryRequestInput"
+ "$ref": "#/$defs/PrependBlockRequestInput"
},
"response": {
"anyOf": [
@@ -22214,7 +26256,24 @@
]
},
"data": {
- "$ref": "#/$defs/RefDefsData"
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/BlockTransaction"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
"msg": {
"type": "string"
@@ -22271,11 +26330,11 @@
},
{
"method": "POST",
- "path": "/api/block/getBlockIndex",
- "handler": "getBlockIndex",
+ "path": "/api/block/prependDailyNoteBlock",
+ "handler": "prependDailyNoteBlock",
"body": "json",
"request": {
- "$ref": "#/$defs/BlockQueryRequestInput"
+ "$ref": "#/$defs/DailyNoteBlockRequestInput"
},
"response": {
"anyOf": [
@@ -22289,7 +26348,24 @@
]
},
"data": {
- "type": "integer"
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/BlockTransaction"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
"msg": {
"type": "string"
@@ -22346,11 +26422,11 @@
},
{
"method": "POST",
- "path": "/api/block/getBlockInfo",
- "handler": "getBlockInfo",
+ "path": "/api/block/setBlockReminder",
+ "handler": "setBlockReminder",
"body": "json",
"request": {
- "$ref": "#/$defs/BlockInfoRequestInput"
+ "$ref": "#/$defs/BlockReminderRequestInput"
},
"response": {
"anyOf": [
@@ -22364,7 +26440,7 @@
]
},
"data": {
- "$ref": "#/$defs/BlockInfoData"
+ "type": "null"
},
"msg": {
"type": "string"
@@ -22383,8 +26459,7 @@
"code": {
"type": "integer",
"enum": [
- -1,
- 3
+ -1
]
},
"data": {
@@ -22403,9 +26478,6 @@
},
{
"type": "null"
- },
- {
- "type": "string"
}
]
},
@@ -22425,11 +26497,11 @@
},
{
"method": "POST",
- "path": "/api/block/getBlockKramdown",
- "handler": "getBlockKramdown",
+ "path": "/api/block/swapBlockRef",
+ "handler": "swapBlockRef",
"body": "json",
"request": {
- "$ref": "#/$defs/BlockKramdownRequestInput"
+ "$ref": "#/$defs/SwapBlockRefRequestInput"
},
"response": {
"anyOf": [
@@ -22443,7 +26515,7 @@
]
},
"data": {
- "$ref": "#/$defs/BlockKramdownData"
+ "type": "null"
},
"msg": {
"type": "string"
@@ -22500,11 +26572,11 @@
},
{
"method": "POST",
- "path": "/api/block/getBlockKramdowns",
- "handler": "getBlockKramdowns",
+ "path": "/api/block/transferBlockRef",
+ "handler": "transferBlockRef",
"body": "json",
"request": {
- "$ref": "#/$defs/BlocksKramdownRequestInput"
+ "$ref": "#/$defs/TransferBlockRefRequestInput"
},
"response": {
"anyOf": [
@@ -22518,17 +26590,7 @@
]
},
"data": {
- "anyOf": [
- {
- "type": "object",
- "additionalProperties": {
- "type": "string"
- }
- },
- {
- "type": "null"
- }
- ]
+ "type": "null"
},
"msg": {
"type": "string"
@@ -22585,11 +26647,11 @@
},
{
"method": "POST",
- "path": "/api/block/getBlockRelevantIDs",
- "handler": "getBlockRelevantIDs",
+ "path": "/api/block/unfoldBlock",
+ "handler": "unfoldBlock",
"body": "json",
"request": {
- "$ref": "#/$defs/BlockQueryRequestInput"
+ "$ref": "#/$defs/BlockIDRequestInput"
},
"response": {
"anyOf": [
@@ -22603,7 +26665,7 @@
]
},
"data": {
- "$ref": "#/$defs/BlockRelevantData"
+ "type": "null"
},
"msg": {
"type": "string"
@@ -22660,11 +26722,11 @@
},
{
"method": "POST",
- "path": "/api/block/getBlockSiblingID",
- "handler": "getBlockSiblingID",
+ "path": "/api/block/updateBlock",
+ "handler": "updateBlock",
"body": "json",
"request": {
- "$ref": "#/$defs/BlockQueryRequestInput"
+ "$ref": "#/$defs/UpdateBlockRequestInput"
},
"response": {
"anyOf": [
@@ -22678,7 +26740,24 @@
]
},
"data": {
- "$ref": "#/$defs/BlockSiblingData"
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/BlockTransaction"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
"msg": {
"type": "string"
@@ -22735,11 +26814,11 @@
},
{
"method": "POST",
- "path": "/api/block/getBlockTreeInfos",
- "handler": "getBlockTreeInfos",
+ "path": "/api/block/updateTaskListItemMarker",
+ "handler": "updateTaskListItemMarker",
"body": "json",
"request": {
- "$ref": "#/$defs/BlocksQueryRequestInput"
+ "$ref": "#/$defs/TaskListMarkerRequestInput"
},
"response": {
"anyOf": [
@@ -22755,11 +26834,11 @@
"data": {
"anyOf": [
{
- "type": "object",
- "additionalProperties": {
+ "type": "array",
+ "items": {
"anyOf": [
{
- "$ref": "#/$defs/BlockTreeInfo"
+ "$ref": "#/$defs/BlockTransaction"
},
{
"type": "null"
@@ -22827,11 +26906,11 @@
},
{
"method": "POST",
- "path": "/api/block/getBlocksIndexes",
- "handler": "getBlocksIndexes",
- "body": "json",
+ "path": "/api/bookmark/getBookmark",
+ "handler": "getBookmark",
+ "body": "none",
"request": {
- "$ref": "#/$defs/BlocksQueryRequestInput"
+ "$ref": "#/$defs/EmptyRequestInput"
},
"response": {
"anyOf": [
@@ -22847,9 +26926,16 @@
"data": {
"anyOf": [
{
- "type": "object",
- "additionalProperties": {
- "type": "integer"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/Bookmark"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
{
@@ -22912,11 +26998,11 @@
},
{
"method": "POST",
- "path": "/api/block/getBlocksWordCount",
- "handler": "getBlocksWordCount",
+ "path": "/api/bookmark/removeBookmark",
+ "handler": "removeBookmark",
"body": "json",
"request": {
- "$ref": "#/$defs/BlocksWordCountRequestInput"
+ "$ref": "#/$defs/RemoveBookmarkRequestInput"
},
"response": {
"anyOf": [
@@ -22930,7 +27016,7 @@
]
},
"data": {
- "$ref": "#/$defs/WordCountData"
+ "type": "null"
},
"msg": {
"type": "string"
@@ -22987,11 +27073,11 @@
},
{
"method": "POST",
- "path": "/api/block/getChildBlocks",
- "handler": "getChildBlocks",
+ "path": "/api/bookmark/renameBookmark",
+ "handler": "renameBookmark",
"body": "json",
"request": {
- "$ref": "#/$defs/BlockQueryRequestInput"
+ "$ref": "#/$defs/RenameBookmarkRequestInput"
},
"response": {
"anyOf": [
@@ -23005,17 +27091,7 @@
]
},
"data": {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/ChildBlock"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "null"
},
"msg": {
"type": "string"
@@ -23072,11 +27148,11 @@
},
{
"method": "POST",
- "path": "/api/block/getContentWordCount",
- "handler": "getContentWordCount",
+ "path": "/api/broadcast/getChannelInfo",
+ "handler": "getChannelInfo",
"body": "json",
"request": {
- "$ref": "#/$defs/ContentWordCountRequestInput"
+ "$ref": "#/$defs/BroadcastChannelRequestInput"
},
"response": {
"anyOf": [
@@ -23090,7 +27166,7 @@
]
},
"data": {
- "$ref": "#/$defs/WordCountData"
+ "$ref": "#/$defs/BroadcastChannelData"
},
"msg": {
"type": "string"
@@ -23147,11 +27223,11 @@
},
{
"method": "POST",
- "path": "/api/block/getDOMText",
- "handler": "getDOMText",
- "body": "json",
+ "path": "/api/broadcast/getChannels",
+ "handler": "getChannels",
+ "body": "none",
"request": {
- "$ref": "#/$defs/DOMTextRequestInput"
+ "$ref": "#/$defs/EmptyRequestInput"
},
"response": {
"anyOf": [
@@ -23165,7 +27241,7 @@
]
},
"data": {
- "type": "string"
+ "$ref": "#/$defs/BroadcastChannelsData"
},
"msg": {
"type": "string"
@@ -23222,11 +27298,11 @@
},
{
"method": "POST",
- "path": "/api/block/getDocBlocksOrders",
- "handler": "getDocBlocksOrders",
+ "path": "/api/broadcast/postMessage",
+ "handler": "postMessage",
"body": "json",
"request": {
- "$ref": "#/$defs/DocOrdersRequestInput"
+ "$ref": "#/$defs/BroadcastMessageRequestInput"
},
"response": {
"anyOf": [
@@ -23240,17 +27316,7 @@
]
},
"data": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- {
- "type": "null"
- }
- ]
+ "$ref": "#/$defs/BroadcastChannelData"
},
"msg": {
"type": "string"
@@ -23269,7 +27335,8 @@
"code": {
"type": "integer",
"enum": [
- -1
+ -1,
+ 1
]
},
"data": {
@@ -23307,11 +27374,25 @@
},
{
"method": "POST",
- "path": "/api/block/getDocHeadingLevelTransaction",
- "handler": "getDocHeadingLevelTransaction",
- "body": "structJSON",
+ "path": "/api/broadcast/publish",
+ "handler": "broadcastPublish",
+ "body": "multipart",
"request": {
- "$ref": "#/$defs/DocHeadingLevelRequestInput"
+ "type": "object",
+ "additionalProperties": {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "string",
+ "format": "binary"
+ }
+ ]
+ }
+ }
},
"response": {
"anyOf": [
@@ -23325,14 +27406,7 @@
]
},
"data": {
- "anyOf": [
- {
- "$ref": "#/$defs/DocHeadingLevelData"
- },
- {
- "type": "null"
- }
- ]
+ "$ref": "#/$defs/BroadcastPublishData"
},
"msg": {
"type": "string"
@@ -23351,7 +27425,8 @@
"code": {
"type": "integer",
"enum": [
- -1
+ -1,
+ 1
]
},
"data": {
@@ -23389,11 +27464,11 @@
},
{
"method": "POST",
- "path": "/api/block/getDocInfo",
- "handler": "getDocInfo",
+ "path": "/api/clipboard/cleanupRichText",
+ "handler": "cleanupRichText",
"body": "json",
"request": {
- "$ref": "#/$defs/BlockQueryRequestInput"
+ "$ref": "#/$defs/CleanupRichTextRequestInput"
},
"response": {
"anyOf": [
@@ -23407,14 +27482,7 @@
]
},
"data": {
- "anyOf": [
- {
- "$ref": "#/$defs/DocInfo"
- },
- {
- "type": "null"
- }
- ]
+ "type": "null"
},
"msg": {
"type": "string"
@@ -23471,11 +27539,11 @@
},
{
"method": "POST",
- "path": "/api/block/getDocsInfo",
- "handler": "getDocsInfo",
+ "path": "/api/clipboard/prepareRichText",
+ "handler": "prepareRichText",
"body": "json",
"request": {
- "$ref": "#/$defs/DocsInfoRequestInput"
+ "$ref": "#/$defs/PrepareRichTextRequestInput"
},
"response": {
"anyOf": [
@@ -23491,17 +27559,7 @@
"data": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/DocInfo"
- },
- {
- "type": "null"
- }
- ]
- }
+ "$ref": "#/$defs/RichClipboardPrepared"
},
{
"type": "null"
@@ -23563,11 +27621,11 @@
},
{
"method": "POST",
- "path": "/api/block/getHeadingChildrenDOM",
- "handler": "getHeadingChildrenDOM",
- "body": "json",
+ "path": "/api/clipboard/readFilePaths",
+ "handler": "readFilePaths",
+ "body": "none",
"request": {
- "$ref": "#/$defs/HeadingChildrenRequestInput"
+ "$ref": "#/$defs/EmptyRequestInput"
},
"response": {
"anyOf": [
@@ -23581,7 +27639,10 @@
]
},
"data": {
- "type": "string"
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/ClipboardFile"
+ }
},
"msg": {
"type": "string"
@@ -23638,11 +27699,11 @@
},
{
"method": "POST",
- "path": "/api/block/getHeadingChildrenIDs",
- "handler": "getHeadingChildrenIDs",
+ "path": "/api/clipboard/writeFilePath",
+ "handler": "writeFilePath",
"body": "json",
"request": {
- "$ref": "#/$defs/BlockIDRequestInput"
+ "$ref": "#/$defs/ClipboardPathRequestInput"
},
"response": {
"anyOf": [
@@ -23656,17 +27717,7 @@
]
},
"data": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- {
- "type": "null"
- }
- ]
+ "type": "null"
},
"msg": {
"type": "string"
@@ -23723,11 +27774,11 @@
},
{
"method": "POST",
- "path": "/api/block/getHeadingDeleteTransaction",
- "handler": "getHeadingDeleteTransaction",
- "body": "json",
+ "path": "/api/cloud/getCloudSpace",
+ "handler": "getCloudSpace",
+ "body": "none",
"request": {
- "$ref": "#/$defs/BlockIDRequestInput"
+ "$ref": "#/$defs/EmptyRequestInput"
},
"response": {
"anyOf": [
@@ -23741,14 +27792,7 @@
]
},
"data": {
- "anyOf": [
- {
- "$ref": "#/$defs/BlockTransaction"
- },
- {
- "type": "null"
- }
- ]
+ "$ref": "#/$defs/CloudSpaceData"
},
"msg": {
"type": "string"
@@ -23767,7 +27811,8 @@
"code": {
"type": "integer",
"enum": [
- -1
+ -1,
+ 1
]
},
"data": {
@@ -23805,11 +27850,11 @@
},
{
"method": "POST",
- "path": "/api/block/getHeadingFoldTransaction",
- "handler": "getHeadingFoldTransaction",
+ "path": "/api/cloud/setCloudReminder",
+ "handler": "setCloudReminder",
"body": "json",
"request": {
- "$ref": "#/$defs/HeadingFoldRequestInput"
+ "$ref": "#/$defs/CloudReminderRequestInput"
},
"response": {
"anyOf": [
@@ -23823,14 +27868,7 @@
]
},
"data": {
- "anyOf": [
- {
- "$ref": "#/$defs/BlockTransaction"
- },
- {
- "type": "null"
- }
- ]
+ "type": "null"
},
"msg": {
"type": "string"
@@ -23887,11 +27925,11 @@
},
{
"method": "POST",
- "path": "/api/block/getHeadingInsertTransaction",
- "handler": "getHeadingInsertTransaction",
+ "path": "/api/convert/pandoc",
+ "handler": "pandoc",
"body": "json",
"request": {
- "$ref": "#/$defs/BlockIDRequestInput"
+ "$ref": "#/$defs/PandocRequestInput"
},
"response": {
"anyOf": [
@@ -23905,14 +27943,7 @@
]
},
"data": {
- "anyOf": [
- {
- "$ref": "#/$defs/BlockTransaction"
- },
- {
- "type": "null"
- }
- ]
+ "$ref": "#/$defs/PandocData"
},
"msg": {
"type": "string"
@@ -23969,11 +28000,11 @@
},
{
"method": "POST",
- "path": "/api/block/getHeadingLevelTransaction",
- "handler": "getHeadingLevelTransaction",
+ "path": "/api/export/copyExportFile",
+ "handler": "copyExportFile",
"body": "json",
"request": {
- "$ref": "#/$defs/HeadingLevelRequestInput"
+ "$ref": "#/$defs/CopyExportFileRequestInput"
},
"response": {
"anyOf": [
@@ -23987,14 +28018,7 @@
]
},
"data": {
- "anyOf": [
- {
- "$ref": "#/$defs/BlockTransaction"
- },
- {
- "type": "null"
- }
- ]
+ "type": "null"
},
"msg": {
"type": "string"
@@ -24013,7 +28037,8 @@
"code": {
"type": "integer",
"enum": [
- -1
+ -1,
+ -2
]
},
"data": {
@@ -24051,11 +28076,11 @@
},
{
"method": "POST",
- "path": "/api/block/getOrderedListContinueStart",
- "handler": "getOrderedListContinueStart",
+ "path": "/api/export/export2Liandi",
+ "handler": "export2Liandi",
"body": "json",
"request": {
- "$ref": "#/$defs/BlockQueryRequestInput"
+ "$ref": "#/$defs/ExportIDRequestInput"
},
"response": {
"anyOf": [
@@ -24069,7 +28094,7 @@
]
},
"data": {
- "$ref": "#/$defs/OrderedListStartData"
+ "type": "null"
},
"msg": {
"type": "string"
@@ -24126,11 +28151,11 @@
},
{
"method": "POST",
- "path": "/api/block/getRecentUpdatedBlocks",
- "handler": "getRecentUpdatedBlocks",
- "body": "none",
+ "path": "/api/export/exportAsFile",
+ "handler": "exportAsFile",
+ "body": "multipart",
"request": {
- "$ref": "#/$defs/EmptyRequestInput"
+ "$ref": "#/$defs/ExportAsFileRequestInput"
},
"response": {
"anyOf": [
@@ -24144,24 +28169,7 @@
]
},
"data": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/SearchBlock"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- {
- "type": "null"
- }
- ]
+ "$ref": "#/$defs/ExportFileData"
},
"msg": {
"type": "string"
@@ -24218,11 +28226,11 @@
},
{
"method": "POST",
- "path": "/api/block/getRefIDs",
- "handler": "getRefIDs",
+ "path": "/api/export/exportAsciiDoc",
+ "handler": "exportAsciiDoc",
"body": "json",
"request": {
- "$ref": "#/$defs/RefIDsRequestInput"
+ "$ref": "#/$defs/ExportIDRequestInput"
},
"response": {
"anyOf": [
@@ -24236,7 +28244,7 @@
]
},
"data": {
- "$ref": "#/$defs/RefIDsData"
+ "$ref": "#/$defs/ExportNamedZipData"
},
"msg": {
"type": "string"
@@ -24293,11 +28301,11 @@
},
{
"method": "POST",
- "path": "/api/block/getRefIDsByFileAnnotationID",
- "handler": "getRefIDsByFileAnnotationID",
+ "path": "/api/export/exportAttributeView",
+ "handler": "exportAttributeView",
"body": "json",
"request": {
- "$ref": "#/$defs/FileAnnotationRefRequestInput"
+ "$ref": "#/$defs/ExportAttributeViewRequestInput"
},
"response": {
"anyOf": [
@@ -24311,7 +28319,7 @@
]
},
"data": {
- "$ref": "#/$defs/RefDefsData"
+ "$ref": "#/$defs/ExportZipData"
},
"msg": {
"type": "string"
@@ -24330,7 +28338,8 @@
"code": {
"type": "integer",
"enum": [
- -1
+ -1,
+ 1
]
},
"data": {
@@ -24368,11 +28377,11 @@
},
{
"method": "POST",
- "path": "/api/block/getRefText",
- "handler": "getRefText",
+ "path": "/api/export/exportBrowserHTML",
+ "handler": "exportBrowserHTML",
"body": "json",
"request": {
- "$ref": "#/$defs/BlockQueryRequestInput"
+ "$ref": "#/$defs/ExportBrowserHTMLRequestInput"
},
"response": {
"anyOf": [
@@ -24386,7 +28395,7 @@
]
},
"data": {
- "type": "string"
+ "$ref": "#/$defs/ExportZipData"
},
"msg": {
"type": "string"
@@ -24443,11 +28452,11 @@
},
{
"method": "POST",
- "path": "/api/block/getTailChildBlocks",
- "handler": "getTailChildBlocks",
+ "path": "/api/export/exportCodeBlock",
+ "handler": "exportCodeBlock",
"body": "json",
"request": {
- "$ref": "#/$defs/TailChildBlocksRequestInput"
+ "$ref": "#/$defs/ExportIDRequestInput"
},
"response": {
"anyOf": [
@@ -24461,17 +28470,7 @@
]
},
"data": {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/ChildBlock"
- },
- {
- "type": "null"
- }
- ]
- }
+ "$ref": "#/$defs/ExportPathData"
},
"msg": {
"type": "string"
@@ -24490,7 +28489,8 @@
"code": {
"type": "integer",
"enum": [
- -1
+ -1,
+ 1
]
},
"data": {
@@ -24528,11 +28528,11 @@
},
{
"method": "POST",
- "path": "/api/block/getTreeStat",
- "handler": "getTreeStat",
- "body": "json",
+ "path": "/api/export/exportData",
+ "handler": "exportData",
+ "body": "none",
"request": {
- "$ref": "#/$defs/TreeStatRequestInput"
+ "$ref": "#/$defs/EmptyRequestInput"
},
"response": {
"anyOf": [
@@ -24546,7 +28546,7 @@
]
},
"data": {
- "$ref": "#/$defs/TreeStatData"
+ "$ref": "#/$defs/ExportZipData"
},
"msg": {
"type": "string"
@@ -24565,7 +28565,8 @@
"code": {
"type": "integer",
"enum": [
- -1
+ -1,
+ 1
]
},
"data": {
@@ -24603,11 +28604,11 @@
},
{
"method": "POST",
- "path": "/api/block/getUnfoldedParentID",
- "handler": "getUnfoldedParentID",
+ "path": "/api/export/exportDataInFolder",
+ "handler": "exportDataInFolder",
"body": "json",
"request": {
- "$ref": "#/$defs/BlockQueryRequestInput"
+ "$ref": "#/$defs/ExportFolderRequestInput"
},
"response": {
"anyOf": [
@@ -24621,7 +28622,7 @@
]
},
"data": {
- "$ref": "#/$defs/UnfoldedParentData"
+ "$ref": "#/$defs/ExportNameData"
},
"msg": {
"type": "string"
@@ -24678,11 +28679,11 @@
},
{
"method": "POST",
- "path": "/api/block/insertBlock",
- "handler": "insertBlock",
+ "path": "/api/export/exportDocx",
+ "handler": "exportDocx",
"body": "json",
"request": {
- "$ref": "#/$defs/InsertBlockRequestInput"
+ "$ref": "#/$defs/ExportDocxRequestInput"
},
"response": {
"anyOf": [
@@ -24695,26 +28696,9 @@
0
]
},
- "data": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/BlockTransaction"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- {
- "type": "null"
- }
- ]
- },
+ "data": {
+ "$ref": "#/$defs/ExportPathData"
+ },
"msg": {
"type": "string"
}
@@ -24732,7 +28716,8 @@
"code": {
"type": "integer",
"enum": [
- -1
+ -1,
+ 1
]
},
"data": {
@@ -24770,11 +28755,11 @@
},
{
"method": "POST",
- "path": "/api/block/moveBlock",
- "handler": "moveBlock",
+ "path": "/api/export/exportEPUB",
+ "handler": "exportEPUB",
"body": "json",
"request": {
- "$ref": "#/$defs/MoveBlockRequestInput"
+ "$ref": "#/$defs/ExportIDRequestInput"
},
"response": {
"anyOf": [
@@ -24788,7 +28773,7 @@
]
},
"data": {
- "type": "null"
+ "$ref": "#/$defs/ExportNamedZipData"
},
"msg": {
"type": "string"
@@ -24845,11 +28830,11 @@
},
{
"method": "POST",
- "path": "/api/block/moveOutlineHeading",
- "handler": "moveOutlineHeading",
+ "path": "/api/export/exportHTML",
+ "handler": "exportHTML",
"body": "json",
"request": {
- "$ref": "#/$defs/MoveBlockRequestInput"
+ "$ref": "#/$defs/ExportHTMLRequestInput"
},
"response": {
"anyOf": [
@@ -24863,24 +28848,7 @@
]
},
"data": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/BlockTransaction"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- {
- "type": "null"
- }
- ]
+ "$ref": "#/$defs/ExportHTMLData"
},
"msg": {
"type": "string"
@@ -24937,11 +28905,11 @@
},
{
"method": "POST",
- "path": "/api/block/prependBlock",
- "handler": "prependBlock",
+ "path": "/api/export/exportMd",
+ "handler": "exportMd",
"body": "json",
"request": {
- "$ref": "#/$defs/PrependBlockRequestInput"
+ "$ref": "#/$defs/ExportMarkdownRequestInput"
},
"response": {
"anyOf": [
@@ -24955,24 +28923,7 @@
]
},
"data": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/BlockTransaction"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- {
- "type": "null"
- }
- ]
+ "$ref": "#/$defs/ExportNamedZipData"
},
"msg": {
"type": "string"
@@ -25029,11 +28980,11 @@
},
{
"method": "POST",
- "path": "/api/block/prependDailyNoteBlock",
- "handler": "prependDailyNoteBlock",
+ "path": "/api/export/exportMdContent",
+ "handler": "exportMdContent",
"body": "json",
"request": {
- "$ref": "#/$defs/DailyNoteBlockRequestInput"
+ "$ref": "#/$defs/ExportMarkdownContentRequestInput"
},
"response": {
"anyOf": [
@@ -25047,24 +28998,7 @@
]
},
"data": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/BlockTransaction"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- {
- "type": "null"
- }
- ]
+ "$ref": "#/$defs/ExportMarkdownContentData"
},
"msg": {
"type": "string"
@@ -25121,11 +29055,11 @@
},
{
"method": "POST",
- "path": "/api/block/setBlockReminder",
- "handler": "setBlockReminder",
+ "path": "/api/export/exportMdHTML",
+ "handler": "exportMdHTML",
"body": "json",
"request": {
- "$ref": "#/$defs/BlockReminderRequestInput"
+ "$ref": "#/$defs/ExportMarkdownHTMLRequestInput"
},
"response": {
"anyOf": [
@@ -25139,7 +29073,7 @@
]
},
"data": {
- "type": "null"
+ "$ref": "#/$defs/ExportHTMLData"
},
"msg": {
"type": "string"
@@ -25196,11 +29130,11 @@
},
{
"method": "POST",
- "path": "/api/block/swapBlockRef",
- "handler": "swapBlockRef",
+ "path": "/api/export/exportMds",
+ "handler": "exportMds",
"body": "json",
"request": {
- "$ref": "#/$defs/SwapBlockRefRequestInput"
+ "$ref": "#/$defs/ExportDocumentsMarkdownRequestInput"
},
"response": {
"anyOf": [
@@ -25214,7 +29148,7 @@
]
},
"data": {
- "type": "null"
+ "$ref": "#/$defs/ExportNamedZipData"
},
"msg": {
"type": "string"
@@ -25271,11 +29205,11 @@
},
{
"method": "POST",
- "path": "/api/block/transferBlockRef",
- "handler": "transferBlockRef",
+ "path": "/api/export/exportMediaWiki",
+ "handler": "exportMediaWiki",
"body": "json",
"request": {
- "$ref": "#/$defs/TransferBlockRefRequestInput"
+ "$ref": "#/$defs/ExportIDRequestInput"
},
"response": {
"anyOf": [
@@ -25289,7 +29223,7 @@
]
},
"data": {
- "type": "null"
+ "$ref": "#/$defs/ExportNamedZipData"
},
"msg": {
"type": "string"
@@ -25346,11 +29280,11 @@
},
{
"method": "POST",
- "path": "/api/block/unfoldBlock",
- "handler": "unfoldBlock",
+ "path": "/api/export/exportNotebookMd",
+ "handler": "exportNotebookMd",
"body": "json",
"request": {
- "$ref": "#/$defs/BlockIDRequestInput"
+ "$ref": "#/$defs/ExportNotebookMarkdownRequestInput"
},
"response": {
"anyOf": [
@@ -25364,7 +29298,7 @@
]
},
"data": {
- "type": "null"
+ "$ref": "#/$defs/ExportNamedZipData"
},
"msg": {
"type": "string"
@@ -25421,11 +29355,11 @@
},
{
"method": "POST",
- "path": "/api/block/updateBlock",
- "handler": "updateBlock",
+ "path": "/api/export/exportNotebookSY",
+ "handler": "exportNotebookSY",
"body": "json",
"request": {
- "$ref": "#/$defs/UpdateBlockRequestInput"
+ "$ref": "#/$defs/ExportIDRequestInput"
},
"response": {
"anyOf": [
@@ -25439,24 +29373,7 @@
]
},
"data": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/BlockTransaction"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- {
- "type": "null"
- }
- ]
+ "$ref": "#/$defs/ExportZipData"
},
"msg": {
"type": "string"
@@ -25513,11 +29430,11 @@
},
{
"method": "POST",
- "path": "/api/block/updateTaskListItemMarker",
- "handler": "updateTaskListItemMarker",
+ "path": "/api/export/exportNotebooksMd",
+ "handler": "exportNotebooksMd",
"body": "json",
"request": {
- "$ref": "#/$defs/TaskListMarkerRequestInput"
+ "$ref": "#/$defs/ExportNotebooksMarkdownRequestInput"
},
"response": {
"anyOf": [
@@ -25531,24 +29448,7 @@
]
},
"data": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/BlockTransaction"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- {
- "type": "null"
- }
- ]
+ "$ref": "#/$defs/ExportNamedZipData"
},
"msg": {
"type": "string"
@@ -25605,11 +29505,11 @@
},
{
"method": "POST",
- "path": "/api/bookmark/getBookmark",
- "handler": "getBookmark",
- "body": "none",
+ "path": "/api/export/exportNotebooksSY",
+ "handler": "exportNotebooksSY",
+ "body": "json",
"request": {
- "$ref": "#/$defs/EmptyRequestInput"
+ "$ref": "#/$defs/ExportNotebooksRequestInput"
},
"response": {
"anyOf": [
@@ -25623,24 +29523,7 @@
]
},
"data": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/Bookmark"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- {
- "type": "null"
- }
- ]
+ "$ref": "#/$defs/ExportZipData"
},
"msg": {
"type": "string"
@@ -25697,11 +29580,11 @@
},
{
"method": "POST",
- "path": "/api/bookmark/removeBookmark",
- "handler": "removeBookmark",
+ "path": "/api/export/exportODT",
+ "handler": "exportODT",
"body": "json",
"request": {
- "$ref": "#/$defs/RemoveBookmarkRequestInput"
+ "$ref": "#/$defs/ExportIDRequestInput"
},
"response": {
"anyOf": [
@@ -25715,7 +29598,7 @@
]
},
"data": {
- "type": "null"
+ "$ref": "#/$defs/ExportNamedZipData"
},
"msg": {
"type": "string"
@@ -25772,11 +29655,11 @@
},
{
"method": "POST",
- "path": "/api/bookmark/renameBookmark",
- "handler": "renameBookmark",
+ "path": "/api/export/exportOPML",
+ "handler": "exportOPML",
"body": "json",
"request": {
- "$ref": "#/$defs/RenameBookmarkRequestInput"
+ "$ref": "#/$defs/ExportIDRequestInput"
},
"response": {
"anyOf": [
@@ -25790,7 +29673,7 @@
]
},
"data": {
- "type": "null"
+ "$ref": "#/$defs/ExportNamedZipData"
},
"msg": {
"type": "string"
@@ -25847,11 +29730,11 @@
},
{
"method": "POST",
- "path": "/api/broadcast/getChannelInfo",
- "handler": "getChannelInfo",
+ "path": "/api/export/exportOrgMode",
+ "handler": "exportOrgMode",
"body": "json",
"request": {
- "$ref": "#/$defs/BroadcastChannelRequestInput"
+ "$ref": "#/$defs/ExportIDRequestInput"
},
"response": {
"anyOf": [
@@ -25865,7 +29748,7 @@
]
},
"data": {
- "$ref": "#/$defs/BroadcastChannelData"
+ "$ref": "#/$defs/ExportNamedZipData"
},
"msg": {
"type": "string"
@@ -25922,11 +29805,11 @@
},
{
"method": "POST",
- "path": "/api/broadcast/getChannels",
- "handler": "getChannels",
- "body": "none",
+ "path": "/api/export/exportPreviewHTML",
+ "handler": "exportPreviewHTML",
+ "body": "json",
"request": {
- "$ref": "#/$defs/EmptyRequestInput"
+ "$ref": "#/$defs/ExportPreviewHTMLRequestInput"
},
"response": {
"anyOf": [
@@ -25940,7 +29823,7 @@
]
},
"data": {
- "$ref": "#/$defs/BroadcastChannelsData"
+ "$ref": "#/$defs/ExportPreviewHTMLData"
},
"msg": {
"type": "string"
@@ -25997,11 +29880,11 @@
},
{
"method": "POST",
- "path": "/api/broadcast/postMessage",
- "handler": "postMessage",
+ "path": "/api/export/exportRTF",
+ "handler": "exportRTF",
"body": "json",
"request": {
- "$ref": "#/$defs/BroadcastMessageRequestInput"
+ "$ref": "#/$defs/ExportIDRequestInput"
},
"response": {
"anyOf": [
@@ -26015,7 +29898,7 @@
]
},
"data": {
- "$ref": "#/$defs/BroadcastChannelData"
+ "$ref": "#/$defs/ExportNamedZipData"
},
"msg": {
"type": "string"
@@ -26034,8 +29917,7 @@
"code": {
"type": "integer",
"enum": [
- -1,
- 1
+ -1
]
},
"data": {
@@ -26073,25 +29955,11 @@
},
{
"method": "POST",
- "path": "/api/broadcast/publish",
- "handler": "broadcastPublish",
- "body": "multipart",
+ "path": "/api/export/exportReStructuredText",
+ "handler": "exportReStructuredText",
+ "body": "json",
"request": {
- "type": "object",
- "additionalProperties": {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "string",
- "format": "binary"
- }
- ]
- }
- }
+ "$ref": "#/$defs/ExportIDRequestInput"
},
"response": {
"anyOf": [
@@ -26105,7 +29973,7 @@
]
},
"data": {
- "$ref": "#/$defs/BroadcastPublishData"
+ "$ref": "#/$defs/ExportNamedZipData"
},
"msg": {
"type": "string"
@@ -26124,8 +29992,7 @@
"code": {
"type": "integer",
"enum": [
- -1,
- 1
+ -1
]
},
"data": {
@@ -26163,11 +30030,11 @@
},
{
"method": "POST",
- "path": "/api/clipboard/cleanupRichText",
- "handler": "cleanupRichText",
+ "path": "/api/export/exportResources",
+ "handler": "exportResources",
"body": "json",
"request": {
- "$ref": "#/$defs/CleanupRichTextRequestInput"
+ "$ref": "#/$defs/ExportResourcesRequestInput"
},
"response": {
"anyOf": [
@@ -26181,7 +30048,7 @@
]
},
"data": {
- "type": "null"
+ "$ref": "#/$defs/ExportPathData"
},
"msg": {
"type": "string"
@@ -26200,7 +30067,8 @@
"code": {
"type": "integer",
"enum": [
- -1
+ -1,
+ 1
]
},
"data": {
@@ -26219,6 +30087,9 @@
},
{
"type": "null"
+ },
+ {
+ "type": "string"
}
]
},
@@ -26238,11 +30109,11 @@
},
{
"method": "POST",
- "path": "/api/clipboard/prepareRichText",
- "handler": "prepareRichText",
+ "path": "/api/export/exportSY",
+ "handler": "exportSY",
"body": "json",
"request": {
- "$ref": "#/$defs/PrepareRichTextRequestInput"
+ "$ref": "#/$defs/ExportIDRequestInput"
},
"response": {
"anyOf": [
@@ -26256,14 +30127,7 @@
]
},
"data": {
- "anyOf": [
- {
- "$ref": "#/$defs/RichClipboardPrepared"
- },
- {
- "type": "null"
- }
- ]
+ "$ref": "#/$defs/ExportZipData"
},
"msg": {
"type": "string"
@@ -26320,11 +30184,11 @@
},
{
"method": "POST",
- "path": "/api/clipboard/readFilePaths",
- "handler": "readFilePaths",
- "body": "none",
+ "path": "/api/export/exportSYs",
+ "handler": "exportSYs",
+ "body": "json",
"request": {
- "$ref": "#/$defs/EmptyRequestInput"
+ "$ref": "#/$defs/ExportIDsRequestInput"
},
"response": {
"anyOf": [
@@ -26338,10 +30202,7 @@
]
},
"data": {
- "type": "array",
- "items": {
- "$ref": "#/$defs/ClipboardFile"
- }
+ "$ref": "#/$defs/ExportZipData"
},
"msg": {
"type": "string"
@@ -26398,11 +30259,11 @@
},
{
"method": "POST",
- "path": "/api/clipboard/writeFilePath",
- "handler": "writeFilePath",
+ "path": "/api/export/exportTempContent",
+ "handler": "exportTempContent",
"body": "json",
"request": {
- "$ref": "#/$defs/ClipboardPathRequestInput"
+ "$ref": "#/$defs/ExportTempContentRequestInput"
},
"response": {
"anyOf": [
@@ -26416,7 +30277,7 @@
]
},
"data": {
- "type": "null"
+ "$ref": "#/$defs/ExportURLData"
},
"msg": {
"type": "string"
@@ -26435,7 +30296,8 @@
"code": {
"type": "integer",
"enum": [
- -1
+ -1,
+ 1
]
},
"data": {
@@ -26473,11 +30335,11 @@
},
{
"method": "POST",
- "path": "/api/cloud/getCloudSpace",
- "handler": "getCloudSpace",
- "body": "none",
+ "path": "/api/export/exportTextile",
+ "handler": "exportTextile",
+ "body": "json",
"request": {
- "$ref": "#/$defs/EmptyRequestInput"
+ "$ref": "#/$defs/ExportIDRequestInput"
},
"response": {
"anyOf": [
@@ -26491,7 +30353,7 @@
]
},
"data": {
- "$ref": "#/$defs/CloudSpaceData"
+ "$ref": "#/$defs/ExportNamedZipData"
},
"msg": {
"type": "string"
@@ -26510,8 +30372,7 @@
"code": {
"type": "integer",
"enum": [
- -1,
- 1
+ -1
]
},
"data": {
@@ -26549,11 +30410,11 @@
},
{
"method": "POST",
- "path": "/api/cloud/setCloudReminder",
- "handler": "setCloudReminder",
+ "path": "/api/export/preview",
+ "handler": "exportPreview",
"body": "json",
"request": {
- "$ref": "#/$defs/CloudReminderRequestInput"
+ "$ref": "#/$defs/ExportIDRequestInput"
},
"response": {
"anyOf": [
@@ -26567,7 +30428,7 @@
]
},
"data": {
- "type": "null"
+ "$ref": "#/$defs/ExportPreviewData"
},
"msg": {
"type": "string"
@@ -26624,11 +30485,11 @@
},
{
"method": "POST",
- "path": "/api/convert/pandoc",
- "handler": "pandoc",
+ "path": "/api/export/processPDF",
+ "handler": "processPDF",
"body": "json",
"request": {
- "$ref": "#/$defs/PandocRequestInput"
+ "$ref": "#/$defs/ProcessPDFRequestInput"
},
"response": {
"anyOf": [
@@ -26642,7 +30503,7 @@
]
},
"data": {
- "$ref": "#/$defs/PandocData"
+ "type": "null"
},
"msg": {
"type": "string"