Skip to content

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

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

Danieleef3fb9842b7
diff --git a/app/src/protyle/render/av/blockAttr.ts b/app/src/protyle/render/av/blockAttr.ts
index a8969d8189..dda9295a6f 100644
--- a/app/src/protyle/render/av/blockAttr.ts
+++ b/app/src/protyle/render/av/blockAttr.ts
@@ -52,7 +52,7 @@ interface IAVAttributeTableData {
id: string;
type: TAVCol;
};
- values: IAVCellValue[];
+ values?: IAVCellValue[];
}[];
}
@@ -134,36 +134,10 @@ export const renderAVAttribute = (element: HTMLElement, id: string, protyle: IPr
}
let html = "";
const tables = Array.isArray(response.data) ? response.data : [];
- tables.forEach((table: {
- keyValues: {
- key: {
- type: TAVCol,
- name: string,
- desc: string,
- icon: string,
- id: string,
- dateFormat?: TAVDateFormat,
- renderTemplate?: string,
- options?: {
- name: string,
- color: string
- }[]
- },
- values: {
- keyID: string,
- id: string,
- blockID: string,
- isDetached?: boolean,
- type: TAVCol & IAVCellValue
- }[]
- }[],
- blockIDs: string[],
- avID: string
- avName: string
- }) => {
+ tables.forEach((table) => {
// 条目 ID 仅用于读取行数据,编辑菜单和更新时间使用真实数据库载体块。
const blockID = row ? row.databaseBlockID : id;
- const primaryValue = table.keyValues.find(item => item.key.type === "block")?.values[0] || table.keyValues[0]?.values[0];
+ const primaryValue = table.keyValues.find(item => item.key.type === "block")?.values?.[0] || table.keyValues[0]?.values?.[0];
let innerHTML = `<div class="custom-attr__avheader">
<div class="block__logo block__logo--icon popover__block" style="max-width:calc(100% - 40px)" data-id='${JSON.stringify(table.blockIDs)}'>
<svg class="block__logoicon"><use xlink:href="#iconDatabase"></use></svg>
@@ -175,7 +149,7 @@ export const renderAVAttribute = (element: HTMLElement, id: string, protyle: IPr
table.keyValues?.forEach(item => {
const value = Object.assign(
createEmptyAVValue(item.key.id, item.key.type, primaryValue?.blockID),
- item.values[0] || {}
+ item.values?.[0] || {}
);
innerHTML += genAVAttributeRowHTML({
nodeID: id,
diff --git a/app/src/protyle/render/av/calc.ts b/app/src/protyle/render/av/calc.ts
index 8e0fbf3911..120322cbf7 100644
--- a/app/src/protyle/render/av/calc.ts
+++ b/app/src/protyle/render/av/calc.ts
@@ -1,3 +1,4 @@
+import {isAVRenderData} from "./renderData";
import {Menu} from "../../../plugin/Menu";
import {transaction} from "../../wysiwyg/transaction";
import {hasClosestBlock, hasClosestByClassName} from "../../util/hasClosest";
@@ -305,6 +306,9 @@ export const openCalcMenu = async (protyle: IProtyle, calcElement: HTMLElement,
let avData = panelData?.data;
if (!avData) {
const avResponse = await fetchSyncPost("/api/av/renderAttributeView", {id: avId, blockID});
+ if (avResponse.code !== 0 || !isAVRenderData(avResponse.data)) {
+ return;
+ }
avData = avResponse.data;
}
@@ -329,6 +333,9 @@ export const openCalcMenu = async (protyle: IProtyle, calcElement: HTMLElement,
});
if (relationAvId) {
const colResponse = await fetchSyncPost("/api/av/getAttributeView", {id: relationAvId});
+ if (colResponse.code !== 0) {
+ return;
+ }
colResponse.data.av.keyValues.find((item: { key: { id: string, name: string, type: TAVCol } }) => {
if (item.key.id === keyID) {
rollupIsNumber = item.key.type === "number" || rollupIsNumber;
@@ -448,6 +455,9 @@ export const openCalcMenu = async (protyle: IProtyle, calcElement: HTMLElement,
currentTemplate = colData?.calc?.template || "";
} else {
const avResponse = await fetchSyncPost("/api/av/renderAttributeView", {id: avId, blockID});
+ if (avResponse.code !== 0 || !isAVRenderData(avResponse.data)) {
+ return;
+ }
const colData = getFieldsByData(avResponse.data).find((item) => item.id === colId);
currentTemplate = colData?.calc?.template || "";
}
diff --git a/app/src/protyle/render/av/cell.ts b/app/src/protyle/render/av/cell.ts
index f978d8bc2e..a224e41601 100644
--- a/app/src/protyle/render/av/cell.ts
+++ b/app/src/protyle/render/av/cell.ts
@@ -1,3 +1,4 @@
+import {isAVRenderData} from "./renderData";
import {transaction} from "../../wysiwyg/transaction";
import {hasClosestBlock, hasClosestByClassName} from "../../util/hasClosest";
import {openMenuPanel} from "./openMenuPanel";
@@ -682,6 +683,9 @@ export const popTextCell = (protyle: IProtyle, cellElements: HTMLElement[], type
id: blockElement.dataset.avId,
blockID: blockElement.dataset.nodeId,
}, (response) => {
+ if (!isAVRenderData(response.data)) {
+ return;
+ }
getFieldsByData(response.data).find((item: IAVColumn) => {
if (item.id === getColId(cellElements[0], viewType)) {
inputElement.value = item.template;
@@ -1036,6 +1040,9 @@ export const updateCellsValue = async (protyle: IProtyle, nodeElement: HTMLEleme
let column = source.selectedCell?.column || columns?.find(columnItem => columnItem.id === colId);
if (type === "date" && !column) {
const response = await fetchSyncPost("/api/av/getAttributeViewKeysByID", {avID, keyIDs: [colId]});
+ if (response.code !== 0) {
+ return;
+ }
column = response.data?.[0];
}
let cellValue: IAVCellValue;
diff --git a/app/src/protyle/render/av/col.ts b/app/src/protyle/render/av/col.ts
index 8413751e4f..f84371480f 100644
--- a/app/src/protyle/render/av/col.ts
+++ b/app/src/protyle/render/av/col.ts
@@ -1,3 +1,4 @@
+import {isAVRenderData} from "./renderData";
import {Menu} from "../../../plugin/Menu";
import {transaction} from "../../wysiwyg/transaction";
import {fetchPost, fetchSyncPost} from "../../../util/fetch";
@@ -1373,6 +1374,9 @@ export const showColMenu = (protyle: IProtyle, blockElement: Element, cellElemen
id: avID,
blockID,
}, (response) => {
+ if (!isAVRenderData(response.data)) {
+ return;
+ }
duplicateCol({
blockElement,
viewID,
@@ -1391,11 +1395,17 @@ export const showColMenu = (protyle: IProtyle, blockElement: Element, cellElemen
async click() {
if (type === "relation") {
const response = await fetchSyncPost("/api/av/getAttributeView", {id: avID});
+ if (response.code !== 0) {
+ return;
+ }
const colData = response.data.av.keyValues.find((item: {
key: { id: string }
}) => item.key.id === colId);
if (colData.key.relation?.isTwoWay) {
const relResponse = await fetchSyncPost("/api/av/getAttributeView", {id: colData.key.relation.avID});
+ if (relResponse.code !== 0) {
+ return;
+ }
const dialog = new Dialog({
title: window.siyuan.languages.removeColConfirm,
content: `<div class="b3-dialog__content">
diff --git a/app/src/protyle/render/av/filter.ts b/app/src/protyle/render/av/filter.ts
index 1223a3621a..dfba0c8fae 100644
--- a/app/src/protyle/render/av/filter.ts
+++ b/app/src/protyle/render/av/filter.ts
@@ -470,7 +470,7 @@ export const prepareFilterColumns = async (data: IAV) => {
let request = avRequests.get(targetAVID);
if (!request) {
request = fetchSyncPost("/api/av/getAttributeView", {id: targetAVID}).then((response) => {
- return (response.data?.av?.keyValues || []).map((item: { key: IAVColumn }) => item.key);
+ return response.code === 0 ? (response.data?.av?.keyValues || []).map(item => item.key) : [];
}).catch(() => []);
avRequests.set(targetAVID, request);
}
@@ -513,7 +513,7 @@ export const prepareFilterColumns = async (data: IAV) => {
id: targetAVID,
blockIDs: Array.from(blockIDs),
});
- cacheRelationFilterValues(targetAVID, response.data?.rows?.values || []);
+ cacheRelationFilterValues(targetAVID, response.code === 0 ? response.data?.rows?.values || [] : []);
} catch (e) {
// 候选显示名加载失败不应阻止筛选面板打开,控件会保留行 ID 并允许重新搜索。
}
diff --git a/app/src/protyle/render/av/gallery/item.ts b/app/src/protyle/render/av/gallery/item.ts
index 443cfd7ae1..6bd3fdebe2 100644
--- a/app/src/protyle/render/av/gallery/item.ts
+++ b/app/src/protyle/render/av/gallery/item.ts
@@ -89,7 +89,7 @@ ${fieldType === "block" ? ' data-detached="true"' : ""}>${renderCell(genCellValu
popCellElement = cellItem;
}
if (updateIds.includes(cellItem.dataset.fieldId)) {
- const cellValue = response.data.values[cellItem.dataset.fieldId];
+ const cellValue: IAVCellValue = response.data.values[cellItem.dataset.fieldId];
if (cellValue.type === "checkbox" && cellItem.parentElement.querySelector(".av__gallery-tip")) {
cellValue.checkbox.content = cellItem.getAttribute("aria-label").split('<div class="ft__on-surface">')[0];
}
diff --git a/app/src/protyle/render/av/gallery/render.ts b/app/src/protyle/render/av/gallery/render.ts
index bae4f12c7e..72b3265fd9 100644
--- a/app/src/protyle/render/av/gallery/render.ts
+++ b/app/src/protyle/render/av/gallery/render.ts
@@ -1,3 +1,4 @@
+import {isAVRenderData} from "../renderData";
import {hasClosestBlock, hasClosestByClassName} from "../../../util/hasClosest";
import {Constants} from "../../../../constants";
import {fetchSyncPost} from "../../../../util/fetch";
@@ -269,25 +270,31 @@ export const renderGallery = async (options: {
if (!data) {
const avPageSize = getPageSize(options.blockElement);
const locateParams = getAVLocateParams(options.blockElement, !created && !snapshot);
- const historical = !!created || !!snapshot;
- const response = await fetchSyncPost(created ? "/api/av/renderHistoryAttributeView" : (snapshot ? "/api/av/renderSnapshotAttributeView" : "/api/av/renderAttributeView"), {
+ const common = {
id: options.blockElement.getAttribute("data-av-id"),
- created,
- snapshot,
+ blockID: options.blockElement.getAttribute("data-node-id"),
+ viewID: locateParams?.viewID || "",
+ };
+ const paging = {
pageSize: avPageSize.unGroupPageSize,
groupPaging: avPageSize.groupPageSize,
- viewID: locateParams?.viewID || "",
- ...(historical ? {carrierViewID: options.blockElement.getAttribute(Constants.CUSTOM_SY_AV_VIEW) || ""} : {}),
query: resetData.query.trim(),
- blockID: options.blockElement.getAttribute("data-node-id"),
+ };
+ const carrierViewID = options.blockElement.getAttribute(Constants.CUSTOM_SY_AV_VIEW) || "";
+ const response = await (created ? fetchSyncPost("/api/av/renderHistoryAttributeView", {
+ ...common, ...paging, created, carrierViewID,
+ }, undefined, false) : snapshot ? fetchSyncPost("/api/av/renderSnapshotAttributeView", {
+ ...common, snapshot, carrierViewID,
+ }, undefined, false) : fetchSyncPost("/api/av/renderAttributeView", {
+ ...common, ...paging,
initialLayout: options.blockElement.getAttribute("data-av-type"),
targetItemID: locateParams?.targetItemID || "",
targetGroupID: locateParams?.targetGroupID || "",
- }, undefined, false);
+ }, undefined, false));
if (!isCurrentAVRender(options.blockElement, renderToken)) {
return;
}
- if (response.code !== 0) {
+ if (response.code !== 0 || !isAVRenderData(response.data)) {
failAVRender(options.blockElement, response);
return;
}
diff --git a/app/src/protyle/render/av/groups.ts b/app/src/protyle/render/av/groups.ts
index a2d712cbec..606bc3ec0b 100644
--- a/app/src/protyle/render/av/groups.ts
+++ b/app/src/protyle/render/av/groups.ts
@@ -57,6 +57,9 @@ export const setGroupMethod = async (options: {
group: data,
ignoreRows: true,
});
+ if (response.code !== 0) {
+ return;
+ }
options.data.view = mergeGroupResponseView(options.data.view, response.data);
options.menuElement.innerHTML = getGroupsHTML(getFieldsByData(options.data), options.data.view);
bindGroupsEvent({
@@ -184,7 +187,9 @@ export const bindGroupsNumber = (options: {
group: options.data.view.group,
ignoreRows: true,
});
- options.data.view = mergeGroupResponseView(options.data.view, response.data);
+ if (response.code === 0) {
+ options.data.view = mergeGroupResponseView(options.data.view, response.data);
+ }
};
};
@@ -296,7 +301,9 @@ export const bindGroupsEvent = (options: {
group: options.data.view.group,
ignoreRows: true,
});
- options.data.view = mergeGroupResponseView(options.data.view, response.data);
+ if (response.code === 0) {
+ options.data.view = mergeGroupResponseView(options.data.view, response.data);
+ }
options.menuElement.innerHTML = getGroupsHTML(getFieldsByData(options.data), options.data.view);
bindGroupsEvent({
protyle: options.protyle,
@@ -370,7 +377,9 @@ export const goGroupsDate = (options: {
group: options.data.view.group,
ignoreRows: true,
});
- options.data.view = mergeGroupResponseView(options.data.view, response.data);
+ if (response.code === 0) {
+ options.data.view = mergeGroupResponseView(options.data.view, response.data);
+ }
options.menuElement.innerHTML = getGroupsHTML(getFieldsByData(options.data), options.data.view);
bindGroupsEvent({
protyle: options.protyle,
@@ -422,7 +431,9 @@ export const goGroupsSort = (options: {
group: options.data.view.group,
ignoreRows: true,
});
- options.data.view = mergeGroupResponseView(options.data.view, response.data);
+ if (response.code === 0) {
+ options.data.view = mergeGroupResponseView(options.data.view, response.data);
+ }
options.menuElement.innerHTML = getGroupsHTML(getFieldsByData(options.data), options.data.view);
bindGroupsEvent({
protyle: options.protyle,
diff --git a/app/src/protyle/render/av/kanban/render.ts b/app/src/protyle/render/av/kanban/render.ts
index beac227f90..605310de1e 100644
--- a/app/src/protyle/render/av/kanban/render.ts
+++ b/app/src/protyle/render/av/kanban/render.ts
@@ -1,3 +1,4 @@
+import {isAVRenderData} from "../renderData";
import {hasClosestByAttribute, hasClosestByClassName} from "../../../util/hasClosest";
import {getPageSize} from "../groups";
import {fetchSyncPost} from "../../../../util/fetch";
@@ -149,25 +150,31 @@ export const renderKanban = async (options: {
if (!data) {
const avPageSize = getPageSize(options.blockElement);
const locateParams = getAVLocateParams(options.blockElement, !created && !snapshot);
- const historical = !!created || !!snapshot;
- const response = await fetchSyncPost(created ? "/api/av/renderHistoryAttributeView" : (snapshot ? "/api/av/renderSnapshotAttributeView" : "/api/av/renderAttributeView"), {
+ const common = {
id: options.blockElement.getAttribute("data-av-id"),
- created,
- snapshot,
+ blockID: options.blockElement.getAttribute("data-node-id"),
+ viewID: locateParams?.viewID || "",
+ };
+ const paging = {
pageSize: avPageSize.unGroupPageSize,
groupPaging: avPageSize.groupPageSize,
- viewID: locateParams?.viewID || "",
- ...(historical ? {carrierViewID: options.blockElement.getAttribute(Constants.CUSTOM_SY_AV_VIEW) || ""} : {}),
query: resetData.query.trim(),
- blockID: options.blockElement.getAttribute("data-node-id"),
+ };
+ const carrierViewID = options.blockElement.getAttribute(Constants.CUSTOM_SY_AV_VIEW) || "";
+ const response = await (created ? fetchSyncPost("/api/av/renderHistoryAttributeView", {
+ ...common, ...paging, created, carrierViewID,
+ }, undefined, false) : snapshot ? fetchSyncPost("/api/av/renderSnapshotAttributeView", {
+ ...common, snapshot, carrierViewID,
+ }, undefined, false) : fetchSyncPost("/api/av/renderAttributeView", {
+ ...common, ...paging,
initialLayout: options.blockElement.getAttribute("data-av-type"),
targetItemID: locateParams?.targetItemID || "",
targetGroupID: locateParams?.targetGroupID || "",
- }, undefined, false);
+ }, undefined, false));
if (!isCurrentAVRender(options.blockElement, renderToken)) {
return;
}
- if (response.code !== 0) {
+ if (response.code !== 0 || !isAVRenderData(response.data)) {
failAVRender(options.blockElement, response);
return;
}
diff --git a/app/src/protyle/render/av/layout.ts b/app/src/protyle/render/av/layout.ts
index 88e203a9f0..923e693598 100644
--- a/app/src/protyle/render/av/layout.ts
+++ b/app/src/protyle/render/av/layout.ts
@@ -1,3 +1,4 @@
+import {isAVRenderData} from "./renderData";
import {transaction} from "../../wysiwyg/transaction";
import {Constants} from "../../../constants";
import {fetchSyncPost} from "../../../util/fetch";
@@ -416,6 +417,10 @@ export const updateLayout = async (options: {
avID: options.nodeElement.getAttribute("data-av-id"),
layoutType: options.target.getAttribute("data-view-type")
});
+ if (response.code !== 0 || !isAVRenderData(response.data)) {
+ options.target.removeAttribute("data-load");
+ return;
+ }
const menuElement = document.querySelector(".av__panel").lastElementChild as HTMLElement;
menuElement.innerHTML = getLayoutHTML(response.data);
// 切换布局类型后菜单高度变化(如表格→看板),需重新定位避免底部溢出视窗
diff --git a/app/src/protyle/render/av/newItemTemplate.ts b/app/src/protyle/render/av/newItemTemplate.ts
index 80499e2fc4..cb1fdbc766 100644
--- a/app/src/protyle/render/av/newItemTemplate.ts
+++ b/app/src/protyle/render/av/newItemTemplate.ts
@@ -907,11 +907,11 @@ export const createAttributeViewItem = (options: {
app: options.protyle.app.appId,
session: options.protyle.id,
}, response => {
- if (response.code === 1 && response.data?.unavailableNotebook) {
+ if (response.code === 1 && response.data && "unavailableNotebook" in response.data && response.data.unavailableNotebook) {
showMessage(window.siyuan.languages.newItemTemplateUnavailableNotebookTip, 6000, "error");
return;
}
- const warnings = (response.data?.warnings || []) as string[];
+ const warnings = response.data && "warnings" in response.data ? response.data.warnings || [] : [];
if (warnings.length) {
showMessage(warnings.map(item => escapeHtml(item)).join("<br>"));
}
@@ -938,11 +938,11 @@ export const createAttributeViewItemDocs = (options: {
app: options.protyle.app.appId,
session: options.protyle.id,
}, response => {
- if (response.code === 1 && response.data?.unavailableNotebook) {
+ if (response.code === 1 && response.data && "unavailableNotebook" in response.data && response.data.unavailableNotebook) {
showMessage(window.siyuan.languages.newItemTemplateUnavailableNotebookTip, 6000, "error");
return;
}
- const warnings = (response.data?.warnings || []) as string[];
+ const warnings = response.data && "warnings" in response.data ? response.data.warnings || [] : [];
if (warnings.length) {
showMessage(warnings.map(item => escapeHtml(item)).join("<br>"));
}
diff --git a/app/src/protyle/render/av/openMenuPanel.ts b/app/src/protyle/render/av/openMenuPanel.ts
index f459f04930..edecefb907 100644
--- a/app/src/protyle/render/av/openMenuPanel.ts
+++ b/app/src/protyle/render/av/openMenuPanel.ts
@@ -1987,12 +1987,16 @@ export const openMenuPanel = (options: {
event.stopPropagation();
break;
} else if (type === "set-layout") {
- data = await updateLayout({
+ const updatedData = await updateLayout({
target,
protyle: options.protyle,
nodeElement: options.blockElement,
data
});
+ if (!updatedData) {
+ break;
+ }
+ data = updatedData;
fields = getFieldsByData(data);
event.preventDefault();
event.stopPropagation();
diff --git a/app/src/protyle/render/av/openStandaloneDatabaseItem.ts b/app/src/protyle/render/av/openStandaloneDatabaseItem.ts
index 1af1b540b8..cbd97ad9ef 100644
--- a/app/src/protyle/render/av/openStandaloneDatabaseItem.ts
+++ b/app/src/protyle/render/av/openStandaloneDatabaseItem.ts
@@ -24,9 +24,9 @@ export const openStandaloneDatabaseItem = async (app: App, databaseBlockID: stri
if (response.code !== 0) {
return false;
}
- const tables: {avID: string, keyValues: {key: {type: string}, values: IAVCellValue[]}[]}[] = response.data || [];
+ const tables = response.data || [];
const primary = tables.find(table => table.avID === avID)?.keyValues
- .find(keyValue => keyValue.key.type === "block")?.values.find(value => value.blockID === itemID);
+ .find(keyValue => keyValue.key.type === "block")?.values?.find(value => value.blockID === itemID);
if (!primary?.block) {
showMessage(window.siyuan.languages.databaseItemNotFound);
return false;
diff --git a/app/src/protyle/render/av/render.ts b/app/src/protyle/render/av/render.ts
index 7e549a0d47..94e959e67a 100644
--- a/app/src/protyle/render/av/render.ts
+++ b/app/src/protyle/render/av/render.ts
@@ -1,3 +1,4 @@
+import {isAVRenderData} from "./renderData";
import {fetchSyncPost} from "../../../util/fetch";
import {getColIconByType} from "./col";
import {Constants} from "../../../constants";
@@ -661,28 +662,34 @@ export const avRender = async (element: Element, protyle: IProtyle, cb?: (data:
const created = protyle.options.history?.created;
const snapshot = protyle.options.history?.snapshot;
const locateParams = getAVLocateParams(e, !created && !snapshot);
- const historical = !!created || !!snapshot;
let data: IAV;
if (!avData) {
- const response = await fetchSyncPost(created ? "/api/av/renderHistoryAttributeView" : (snapshot ? "/api/av/renderSnapshotAttributeView" : "/api/av/renderAttributeView"), {
+ const common = {
id: e.getAttribute("data-av-id"),
- created,
- snapshot,
+ blockID: e.getAttribute("data-node-id"),
+ viewID: locateParams?.viewID || "",
+ };
+ const paging = {
pageSize: avPageSize.unGroupPageSize,
groupPaging: avPageSize.groupPageSize,
- viewID: locateParams?.viewID || "",
- ...(historical ? {carrierViewID: e.getAttribute(Constants.CUSTOM_SY_AV_VIEW) || ""} : {}),
query: resetData.query.trim(),
- blockID: e.getAttribute("data-node-id"),
+ };
+ const carrierViewID = e.getAttribute(Constants.CUSTOM_SY_AV_VIEW) || "";
+ const response = await (created ? fetchSyncPost("/api/av/renderHistoryAttributeView", {
+ ...common, ...paging, created, carrierViewID,
+ }, undefined, false) : snapshot ? fetchSyncPost("/api/av/renderSnapshotAttributeView", {
+ ...common, snapshot, carrierViewID,
+ }, undefined, false) : fetchSyncPost("/api/av/renderAttributeView", {
+ ...common, ...paging,
initialLayout: e.getAttribute("data-av-type"),
createIfNotExist: !protyle.block.action?.includes(Constants.CB_GET_AV_NO_CREATE),
targetItemID: locateParams?.targetItemID || "",
targetGroupID: locateParams?.targetGroupID || "",
- }, undefined, false);
+ }, undefined, false));
if (!isCurrentAVRender(e, renderToken)) {
continue;
}
- if (response.code !== 0) {
+ if (response.code !== 0 || !isAVRenderData(response.data)) {
failAVRender(e, response);
continue;
}
diff --git a/app/src/protyle/render/av/renderData.ts b/app/src/protyle/render/av/renderData.ts
new file mode 100644
index 0000000000..225a42d7e3
--- /dev/null
+++ b/app/src/protyle/render/av/renderData.ts
@@ -0,0 +1,6 @@
+import type {AVArchiveRenderData, AVRenderData, AVRenderResult} from "../../../types/api";
+
+// 渲染响应包含视图时才进入界面更新,保留视图不存在的独立错误载荷。
+export const isAVRenderData = (data: AVRenderResult | AVArchiveRenderData): data is AVRenderData | AVArchiveRenderData => {
+ return !!data && !!data.view;
+};
diff --git a/app/src/protyle/render/av/rollup.ts b/app/src/protyle/render/av/rollup.ts
index 02a61af2ce..9f7cdbad02 100644
--- a/app/src/protyle/render/av/rollup.ts
+++ b/app/src/protyle/render/av/rollup.ts
@@ -115,7 +115,7 @@ const genSearchList = (element: Element, keyword: string, avId: string, isRelati
keyword
}, (response) => {
let html = "";
- response.data.keys.forEach((item: IAVColumn, index: number) => {
+ response.data.keys.forEach((item, index) => {
html += `<div class="b3-list-item b3-list-item--narrow${index === 0 ? " b3-list-item--focus" : ""}" data-col-id="${item.id}" ${isRelation ? `data-target-av-id="${item.relation.avID}"` : `data-col-type="${item.type}"`}>
${item.icon ? unicode2Emoji(item.icon, "b3-list-item__graphic", true) : `<svg class="b3-list-item__graphic"><use xlink:href="#${getColIconByType(item.type)}"></use></svg>`}
<span class="b3-list-item__text">${escapeHtml(item.name || window.siyuan.languages.title)}</span>
@@ -248,7 +248,7 @@ export const bindRollupData = (options: {
}
if (oldValue.keyID && targetKeyAVId) {
fetchPost("/api/av/getAttributeView", {id: targetKeyAVId}, (response) => {
- response.data.av.keyValues.find((item: { key: { id: string, name: string, type: TAVCol } }) => {
+ response.data.av.keyValues.find((item) => {
if (item.key.id === oldValue.keyID) {
goSearchRollupTargetElement.querySelector(".b3-menu__accelerator").textContent = item.key.name;
const goSearchRollupCalcElement = options.menuElement.querySelector('[data-type="goSearchRollupCalc"]') as HTMLElement;
diff --git a/app/src/protyle/util/insertHTML.ts b/app/src/protyle/util/insertHTML.ts
index 906d940a03..46fb435560 100644
--- a/app/src/protyle/util/insertHTML.ts
+++ b/app/src/protyle/util/insertHTML.ts
@@ -321,9 +321,12 @@ const pasteAVMatrix = async (options: {
startItemID,
count: Math.max(options.values.length, 1),
});
- const view = response.data?.view as IAVTable;
+ if (response.code !== 0) {
+ return;
+ }
+ const view: IAVTable = response.data?.view;
const rows = view?.rows;
- if (response.code !== 0 || !Array.isArray(rows) || rows.length === 0) {
+ if (!Array.isArray(rows) || rows.length === 0) {
return;
}
diff --git a/app/src/types/api/index.d.ts b/app/src/types/api/index.d.ts
index f2e30b592a..353df5f166 100644
--- a/app/src/types/api/index.d.ts
+++ b/app/src/types/api/index.d.ts
@@ -188,12 +188,274 @@ export type AIToolEffectsInput = { "dataEgress"?: boolean | null; "externalCost"
export type AIUserSkillInfo = { "description": string; "enabled": boolean; "id": string; "name": string; "shadowed": boolean; };
+export type AVArchiveRenderData = { "colorOrder": Array<string> | null; "customColors": Array<AVAttributeViewCustomColor | null> | null; "defaultTemplateID": string; "id": string; "isMirror": boolean; "name": string; "newItemTemplates": Array<AVNewItemTemplate | null> | null; "usedCustomColorIndexes": Array<number> | null; "view": AVViewInstance; "viewID": string; "viewType": "table" | "gallery" | "kanban"; "views": Array<AVViewData | null> | null; };
+
+export type AVAttributeViewBacklink = { "avID": string; "avName": string; "blockIDs": Array<string> | null; "boundBlockID": string; "boxID": string; "databaseBlockID": string; "databasePath": string; "icon": string; "isDetached": boolean; "itemID": string; "relations": Array<AVAttributeViewBacklinkRelation | null> | null; "title": string; "valueID": string; };
+
+export type AVAttributeViewBacklinkRelation = { "keyID": string; "keyName": string; "targetAvID": string; "targetItemID": string; };
+
+export type AVAttributeViewBacklinks = { "items": Array<AVAttributeViewBacklink | null> | null; "total": number; };
+
+export type AVAttributeViewColor = { "dark": AVAttributeViewColorTheme; "light": AVAttributeViewColorTheme; };
+
+export type AVAttributeViewColorInput = { "dark"?: AVAttributeViewColorThemeInput | null; "light"?: AVAttributeViewColorThemeInput | null; };
+
+export type AVAttributeViewColorTheme = { "backgroundColor": string; "color": string; };
+
+export type AVAttributeViewColorThemeInput = { "backgroundColor"?: string | null; "color"?: string | null; };
+
+export type AVAttributeViewContextFilter = { "keyID": string; "spec": 1; };
+
+export type AVAttributeViewContextFilterField = { "icon": string; "id": string; "name": string; "targetAvID": string; };
+
+export type AVAttributeViewCustomColor = { "dark": AVAttributeViewColorTheme; "hidden"?: boolean; "index": number; "light": AVAttributeViewColorTheme; };
+
+export type AVAttributeViewData = { "cardCoverPositions"?: Record<string, Record<string, AVCardCoverPosition | null> | null>; "customColors": Array<AVAttributeViewCustomColor | null> | null; "defaultTemplateID"?: string; "id": string; "keyIDs": Array<string> | null; "keyValues": Array<AVKeyValues | null> | null; "name": string; "newItemTemplates"?: Array<AVNewItemTemplate | null>; "spec": number; "viewID": string; "views": Array<AVView | null> | null; };
+
+export type AVAttributeViewFieldView = { "hidden": boolean; "icon": string; "id": string; "name": string; "type": "table" | "gallery" | "kanban"; };
+
+export type AVAttributeViewGroupItemPosition = { "groupID": string; "previousID": string; };
+
+export type AVAttributeViewItemPosition = { "groups": Array<AVAttributeViewGroupItemPosition | null> | null; "previousID": string; "viewID": string; };
+
+export type AVAttributeViewRenderTarget = { "groupID"?: string; "index": number; "itemID": string; "offset": number; "pageSize": number; "status": "visible" | "filtered" | "itemNotFound" | "groupHidden"; };
+
+export type AVAttributeViewSearchTarget = { "avID": string; "boundBlockID": string; "databaseBlockID": string; "groupID"?: string; "isDetached": boolean; "itemID": string; "keywords": Array<string> | null; "matchedKeyID": string; "matchedValueID": string; "notebookID": string; "title": string; "valueID": string; "viewID"?: string; };
+
+export type AVAvSearchResult = { "avID": string; "avName": string; "blockID": string; "children"?: Array<AVAvSearchResult | null>; "hPath": string; "matched"?: boolean; "viewID": string; "viewLayout": "" | "table" | "gallery" | "kanban"; "viewName": string; };
+
+export type AVBlockAttributeViewKeys = { "avID": string; "avName": string; "blockIDs": Array<string> | null; "customColors": Array<AVAttributeViewCustomColor | null> | null; "itemPositions": Array<AVAttributeViewItemPosition | null> | null; "keyValues": Array<AVKeyValues | null> | null; };
+
+export type AVBlockSourceInput = { "content"?: string | null; "id"?: string | null; "isDetached": boolean; "itemID"?: string | null; };
+
+export type AVCardCoverPosition = { "image": string; "x": number; "y": number; };
+
+export type AVCellUpdateInput = { "itemID"?: string | null; "keyID": string; "rowID"?: string | null; "value"?: AVValueInput | null; };
+
+export type AVContextFilterData = { "contextFilter": AVAttributeViewContextFilter | null; };
+
+export type AVCreateAttributeViewItemDocsResult = { "blockIDs": Array<string> | null; "itemIDs": Array<string> | null; "skippedItemIDs"?: Array<string>; "warnings"?: Array<string>; };
+
+export type AVCreateAttributeViewItemResult = { "blockID": string; "content": string; "isDetached": boolean; "itemID": string; "warnings"?: Array<string>; };
+
+export type AVCreateItemDocsResult = (AVCreateAttributeViewItemDocsResult & { "unavailableNotebook"?: never; }) | (AVUnavailableNotebook & { "blockIDs"?: never; "itemIDs"?: never; "skippedItemIDs"?: never; "warnings"?: never; });
+
+export type AVCreateItemResult = (AVCreateAttributeViewItemResult & { "unavailableNotebook"?: never; }) | (AVUnavailableNotebook & { "blockID"?: never; "content"?: never; "isDetached"?: never; "itemID"?: never; "warnings"?: never; });
+
+export type AVCreated = { "includeTime": boolean; };
+
+export type AVData = { "av": AVAttributeViewData | null; };
+
+export type AVDate = { "autoFillNow": boolean; "fillSpecificTime": boolean; };
+
+export type AVDuplicateData = { "avID": string; "blockID": string; };
+
+export type AVFieldCalc = { "operator": string; "result": AVValue | null; "template"?: string; };
+
+export type AVFieldViewsData = { "views": Array<AVAttributeViewFieldView | null> | null; };
+
+export type AVFilterSortData = { "filters": Array<AVViewFilter | null> | null; "sorts": Array<AVViewSort | null> | null; };
+
+export type AVGallery = { "cardAspectRatio": number; "cardAspectRatioValue": number; "cardCount": number; "cardLayout": number; "cardSize": number; "cardWidth": number; "cards": Array<AVGalleryCard | null> | null; "coverFrom": number; "coverFromAssetKeyID"?: string; "desc": string; "displayEmptyFields": boolean; "displayFieldName": boolean; "fields": Array<AVGalleryField | null> | null; "filters": Array<AVViewFilter | null> | null; "fitImage": boolean; "group": AVViewGroup | null; "groupCalc"?: AVGroupCalc; "groupFolded": boolean; "groupHidden": number; "groupKey"?: AVKey; "groupValue"?: AVValue; "groups"?: Array<AVViewInstance>; "hideAttrViewName": boolean; "icon": string; "id": string; "name": string; "pageSize": number; "showIcon": boolean; "sorts": Array<AVViewSort | null> | null; "wrapField": boolean; } | ({ "cardAspectRatio": number; "cardAspectRatioValue": number; "cardCount": number; "cardLayout": number; "cardSize": number; "cardWidth": number; "cards": Array<AVGalleryCard | null> | null; "coverFrom": number; "coverFromAssetKeyID"?: string; "displayEmptyFields": boolean; "displayFieldName": boolean; "fields": Array<AVGalleryField | null> | null; "fitImage": boolean; } & { "desc"?: never; "filters"?: never; "group"?: never; "groupCalc"?: never; "groupFolded"?: never; "groupHidden"?: never; "groupKey"?: never; "groupValue"?: never; "groups"?: never; "hideAttrViewName"?: never; "icon"?: never; "id"?: never; "name"?: never; "pageSize"?: never; "showIcon"?: never; "sorts"?: never; "wrapField"?: never; });
+
+export type AVGalleryCard = { "coverContent": string; "coverPosition"?: AVCardCoverPosition; "coverURL": string; "id": string; "values": Array<AVGalleryFieldValue | null> | null; };
+
+export type AVGalleryField = { "calc": AVFieldCalc | null; "created"?: AVCreated; "date"?: AVDate; "dateFormat"?: "" | "full" | "month-day-year" | "day-month-year" | "year-month-day"; "desc": string; "fullRow": boolean; "hidden": boolean; "icon": string; "id": string; "name": string; "numberFormat": string; "options"?: Array<AVSelectOption | null>; "relation"?: AVRelation; "renderTemplate"?: string; "rollup"?: AVRollup; "template": string; "type": "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "updated"?: AVUpdated; "wrap": boolean; } | ({ "fullRow": boolean; } & { "calc"?: never; "created"?: never; "date"?: never; "dateFormat"?: never; "desc"?: never; "hidden"?: never; "icon"?: never; "id"?: never; "name"?: never; "numberFormat"?: never; "options"?: never; "relation"?: never; "renderTemplate"?: never; "rollup"?: never; "template"?: never; "type"?: never; "updated"?: never; "wrap"?: never; });
+
+export type AVGalleryFieldValue = { "id": string; "value": AVValue | null; "valueType": "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; } | (Record<string, never> & { "id"?: never; "value"?: never; "valueType"?: never; });
+
+export type AVGroupCalc = { "calc": AVFieldCalc | null; "field": string; };
+
+export type AVGroupPagingInput = { "page"?: number | null; "pageSize"?: number | null; };
+
+export type AVGroupRange = { "numEnd": number; "numStart": number; "numStep": number; };
+
+export type AVGroupRangeInput = { "numEnd"?: number | null; "numStart"?: number | null; "numStep"?: number | null; };
+
+export type AVIDData = { "id": string; };
+
+export type AVKanban = { "cardAspectRatio": number; "cardAspectRatioValue": number; "cardCount": number; "cardLayout": number; "cardSize": number; "cardWidth": number; "cards": Array<AVKanbanCard | null> | null; "coverFrom": number; "coverFromAssetKeyID"?: string; "desc": string; "displayEmptyFields": boolean; "displayFieldName": boolean; "fields": Array<AVKanbanField | null> | null; "fillColBackgroundColor": boolean; "filters": Array<AVViewFilter | null> | null; "fitImage": boolean; "group": AVViewGroup | null; "groupCalc"?: AVGroupCalc; "groupFolded": boolean; "groupHidden": number; "groupKey"?: AVKey; "groupValue"?: AVValue; "groups"?: Array<AVViewInstance>; "hideAttrViewName": boolean; "icon": string; "id": string; "name": string; "pageSize": number; "showIcon": boolean; "sorts": Array<AVViewSort | null> | null; "wrapField": boolean; } | ({ "cardAspectRatio": number; "cardAspectRatioValue": number; "cardCount": number; "cardLayout": number; "cardSize": number; "cardWidth": number; "cards": Array<AVKanbanCard | null> | null; "coverFrom": number; "coverFromAssetKeyID"?: string; "displayEmptyFields": boolean; "displayFieldName": boolean; "fields": Array<AVKanbanField | null> | null; "fillColBackgroundColor": boolean; "fitImage": boolean; } & { "desc"?: never; "filters"?: never; "group"?: never; "groupCalc"?: never; "groupFolded"?: never; "groupHidden"?: never; "groupKey"?: never; "groupValue"?: never; "groups"?: never; "hideAttrViewName"?: never; "icon"?: never; "id"?: never; "name"?: never; "pageSize"?: never; "showIcon"?: never; "sorts"?: never; "wrapField"?: never; });
+
+export type AVKanbanCard = { "coverContent": string; "coverPosition"?: AVCardCoverPosition; "coverURL": string; "id": string; "values": Array<AVKanbanFieldValue | null> | null; };
+
+export type AVKanbanField = { "calc": AVFieldCalc | null; "created"?: AVCreated; "date"?: AVDate; "dateFormat"?: "" | "full" | "month-day-year" | "day-month-year" | "year-month-day"; "desc": string; "fullRow": boolean; "hidden": boolean; "icon": string; "id": string; "name": string; "numberFormat": string; "options"?: Array<AVSelectOption | null>; "relation"?: AVRelation; "renderTemplate"?: string; "rollup"?: AVRollup; "template": string; "type": "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "updated"?: AVUpdated; "wrap": boolean; } | ({ "fullRow": boolean; } & { "calc"?: never; "created"?: never; "date"?: never; "dateFormat"?: never; "desc"?: never; "hidden"?: never; "icon"?: never; "id"?: never; "name"?: never; "numberFormat"?: never; "options"?: never; "relation"?: never; "renderTemplate"?: never; "rollup"?: never; "template"?: never; "type"?: never; "updated"?: never; "wrap"?: never; });
+
+export type AVKanbanFieldValue = { "id": string; "value": AVValue | null; "valueType": "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; } | (Record<string, never> & { "id"?: never; "value"?: never; "valueType"?: never; });
+
+export type AVKey = { "created"?: AVCreated; "date"?: AVDate; "dateFormat"?: "" | "full" | "month-day-year" | "day-month-year" | "year-month-day"; "desc": string; "icon": string; "id": string; "name": string; "numberFormat": string; "options"?: Array<AVSelectOption | null>; "relation"?: AVRelation; "renderTemplate"?: string; "rollup"?: AVRollup; "template": string; "type": "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "updated"?: AVUpdated; };
+
+export type AVKeyValues = { "key": AVKey | null; "values"?: Array<AVValue | null>; };
+
+export type AVKeysData = { "keys": Array<AVKey | null> | null; };
+
+export type AVLayoutGallery = { "cardAspectRatio": number; "cardAspectRatioValue": number; "cardIds": Array<string> | null; "cardLayout": number; "cardSize": number; "cardWidth": number; "coverFrom": number; "coverFromAssetKeyID"?: string; "displayEmptyFields": boolean; "displayFieldName": boolean; "fields": Array<AVViewGalleryCardField | null> | null; "filters"?: Array<AVViewFilter | null>; "fitImage": boolean; "id": string; "pageSize"?: number; "showIcon": boolean; "sorts"?: Array<AVViewSort | null>; "spec": number; "wrapField": boolean; } | ({ "cardAspectRatio": number; "cardAspectRatioValue": number; "cardIds": Array<string> | null; "cardLayout": number; "cardSize": number; "cardWidth": number; "coverFrom": number; "coverFromAssetKeyID"?: string; "displayEmptyFields": boolean; "displayFieldName": boolean; "fields": Array<AVViewGalleryCardField | null> | null; "fitImage": boolean; } & { "filters"?: never; "id"?: never; "pageSize"?: never; "showIcon"?: never; "sorts"?: never; "spec"?: never; "wrapField"?: never; });
+
+export type AVLayoutKanban = { "cardAspectRatio": number; "cardAspectRatioValue": number; "cardLayout": number; "cardSize": number; "cardWidth": number; "coverFrom": number; "coverFromAssetKeyID"?: string; "displayEmptyFields": boolean; "displayFieldName": boolean; "fields": Array<AVViewKanbanField | null> | null; "fillColBackgroundColor": boolean; "filters"?: Array<AVViewFilter | null>; "fitImage": boolean; "id": string; "pageSize"?: number; "showIcon": boolean; "sorts"?: Array<AVViewSort | null>; "spec": number; "wrapField": boolean; } | ({ "cardAspectRatio": number; "cardAspectRatioValue": number; "cardLayout": number; "cardSize": number; "cardWidth": number; "coverFrom": number; "coverFromAssetKeyID"?: string; "displayEmptyFields": boolean; "displayFieldName": boolean; "fields": Array<AVViewKanbanField | null> | null; "fillColBackgroundColor": boolean; "fitImage": boolean; } & { "filters"?: never; "id"?: never; "pageSize"?: never; "showIcon"?: never; "sorts"?: never; "spec"?: never; "wrapField"?: never; });
+
+export type AVLayoutTable = { "columns": Array<AVViewTableColumn | null> | null; "filters"?: Array<AVViewFilter | null>; "id": string; "pageSize"?: number; "rowIds": Array<string> | null; "showIcon": boolean; "sorts"?: Array<AVViewSort | null>; "spec": number; "wrapField": boolean; } | ({ "columns": Array<AVViewTableColumn | null> | null; "rowIds": Array<string> | null; } & { "filters"?: never; "id"?: never; "pageSize"?: never; "showIcon"?: never; "sorts"?: never; "spec"?: never; "wrapField"?: never; });
+
+export type AVNewItemFieldValue = { "mode": "static" | "currentTime"; "value"?: AVValue; };
+
+export type AVNewItemSaveLocation = { "boxID"?: string; "pathTemplate": string; };
+
+export type AVNewItemTemplate = { "contentTemplatePath"?: string; "fieldValues"?: Record<string, AVNewItemFieldValue | null>; "hideInFileTree"?: boolean; "icon"?: string; "id": string; "name": string; "primaryKeyTemplate"?: string; "saveLocation"?: AVNewItemSaveLocation; "targetType": "detached" | "document"; };
+
+export type AVPasteRowsData = { "inferableKeyIDs": Array<string> | null; "view": AVTable | null; };
+
+export type AVPathsData = { "paths": Array<string> | null; };
+
+export type AVPrimaryValuesData = { "blockIDs": Array<string> | null; "name": string; "rows": AVKeyValues | null; "total": number; };
+
+export type AVRelation = { "avID": string; "backKeyID": string; "candidateFilters"?: Array<AVViewFilter | null>; "isTwoWay": boolean; };
+
+export type AVRelationCandidatesData = { "blockIDs": Array<string> | null; "columns": Array<AVTableColumn | null> | null; "customColors": Array<AVAttributeViewCustomColor | null> | null; "name": string; "notebookID": string; "rows": Array<AVTableRow | null> | null; "selectedRows": Array<AVTableRow | null> | null; "total": number; };
+
+export type AVRelativeDate = { "count": number; "direction": number; "unit": number; };
+
+export type AVRelativeDateInput = { "count"?: number | null; "direction"?: number | null; "unit"?: number | null; };
+
+export type AVRenderData = { "colorOrder": Array<string> | null; "contextFilter": AVAttributeViewContextFilter | null; "contextFilterFields": Array<AVAttributeViewContextFilterField | null> | null; "customColors": Array<AVAttributeViewCustomColor | null> | null; "defaultTemplateID": string; "id": string; "isMirror": boolean; "name": string; "newItemTemplates": Array<AVNewItemTemplate | null> | null; "target"?: AVAttributeViewRenderTarget; "usedCustomColorIndexes": Array<number> | null; "view": AVViewInstance; "viewID": string; "viewType": "table" | "gallery" | "kanban"; "views": Array<AVViewData | null> | null; };
+
+export type AVRenderResult = (AVRenderData & { "error"?: never; }) | (AVViewNotFound & { "colorOrder"?: never; "contextFilter"?: never; "contextFilterFields"?: never; "customColors"?: never; "defaultTemplateID"?: never; "id"?: never; "isMirror"?: never; "name"?: never; "newItemTemplates"?: never; "target"?: never; "usedCustomColorIndexes"?: never; "view"?: never; "viewID"?: never; "viewType"?: never; "views"?: never; });
+
+export type AVRollup = { "calc": AVRollupCalc | null; "filters"?: Array<AVViewFilter | null>; "keyID": string; "relationKeyID": string; };
+
+export type AVRollupCalc = { "operator": string; "result": AVValue | null; };
+
+export type AVRowOrder = { "groups": Record<string, Array<string> | null> | null; "itemIDs": Array<string> | null; "sorts": Array<AVViewSort | null> | null; };
+
+export type AVRowOrderChange = { "expected": AVRowOrder | null; "rowOrder": AVRowOrder | null; "validateGroup"?: string; };
+
+export type AVRowSortOperation = { "action": "sortAttrViewRow"; "avID": string; "backRelationKeyID": string; "blockID": string; "blockIDs": Array<string> | null; "context": Record<string, string> | null; "data": AVRowOrderChange | null; "deckID": string; "format": string; "groupID": string; "id": string; "ignoreDefaultFill": boolean; "isDetached": boolean; "isTwoWay": boolean; "keyID": string; "layout": string; "name": string; "nextID": string; "parentID": string; "previousID": string; "removeDest": boolean; "retData": null; "rootID": string; "rowID": string; "srcIDs": Array<string> | null; "srcs": null; "targetGroupID": string; "type": ""; "viewID": string; "viewIDs"?: Array<string>; };
+
+export type AVRowSortPreview = { "conflict": boolean; "doOperations": Array<AVRowSortOperation | null> | null; "undoOperations": Array<AVRowSortOperation | null> | null; };
+
+export type AVSearchData = { "results": Array<AVAvSearchResult | null> | null; };
+
+export type AVSelectOption = { "color": string; "desc": string; "name": string; "resolvedColor"?: AVAttributeViewColor; };
+
+export type AVTable = { "columns": Array<AVTableColumn | null> | null; "desc": string; "filters": Array<AVViewFilter | null> | null; "group": AVViewGroup | null; "groupCalc"?: AVGroupCalc; "groupFolded": boolean; "groupHidden": number; "groupKey"?: AVKey; "groupValue"?: AVValue; "groups"?: Array<AVViewInstance>; "hideAttrViewName": boolean; "icon": string; "id": string; "name": string; "pageSize": number; "rowCount": number; "rows": Array<AVTableRow | null> | null; "showIcon": boolean; "sorts": Array<AVViewSort | null> | null; "wrapField": boolean; } | ({ "columns": Array<AVTableColumn | null> | null; "rowCount": number; "rows": Array<AVTableRow | null> | null; } & { "desc"?: never; "filters"?: never; "group"?: never; "groupCalc"?: never; "groupFolded"?: never; "groupHidden"?: never; "groupKey"?: never; "groupValue"?: never; "groups"?: never; "hideAttrViewName"?: never; "icon"?: never; "id"?: never; "name"?: never; "pageSize"?: never; "showIcon"?: never; "sorts"?: never; "wrapField"?: never; });
+
+export type AVTableCell = { "bgColor": string; "color": string; "id": string; "value": AVValue | null; "valueType": "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; } | ({ "bgColor": string; "color": string; } & { "id"?: never; "value"?: never; "valueType"?: never; });
+
+export type AVTableColumn = { "align": "" | "left" | "center" | "right"; "calc": AVFieldCalc | null; "created"?: AVCreated; "date"?: AVDate; "dateFormat"?: "" | "full" | "month-day-year" | "day-month-year" | "year-month-day"; "desc": string; "hidden": boolean; "icon": string; "id": string; "name": string; "numberFormat": string; "options"?: Array<AVSelectOption | null>; "pin": boolean; "relation"?: AVRelation; "renderTemplate"?: string; "rollup"?: AVRollup; "template": string; "type": "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "updated"?: AVUpdated; "width": string; "wrap": boolean; } | ({ "align": "" | "left" | "center" | "right"; "pin": boolean; "width": string; } & { "calc"?: never; "created"?: never; "date"?: never; "dateFormat"?: never; "desc"?: never; "hidden"?: never; "icon"?: never; "id"?: never; "name"?: never; "numberFormat"?: never; "options"?: never; "relation"?: never; "renderTemplate"?: never; "rollup"?: never; "template"?: never; "type"?: never; "updated"?: never; "wrap"?: never; });
+
+export type AVTableRow = { "cells": Array<AVTableCell | null> | null; "id": string; };
+
+export type AVUnavailableNotebook = { "unavailableNotebook": true; };
+
+export type AVUpdated = { "includeTime": boolean; };
+
+export type AVValue = { "block"?: AVValueBlock; "blockID"?: string; "checkbox"?: AVValueCheckbox; "created"?: AVValueCreated; "createdAt"?: number; "date"?: AVValueDate; "email"?: AVValueEmail; "id"?: string; "isDetached"?: boolean; "keyID"?: string; "mAsset"?: Array<AVValueAsset | null>; "mSelect"?: Array<AVValueSelect | null>; "number"?: AVValueNumber; "phone"?: AVValuePhone; "relation"?: AVValueRelation; "renderedContent"?: string; "rollup"?: AVValueRollup; "template"?: AVValueTemplate; "text"?: AVValueText; "type"?: "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "updated"?: AVValueUpdated; "updatedAt"?: number; "url"?: AVValueURL; };
+
+export type AVValueAsset = { "content": string; "name": string; "type": "file" | "image"; };
+
+export type AVValueAssetInput = { "content"?: string | null; "name"?: string | null; "type"?: "file" | "image"; };
+
+export type AVValueBlock = { "content": string; "created"?: number; "icon"?: string; "id"?: string; "refSubtype"?: "s" | "d"; "updated"?: number; };
+
+export type AVValueBlockInput = { "content"?: string | null; "created"?: number | null; "icon"?: string | null; "id"?: string | null; "refSubtype"?: "s" | "d"; "updated"?: number | null; };
+
+export type AVValueCheckbox = { "checked": boolean; };
+
+export type AVValueCheckboxInput = { "checked"?: boolean | null; };
+
+export type AVValueCreated = { "content": number; "content2": number; "formattedContent": string; "isNotEmpty": boolean; "isNotEmpty2": boolean; };
+
+export type AVValueCreatedInput = { "content"?: number | null; "content2"?: number | null; "formattedContent"?: string | null; "isNotEmpty"?: boolean | null; "isNotEmpty2"?: boolean | null; };
+
+export type AVValueData = { "value": AVValue | null; };
+
+export type AVValueDate = { "content": number; "content2": number; "formattedContent": string; "hasEndDate": boolean; "isNotEmpty": boolean; "isNotEmpty2": boolean; "isNotTime": boolean; };
+
+export type AVValueDateInput = { "content"?: number | null; "content2"?: number | null; "formattedContent"?: string | null; "hasEndDate"?: boolean | null; "isNotEmpty"?: boolean | null; "isNotEmpty2"?: boolean | null; "isNotTime"?: boolean | null; };
+
+export type AVValueEmail = { "content": string; };
+
+export type AVValueEmailInput = { "content"?: string | null; };
+
+export type AVValueInput = { "block"?: AVValueBlockInput | null; "blockID"?: string | null; "checkbox"?: AVValueCheckboxInput | null; "created"?: AVValueCreatedInput | null; "createdAt"?: number | null; "date"?: AVValueDateInput | null; "email"?: AVValueEmailInput | null; "id"?: string | null; "isDetached"?: boolean | null; "keyID"?: string | null; "mAsset"?: Array<AVValueAssetInput | null> | null; "mSelect"?: Array<AVValueSelectInput | null> | null; "number"?: AVValueNumberInput | null; "phone"?: AVValuePhoneInput | null; "relation"?: AVValueRelationInput | null; "renderedContent"?: string | null; "rollup"?: AVValueRollupInput | null; "template"?: AVValueTemplateInput | null; "text"?: AVValueTextInput | null; "type"?: "block" | "text" | "number" | "date" | "select" | "mSelect" | "url" | "email" | "phone" | "mAsset" | "template" | "created" | "updated" | "checkbox" | "relation" | "rollup" | "lineNumber"; "updated"?: AVValueUpdatedInput | null; "updatedAt"?: number | null; "url"?: AVValueURLInput | null; };
+
+export type AVValueNumber = { "content": number; "format": string; "formattedContent": string; "isNotEmpty": boolean; };
+
+export type AVValueNumberInput = { "content"?: number | null; "format"?: string | null; "formattedContent"?: string | null; "isNotEmpty"?: boolean | null; };
+
+export type AVValuePhone = { "content": string; };
+
+export type AVValuePhoneInput = { "content"?: string | null; };
+
+export type AVValueRelation = { "blockIDs": Array<string> | null; "contents": Array<AVValue | null> | null; };
+
+export type AVValueRelationInput = { "blockIDs"?: Array<string> | null; "contents"?: Array<AVValueInput | null> | null; };
+
+export type AVValueRollup = { "contents": Array<AVValue | null> | null; };
+
+export type AVValueRollupInput = { "contents"?: Array<AVValueInput | null> | null; };
+
+export type AVValueSelect = { "color": string; "content": string; "resolvedColor"?: AVAttributeViewColor; };
+
+export type AVValueSelectInput = { "color"?: string | null; "content"?: string | null; "resolvedColor"?: AVAttributeViewColorInput | null; };
+
+export type AVValueTemplate = { "content": string; };
+
+export type AVValueTemplateInput = { "content"?: string | null; };
+
+export type AVValueText = { "content": string; "rich"?: AVValueTextRich; };
+
+export type AVValueTextInput = { "content"?: string | null; "rich"?: AVValueTextRichInput | null; };
+
+export type AVValueTextRich = { "content": string; "format": "kramdown"; "spec": 1; };
+
+export type AVValueTextRichInput = { "content"?: string | null; "format"?: "kramdown"; "spec"?: 1; };
+
+export type AVValueURL = { "content": string; };
+
+export type AVValueURLInput = { "content"?: string | null; };
+
+export type AVValueUpdated = { "content": number; "content2": number; "formattedContent": string; "isNotEmpty": boolean; "isNotEmpty2": boolean; };
+
+export type AVValueUpdatedInput = { "content"?: number | null; "content2"?: number | null; "formattedContent"?: string | null; "isNotEmpty"?: boolean | null; "isNotEmpty2"?: boolean | null; };
+
+export type AVValuesData = { "values": Record<string, AVValue | null> | null; };
+
+export type AVView = { "desc": string; "filters"?: Array<AVViewFilter | null>; "gallery"?: AVLayoutGallery; "group"?: AVViewGroup; "groupCalc"?: AVGroupCalc; "groupCreated": number; "groupFolded": boolean; "groupHidden": number; "groupItemIds": Array<string> | null; "groupKey"?: AVKey; "groupSort": number; "groupVal"?: AVValue; "groups"?: Array<AVView | null>; "hideAttrViewName": boolean; "icon": string; "id": string; "itemIds"?: Array<string>; "kanban"?: AVLayoutKanban; "name": string; "pageSize": number; "sorts"?: Array<AVViewSort | null>; "table"?: AVLayoutTable; "type": "table" | "gallery" | "kanban"; };
+
+export type AVViewData = { "desc": string; "hideAttrViewName": boolean; "icon": string; "id": string; "name": string; "pageSize": number; "type": "table" | "gallery" | "kanban"; };
+
+export type AVViewFilter = { "column": string; "combination"?: "and" | "or"; "dateEndpoint"?: "start" | "end"; "filters"?: Array<AVViewFilter | null>; "operator": "" | "=" | "!=" | "\u003e" | "\u003e=" | "\u003c" | "\u003c=" | "Contains" | "Does not contains" | "Contains any item" | "Does not contain any item" | "Is empty" | "Is not empty" | "Starts with" | "Ends with" | "Is between" | "Is true" | "Is false"; "quantifier"?: string; "relativeDate"?: AVRelativeDate; "relativeDate2"?: AVRelativeDate; "value": AVValue | null; "valueSource"?: "stored" | "rendered"; };
+
+export type AVViewFilterInput = { "column"?: string | null; "combination"?: "and" | "or"; "dateEndpoint"?: "start" | "end"; "filters"?: Array<AVViewFilterInput | null> | null; "operator"?: "" | "=" | "!=" | "\u003e" | "\u003e=" | "\u003c" | "\u003c=" | "Contains" | "Does not contains" | "Contains any item" | "Does not contain any item" | "Is empty" | "Is not empty" | "Starts with" | "Ends with" | "Is between" | "Is true" | "Is false"; "quantifier"?: string | null; "relativeDate"?: AVRelativeDateInput | null; "relativeDate2"?: AVRelativeDateInput | null; "value"?: AVValueInput | null; "valueSource"?: "stored" | "rendered"; };
+
+export type AVViewGalleryCardField = { "calc"?: AVFieldCalc; "desc"?: string; "fullRow": boolean; "hidden": boolean; "id": string; "wrap": boolean; } | ({ "fullRow": boolean; } & { "calc"?: never; "desc"?: never; "hidden"?: never; "id"?: never; "wrap"?: never; });
+
+export type AVViewGroup = { "field": string; "hideEmpty": boolean; "method": number; "order": number; "range"?: AVGroupRange; "valueSource"?: "stored" | "rendered"; };
+
+export type AVViewGroupInput = { "field"?: string | null; "hideEmpty"?: boolean | null; "method"?: number | null; "order"?: number | null; "range"?: AVGroupRangeInput | null; "valueSource"?: "stored" | "rendered"; };
+
+export type AVViewInstance = AVTable | AVGallery | AVKanban;
+
+export type AVViewKanbanField = { "calc"?: AVFieldCalc; "desc"?: string; "fullRow": boolean; "hidden": boolean; "id": string; "wrap": boolean; } | ({ "fullRow": boolean; } & { "calc"?: never; "desc"?: never; "hidden"?: never; "id"?: never; "wrap"?: never; });
+
+export type AVViewNotFound = { "error": "viewNotFound"; };
+
+export type AVViewSort = { "column": string; "dateEndpoint"?: "start" | "end"; "order": "" | "ASC" | "DESC"; "valueSource"?: "stored" | "rendered"; };
+
+export type AVViewSortInput = { "column"?: string | null; "dateEndpoint"?: "start" | "end"; "order"?: "" | "ASC" | "DESC"; "valueSource"?: "stored" | "rendered"; };
+
+export type AVViewTableColumn = { "align"?: "" | "left" | "center" | "right"; "calc"?: AVFieldCalc; "desc"?: string; "hidden": boolean; "id": string; "pin": boolean; "width": string; "wrap": boolean; } | ({ "align"?: "" | "left" | "center" | "right"; "calc"?: AVFieldCalc; "pin": boolean; "width": string; } & { "desc"?: never; "hidden"?: never; "id"?: never; "wrap"?: never; });
+
export type AccountLoginData = { "needCaptcha": string | null; "token": string | null; "userName": string | null; };
export type AccountLoginRequestInput = { "captcha": string; "cloudRegion": number; "userName": string; "userPassword": string; };
export type ActivationCodeRequestInput = { "data": string; };
+export type AddAttributeViewBlocksRequestInput = { "avID": string; "blockID"?: string | null; "groupID"?: string | null; "ignoreDefaultFill"?: boolean | null; "previousID"?: string | null; "srcs": Array<AVBlockSourceInput>; "viewID"?: string | null; };
+
+export type AddAttributeViewKeyRequestInput = { "avID": string; "blockID"?: string | null; "keyID": string; "keyIcon": string; "keyName": string; "keyType": string; "previousKeyID": string; };
+
+export type AppendAttributeViewDetachedBlocksWithValuesRequestInput = { "avID": string; "blocksValues": Array<Array<AVValueInput | null> | null>; };
+
export type AppendBlockRequestInput = { "data": string; "dataType": string; "parentID": string; };
export type AppendHeadingChildrenRequestInput = { "childrenDOM": string; "id": string; };
@@ -278,6 +540,10 @@ export type BatchInsertBlockRequestInput = { "blocks": Array<BlockInsertInputInp
export type BatchParentBlockRequestInput = { "blocks": Array<PrependBlockRequestInput>; };
+export type BatchReplaceAttributeViewBlocksRequestInput = { "avID": string; "isDetached": boolean; "oldNew": Array<Record<string, string> | null>; };
+
+export type BatchSetAttributeViewBlockAttrsRequestInput = { "avID": string; "values": Array<AVCellUpdateInput>; };
+
export type BatchSetBlockAttrsRequestInput = { "blockAttrs": Array<SetBlockAttrsRequestInput>; };
export type BatchTaskListMarkerRequestInput = { "items": Array<TaskListMarkerRequestInput>; };
@@ -414,6 +680,8 @@ export type BroadcastPublishMessage = { "filename": string; "size": number; "typ
export type BroadcastPublishResult = { "channel": BroadcastChannel; "code": number; "message": BroadcastPublishMessage; "msg": string; };
+export type ChangeAttrViewLayoutRequestInput = { "avID": string; "blockID": string; "layoutType": string; };
+
export type ChangeMasterPasswordRequestInput = { "newPassword": string; "oldPassword": string; };
export type ChangeSortNotebookRequestInput = { "notebooks": Array<string>; };
@@ -464,6 +732,12 @@ export type CopyStdMarkdownRequestInput = { "adjustHeadingLevel"?: boolean | nul
export type CreateAssetHistoryRequestInput = { "path": string; };
+export type CreateAttributeViewItemDocsRequestInput = { "app"?: string | null; "avID": string; "blockID": string; "itemIDs": Array<string> | null; "saveMode": string; "session"?: string | null; };
+
+export type CreateAttributeViewItemRequestInput = { "app"?: string | null; "avID": string; "blockID": string; "groupID"?: string | null; "previousID"?: string | null; "session"?: string | null; "templateID"?: string | null; "viewID"?: string | null; };
+
+export type CreateAttributeViewItemWithMarkdownRequestInput = { "app"?: string | null; "avID": string; "blockID": string; "clippingHref"?: string | null; "groupID"?: string | null; "listDocTree"?: boolean | null; "markdown": string; "previousID"?: string | null; "session"?: string | null; "tags"?: string | null; "templateID": string; "title": string; "viewID"?: string | null; "withMath"?: boolean | null; };
+
export type CreateDocHistoryRequestInput = { "id": string; };
export type CreateEncryptedNotebookRequestInput = { "name": string; "password": string; };
@@ -532,6 +806,8 @@ export type DownloadCloudSnapshotRequestInput = { "id": string; "tag": string; }
export type DownloadInstallPkgRequestInput = { "downloadInstallPkg": boolean; };
+export type DuplicateAttributeViewBlockRequestInput = { "avID": string; };
+
export type EditorReadOnlyRequestInput = { "readonly": boolean; };
export type EmbedBlock = { "allowChildOperation": boolean; "block": SearchBlock | null; "blockPaths": Array<BlockPath | null> | null; };
@@ -708,6 +984,38 @@ export type FullTextSearchBlockData = { "blocks": Array<SearchBlock | null> | nu
export type FullTextSearchBlockRequestInput = { "groupBy"?: number | null; "method"?: number | null; "notebook"?: string | null; "orderBy"?: number | null; "page"?: number | null; "pageSize"?: number | null; "paths"?: Array<string> | null; "query"?: string | null; "searchHPath"?: boolean | null; "subTypes"?: SearchSubtypeFilterInput | null; "types"?: Record<string, boolean> | null; };
+export type GetAttributeViewAddingBlockDefaultValuesRequestInput = { "addingBlockID"?: string | null; "avID": string; "blockID"?: string | null; "groupID"?: string | null; "previousID"?: string | null; "viewID"?: string | null; };
+
+export type GetAttributeViewBacklinksRequestInput = { "avID"?: string | null; "id"?: string | null; "itemID"?: string | null; "valueID"?: string | null; };
+
+export type GetAttributeViewBoundBlockIDsByItemIDsRequestInput = { "avID": string; "itemIDs": Array<string>; };
+
+export type GetAttributeViewFieldViewsRequestInput = { "avID": string; "keyID": string; };
+
+export type GetAttributeViewFilterSortRequestInput = { "blockID": string; "id": string; };
+
+export type GetAttributeViewItemIDsByBoundIDsRequestInput = { "avID": string; "blockIDs": Array<string>; };
+
+export type GetAttributeViewItemStatusesRequestInput = { "blockID"?: string | null; "id": string; "itemIDs": Array<string>; "query"?: string | null; "viewID"?: string | null; };
+
+export type GetAttributeViewKeysByAvIDRequestInput = { "avID": string; };
+
+export type GetAttributeViewKeysByIDRequestInput = { "avID": string; "keyIDs": Array<string>; };
+
+export type GetAttributeViewKeysRequestInput = { "avID"?: string | null; "id"?: string | null; "itemID"?: string | null; "valueID"?: string | null; };
+
+export type GetAttributeViewPasteRowsRequestInput = { "avID": string; "blockID": string; "count": number; "groupID"?: string | null; "query"?: string | null; "startItemID": string; "viewID"?: string | null; };
+
+export type GetAttributeViewPrimaryKeyValuesRequestInput = { "blockIDs"?: Array<string> | null; "id": string; "keyword"?: string | null; "page"?: number | null; "pageSize"?: number | null; };
+
+export type GetAttributeViewRelationCandidatesRequestInput = { "avID"?: string | null; "id"?: string | null; "keyID"?: string | null; "keyword"?: string | null; "page"?: number | null; "pageSize"?: number | null; "selectedBlockIDs"?: Array<string> | null; };
+
+export type GetAttributeViewRequestInput = { "id": string; };
+
+export type GetAttributeViewRowSortRequestInput = { "avID"?: string | null; "blockID"?: string | null; "groupID"?: string | null; "itemIDs"?: Array<string> | null; "nextID"?: string | null; "previousID"?: string | null; "viewID"?: string | null; };
+
+export type GetAttributeViewSearchTargetRequestInput = { "id"?: string | null; "keywords"?: Array<string> | null; };
+
export type GetBazaarIconRequestInput = { "keyword"?: string | null; };
export type GetBazaarPackageREADMERequestInput = { "packageType": string; "repoHash": string; "repoURL": string; };
@@ -730,6 +1038,8 @@ export type GetBazaarWidgetRequestInput = { "keyword"?: string | null; };
export type GetCloudRepoSnapshotsRequestInput = { "page": number; };
+export type GetCurrentAttrViewImagesRequestInput = { "blockID"?: string | null; "id": string; "query"?: string | null; "viewID"?: string | null; };
+
export type GetEmbedBlockRequestInput = { "breadcrumb"?: boolean | null; "embedBlockID": string; "headingMode"?: number | null; "includeIDs": Array<string>; "notebook"?: string | null; };
export type GetInstalledIconRequestInput = { "keyword"?: string | null; };
@@ -744,6 +1054,8 @@ export type GetInstalledThemeRequestInput = { "frontend"?: string | null; "keywo
export type GetInstalledWidgetRequestInput = { "keyword"?: string | null; };
+export type GetMirrorDatabaseBlocksRequestInput = { "avID": string; };
+
export type GetRepoDocHistoryRequestInput = { "id": string; "page": number; };
export type GetRepoFileRequestInput = { "id": string; };
@@ -1034,6 +1346,10 @@ export type RefTextQueryRequestInput = { "anchor": string; "notebook"?: string |
export type RefreshBacklinkRequestInput = { "id": string; };
+export type RemoveAttributeViewBlocksRequestInput = { "avID": string; "srcIDs": Array<string>; };
+
+export type RemoveAttributeViewKeyRequestInput = { "avID": string; "keyID": string; "removeRelationDest"?: boolean | null; };
+
export type RemoveBookmarkRequestInput = { "bookmark": string; };
export type RemoveCloudRepoTagSnapshotRequestInput = { "tag": string; };
@@ -1048,6 +1364,8 @@ export type RemoveShorthandsRequestInput = { "ids": Array<string>; };
export type RemoveTagRequestInput = { "label": string; };
+export type RemoveUnusedAttributeViewRequestInput = { "id": string; };
+
export type RenameAssetRequestInput = { "newName": string; "oldPath": string; };
export type RenameBookmarkRequestInput = { "newBookmark": string; "oldBookmark": string; };
@@ -1060,6 +1378,12 @@ export type RenameRiffDeckRequestInput = { "deckID": string; "name": string; };
export type RenameTagRequestInput = { "newLabel": string; "oldLabel": string; };
+export type RenderAttributeViewRequestInput = { "blockID"?: string | null; "createIfNotExist"?: boolean | null; "groupPaging"?: Record<string, AVGroupPagingInput | null> | null; "id": string; "ignoreRows"?: boolean | null; "initialLayout"?: string | null; "page"?: number | null; "pageSize"?: number | null; "query"?: string | null; "targetGroupID"?: string | null; "targetItemID"?: string | null; "viewID"?: string | null; };
+
+export type RenderHistoryAttributeViewRequestInput = { "blockID"?: string | null; "carrierViewID"?: string | null; "created": string; "groupPaging"?: Record<string, AVGroupPagingInput | null> | null; "id": string; "page"?: number | null; "pageSize"?: number | null; "query"?: string | null; "viewID"?: string | null; };
+
+export type RenderSnapshotAttributeViewRequestInput = { "blockID"?: string | null; "carrierViewID"?: string | null; "id": string; "snapshot": string; "viewID"?: string | null; };
+
export type RenderSprigRequestInput = { "template": string; };
export type RenderTemplateData = { "content": string; "docTreePlan"?: TemplatePlan; "path": string; };
@@ -1162,6 +1486,12 @@ export type SearchAssetContentRequestInput = { "method"?: number | null; "orderB
export type SearchAssetRequestInput = { "exts"?: Array<string> | null; "k": string; };
+export type SearchAttributeViewRelationKeyRequestInput = { "avID": string; "keyword": string; };
+
+export type SearchAttributeViewRequestInput = { "avID"?: string | null; "blockID"?: string | null; "excludes"?: Array<string> | null; "includeViewMatches"?: boolean | null; "keyword": string; };
+
+export type SearchAttributeViewRollupDestKeysRequestInput = { "avID": string; "keyword": string; };
+
export type SearchBlock = { "alias": string; "box": string; "children": Array<SearchBlock | null> | null; "content": string; "count": number; "created": string; "defID": string; "defPath": string; "depth": number; "fcontent": string; "folded": boolean; "hPath": string; "ial": Record<string, string> | null; "id": string; "markdown": string; "memo": string; "name": string; "number"?: string; "parentID": string; "path": string; "refCount": number; "refText": string; "refs": Array<SearchBlock | null> | null; "riffCard": SearchBlockCard | null; "riffCardID": string; "rootID": string; "sort": number; "subType": string; "tag": string; "type": string; "updated": string; };
export type SearchBlockCard = { "due": string; "lapses": number; "lastReview": string; "reps": number; "state": number; };
@@ -1222,6 +1552,16 @@ export type SetAssetAnnotationRequestInput = { "data": string; "path": string; }
export type SetAssetOCRTextRequestInput = { "path": string; "text": string; };
+export type SetAttrViewContextFilterRequestInput = { "avID": string; "blockID": string; "keyID"?: string | null; };
+
+export type SetAttrViewFiltersRequestInput = { "avID": string; "blockID": string; "data": Array<AVViewFilterInput | null>; };
+
+export type SetAttrViewGroupRequestInput = { "avID": string; "blockID": string; "group": AVViewGroupInput; "ignoreRows"?: boolean | null; };
+
+export type SetAttrViewSortsRequestInput = { "avID": string; "blockID": string; "data": Array<AVViewSortInput | null>; };
+
+export type SetAttributeViewBlockAttrRequestInput = { "avID": string; "itemID"?: string | null; "keyID": string; "rowID"?: string | null; "value": AVValueInput; };
+
export type SetBazaarPackageRatingRequestInput = { "packageName": string; "packageType": string; "rating": number; };
export type SetBazaarRequestInput = { "petalDisabled"?: boolean | null; "trust"?: boolean | null; };
@@ -1232,6 +1572,8 @@ export type SetConfSnippetRequestInput = { "enabledCSS"?: boolean | null; "enabl
export type SetCriterionRequestInput = { "criterion": CriterionInput | null; };
+export type SetDatabaseBlockViewRequestInput = { "avID": string; "id": string; "viewID": string; };
+
export type SetEditorRequestInput = { "allowHTMLBLockScript"?: boolean | null; "allowSVGScript"?: boolean | null; "assetOpen"?: SettingAssetOpenInput | null; "backlinkContainChildren"?: boolean | null; "backlinkExpandCount"?: number | null; "backlinkHideReference"?: boolean | null; "backlinkMentionExclude"?: string | null; "backlinkShowBottom"?: boolean | null; "backlinkSort"?: number | null; "backmentionExpandCount"?: number | null; "backmentionSort"?: number | null; "blockRefDynamicAnchorTextMaxLen"?: number | null; "checkBlockRef"?: boolean | null; "codeFontFamilies"?: Array<SettingEditorFontInput | null> | null; "codeLigatures"?: boolean | null; "codeLineWrap"?: boolean | null; "codeSyntaxHighlightLineNum"?: boolean | null; "codeTabSpaces"?: number | null; "cursorSurroundingLines"?: number | null; "databaseAttrClickMode"?: number | null; "databaseAttrHideEmpty"?: boolean | null; "databaseAttrShow"?: boolean | null; "databaseAttrUseTabs"?: boolean | null; "databaseAttrViewMode"?: number | null; "displayBookmarkIcon"?: boolean | null; "displayNetImgMark"?: boolean | null; "dragHTMLFileToIframe"?: boolean | null; "dynamicLoadBlocks"?: number | null; "embedBlockBreadcrumb"?: boolean | null; "emoji"?: Array<string> | null; "floatWindowDelay"?: number | null; "floatWindowMode"?: number | null; "fontFamilies"?: Array<SettingEditorFontInput | null> | null; "fontFamily"?: string | null; "fontFamilyDisplay"?: string | null; "fontSize"?: number | null; "fontSizeScrollZoom"?: boolean | null; "fontWeight"?: number | null; "fullWidth"?: boolean | null; "generateHistoryInterval"?: number | null; "hashTagSearch"?: boolean | null; "headingEmbedMode"?: number | null; "headingNumber"?: boolean | null; "headingNumberFormat"?: string | null; "historyRetentionDays"?: number | null; "justify"?: boolean | null; "katexMacros"?: string | null; "keepLoadedContent"?: boolean | null; "listItemDotNumberClickFocus"?: boolean | null; "listLogicalOutdent"?: boolean | null; "markdown"?: SettingMarkdownInput | null; "onlySearchForDoc"?: boolean | null; "pasteURLAutoConvert"?: boolean | null; "plantUMLServePath"?: string | null; "readOnly"?: boolean | null; "rtl"?: boolean | null; "spellcheck"?: boolean | null; "spellcheckLanguages"?: Array<string> | null; "virtualBlockRef"?: boolean | null; "virtualBlockRefExclude"?: string | null; "virtualBlockRefInclude"?: string | null; };
export type SetEntryVisibilityRequestInput = { "active"?: string | null; "profiles"?: Array<SettingEntryVisibilityProfileInput | null> | null; "version"?: number | null; };
@@ -1466,6 +1808,10 @@ export type SnippetInput = { "content": string; "disabledInPublish"?: boolean |
export type SnippetsData = { "snippets": Array<Snippet | null>; };
+export type SortAttributeViewKeyRequestInput = { "avID": string; "keyID": string; "previousKeyID": string; };
+
+export type SortAttributeViewViewKeyRequestInput = { "avID": string; "keyID": string; "previousKeyID": string; "viewID"?: string | null; };
+
export type StorageKeyRequestInput = { "key": string; };
export type StorageKeysRequestInput = { "keys": Array<string>; };
@@ -1667,53 +2013,6 @@ export interface APIGETRoutes {
}
export type APILegacyPOSTPath =
- "/api/av/addAttributeViewBlocks" |
- "/api/av/addAttributeViewKey" |
- "/api/av/appendAttributeViewDetachedBlocksWithValues" |
- "/api/av/batchReplaceAttributeViewBlocks" |
- "/api/av/batchSetAttributeViewBlockAttrs" |
- "/api/av/changeAttrViewLayout" |
- "/api/av/createAttributeViewItem" |
- "/api/av/createAttributeViewItemDocs" |
- "/api/av/createAttributeViewItemWithMarkdown" |
- "/api/av/duplicateAttributeViewBlock" |
- "/api/av/getAttributeView" |
- "/api/av/getAttributeViewAddingBlockDefaultValues" |
- "/api/av/getAttributeViewBacklinks" |
- "/api/av/getAttributeViewBoundBlockIDsByItemIDs" |
- "/api/av/getAttributeViewFieldViews" |
- "/api/av/getAttributeViewFilterSort" |
- "/api/av/getAttributeViewItemIDsByBoundIDs" |
- "/api/av/getAttributeViewItemStatuses" |
- "/api/av/getAttributeViewKeys" |
- "/api/av/getAttributeViewKeysByAvID" |
- "/api/av/getAttributeViewKeysByID" |
- "/api/av/getAttributeViewPasteRows" |
- "/api/av/getAttributeViewPrimaryKeyValues" |
- "/api/av/getAttributeViewRelationCandidates" |
- "/api/av/getAttributeViewRowSort" |
- "/api/av/getAttributeViewSearchTarget" |
- "/api/av/getCurrentAttrViewImages" |
- "/api/av/getMirrorDatabaseBlocks" |
- "/api/av/getUnusedAttributeViews" |
- "/api/av/removeAttributeViewBlocks" |
- "/api/av/removeAttributeViewKey" |
- "/api/av/removeUnusedAttributeView" |
- "/api/av/removeUnusedAttributeViews" |
- "/api/av/renderAttributeView" |
- "/api/av/renderHistoryAttributeView" |
- "/api/av/renderSnapshotAttributeView" |
- "/api/av/searchAttributeView" |
- "/api/av/searchAttributeViewRelationKey" |
- "/api/av/searchAttributeViewRollupDestKeys" |
- "/api/av/setAttrViewContextFilter" |
- "/api/av/setAttrViewFilters" |
- "/api/av/setAttrViewGroup" |
- "/api/av/setAttrViewSorts" |
- "/api/av/setAttributeViewBlockAttr" |
- "/api/av/setDatabaseBlockView" |
- "/api/av/sortAttributeViewKey" |
- "/api/av/sortAttributeViewViewKey" |
"/api/extension/copy" |
"/api/network/echo" |
"/api/network/echo/*path" |
@@ -2113,11 +2412,246 @@ export interface APIPOSTRoutes {
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
};
+ "/api/av/addAttributeViewBlocks": {
+ request: AddAttributeViewBlocksRequestInput;
+ response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "json";
+ };
+ "/api/av/addAttributeViewKey": {
+ request: AddAttributeViewKeyRequestInput;
+ response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "json";
+ };
+ "/api/av/appendAttributeViewDetachedBlocksWithValues": {
+ request: AppendAttributeViewDetachedBlocksWithValuesRequestInput;
+ response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "json";
+ };
+ "/api/av/batchReplaceAttributeViewBlocks": {
+ request: BatchReplaceAttributeViewBlocksRequestInput;
+ response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "json";
+ };
+ "/api/av/batchSetAttributeViewBlockAttrs": {
+ request: BatchSetAttributeViewBlockAttrsRequestInput;
+ response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "json";
+ };
+ "/api/av/changeAttrViewLayout": {
+ request: ChangeAttrViewLayoutRequestInput;
+ response: { "code": 0; "data": AVRenderResult; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null | AVRenderResult; "msg": string; };
+ body: "json";
+ };
+ "/api/av/createAttributeViewItem": {
+ request: CreateAttributeViewItemRequestInput;
+ response: { "code": 0; "data": AVCreateItemResult; "msg": string; } | { "code": -1 | 1; "data": { "closeTimeout": number; } | null | AVCreateItemResult; "msg": string; };
+ body: "json";
+ };
+ "/api/av/createAttributeViewItemDocs": {
+ request: CreateAttributeViewItemDocsRequestInput;
+ response: { "code": 0; "data": AVCreateItemDocsResult; "msg": string; } | { "code": -1 | 1; "data": { "closeTimeout": number; } | null | AVCreateItemDocsResult; "msg": string; };
+ body: "json";
+ };
+ "/api/av/createAttributeViewItemWithMarkdown": {
+ request: CreateAttributeViewItemWithMarkdownRequestInput;
+ response: { "code": 0; "data": AVCreateItemResult; "msg": string; } | { "code": -1 | 1; "data": { "closeTimeout": number; } | null | AVCreateItemResult; "msg": string; };
+ body: "json";
+ };
+ "/api/av/duplicateAttributeViewBlock": {
+ request: DuplicateAttributeViewBlockRequestInput;
+ response: { "code": 0; "data": AVDuplicateData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "json";
+ };
+ "/api/av/getAttributeView": {
+ request: GetAttributeViewRequestInput;
+ response: { "code": 0; "data": AVData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "json";
+ };
+ "/api/av/getAttributeViewAddingBlockDefaultValues": {
+ request: GetAttributeViewAddingBlockDefaultValuesRequestInput;
+ response: { "code": 0; "data": AVValuesData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "json";
+ };
+ "/api/av/getAttributeViewBacklinks": {
+ request: GetAttributeViewBacklinksRequestInput;
+ response: { "code": 0; "data": AVAttributeViewBacklinks | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "json";
+ };
+ "/api/av/getAttributeViewBoundBlockIDsByItemIDs": {
+ request: GetAttributeViewBoundBlockIDsByItemIDsRequestInput;
+ response: { "code": 0; "data": Record<string, string> | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "json";
+ };
+ "/api/av/getAttributeViewFieldViews": {
+ request: GetAttributeViewFieldViewsRequestInput;
+ response: { "code": 0; "data": AVFieldViewsData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "json";
+ };
+ "/api/av/getAttributeViewFilterSort": {
+ request: GetAttributeViewFilterSortRequestInput;
+ response: { "code": 0; "data": AVFilterSortData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "json";
+ };
+ "/api/av/getAttributeViewItemIDsByBoundIDs": {
+ request: GetAttributeViewItemIDsByBoundIDsRequestInput;
+ response: { "code": 0; "data": Record<string, string> | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "json";
+ };
+ "/api/av/getAttributeViewItemStatuses": {
+ request: GetAttributeViewItemStatusesRequestInput;
+ response: { "code": 0; "data": Record<string, string> | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "json";
+ };
+ "/api/av/getAttributeViewKeys": {
+ request: GetAttributeViewKeysRequestInput;
+ response: { "code": 0; "data": Array<AVBlockAttributeViewKeys | null> | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "json";
+ };
+ "/api/av/getAttributeViewKeysByAvID": {
+ request: GetAttributeViewKeysByAvIDRequestInput;
+ response: { "code": 0; "data": Array<AVKey | null> | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "json";
+ };
+ "/api/av/getAttributeViewKeysByID": {
+ request: GetAttributeViewKeysByIDRequestInput;
+ response: { "code": 0; "data": Array<AVKey | null> | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "json";
+ };
+ "/api/av/getAttributeViewPasteRows": {
+ request: GetAttributeViewPasteRowsRequestInput;
+ response: { "code": 0; "data": AVPasteRowsData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "json";
+ };
+ "/api/av/getAttributeViewPrimaryKeyValues": {
+ request: GetAttributeViewPrimaryKeyValuesRequestInput;
+ response: { "code": 0; "data": AVPrimaryValuesData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "json";
+ };
+ "/api/av/getAttributeViewRelationCandidates": {
+ request: GetAttributeViewRelationCandidatesRequestInput;
+ response: { "code": 0; "data": AVRelationCandidatesData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "json";
+ };
+ "/api/av/getAttributeViewRowSort": {
+ request: GetAttributeViewRowSortRequestInput;
+ response: { "code": 0; "data": AVRowSortPreview; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "structJSON";
+ };
+ "/api/av/getAttributeViewSearchTarget": {
+ request: GetAttributeViewSearchTargetRequestInput;
+ response: { "code": 0; "data": AVAttributeViewSearchTarget | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "json";
+ };
+ "/api/av/getCurrentAttrViewImages": {
+ request: GetCurrentAttrViewImagesRequestInput;
+ response: { "code": 0; "data": Array<string> | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "json";
+ };
+ "/api/av/getMirrorDatabaseBlocks": {
+ request: GetMirrorDatabaseBlocksRequestInput;
+ response: { "code": 0; "data": RefDefsData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "json";
+ };
+ "/api/av/getUnusedAttributeViews": {
+ request: EmptyRequestInput;
+ response: { "code": 0; "data": Array<AssetUnusedItem | null> | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "none";
+ };
+ "/api/av/removeAttributeViewBlocks": {
+ request: RemoveAttributeViewBlocksRequestInput;
+ response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "json";
+ };
+ "/api/av/removeAttributeViewKey": {
+ request: RemoveAttributeViewKeyRequestInput;
+ response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "json";
+ };
+ "/api/av/removeUnusedAttributeView": {
+ request: RemoveUnusedAttributeViewRequestInput;
+ response: { "code": 0; "data": AVIDData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "json";
+ };
+ "/api/av/removeUnusedAttributeViews": {
+ request: EmptyRequestInput;
+ response: { "code": 0; "data": AVPathsData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "none";
+ };
+ "/api/av/renderAttributeView": {
+ request: RenderAttributeViewRequestInput;
+ response: { "code": 0; "data": AVRenderResult; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null | AVRenderResult; "msg": string; };
+ body: "json";
+ };
+ "/api/av/renderHistoryAttributeView": {
+ request: RenderHistoryAttributeViewRequestInput;
+ response: { "code": 0; "data": AVArchiveRenderData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "json";
+ };
+ "/api/av/renderSnapshotAttributeView": {
+ request: RenderSnapshotAttributeViewRequestInput;
+ response: { "code": 0; "data": AVArchiveRenderData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "json";
+ };
+ "/api/av/searchAttributeView": {
+ request: SearchAttributeViewRequestInput;
+ response: { "code": 0; "data": AVSearchData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "json";
+ };
"/api/av/searchAttributeViewNonRelationKey": {
request: EmptyRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
};
+ "/api/av/searchAttributeViewRelationKey": {
+ request: SearchAttributeViewRelationKeyRequestInput;
+ response: { "code": 0; "data": AVKeysData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "json";
+ };
+ "/api/av/searchAttributeViewRollupDestKeys": {
+ request: SearchAttributeViewRollupDestKeysRequestInput;
+ response: { "code": 0; "data": AVKeysData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "json";
+ };
+ "/api/av/setAttrViewContextFilter": {
+ request: SetAttrViewContextFilterRequestInput;
+ response: { "code": 0; "data": AVContextFilterData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "json";
+ };
+ "/api/av/setAttrViewFilters": {
+ request: SetAttrViewFiltersRequestInput;
+ response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "json";
+ };
+ "/api/av/setAttrViewGroup": {
+ request: SetAttrViewGroupRequestInput;
+ response: { "code": 0; "data": AVRenderResult; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null | AVRenderResult; "msg": string; };
+ body: "json";
+ };
+ "/api/av/setAttrViewSorts": {
+ request: SetAttrViewSortsRequestInput;
+ response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "json";
+ };
+ "/api/av/setAttributeViewBlockAttr": {
+ request: SetAttributeViewBlockAttrRequestInput;
+ response: { "code": 0; "data": AVValueData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "json";
+ };
+ "/api/av/setDatabaseBlockView": {
+ request: SetDatabaseBlockViewRequestInput;
+ response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "json";
+ };
+ "/api/av/sortAttributeViewKey": {
+ request: SortAttributeViewKeyRequestInput;
+ response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "json";
+ };
+ "/api/av/sortAttributeViewViewKey": {
+ request: SortAttributeViewViewKeyRequestInput;
+ response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "json";
+ };
"/api/bazaar/batchUpdatePackage": {
request: BatchUpdatePackageRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1 | 1; "data": { "closeTimeout": number; } | null; "msg": string; };
diff --git a/app/src/types/index.d.ts b/app/src/types/index.d.ts
index cd55e3ea77..318f464a50 100644
--- a/app/src/types/index.d.ts
+++ b/app/src/types/index.d.ts
@@ -1323,23 +1323,23 @@ interface IAVNewItemTemplate {
}
interface IAVView {
- name: string;
- desc: string;
- id: string;
- type: TAVView;
- icon: string;
- hideAttrViewName: boolean;
- pageSize: number;
- showIcon: boolean;
- wrapField: boolean;
+ name?: string;
+ desc?: string;
+ id?: string;
+ type?: TAVView;
+ icon?: string;
+ hideAttrViewName?: boolean;
+ pageSize?: number;
+ showIcon?: boolean;
+ wrapField?: boolean;
groupHidden?: number, // 0:显示,1:空白隐藏,2:手动隐藏
groupFolded?: boolean,
- filters: IAVFilter[],
- sorts: IAVSort[],
- groups: IAVView[]
- group: IAVGroup
- groupKey: IAVColumn
- groupValue: IAVCellValue
+ filters?: IAVFilter[],
+ sorts?: IAVSort[],
+ groups?: IAVView[]
+ group?: IAVGroup
+ groupKey?: IAVColumn
+ groupValue?: IAVCellValue
}
interface IAVFieldView {
@@ -1376,7 +1376,7 @@ interface IAVGallery extends IAVView {
displayEmptyFields: boolean;
fitImage: boolean;
cards: IAVGalleryItem[],
- desc: string
+ desc?: string
fields: IAVColumn[]
cardCount: number,
}
@@ -1393,7 +1393,7 @@ interface IAVKanban extends IAVView {
displayEmptyFields: boolean;
fitImage: boolean;
cards: IAVGalleryItem[],
- desc: string
+ desc?: string
fields: IAVColumn[]
cardCount: number,
fillColBackgroundColor: boolean
@@ -1402,7 +1402,7 @@ interface IAVKanban extends IAVView {
interface IAVFilter {
column?: string, // 叶子节点:字段(列)ID
valueSource?: "stored" | "rendered", // 叶子节点:值来源,默认为存储值
- operator?: TAVFilterOperator, // 叶子节点:操作符
+ operator?: TAVFilterOperator | "", // 叶子节点:操作符
quantifier?: string, // 叶子节点:量词
value?: IAVCellValue, // 叶子节点:过滤值
relativeDate?: IAVRelativeDate, // 叶子节点:相对时间
@@ -1434,27 +1434,27 @@ interface IAVGroup {
interface IAVSort {
column: string,
valueSource?: "stored" | "rendered", // 值来源,默认为存储值
- order: "ASC" | "DESC",
+ order: "ASC" | "DESC" | "",
dateEndpoint?: "start" | "end"
}
interface IAVColumn {
- width: string,
- align: TAVAlign,
- icon: string,
- id: string,
- name: string,
- desc: string,
- wrap: boolean,
- pin: boolean,
- hidden: boolean,
+ width?: string,
+ align?: TAVAlign,
+ icon?: string,
+ id?: string,
+ name?: string,
+ desc?: string,
+ wrap?: boolean,
+ pin?: boolean,
+ hidden?: boolean,
fullRow?: boolean,
- type: TAVCol,
- numberFormat: string,
+ type?: TAVCol,
+ numberFormat?: string,
dateFormat?: TAVDateFormat,
- template: string,
+ template?: string,
renderTemplate?: string,
- calc: IAVCalc,
+ calc?: IAVCalc,
updated?: {
includeTime: boolean
}
@@ -1496,18 +1496,18 @@ interface IAVCardCoverPosition {
}
interface IAVCell {
- id: string,
- color: string,
- bgColor: string,
- value: IAVCellValue,
- valueType: TAVCol,
+ id?: string,
+ color?: string,
+ bgColor?: string,
+ value?: IAVCellValue,
+ valueType?: TAVCol,
}
interface IAVCellValue {
keyID?: string,
id?: string,
blockID?: string // 为 row id
- type: TAVCol,
+ type?: TAVCol,
renderedContent?: string,
isDetached?: boolean,
text?: {
diff --git a/app/tests/api-contract.types.ts b/app/tests/api-contract.types.ts
index 835917f402..2e3f8087a2 100644
--- a/app/tests/api-contract.types.ts
+++ b/app/tests/api-contract.types.ts
@@ -432,3 +432,20 @@ void aiStreamContent;
// @ts-expect-error 流式内容必须是字符串
const invalidAIStreamContent: import("../src/types/api").APIPOSTRoutes["/api/ai/editor/chat"]["sse"]["events"]["content"] = {token: 1};
void invalidAIStreamContent;
+
+// AV 契约的合法调用和固定结构拒绝用例,合并到共享类型检查文件。
+fetchPost("/api/av/setAttributeViewBlockAttr", {avID: "av", keyID: "key", itemID: "item", value: {text: {}}});
+fetchPost("/api/av/setAttributeViewBlockAttr", {avID: "av", keyID: "key", itemID: "item", value: {text: null}});
+fetchPost("/api/av/setAttrViewGroup", {avID: "av", blockID: "block", group: {field: "key", method: 0}});
+fetchPost("/api/av/batchSetAttributeViewBlockAttrs", {avID: "av", values: [{keyID: "key", itemID: "item", value: {checkbox: {checked: false}}}]});
+fetchPost("/api/av/getAttributeViewPrimaryKeyValues", {id: "av", page: 2.5, pageSize: -1, blockIDs: ["block"]});
+// @ts-expect-error 单元格文本内容不能是数字。
+fetchPost("/api/av/setAttributeViewBlockAttr", {avID: "av", keyID: "key", value: {text: {content: 1}}});
+// @ts-expect-error 批量修改必须包含字段 ID。
+fetchPost("/api/av/batchSetAttributeViewBlockAttrs", {avID: "av", values: [{itemID: "item", value: {}}]});
+// @ts-expect-error 分页参数必须是数字。
+fetchPost("/api/av/getAttributeViewPrimaryKeyValues", {id: "av", page: "2"});
+// @ts-expect-error 快照渲染必须指定快照 ID。
+fetchPost("/api/av/renderSnapshotAttributeView", {id: "av"});
+// @ts-expect-error 条目 ID 数组只接受字符串。
+fetchPost("/api/av/createAttributeViewItemDocs", {avID: "av", blockID: "block", saveMode: "subDoc", itemIDs: [1]});
diff --git a/docs/API-CONTRACTS.md b/docs/API-CONTRACTS.md
index 1d5e7d3b5b..24093a9884 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
+Attribute-view contracts declare table, gallery, and kanban results separately and retain missing base fields, cell patches, and null values. Known patch fields retain their supplied presence without filling omitted fields with zero values. Current, history, and snapshot rendering use their corresponding request types; callers handle error payloads before updating views. Row sorting, publish admission, encrypted-notebook leases, and fast JSON rendering preserve their existing behavior. Shared frontend and plugin declarations reflect the fields actually present in each view and cell.
+
AI contracts retain provider configuration, model discovery and matching, confirmation decisions, session extensions, and numeric and omission semantics. Editor and agent streams declare their actual SSE events; disconnection closes upstream requests, and stream lifetimes remain within the request. OAuth pages retain their media types, HTTP statuses, and security headers. Session permission notifications use `WithAfterWrite` to preserve response-before-broadcast ordering. Arbitrary JSON remains limited to protocol extension fields and tool results.
Setting contracts retain partial configuration merging, existing defaults, case-insensitive struct fields, explicit null values, JSON number normalization, and parser error messages. Keyboard shortcuts and cloud authentication results declare their fixed fields while preserving their protocol-defined JSON extensions. Cloud-user admission still precedes body reads for non-administrators, and two-factor authentication keeps cloud error codes and extension fields. Frontend callers normalize persisted display settings at the same existing boundaries.
diff --git a/docs/API-CONTRACTS.zh-CN.md b/docs/API-CONTRACTS.zh-CN.md
index 0dde161511..d1625d6a55 100644
--- a/docs/API-CONTRACTS.zh-CN.md
+++ b/docs/API-CONTRACTS.zh-CN.md
@@ -24,6 +24,8 @@
## 兼容要求
+数据库契约分别声明表格、画廊和看板结果,保留基础字段缺失、单元格局部修改及 null 值。已知修改字段保留传入状态,不以零值补齐未提供的字段。当前、历史和快照渲染使用对应请求类型,调用端先处理错误载荷再更新视图。行排序、发布准入、加密笔记本租约和快速 JSON 渲染保留既有行为。前端和插件的共享声明按视图及单元格实际提供的字段同步。
+
AI 契约保留供应商配置、模型发现与匹配、确认结果、会话扩展字段,以及数值和省略语义。编辑器和智能体流声明实际 SSE 事件,断开连接时关闭上游请求,流生命周期仍位于请求内部。OAuth 页面保留媒体类型、HTTP 状态和安全响应头。会话权限通知使用 `WithAfterWrite`,保留先响应再广播的顺序。任意 JSON 仅用于协议扩展字段和工具结果。
设置契约保留局部配置合并、既有默认值、结构字段大小写兼容、显式 null、JSON 数字归一化及解析错误消息。快捷键与云端认证结果声明固定字段,同时保留协议定义的 JSON 扩展。非管理员查询云用户时仍先执行准入判断再读取请求体;双因素认证保留云端错误码与扩展字段。前端继续在既有边界规范化持久化的显示设置。
diff --git a/kernel/api/av.go b/kernel/api/av.go
index 823987049d..9b25efd804 100644
--- a/kernel/api/av.go
+++ b/kernel/api/av.go
@@ -19,1372 +19,416 @@ package api
import (
"errors"
"fmt"
- "net/http"
"github.com/88250/gulu"
"github.com/gin-gonic/gin"
- goccyJSON "github.com/goccy/go-json"
"github.com/siyuan-note/logging"
+ "github.com/siyuan-note/siyuan/kernel/apicontract"
"github.com/siyuan-note/siyuan/kernel/av"
"github.com/siyuan-note/siyuan/kernel/model"
"github.com/siyuan-note/siyuan/kernel/treenode"
"github.com/siyuan-note/siyuan/kernel/util"
)
-func removeUnusedAttributeView(c *gin.Context) {
+var removeUnusedAttributeView = contractHandler(apicontract.RemoveUnusedAttributeView, func(c *gin.Context, request apicontract.RemoveUnusedAttributeViewRequest) apicontract.Response[apicontract.AVIDData] {
ret := gulu.Ret.NewResult()
- defer c.JSON(http.StatusOK, ret)
-
- arg, ok := util.JsonArg(c, ret)
- if !ok {
- return
- }
-
- avID := arg["id"].(string)
- if util.InvalidIDPattern(avID, ret) {
- return
- }
- model.RemoveUnusedAttributeView(avID)
- ret.Data = map[string]any{
- "id": avID,
- }
-}
-
-func removeUnusedAttributeViews(c *gin.Context) {
- ret := gulu.Ret.NewResult()
- defer c.JSON(http.StatusOK, ret)
-
- paths := model.RemoveUnusedAttributeViews()
- ret.Data = map[string]any{
- "paths": paths,
- }
-}
-
-func getUnusedAttributeViews(c *gin.Context) {
- ret := gulu.Ret.NewResult()
- defer c.JSON(http.StatusOK, ret)
-
- unusedAttributeViews := model.UnusedAttributeViews(true)
- total := len(unusedAttributeViews)
-
- const maxUnusedAttributeViews = 512
- if total > maxUnusedAttributeViews {
- unusedAttributeViews = unusedAttributeViews[:maxUnusedAttributeViews]
- util.PushMsg(fmt.Sprintf(model.Conf.Language(279), total, maxUnusedAttributeViews), 5000)
+ if util.InvalidIDPattern(request.ID, ret) {
+ return contractFailure[apicontract.AVIDData](ret)
}
+ model.RemoveUnusedAttributeView(request.ID)
+ return apicontract.Success(apicontract.AVIDData{ID: request.ID})
+})
- ret.Data = unusedAttributeViews
-}
-
-func getAttributeViewItemIDsByBoundIDs(c *gin.Context) {
- ret := gulu.Ret.NewResult()
- defer c.JSON(http.StatusOK, ret)
-
- arg, ok := util.JsonArg(c, ret)
- if !ok {
- return
- }
+var removeUnusedAttributeViews = contractHandler(apicontract.RemoveUnusedAttributeViews, func(c *gin.Context, request apicontract.EmptyRequest) apicontract.Response[apicontract.AVPathsData] {
+ return apicontract.Success(apicontract.AVPathsData{Paths: model.RemoveUnusedAttributeViews()})
+})
- avID := arg["avID"].(string)
- blockIDsArg := arg["blockIDs"].([]any)
- var blockIDs []string
- for _, v := range blockIDsArg {
- blockIDs = append(blockIDs, v.(string))
+var getUnusedAttributeViews = contractHandler(apicontract.GetUnusedAttributeViews, func(c *gin.Context, request apicontract.EmptyRequest) apicontract.Response[[]*apicontract.AssetUnusedItem] {
+ values := model.UnusedAttributeViews(true)
+ total := len(values)
+ if total > 512 {
+ values = values[:512]
+ util.PushMsg(fmt.Sprintf(model.Conf.Language(279), total, 512), 5000)
}
+ return apicontract.Success(assetUnusedItems(values))
+})
- ret.Data = model.GetAttributeViewItemIDs(avID, blockIDs)
-}
-
-func getAttributeViewBoundBlockIDsByItemIDs(c *gin.Context) {
- ret := gulu.Ret.NewResult()
- defer c.JSON(http.StatusOK, ret)
+var getAttributeViewItemIDsByBoundIDs = contractHandler(apicontract.GetAttributeViewItemIDsByBoundIDs, func(c *gin.Context, request apicontract.GetAttributeViewItemIDsByBoundIDsRequest) apicontract.Response[map[string]string] {
+ return apicontract.Success(model.GetAttributeViewItemIDs(request.AvID, append([]string(nil), request.BlockIDs...)))
+})
- arg, ok := util.JsonArg(c, ret)
- if !ok {
- return
- }
+var getAttributeViewBoundBlockIDsByItemIDs = contractHandler(apicontract.GetAttributeViewBoundBlockIDsByItemIDs, func(c *gin.Context, request apicontract.GetAttributeViewBoundBlockIDsByItemIDsRequest) apicontract.Response[map[string]string] {
+ return apicontract.Success(model.GetAttributeViewBoundBlockIDs(request.AvID, append([]string(nil), request.ItemIDs...)))
+})
- avID := arg["avID"].(string)
- itemIDsArg := arg["itemIDs"].([]any)
- var itemIDs []string
- for _, v := range itemIDsArg {
- itemIDs = append(itemIDs, v.(string))
+var getAttributeViewItemStatuses = contractHandler(apicontract.GetAttributeViewItemStatuses, func(c *gin.Context, request apicontract.GetAttributeViewItemStatusesRequest) apicontract.Response[map[string]string] {
+ if err := holdAttributeViewRequest(c, request.BlockID, request.ID); err != nil {
+ return apicontract.Failure[map[string]string](-1, model.Conf.Language(314))
}
-
- ret.Data = model.GetAttributeViewBoundBlockIDs(avID, itemIDs)
-}
-
-func getAttributeViewItemStatuses(c *gin.Context) {
- ret := gulu.Ret.NewResult()
- defer c.JSON(http.StatusOK, ret)
-
- arg, ok := util.JsonArg(c, ret)
- if !ok {
- return
- }
-
- avID := arg["id"].(string)
- blockID, _ := arg["blockID"].(string)
- viewID, _ := arg["viewID"].(string)
- query, _ := arg["query"].(string)
- itemIDsArg := arg["itemIDs"].([]any)
- itemIDs := make([]string, 0, len(itemIDsArg))
- for _, itemIDArg := range itemIDsArg {
- itemIDs = append(itemIDs, itemIDArg.(string))
- }
- if err := holdAttributeViewRequest(c, blockID, avID); nil != err {
- ret.Code = -1
- ret.Msg = model.Conf.Language(314)
- return
- }
-
- statuses, err := model.GetAttributeViewItemStatuses(blockID, avID, viewID, query, itemIDs)
- if nil != err {
- ret.Code = -1
- ret.Msg = err.Error()
- return
+ values, err := model.GetAttributeViewItemStatuses(request.BlockID, request.ID, request.ViewID, request.Query, append([]string{}, request.ItemIDs...))
+ if err != nil {
+ return apicontract.Failure[map[string]string](-1, err.Error())
}
- ret.Data = statuses
-}
+ return apicontract.Success(values)
+})
// getAttributeViewAddingBlockDefaultValues 用于获取添加块时的默认值。
// 存在过滤或分组条件时,添加块时需要填充默认值到过滤字段或分组字段中,前端需要调用该接口来获取这些默认值以便填充。
-func getAttributeViewAddingBlockDefaultValues(c *gin.Context) {
- ret := gulu.Ret.NewResult()
- defer c.JSON(http.StatusOK, ret)
-
- arg, ok := util.JsonArg(c, ret)
- if !ok {
- return
- }
-
- avID := arg["avID"].(string)
- blockID, _ := arg["blockID"].(string)
- var viewID string
- if viewIDArg := arg["viewID"]; nil != viewIDArg {
- viewID = viewIDArg.(string)
- }
- var groupID string
- if groupIDArg := arg["groupID"]; nil != groupIDArg {
- groupID = groupIDArg.(string)
- }
- var previousID string
- if nil != arg["previousID"] {
- previousID = arg["previousID"].(string)
- }
- var addingBlockID string
- if nil != arg["addingBlockID"] {
- addingBlockID = arg["addingBlockID"].(string)
- }
-
- values, err := model.GetAttrViewAddingBlockDefaultValues(avID, blockID, viewID, groupID, previousID, addingBlockID)
- if nil != err {
- ret.Code = -1
- ret.Msg = err.Error()
- return
+var getAttributeViewAddingBlockDefaultValues = contractHandler(apicontract.GetAttributeViewAddingBlockDefaultValues, func(c *gin.Context, request apicontract.GetAttributeViewAddingBlockDefaultValuesRequest) apicontract.Response[apicontract.AVValuesData] {
+ values, err := model.GetAttrViewAddingBlockDefaultValues(request.AvID, request.BlockID, request.ViewID, request.GroupID, request.PreviousID, request.AddingBlockID)
+ if err != nil {
+ return apicontract.Failure[apicontract.AVValuesData](-1, err.Error())
}
- if 1 > len(values) {
+ if len(values) == 0 {
values = nil
}
- ret.Data = map[string]any{
- "values": values,
- }
-}
-
-func batchReplaceAttributeViewBlocks(c *gin.Context) {
- // Add kernel API `/api/av/batchReplaceAttributeViewBlocks` https://github.com/siyuan-note/siyuan/issues/15313
- ret := gulu.Ret.NewResult()
- defer c.JSON(http.StatusOK, ret)
-
- arg, ok := util.JsonArg(c, ret)
- if !ok {
- return
- }
+ return apicontract.Success(apicontract.AVValuesData{Values: avContractMap(values, toContractAVValue)})
+})
- avID := arg["avID"].(string)
- isDetached := arg["isDetached"].(bool)
- oldNewArg := arg["oldNew"].([]any)
- var oldNew []map[string]string
- for _, v := range oldNewArg {
- for o, n := range v.(map[string]any) {
- oldNew = append(oldNew, map[string]string{o: n.(string)})
+var batchReplaceAttributeViewBlocks = contractHandler(apicontract.BatchReplaceAttributeViewBlocks, func(c *gin.Context, request apicontract.BatchReplaceAttributeViewBlocksRequest) apicontract.Response[apicontract.Null] {
+ var values []map[string]string
+ for _, pairs := range request.OldNew {
+ for oldID, newID := range pairs {
+ values = append(values, map[string]string{oldID: newID})
}
}
-
- err := model.BatchReplaceAttributeViewBlocks(avID, isDetached, oldNew)
- if err != nil {
- ret.Code = -1
- ret.Msg = err.Error()
- return
- }
-
- model.ReloadAttrView(avID)
-}
-
-func setAttrViewGroup(c *gin.Context) {
- ret := gulu.Ret.NewResult()
- arg, ok := util.JsonArg(c, ret)
- if !ok {
- c.JSON(http.StatusOK, ret)
- return
- }
-
- avID := arg["avID"].(string)
- blockID := arg["blockID"].(string)
- groupArg := arg["group"].(map[string]any)
- ignoreRows, _ := arg["ignoreRows"].(bool)
-
- data, err := gulu.JSON.MarshalJSON(groupArg)
- if nil != err {
- ret.Code = -1
- ret.Msg = err.Error()
- c.JSON(http.StatusOK, ret)
- return
- }
- group := &av.ViewGroup{}
- if err = gulu.JSON.UnmarshalJSON(data, group); nil != err {
- ret.Code = -1
- ret.Msg = err.Error()
- c.JSON(http.StatusOK, ret)
- return
- }
-
- err = model.SetAttributeViewGroup(avID, blockID, group)
- if err != nil {
- ret.Code = -1
- ret.Msg = err.Error()
-
- c.JSON(http.StatusOK, ret)
- return
+ if err := model.BatchReplaceAttributeViewBlocks(request.AvID, request.IsDetached, values); err != nil {
+ return apicontract.Failure[apicontract.Null](-1, err.Error())
}
+ model.ReloadAttrView(request.AvID)
+ return apicontract.Success(apicontract.Null{})
+})
- ret = renderAttrView(blockID, avID, "", "", 1, -1, nil, "", false, ignoreRows, "", "")
- if ret.Code == 0 && model.IsReadOnlyRoleContext(c) {
- publishAccess := model.GetPublishAccess()
- retDataMap := ret.Data.(map[string]any)
- retDataMap["view"] = model.FilterViewByPublishAccess(c, publishAccess, retDataMap["view"].(av.Viewable))
+var setAttrViewGroup = contractHandler(apicontract.SetAttrViewGroup, func(c *gin.Context, request apicontract.SetAttrViewGroupRequest) apicontract.Response[apicontract.AVRenderResult] {
+ if err := model.SetAttributeViewGroup(request.AvID, request.BlockID, fromContractAVViewGroup(&request.Group)); err != nil {
+ return apicontract.Failure[apicontract.AVRenderResult](-1, err.Error())
}
-
- c.JSON(http.StatusOK, ret)
-}
-
-func setAttrViewFilters(c *gin.Context) {
- ret := gulu.Ret.NewResult()
- arg, ok := util.JsonArg(c, ret)
- if !ok {
- c.JSON(http.StatusOK, ret)
- return
- }
-
- avID := arg["avID"].(string)
- blockID := arg["blockID"].(string)
- data := arg["data"].([]any)
-
- err := model.SetAttrViewFilters(avID, blockID, data)
- if err != nil {
- ret.Code = -1
- ret.Msg = err.Error()
- c.JSON(http.StatusOK, ret)
- return
- }
-
- model.ReloadAttrView(avID)
- c.JSON(http.StatusOK, ret)
-}
-
-func setAttrViewContextFilter(c *gin.Context) {
- ret := gulu.Ret.NewResult()
- defer c.JSON(http.StatusOK, ret)
- arg, ok := util.JsonArg(c, ret)
- if !ok {
- return
+ var filter func(av.Viewable) av.Viewable
+ if model.IsReadOnlyRoleContext(c) {
+ access := model.GetPublishAccess()
+ filter = func(view av.Viewable) av.Viewable { return model.FilterViewByPublishAccess(c, access, view) }
}
+ return renderAttrView(request.BlockID, request.AvID, "", "", 1, -1, nil, "", false, request.IgnoreRows, "", "", filter, false)
+})
- avID := arg["avID"].(string)
- blockID := arg["blockID"].(string)
- keyID, _ := arg["keyID"].(string)
- if err := holdAttributeViewRequest(c, blockID, avID); nil != err {
- ret.Code = -1
- ret.Msg = model.Conf.Language(314)
- return
+var setAttrViewFilters = contractHandler(apicontract.SetAttrViewFilters, func(c *gin.Context, request apicontract.SetAttrViewFiltersRequest) apicontract.Response[apicontract.Null] {
+ values := make([]any, len(request.Data))
+ for i, value := range request.Data {
+ values[i] = fromContractAVViewFilter(value)
}
-
- contextFilter, err := model.SetAttributeViewContextFilter(blockID, avID, keyID)
- if nil != err {
- ret.Code = -1
- ret.Msg = err.Error()
- return
+ if err := model.SetAttrViewFilters(request.AvID, request.BlockID, values); err != nil {
+ return apicontract.Failure[apicontract.Null](-1, err.Error())
}
- ret.Data = map[string]any{"contextFilter": contextFilter}
-}
+ model.ReloadAttrView(request.AvID)
+ return apicontract.Success(apicontract.Null{})
+})
-func setAttrViewSorts(c *gin.Context) {
- ret := gulu.Ret.NewResult()
- arg, ok := util.JsonArg(c, ret)
- if !ok {
- c.JSON(http.StatusOK, ret)
- return
+var setAttrViewContextFilter = contractHandler(apicontract.SetAttrViewContextFilter, func(c *gin.Context, request apicontract.SetAttrViewContextFilterRequest) apicontract.Response[apicontract.AVContextFilterData] {
+ if err := holdAttributeViewRequest(c, request.BlockID, request.AvID); err != nil {
+ return apicontract.Failure[apicontract.AVContextFilterData](-1, model.Conf.Language(314))
}
-
- avID := arg["avID"].(string)
- blockID := arg["blockID"].(string)
- data := arg["data"].([]any)
-
- err := model.SetAttrViewSorts(avID, blockID, data)
+ value, err := model.SetAttributeViewContextFilter(request.BlockID, request.AvID, request.KeyID)
if err != nil {
- ret.Code = -1
- ret.Msg = err.Error()
- c.JSON(http.StatusOK, ret)
- return
+ return apicontract.Failure[apicontract.AVContextFilterData](-1, err.Error())
}
+ return apicontract.Success(apicontract.AVContextFilterData{ContextFilter: toContractAVAttributeViewContextFilter(value)})
+})
- model.ReloadAttrView(avID)
- c.JSON(http.StatusOK, ret)
-}
-
-func changeAttrViewLayout(c *gin.Context) {
- ret := gulu.Ret.NewResult()
- arg, ok := util.JsonArg(c, ret)
- if !ok {
- c.JSON(http.StatusOK, ret)
- return
+var setAttrViewSorts = contractHandler(apicontract.SetAttrViewSorts, func(c *gin.Context, request apicontract.SetAttrViewSortsRequest) apicontract.Response[apicontract.Null] {
+ values := make([]any, len(request.Data))
+ for i, value := range request.Data {
+ values[i] = fromContractAVViewSort(value)
}
-
- blockID := arg["blockID"].(string)
- avID := arg["avID"].(string)
- layoutType := arg["layoutType"].(string)
- err := model.ChangeAttrViewLayout(blockID, avID, av.LayoutType(layoutType))
- if err != nil {
- ret.Code = -1
- ret.Msg = err.Error()
- c.JSON(http.StatusOK, ret)
- return
+ if err := model.SetAttrViewSorts(request.AvID, request.BlockID, values); err != nil {
+ return apicontract.Failure[apicontract.Null](-1, err.Error())
}
+ model.ReloadAttrView(request.AvID)
+ return apicontract.Success(apicontract.Null{})
+})
- ret = renderAttrView(blockID, avID, "", "", 1, -1, nil, "", false, false, "", "")
- if ret.Code == 0 && model.IsReadOnlyRoleContext(c) {
- publishAccess := model.GetPublishAccess()
- retDataMap := ret.Data.(map[string]any)
- retDataMap["view"] = model.FilterViewByPublishAccess(c, publishAccess, retDataMap["view"].(av.Viewable))
+var changeAttrViewLayout = contractHandler(apicontract.ChangeAttrViewLayout, func(c *gin.Context, request apicontract.ChangeAttrViewLayoutRequest) apicontract.Response[apicontract.AVRenderResult] {
+ if err := model.ChangeAttrViewLayout(request.BlockID, request.AvID, av.LayoutType(request.LayoutType)); err != nil {
+ return apicontract.Failure[apicontract.AVRenderResult](-1, err.Error())
}
-
- c.JSON(http.StatusOK, ret)
-}
-
-func duplicateAttributeViewBlock(c *gin.Context) {
- ret := gulu.Ret.NewResult()
- defer c.JSON(http.StatusOK, ret)
-
- arg, ok := util.JsonArg(c, ret)
- if !ok {
- return
+ var filter func(av.Viewable) av.Viewable
+ if model.IsReadOnlyRoleContext(c) {
+ access := model.GetPublishAccess()
+ filter = func(view av.Viewable) av.Viewable { return model.FilterViewByPublishAccess(c, access, view) }
}
- avID := arg["avID"].(string)
+ return renderAttrView(request.BlockID, request.AvID, "", "", 1, -1, nil, "", false, false, "", "", filter, false)
+})
- newAvID, newBlockID, err := model.DuplicateDatabaseBlock(avID)
+var duplicateAttributeViewBlock = contractHandler(apicontract.DuplicateAttributeViewBlock, func(c *gin.Context, request apicontract.DuplicateAttributeViewBlockRequest) apicontract.Response[apicontract.AVDuplicateData] {
+ avID, blockID, err := model.DuplicateDatabaseBlock(request.AvID)
if err != nil {
- ret.Code = -1
- ret.Msg = err.Error()
- return
- }
-
- ret.Data = map[string]any{
- "avID": newAvID,
- "blockID": newBlockID,
- }
-}
-
-func getAttributeViewKeysByAvID(c *gin.Context) {
- ret := gulu.Ret.NewResult()
- defer c.JSON(http.StatusOK, ret)
-
- arg, ok := util.JsonArg(c, ret)
- if !ok {
- return
+ return apicontract.Failure[apicontract.AVDuplicateData](-1, err.Error())
}
- avID := arg["avID"].(string)
- ret.Data = model.GetAttributeViewKeysByID(avID)
-}
-
-func getAttributeViewKeysByID(c *gin.Context) {
- ret := gulu.Ret.NewResult()
- defer c.JSON(http.StatusOK, ret)
-
- arg, ok := util.JsonArg(c, ret)
- if !ok {
- return
- }
- avID := arg["avID"].(string)
- if model.IsReadOnlyRoleContext(c) && !model.CheckAttributeViewAccessableByPublishAccess(c, model.GetPublishAccess(), avID) {
- ret.Code = -1
- ret.Msg = av.ErrAttributeViewNotFound.Error()
- return
- }
- keyIDsArg := arg["keyIDs"].([]any)
- var keyIDs []string
- for _, v := range keyIDsArg {
- keyIDs = append(keyIDs, v.(string))
- }
- ret.Data = model.GetAttributeViewKeysByID(avID, keyIDs...)
-}
-
-func getMirrorDatabaseBlocks(c *gin.Context) {
- ret := gulu.Ret.NewResult()
- defer c.JSON(http.StatusOK, ret)
+ return apicontract.Success(apicontract.AVDuplicateData{AvID: avID, BlockID: blockID})
+})
- arg, ok := util.JsonArg(c, ret)
- if !ok {
- return
- }
+var getAttributeViewKeysByAvID = contractHandler(apicontract.GetAttributeViewKeysByAvID, func(c *gin.Context, request apicontract.GetAttributeViewKeysByAvIDRequest) apicontract.Response[[]*apicontract.AVKey] {
+ return apicontract.Success(avContractSlice(model.GetAttributeViewKeysByID(request.AvID), toContractAVKey))
+})
- avID := arg["avID"].(string)
- blockIDs := treenode.GetMirrorAttrViewBlockIDs(avID)
- var retRefDefs []model.RefDefs
- for _, blockID := range blockIDs {
- retRefDefs = append(retRefDefs, model.RefDefs{RefID: blockID, DefIDs: []string{}})
+var getAttributeViewKeysByID = contractHandler(apicontract.GetAttributeViewKeysByID, func(c *gin.Context, request apicontract.GetAttributeViewKeysByIDRequest) apicontract.Response[[]*apicontract.AVKey] {
+ if model.IsReadOnlyRoleContext(c) && !model.CheckAttributeViewAccessableByPublishAccess(c, model.GetPublishAccess(), request.AvID) {
+ return apicontract.Failure[[]*apicontract.AVKey](-1, av.ErrAttributeViewNotFound.Error())
}
- if 1 > len(retRefDefs) {
- retRefDefs = []model.RefDefs{}
+ if request.KeyIDsError != nil {
+ return apicontract.Failure[[]*apicontract.AVKey](-1, request.KeyIDsError.Error())
}
+ return apicontract.Success(avContractSlice(model.GetAttributeViewKeysByID(request.AvID, request.KeyIDs...), toContractAVKey))
+})
- ret.Data = map[string]any{
- "refDefs": retRefDefs,
+var getMirrorDatabaseBlocks = contractHandler(apicontract.GetMirrorDatabaseBlocks, func(c *gin.Context, request apicontract.GetMirrorDatabaseBlocksRequest) apicontract.Response[apicontract.RefDefsData] {
+ values := []apicontract.RefDefs{}
+ for _, id := range treenode.GetMirrorAttrViewBlockIDs(request.AvID) {
+ values = append(values, apicontract.RefDefs{RefID: id, DefIDs: []string{}})
}
-}
-
-func setDatabaseBlockView(c *gin.Context) {
- ret := gulu.Ret.NewResult()
- defer c.JSON(http.StatusOK, ret)
+ return apicontract.Success(apicontract.RefDefsData{RefDefs: values})
+})
- arg, ok := util.JsonArg(c, ret)
- if !ok {
- return
+var setDatabaseBlockView = contractHandler(apicontract.SetDatabaseBlockView, func(c *gin.Context, request apicontract.SetDatabaseBlockViewRequest) apicontract.Response[apicontract.Null] {
+ if err := model.SetDatabaseBlockView(request.ID, request.AvID, request.ViewID); err != nil {
+ return apicontract.Failure[apicontract.Null](-1, err.Error())
}
+ return apicontract.Success(apicontract.Null{})
+})
- blockID := arg["id"].(string)
- viewID := arg["viewID"].(string)
- avID := arg["avID"].(string)
-
- err := model.SetDatabaseBlockView(blockID, avID, viewID)
+var getAttributeViewPrimaryKeyValues = contractHandler(apicontract.GetAttributeViewPrimaryKeyValues, func(c *gin.Context, request apicontract.GetAttributeViewPrimaryKeyValuesRequest) apicontract.Response[apicontract.AVPrimaryValuesData] {
+ name, blockIDs, rows, total, err := model.GetAttributeViewPrimaryKeyValues(request.ID, request.Keyword, avNonemptyStrings(request.BlockIDs), avPage(request.Page, 1), avPage(request.PageSize, -1))
if err != nil {
- ret.Code = -1
- ret.Msg = err.Error()
- return
+ return apicontract.Failure[apicontract.AVPrimaryValuesData](-1, err.Error())
}
-}
+ return apicontract.Success(apicontract.AVPrimaryValuesData{Name: name, BlockIDs: blockIDs, Rows: toContractAVKeyValues(rows), Total: total})
+})
-func getAttributeViewPrimaryKeyValues(c *gin.Context) {
- ret := gulu.Ret.NewResult()
- defer c.JSON(http.StatusOK, ret)
-
- arg, ok := util.JsonArg(c, ret)
- if !ok {
- return
+var getAttributeViewRelationCandidates = contractHandler(apicontract.GetAttributeViewRelationCandidates, func(c *gin.Context, request apicontract.GetAttributeViewRelationCandidatesRequest) apicontract.Response[apicontract.AVRelationCandidatesData] {
+ avID := request.AvID
+ if avID == "" {
+ avID = request.ID
}
-
- id := arg["id"].(string)
- page := 1
- pageArg := arg["page"]
- if nil != pageArg {
- page = int(pageArg.(float64))
- }
-
- pageSize := -1
- pageSizeArg := arg["pageSize"]
- if nil != pageSizeArg {
- pageSize = int(pageSizeArg.(float64))
- }
-
- keyword := ""
- if keywordArg := arg["keyword"]; nil != keywordArg {
- keyword = keywordArg.(string)
- }
- var blockIDs []string
- if blockIDsArg := arg["blockIDs"]; nil != blockIDsArg {
- if blockIDArgs, ok := blockIDsArg.([]any); ok {
- for _, blockIDArg := range blockIDArgs {
- if blockID, ok := blockIDArg.(string); ok && "" != blockID {
- blockIDs = append(blockIDs, blockID)
- }
- }
- }
- }
- attributeViewName, databaseBlockIDs, rows, total, err := model.GetAttributeViewPrimaryKeyValues(id, keyword, blockIDs, page, pageSize)
+ name, blockIDs, colors, columns, selectedRows, rows, total, err := model.GetAttributeViewRelationCandidates(avID, request.KeyID, request.Keyword, avNonemptyStrings(request.SelectedBlockIDs), avPage(request.Page, 1), avPage(request.PageSize, -1))
if err != nil {
- ret.Code = -1
- ret.Msg = err.Error()
- return
- }
-
- ret.Data = map[string]any{
- "name": attributeViewName,
- "blockIDs": databaseBlockIDs,
- "rows": rows,
- "total": total,
- }
-}
-
-func getAttributeViewRelationCandidates(c *gin.Context) {
- ret := gulu.Ret.NewResult()
- defer c.JSON(http.StatusOK, ret)
-
- arg, ok := util.JsonArg(c, ret)
- if !ok {
- return
- }
-
- avID, _ := arg["avID"].(string)
- keyID, _ := arg["keyID"].(string)
- if "" == avID {
- avID, _ = arg["id"].(string)
- }
- keyword := ""
- if keywordArg := arg["keyword"]; nil != keywordArg {
- keyword = keywordArg.(string)
- }
- page := 1
- if pageArg := arg["page"]; nil != pageArg {
- page = int(pageArg.(float64))
- }
- pageSize := -1
- if pageSizeArg := arg["pageSize"]; nil != pageSizeArg {
- pageSize = int(pageSizeArg.(float64))
- }
- var selectedBlockIDs []string
- if selectedBlockIDsArg, ok := arg["selectedBlockIDs"].([]any); ok {
- for _, selectedBlockIDArg := range selectedBlockIDsArg {
- if selectedBlockID, ok := selectedBlockIDArg.(string); ok && "" != selectedBlockID {
- selectedBlockIDs = append(selectedBlockIDs, selectedBlockID)
- }
- }
- }
-
- name, blockIDs, customColors, columns, selectedRows, rows, total, err := model.GetAttributeViewRelationCandidates(
- avID, keyID, keyword, selectedBlockIDs, page, pageSize)
- if err != nil {
- ret.Code = -1
- ret.Msg = err.Error()
- return
+ return apicontract.Failure[apicontract.AVRelationCandidatesData](-1, err.Error())
}
notebookID := ""
- if 0 < len(blockIDs) {
- if blockTree := treenode.GetBlockTree(blockIDs[0]); nil != blockTree {
- notebookID = blockTree.BoxID
+ if len(blockIDs) > 0 {
+ if tree := treenode.GetBlockTree(blockIDs[0]); tree != nil {
+ notebookID = tree.BoxID
}
}
- ret.Data = map[string]any{
- "name": name,
- "blockIDs": blockIDs,
- "customColors": customColors,
- "notebookID": notebookID,
- "columns": columns,
- "selectedRows": selectedRows,
- "rows": rows,
- "total": total,
- }
-}
-
-func appendAttributeViewDetachedBlocksWithValues(c *gin.Context) {
- // Add an internal kernel API `/api/av/appendAttributeViewDetachedBlocksWithValues` https://github.com/siyuan-note/siyuan/issues/11608
-
- ret := gulu.Ret.NewResult()
- defer c.JSON(http.StatusOK, ret)
-
- arg, _ := util.JsonArg(c, ret)
- if nil == arg {
- return
- }
+ return apicontract.Success(apicontract.AVRelationCandidatesData{Name: name, BlockIDs: blockIDs, CustomColors: avContractSlice(colors, toContractAVAttributeViewCustomColor), NotebookID: notebookID, Columns: avContractSlice(columns, toContractAVTableColumn), SelectedRows: avContractSlice(selectedRows, toContractAVTableRow), Rows: avContractSlice(rows, toContractAVTableRow), Total: total})
+})
- avID := arg["avID"].(string)
+var appendAttributeViewDetachedBlocksWithValues = contractHandler(apicontract.AppendAttributeViewDetachedBlocksWithValues, func(c *gin.Context, request apicontract.AppendAttributeViewDetachedBlocksWithValuesRequest) apicontract.Response[apicontract.Null] {
var values [][]*av.Value
- for _, blocksVals := range arg["blocksValues"].([]any) {
- vals := blocksVals.([]any)
+ for _, row := range request.BlocksValues {
var rowValues []*av.Value
- for _, val := range vals {
- data, marshalErr := gulu.JSON.MarshalJSON(val)
- if nil != marshalErr {
- ret.Code = -1
- ret.Msg = marshalErr.Error()
- return
+ for _, value := range row {
+ if value == nil {
+ value = &apicontract.AVValue{}
}
- value := av.Value{}
- if unmarshalErr := gulu.JSON.UnmarshalJSON(data, &value); nil != unmarshalErr {
- ret.Code = -1
- ret.Msg = unmarshalErr.Error()
- return
- }
- rowValues = append(rowValues, &value)
+ rowValues = append(rowValues, fromContractAVValue(value))
}
values = append(values, rowValues)
}
-
- err := model.AppendAttributeViewDetachedBlocksWithValues(avID, values)
- if err != nil {
- ret.Code = -1
- ret.Msg = err.Error()
- return
- }
-}
-
-func addAttributeViewBlocks(c *gin.Context) {
- ret := gulu.Ret.NewResult()
- defer c.JSON(http.StatusOK, ret)
-
- arg, _ := util.JsonArg(c, ret)
- if nil == arg {
- return
- }
-
- avID := arg["avID"].(string)
- var blockID string
- if blockIDArg := arg["blockID"]; nil != blockIDArg {
- blockID = blockIDArg.(string)
- }
- var viewID string
- if viewIDArg := arg["viewID"]; nil != viewIDArg {
- viewID = viewIDArg.(string)
- }
- var groupID string
- if groupIDArg := arg["groupID"]; nil != groupIDArg {
- groupID = groupIDArg.(string)
- }
- var previousID string
- if nil != arg["previousID"] {
- previousID = arg["previousID"].(string)
+ if err := model.AppendAttributeViewDetachedBlocksWithValues(request.AvID, values); err != nil {
+ return apicontract.Failure[apicontract.Null](-1, err.Error())
}
+ return apicontract.Success(apicontract.Null{})
+})
+var addAttributeViewBlocks = contractHandler(apicontract.AddAttributeViewBlocks, func(c *gin.Context, request apicontract.AddAttributeViewBlocksRequest) apicontract.Response[apicontract.Null] {
var srcs []map[string]any
- for _, v := range arg["srcs"].([]any) {
- src := v.(map[string]any)
+ for _, value := range request.Srcs {
+ src := map[string]any{"id": value.ID, "isDetached": value.IsDetached}
+ if value.ItemID != nil {
+ src["itemID"] = *value.ItemID
+ }
+ if value.Content != nil {
+ src["content"] = *value.Content
+ }
srcs = append(srcs, src)
}
-
- var ignoreDefaultFill bool
- if nil != arg["ignoreDefaultFill"] {
- ignoreDefaultFill = arg["ignoreDefaultFill"].(bool)
+ if err := model.AddAttributeViewBlock(nil, srcs, request.AvID, request.BlockID, request.ViewID, request.GroupID, request.PreviousID, request.IgnoreDefaultFill); err != nil {
+ return apicontract.Failure[apicontract.Null](-1, err.Error())
}
+ model.ReloadAttrView(request.AvID)
+ return apicontract.Success(apicontract.Null{})
+})
- err := model.AddAttributeViewBlock(nil, srcs, avID, blockID, viewID, groupID, previousID, ignoreDefaultFill)
- if err != nil {
- ret.Code = -1
- ret.Msg = err.Error()
- return
+var removeAttributeViewBlocks = contractHandler(apicontract.RemoveAttributeViewBlocks, func(c *gin.Context, request apicontract.RemoveAttributeViewBlocksRequest) apicontract.Response[apicontract.Null] {
+ if err := model.RemoveAttributeViewBlock(append([]string(nil), request.SrcIDs...), request.AvID); err != nil {
+ return apicontract.Failure[apicontract.Null](-1, err.Error())
}
+ model.ReloadAttrView(request.AvID)
+ return apicontract.Success(apicontract.Null{})
+})
- model.ReloadAttrView(avID)
-}
-
-func removeAttributeViewBlocks(c *gin.Context) {
- ret := gulu.Ret.NewResult()
- defer c.JSON(http.StatusOK, ret)
-
- arg, _ := util.JsonArg(c, ret)
- if nil == arg {
- return
+var addAttributeViewKey = contractHandler(apicontract.AddAttributeViewKey, func(c *gin.Context, request apicontract.AddAttributeViewKeyRequest) apicontract.Response[apicontract.Null] {
+ if err := model.AddAttributeViewKey(request.AvID, request.BlockID, request.KeyID, request.KeyName, request.KeyType, request.KeyIcon, request.PreviousKeyID, av.DateDisplayFormatFull); err != nil {
+ return apicontract.Failure[apicontract.Null](-1, err.Error())
}
+ model.ReloadAttrView(request.AvID)
+ return apicontract.Success(apicontract.Null{})
+})
- avID := arg["avID"].(string)
- var srcIDs []string
- for _, v := range arg["srcIDs"].([]any) {
- srcIDs = append(srcIDs, v.(string))
+var removeAttributeViewKey = contractHandler(apicontract.RemoveAttributeViewKey, func(c *gin.Context, request apicontract.RemoveAttributeViewKeyRequest) apicontract.Response[apicontract.Null] {
+ if err := model.RemoveAttributeViewKey(request.AvID, request.KeyID, request.RemoveRelationDest); err != nil {
+ return apicontract.Failure[apicontract.Null](-1, err.Error())
}
+ model.ReloadAttrView(request.AvID)
+ return apicontract.Success(apicontract.Null{})
+})
- err := model.RemoveAttributeViewBlock(srcIDs, avID)
- if err != nil {
- ret.Code = -1
- ret.Msg = err.Error()
- return
+var sortAttributeViewViewKey = contractHandler(apicontract.SortAttributeViewViewKey, func(c *gin.Context, request apicontract.SortAttributeViewViewKeyRequest) apicontract.Response[apicontract.Null] {
+ if err := model.SortAttributeViewViewKey(request.AvID, request.ViewID, request.KeyID, request.PreviousKeyID); err != nil {
+ return apicontract.Failure[apicontract.Null](-1, err.Error())
}
+ model.ReloadAttrView(request.AvID)
+ return apicontract.Success(apicontract.Null{})
+})
- model.ReloadAttrView(avID)
-}
-
-func addAttributeViewKey(c *gin.Context) {
- ret := gulu.Ret.NewResult()
- defer c.JSON(http.StatusOK, ret)
-
- arg, _ := util.JsonArg(c, ret)
- if nil == arg {
- return
+var sortAttributeViewKey = contractHandler(apicontract.SortAttributeViewKey, func(c *gin.Context, request apicontract.SortAttributeViewKeyRequest) apicontract.Response[apicontract.Null] {
+ if err := model.SortAttributeViewKey(request.AvID, request.KeyID, request.PreviousKeyID); err != nil {
+ return apicontract.Failure[apicontract.Null](-1, err.Error())
}
+ model.ReloadAttrView(request.AvID)
+ return apicontract.Success(apicontract.Null{})
+})
- avID := arg["avID"].(string)
- blockID, _ := arg["blockID"].(string)
- keyID := arg["keyID"].(string)
- keyName := arg["keyName"].(string)
- keyType := arg["keyType"].(string)
- keyIcon := arg["keyIcon"].(string)
- previousKeyID := arg["previousKeyID"].(string)
+var getAttributeViewFilterSort = contractHandler(apicontract.GetAttributeViewFilterSort, func(c *gin.Context, request apicontract.GetAttributeViewFilterSortRequest) apicontract.Response[apicontract.AVFilterSortData] {
+ filters, sorts := model.GetAttributeViewFilterSort(request.ID, request.BlockID)
+ return apicontract.Success(apicontract.AVFilterSortData{Filters: avContractSlice(filters, toContractAVViewFilter), Sorts: avContractSlice(sorts, toContractAVViewSort)})
+})
- err := model.AddAttributeViewKey(avID, blockID, keyID, keyName, keyType, keyIcon, previousKeyID, av.DateDisplayFormatFull)
- if err != nil {
- ret.Code = -1
- ret.Msg = err.Error()
- return
- }
+var searchAttributeViewRollupDestKeys = contractHandler(apicontract.SearchAttributeViewRollupDestKeys, func(c *gin.Context, request apicontract.SearchAttributeViewRollupDestKeysRequest) apicontract.Response[apicontract.AVKeysData] {
+ return apicontract.Success(apicontract.AVKeysData{Keys: avContractSlice(model.SearchAttributeViewRollupDestKeys(request.AvID, request.Keyword), toContractAVKey)})
+})
- model.ReloadAttrView(avID)
-}
+var searchAttributeViewRelationKey = contractHandler(apicontract.SearchAttributeViewRelationKey, func(c *gin.Context, request apicontract.SearchAttributeViewRelationKeyRequest) apicontract.Response[apicontract.AVKeysData] {
+ return apicontract.Success(apicontract.AVKeysData{Keys: avContractSlice(model.SearchAttributeViewRelationKey(request.AvID, request.Keyword), toContractAVKey)})
+})
-func removeAttributeViewKey(c *gin.Context) {
- ret := gulu.Ret.NewResult()
- defer c.JSON(http.StatusOK, ret)
+var getAttributeView = contractHandler(apicontract.GetAttributeView, func(c *gin.Context, request apicontract.GetAttributeViewRequest) apicontract.Response[apicontract.AVData] {
+ return apicontract.Success(apicontract.AVData{Av: toContractAVAttributeViewData(model.NewAttributeViewData(model.GetAttributeView(request.ID)))})
+})
- arg, _ := util.JsonArg(c, ret)
- if nil == arg {
- return
- }
-
- avID := arg["avID"].(string)
- keyID := arg["keyID"].(string)
- removeRelationDest := false
- if nil != arg["removeRelationDest"] {
- removeRelationDest = arg["removeRelationDest"].(bool)
- }
-
- err := model.RemoveAttributeViewKey(avID, keyID, removeRelationDest)
- if err != nil {
- ret.Code = -1
- ret.Msg = err.Error()
- return
- }
-
- model.ReloadAttrView(avID)
-}
-
-func sortAttributeViewViewKey(c *gin.Context) {
+var getAttributeViewPasteRows = contractHandler(apicontract.GetAttributeViewPasteRows, func(c *gin.Context, request apicontract.GetAttributeViewPasteRowsRequest) apicontract.Response[apicontract.AVPasteRowsData] {
ret := gulu.Ret.NewResult()
- defer c.JSON(http.StatusOK, ret)
-
- arg, ok := util.JsonArg(c, ret)
- if !ok {
- return
+ if util.InvalidIDPattern(request.AvID, ret) || util.InvalidIDPattern(request.BlockID, ret) || util.InvalidIDPattern(request.StartItemID, ret) || (request.ViewID != "" && util.InvalidIDPattern(request.ViewID, ret)) || (request.GroupID != "" && util.InvalidIDPattern(request.GroupID, ret)) {
+ return contractFailure[apicontract.AVPasteRowsData](ret)
}
-
- avID := arg["avID"].(string)
- viewID := ""
- if viewIDArg := arg["viewID"]; nil != viewIDArg {
- viewID = viewIDArg.(string)
+ count := int(request.Count)
+ if request.Count != float64(count) || count < 1 || count > 100000 {
+ return apicontract.Failure[apicontract.AVPasteRowsData](-1, "invalid paste row count")
}
- keyID := arg["keyID"].(string)
- previousKeyID := arg["previousKeyID"].(string)
-
- err := model.SortAttributeViewViewKey(avID, viewID, keyID, previousKeyID)
+ view, keys, err := model.GetAttributeViewPasteRows(request.BlockID, request.AvID, request.ViewID, request.GroupID, request.Query, request.StartItemID, count)
if err != nil {
- ret.Code = -1
- ret.Msg = err.Error()
- return
+ return apicontract.Failure[apicontract.AVPasteRowsData](-1, err.Error())
}
+ return apicontract.Success(apicontract.AVPasteRowsData{View: toContractAVTable(view), InferableKeyIDs: keys})
+})
- model.ReloadAttrView(avID)
-}
-
-func sortAttributeViewKey(c *gin.Context) {
+var getAttributeViewFieldViews = contractHandler(apicontract.GetAttributeViewFieldViews, func(c *gin.Context, request apicontract.GetAttributeViewFieldViewsRequest) apicontract.Response[apicontract.AVFieldViewsData] {
ret := gulu.Ret.NewResult()
- defer c.JSON(http.StatusOK, ret)
-
- arg, ok := util.JsonArg(c, ret)
- if !ok {
- return
+ if util.InvalidIDPattern(request.AvID, ret) || util.InvalidIDPattern(request.KeyID, ret) {
+ return contractFailure[apicontract.AVFieldViewsData](ret)
}
-
- avID := arg["avID"].(string)
- keyID := arg["keyID"].(string)
- previousKeyID := arg["previousKeyID"].(string)
-
- err := model.SortAttributeViewKey(avID, keyID, previousKeyID)
+ views, err := model.GetAttributeViewFieldViews(request.AvID, request.KeyID)
if err != nil {
- ret.Code = -1
- ret.Msg = err.Error()
- return
- }
-
- model.ReloadAttrView(avID)
-}
-
-func getAttributeViewFilterSort(c *gin.Context) {
- ret := gulu.Ret.NewResult()
- defer c.JSON(http.StatusOK, ret)
-
- arg, _ := util.JsonArg(c, ret)
- if nil == arg {
- return
- }
-
- avID := arg["id"].(string)
- blockID := arg["blockID"].(string)
-
- filters, sorts := model.GetAttributeViewFilterSort(avID, blockID)
- ret.Data = map[string]any{
- "filters": filters,
- "sorts": sorts,
- }
-}
-
-func searchAttributeViewRollupDestKeys(c *gin.Context) {
- ret := gulu.Ret.NewResult()
- defer c.JSON(http.StatusOK, ret)
-
- arg, _ := util.JsonArg(c, ret)
- if nil == arg {
- return
- }
-
- avID := arg["avID"].(string)
- keyword := arg["keyword"].(string)
-
- rollupDestKeys := model.SearchAttributeViewRollupDestKeys(avID, keyword)
- ret.Data = map[string]any{
- "keys": rollupDestKeys,
- }
-}
-
-func searchAttributeViewRelationKey(c *gin.Context) {
- ret := gulu.Ret.NewResult()
- defer c.JSON(http.StatusOK, ret)
-
- arg, _ := util.JsonArg(c, ret)
- if nil == arg {
- return
- }
-
- avID := arg["avID"].(string)
- keyword := arg["keyword"].(string)
-
- relationKeys := model.SearchAttributeViewRelationKey(avID, keyword)
- ret.Data = map[string]any{
- "keys": relationKeys,
- }
-}
-
-func getAttributeView(c *gin.Context) {
- ret := gulu.Ret.NewResult()
- defer c.JSON(http.StatusOK, ret)
-
- arg, _ := util.JsonArg(c, ret)
- if nil == arg {
- return
- }
-
- id := arg["id"].(string)
- ret.Data = map[string]any{
- "av": model.NewAttributeViewData(model.GetAttributeView(id)),
- }
-}
-
-func getAttributeViewPasteRows(c *gin.Context) {
- ret := gulu.Ret.NewResult()
- defer c.JSON(http.StatusOK, ret)
-
- arg, ok := util.JsonArg(c, ret)
- if !ok {
- return
- }
-
- var avID, blockID, viewID, groupID, query, startItemID string
- var countArg float64
- if !util.ParseJsonArgs(arg, ret,
- util.BindJsonArg("avID", &avID, true, true),
- util.BindJsonArg("blockID", &blockID, true, true),
- util.BindJsonArg("viewID", &viewID, false, false),
- util.BindJsonArg("groupID", &groupID, false, false),
- util.BindJsonArg("query", &query, false, false),
- util.BindJsonArg("startItemID", &startItemID, true, true),
- util.BindJsonArg("count", &countArg, true, false),
- ) {
- return
- }
- if util.InvalidIDPattern(avID, ret) || util.InvalidIDPattern(blockID, ret) ||
- util.InvalidIDPattern(startItemID, ret) ||
- ("" != viewID && util.InvalidIDPattern(viewID, ret)) ||
- ("" != groupID && util.InvalidIDPattern(groupID, ret)) {
- return
- }
- count := int(countArg)
- if countArg != float64(count) || count < 1 || 100000 < count {
- ret.Code = -1
- ret.Msg = "invalid paste row count"
- return
- }
-
- view, inferableKeyIDs, err := model.GetAttributeViewPasteRows(blockID, avID, viewID, groupID, query, startItemID, count)
- if nil != err {
- ret.Code = -1
- ret.Msg = err.Error()
- return
+ return apicontract.Failure[apicontract.AVFieldViewsData](-1, err.Error())
}
- ret.Data = map[string]any{"view": view, "inferableKeyIDs": inferableKeyIDs}
-}
-
-func getAttributeViewFieldViews(c *gin.Context) {
- ret := gulu.Ret.NewResult()
- defer c.JSON(http.StatusOK, ret)
+ return apicontract.Success(apicontract.AVFieldViewsData{Views: avContractSlice(views, toContractAVAttributeViewFieldView)})
+})
- arg, ok := util.JsonArg(c, ret)
- if !ok {
- return
- }
+var createAttributeViewItem = contractHandler(apicontract.CreateAttributeViewItem, func(c *gin.Context, request apicontract.CreateAttributeViewItemRequest) apicontract.Response[apicontract.AVCreateItemResult] {
+ value, err := model.CreateAttributeViewItem(request.AvID, request.BlockID, request.ViewID, request.TemplateID, request.PreviousID, request.GroupID)
+ return createAVItemResponse(value, err, request.App, request.Session)
+})
- var avID, keyID string
- if !util.ParseJsonArgs(arg, ret,
- util.BindJsonArg("avID", &avID, true, true),
- util.BindJsonArg("keyID", &keyID, true, true),
- ) {
- return
- }
- if util.InvalidIDPattern(avID, ret) || util.InvalidIDPattern(keyID, ret) {
- return
- }
+var createAttributeViewItemWithMarkdown = contractHandler(apicontract.CreateAttributeViewItemWithMarkdown, func(c *gin.Context, request apicontract.CreateAttributeViewItemWithMarkdownRequest) apicontract.Response[apicontract.AVCreateItemResult] {
+ value, err := model.CreateAttributeViewItemWithMarkdown(request.AvID, request.BlockID, request.ViewID, request.TemplateID, request.PreviousID, request.GroupID, &model.CreateAttributeViewItemMarkdown{Title: request.Title, Markdown: request.Markdown, Tags: request.Tags, WithMath: request.WithMath, ClippingHref: request.ClippingHref, ListDocTree: request.ListDocTree})
+ return createAVItemResponse(value, err, request.App, request.Session)
+})
- views, err := model.GetAttributeViewFieldViews(avID, keyID)
+var createAttributeViewItemDocs = contractHandler(apicontract.CreateAttributeViewItemDocs, func(c *gin.Context, request apicontract.CreateAttributeViewItemDocsRequest) apicontract.Response[apicontract.AVCreateItemDocsResult] {
+ value, err := model.CreateAttributeViewItemDocs(request.AvID, request.BlockID, request.SaveMode, avNonemptyStrings(request.ItemIDs))
if err != nil {
- ret.Code = -1
- ret.Msg = err.Error()
- return
- }
- ret.Data = map[string]any{
- "views": views,
- }
-}
-
-func createAttributeViewItem(c *gin.Context) {
- ret := gulu.Ret.NewResult()
- defer c.JSON(http.StatusOK, ret)
-
- arg, ok := util.JsonArg(c, ret)
- if !ok {
- return
- }
- var avID, blockID, viewID, templateID, previousID, groupID, app, session string
- if !util.ParseJsonArgs(arg, ret,
- util.BindJsonArg("avID", &avID, true, false),
- util.BindJsonArg("blockID", &blockID, true, false),
- util.BindJsonArg("viewID", &viewID, false, false),
- util.BindJsonArg("templateID", &templateID, false, false),
- util.BindJsonArg("previousID", &previousID, false, false),
- util.BindJsonArg("groupID", &groupID, false, false),
- util.BindJsonArg("app", &app, false, false),
- util.BindJsonArg("session", &session, false, false),
- ) {
- return
- }
- result, err := model.CreateAttributeViewItem(avID, blockID, viewID, templateID, previousID, groupID)
- setCreateAttributeViewItemResult(ret, result, err, app, session)
-}
-
-func createAttributeViewItemWithMarkdown(c *gin.Context) {
- ret := gulu.Ret.NewResult()
- defer c.JSON(http.StatusOK, ret)
-
- arg, ok := util.JsonArg(c, ret)
- if !ok {
- return
- }
- var avID, blockID, viewID, templateID, previousID, groupID, title, markdown, tags, clippingHref, app, session string
- var withMath, listDocTree bool
- if !util.ParseJsonArgs(arg, ret,
- util.BindJsonArg("avID", &avID, true, true),
- util.BindJsonArg("blockID", &blockID, true, true),
- util.BindJsonArg("viewID", &viewID, false, false),
- util.BindJsonArg("templateID", &templateID, true, true),
- util.BindJsonArg("previousID", &previousID, false, false),
- util.BindJsonArg("groupID", &groupID, false, false),
- util.BindJsonArg("title", &title, true, true),
- util.BindJsonArg("markdown", &markdown, true, false),
- util.BindJsonArg("tags", &tags, false, false),
- util.BindJsonArg("withMath", &withMath, false, false),
- util.BindJsonArg("clippingHref", &clippingHref, false, false),
- util.BindJsonArg("listDocTree", &listDocTree, false, false),
- util.BindJsonArg("app", &app, false, false),
- util.BindJsonArg("session", &session, false, false),
- ) {
- return
- }
- result, err := model.CreateAttributeViewItemWithMarkdown(avID, blockID, viewID, templateID, previousID, groupID,
- &model.CreateAttributeViewItemMarkdown{
- Title: title, Markdown: markdown, Tags: tags, WithMath: withMath, ClippingHref: clippingHref,
- ListDocTree: listDocTree,
- })
- setCreateAttributeViewItemResult(ret, result, err, app, session)
-}
-
-func setCreateAttributeViewItemResult(ret *gulu.Result, result *model.CreateAttributeViewItemResult, err error, app, session string) {
- if nil != err {
if errors.Is(err, model.ErrBoxNotFound) {
- ret.Code = 1
- ret.Data = map[string]any{"unavailableNotebook": true}
- return
+ return apicontract.CreateAttributeViewItemDocs.FailureWithData(1, "", apicontract.NewAVCreateItemDocsResultError(apicontract.AVUnavailableNotebook{UnavailableNotebook: true}))
}
- ret.Code = -1
- ret.Msg = err.Error()
- return
- }
- ret.Data = result
- if nil != result.Transaction {
- for _, operation := range result.Transaction.DoOperations {
- if "insertAttrViewBlock" == operation.Action {
- operation.Context = map[string]any{
- "filteredTipScope": "target",
- "filteredTipToken": result.ItemID,
- "filteredTipAppID": app,
- "protyleID": session,
- "openFilteredItem": "true",
- }
- break
- }
- }
- pushTransactions(app, session, []*model.Transaction{result.Transaction})
+ return apicontract.Failure[apicontract.AVCreateItemDocsResult](-1, err.Error())
}
-}
-
-func createAttributeViewItemDocs(c *gin.Context) {
- ret := gulu.Ret.NewResult()
- defer c.JSON(http.StatusOK, ret)
-
- arg, ok := util.JsonArg(c, ret)
- if !ok {
- return
- }
- var itemIDsArg []any
- var avID, blockID, saveMode, app, session string
- if !util.ParseJsonArgs(arg, ret,
- util.BindJsonArg("avID", &avID, true, false),
- util.BindJsonArg("blockID", &blockID, true, false),
- util.BindJsonArg("saveMode", &saveMode, true, false),
- util.BindJsonArg("itemIDs", &itemIDsArg, true, false),
- util.BindJsonArg("app", &app, false, false),
- util.BindJsonArg("session", &session, false, false),
- ) {
- return
- }
- var itemIDs []string
- for _, itemIDArg := range itemIDsArg {
- itemID, itemOK := itemIDArg.(string)
- if itemOK && "" != itemID {
- itemIDs = append(itemIDs, itemID)
- }
- }
- result, err := model.CreateAttributeViewItemDocs(avID, blockID, saveMode, itemIDs)
- if nil != err {
- if errors.Is(err, model.ErrBoxNotFound) {
- ret.Code = 1
- ret.Data = map[string]any{"unavailableNotebook": true}
- return
- }
- ret.Code = -1
- ret.Msg = err.Error()
- return
- }
- ret.Data = result
- if nil != result.Transaction {
- pushTransactions(app, session, []*model.Transaction{result.Transaction})
+ if value.Transaction != nil {
+ pushTransactions(request.App, request.Session, []*model.Transaction{value.Transaction})
}
-}
-
-func searchAttributeView(c *gin.Context) {
- ret := gulu.Ret.NewResult()
- defer c.JSON(http.StatusOK, ret)
+ return apicontract.Success(apicontract.NewAVCreateItemDocsResult(*toContractAVCreateAttributeViewItemDocsResult(value)))
+})
- arg, _ := util.JsonArg(c, ret)
- if nil == arg {
- return
- }
+var searchAttributeView = contractHandler(apicontract.SearchAttributeView, func(c *gin.Context, request apicontract.SearchAttributeViewRequest) apicontract.Response[apicontract.AVSearchData] {
+ values := model.SearchAttributeViewWithOptions(model.SearchAttributeViewOptions{Keyword: request.Keyword, ExcludeAvIDs: append([]string(nil), request.Excludes...), CurrentAvID: request.AvID, CurrentBlockID: request.BlockID, IncludeViewMatches: request.IncludeViewMatches})
+ return apicontract.Success(apicontract.AVSearchData{Results: avContractSlice(values, toContractAVAvSearchResult)})
+})
- keyword := arg["keyword"].(string)
- currentAvID := ""
- if nil != arg["avID"] {
- currentAvID = arg["avID"].(string)
- }
- currentBlockID := ""
- if nil != arg["blockID"] {
- currentBlockID = arg["blockID"].(string)
- }
- var excludes []string
- if nil != arg["excludes"] {
- for _, e := range arg["excludes"].([]any) {
- excludes = append(excludes, e.(string))
- }
- }
- includeViewMatches, _ := arg["includeViewMatches"].(bool)
- results := model.SearchAttributeViewWithOptions(model.SearchAttributeViewOptions{
- Keyword: keyword,
- ExcludeAvIDs: excludes,
- CurrentAvID: currentAvID,
- CurrentBlockID: currentBlockID,
- IncludeViewMatches: includeViewMatches,
- })
- ret.Data = map[string]any{
- "results": results,
+var renderSnapshotAttributeView = contractHandler(apicontract.RenderSnapshotAttributeView, func(c *gin.Context, request apicontract.RenderSnapshotAttributeViewRequest) apicontract.Response[apicontract.AVArchiveRenderData] {
+ if err := holdAttributeViewRequest(c, request.BlockID, request.ID); err != nil {
+ return apicontract.Failure[apicontract.AVArchiveRenderData](-1, model.Conf.Language(314))
}
-}
-
-func renderSnapshotAttributeView(c *gin.Context) {
- ret := gulu.Ret.NewResult()
- defer c.JSON(http.StatusOK, ret)
-
- arg, ok := util.JsonArg(c, ret)
- if !ok {
- return
- }
-
- index := arg["snapshot"].(string)
- id := arg["id"].(string)
- blockID, _ := arg["blockID"].(string)
- viewID, _ := arg["viewID"].(string)
- carrierViewID, _ := arg["carrierViewID"].(string)
- if err := holdAttributeViewRequest(c, blockID, id); err != nil {
- ret.Code = -1
- ret.Msg = model.Conf.Language(314)
- return
- }
- boxID, err := model.ResolveRepoSnapshotAttributeViewBoxID(index, id)
+ boxID, err := model.ResolveRepoSnapshotAttributeViewBoxID(request.Snapshot, request.ID)
if err != nil {
- ret.Code = -1
- ret.Msg = err.Error()
- return
+ return apicontract.Failure[apicontract.AVArchiveRenderData](-1, err.Error())
}
if err = holdEncryptedBoxRequest(c, boxID); err != nil {
- ret.Code = -1
- ret.Msg = model.Conf.Language(314)
- return
+ return apicontract.Failure[apicontract.AVArchiveRenderData](-1, model.Conf.Language(314))
}
- view, attrView, err := model.RenderRepoSnapshotAttributeView(index, id, viewID, carrierViewID)
+ view, attrView, err := model.RenderRepoSnapshotAttributeView(request.Snapshot, request.ID, request.ViewID, request.CarrierViewID)
if err != nil {
- ret.Code = -1
- ret.Msg = err.Error()
- return
+ return apicontract.Failure[apicontract.AVArchiveRenderData](-1, err.Error())
}
+ return apicontract.Success(avArchiveRenderData(attrView, view))
+})
- var views []*av.ViewData
- for _, v := range attrView.Views {
- views = append(views, &av.ViewData{
- ID: v.ID,
- Icon: v.Icon,
- Name: v.Name,
- Desc: v.Desc,
- HideAttrViewName: v.HideAttrViewName,
- Type: v.LayoutType,
- PageSize: v.PageSize,
- })
+var renderHistoryAttributeView = contractHandler(apicontract.RenderHistoryAttributeView, func(c *gin.Context, request apicontract.RenderHistoryAttributeViewRequest) apicontract.Response[apicontract.AVArchiveRenderData] {
+ if err := holdAttributeViewRequest(c, request.BlockID, request.ID); err != nil {
+ return apicontract.Failure[apicontract.AVArchiveRenderData](-1, model.Conf.Language(314))
}
-
- ret.Data = map[string]any{
- "name": attrView.Name,
- "id": attrView.ID,
- "customColors": attrView.Palette(),
- "colorOrder": attrView.PaletteOrder(),
- "usedCustomColorIndexes": attrView.UsedCustomColorIndexes(),
- "viewType": view.GetType(),
- "viewID": view.GetID(),
- "views": views,
- "view": view,
- "isMirror": av.IsMirror(attrView.ID),
- "newItemTemplates": attrView.NewItemTemplates,
- "defaultTemplateID": attrView.DefaultTemplateID,
- }
-}
-
-func renderHistoryAttributeView(c *gin.Context) {
- ret := gulu.Ret.NewResult()
- defer c.JSON(http.StatusOK, ret)
-
- arg, ok := util.JsonArg(c, ret)
- if !ok {
- return
- }
-
- id := arg["id"].(string)
- created := arg["created"].(string)
- blockIDArg := arg["blockID"]
- var blockID string
- if nil != blockIDArg {
- blockID = blockIDArg.(string)
- }
- viewIDArg := arg["viewID"]
- var viewID string
- if nil != viewIDArg {
- viewID = viewIDArg.(string)
- }
- carrierViewID, _ := arg["carrierViewID"].(string)
- page := 1
- pageArg := arg["page"]
- if nil != pageArg {
- page = int(pageArg.(float64))
- }
-
- pageSize := -1
- pageSizeArg := arg["pageSize"]
- if nil != pageSizeArg {
- pageSize = int(pageSizeArg.(float64))
- }
-
- query := ""
- queryArg := arg["query"]
- if nil != queryArg {
- query = queryArg.(string)
- }
-
- groupPaging := map[string]any{}
- groupPagingArg := arg["groupPaging"]
- if nil != groupPagingArg {
- groupPaging = groupPagingArg.(map[string]any)
- }
- if err := holdAttributeViewRequest(c, blockID, id); err != nil {
- ret.Code = -1
- ret.Msg = model.Conf.Language(314)
- return
- }
- boxID, err := model.ResolveHistoryAttributeViewBoxID(id, created)
+ boxID, err := model.ResolveHistoryAttributeViewBoxID(request.ID, request.Created)
if err != nil {
- ret.Code = -1
- ret.Msg = err.Error()
- return
+ return apicontract.Failure[apicontract.AVArchiveRenderData](-1, err.Error())
}
if err = holdEncryptedBoxRequest(c, boxID); err != nil {
- ret.Code = -1
- ret.Msg = model.Conf.Language(314)
- return
+ return apicontract.Failure[apicontract.AVArchiveRenderData](-1, model.Conf.Language(314))
}
-
- view, attrView, err := model.RenderHistoryAttributeView(id, viewID, carrierViewID, query, page, pageSize, groupPaging, created)
+ view, attrView, err := model.RenderHistoryAttributeView(request.ID, request.ViewID, request.CarrierViewID, request.Query, avPage(request.Page, 1), avPage(request.PageSize, -1), avGroupPaging(request.GroupPaging), request.Created)
if err != nil {
- ret.Code = -1
- ret.Msg = err.Error()
- return
- }
-
- var views []*av.ViewData
- for _, v := range attrView.Views {
- views = append(views, &av.ViewData{
- ID: v.ID,
- Icon: v.Icon,
- Name: v.Name,
- Desc: v.Desc,
- HideAttrViewName: v.HideAttrViewName,
- Type: v.LayoutType,
- PageSize: v.PageSize,
- })
- }
-
- ret.Data = map[string]any{
- "name": attrView.Name,
- "id": attrView.ID,
- "customColors": attrView.Palette(),
- "colorOrder": attrView.PaletteOrder(),
- "usedCustomColorIndexes": attrView.UsedCustomColorIndexes(),
- "viewType": view.GetType(),
- "viewID": view.GetID(),
- "views": views,
- "view": view,
- "isMirror": av.IsMirror(attrView.ID),
- "newItemTemplates": attrView.NewItemTemplates,
- "defaultTemplateID": attrView.DefaultTemplateID,
- }
-}
-
-func renderAttributeView(c *gin.Context) {
- ret := gulu.Ret.NewResult()
- arg, ok := util.JsonArg(c, ret)
- if !ok {
- c.JSON(http.StatusOK, ret)
- return
- }
-
- id := arg["id"].(string)
- blockIDArg := arg["blockID"]
- var blockID string
- if nil != blockIDArg {
- blockID = blockIDArg.(string)
- }
- viewIDArg := arg["viewID"]
- var viewID string
- if nil != viewIDArg {
- viewID = viewIDArg.(string)
- }
- page := 1
- pageArg := arg["page"]
- if nil != pageArg {
- page = int(pageArg.(float64))
- }
-
- pageSize := -1
- pageSizeArg := arg["pageSize"]
- if nil != pageSizeArg {
- pageSize = int(pageSizeArg.(float64))
+ return apicontract.Failure[apicontract.AVArchiveRenderData](-1, err.Error())
}
+ return apicontract.Success(avArchiveRenderData(attrView, view))
+})
- query := ""
- queryArg := arg["query"]
- if nil != queryArg {
- query = queryArg.(string)
+var renderAttributeView = contractHandler(apicontract.RenderAttributeView, func(c *gin.Context, request apicontract.RenderAttributeViewRequest) apicontract.Response[apicontract.AVRenderResult] {
+ if err := holdAttributeViewRequest(c, request.BlockID, request.ID); err != nil {
+ return apicontract.Failure[apicontract.AVRenderResult](-1, model.Conf.Language(314))
}
-
- groupPaging := map[string]any{}
- groupPagingArg := arg["groupPaging"]
- if nil != groupPagingArg {
- groupPaging = groupPagingArg.(map[string]any)
- }
-
- initialLayout := av.LayoutType("")
- if initialLayoutArg, ok := arg["initialLayout"].(string); ok {
- initialLayout = av.LayoutType(initialLayoutArg)
- }
-
- createIfNotExist := true
- createIfNotExistArg := arg["createIfNotExist"]
- if nil != createIfNotExistArg {
- createIfNotExist = createIfNotExistArg.(bool)
- }
-
- ignoreRows := false
- ignoreRowsArg := arg["ignoreRows"]
- if nil != ignoreRowsArg {
- ignoreRows = ignoreRowsArg.(bool)
- }
- targetItemID := ""
- if targetItemIDArg := arg["targetItemID"]; nil != targetItemIDArg {
- targetItemID = targetItemIDArg.(string)
- }
- targetGroupID := ""
- if targetGroupIDArg := arg["targetGroupID"]; nil != targetGroupIDArg {
- targetGroupID = targetGroupIDArg.(string)
- }
- if err := holdAttributeViewRequest(c, blockID, id); err != nil {
- ret.Code = -1
- ret.Msg = model.Conf.Language(314)
- c.JSON(http.StatusOK, ret)
- return
- }
-
- readOnlyRole := model.IsReadOnlyRoleContext(c)
- publishAccess := model.PublishAccess(nil)
- if readOnlyRole {
- publishAccess = model.GetPublishAccess()
- if !model.CheckAttributeViewBlockAccessableByPublishAccess(c, publishAccess, id, blockID) {
- ret.Code = -1
- ret.Msg = av.ErrAttributeViewNotFound.Error()
- c.JSON(http.StatusOK, ret)
- return
+ readOnly := model.IsReadOnlyRoleContext(c)
+ var filter func(av.Viewable) av.Viewable
+ if readOnly {
+ access := model.GetPublishAccess()
+ if !model.CheckAttributeViewBlockAccessableByPublishAccess(c, access, request.ID, request.BlockID) {
+ return apicontract.Failure[apicontract.AVRenderResult](-1, av.ErrAttributeViewNotFound.Error())
+ }
+ filter = func(view av.Viewable) av.Viewable {
+ return model.FilterAttributeViewByPublishAccess(c, access, request.ID, request.BlockID, view)
}
}
-
- ret = renderAttrView(blockID, id, viewID, query, page, pageSize, groupPaging, initialLayout, createIfNotExist, ignoreRows, targetItemID, targetGroupID)
- if ret.Code == 0 && readOnlyRole {
- retDataMap := ret.Data.(map[string]any)
- retDataMap["view"] = model.FilterAttributeViewByPublishAccess(c, publishAccess, id, blockID, retDataMap["view"].(av.Viewable))
- // 发布只读渲染不暴露当前视图之外的实例筛选配置和关联字段元数据。
- retDataMap["contextFilter"] = nil
- retDataMap["contextFilterFields"] = []*av.AttributeViewContextFilterField{}
- }
-
- // 大体量响应(如全量数据库视图)用 goccy 序列化后直接写字节,跳过 gin 内部基于标准库的二次序列化
- marshalBytes, marshalErr := goccyJSON.Marshal(ret)
- if nil != marshalErr || 0 == len(marshalBytes) {
- c.JSON(http.StatusOK, ret)
- return
+ create := true
+ if request.CreateIfNotExist != nil {
+ create = *request.CreateIfNotExist
}
- c.Data(http.StatusOK, "application/json; charset=utf-8", marshalBytes)
-}
+ return renderAttrView(request.BlockID, request.ID, request.ViewID, request.Query, avPage(request.Page, 1), avPage(request.PageSize, -1), avGroupPaging(request.GroupPaging), av.LayoutType(request.InitialLayout), create, request.IgnoreRows, request.TargetItemID, request.TargetGroupID, filter, readOnly)
+})
func holdAttributeViewRequest(c *gin.Context, blockID, avID string) error {
if blockID != "" {
@@ -1410,225 +454,90 @@ func holdAttributeViewRequest(c *gin.Context, blockID, avID string) error {
return nil
}
-func renderAttrView(blockID, avID, viewID, query string, page, pageSize int, groupPaging map[string]any, initialLayout av.LayoutType, createIfNotExist, ignoreRows bool, targetItemID, targetGroupID string) (ret *gulu.Result) {
- ret = gulu.Ret.NewResult()
- view, attrView, target, err := model.RenderAttributeViewWithTarget(blockID, avID, viewID, query, page, pageSize, groupPaging, initialLayout, createIfNotExist, ignoreRows, targetItemID, targetGroupID)
- if err != nil {
- ret.Code = -1
- if errors.Is(err, av.ErrSpecTooNew) {
- ret.Msg = model.Conf.Language(215)
- } else {
- ret.Msg = err.Error()
- }
- if errors.Is(err, av.ErrViewNotFound) {
- ret.Data = map[string]any{"error": "viewNotFound"}
- }
- return
+var getCurrentAttrViewImages = contractHandler(apicontract.GetCurrentAttrViewImages, func(c *gin.Context, request apicontract.GetCurrentAttrViewImagesRequest) apicontract.Response[[]string] {
+ if err := holdAttributeViewRequest(c, request.BlockID, request.ID); err != nil {
+ return apicontract.Failure[[]string](-1, model.Conf.Language(314))
}
-
- var views []*av.ViewData
- for _, v := range attrView.Views {
- views = append(views, &av.ViewData{
- ID: v.ID,
- Icon: v.Icon,
- Name: v.Name,
- Desc: v.Desc,
- HideAttrViewName: v.HideAttrViewName,
- Type: v.LayoutType,
- PageSize: v.PageSize,
- })
- }
- contextFilter, err := model.GetAttributeViewContextFilter(attrView, blockID)
- if nil != err {
- ret.Code = -1
- ret.Msg = err.Error()
- return
- }
-
- retData := map[string]any{
- "name": attrView.Name,
- "id": attrView.ID,
- "customColors": attrView.Palette(),
- "colorOrder": attrView.PaletteOrder(),
- "usedCustomColorIndexes": attrView.UsedCustomColorIndexes(),
- "viewType": view.GetType(),
- "viewID": view.GetID(),
- "views": views,
- "view": view,
- "isMirror": av.IsMirror(attrView.ID),
- "newItemTemplates": attrView.NewItemTemplates,
- "defaultTemplateID": attrView.DefaultTemplateID,
- "contextFilter": contextFilter,
- "contextFilterFields": attrView.ContextFilterFields(),
- }
- if nil != target {
- retData["target"] = target
- }
- ret.Data = retData
- return
-}
-
-func getCurrentAttrViewImages(c *gin.Context) {
- ret := gulu.Ret.NewResult()
- defer c.JSON(http.StatusOK, ret)
-
- arg, ok := util.JsonArg(c, ret)
- if !ok {
- return
- }
-
- id := arg["id"].(string)
- blockID, _ := arg["blockID"].(string)
- viewIDArg := arg["viewID"]
- var viewID string
- if nil != viewIDArg {
- viewID = viewIDArg.(string)
- }
-
- query := ""
- queryArg := arg["query"]
- if nil != queryArg {
- query = queryArg.(string)
- }
-
- if err := holdAttributeViewRequest(c, blockID, id); err != nil {
- ret.Code = -1
- ret.Msg = model.Conf.Language(314)
- return
- }
-
- images, err := model.GetCurrentAttributeViewImages(c, id, blockID, viewID, query)
+ images, err := model.GetCurrentAttributeViewImages(c, request.ID, request.BlockID, request.ViewID, request.Query)
if err != nil {
- ret.Code = -1
- ret.Msg = err.Error()
- return
+ return apicontract.Failure[[]string](-1, err.Error())
}
- ret.Data = images
-}
-
-func getAttributeViewKeys(c *gin.Context) {
- ret := gulu.Ret.NewResult()
- defer c.JSON(http.StatusOK, ret)
+ return apicontract.Success(images)
+})
- arg, ok := util.JsonArg(c, ret)
- if !ok {
- return
- }
-
- id, _ := arg["id"].(string)
- avID, _ := arg["avID"].(string)
- itemID, _ := arg["itemID"].(string)
- valueID, _ := arg["valueID"].(string)
- var blockAttributeViewKeys []*model.BlockAttributeViewKeys
- if "" != avID && ("" != itemID || "" != valueID) {
- blockAttributeViewKeys = model.GetAttributeViewItemKeys(avID, itemID, valueID)
+var getAttributeViewKeys = contractHandler(apicontract.GetAttributeViewKeys, func(c *gin.Context, request apicontract.GetAttributeViewKeysRequest) apicontract.Response[[]*apicontract.AVBlockAttributeViewKeys] {
+ var values []*model.BlockAttributeViewKeys
+ if request.AvID != "" && (request.ItemID != "" || request.ValueID != "") {
+ values = model.GetAttributeViewItemKeys(request.AvID, request.ItemID, request.ValueID)
} else {
- blockAttributeViewKeys = model.GetBlockAttributeViewKeys(id)
+ values = model.GetBlockAttributeViewKeys(request.ID)
}
if model.IsReadOnlyRoleContext(c) {
- publishAccess := model.GetPublishAccess()
- blockAttributeViewKeys = model.FilterBlockAttributeViewKeysByPublishAccess(c, publishAccess, blockAttributeViewKeys)
- }
- ret.Data = blockAttributeViewKeys
-}
-
-func getAttributeViewSearchTarget(c *gin.Context) {
- ret := gulu.Ret.NewResult()
- defer c.JSON(http.StatusOK, ret)
-
- arg, ok := util.JsonArg(c, ret)
- if !ok {
- return
- }
-
- id, _ := arg["id"].(string)
- keywordsArg, _ := arg["keywords"].([]any)
- var keywords []string
- for _, keywordArg := range keywordsArg {
- if keyword, ok := keywordArg.(string); ok {
- keywords = append(keywords, keyword)
- }
+ values = model.FilterBlockAttributeViewKeysByPublishAccess(c, model.GetPublishAccess(), values)
}
- ret.Data = model.GetAttributeViewSearchTarget(id, keywords)
-}
+ return apicontract.Success(avContractSlice(values, toContractAVBlockAttributeViewKeys))
+})
-func getAttributeViewBacklinks(c *gin.Context) {
- ret := gulu.Ret.NewResult()
- defer c.JSON(http.StatusOK, ret)
-
- arg, ok := util.JsonArg(c, ret)
- if !ok {
- return
- }
+var getAttributeViewSearchTarget = contractHandler(apicontract.GetAttributeViewSearchTarget, func(c *gin.Context, request apicontract.GetAttributeViewSearchTargetRequest) apicontract.Response[*apicontract.AVAttributeViewSearchTarget] {
+ return apicontract.Success(toContractAVAttributeViewSearchTarget(model.GetAttributeViewSearchTarget(request.ID, append([]string(nil), request.Keywords...))))
+})
- id, _ := arg["id"].(string)
- avID, _ := arg["avID"].(string)
- itemID, _ := arg["itemID"].(string)
- valueID, _ := arg["valueID"].(string)
- backlinks := model.GetAttributeViewBacklinks(id, avID, itemID, valueID)
+var getAttributeViewBacklinks = contractHandler(apicontract.GetAttributeViewBacklinks, func(c *gin.Context, request apicontract.GetAttributeViewBacklinksRequest) apicontract.Response[*apicontract.AVAttributeViewBacklinks] {
+ values := model.GetAttributeViewBacklinks(request.ID, request.AvID, request.ItemID, request.ValueID)
if model.IsReadOnlyRoleContext(c) {
- publishAccess := model.GetPublishAccess()
- backlinks = model.FilterAttributeViewBacklinksByPublishAccess(c, publishAccess, backlinks)
+ values = model.FilterAttributeViewBacklinksByPublishAccess(c, model.GetPublishAccess(), values)
}
- ret.Data = backlinks
-}
-
-func setAttributeViewBlockAttr(c *gin.Context) {
- ret := gulu.Ret.NewResult()
- defer c.JSON(http.StatusOK, ret)
+ return apicontract.Success(toContractAVAttributeViewBacklinks(values))
+})
- arg, ok := util.JsonArg(c, ret)
- if !ok {
- return
- }
-
- avID := arg["avID"].(string)
- keyID := arg["keyID"].(string)
- var itemID string
- if _, ok := arg["itemID"]; ok {
- itemID = arg["itemID"].(string)
- } else if _, ok := arg["rowID"]; ok {
- // TODO 该参数将于 2026 年 12 月 1 日后删除
- msg := fmt.Sprintf("[%s] parameter [%s] is deprecated, visit [https://github.com/siyuan-note/siyuan/issues/15727] for details",
- c.Request.RequestURI, "rowID")
+var setAttributeViewBlockAttr = contractHandler(apicontract.SetAttributeViewBlockAttr, func(c *gin.Context, request apicontract.SetAttributeViewBlockAttrRequest) apicontract.Response[apicontract.AVValueData] {
+ itemID := ""
+ if request.ItemID != nil {
+ itemID = *request.ItemID
+ } else if request.RowID != nil {
+ msg := fmt.Sprintf("[%s] parameter [%s] is deprecated, visit [https://github.com/siyuan-note/siyuan/issues/15727] for details", c.Request.RequestURI, "rowID")
logging.LogWarn(msg)
- ret.Code = -1
- ret.Msg = msg
- return
+ return apicontract.Failure[apicontract.AVValueData](-1, msg)
}
- value := arg["value"].(any)
- updatedVal, err := model.UpdateAttributeViewCell(nil, avID, keyID, itemID, value)
+ value, err := model.UpdateAttributeViewCell(nil, request.AvID, request.KeyID, itemID, request.Value)
if err != nil {
- ret.Code = -1
- ret.Msg = err.Error()
- return
+ return apicontract.Failure[apicontract.AVValueData](-1, err.Error())
+ }
+ model.ReloadAttrView(request.AvID)
+ return apicontract.Success(apicontract.AVValueData{Value: toContractAVValue(value)})
+})
+
+var batchSetAttributeViewBlockAttrs = contractHandler(apicontract.BatchSetAttributeViewBlockAttrs, func(c *gin.Context, request apicontract.BatchSetAttributeViewBlockAttrsRequest) apicontract.Response[apicontract.Null] {
+ values := make([]any, len(request.Values))
+ for i, value := range request.Values {
+ fields := map[string]any{"keyID": value.KeyID, "value": value.Value}
+ if value.ItemID != nil {
+ fields["itemID"] = *value.ItemID
+ }
+ if value.RowID != nil {
+ fields["rowID"] = *value.RowID
+ }
+ values[i] = fields
}
-
- ret.Data = map[string]any{
- "value": updatedVal,
+ if err := model.BatchUpdateAttributeViewCells(nil, request.AvID, values); err != nil {
+ return apicontract.Failure[apicontract.Null](-1, err.Error())
}
+ model.ReloadAttrView(request.AvID)
+ return apicontract.Success(apicontract.Null{})
+})
- model.ReloadAttrView(avID)
-}
-
-func batchSetAttributeViewBlockAttrs(c *gin.Context) {
- // Add kernel API `/api/av/batchSetAttributeViewBlockAttrs` https://github.com/siyuan-note/siyuan/issues/15310
- ret := gulu.Ret.NewResult()
- defer c.JSON(http.StatusOK, ret)
-
- arg, ok := util.JsonArg(c, ret)
- if !ok {
- return
+func avPage(value *float64, fallback int) int {
+ if value == nil {
+ return fallback
}
-
- avID := arg["avID"].(string)
- values := arg["values"].([]any)
- err := model.BatchUpdateAttributeViewCells(nil, avID, values)
- if err != nil {
- ret.Code = -1
- ret.Msg = err.Error()
- return
+ return int(*value)
+}
+func avNonemptyStrings(values []string) []string {
+ var ret []string
+ for _, value := range values {
+ if value != "" {
+ ret = append(ret, value)
+ }
}
-
- model.ReloadAttrView(avID)
+ return ret
}
diff --git a/kernel/api/av_contract_mapping.go b/kernel/api/av_contract_mapping.go
new file mode 100644
index 0000000000..ab59356add
--- /dev/null
+++ b/kernel/api/av_contract_mapping.go
@@ -0,0 +1,1322 @@
+package api
+
+import (
+ "github.com/siyuan-note/siyuan/kernel/apicontract"
+ "github.com/siyuan-note/siyuan/kernel/av"
+ "github.com/siyuan-note/siyuan/kernel/model"
+)
+
+func avContractSlice[S, D any](values []S, convert func(S) D) []D {
+ if values == nil {
+ return nil
+ }
+ ret := make([]D, len(values))
+ for i, value := range values {
+ ret[i] = convert(value)
+ }
+ return ret
+}
+func avContractMap[S, D any](values map[string]S, convert func(S) D) map[string]D {
+ if values == nil {
+ return nil
+ }
+ ret := make(map[string]D, len(values))
+ for key, value := range values {
+ ret[key] = convert(value)
+ }
+ return ret
+}
+func avContractView(value av.Viewable) apicontract.AVViewInstance {
+ switch view := value.(type) {
+ case *av.Table:
+ return apicontract.NewAVTableInstance(toContractAVTable(view))
+ case *av.Gallery:
+ return apicontract.NewAVGalleryInstance(toContractAVGallery(view))
+ case *av.Kanban:
+ return apicontract.NewAVKanbanInstance(toContractAVKanban(view))
+ default:
+ return apicontract.AVViewInstance{}
+ }
+}
+func toContractAVTable(value *av.Table) *apicontract.AVTable {
+ if value == nil {
+ return nil
+ }
+ return &apicontract.AVTable{
+ AVBaseInstance: toContractAVBaseInstance(value.BaseInstance),
+ Columns: avContractSlice(value.Columns, func(value *av.TableColumn) *apicontract.AVTableColumn { return toContractAVTableColumn(value) }),
+ Rows: avContractSlice(value.Rows, func(value *av.TableRow) *apicontract.AVTableRow { return toContractAVTableRow(value) }),
+ RowCount: value.RowCount,
+ }
+}
+func toContractAVBaseInstance(value *av.BaseInstance) *apicontract.AVBaseInstance {
+ if value == nil {
+ return nil
+ }
+ return &apicontract.AVBaseInstance{
+ ID: value.ID,
+ Icon: value.Icon,
+ Name: value.Name,
+ Desc: value.Desc,
+ HideAttrViewName: value.HideAttrViewName,
+ Filters: avContractSlice(value.Filters, func(value *av.ViewFilter) *apicontract.AVViewFilter { return toContractAVViewFilter(value) }),
+ Sorts: avContractSlice(value.Sorts, func(value *av.ViewSort) *apicontract.AVViewSort { return toContractAVViewSort(value) }),
+ Group: toContractAVViewGroup(value.Group),
+ PageSize: value.PageSize,
+ ShowIcon: value.ShowIcon,
+ WrapField: value.WrapField,
+ GroupKey: toContractAVKey(value.GroupKey),
+ GroupValue: toContractAVValue(value.GroupValue),
+ Groups: avContractSlice(value.Groups, func(value av.Viewable) apicontract.AVViewInstance { return avContractView(value) }),
+ GroupCalc: toContractAVGroupCalc(value.GroupCalc),
+ GroupFolded: value.GroupFolded,
+ GroupHidden: value.GroupHidden,
+ }
+}
+func toContractAVViewFilter(value *av.ViewFilter) *apicontract.AVViewFilter {
+ if value == nil {
+ return nil
+ }
+ return &apicontract.AVViewFilter{
+ Column: value.Column,
+ ValueSource: string(value.ValueSource),
+ Qualifier: string(value.Qualifier),
+ Operator: string(value.Operator),
+ Value: toContractAVValue(value.Value),
+ RelativeDate: toContractAVRelativeDate(value.RelativeDate),
+ RelativeDate2: toContractAVRelativeDate(value.RelativeDate2),
+ DateEndpoint: string(value.DateEndpoint),
+ Combination: string(value.Combination),
+ Filters: avContractSlice(value.Filters, func(value *av.ViewFilter) *apicontract.AVViewFilter { return toContractAVViewFilter(value) }),
+ }
+}
+func fromContractAVViewFilter(value *apicontract.AVViewFilter) *av.ViewFilter {
+ if value == nil {
+ return nil
+ }
+ return &av.ViewFilter{
+ Column: value.Column,
+ ValueSource: av.ValueSource(value.ValueSource),
+ Qualifier: av.FilterQuantifier(value.Qualifier),
+ Operator: av.FilterOperator(value.Operator),
+ Value: fromContractAVValue(value.Value),
+ RelativeDate: fromContractAVRelativeDate(value.RelativeDate),
+ RelativeDate2: fromContractAVRelativeDate(value.RelativeDate2),
+ DateEndpoint: av.DateEndpoint(value.DateEndpoint),
+ Combination: av.FilterCombination(value.Combination),
+ Filters: avContractSlice(value.Filters, func(value *apicontract.AVViewFilter) *av.ViewFilter { return fromContractAVViewFilter(value) }),
+ }
+}
+func toContractAVValue(value *av.Value) *apicontract.AVValue {
+ if value == nil {
+ return nil
+ }
+ return &apicontract.AVValue{
+ ID: value.ID,
+ KeyID: value.KeyID,
+ BlockID: value.BlockID,
+ Type: string(value.Type),
+ IsDetached: value.IsDetached,
+ CreatedAt: value.CreatedAt,
+ UpdatedAt: value.UpdatedAt,
+ Block: toContractAVValueBlock(value.Block),
+ Text: toContractAVValueText(value.Text),
+ Number: toContractAVValueNumber(value.Number),
+ Date: toContractAVValueDate(value.Date),
+ MSelect: avContractSlice(value.MSelect, func(value *av.ValueSelect) *apicontract.AVValueSelect { return toContractAVValueSelect(value) }),
+ URL: toContractAVValueURL(value.URL),
+ Email: toContractAVValueEmail(value.Email),
+ Phone: toContractAVValuePhone(value.Phone),
+ MAsset: avContractSlice(value.MAsset, func(value *av.ValueAsset) *apicontract.AVValueAsset { return toContractAVValueAsset(value) }),
+ Template: toContractAVValueTemplate(value.Template),
+ Created: toContractAVValueCreated(value.Created),
+ Updated: toContractAVValueUpdated(value.Updated),
+ Checkbox: toContractAVValueCheckbox(value.Checkbox),
+ Relation: toContractAVValueRelation(value.Relation),
+ Rollup: toContractAVValueRollup(value.Rollup),
+ RenderedContent: value.RenderedContent,
+ }
+}
+func fromContractAVValue(value *apicontract.AVValue) *av.Value {
+ if value == nil {
+ return nil
+ }
+ return &av.Value{
+ ID: value.ID,
+ KeyID: value.KeyID,
+ BlockID: value.BlockID,
+ Type: av.KeyType(value.Type),
+ IsDetached: value.IsDetached,
+ CreatedAt: value.CreatedAt,
+ UpdatedAt: value.UpdatedAt,
+ Block: fromContractAVValueBlock(value.Block),
+ Text: fromContractAVValueText(value.Text),
+ Number: fromContractAVValueNumber(value.Number),
+ Date: fromContractAVValueDate(value.Date),
+ MSelect: avContractSlice(value.MSelect, func(value *apicontract.AVValueSelect) *av.ValueSelect { return fromContractAVValueSelect(value) }),
+ URL: fromContractAVValueURL(value.URL),
+ Email: fromContractAVValueEmail(value.Email),
+ Phone: fromContractAVValuePhone(value.Phone),
+ MAsset: avContractSlice(value.MAsset, func(value *apicontract.AVValueAsset) *av.ValueAsset { return fromContractAVValueAsset(value) }),
+ Template: fromContractAVValueTemplate(value.Template),
+ Created: fromContractAVValueCreated(value.Created),
+ Updated: fromContractAVValueUpdated(value.Updated),
+ Checkbox: fromContractAVValueCheckbox(value.Checkbox),
+ Relation: fromContractAVValueRelation(value.Relation),
+ Rollup: fromContractAVValueRollup(value.Rollup),
+ RenderedContent: value.RenderedContent,
+ }
+}
+func toContractAVValueBlock(value *av.ValueBlock) *apicontract.AVValueBlock {
+ if value == nil {
+ return nil
+ }
+ return &apicontract.AVValueBlock{
+ ID: value.ID,
+ Icon: value.Icon,
+ Content: value.Content,
+ RefSubtype: string(value.RefSubtype),
+ Created: value.Created,
+ Updated: value.Updated,
+ }
+}
+func fromContractAVValueBlock(value *apicontract.AVValueBlock) *av.ValueBlock {
+ if value == nil {
+ return nil
+ }
+ return &av.ValueBlock{
+ ID: value.ID,
+ Icon: value.Icon,
+ Content: value.Content,
+ RefSubtype: av.BlockRefSubtype(value.RefSubtype),
+ Created: value.Created,
+ Updated: value.Updated,
+ }
+}
+func toContractAVValueText(value *av.ValueText) *apicontract.AVValueText {
+ if value == nil {
+ return nil
+ }
+ return &apicontract.AVValueText{
+ Content: value.Content,
+ Rich: toContractAVValueTextRich(value.Rich),
+ }
+}
+func fromContractAVValueText(value *apicontract.AVValueText) *av.ValueText {
+ if value == nil {
+ return nil
+ }
+ return &av.ValueText{
+ Content: value.Content,
+ Rich: fromContractAVValueTextRich(value.Rich),
+ }
+}
+func toContractAVValueTextRich(value *av.ValueTextRich) *apicontract.AVValueTextRich {
+ if value == nil {
+ return nil
+ }
+ return &apicontract.AVValueTextRich{
+ Spec: value.Spec,
+ Format: string(value.Format),
+ Content: value.Content,
+ }
+}
+func fromContractAVValueTextRich(value *apicontract.AVValueTextRich) *av.ValueTextRich {
+ if value == nil {
+ return nil
+ }
+ return &av.ValueTextRich{
+ Spec: value.Spec,
+ Format: av.ValueTextRichFormat(value.Format),
+ Content: value.Content,
+ }
+}
+func toContractAVValueNumber(value *av.ValueNumber) *apicontract.AVValueNumber {
+ if value == nil {
+ return nil
+ }
+ return &apicontract.AVValueNumber{
+ Content: value.Content,
+ IsNotEmpty: value.IsNotEmpty,
+ Format: string(value.Format),
+ FormattedContent: value.FormattedContent,
+ }
+}
+func fromContractAVValueNumber(value *apicontract.AVValueNumber) *av.ValueNumber {
+ if value == nil {
+ return nil
+ }
+ return &av.ValueNumber{
+ Content: value.Content,
+ IsNotEmpty: value.IsNotEmpty,
+ Format: av.NumberFormat(value.Format),
+ FormattedContent: value.FormattedContent,
+ }
+}
+func toContractAVValueDate(value *av.ValueDate) *apicontract.AVValueDate {
+ if value == nil {
+ return nil
+ }
+ return &apicontract.AVValueDate{
+ Content: value.Content,
+ IsNotEmpty: value.IsNotEmpty,
+ HasEndDate: value.HasEndDate,
+ IsNotTime: value.IsNotTime,
+ Content2: value.Content2,
+ IsNotEmpty2: value.IsNotEmpty2,
+ FormattedContent: value.FormattedContent,
+ }
+}
+func fromContractAVValueDate(value *apicontract.AVValueDate) *av.ValueDate {
+ if value == nil {
+ return nil
+ }
+ return &av.ValueDate{
+ Content: value.Content,
+ IsNotEmpty: value.IsNotEmpty,
+ HasEndDate: value.HasEndDate,
+ IsNotTime: value.IsNotTime,
+ Content2: value.Content2,
+ IsNotEmpty2: value.IsNotEmpty2,
+ FormattedContent: value.FormattedContent,
+ }
+}
+func toContractAVValueSelect(value *av.ValueSelect) *apicontract.AVValueSelect {
+ if value == nil {
+ return nil
+ }
+ return &apicontract.AVValueSelect{
+ Content: value.Content,
+ Color: value.Color,
+ ResolvedColor: toContractAVAttributeViewColor(value.ResolvedColor),
+ }
+}
+func fromContractAVValueSelect(value *apicontract.AVValueSelect) *av.ValueSelect {
+ if value == nil {
+ return nil
+ }
+ return &av.ValueSelect{
+ Content: value.Content,
+ Color: value.Color,
+ ResolvedColor: fromContractAVAttributeViewColor(value.ResolvedColor),
+ }
+}
+func toContractAVAttributeViewColor(value *av.AttributeViewColor) *apicontract.AVAttributeViewColor {
+ if value == nil {
+ return nil
+ }
+ return &apicontract.AVAttributeViewColor{
+ Light: *toContractAVAttributeViewColorTheme(&value.Light),
+ Dark: *toContractAVAttributeViewColorTheme(&value.Dark),
+ }
+}
+func fromContractAVAttributeViewColor(value *apicontract.AVAttributeViewColor) *av.AttributeViewColor {
+ if value == nil {
+ return nil
+ }
+ return &av.AttributeViewColor{
+ Light: *fromContractAVAttributeViewColorTheme(&value.Light),
+ Dark: *fromContractAVAttributeViewColorTheme(&value.Dark),
+ }
+}
+func toContractAVAttributeViewColorTheme(value *av.AttributeViewColorTheme) *apicontract.AVAttributeViewColorTheme {
+ if value == nil {
+ return nil
+ }
+ return &apicontract.AVAttributeViewColorTheme{
+ Color: value.Color,
+ BackgroundColor: value.BackgroundColor,
+ }
+}
+func fromContractAVAttributeViewColorTheme(value *apicontract.AVAttributeViewColorTheme) *av.AttributeViewColorTheme {
+ if value == nil {
+ return nil
+ }
+ return &av.AttributeViewColorTheme{
+ Color: value.Color,
+ BackgroundColor: value.BackgroundColor,
+ }
+}
+func toContractAVValueURL(value *av.ValueURL) *apicontract.AVValueURL {
+ if value == nil {
+ return nil
+ }
+ return &apicontract.AVValueURL{
+ Content: value.Content,
+ }
+}
+func fromContractAVValueURL(value *apicontract.AVValueURL) *av.ValueURL {
+ if value == nil {
+ return nil
+ }
+ return &av.ValueURL{
+ Content: value.Content,
+ }
+}
+func toContractAVValueEmail(value *av.ValueEmail) *apicontract.AVValueEmail {
+ if value == nil {
+ return nil
+ }
+ return &apicontract.AVValueEmail{
+ Content: value.Content,
+ }
+}
+func fromContractAVValueEmail(value *apicontract.AVValueEmail) *av.ValueEmail {
+ if value == nil {
+ return nil
+ }
+ return &av.ValueEmail{
+ Content: value.Content,
+ }
+}
+func toContractAVValuePhone(value *av.ValuePhone) *apicontract.AVValuePhone {
+ if value == nil {
+ return nil
+ }
+ return &apicontract.AVValuePhone{
+ Content: value.Content,
+ }
+}
+func fromContractAVValuePhone(value *apicontract.AVValuePhone) *av.ValuePhone {
+ if value == nil {
+ return nil
+ }
+ return &av.ValuePhone{
+ Content: value.Content,
+ }
+}
+func toContractAVValueAsset(value *av.ValueAsset) *apicontract.AVValueAsset {
+ if value == nil {
+ return nil
+ }
+ return &apicontract.AVValueAsset{
+ Type: string(value.Type),
+ Name: value.Name,
+ Content: value.Content,
+ }
+}
+func fromContractAVValueAsset(value *apicontract.AVValueAsset) *av.ValueAsset {
+ if value == nil {
+ return nil
+ }
+ return &av.ValueAsset{
+ Type: av.AssetType(value.Type),
+ Name: value.Name,
+ Content: value.Content,
+ }
+}
+func toContractAVValueTemplate(value *av.ValueTemplate) *apicontract.AVValueTemplate {
+ if value == nil {
+ return nil
+ }
+ return &apicontract.AVValueTemplate{
+ Content: value.Content,
+ }
+}
+func fromContractAVValueTemplate(value *apicontract.AVValueTemplate) *av.ValueTemplate {
+ if value == nil {
+ return nil
+ }
+ return &av.ValueTemplate{
+ Content: value.Content,
+ }
+}
+func toContractAVValueCreated(value *av.ValueCreated) *apicontract.AVValueCreated {
+ if value == nil {
+ return nil
+ }
+ return &apicontract.AVValueCreated{
+ Content: value.Content,
+ IsNotEmpty: value.IsNotEmpty,
+ Content2: value.Content2,
+ IsNotEmpty2: value.IsNotEmpty2,
+ FormattedContent: value.FormattedContent,
+ }
+}
+func fromContractAVValueCreated(value *apicontract.AVValueCreated) *av.ValueCreated {
+ if value == nil {
+ return nil
+ }
+ return &av.ValueCreated{
+ Content: value.Content,
+ IsNotEmpty: value.IsNotEmpty,
+ Content2: value.Content2,
+ IsNotEmpty2: value.IsNotEmpty2,
+ FormattedContent: value.FormattedContent,
+ }
+}
+func toContractAVValueUpdated(value *av.ValueUpdated) *apicontract.AVValueUpdated {
+ if value == nil {
+ return nil
+ }
+ return &apicontract.AVValueUpdated{
+ Content: value.Content,
+ IsNotEmpty: value.IsNotEmpty,
+ Content2: value.Content2,
+ IsNotEmpty2: value.IsNotEmpty2,
+ FormattedContent: value.FormattedContent,
+ }
+}
+func fromContractAVValueUpdated(value *apicontract.AVValueUpdated) *av.ValueUpdated {
+ if value == nil {
+ return nil
+ }
+ return &av.ValueUpdated{
+ Content: value.Content,
+ IsNotEmpty: value.IsNotEmpty,
+ Content2: value.Content2,
+ IsNotEmpty2: value.IsNotEmpty2,
+ FormattedContent: value.FormattedContent,
+ }
+}
+func toContractAVValueCheckbox(value *av.ValueCheckbox) *apicontract.AVValueCheckbox {
+ if value == nil {
+ return nil
+ }
+ return &apicontract.AVValueCheckbox{
+ Checked: value.Checked,
+ }
+}
+func fromContractAVValueCheckbox(value *apicontract.AVValueCheckbox) *av.ValueCheckbox {
+ if value == nil {
+ return nil
+ }
+ return &av.ValueCheckbox{
+ Checked: value.Checked,
+ }
+}
+func toContractAVValueRelation(value *av.ValueRelation) *apicontract.AVValueRelation {
+ if value == nil {
+ return nil
+ }
+ return &apicontract.AVValueRelation{
+ BlockIDs: value.BlockIDs,
+ Contents: avContractSlice(value.Contents, func(value *av.Value) *apicontract.AVValue { return toContractAVValue(value) }),
+ }
+}
+func fromContractAVValueRelation(value *apicontract.AVValueRelation) *av.ValueRelation {
+ if value == nil {
+ return nil
+ }
+ return &av.ValueRelation{
+ BlockIDs: value.BlockIDs,
+ Contents: avContractSlice(value.Contents, func(value *apicontract.AVValue) *av.Value { return fromContractAVValue(value) }),
+ }
+}
+func toContractAVValueRollup(value *av.ValueRollup) *apicontract.AVValueRollup {
+ if value == nil {
+ return nil
+ }
+ return &apicontract.AVValueRollup{
+ Contents: avContractSlice(value.Contents, func(value *av.Value) *apicontract.AVValue { return toContractAVValue(value) }),
+ }
+}
+func fromContractAVValueRollup(value *apicontract.AVValueRollup) *av.ValueRollup {
+ if value == nil {
+ return nil
+ }
+ return &av.ValueRollup{
+ Contents: avContractSlice(value.Contents, func(value *apicontract.AVValue) *av.Value { return fromContractAVValue(value) }),
+ }
+}
+func toContractAVRelativeDate(value *av.RelativeDate) *apicontract.AVRelativeDate {
+ if value == nil {
+ return nil
+ }
+ return &apicontract.AVRelativeDate{
+ Count: value.Count,
+ Unit: int(value.Unit),
+ Direction: int(value.Direction),
+ }
+}
+func fromContractAVRelativeDate(value *apicontract.AVRelativeDate) *av.RelativeDate {
+ if value == nil {
+ return nil
+ }
+ return &av.RelativeDate{
+ Count: value.Count,
+ Unit: av.RelativeDateUnit(value.Unit),
+ Direction: av.RelativeDateDirection(value.Direction),
+ }
+}
+func toContractAVViewSort(value *av.ViewSort) *apicontract.AVViewSort {
+ if value == nil {
+ return nil
+ }
+ return &apicontract.AVViewSort{
+ Column: value.Column,
+ ValueSource: string(value.ValueSource),
+ Order: string(value.Order),
+ DateEndpoint: string(value.DateEndpoint),
+ }
+}
+func fromContractAVViewSort(value *apicontract.AVViewSort) *av.ViewSort {
+ if value == nil {
+ return nil
+ }
+ return &av.ViewSort{
+ Column: value.Column,
+ ValueSource: av.ValueSource(value.ValueSource),
+ Order: av.SortOrder(value.Order),
+ DateEndpoint: av.DateEndpoint(value.DateEndpoint),
+ }
+}
+func toContractAVViewGroup(value *av.ViewGroup) *apicontract.AVViewGroup {
+ if value == nil {
+ return nil
+ }
+ return &apicontract.AVViewGroup{
+ Field: value.Field,
+ ValueSource: string(value.ValueSource),
+ Method: int(value.Method),
+ Range: toContractAVGroupRange(value.Range),
+ Order: int(value.Order),
+ HideEmpty: value.HideEmpty,
+ }
+}
+func fromContractAVViewGroup(value *apicontract.AVViewGroup) *av.ViewGroup {
+ if value == nil {
+ return nil
+ }
+ return &av.ViewGroup{
+ Field: value.Field,
+ ValueSource: av.ValueSource(value.ValueSource),
+ Method: av.GroupMethod(value.Method),
+ Range: fromContractAVGroupRange(value.Range),
+ Order: av.GroupOrder(value.Order),
+ HideEmpty: value.HideEmpty,
+ }
+}
+func toContractAVGroupRange(value *av.GroupRange) *apicontract.AVGroupRange {
+ if value == nil {
+ return nil
+ }
+ return &apicontract.AVGroupRange{
+ NumStart: value.NumStart,
+ NumEnd: value.NumEnd,
+ NumStep: value.NumStep,
+ }
+}
+func fromContractAVGroupRange(value *apicontract.AVGroupRange) *av.GroupRange {
+ if value == nil {
+ return nil
+ }
+ return &av.GroupRange{
+ NumStart: value.NumStart,
+ NumEnd: value.NumEnd,
+ NumStep: value.NumStep,
+ }
+}
+func toContractAVKey(value *av.Key) *apicontract.AVKey {
+ if value == nil {
+ return nil
+ }
+ return &apicontract.AVKey{
+ ID: value.ID,
+ Name: value.Name,
+ Type: string(value.Type),
+ Icon: value.Icon,
+ Desc: value.Desc,
+ Options: avContractSlice(value.Options, func(value *av.SelectOption) *apicontract.AVSelectOption { return toContractAVSelectOption(value) }),
+ NumberFormat: string(value.NumberFormat),
+ DateFormat: string(value.DateFormat),
+ Template: value.Template,
+ RenderTemplate: value.RenderTemplate,
+ Relation: toContractAVRelation(value.Relation),
+ Rollup: toContractAVRollup(value.Rollup),
+ Date: toContractAVDate(value.Date),
+ Created: toContractAVCreated(value.Created),
+ Updated: toContractAVUpdated(value.Updated),
+ }
+}
+func toContractAVSelectOption(value *av.SelectOption) *apicontract.AVSelectOption {
+ if value == nil {
+ return nil
+ }
+ return &apicontract.AVSelectOption{
+ Name: value.Name,
+ Color: value.Color,
+ Desc: value.Desc,
+ ResolvedColor: toContractAVAttributeViewColor(value.ResolvedColor),
+ }
+}
+func toContractAVRelation(value *av.Relation) *apicontract.AVRelation {
+ if value == nil {
+ return nil
+ }
+ return &apicontract.AVRelation{
+ AvID: value.AvID,
+ IsTwoWay: value.IsTwoWay,
+ BackKeyID: value.BackKeyID,
+ CandidateFilters: avContractSlice(value.CandidateFilters, func(value *av.ViewFilter) *apicontract.AVViewFilter { return toContractAVViewFilter(value) }),
+ }
+}
+func toContractAVRollup(value *av.Rollup) *apicontract.AVRollup {
+ if value == nil {
+ return nil
+ }
+ return &apicontract.AVRollup{
+ RelationKeyID: value.RelationKeyID,
+ KeyID: value.KeyID,
+ Calc: toContractAVRollupCalc(value.Calc),
+ Filters: avContractSlice(value.Filters, func(value *av.ViewFilter) *apicontract.AVViewFilter { return toContractAVViewFilter(value) }),
+ }
+}
+func toContractAVRollupCalc(value *av.RollupCalc) *apicontract.AVRollupCalc {
+ if value == nil {
+ return nil
+ }
+ return &apicontract.AVRollupCalc{
+ Operator: string(value.Operator),
+ Result: toContractAVValue(value.Result),
+ }
+}
+func toContractAVDate(value *av.Date) *apicontract.AVDate {
+ if value == nil {
+ return nil
+ }
+ return &apicontract.AVDate{
+ AutoFillNow: value.AutoFillNow,
+ FillSpecificTime: value.FillSpecificTime,
+ }
+}
+func toContractAVCreated(value *av.Created) *apicontract.AVCreated {
+ if value == nil {
+ return nil
+ }
+ return &apicontract.AVCreated{
+ IncludeTime: value.IncludeTime,
+ }
+}
+func toContractAVUpdated(value *av.Updated) *apicontract.AVUpdated {
+ if value == nil {
+ return nil
+ }
+ return &apicontract.AVUpdated{
+ IncludeTime: value.IncludeTime,
+ }
+}
+func toContractAVGroupCalc(value *av.GroupCalc) *apicontract.AVGroupCalc {
+ if value == nil {
+ return nil
+ }
+ return &apicontract.AVGroupCalc{
+ Field: value.Field,
+ FieldCalc: toContractAVFieldCalc(value.FieldCalc),
+ }
+}
+func toContractAVFieldCalc(value *av.FieldCalc) *apicontract.AVFieldCalc {
+ if value == nil {
+ return nil
+ }
+ return &apicontract.AVFieldCalc{
+ Operator: string(value.Operator),
+ Result: toContractAVValue(value.Result),
+ Template: value.Template,
+ }
+}
+func toContractAVTableColumn(value *av.TableColumn) *apicontract.AVTableColumn {
+ if value == nil {
+ return nil
+ }
+ return &apicontract.AVTableColumn{
+ AVBaseInstanceField: toContractAVBaseInstanceField(value.BaseInstanceField),
+ Pin: value.Pin,
+ Width: value.Width,
+ Align: string(value.Align),
+ }
+}
+func toContractAVBaseInstanceField(value *av.BaseInstanceField) *apicontract.AVBaseInstanceField {
+ if value == nil {
+ return nil
+ }
+ return &apicontract.AVBaseInstanceField{
+ ID: value.ID,
+ Name: value.Name,
+ Type: string(value.Type),
+ Icon: value.Icon,
+ Wrap: value.Wrap,
+ Hidden: value.Hidden,
+ Desc: value.Desc,
+ Calc: toContractAVFieldCalc(value.Calc),
+ Options: avContractSlice(value.Options, func(value *av.SelectOption) *apicontract.AVSelectOption { return toContractAVSelectOption(value) }),
+ NumberFormat: string(value.NumberFormat),
+ DateFormat: string(value.DateFormat),
+ Template: value.Template,
+ RenderTemplate: value.RenderTemplate,
+ Relation: toContractAVRelation(value.Relation),
+ Rollup: toContractAVRollup(value.Rollup),
+ Date: toContractAVDate(value.Date),
+ Created: toContractAVCreated(value.Created),
+ Updated: toContractAVUpdated(value.Updated),
+ }
+}
+func toContractAVTableRow(value *av.TableRow) *apicontract.AVTableRow {
+ if value == nil {
+ return nil
+ }
+ return &apicontract.AVTableRow{
+ ID: value.ID,
+ Cells: avContractSlice(value.Cells, func(value *av.TableCell) *apicontract.AVTableCell { return toContractAVTableCell(value) }),
+ }
+}
+func toContractAVTableCell(value *av.TableCell) *apicontract.AVTableCell {
+ if value == nil {
+ return nil
+ }
+ return &apicontract.AVTableCell{
+ AVBaseValue: toContractAVBaseValue(value.BaseValue),
+ Color: value.Color,
+ BgColor: value.BgColor,
+ }
+}
+func toContractAVBaseValue(value *av.BaseValue) *apicontract.AVBaseValue {
+ if value == nil {
+ return nil
+ }
+ return &apicontract.AVBaseValue{
+ ID: value.ID,
+ Value: toContractAVValue(value.Value),
+ ValueType: string(value.ValueType),
+ }
+}
+func toContractAVGallery(value *av.Gallery) *apicontract.AVGallery {
+ if value == nil {
+ return nil
+ }
+ return &apicontract.AVGallery{
+ AVBaseInstance: toContractAVBaseInstance(value.BaseInstance),
+ CoverFrom: int(value.CoverFrom),
+ CoverFromAssetKeyID: value.CoverFromAssetKeyID,
+ CardAspectRatio: int(value.CardAspectRatio),
+ CardAspectRatioValue: value.CardAspectRatioValue,
+ CardSize: int(value.CardSize),
+ CardWidth: value.CardWidth,
+ CardLayout: int(value.CardLayout),
+ FitImage: value.FitImage,
+ DisplayFieldName: value.DisplayFieldName,
+ DisplayEmptyFields: value.DisplayEmptyFields,
+ Fields: avContractSlice(value.Fields, func(value *av.GalleryField) *apicontract.AVGalleryField { return toContractAVGalleryField(value) }),
+ Cards: avContractSlice(value.Cards, func(value *av.GalleryCard) *apicontract.AVGalleryCard { return toContractAVGalleryCard(value) }),
+ CardCount: value.CardCount,
+ }
+}
+func toContractAVGalleryField(value *av.GalleryField) *apicontract.AVGalleryField {
+ if value == nil {
+ return nil
+ }
+ return &apicontract.AVGalleryField{
+ AVBaseInstanceField: toContractAVBaseInstanceField(value.BaseInstanceField),
+ FullRow: value.FullRow,
+ }
+}
+func toContractAVGalleryCard(value *av.GalleryCard) *apicontract.AVGalleryCard {
+ if value == nil {
+ return nil
+ }
+ return &apicontract.AVGalleryCard{
+ ID: value.ID,
+ Values: avContractSlice(value.Values, func(value *av.GalleryFieldValue) *apicontract.AVGalleryFieldValue {
+ return toContractAVGalleryFieldValue(value)
+ }),
+ CoverURL: value.CoverURL,
+ CoverContent: value.CoverContent,
+ CoverPosition: toContractAVCardCoverPosition(value.CoverPosition),
+ }
+}
+func toContractAVGalleryFieldValue(value *av.GalleryFieldValue) *apicontract.AVGalleryFieldValue {
+ if value == nil {
+ return nil
+ }
+ return &apicontract.AVGalleryFieldValue{
+ AVBaseValue: toContractAVBaseValue(value.BaseValue),
+ }
+}
+func toContractAVCardCoverPosition(value *av.CardCoverPosition) *apicontract.AVCardCoverPosition {
+ if value == nil {
+ return nil
+ }
+ return &apicontract.AVCardCoverPosition{
+ Image: value.Image,
+ X: value.X,
+ Y: value.Y,
+ }
+}
+func toContractAVKanban(value *av.Kanban) *apicontract.AVKanban {
+ if value == nil {
+ return nil
+ }
+ return &apicontract.AVKanban{
+ AVBaseInstance: toContractAVBaseInstance(value.BaseInstance),
+ CoverFrom: int(value.CoverFrom),
+ CoverFromAssetKeyID: value.CoverFromAssetKeyID,
+ CardAspectRatio: int(value.CardAspectRatio),
+ CardAspectRatioValue: value.CardAspectRatioValue,
+ CardSize: int(value.CardSize),
+ CardWidth: value.CardWidth,
+ CardLayout: int(value.CardLayout),
+ FitImage: value.FitImage,
+ DisplayFieldName: value.DisplayFieldName,
+ DisplayEmptyFields: value.DisplayEmptyFields,
+ FillColBackgroundColor: value.FillColBackgroundColor,
+ Fields: avContractSlice(value.Fields, func(value *av.KanbanField) *apicontract.AVKanbanField { return toContractAVKanbanField(value) }),
+ Cards: avContractSlice(value.Cards, func(value *av.KanbanCard) *apicontract.AVKanbanCard { return toContractAVKanbanCard(value) }),
+ CardCount: value.CardCount,
+ }
+}
+func toContractAVKanbanField(value *av.KanbanField) *apicontract.AVKanbanField {
+ if value == nil {
+ return nil
+ }
+ return &apicontract.AVKanbanField{
+ AVBaseInstanceField: toContractAVBaseInstanceField(value.BaseInstanceField),
+ FullRow: value.FullRow,
+ }
+}
+func toContractAVKanbanCard(value *av.KanbanCard) *apicontract.AVKanbanCard {
+ if value == nil {
+ return nil
+ }
+ return &apicontract.AVKanbanCard{
+ ID: value.ID,
+ Values: avContractSlice(value.Values, func(value *av.KanbanFieldValue) *apicontract.AVKanbanFieldValue {
+ return toContractAVKanbanFieldValue(value)
+ }),
+ CoverURL: value.CoverURL,
+ CoverContent: value.CoverContent,
+ CoverPosition: toContractAVCardCoverPosition(value.CoverPosition),
+ }
+}
+func toContractAVKanbanFieldValue(value *av.KanbanFieldValue) *apicontract.AVKanbanFieldValue {
+ if value == nil {
+ return nil
+ }
+ return &apicontract.AVKanbanFieldValue{
+ AVBaseValue: toContractAVBaseValue(value.BaseValue),
+ }
+}
+func toContractAVKeyValues(value *av.KeyValues) *apicontract.AVKeyValues {
+ if value == nil {
+ return nil
+ }
+ return &apicontract.AVKeyValues{
+ Key: toContractAVKey(value.Key),
+ Values: avContractSlice(value.Values, func(value *av.Value) *apicontract.AVValue { return toContractAVValue(value) }),
+ }
+}
+func toContractAVViewData(value *av.ViewData) *apicontract.AVViewData {
+ if value == nil {
+ return nil
+ }
+ return &apicontract.AVViewData{
+ ID: value.ID,
+ Icon: value.Icon,
+ Name: value.Name,
+ Desc: value.Desc,
+ HideAttrViewName: value.HideAttrViewName,
+ Type: string(value.Type),
+ PageSize: value.PageSize,
+ }
+}
+func toContractAVNewItemTemplate(value *av.NewItemTemplate) *apicontract.AVNewItemTemplate {
+ if value == nil {
+ return nil
+ }
+ return &apicontract.AVNewItemTemplate{
+ ID: value.ID,
+ Name: value.Name,
+ Icon: value.Icon,
+ TargetType: string(value.TargetType),
+ PrimaryKeyTemplate: value.PrimaryKeyTemplate,
+ FieldValues: avContractMap(value.FieldValues, func(value *av.NewItemFieldValue) *apicontract.AVNewItemFieldValue {
+ return toContractAVNewItemFieldValue(value)
+ }),
+ SaveLocation: toContractAVNewItemSaveLocation(value.SaveLocation),
+ ContentTemplatePath: value.ContentTemplatePath,
+ HideInFileTree: value.HideInFileTree,
+ }
+}
+func toContractAVNewItemFieldValue(value *av.NewItemFieldValue) *apicontract.AVNewItemFieldValue {
+ if value == nil {
+ return nil
+ }
+ return &apicontract.AVNewItemFieldValue{
+ Mode: string(value.Mode),
+ Value: toContractAVValue(value.Value),
+ }
+}
+func toContractAVNewItemSaveLocation(value *av.NewItemSaveLocation) *apicontract.AVNewItemSaveLocation {
+ if value == nil {
+ return nil
+ }
+ return &apicontract.AVNewItemSaveLocation{
+ BoxID: value.BoxID,
+ PathTemplate: value.PathTemplate,
+ }
+}
+func toContractAVAttributeViewContextFilter(value *av.AttributeViewContextFilter) *apicontract.AVAttributeViewContextFilter {
+ if value == nil {
+ return nil
+ }
+ return &apicontract.AVAttributeViewContextFilter{
+ Spec: value.Spec,
+ KeyID: value.KeyID,
+ }
+}
+func toContractAVAttributeViewContextFilterField(value *av.AttributeViewContextFilterField) *apicontract.AVAttributeViewContextFilterField {
+ if value == nil {
+ return nil
+ }
+ return &apicontract.AVAttributeViewContextFilterField{
+ ID: value.ID,
+ Name: value.Name,
+ Icon: value.Icon,
+ TargetAvID: value.TargetAvID,
+ }
+}
+func toContractAVAttributeViewData(value *model.AttributeViewData) *apicontract.AVAttributeViewData {
+ if value == nil {
+ return nil
+ }
+ return &apicontract.AVAttributeViewData{
+ Spec: value.Spec,
+ ID: value.ID,
+ Name: value.Name,
+ CustomColors: avContractSlice(value.CustomColors, func(value *av.AttributeViewCustomColor) *apicontract.AVAttributeViewCustomColor {
+ return toContractAVAttributeViewCustomColor(value)
+ }),
+ KeyValues: avContractSlice(value.KeyValues, func(value *av.KeyValues) *apicontract.AVKeyValues { return toContractAVKeyValues(value) }),
+ KeyIDs: value.KeyIDs,
+ ViewID: value.ViewID,
+ Views: avContractSlice(value.Views, func(value *av.View) *apicontract.AVView { return toContractAVView(value) }),
+ NewItemTemplates: avContractSlice(value.NewItemTemplates, func(value *av.NewItemTemplate) *apicontract.AVNewItemTemplate {
+ return toContractAVNewItemTemplate(value)
+ }),
+ DefaultTemplateID: value.DefaultTemplateID,
+ CardCoverPositions: avContractMap(value.CardCoverPositions, func(value map[string]*av.CardCoverPosition) map[string]*apicontract.AVCardCoverPosition {
+ return avContractMap(value, func(value *av.CardCoverPosition) *apicontract.AVCardCoverPosition {
+ return toContractAVCardCoverPosition(value)
+ })
+ }),
+ }
+}
+func toContractAVAttributeViewCustomColor(value *av.AttributeViewCustomColor) *apicontract.AVAttributeViewCustomColor {
+ if value == nil {
+ return nil
+ }
+ return &apicontract.AVAttributeViewCustomColor{
+ Index: value.Index,
+ Hidden: value.Hidden,
+ AVAttributeViewColor: *toContractAVAttributeViewColor(&value.AttributeViewColor),
+ }
+}
+func toContractAVView(value *av.View) *apicontract.AVView {
+ if value == nil {
+ return nil
+ }
+ return &apicontract.AVView{
+ ID: value.ID,
+ Icon: value.Icon,
+ Name: value.Name,
+ HideAttrViewName: value.HideAttrViewName,
+ Desc: value.Desc,
+ Filters: avContractSlice(value.Filters, func(value *av.ViewFilter) *apicontract.AVViewFilter { return toContractAVViewFilter(value) }),
+ Sorts: avContractSlice(value.Sorts, func(value *av.ViewSort) *apicontract.AVViewSort { return toContractAVViewSort(value) }),
+ PageSize: value.PageSize,
+ LayoutType: string(value.LayoutType),
+ Table: toContractAVLayoutTable(value.Table),
+ Gallery: toContractAVLayoutGallery(value.Gallery),
+ Kanban: toContractAVLayoutKanban(value.Kanban),
+ ItemIDs: value.ItemIDs,
+ Group: toContractAVViewGroup(value.Group),
+ GroupCreated: value.GroupCreated,
+ Groups: avContractSlice(value.Groups, func(value *av.View) *apicontract.AVView { return toContractAVView(value) }),
+ GroupItemIDs: value.GroupItemIDs,
+ GroupCalc: toContractAVGroupCalc(value.GroupCalc),
+ GroupKey: toContractAVKey(value.GroupKey),
+ GroupVal: toContractAVValue(value.GroupVal),
+ GroupFolded: value.GroupFolded,
+ GroupHidden: value.GroupHidden,
+ GroupSort: value.GroupSort,
+ }
+}
+func toContractAVLayoutTable(value *av.LayoutTable) *apicontract.AVLayoutTable {
+ if value == nil {
+ return nil
+ }
+ return &apicontract.AVLayoutTable{
+ AVBaseLayout: toContractAVBaseLayout(value.BaseLayout),
+ Columns: avContractSlice(value.Columns, func(value *av.ViewTableColumn) *apicontract.AVViewTableColumn {
+ return toContractAVViewTableColumn(value)
+ }),
+ RowIDs: value.RowIDs,
+ }
+}
+func toContractAVBaseLayout(value *av.BaseLayout) *apicontract.AVBaseLayout {
+ if value == nil {
+ return nil
+ }
+ return &apicontract.AVBaseLayout{
+ Spec: value.Spec,
+ ID: value.ID,
+ ShowIcon: value.ShowIcon,
+ WrapField: value.WrapField,
+ Filters: avContractSlice(value.Filters, func(value *av.ViewFilter) *apicontract.AVViewFilter { return toContractAVViewFilter(value) }),
+ Sorts: avContractSlice(value.Sorts, func(value *av.ViewSort) *apicontract.AVViewSort { return toContractAVViewSort(value) }),
+ PageSize: value.PageSize,
+ }
+}
+func toContractAVViewTableColumn(value *av.ViewTableColumn) *apicontract.AVViewTableColumn {
+ if value == nil {
+ return nil
+ }
+ return &apicontract.AVViewTableColumn{
+ AVBaseField: toContractAVBaseField(value.BaseField),
+ Pin: value.Pin,
+ Width: value.Width,
+ Align: string(value.Align),
+ Calc: toContractAVFieldCalc(value.Calc),
+ }
+}
+func toContractAVBaseField(value *av.BaseField) *apicontract.AVBaseField {
+ if value == nil {
+ return nil
+ }
+ return &apicontract.AVBaseField{
+ ID: value.ID,
+ Wrap: value.Wrap,
+ Hidden: value.Hidden,
+ Desc: value.Desc,
+ Calc: toContractAVFieldCalc(value.Calc),
+ }
+}
+func toContractAVLayoutGallery(value *av.LayoutGallery) *apicontract.AVLayoutGallery {
+ if value == nil {
+ return nil
+ }
+ return &apicontract.AVLayoutGallery{
+ AVBaseLayout: toContractAVBaseLayout(value.BaseLayout),
+ CoverFrom: int(value.CoverFrom),
+ CoverFromAssetKeyID: value.CoverFromAssetKeyID,
+ CardAspectRatio: int(value.CardAspectRatio),
+ CardAspectRatioValue: value.CardAspectRatioValue,
+ CardSize: int(value.CardSize),
+ CardWidth: value.CardWidth,
+ CardLayout: int(value.CardLayout),
+ FitImage: value.FitImage,
+ DisplayFieldName: value.DisplayFieldName,
+ DisplayEmptyFields: value.DisplayEmptyFields,
+ CardFields: avContractSlice(value.CardFields, func(value *av.ViewGalleryCardField) *apicontract.AVViewGalleryCardField {
+ return toContractAVViewGalleryCardField(value)
+ }),
+ CardIDs: value.CardIDs,
+ }
+}
+func toContractAVViewGalleryCardField(value *av.ViewGalleryCardField) *apicontract.AVViewGalleryCardField {
+ if value == nil {
+ return nil
+ }
+ return &apicontract.AVViewGalleryCardField{
+ AVBaseField: toContractAVBaseField(value.BaseField),
+ FullRow: value.FullRow,
+ }
+}
+func toContractAVLayoutKanban(value *av.LayoutKanban) *apicontract.AVLayoutKanban {
+ if value == nil {
+ return nil
+ }
+ return &apicontract.AVLayoutKanban{
+ AVBaseLayout: toContractAVBaseLayout(value.BaseLayout),
+ CoverFrom: int(value.CoverFrom),
+ CoverFromAssetKeyID: value.CoverFromAssetKeyID,
+ CardAspectRatio: int(value.CardAspectRatio),
+ CardAspectRatioValue: value.CardAspectRatioValue,
+ CardSize: int(value.CardSize),
+ CardWidth: value.CardWidth,
+ CardLayout: int(value.CardLayout),
+ FitImage: value.FitImage,
+ DisplayFieldName: value.DisplayFieldName,
+ DisplayEmptyFields: value.DisplayEmptyFields,
+ FillColBackgroundColor: value.FillColBackgroundColor,
+ Fields: avContractSlice(value.Fields, func(value *av.ViewKanbanField) *apicontract.AVViewKanbanField {
+ return toContractAVViewKanbanField(value)
+ }),
+ }
+}
+func toContractAVViewKanbanField(value *av.ViewKanbanField) *apicontract.AVViewKanbanField {
+ if value == nil {
+ return nil
+ }
+ return &apicontract.AVViewKanbanField{
+ AVBaseField: toContractAVBaseField(value.BaseField),
+ FullRow: value.FullRow,
+ }
+}
+func toContractAVAttributeViewFieldView(value *model.AttributeViewFieldView) *apicontract.AVAttributeViewFieldView {
+ if value == nil {
+ return nil
+ }
+ return &apicontract.AVAttributeViewFieldView{
+ ID: value.ID,
+ Icon: value.Icon,
+ Name: value.Name,
+ Type: string(value.Type),
+ Hidden: value.Hidden,
+ }
+}
+func toContractAVAvSearchResult(value *model.AvSearchResult) *apicontract.AVAvSearchResult {
+ if value == nil {
+ return nil
+ }
+ return &apicontract.AVAvSearchResult{
+ AvID: value.AvID,
+ AvName: value.AvName,
+ ViewName: value.ViewName,
+ ViewID: value.ViewID,
+ ViewLayout: string(value.ViewLayout),
+ BlockID: value.BlockID,
+ HPath: value.HPath,
+ Matched: value.Matched,
+ Children: avContractSlice(value.Children, func(value *model.AvSearchResult) *apicontract.AVAvSearchResult {
+ return toContractAVAvSearchResult(value)
+ }),
+ }
+}
+func toContractAVBlockAttributeViewKeys(value *model.BlockAttributeViewKeys) *apicontract.AVBlockAttributeViewKeys {
+ if value == nil {
+ return nil
+ }
+ return &apicontract.AVBlockAttributeViewKeys{
+ AvID: value.AvID,
+ AvName: value.AvName,
+ CustomColors: avContractSlice(value.CustomColors, func(value *av.AttributeViewCustomColor) *apicontract.AVAttributeViewCustomColor {
+ return toContractAVAttributeViewCustomColor(value)
+ }),
+ BlockIDs: value.BlockIDs,
+ KeyValues: avContractSlice(value.KeyValues, func(value *av.KeyValues) *apicontract.AVKeyValues { return toContractAVKeyValues(value) }),
+ ItemPositions: avContractSlice(value.ItemPositions, func(value *model.AttributeViewItemPosition) *apicontract.AVAttributeViewItemPosition {
+ return toContractAVAttributeViewItemPosition(value)
+ }),
+ }
+}
+func toContractAVAttributeViewItemPosition(value *model.AttributeViewItemPosition) *apicontract.AVAttributeViewItemPosition {
+ if value == nil {
+ return nil
+ }
+ return &apicontract.AVAttributeViewItemPosition{
+ ViewID: value.ViewID,
+ PreviousID: value.PreviousID,
+ Groups: avContractSlice(value.Groups, func(value *model.AttributeViewGroupItemPosition) *apicontract.AVAttributeViewGroupItemPosition {
+ return toContractAVAttributeViewGroupItemPosition(value)
+ }),
+ }
+}
+func toContractAVAttributeViewGroupItemPosition(value *model.AttributeViewGroupItemPosition) *apicontract.AVAttributeViewGroupItemPosition {
+ if value == nil {
+ return nil
+ }
+ return &apicontract.AVAttributeViewGroupItemPosition{
+ GroupID: value.GroupID,
+ PreviousID: value.PreviousID,
+ }
+}
+func toContractAVAttributeViewSearchTarget(value *model.AttributeViewSearchTarget) *apicontract.AVAttributeViewSearchTarget {
+ if value == nil {
+ return nil
+ }
+ return &apicontract.AVAttributeViewSearchTarget{
+ AvID: value.AvID,
+ DatabaseBlockID: value.DatabaseBlockID,
+ NotebookID: value.NotebookID,
+ ViewID: value.ViewID,
+ GroupID: value.GroupID,
+ ItemID: value.ItemID,
+ ValueID: value.ValueID,
+ MatchedValueID: value.MatchedValueID,
+ MatchedKeyID: value.MatchedKeyID,
+ Title: value.Title,
+ BoundBlockID: value.BoundBlockID,
+ IsDetached: value.IsDetached,
+ Keywords: value.Keywords,
+ }
+}
+func toContractAVAttributeViewBacklinks(value *model.AttributeViewBacklinks) *apicontract.AVAttributeViewBacklinks {
+ if value == nil {
+ return nil
+ }
+ return &apicontract.AVAttributeViewBacklinks{
+ Total: value.Total,
+ Items: avContractSlice(value.Items, func(value *model.AttributeViewBacklink) *apicontract.AVAttributeViewBacklink {
+ return toContractAVAttributeViewBacklink(value)
+ }),
+ }
+}
+func toContractAVAttributeViewBacklink(value *model.AttributeViewBacklink) *apicontract.AVAttributeViewBacklink {
+ if value == nil {
+ return nil
+ }
+ return &apicontract.AVAttributeViewBacklink{
+ AvID: value.AvID,
+ AvName: value.AvName,
+ BlockIDs: value.BlockIDs,
+ DatabaseBlockID: value.DatabaseBlockID,
+ BoxID: value.BoxID,
+ DatabasePath: value.DatabasePath,
+ ItemID: value.ItemID,
+ ValueID: value.ValueID,
+ Title: value.Title,
+ Icon: value.Icon,
+ BoundBlockID: value.BoundBlockID,
+ IsDetached: value.IsDetached,
+ Relations: avContractSlice(value.Relations, func(value *model.AttributeViewBacklinkRelation) *apicontract.AVAttributeViewBacklinkRelation {
+ return toContractAVAttributeViewBacklinkRelation(value)
+ }),
+ }
+}
+func toContractAVAttributeViewBacklinkRelation(value *model.AttributeViewBacklinkRelation) *apicontract.AVAttributeViewBacklinkRelation {
+ if value == nil {
+ return nil
+ }
+ return &apicontract.AVAttributeViewBacklinkRelation{
+ KeyID: value.KeyID,
+ KeyName: value.KeyName,
+ TargetAvID: value.TargetAvID,
+ TargetItemID: value.TargetItemID,
+ }
+}
+func toContractAVAttributeViewRenderTarget(value *model.AttributeViewRenderTarget) *apicontract.AVAttributeViewRenderTarget {
+ if value == nil {
+ return nil
+ }
+ return &apicontract.AVAttributeViewRenderTarget{
+ Status: value.Status,
+ ItemID: value.ItemID,
+ GroupID: value.GroupID,
+ Index: value.Index,
+ Offset: value.Offset,
+ PageSize: value.PageSize,
+ }
+}
+func toContractAVCreateAttributeViewItemResult(value *model.CreateAttributeViewItemResult) *apicontract.AVCreateAttributeViewItemResult {
+ if value == nil {
+ return nil
+ }
+ return &apicontract.AVCreateAttributeViewItemResult{
+ ItemID: value.ItemID,
+ BlockID: value.BlockID,
+ Content: value.Content,
+ IsDetached: value.IsDetached,
+ Warnings: value.Warnings,
+ }
+}
+func toContractAVCreateAttributeViewItemDocsResult(value *model.CreateAttributeViewItemDocsResult) *apicontract.AVCreateAttributeViewItemDocsResult {
+ if value == nil {
+ return nil
+ }
+ return &apicontract.AVCreateAttributeViewItemDocsResult{
+ ItemIDs: value.ItemIDs,
+ BlockIDs: value.BlockIDs,
+ SkippedItemIDs: value.SkippedItemIDs,
+ Warnings: value.Warnings,
+ }
+}
diff --git a/kernel/api/av_contract_render.go b/kernel/api/av_contract_render.go
new file mode 100644
index 0000000000..a2dafe828e
--- /dev/null
+++ b/kernel/api/av_contract_render.go
@@ -0,0 +1,81 @@
+package api
+
+import (
+ "errors"
+ "github.com/siyuan-note/siyuan/kernel/apicontract"
+ "github.com/siyuan-note/siyuan/kernel/av"
+ "github.com/siyuan-note/siyuan/kernel/model"
+)
+
+func avGroupPaging(values map[string]*apicontract.AVGroupPaging) map[string]any {
+ ret := map[string]any{}
+ for id, value := range values {
+ if value == nil {
+ ret[id] = nil
+ continue
+ }
+ paging := map[string]any{}
+ if value.Page != nil {
+ paging["page"] = *value.Page
+ }
+ if value.PageSize != nil {
+ paging["pageSize"] = *value.PageSize
+ }
+ ret[id] = paging
+ }
+ return ret
+}
+
+func avArchiveRenderData(attrView *av.AttributeView, view av.Viewable) apicontract.AVArchiveRenderData {
+ var views []*apicontract.AVViewData
+ for _, v := range attrView.Views {
+ views = append(views, &apicontract.AVViewData{ID: v.ID, Icon: v.Icon, Name: v.Name, Desc: v.Desc, HideAttrViewName: v.HideAttrViewName, Type: string(v.LayoutType), PageSize: v.PageSize})
+ }
+ return apicontract.AVArchiveRenderData{Name: attrView.Name, ID: attrView.ID, CustomColors: avContractSlice(attrView.Palette(), toContractAVAttributeViewCustomColor), ColorOrder: attrView.PaletteOrder(), UsedCustomColorIndexes: attrView.UsedCustomColorIndexes(), ViewType: string(view.GetType()), ViewID: view.GetID(), Views: views, View: avContractView(view), IsMirror: av.IsMirror(attrView.ID), NewItemTemplates: avContractSlice(attrView.NewItemTemplates, toContractAVNewItemTemplate), DefaultTemplateID: attrView.DefaultTemplateID}
+}
+
+func renderAttrView(blockID, avID, viewID, query string, page, pageSize int, groupPaging map[string]any, initialLayout av.LayoutType, createIfNotExist, ignoreRows bool, targetItemID, targetGroupID string, filter func(av.Viewable) av.Viewable, hideContext bool) apicontract.Response[apicontract.AVRenderResult] {
+ view, attrView, target, err := model.RenderAttributeViewWithTarget(blockID, avID, viewID, query, page, pageSize, groupPaging, initialLayout, createIfNotExist, ignoreRows, targetItemID, targetGroupID)
+ if err != nil {
+ message := err.Error()
+ if errors.Is(err, av.ErrSpecTooNew) {
+ message = model.Conf.Language(215)
+ }
+ if errors.Is(err, av.ErrViewNotFound) {
+ return apicontract.RenderAttributeView.FailureWithData(-1, message, apicontract.NewAVRenderResultError(apicontract.AVViewNotFound{Error: "viewNotFound"}))
+ }
+ return apicontract.Failure[apicontract.AVRenderResult](-1, message)
+ }
+ contextFilter, err := model.GetAttributeViewContextFilter(attrView, blockID)
+ if err != nil {
+ return apicontract.Failure[apicontract.AVRenderResult](-1, err.Error())
+ }
+ data := apicontract.AVRenderData{AVArchiveRenderData: avArchiveRenderData(attrView, view), ContextFilter: toContractAVAttributeViewContextFilter(contextFilter), ContextFilterFields: avContractSlice(attrView.ContextFilterFields(), toContractAVAttributeViewContextFilterField), Target: toContractAVAttributeViewRenderTarget(target)}
+ if filter != nil {
+ data.View = avContractView(filter(view))
+ }
+ if hideContext {
+ data.ContextFilter = nil
+ data.ContextFilterFields = []*apicontract.AVAttributeViewContextFilterField{}
+ }
+ return apicontract.Success(apicontract.NewAVRenderResult(data))
+}
+
+func createAVItemResponse(result *model.CreateAttributeViewItemResult, err error, app, session string) apicontract.Response[apicontract.AVCreateItemResult] {
+ if err != nil {
+ if errors.Is(err, model.ErrBoxNotFound) {
+ return apicontract.CreateAttributeViewItem.FailureWithData(1, "", apicontract.NewAVCreateItemResultError(apicontract.AVUnavailableNotebook{UnavailableNotebook: true}))
+ }
+ return apicontract.Failure[apicontract.AVCreateItemResult](-1, err.Error())
+ }
+ if result.Transaction != nil {
+ for _, operation := range result.Transaction.DoOperations {
+ if operation.Action == "insertAttrViewBlock" {
+ operation.Context = map[string]any{"filteredTipScope": "target", "filteredTipToken": result.ItemID, "filteredTipAppID": app, "protyleID": session, "openFilteredItem": "true"}
+ break
+ }
+ }
+ pushTransactions(app, session, []*model.Transaction{result.Transaction})
+ }
+ return apicontract.Success(apicontract.NewAVCreateItemResult(*toContractAVCreateAttributeViewItemResult(result)))
+}
diff --git a/kernel/api/av_row_sort.go b/kernel/api/av_row_sort.go
index 72af0d7937..9f23441e6b 100644
--- a/kernel/api/av_row_sort.go
+++ b/kernel/api/av_row_sort.go
@@ -1,29 +1,61 @@
package api
import (
- "net/http"
+ "fmt"
"github.com/88250/gulu"
"github.com/gin-gonic/gin"
+ "github.com/siyuan-note/siyuan/kernel/apicontract"
"github.com/siyuan-note/siyuan/kernel/model"
"github.com/siyuan-note/siyuan/kernel/util"
)
-func getAttributeViewRowSort(c *gin.Context) {
+var getAttributeViewRowSort = contractHandler(apicontract.GetAttributeViewRowSort, func(c *gin.Context, request apicontract.GetAttributeViewRowSortRequest) apicontract.Response[apicontract.AVRowSortPreview] {
ret := gulu.Ret.NewResult()
- defer c.JSON(http.StatusOK, ret)
- var request model.AttributeViewRowSortRequest
- if err := c.ShouldBindJSON(&request); nil != err {
- ret.Code, ret.Msg = -1, err.Error()
- return
- }
if util.InvalidIDPattern(request.AvID, ret) || util.InvalidIDPattern(request.ViewID, ret) {
- return
+ return contractFailure[apicontract.AVRowSortPreview](ret)
}
- preview, err := model.PrepareAttributeViewRowSort(&request)
+ input := model.AttributeViewRowSortRequest{AvID: request.AvID, BlockID: request.BlockID, ViewID: request.ViewID, GroupID: request.GroupID, ItemIDs: request.ItemIDs, PreviousID: request.PreviousID, NextID: request.NextID}
+ preview, err := model.PrepareAttributeViewRowSort(&input)
if nil != err {
- ret.Code, ret.Msg = -1, err.Error()
- return
+ return apicontract.Failure[apicontract.AVRowSortPreview](-1, err.Error())
+ }
+ doOperations, err := avRowSortOperations(preview.DoOperations)
+ if err != nil {
+ return apicontract.Failure[apicontract.AVRowSortPreview](-1, err.Error())
+ }
+ undoOperations, err := avRowSortOperations(preview.UndoOperations)
+ if err != nil {
+ return apicontract.Failure[apicontract.AVRowSortPreview](-1, err.Error())
+ }
+ return apicontract.Success(apicontract.AVRowSortPreview{Conflict: preview.Conflict, DoOperations: doOperations, UndoOperations: undoOperations})
+})
+
+func avRowOrder(value *model.AttributeViewRowOrder) *apicontract.AVRowOrder {
+ if value == nil {
+ return nil
+ }
+ return &apicontract.AVRowOrder{ItemIDs: value.ItemIDs, Groups: value.Groups, Sorts: avContractSlice(value.Sorts, toContractAVViewSort)}
+}
+
+func avRowSortOperations(values []*model.Operation) ([]*apicontract.AVRowSortOperation, error) {
+ if values == nil {
+ return nil, nil
+ }
+ ret := make([]*apicontract.AVRowSortOperation, len(values))
+ for i, value := range values {
+ if value == nil {
+ continue
+ }
+ data, ok := value.Data.(*model.AttributeViewRowOrderChange)
+ if !ok || value.Action != "sortAttrViewRow" {
+ return nil, fmt.Errorf("unsupported attribute view row sort operation %s", value.Action)
+ }
+ var change *apicontract.AVRowOrderChange
+ if data != nil {
+ change = &apicontract.AVRowOrderChange{RowOrder: avRowOrder(data.RowOrder), Expected: avRowOrder(data.Expected), ValidateGroup: data.ValidateGroup}
+ }
+ ret[i] = &apicontract.AVRowSortOperation{Action: value.Action, Data: change, ID: value.ID, RootID: value.RootID, ParentID: value.ParentID, PreviousID: value.PreviousID, NextID: value.NextID, BlockIDs: value.BlockIDs, BlockID: value.BlockID, DeckID: value.DeckID, AvID: value.AvID, SrcIDs: value.SrcIDs, IsDetached: value.IsDetached, Name: value.Name, Typ: value.Typ, Format: value.Format, KeyID: value.KeyID, RowID: value.RowID, IsTwoWay: value.IsTwoWay, BackRelationKeyID: value.BackRelationKeyID, RemoveDest: value.RemoveDest, Layout: string(value.Layout), GroupID: value.GroupID, TargetGroupID: value.TargetGroupID, ViewID: value.ViewID, ViewIDs: value.ViewIDs, IgnoreDefaultFill: value.IgnoreDefaultFill}
}
- ret.Data = preview
+ return ret, nil
}
diff --git a/kernel/api/contract_av_test.go b/kernel/api/contract_av_test.go
new file mode 100644
index 0000000000..12ba313ebf
--- /dev/null
+++ b/kernel/api/contract_av_test.go
@@ -0,0 +1,126 @@
+package api
+
+import (
+ "encoding/json"
+ "net/http"
+ "reflect"
+ "testing"
+
+ "github.com/88250/gulu"
+ "github.com/siyuan-note/siyuan/kernel/apicontract"
+ "github.com/siyuan-note/siyuan/kernel/av"
+ "github.com/siyuan-note/siyuan/kernel/model"
+)
+
+func assertAVContractJSONEqual(t *testing.T, want, got any) {
+ t.Helper()
+ left, err := json.Marshal(want)
+ if err != nil {
+ t.Fatal(err)
+ }
+ right, err := json.Marshal(got)
+ if err != nil {
+ t.Fatal(err)
+ }
+ var l, r any
+ if err = json.Unmarshal(left, &l); err != nil {
+ t.Fatal(err)
+ }
+ if err = json.Unmarshal(right, &r); err != nil {
+ t.Fatal(err)
+ }
+ if !reflect.DeepEqual(l, r) {
+ t.Fatalf("wire payload differs\nwant %s\ngot %s", left, right)
+ }
+}
+
+func TestAVContractTransportMapping(t *testing.T) {
+ base := &av.BaseInstance{ID: "view", Filters: []*av.ViewFilter{}, Sorts: nil, PageSize: 50, Group: &av.ViewGroup{Field: "key"}}
+ value := &av.Value{ID: "value", Type: av.KeyTypeText, Text: &av.ValueText{Content: "content"}, Relation: &av.ValueRelation{BlockIDs: []string{}}}
+ for _, view := range []av.Viewable{
+ &av.Table{BaseInstance: base, Columns: []*av.TableColumn{{BaseInstanceField: &av.BaseInstanceField{ID: "key", Type: av.KeyTypeText}}}, Rows: []*av.TableRow{{ID: "item", Cells: []*av.TableCell{{BaseValue: &av.BaseValue{ID: "cell", Value: value, ValueType: av.KeyTypeText}}}}}},
+ &av.Gallery{BaseInstance: base},
+ &av.Kanban{BaseInstance: base},
+ &av.Table{},
+ } {
+ assertAVContractJSONEqual(t, view, avContractView(view))
+ }
+ assertAVContractJSONEqual(t, value, toContractAVValue(value))
+ assertAVContractJSONEqual(t, &av.ViewTableColumn{BaseField: &av.BaseField{ID: "key", Calc: &av.FieldCalc{}}, Calc: nil}, toContractAVViewTableColumn(&av.ViewTableColumn{BaseField: &av.BaseField{ID: "key", Calc: &av.FieldCalc{}}, Calc: nil}))
+ fixture := setupAttributeViewContextFilterAPITest(t)
+ assertAVContractJSONEqual(t, model.NewAttributeViewData(fixture.attrView), toContractAVAttributeViewData(model.NewAttributeViewData(fixture.attrView)))
+}
+
+func TestAVContractRenderWire(t *testing.T) {
+ fixture := setupAttributeViewContextFilterAPITest(t)
+ bundle, err := apicontract.BuildBundle()
+ if err != nil {
+ t.Fatal(err)
+ }
+ path := "/api/av/renderAttributeView"
+ view, attrView, target, err := model.RenderAttributeViewWithTarget(fixture.databaseID, fixture.attrView.ID, fixture.attrView.Views[0].ID, "", 1, -1, map[string]any{}, "", false, true, "", "")
+ if err != nil {
+ t.Fatal(err)
+ }
+ var views []*av.ViewData
+ for _, v := range attrView.Views {
+ views = append(views, &av.ViewData{ID: v.ID, Icon: v.Icon, Name: v.Name, Desc: v.Desc, HideAttrViewName: v.HideAttrViewName, Type: v.LayoutType, PageSize: v.PageSize})
+ }
+ contextFilter, err := model.GetAttributeViewContextFilter(attrView, fixture.databaseID)
+ if err != nil {
+ t.Fatal(err)
+ }
+ data := map[string]any{"name": attrView.Name, "id": attrView.ID, "customColors": attrView.Palette(), "colorOrder": attrView.PaletteOrder(), "usedCustomColorIndexes": attrView.UsedCustomColorIndexes(), "viewType": view.GetType(), "viewID": view.GetID(), "views": views, "view": view, "isMirror": av.IsMirror(attrView.ID), "newItemTemplates": attrView.NewItemTemplates, "defaultTemplateID": attrView.DefaultTemplateID, "contextFilter": contextFilter, "contextFilterFields": attrView.ContextFilterFields()}
+ if target != nil {
+ data["target"] = target
+ }
+ want := gulu.Ret.NewResult()
+ want.Data = data
+ response := callAttributeViewContextFilterAPI(t, path, map[string]any{"id": fixture.attrView.ID, "blockID": fixture.databaseID, "viewID": fixture.attrView.Views[0].ID, "createIfNotExist": false, "ignoreRows": true}, renderAttributeView)
+ if err = bundle.ValidateHTTPResponse(http.MethodPost, path, response.Code, response.Header().Get("Content-Type"), response.Body.Bytes()); err != nil {
+ t.Fatalf("render schema: %v\n%s", err, response.Body.String())
+ }
+ var got json.RawMessage = response.Body.Bytes()
+ assertAVContractJSONEqual(t, want, got)
+ missing := callAttributeViewContextFilterAPI(t, path, map[string]any{"id": fixture.attrView.ID, "blockID": fixture.databaseID, "viewID": "20260913000000-missing", "createIfNotExist": false, "ignoreRows": true}, renderAttributeView)
+ if err = bundle.ValidateResponse(http.MethodPost, path, missing.Body.Bytes()); err != nil {
+ t.Fatalf("missing view schema: %v\n%s", err, missing.Body.String())
+ }
+}
+
+func TestAVContractRowSortMapping(t *testing.T) {
+ group := "group"
+ change := &model.AttributeViewRowOrderChange{RowOrder: &model.AttributeViewRowOrder{ItemIDs: []string{"a", "b"}, Groups: map[string][]string{"group": {"b"}}, Sorts: []*av.ViewSort{}}, Expected: &model.AttributeViewRowOrder{ItemIDs: []string{"b", "a"}}, ValidateGroup: &group}
+ operations := []*model.Operation{{Action: "sortAttrViewRow", AvID: "av", BlockID: "block", ViewID: "view", Data: change}}
+ converted, err := avRowSortOperations(operations)
+ if err != nil {
+ t.Fatal(err)
+ }
+ assertAVContractJSONEqual(t, operations, converted)
+ bundle, err := apicontract.BuildBundle()
+ if err != nil {
+ t.Fatal(err)
+ }
+ payload, err := json.Marshal(apicontract.Success(apicontract.AVRowSortPreview{DoOperations: converted, UndoOperations: []*apicontract.AVRowSortOperation{}}))
+ if err != nil {
+ t.Fatal(err)
+ }
+ if err = bundle.ValidateResponse("POST", "/api/av/getAttributeViewRowSort", payload); err != nil {
+ t.Fatalf("row sort schema: %v\n%s", err, payload)
+ }
+}
+
+func TestAVContractPublishAccessBeforeKeyIDs(t *testing.T) {
+ setupAttributeViewContextFilterAPITest(t)
+ response := callAttributeViewContextFilterAPIWithRole(t, "/api/av/getAttributeViewKeysByID", map[string]any{"avID": "20260913000000-missing", "keyIDs": []any{nil}}, getAttributeViewKeysByID, model.RoleReader)
+ var result struct {
+ Code int `json:"code"`
+ Msg string `json:"msg"`
+ }
+ if err := json.Unmarshal(response.Body.Bytes(), &result); err != nil {
+ t.Fatal(err)
+ }
+ if result.Code != -1 || result.Msg != av.ErrAttributeViewNotFound.Error() {
+ t.Fatalf("publish admission order changed: %s", response.Body.String())
+ }
+}
diff --git a/kernel/apicontract/av_decode.go b/kernel/apicontract/av_decode.go
new file mode 100644
index 0000000000..ca84c21205
--- /dev/null
+++ b/kernel/apicontract/av_decode.go
@@ -0,0 +1,175 @@
+package apicontract
+
+import (
+ "bytes"
+ "encoding/json"
+ "fmt"
+ "io"
+ "reflect"
+ "strings"
+)
+
+// avDecodeBoundFields 仅对原本经过 JSON 结构体绑定的字段保留大小写匹配和数字归一化。
+func avDecodeBoundFields[Request any](reader io.Reader, path string, boundFields map[string]string, ignoredBools []string) (request Request, err error) {
+ fields, err := blockRequestFields(reader, path)
+ if err != nil {
+ return request, err
+ }
+ original := map[string]json.RawMessage{}
+ for name, placeholder := range boundFields {
+ raw, present := fields[name]
+ if !present {
+ return request, fmt.Errorf("Field [%s] is required", name)
+ }
+ if bytes.Equal(bytes.TrimSpace(raw), []byte("null")) {
+ return request, fmt.Errorf("Field [%s] must not be null", name)
+ }
+ original[name] = raw
+ fields[name] = json.RawMessage(placeholder)
+ }
+ for _, name := range ignoredBools {
+ original[name] = fields[name]
+ delete(fields, name)
+ }
+ value := reflect.ValueOf(&request).Elem()
+ if err = decodeRequestFields(value, fields); err != nil {
+ return request, err
+ }
+ for i := 0; i < value.NumField(); i++ {
+ field := value.Type().Field(i)
+ name := field.Tag.Get("json")
+ raw, present := original[name]
+ if !present {
+ continue
+ }
+ if _, bound := boundFields[name]; !bound {
+ _ = json.Unmarshal(raw, value.Field(i).Addr().Interface())
+ continue
+ }
+ var normalized any
+ if err = json.Unmarshal(raw, &normalized); err != nil {
+ return request, err
+ }
+ var data []byte
+ if data, err = json.Marshal(normalized); err != nil {
+ return request, err
+ }
+ if err = json.Unmarshal(data, value.Field(i).Addr().Interface()); err != nil {
+ return request, err
+ }
+ }
+ return request, nil
+}
+
+func init() {
+ GetAttributeViewRowSort.decodeRequest = func(reader io.Reader) (request GetAttributeViewRowSortRequest, err error) {
+ err = json.NewDecoder(reader).Decode(&request)
+ return request, err
+ }
+ GetAttributeViewKeysByID.decodeRequest = func(reader io.Reader) (request GetAttributeViewKeysByIDRequest, err error) {
+ fields, err := blockRequestFields(reader, "/api/av/getAttributeViewKeysByID")
+ if err != nil {
+ return request, err
+ }
+ raw, present := fields["keyIDs"]
+ fields["keyIDs"] = json.RawMessage("[]")
+ if err = decodeRequestFields(reflect.ValueOf(&request).Elem(), fields); err != nil {
+ return request, err
+ }
+ if !present {
+ request.KeyIDsError = fmt.Errorf("Field [keyIDs] is required")
+ } else if bytes.Equal(bytes.TrimSpace(raw), []byte("null")) {
+ request.KeyIDsError = fmt.Errorf("Field [keyIDs] must not be null")
+ } else {
+ request.KeyIDsError = decodeRequestValue(raw, reflect.ValueOf(&request.KeyIDs).Elem())
+ }
+ return request, nil
+ }
+ GetAttributeViewPasteRows.decodeRequest = func(reader io.Reader) (GetAttributeViewPasteRowsRequest, error) {
+ return avDecodeParsedRequest[GetAttributeViewPasteRowsRequest](reader, "/api/av/getAttributeViewPasteRows")
+ }
+ GetAttributeViewFieldViews.decodeRequest = func(reader io.Reader) (GetAttributeViewFieldViewsRequest, error) {
+ return avDecodeParsedRequest[GetAttributeViewFieldViewsRequest](reader, "/api/av/getAttributeViewFieldViews")
+ }
+ CreateAttributeViewItem.decodeRequest = func(reader io.Reader) (CreateAttributeViewItemRequest, error) {
+ return avDecodeParsedRequest[CreateAttributeViewItemRequest](reader, "/api/av/createAttributeViewItem")
+ }
+ CreateAttributeViewItemWithMarkdown.decodeRequest = func(reader io.Reader) (CreateAttributeViewItemWithMarkdownRequest, error) {
+ return avDecodeParsedRequest[CreateAttributeViewItemWithMarkdownRequest](reader, "/api/av/createAttributeViewItemWithMarkdown")
+ }
+ CreateAttributeViewItemDocs.decodeRequest = func(reader io.Reader) (CreateAttributeViewItemDocsRequest, error) {
+ return avDecodeParsedRequest[CreateAttributeViewItemDocsRequest](reader, "/api/av/createAttributeViewItemDocs")
+ }
+ SetAttrViewGroup.decodeRequest = func(reader io.Reader) (SetAttrViewGroupRequest, error) {
+ return avDecodeBoundFields[SetAttrViewGroupRequest](reader, "/api/av/setAttrViewGroup", map[string]string{"group": "{}"}, []string{"ignoreRows"})
+ }
+ SetAttrViewFilters.decodeRequest = func(reader io.Reader) (SetAttrViewFiltersRequest, error) {
+ return avDecodeBoundFields[SetAttrViewFiltersRequest](reader, "/api/av/setAttrViewFilters", map[string]string{"data": "[]"}, nil)
+ }
+ SetAttrViewSorts.decodeRequest = func(reader io.Reader) (SetAttrViewSortsRequest, error) {
+ return avDecodeBoundFields[SetAttrViewSortsRequest](reader, "/api/av/setAttrViewSorts", map[string]string{"data": "[]"}, nil)
+ }
+ AppendAttributeViewDetachedBlocksWithValues.decodeRequest = func(reader io.Reader) (AppendAttributeViewDetachedBlocksWithValuesRequest, error) {
+ return avDecodeBoundFields[AppendAttributeViewDetachedBlocksWithValuesRequest](reader, "/api/av/appendAttributeViewDetachedBlocksWithValues", map[string]string{"blocksValues": "[]"}, nil)
+ }
+ SetAttributeViewBlockAttr.decodeRequest = func(reader io.Reader) (SetAttributeViewBlockAttrRequest, error) {
+ return avDecodeBoundFields[SetAttributeViewBlockAttrRequest](reader, "/api/av/setAttributeViewBlockAttr", map[string]string{"value": "{}"}, nil)
+ }
+ BatchSetAttributeViewBlockAttrs.decodeRequest = func(reader io.Reader) (BatchSetAttributeViewBlockAttrsRequest, error) {
+ return avDecodeBoundFields[BatchSetAttributeViewBlockAttrsRequest](reader, "/api/av/batchSetAttributeViewBlockAttrs", map[string]string{"values": "[]"}, nil)
+ }
+ SearchAttributeView.decodeRequest = func(reader io.Reader) (SearchAttributeViewRequest, error) {
+ return avDecodeBoundFields[SearchAttributeViewRequest](reader, "/api/av/searchAttributeView", nil, []string{"includeViewMatches"})
+ }
+}
+
+func avDecodeParsedRequest[Request any](reader io.Reader, path string) (request Request, err error) {
+ fields, err := blockRequestFields(reader, path)
+ if err != nil {
+ return request, err
+ }
+ value := reflect.ValueOf(&request).Elem()
+ for i := 0; i < value.NumField(); i++ {
+ field := value.Type().Field(i)
+ name := field.Tag.Get("json")
+ options := "," + field.Tag.Get("api") + ","
+ required := !strings.Contains(options, ",optional,")
+ switch field.Type.Kind() {
+ case reflect.String:
+ var decoded string
+ decoded, err = legacyField[string](fields, name, "String", required)
+ if err == nil && strings.Contains(options, ",trim,") {
+ decoded = strings.TrimSpace(decoded)
+ if decoded == "" {
+ err = fmt.Errorf("Field [%s] must not be empty", name)
+ }
+ }
+ value.Field(i).SetString(decoded)
+ case reflect.Bool:
+ var decoded bool
+ decoded, err = legacyField[bool](fields, name, "Boolean", required)
+ value.Field(i).SetBool(decoded)
+ case reflect.Float64:
+ var decoded float64
+ decoded, err = legacyField[float64](fields, name, "Number", required)
+ value.Field(i).SetFloat(decoded)
+ case reflect.Slice:
+ var entries []json.RawMessage
+ entries, err = legacyField[[]json.RawMessage](fields, name, "Array", required)
+ var decoded []string
+ for _, entry := range entries {
+ var item string
+ if !bytes.Equal(entry, []byte("null")) && json.Unmarshal(entry, &item) == nil {
+ decoded = append(decoded, item)
+ }
+ }
+ value.Field(i).Set(reflect.ValueOf(decoded))
+ default:
+ return request, fmt.Errorf("unsupported parsed attribute view field %s", name)
+ }
+ if err != nil {
+ return request, err
+ }
+ }
+ return request, nil
+}
diff --git a/kernel/apicontract/av_requests.go b/kernel/apicontract/av_requests.go
new file mode 100644
index 0000000000..7d2956d050
--- /dev/null
+++ b/kernel/apicontract/av_requests.go
@@ -0,0 +1,323 @@
+package apicontract
+
+type RemoveUnusedAttributeViewRequest struct {
+ ID string `json:"id"`
+}
+
+type GetAttributeViewItemIDsByBoundIDsRequest struct {
+ AvID string `json:"avID"`
+ BlockIDs []string `json:"blockIDs"`
+}
+
+type GetAttributeViewBoundBlockIDsByItemIDsRequest struct {
+ AvID string `json:"avID"`
+ ItemIDs []string `json:"itemIDs"`
+}
+
+type GetAttributeViewItemStatusesRequest struct {
+ ID string `json:"id"`
+ BlockID string `json:"blockID" api:"optional,nullable,ignoretype"`
+ ViewID string `json:"viewID" api:"optional,nullable,ignoretype"`
+ Query string `json:"query" api:"optional,nullable,ignoretype"`
+ ItemIDs []string `json:"itemIDs"`
+}
+
+type GetAttributeViewAddingBlockDefaultValuesRequest struct {
+ AvID string `json:"avID"`
+ BlockID string `json:"blockID" api:"optional,nullable,ignoretype"`
+ ViewID string `json:"viewID" api:"optional,nullable"`
+ GroupID string `json:"groupID" api:"optional,nullable"`
+ PreviousID string `json:"previousID" api:"optional,nullable"`
+ AddingBlockID string `json:"addingBlockID" api:"optional,nullable"`
+}
+
+type BatchReplaceAttributeViewBlocksRequest struct {
+ AvID string `json:"avID"`
+ IsDetached bool `json:"isDetached"`
+ OldNew []map[string]string `json:"oldNew"`
+}
+
+type SetAttrViewGroupRequest struct {
+ AvID string `json:"avID"`
+ BlockID string `json:"blockID"`
+ Group AVViewGroup `json:"group"`
+ IgnoreRows bool `json:"ignoreRows" api:"optional,nullable"`
+}
+
+type SetAttrViewFiltersRequest struct {
+ AvID string `json:"avID"`
+ BlockID string `json:"blockID"`
+ Data []*AVViewFilter `json:"data"`
+}
+
+type SetAttrViewContextFilterRequest struct {
+ AvID string `json:"avID"`
+ BlockID string `json:"blockID"`
+ KeyID string `json:"keyID" api:"optional,nullable,ignoretype"`
+}
+
+type SetAttrViewSortsRequest struct {
+ AvID string `json:"avID"`
+ BlockID string `json:"blockID"`
+ Data []*AVViewSort `json:"data"`
+}
+
+type ChangeAttrViewLayoutRequest struct {
+ BlockID string `json:"blockID"`
+ AvID string `json:"avID"`
+ LayoutType string `json:"layoutType"`
+}
+
+type DuplicateAttributeViewBlockRequest struct {
+ AvID string `json:"avID"`
+}
+
+type GetAttributeViewKeysByAvIDRequest struct {
+ AvID string `json:"avID"`
+}
+
+type GetAttributeViewKeysByIDRequest struct {
+ AvID string `json:"avID"`
+ KeyIDs []string `json:"keyIDs"`
+ KeyIDsError error `json:"-"`
+}
+
+type GetMirrorDatabaseBlocksRequest struct {
+ AvID string `json:"avID"`
+}
+
+type SetDatabaseBlockViewRequest struct {
+ ID string `json:"id"`
+ ViewID string `json:"viewID"`
+ AvID string `json:"avID"`
+}
+
+type GetAttributeViewPrimaryKeyValuesRequest struct {
+ ID string `json:"id"`
+ Page *float64 `json:"page" api:"optional,nullable"`
+ PageSize *float64 `json:"pageSize" api:"optional,nullable"`
+ Keyword string `json:"keyword" api:"optional,nullable"`
+ BlockIDs []string `json:"blockIDs" api:"optional,nullable,filterstrings"`
+}
+
+type GetAttributeViewRelationCandidatesRequest struct {
+ AvID string `json:"avID" api:"optional,nullable,ignoretype"`
+ KeyID string `json:"keyID" api:"optional,nullable,ignoretype"`
+ ID string `json:"id" api:"optional,nullable,ignoretype"`
+ Keyword string `json:"keyword" api:"optional,nullable"`
+ Page *float64 `json:"page" api:"optional,nullable"`
+ PageSize *float64 `json:"pageSize" api:"optional,nullable"`
+ SelectedBlockIDs []string `json:"selectedBlockIDs" api:"optional,nullable,filterstrings"`
+}
+
+type AppendAttributeViewDetachedBlocksWithValuesRequest struct {
+ AvID string `json:"avID"`
+ BlocksValues [][]*AVValue `json:"blocksValues"`
+}
+
+type AddAttributeViewBlocksRequest struct {
+ AvID string `json:"avID"`
+ BlockID string `json:"blockID" api:"optional,nullable"`
+ ViewID string `json:"viewID" api:"optional,nullable"`
+ GroupID string `json:"groupID" api:"optional,nullable"`
+ PreviousID string `json:"previousID" api:"optional,nullable"`
+ Srcs []AVBlockSource `json:"srcs"`
+ IgnoreDefaultFill bool `json:"ignoreDefaultFill" api:"optional,nullable"`
+}
+
+type RemoveAttributeViewBlocksRequest struct {
+ AvID string `json:"avID"`
+ SrcIDs []string `json:"srcIDs"`
+}
+
+type AddAttributeViewKeyRequest struct {
+ AvID string `json:"avID"`
+ BlockID string `json:"blockID" api:"optional,nullable,ignoretype"`
+ KeyID string `json:"keyID"`
+ KeyName string `json:"keyName"`
+ KeyType string `json:"keyType"`
+ KeyIcon string `json:"keyIcon"`
+ PreviousKeyID string `json:"previousKeyID"`
+}
+
+type RemoveAttributeViewKeyRequest struct {
+ AvID string `json:"avID"`
+ KeyID string `json:"keyID"`
+ RemoveRelationDest bool `json:"removeRelationDest" api:"optional,nullable"`
+}
+
+type SortAttributeViewViewKeyRequest struct {
+ AvID string `json:"avID"`
+ ViewID string `json:"viewID" api:"optional,nullable"`
+ KeyID string `json:"keyID"`
+ PreviousKeyID string `json:"previousKeyID"`
+}
+
+type SortAttributeViewKeyRequest struct {
+ AvID string `json:"avID"`
+ KeyID string `json:"keyID"`
+ PreviousKeyID string `json:"previousKeyID"`
+}
+
+type GetAttributeViewFilterSortRequest struct {
+ ID string `json:"id"`
+ BlockID string `json:"blockID"`
+}
+
+type SearchAttributeViewRollupDestKeysRequest struct {
+ AvID string `json:"avID"`
+ Keyword string `json:"keyword"`
+}
+
+type SearchAttributeViewRelationKeyRequest struct {
+ AvID string `json:"avID"`
+ Keyword string `json:"keyword"`
+}
+
+type GetAttributeViewRequest struct {
+ ID string `json:"id"`
+}
+
+type GetAttributeViewPasteRowsRequest struct {
+ AvID string `json:"avID" api:"trim"`
+ BlockID string `json:"blockID" api:"trim"`
+ ViewID string `json:"viewID" api:"optional,nullable"`
+ GroupID string `json:"groupID" api:"optional,nullable"`
+ Query string `json:"query" api:"optional,nullable"`
+ StartItemID string `json:"startItemID" api:"trim"`
+ Count float64 `json:"count"`
+}
+
+type GetAttributeViewFieldViewsRequest struct {
+ AvID string `json:"avID" api:"trim"`
+ KeyID string `json:"keyID" api:"trim"`
+}
+
+type CreateAttributeViewItemRequest struct {
+ AvID string `json:"avID"`
+ BlockID string `json:"blockID"`
+ ViewID string `json:"viewID" api:"optional,nullable"`
+ TemplateID string `json:"templateID" api:"optional,nullable"`
+ PreviousID string `json:"previousID" api:"optional,nullable"`
+ GroupID string `json:"groupID" api:"optional,nullable"`
+ App string `json:"app" api:"optional,nullable"`
+ Session string `json:"session" api:"optional,nullable"`
+}
+
+type CreateAttributeViewItemWithMarkdownRequest struct {
+ AvID string `json:"avID" api:"trim"`
+ BlockID string `json:"blockID" api:"trim"`
+ ViewID string `json:"viewID" api:"optional,nullable"`
+ TemplateID string `json:"templateID" api:"trim"`
+ PreviousID string `json:"previousID" api:"optional,nullable"`
+ GroupID string `json:"groupID" api:"optional,nullable"`
+ Title string `json:"title" api:"trim"`
+ Markdown string `json:"markdown"`
+ Tags string `json:"tags" api:"optional,nullable"`
+ WithMath bool `json:"withMath" api:"optional,nullable"`
+ ClippingHref string `json:"clippingHref" api:"optional,nullable"`
+ ListDocTree bool `json:"listDocTree" api:"optional,nullable"`
+ App string `json:"app" api:"optional,nullable"`
+ Session string `json:"session" api:"optional,nullable"`
+}
+
+type CreateAttributeViewItemDocsRequest struct {
+ AvID string `json:"avID"`
+ BlockID string `json:"blockID"`
+ SaveMode string `json:"saveMode"`
+ ItemIDs []string `json:"itemIDs" api:"filterstrings"`
+ App string `json:"app" api:"optional,nullable"`
+ Session string `json:"session" api:"optional,nullable"`
+}
+
+type SearchAttributeViewRequest struct {
+ Keyword string `json:"keyword"`
+ AvID string `json:"avID" api:"optional,nullable"`
+ BlockID string `json:"blockID" api:"optional,nullable"`
+ Excludes []string `json:"excludes" api:"optional,nullable"`
+ IncludeViewMatches bool `json:"includeViewMatches" api:"optional,nullable"`
+}
+
+type RenderSnapshotAttributeViewRequest struct {
+ Snapshot string `json:"snapshot"`
+ ID string `json:"id"`
+ BlockID string `json:"blockID" api:"optional,nullable,ignoretype"`
+ ViewID string `json:"viewID" api:"optional,nullable,ignoretype"`
+ CarrierViewID string `json:"carrierViewID" api:"optional,nullable,ignoretype"`
+}
+
+type RenderHistoryAttributeViewRequest struct {
+ ID string `json:"id"`
+ Created string `json:"created"`
+ BlockID string `json:"blockID" api:"optional,nullable"`
+ ViewID string `json:"viewID" api:"optional,nullable"`
+ CarrierViewID string `json:"carrierViewID" api:"optional,nullable,ignoretype"`
+ Page *float64 `json:"page" api:"optional,nullable"`
+ PageSize *float64 `json:"pageSize" api:"optional,nullable"`
+ Query string `json:"query" api:"optional,nullable"`
+ GroupPaging map[string]*AVGroupPaging `json:"groupPaging" api:"optional,nullable"`
+}
+
+type RenderAttributeViewRequest struct {
+ ID string `json:"id"`
+ BlockID string `json:"blockID" api:"optional,nullable"`
+ ViewID string `json:"viewID" api:"optional,nullable"`
+ Page *float64 `json:"page" api:"optional,nullable"`
+ PageSize *float64 `json:"pageSize" api:"optional,nullable"`
+ Query string `json:"query" api:"optional,nullable"`
+ GroupPaging map[string]*AVGroupPaging `json:"groupPaging" api:"optional,nullable"`
+ InitialLayout string `json:"initialLayout" api:"optional,nullable,ignoretype"`
+ CreateIfNotExist *bool `json:"createIfNotExist" api:"optional,nullable"`
+ IgnoreRows bool `json:"ignoreRows" api:"optional,nullable"`
+ TargetItemID string `json:"targetItemID" api:"optional,nullable"`
+ TargetGroupID string `json:"targetGroupID" api:"optional,nullable"`
+}
+
+type GetCurrentAttrViewImagesRequest struct {
+ ID string `json:"id"`
+ BlockID string `json:"blockID" api:"optional,nullable,ignoretype"`
+ ViewID string `json:"viewID" api:"optional,nullable"`
+ Query string `json:"query" api:"optional,nullable"`
+}
+
+type GetAttributeViewKeysRequest struct {
+ ID string `json:"id" api:"optional,nullable,ignoretype"`
+ AvID string `json:"avID" api:"optional,nullable,ignoretype"`
+ ItemID string `json:"itemID" api:"optional,nullable,ignoretype"`
+ ValueID string `json:"valueID" api:"optional,nullable,ignoretype"`
+}
+
+type GetAttributeViewSearchTargetRequest struct {
+ ID string `json:"id" api:"optional,nullable,ignoretype"`
+ Keywords []string `json:"keywords" api:"optional,nullable,filterstrings"`
+}
+
+type GetAttributeViewBacklinksRequest struct {
+ ID string `json:"id" api:"optional,nullable,ignoretype"`
+ AvID string `json:"avID" api:"optional,nullable,ignoretype"`
+ ItemID string `json:"itemID" api:"optional,nullable,ignoretype"`
+ ValueID string `json:"valueID" api:"optional,nullable,ignoretype"`
+}
+
+type SetAttributeViewBlockAttrRequest struct {
+ AvID string `json:"avID"`
+ KeyID string `json:"keyID"`
+ ItemID *string `json:"itemID" api:"optional,nullable"`
+ RowID *string `json:"rowID" api:"optional,nullable"`
+ Value AVValuePatch `json:"value"`
+}
+
+type BatchSetAttributeViewBlockAttrsRequest struct {
+ AvID string `json:"avID"`
+ Values []AVCellUpdate `json:"values"`
+}
+
+type GetAttributeViewRowSortRequest struct {
+ AvID string `json:"avID" api:"optional,nullable"`
+ BlockID string `json:"blockID" api:"optional,nullable"`
+ ViewID string `json:"viewID" api:"optional,nullable"`
+ GroupID string `json:"groupID" api:"optional,nullable"`
+ ItemIDs []string `json:"itemIDs" api:"optional,nullable"`
+ PreviousID string `json:"previousID" api:"optional,nullable"`
+ NextID string `json:"nextID" api:"optional,nullable"`
+}
diff --git a/kernel/apicontract/av_response.go b/kernel/apicontract/av_response.go
new file mode 100644
index 0000000000..878f50ff74
--- /dev/null
+++ b/kernel/apicontract/av_response.go
@@ -0,0 +1,147 @@
+package apicontract
+
+type AVIDData struct {
+ ID string `json:"id"`
+}
+type AVPathsData struct {
+ Paths []string `json:"paths"`
+}
+type AVValuesData struct {
+ Values map[string]*AVValue `json:"values"`
+}
+type AVValueData struct {
+ Value *AVValue `json:"value"`
+}
+type AVDuplicateData struct {
+ AvID string `json:"avID"`
+ BlockID string `json:"blockID"`
+}
+type AVContextFilterData struct {
+ ContextFilter *AVAttributeViewContextFilter `json:"contextFilter"`
+}
+type AVPrimaryValuesData struct {
+ Name string `json:"name"`
+ BlockIDs []string `json:"blockIDs"`
+ Rows *AVKeyValues `json:"rows"`
+ Total int `json:"total"`
+}
+type AVRelationCandidatesData struct {
+ Name string `json:"name"`
+ BlockIDs []string `json:"blockIDs"`
+ CustomColors []*AVAttributeViewCustomColor `json:"customColors"`
+ NotebookID string `json:"notebookID"`
+ Columns []*AVTableColumn `json:"columns"`
+ SelectedRows []*AVTableRow `json:"selectedRows"`
+ Rows []*AVTableRow `json:"rows"`
+ Total int `json:"total"`
+}
+type AVFilterSortData struct {
+ Filters []*AVViewFilter `json:"filters"`
+ Sorts []*AVViewSort `json:"sorts"`
+}
+type AVKeysData struct {
+ Keys []*AVKey `json:"keys"`
+}
+type AVData struct {
+ Av *AVAttributeViewData `json:"av"`
+}
+type AVPasteRowsData struct {
+ View *AVTable `json:"view"`
+ InferableKeyIDs []string `json:"inferableKeyIDs"`
+}
+type AVFieldViewsData struct {
+ Views []*AVAttributeViewFieldView `json:"views"`
+}
+type AVSearchData struct {
+ Results []*AVAvSearchResult `json:"results"`
+}
+type AVArchiveRenderData struct {
+ Name string `json:"name"`
+ ID string `json:"id"`
+ CustomColors []*AVAttributeViewCustomColor `json:"customColors"`
+ ColorOrder []string `json:"colorOrder"`
+ UsedCustomColorIndexes []int `json:"usedCustomColorIndexes"`
+ ViewType string `json:"viewType" api:"enum=table|gallery|kanban"`
+ ViewID string `json:"viewID"`
+ Views []*AVViewData `json:"views"`
+ View AVViewInstance `json:"view"`
+ IsMirror bool `json:"isMirror"`
+ NewItemTemplates []*AVNewItemTemplate `json:"newItemTemplates"`
+ DefaultTemplateID string `json:"defaultTemplateID"`
+}
+type AVRenderData struct {
+ AVArchiveRenderData
+ ContextFilter *AVAttributeViewContextFilter `json:"contextFilter"`
+ ContextFilterFields []*AVAttributeViewContextFilterField `json:"contextFilterFields"`
+ Target *AVAttributeViewRenderTarget `json:"target,omitempty"`
+}
+type AVViewNotFound struct {
+ Error string `json:"error" api:"const=\"viewNotFound\""`
+}
+type AVUnavailableNotebook struct {
+ UnavailableNotebook bool `json:"unavailableNotebook" api:"const=true"`
+}
+type AVGroupPaging struct {
+ Page *float64 `json:"page" api:"optional"`
+ PageSize *float64 `json:"pageSize" api:"optional"`
+}
+type AVBlockSource struct {
+ ID string `json:"id" api:"optional,nullable"`
+ ItemID *string `json:"itemID" api:"optional"`
+ Content *string `json:"content" api:"optional"`
+ IsDetached bool `json:"isDetached"`
+}
+type AVCellUpdate struct {
+ KeyID string `json:"keyID"`
+ ItemID *string `json:"itemID" api:"optional"`
+ RowID *string `json:"rowID" api:"optional"`
+ Value *AVValuePatch `json:"value" api:"optional"`
+}
+type AVRowOrder struct {
+ ItemIDs []string `json:"itemIDs"`
+ Groups map[string][]string `json:"groups"`
+ Sorts []*AVViewSort `json:"sorts"`
+}
+type AVRowOrderChange struct {
+ RowOrder *AVRowOrder `json:"rowOrder"`
+ Expected *AVRowOrder `json:"expected"`
+ ValidateGroup *string `json:"validateGroup,omitempty"`
+}
+type AVRowSortPreview struct {
+ Conflict bool `json:"conflict"`
+ DoOperations []*AVRowSortOperation `json:"doOperations"`
+ UndoOperations []*AVRowSortOperation `json:"undoOperations"`
+}
+
+type AVRowSortOperation struct {
+ Action string `json:"action" api:"const=\"sortAttrViewRow\""`
+ Data *AVRowOrderChange `json:"data"`
+ ID string `json:"id"`
+ RootID string `json:"rootID"`
+ ParentID string `json:"parentID"`
+ PreviousID string `json:"previousID"`
+ NextID string `json:"nextID"`
+ RetData Null `json:"retData"`
+ BlockIDs []string `json:"blockIDs"`
+ BlockID string `json:"blockID"`
+ DeckID string `json:"deckID"`
+ AvID string `json:"avID"`
+ SrcIDs []string `json:"srcIDs"`
+ Srcs Null `json:"srcs"`
+ IsDetached bool `json:"isDetached"`
+ Name string `json:"name"`
+ Typ string `json:"type" api:"const=\"\""`
+ Format string `json:"format"`
+ KeyID string `json:"keyID"`
+ RowID string `json:"rowID"`
+ IsTwoWay bool `json:"isTwoWay"`
+ BackRelationKeyID string `json:"backRelationKeyID"`
+ RemoveDest bool `json:"removeDest"`
+ Layout string `json:"layout"`
+ GroupID string `json:"groupID"`
+ TargetGroupID string `json:"targetGroupID"`
+ ViewID string `json:"viewID"`
+ ViewIDs []string `json:"viewIDs,omitempty"`
+ IgnoreDefaultFill bool `json:"ignoreDefaultFill"`
+ Context map[string]string `json:"context"`
+}
diff --git a/kernel/apicontract/av_test.go b/kernel/apicontract/av_test.go
new file mode 100644
index 0000000000..d57831f65c
--- /dev/null
+++ b/kernel/apicontract/av_test.go
@@ -0,0 +1,112 @@
+package apicontract
+
+import (
+ "encoding/json"
+ "reflect"
+ "strings"
+ "testing"
+)
+
+func TestAVRequestCompatibility(t *testing.T) {
+ group, err := SetAttrViewGroup.Decode(strings.NewReader(`{"avID":" av ","blockID":" block ","group":{"FIELD":"key","method":2,"unknown":true},"ignoreRows":"ignored"}`))
+ if err != nil || group.AvID != " av " || group.BlockID != " block " || group.Group.Field != "key" || group.Group.Method != 2 || group.IgnoreRows {
+ t.Fatalf("group compatibility: %+v %v", group, err)
+ }
+ filters, err := SetAttrViewFilters.Decode(strings.NewReader(`{"avID":"av","blockID":"block","data":[{"COLUMN":"key","value":{"text":{"content":"a"}}},null]}`))
+ if err != nil || len(filters.Data) != 2 || filters.Data[0].Column != "key" || filters.Data[1] != nil {
+ t.Fatalf("filter compatibility: %+v %v", filters, err)
+ }
+ request, err := GetAttributeViewPrimaryKeyValues.Decode(strings.NewReader(`{"id":" av ","page":2.9,"pageSize":-1.9,"blockIDs":["a",null,3,"","b"]}`))
+ if err != nil || int(*request.Page) != 2 || int(*request.PageSize) != -1 || !reflect.DeepEqual(request.BlockIDs, []string{"a", "", "b"}) {
+ t.Fatalf("pagination compatibility: %+v %v", request, err)
+ }
+ search, err := SearchAttributeView.Decode(strings.NewReader(`{"keyword":"x","includeViewMatches":23}`))
+ if err != nil || search.IncludeViewMatches {
+ t.Fatalf("ignored boolean: %+v %v", search, err)
+ }
+ for _, body := range []string{`{"avID":"a","blockIDs":[null]}`, `{"avID":"a","blockIDs":[1]}`} {
+ if _, err := GetAttributeViewItemIDsByBoundIDs.Decode(strings.NewReader(body)); err == nil {
+ t.Fatalf("invalid ID array accepted: %s", body)
+ }
+ }
+}
+
+func TestAVValuePatchPresence(t *testing.T) {
+ for _, patch := range []string{`{}`, `{"text":{}}`, `{"text":{"content":""}}`, `{"text":null}`, `{"TEXT":{"CONTENT":"x"},"unknown":{"keep":true}}`} {
+ request, err := SetAttributeViewBlockAttr.Decode(strings.NewReader(`{"avID":"av","keyID":"key","itemID":"item","value":` + patch + `}`))
+ if err != nil {
+ t.Fatal(err)
+ }
+ actual, err := json.Marshal(request.Value)
+ if err != nil {
+ t.Fatal(err)
+ }
+ var expectedValue, actualValue any
+ if err = json.Unmarshal([]byte(patch), &expectedValue); err != nil {
+ t.Fatal(err)
+ }
+ if err = json.Unmarshal(actual, &actualValue); err != nil {
+ t.Fatal(err)
+ }
+ if !reflect.DeepEqual(expectedValue, actualValue) {
+ t.Fatalf("patch changed: %s -> %s", patch, actual)
+ }
+ }
+ request, err := BatchSetAttributeViewBlockAttrs.Decode(strings.NewReader(`{"avID":"av","values":[{"keyID":"key","itemID":"item","value":{"text":{}}},{"keyID":"key","value":null}]}`))
+ if err != nil || len(request.Values) != 2 || request.Values[1].Value != nil {
+ t.Fatalf("batch null compatibility: %+v %v", request, err)
+ }
+ encoded, err := json.Marshal(request.Values[0].Value)
+ if err != nil || string(encoded) != `{"text":{}}` {
+ t.Fatalf("batch patch changed: %s %v", encoded, err)
+ }
+ if _, err := SetAttributeViewBlockAttr.Decode(strings.NewReader(`{"avID":"av","keyID":"key","value":{"number":{"content":"invalid"}}}`)); err == nil {
+ t.Fatal("invalid fixed value structure accepted")
+ }
+}
+
+func TestAVResponseSchemas(t *testing.T) {
+ bundle, err := BuildBundle()
+ if err != nil {
+ t.Fatal(err)
+ }
+ for _, test := range []struct{ path, body string }{
+ {"/api/av/getAttributeViewAddingBlockDefaultValues", `{"code":0,"msg":"","data":{"values":{"key":{"text":{"content":"x"}}}}}`},
+ {"/api/av/getAttributeViewAddingBlockDefaultValues", `{"code":0,"msg":"","data":{"values":null}}`},
+ {"/api/av/renderAttributeView", `{"code":-1,"msg":"missing","data":{"error":"viewNotFound"}}`},
+ {"/api/av/createAttributeViewItem", `{"code":1,"msg":"","data":{"unavailableNotebook":true}}`},
+ {"/api/av/createAttributeViewItemDocs", `{"code":1,"msg":"","data":{"unavailableNotebook":true}}`},
+ {"/api/av/getAttributeViewRowSort", `{"code":0,"msg":"","data":{"conflict":false,"doOperations":[],"undoOperations":[]}}`},
+ } {
+ if err = bundle.ValidateResponse("POST", test.path, []byte(test.body)); err != nil {
+ t.Fatalf("%s: %v", test.path, err)
+ }
+ }
+ if err = bundle.ValidateResponse("POST", "/api/av/getAttributeViewAddingBlockDefaultValues", []byte(`{"code":0,"msg":"","data":{"values":[]}}`)); err == nil {
+ t.Fatal("incorrect default values array accepted")
+ }
+}
+
+func TestAVParsedRequestErrors(t *testing.T) {
+ for _, test := range []struct{ body, message string }{
+ {`{"avID":null}`, "Field [avID] is required"},
+ {`{"avID":1}`, "Field [avID] should be of type [String]"},
+ {`{"avID":"a","blockID":"b","saveMode":"subDoc","itemIDs":{}}`, "Field [itemIDs] should be of type [Array]"},
+ } {
+ _, err := CreateAttributeViewItemDocs.Decode(strings.NewReader(test.body))
+ if err == nil || err.Error() != test.message {
+ t.Fatalf("parsed field response: %s %v", test.body, err)
+ }
+ }
+ row, err := GetAttributeViewRowSort.Decode(strings.NewReader(`{"AVID":" av ","ITEMIDS":[null,"x"]}`))
+ if err != nil || row.AvID != " av " || !reflect.DeepEqual(row.ItemIDs, []string{"", "x"}) {
+ t.Fatalf("row struct binding: %+v %v", row, err)
+ }
+ if _, err = GetAttributeViewRowSort.Decode(strings.NewReader("{")); err == nil || err.Error() != "unexpected EOF" {
+ t.Fatalf("row parse error changed: %v", err)
+ }
+ keys, err := GetAttributeViewKeysByID.Decode(strings.NewReader(`{"avID":"av","keyIDs":[null]}`))
+ if err != nil || keys.KeyIDsError == nil {
+ t.Fatalf("key ID validation was not deferred: %+v %v", keys, err)
+ }
+}
diff --git a/kernel/apicontract/av_types.go b/kernel/apicontract/av_types.go
new file mode 100644
index 0000000000..13e8c5cf24
--- /dev/null
+++ b/kernel/apicontract/av_types.go
@@ -0,0 +1,664 @@
+package apicontract
+
+type AVTable struct {
+ *AVBaseInstance
+ Columns []*AVTableColumn `json:"columns" api:"optional,nullable"`
+ Rows []*AVTableRow `json:"rows" api:"optional,nullable"`
+ RowCount int `json:"rowCount" api:"optional,nullable"`
+}
+
+type AVBaseInstance struct {
+ ID string `json:"id" api:"optional,nullable"`
+ Icon string `json:"icon" api:"optional,nullable"`
+ Name string `json:"name" api:"optional,nullable"`
+ Desc string `json:"desc" api:"optional,nullable"`
+ HideAttrViewName bool `json:"hideAttrViewName" api:"optional,nullable"`
+ Filters []*AVViewFilter `json:"filters" api:"optional,nullable"`
+ Sorts []*AVViewSort `json:"sorts" api:"optional,nullable"`
+ Group *AVViewGroup `json:"group" api:"optional,nullable"`
+ PageSize int `json:"pageSize" api:"optional,nullable"`
+ ShowIcon bool `json:"showIcon" api:"optional,nullable"`
+ WrapField bool `json:"wrapField" api:"optional,nullable"`
+ GroupKey *AVKey `json:"groupKey,omitempty" api:"optional,nullable"`
+ GroupValue *AVValue `json:"groupValue,omitempty" api:"optional,nullable"`
+ Groups []AVViewInstance `json:"groups,omitempty" api:"optional,nullable"`
+ GroupCalc *AVGroupCalc `json:"groupCalc,omitempty" api:"optional,nullable"`
+ GroupFolded bool `json:"groupFolded" api:"optional,nullable"`
+ GroupHidden int `json:"groupHidden" api:"optional,nullable"`
+}
+
+type AVViewFilter struct {
+ Column string `json:"column" api:"optional,nullable"`
+ ValueSource string `json:"valueSource,omitempty" api:"optional,nullable,enum=stored|rendered"`
+ Qualifier string `json:"quantifier,omitempty" api:"optional,nullable"`
+ Operator string `json:"operator" api:"optional,nullable,enum=|=|!=|>|>=|<|<=|Contains|Does not contains|Contains any item|Does not contain any item|Is empty|Is not empty|Starts with|Ends with|Is between|Is true|Is false"`
+ Value *AVValue `json:"value" api:"optional,nullable"`
+ RelativeDate *AVRelativeDate `json:"relativeDate,omitempty" api:"optional,nullable"`
+ RelativeDate2 *AVRelativeDate `json:"relativeDate2,omitempty" api:"optional,nullable"`
+ DateEndpoint string `json:"dateEndpoint,omitempty" api:"optional,nullable,enum=start|end"`
+ Combination string `json:"combination,omitempty" api:"optional,nullable,enum=and|or"`
+ Filters []*AVViewFilter `json:"filters,omitempty" api:"optional,nullable"`
+}
+
+type AVValue struct {
+ ID string `json:"id,omitempty" api:"optional,nullable"`
+ KeyID string `json:"keyID,omitempty" api:"optional,nullable"`
+ BlockID string `json:"blockID,omitempty" api:"optional,nullable"`
+ Type string `json:"type,omitempty" api:"optional,nullable,enum=block|text|number|date|select|mSelect|url|email|phone|mAsset|template|created|updated|checkbox|relation|rollup|lineNumber"`
+ IsDetached bool `json:"isDetached,omitempty" api:"optional,nullable"`
+ CreatedAt int64 `json:"createdAt,omitempty" api:"optional,nullable"`
+ UpdatedAt int64 `json:"updatedAt,omitempty" api:"optional,nullable"`
+ Block *AVValueBlock `json:"block,omitempty" api:"optional,nullable"`
+ Text *AVValueText `json:"text,omitempty" api:"optional,nullable"`
+ Number *AVValueNumber `json:"number,omitempty" api:"optional,nullable"`
+ Date *AVValueDate `json:"date,omitempty" api:"optional,nullable"`
+ MSelect []*AVValueSelect `json:"mSelect,omitempty" api:"optional,nullable"`
+ URL *AVValueURL `json:"url,omitempty" api:"optional,nullable"`
+ Email *AVValueEmail `json:"email,omitempty" api:"optional,nullable"`
+ Phone *AVValuePhone `json:"phone,omitempty" api:"optional,nullable"`
+ MAsset []*AVValueAsset `json:"mAsset,omitempty" api:"optional,nullable"`
+ Template *AVValueTemplate `json:"template,omitempty" api:"optional,nullable"`
+ Created *AVValueCreated `json:"created,omitempty" api:"optional,nullable"`
+ Updated *AVValueUpdated `json:"updated,omitempty" api:"optional,nullable"`
+ Checkbox *AVValueCheckbox `json:"checkbox,omitempty" api:"optional,nullable"`
+ Relation *AVValueRelation `json:"relation,omitempty" api:"optional,nullable"`
+ Rollup *AVValueRollup `json:"rollup,omitempty" api:"optional,nullable"`
+ RenderedContent string `json:"renderedContent,omitempty" api:"optional,nullable"`
+}
+
+type AVValueBlock struct {
+ ID string `json:"id,omitempty" api:"optional,nullable"`
+ Icon string `json:"icon,omitempty" api:"optional,nullable"`
+ Content string `json:"content" api:"optional,nullable"`
+ RefSubtype string `json:"refSubtype,omitempty" api:"optional,nullable,enum=s|d"`
+ Created int64 `json:"created,omitempty" api:"optional,nullable"`
+ Updated int64 `json:"updated,omitempty" api:"optional,nullable"`
+}
+
+type AVValueText struct {
+ Content string `json:"content" api:"optional,nullable"`
+ Rich *AVValueTextRich `json:"rich,omitempty" api:"optional,nullable"`
+}
+
+type AVValueTextRich struct {
+ Spec int `json:"spec" api:"optional,nullable,const=1"`
+ Format string `json:"format" api:"optional,nullable,enum=kramdown"`
+ Content string `json:"content" api:"optional,nullable"`
+}
+
+type AVValueNumber struct {
+ Content float64 `json:"content" api:"optional,nullable"`
+ IsNotEmpty bool `json:"isNotEmpty" api:"optional,nullable"`
+ Format string `json:"format" api:"optional,nullable"`
+ FormattedContent string `json:"formattedContent" api:"optional,nullable"`
+}
+
+type AVValueDate struct {
+ Content int64 `json:"content" api:"optional,nullable"`
+ IsNotEmpty bool `json:"isNotEmpty" api:"optional,nullable"`
+ HasEndDate bool `json:"hasEndDate" api:"optional,nullable"`
+ IsNotTime bool `json:"isNotTime" api:"optional,nullable"`
+ Content2 int64 `json:"content2" api:"optional,nullable"`
+ IsNotEmpty2 bool `json:"isNotEmpty2" api:"optional,nullable"`
+ FormattedContent string `json:"formattedContent" api:"optional,nullable"`
+}
+
+type AVValueSelect struct {
+ Content string `json:"content" api:"optional,nullable"`
+ Color string `json:"color" api:"optional,nullable"`
+ ResolvedColor *AVAttributeViewColor `json:"resolvedColor,omitempty" api:"optional,nullable"`
+}
+
+type AVAttributeViewColor struct {
+ Light AVAttributeViewColorTheme `json:"light" api:"optional,nullable"`
+ Dark AVAttributeViewColorTheme `json:"dark" api:"optional,nullable"`
+}
+
+type AVAttributeViewColorTheme struct {
+ Color string `json:"color" api:"optional,nullable"`
+ BackgroundColor string `json:"backgroundColor" api:"optional,nullable"`
+}
+
+type AVValueURL struct {
+ Content string `json:"content" api:"optional,nullable"`
+}
+
+type AVValueEmail struct {
+ Content string `json:"content" api:"optional,nullable"`
+}
+
+type AVValuePhone struct {
+ Content string `json:"content" api:"optional,nullable"`
+}
+
+type AVValueAsset struct {
+ Type string `json:"type" api:"optional,nullable,enum=file|image"`
+ Name string `json:"name" api:"optional,nullable"`
+ Content string `json:"content" api:"optional,nullable"`
+}
+
+type AVValueTemplate struct {
+ Content string `json:"content" api:"optional,nullable"`
+}
+
+type AVValueCreated struct {
+ Content int64 `json:"content" api:"optional,nullable"`
+ IsNotEmpty bool `json:"isNotEmpty" api:"optional,nullable"`
+ Content2 int64 `json:"content2" api:"optional,nullable"`
+ IsNotEmpty2 bool `json:"isNotEmpty2" api:"optional,nullable"`
+ FormattedContent string `json:"formattedContent" api:"optional,nullable"`
+}
+
+type AVValueUpdated struct {
+ Content int64 `json:"content" api:"optional,nullable"`
+ IsNotEmpty bool `json:"isNotEmpty" api:"optional,nullable"`
+ Content2 int64 `json:"content2" api:"optional,nullable"`
+ IsNotEmpty2 bool `json:"isNotEmpty2" api:"optional,nullable"`
+ FormattedContent string `json:"formattedContent" api:"optional,nullable"`
+}
+
+type AVValueCheckbox struct {
+ Checked bool `json:"checked" api:"optional,nullable"`
+}
+
+type AVValueRelation struct {
+ BlockIDs []string `json:"blockIDs" api:"optional,nullable"`
+ Contents []*AVValue `json:"contents" api:"optional,nullable"`
+}
+
+type AVValueRollup struct {
+ Contents []*AVValue `json:"contents" api:"optional,nullable"`
+}
+
+type AVRelativeDate struct {
+ Count int `json:"count" api:"optional,nullable"`
+ Unit int `json:"unit" api:"optional,nullable"`
+ Direction int `json:"direction" api:"optional,nullable"`
+}
+
+type AVViewSort struct {
+ Column string `json:"column" api:"optional,nullable"`
+ ValueSource string `json:"valueSource,omitempty" api:"optional,nullable,enum=stored|rendered"`
+ Order string `json:"order" api:"optional,nullable,enum=|ASC|DESC"`
+ DateEndpoint string `json:"dateEndpoint,omitempty" api:"optional,nullable,enum=start|end"`
+}
+
+type AVViewGroup struct {
+ Field string `json:"field" api:"optional,nullable"`
+ ValueSource string `json:"valueSource,omitempty" api:"optional,nullable,enum=stored|rendered"`
+ Method int `json:"method" api:"optional,nullable"`
+ Range *AVGroupRange `json:"range,omitempty" api:"optional,nullable"`
+ Order int `json:"order" api:"optional,nullable"`
+ HideEmpty bool `json:"hideEmpty" api:"optional,nullable"`
+}
+
+type AVGroupRange struct {
+ NumStart float64 `json:"numStart" api:"optional,nullable"`
+ NumEnd float64 `json:"numEnd" api:"optional,nullable"`
+ NumStep float64 `json:"numStep" api:"optional,nullable"`
+}
+
+type AVKey struct {
+ ID string `json:"id" api:"optional,nullable"`
+ Name string `json:"name" api:"optional,nullable"`
+ Type string `json:"type" api:"optional,nullable,enum=block|text|number|date|select|mSelect|url|email|phone|mAsset|template|created|updated|checkbox|relation|rollup|lineNumber"`
+ Icon string `json:"icon" api:"optional,nullable"`
+ Desc string `json:"desc" api:"optional,nullable"`
+ Options []*AVSelectOption `json:"options,omitempty" api:"optional,nullable"`
+ NumberFormat string `json:"numberFormat" api:"optional,nullable"`
+ DateFormat string `json:"dateFormat,omitempty" api:"optional,nullable,enum=|full|month-day-year|day-month-year|year-month-day"`
+ Template string `json:"template" api:"optional,nullable"`
+ RenderTemplate string `json:"renderTemplate,omitempty" api:"optional,nullable"`
+ Relation *AVRelation `json:"relation,omitempty" api:"optional,nullable"`
+ Rollup *AVRollup `json:"rollup,omitempty" api:"optional,nullable"`
+ Date *AVDate `json:"date,omitempty" api:"optional,nullable"`
+ Created *AVCreated `json:"created,omitempty" api:"optional,nullable"`
+ Updated *AVUpdated `json:"updated,omitempty" api:"optional,nullable"`
+}
+
+type AVSelectOption struct {
+ Name string `json:"name" api:"optional,nullable"`
+ Color string `json:"color" api:"optional,nullable"`
+ Desc string `json:"desc" api:"optional,nullable"`
+ ResolvedColor *AVAttributeViewColor `json:"resolvedColor,omitempty" api:"optional,nullable"`
+}
+
+type AVRelation struct {
+ AvID string `json:"avID" api:"optional,nullable"`
+ IsTwoWay bool `json:"isTwoWay" api:"optional,nullable"`
+ BackKeyID string `json:"backKeyID" api:"optional,nullable"`
+ CandidateFilters []*AVViewFilter `json:"candidateFilters,omitempty" api:"optional,nullable"`
+}
+
+type AVRollup struct {
+ RelationKeyID string `json:"relationKeyID" api:"optional,nullable"`
+ KeyID string `json:"keyID" api:"optional,nullable"`
+ Calc *AVRollupCalc `json:"calc" api:"optional,nullable"`
+ Filters []*AVViewFilter `json:"filters,omitempty" api:"optional,nullable"`
+}
+
+type AVRollupCalc struct {
+ Operator string `json:"operator" api:"optional,nullable"`
+ Result *AVValue `json:"result" api:"optional,nullable"`
+}
+
+type AVDate struct {
+ AutoFillNow bool `json:"autoFillNow" api:"optional,nullable"`
+ FillSpecificTime bool `json:"fillSpecificTime" api:"optional,nullable"`
+}
+
+type AVCreated struct {
+ IncludeTime bool `json:"includeTime" api:"optional,nullable"`
+}
+
+type AVUpdated struct {
+ IncludeTime bool `json:"includeTime" api:"optional,nullable"`
+}
+
+type AVGroupCalc struct {
+ Field string `json:"field" api:"optional,nullable"`
+ FieldCalc *AVFieldCalc `json:"calc" api:"optional,nullable"`
+}
+
+type AVFieldCalc struct {
+ Operator string `json:"operator" api:"optional,nullable"`
+ Result *AVValue `json:"result" api:"optional,nullable"`
+ Template string `json:"template,omitempty" api:"optional,nullable"`
+}
+
+type AVTableColumn struct {
+ *AVBaseInstanceField
+ Pin bool `json:"pin" api:"optional,nullable"`
+ Width string `json:"width" api:"optional,nullable"`
+ Align string `json:"align" api:"optional,nullable,enum=|left|center|right"`
+}
+
+type AVBaseInstanceField struct {
+ ID string `json:"id" api:"optional,nullable"`
+ Name string `json:"name" api:"optional,nullable"`
+ Type string `json:"type" api:"optional,nullable,enum=block|text|number|date|select|mSelect|url|email|phone|mAsset|template|created|updated|checkbox|relation|rollup|lineNumber"`
+ Icon string `json:"icon" api:"optional,nullable"`
+ Wrap bool `json:"wrap" api:"optional,nullable"`
+ Hidden bool `json:"hidden" api:"optional,nullable"`
+ Desc string `json:"desc" api:"optional,nullable"`
+ Calc *AVFieldCalc `json:"calc" api:"optional,nullable"`
+ Options []*AVSelectOption `json:"options,omitempty" api:"optional,nullable"`
+ NumberFormat string `json:"numberFormat" api:"optional,nullable"`
+ DateFormat string `json:"dateFormat,omitempty" api:"optional,nullable,enum=|full|month-day-year|day-month-year|year-month-day"`
+ Template string `json:"template" api:"optional,nullable"`
+ RenderTemplate string `json:"renderTemplate,omitempty" api:"optional,nullable"`
+ Relation *AVRelation `json:"relation,omitempty" api:"optional,nullable"`
+ Rollup *AVRollup `json:"rollup,omitempty" api:"optional,nullable"`
+ Date *AVDate `json:"date,omitempty" api:"optional,nullable"`
+ Created *AVCreated `json:"created,omitempty" api:"optional,nullable"`
+ Updated *AVUpdated `json:"updated,omitempty" api:"optional,nullable"`
+}
+
+type AVTableRow struct {
+ ID string `json:"id" api:"optional,nullable"`
+ Cells []*AVTableCell `json:"cells" api:"optional,nullable"`
+}
+
+type AVTableCell struct {
+ *AVBaseValue
+ Color string `json:"color" api:"optional,nullable"`
+ BgColor string `json:"bgColor" api:"optional,nullable"`
+}
+
+type AVBaseValue struct {
+ ID string `json:"id" api:"optional,nullable"`
+ Value *AVValue `json:"value" api:"optional,nullable"`
+ ValueType string `json:"valueType" api:"optional,nullable,enum=block|text|number|date|select|mSelect|url|email|phone|mAsset|template|created|updated|checkbox|relation|rollup|lineNumber"`
+}
+
+type AVGallery struct {
+ *AVBaseInstance
+ CoverFrom int `json:"coverFrom" api:"optional,nullable"`
+ CoverFromAssetKeyID string `json:"coverFromAssetKeyID,omitempty" api:"optional,nullable"`
+ CardAspectRatio int `json:"cardAspectRatio" api:"optional,nullable"`
+ CardAspectRatioValue float64 `json:"cardAspectRatioValue" api:"optional,nullable"`
+ CardSize int `json:"cardSize" api:"optional,nullable"`
+ CardWidth int `json:"cardWidth" api:"optional,nullable"`
+ CardLayout int `json:"cardLayout" api:"optional,nullable"`
+ FitImage bool `json:"fitImage" api:"optional,nullable"`
+ DisplayFieldName bool `json:"displayFieldName" api:"optional,nullable"`
+ DisplayEmptyFields bool `json:"displayEmptyFields" api:"optional,nullable"`
+ Fields []*AVGalleryField `json:"fields" api:"optional,nullable"`
+ Cards []*AVGalleryCard `json:"cards" api:"optional,nullable"`
+ CardCount int `json:"cardCount" api:"optional,nullable"`
+}
+
+type AVGalleryField struct {
+ *AVBaseInstanceField
+ FullRow bool `json:"fullRow" api:"optional,nullable"`
+}
+
+type AVGalleryCard struct {
+ ID string `json:"id" api:"optional,nullable"`
+ Values []*AVGalleryFieldValue `json:"values" api:"optional,nullable"`
+ CoverURL string `json:"coverURL" api:"optional,nullable"`
+ CoverContent string `json:"coverContent" api:"optional,nullable"`
+ CoverPosition *AVCardCoverPosition `json:"coverPosition,omitempty" api:"optional,nullable"`
+}
+
+type AVGalleryFieldValue struct {
+ *AVBaseValue
+}
+
+type AVCardCoverPosition struct {
+ Image string `json:"image" api:"optional,nullable"`
+ X float64 `json:"x" api:"optional,nullable"`
+ Y float64 `json:"y" api:"optional,nullable"`
+}
+
+type AVKanban struct {
+ *AVBaseInstance
+ CoverFrom int `json:"coverFrom" api:"optional,nullable"`
+ CoverFromAssetKeyID string `json:"coverFromAssetKeyID,omitempty" api:"optional,nullable"`
+ CardAspectRatio int `json:"cardAspectRatio" api:"optional,nullable"`
+ CardAspectRatioValue float64 `json:"cardAspectRatioValue" api:"optional,nullable"`
+ CardSize int `json:"cardSize" api:"optional,nullable"`
+ CardWidth int `json:"cardWidth" api:"optional,nullable"`
+ CardLayout int `json:"cardLayout" api:"optional,nullable"`
+ FitImage bool `json:"fitImage" api:"optional,nullable"`
+ DisplayFieldName bool `json:"displayFieldName" api:"optional,nullable"`
+ DisplayEmptyFields bool `json:"displayEmptyFields" api:"optional,nullable"`
+ FillColBackgroundColor bool `json:"fillColBackgroundColor" api:"optional,nullable"`
+ Fields []*AVKanbanField `json:"fields" api:"optional,nullable"`
+ Cards []*AVKanbanCard `json:"cards" api:"optional,nullable"`
+ CardCount int `json:"cardCount" api:"optional,nullable"`
+}
+
+type AVKanbanField struct {
+ *AVBaseInstanceField
+ FullRow bool `json:"fullRow" api:"optional,nullable"`
+}
+
+type AVKanbanCard struct {
+ ID string `json:"id" api:"optional,nullable"`
+ Values []*AVKanbanFieldValue `json:"values" api:"optional,nullable"`
+ CoverURL string `json:"coverURL" api:"optional,nullable"`
+ CoverContent string `json:"coverContent" api:"optional,nullable"`
+ CoverPosition *AVCardCoverPosition `json:"coverPosition,omitempty" api:"optional,nullable"`
+}
+
+type AVKanbanFieldValue struct {
+ *AVBaseValue
+}
+
+type AVKeyValues struct {
+ Key *AVKey `json:"key" api:"optional,nullable"`
+ Values []*AVValue `json:"values,omitempty" api:"optional,nullable"`
+}
+
+type AVViewData struct {
+ ID string `json:"id" api:"optional,nullable"`
+ Icon string `json:"icon" api:"optional,nullable"`
+ Name string `json:"name" api:"optional,nullable"`
+ Desc string `json:"desc" api:"optional,nullable"`
+ HideAttrViewName bool `json:"hideAttrViewName" api:"optional,nullable"`
+ Type string `json:"type" api:"optional,nullable,enum=table|gallery|kanban"`
+ PageSize int `json:"pageSize" api:"optional,nullable"`
+}
+
+type AVNewItemTemplate struct {
+ ID string `json:"id" api:"optional,nullable"`
+ Name string `json:"name" api:"optional,nullable"`
+ Icon string `json:"icon,omitempty" api:"optional,nullable"`
+ TargetType string `json:"targetType" api:"optional,nullable,enum=detached|document"`
+ PrimaryKeyTemplate string `json:"primaryKeyTemplate,omitempty" api:"optional,nullable"`
+ FieldValues map[string]*AVNewItemFieldValue `json:"fieldValues,omitempty" api:"optional,nullable"`
+ SaveLocation *AVNewItemSaveLocation `json:"saveLocation,omitempty" api:"optional,nullable"`
+ ContentTemplatePath string `json:"contentTemplatePath,omitempty" api:"optional,nullable"`
+ HideInFileTree bool `json:"hideInFileTree,omitempty" api:"optional,nullable"`
+}
+
+type AVNewItemFieldValue struct {
+ Mode string `json:"mode" api:"optional,nullable,enum=static|currentTime"`
+ Value *AVValue `json:"value,omitempty" api:"optional,nullable"`
+}
+
+type AVNewItemSaveLocation struct {
+ BoxID string `json:"boxID,omitempty" api:"optional,nullable"`
+ PathTemplate string `json:"pathTemplate" api:"optional,nullable"`
+}
+
+type AVAttributeViewContextFilter struct {
+ Spec int `json:"spec" api:"optional,nullable,const=1"`
+ KeyID string `json:"keyID" api:"optional,nullable"`
+}
+
+type AVAttributeViewContextFilterField struct {
+ ID string `json:"id" api:"optional,nullable"`
+ Name string `json:"name" api:"optional,nullable"`
+ Icon string `json:"icon" api:"optional,nullable"`
+ TargetAvID string `json:"targetAvID" api:"optional,nullable"`
+}
+
+type AVAttributeViewData struct {
+ Spec int `json:"spec" api:"optional,nullable"`
+ ID string `json:"id" api:"optional,nullable"`
+ Name string `json:"name" api:"optional,nullable"`
+ CustomColors []*AVAttributeViewCustomColor `json:"customColors" api:"optional,nullable"`
+ KeyValues []*AVKeyValues `json:"keyValues" api:"optional,nullable"`
+ KeyIDs []string `json:"keyIDs" api:"optional,nullable"`
+ ViewID string `json:"viewID" api:"optional,nullable"`
+ Views []*AVView `json:"views" api:"optional,nullable"`
+ NewItemTemplates []*AVNewItemTemplate `json:"newItemTemplates,omitempty" api:"optional,nullable"`
+ DefaultTemplateID string `json:"defaultTemplateID,omitempty" api:"optional,nullable"`
+ CardCoverPositions map[string]map[string]*AVCardCoverPosition `json:"cardCoverPositions,omitempty" api:"optional,nullable"`
+}
+
+type AVAttributeViewCustomColor struct {
+ Index int `json:"index" api:"optional,nullable"`
+ Hidden bool `json:"hidden,omitempty" api:"optional,nullable"`
+ AVAttributeViewColor
+}
+
+type AVView struct {
+ ID string `json:"id" api:"optional,nullable"`
+ Icon string `json:"icon" api:"optional,nullable"`
+ Name string `json:"name" api:"optional,nullable"`
+ HideAttrViewName bool `json:"hideAttrViewName" api:"optional,nullable"`
+ Desc string `json:"desc" api:"optional,nullable"`
+ Filters []*AVViewFilter `json:"filters,omitempty" api:"optional,nullable"`
+ Sorts []*AVViewSort `json:"sorts,omitempty" api:"optional,nullable"`
+ PageSize int `json:"pageSize" api:"optional,nullable"`
+ LayoutType string `json:"type" api:"optional,nullable,enum=table|gallery|kanban"`
+ Table *AVLayoutTable `json:"table,omitempty" api:"optional,nullable"`
+ Gallery *AVLayoutGallery `json:"gallery,omitempty" api:"optional,nullable"`
+ Kanban *AVLayoutKanban `json:"kanban,omitempty" api:"optional,nullable"`
+ ItemIDs []string `json:"itemIds,omitempty" api:"optional,nullable"`
+ Group *AVViewGroup `json:"group,omitempty" api:"optional,nullable"`
+ GroupCreated int64 `json:"groupCreated" api:"optional,nullable"`
+ Groups []*AVView `json:"groups,omitempty" api:"optional,nullable"`
+ GroupItemIDs []string `json:"groupItemIds" api:"optional,nullable"`
+ GroupCalc *AVGroupCalc `json:"groupCalc,omitempty" api:"optional,nullable"`
+ GroupKey *AVKey `json:"groupKey,omitempty" api:"optional,nullable"`
+ GroupVal *AVValue `json:"groupVal,omitempty" api:"optional,nullable"`
+ GroupFolded bool `json:"groupFolded" api:"optional,nullable"`
+ GroupHidden int `json:"groupHidden" api:"optional,nullable"`
+ GroupSort int `json:"groupSort" api:"optional,nullable"`
+}
+
+type AVLayoutTable struct {
+ *AVBaseLayout
+ Columns []*AVViewTableColumn `json:"columns" api:"optional,nullable"`
+ RowIDs []string `json:"rowIds" api:"optional,nullable"`
+}
+
+type AVBaseLayout struct {
+ Spec int `json:"spec" api:"optional,nullable"`
+ ID string `json:"id" api:"optional,nullable"`
+ ShowIcon bool `json:"showIcon" api:"optional,nullable"`
+ WrapField bool `json:"wrapField" api:"optional,nullable"`
+ Filters []*AVViewFilter `json:"filters,omitempty" api:"optional,nullable"`
+ Sorts []*AVViewSort `json:"sorts,omitempty" api:"optional,nullable"`
+ PageSize int `json:"pageSize,omitempty" api:"optional,nullable"`
+}
+
+type AVViewTableColumn struct {
+ *AVBaseField
+ Pin bool `json:"pin" api:"optional,nullable"`
+ Width string `json:"width" api:"optional,nullable"`
+ Align string `json:"align,omitempty" api:"optional,nullable,enum=|left|center|right"`
+ Calc *AVFieldCalc `json:"calc,omitempty" api:"optional,nullable"`
+}
+
+type AVBaseField struct {
+ ID string `json:"id" api:"optional,nullable"`
+ Wrap bool `json:"wrap" api:"optional,nullable"`
+ Hidden bool `json:"hidden" api:"optional,nullable"`
+ Desc string `json:"desc,omitempty" api:"optional,nullable"`
+ Calc *AVFieldCalc `json:"calc,omitempty" api:"optional,nullable"`
+}
+
+type AVLayoutGallery struct {
+ *AVBaseLayout
+ CoverFrom int `json:"coverFrom" api:"optional,nullable"`
+ CoverFromAssetKeyID string `json:"coverFromAssetKeyID,omitempty" api:"optional,nullable"`
+ CardAspectRatio int `json:"cardAspectRatio" api:"optional,nullable"`
+ CardAspectRatioValue float64 `json:"cardAspectRatioValue" api:"optional,nullable"`
+ CardSize int `json:"cardSize" api:"optional,nullable"`
+ CardWidth int `json:"cardWidth" api:"optional,nullable"`
+ CardLayout int `json:"cardLayout" api:"optional,nullable"`
+ FitImage bool `json:"fitImage" api:"optional,nullable"`
+ DisplayFieldName bool `json:"displayFieldName" api:"optional,nullable"`
+ DisplayEmptyFields bool `json:"displayEmptyFields" api:"optional,nullable"`
+ CardFields []*AVViewGalleryCardField `json:"fields" api:"optional,nullable"`
+ CardIDs []string `json:"cardIds" api:"optional,nullable"`
+}
+
+type AVViewGalleryCardField struct {
+ *AVBaseField
+ FullRow bool `json:"fullRow" api:"optional,nullable"`
+}
+
+type AVLayoutKanban struct {
+ *AVBaseLayout
+ CoverFrom int `json:"coverFrom" api:"optional,nullable"`
+ CoverFromAssetKeyID string `json:"coverFromAssetKeyID,omitempty" api:"optional,nullable"`
+ CardAspectRatio int `json:"cardAspectRatio" api:"optional,nullable"`
+ CardAspectRatioValue float64 `json:"cardAspectRatioValue" api:"optional,nullable"`
+ CardSize int `json:"cardSize" api:"optional,nullable"`
+ CardWidth int `json:"cardWidth" api:"optional,nullable"`
+ CardLayout int `json:"cardLayout" api:"optional,nullable"`
+ FitImage bool `json:"fitImage" api:"optional,nullable"`
+ DisplayFieldName bool `json:"displayFieldName" api:"optional,nullable"`
+ DisplayEmptyFields bool `json:"displayEmptyFields" api:"optional,nullable"`
+ FillColBackgroundColor bool `json:"fillColBackgroundColor" api:"optional,nullable"`
+ Fields []*AVViewKanbanField `json:"fields" api:"optional,nullable"`
+}
+
+type AVViewKanbanField struct {
+ *AVBaseField
+ FullRow bool `json:"fullRow" api:"optional,nullable"`
+}
+
+type AVAttributeViewFieldView struct {
+ ID string `json:"id" api:"optional,nullable"`
+ Icon string `json:"icon" api:"optional,nullable"`
+ Name string `json:"name" api:"optional,nullable"`
+ Type string `json:"type" api:"optional,nullable,enum=table|gallery|kanban"`
+ Hidden bool `json:"hidden" api:"optional,nullable"`
+}
+
+type AVAvSearchResult struct {
+ AvID string `json:"avID" api:"optional,nullable"`
+ AvName string `json:"avName" api:"optional,nullable"`
+ ViewName string `json:"viewName" api:"optional,nullable"`
+ ViewID string `json:"viewID" api:"optional,nullable"`
+ ViewLayout string `json:"viewLayout" api:"optional,nullable,enum=|table|gallery|kanban"`
+ BlockID string `json:"blockID" api:"optional,nullable"`
+ HPath string `json:"hPath" api:"optional,nullable"`
+ Matched bool `json:"matched,omitempty" api:"optional,nullable"`
+ Children []*AVAvSearchResult `json:"children,omitempty" api:"optional,nullable"`
+}
+
+type AVBlockAttributeViewKeys struct {
+ AvID string `json:"avID" api:"optional,nullable"`
+ AvName string `json:"avName" api:"optional,nullable"`
+ CustomColors []*AVAttributeViewCustomColor `json:"customColors" api:"optional,nullable"`
+ BlockIDs []string `json:"blockIDs" api:"optional,nullable"`
+ KeyValues []*AVKeyValues `json:"keyValues" api:"optional,nullable"`
+ ItemPositions []*AVAttributeViewItemPosition `json:"itemPositions" api:"optional,nullable"`
+}
+
+type AVAttributeViewItemPosition struct {
+ ViewID string `json:"viewID" api:"optional,nullable"`
+ PreviousID string `json:"previousID" api:"optional,nullable"`
+ Groups []*AVAttributeViewGroupItemPosition `json:"groups" api:"optional,nullable"`
+}
+
+type AVAttributeViewGroupItemPosition struct {
+ GroupID string `json:"groupID" api:"optional,nullable"`
+ PreviousID string `json:"previousID" api:"optional,nullable"`
+}
+
+type AVAttributeViewSearchTarget struct {
+ AvID string `json:"avID" api:"optional,nullable"`
+ DatabaseBlockID string `json:"databaseBlockID" api:"optional,nullable"`
+ NotebookID string `json:"notebookID" api:"optional,nullable"`
+ ViewID string `json:"viewID,omitempty" api:"optional,nullable"`
+ GroupID string `json:"groupID,omitempty" api:"optional,nullable"`
+ ItemID string `json:"itemID" api:"optional,nullable"`
+ ValueID string `json:"valueID" api:"optional,nullable"`
+ MatchedValueID string `json:"matchedValueID" api:"optional,nullable"`
+ MatchedKeyID string `json:"matchedKeyID" api:"optional,nullable"`
+ Title string `json:"title" api:"optional,nullable"`
+ BoundBlockID string `json:"boundBlockID" api:"optional,nullable"`
+ IsDetached bool `json:"isDetached" api:"optional,nullable"`
+ Keywords []string `json:"keywords" api:"optional,nullable"`
+}
+
+type AVAttributeViewBacklinks struct {
+ Total int `json:"total" api:"optional,nullable"`
+ Items []*AVAttributeViewBacklink `json:"items" api:"optional,nullable"`
+}
+
+type AVAttributeViewBacklink struct {
+ AvID string `json:"avID" api:"optional,nullable"`
+ AvName string `json:"avName" api:"optional,nullable"`
+ BlockIDs []string `json:"blockIDs" api:"optional,nullable"`
+ DatabaseBlockID string `json:"databaseBlockID" api:"optional,nullable"`
+ BoxID string `json:"boxID" api:"optional,nullable"`
+ DatabasePath string `json:"databasePath" api:"optional,nullable"`
+ ItemID string `json:"itemID" api:"optional,nullable"`
+ ValueID string `json:"valueID" api:"optional,nullable"`
+ Title string `json:"title" api:"optional,nullable"`
+ Icon string `json:"icon" api:"optional,nullable"`
+ BoundBlockID string `json:"boundBlockID" api:"optional,nullable"`
+ IsDetached bool `json:"isDetached" api:"optional,nullable"`
+ Relations []*AVAttributeViewBacklinkRelation `json:"relations" api:"optional,nullable"`
+}
+
+type AVAttributeViewBacklinkRelation struct {
+ KeyID string `json:"keyID" api:"optional,nullable"`
+ KeyName string `json:"keyName" api:"optional,nullable"`
+ TargetAvID string `json:"targetAvID" api:"optional,nullable"`
+ TargetItemID string `json:"targetItemID" api:"optional,nullable"`
+}
+
+type AVAttributeViewRenderTarget struct {
+ Status string `json:"status" api:"optional,nullable,enum=visible|filtered|itemNotFound|groupHidden"`
+ ItemID string `json:"itemID" api:"optional,nullable"`
+ GroupID string `json:"groupID,omitempty" api:"optional,nullable"`
+ Index int `json:"index" api:"optional,nullable"`
+ Offset int `json:"offset" api:"optional,nullable"`
+ PageSize int `json:"pageSize" api:"optional,nullable"`
+}
+
+type AVCreateAttributeViewItemResult struct {
+ ItemID string `json:"itemID" api:"optional,nullable"`
+ BlockID string `json:"blockID" api:"optional,nullable"`
+ Content string `json:"content" api:"optional,nullable"`
+ IsDetached bool `json:"isDetached" api:"optional,nullable"`
+ Warnings []string `json:"warnings,omitempty" api:"optional,nullable"`
+}
+
+type AVCreateAttributeViewItemDocsResult struct {
+ ItemIDs []string `json:"itemIDs" api:"optional,nullable"`
+ BlockIDs []string `json:"blockIDs" api:"optional,nullable"`
+ SkippedItemIDs []string `json:"skippedItemIDs,omitempty" api:"optional,nullable"`
+ Warnings []string `json:"warnings,omitempty" api:"optional,nullable"`
+}
diff --git a/kernel/apicontract/av_union.go b/kernel/apicontract/av_union.go
new file mode 100644
index 0000000000..d6e12858ce
--- /dev/null
+++ b/kernel/apicontract/av_union.go
@@ -0,0 +1,184 @@
+package apicontract
+
+import (
+ "errors"
+ json "github.com/goccy/go-json"
+ "reflect"
+)
+
+// AVViewInstance 表示表格、画廊或看板及其递归分组实例。
+type AVViewInstance struct {
+ table *AVTable
+ gallery *AVGallery
+ kanban *AVKanban
+}
+
+func NewAVTableInstance(value *AVTable) AVViewInstance { return AVViewInstance{table: value} }
+func NewAVGalleryInstance(value *AVGallery) AVViewInstance { return AVViewInstance{gallery: value} }
+func NewAVKanbanInstance(value *AVKanban) AVViewInstance { return AVViewInstance{kanban: value} }
+
+func (value AVViewInstance) MarshalJSON() ([]byte, error) {
+ if value.table != nil {
+ return json.Marshal(value.table)
+ }
+ if value.gallery != nil {
+ return json.Marshal(value.gallery)
+ }
+ if value.kanban != nil {
+ return json.Marshal(value.kanban)
+ }
+ return nil, errors.New("attribute view instance is not set")
+}
+
+func avPayloadSchema(b *schemaBuilder, t reflect.Type, input bool) (*Schema, error) {
+ if t == reflect.TypeFor[*AVValuePatch]() {
+ schema, err := b.schema(reflect.TypeFor[AVValue](), input)
+ return nullable(schema), err
+ }
+ if t == reflect.TypeFor[AVValuePatch]() {
+ return b.schema(reflect.TypeFor[AVValue](), input)
+ }
+ switch t {
+ case reflect.TypeFor[AVTable](), reflect.TypeFor[AVTableColumn](), reflect.TypeFor[AVTableCell](),
+ reflect.TypeFor[AVGallery](), reflect.TypeFor[AVGalleryField](), reflect.TypeFor[AVGalleryFieldValue](),
+ reflect.TypeFor[AVKanban](), reflect.TypeFor[AVKanbanField](), reflect.TypeFor[AVKanbanFieldValue](),
+ reflect.TypeFor[AVLayoutTable](), reflect.TypeFor[AVViewTableColumn](), reflect.TypeFor[AVLayoutGallery](),
+ reflect.TypeFor[AVViewGalleryCardField](), reflect.TypeFor[AVLayoutKanban](), reflect.TypeFor[AVViewKanbanField]():
+ return avEmbeddedPayloadSchema(b, t, input)
+ }
+ var members []reflect.Type
+ switch t {
+ case reflect.TypeFor[AVViewInstance]():
+ members = []reflect.Type{reflect.TypeFor[AVTable](), reflect.TypeFor[AVGallery](), reflect.TypeFor[AVKanban]()}
+ case reflect.TypeFor[AVRenderResult]():
+ members = []reflect.Type{reflect.TypeFor[AVRenderData](), reflect.TypeFor[AVViewNotFound]()}
+ case reflect.TypeFor[AVCreateItemResult]():
+ members = []reflect.Type{reflect.TypeFor[AVCreateAttributeViewItemResult](), reflect.TypeFor[AVUnavailableNotebook]()}
+ case reflect.TypeFor[AVCreateItemDocsResult]():
+ members = []reflect.Type{reflect.TypeFor[AVCreateAttributeViewItemDocsResult](), reflect.TypeFor[AVUnavailableNotebook]()}
+ default:
+ return nil, nil
+ }
+ name := t.Name()
+ if _, ok := b.definitions[name]; ok {
+ return &Schema{Ref: "#/$defs/" + name}, nil
+ }
+ result := &Schema{}
+ b.definitions[name] = result
+ for _, member := range members {
+ schema, err := b.schema(member, input)
+ if err != nil {
+ return nil, err
+ }
+ result.AnyOf = append(result.AnyOf, schema)
+ }
+ return &Schema{Ref: "#/$defs/" + name}, nil
+}
+
+// avEmbeddedPayloadSchema 保留匿名基类指针为 nil 时省略整组字段的 JSON 行为。
+func avEmbeddedPayloadSchema(b *schemaBuilder, t reflect.Type, input bool) (*Schema, error) {
+ name := t.Name()
+ if _, ok := b.definitions[name]; ok {
+ return &Schema{Ref: "#/$defs/" + name}, nil
+ }
+ result := &Schema{}
+ b.definitions[name] = result
+ var base reflect.Type
+ var own []reflect.StructField
+ for i := 0; i < t.NumField(); i++ {
+ field := t.Field(i)
+ if field.Anonymous && field.Type.Kind() == reflect.Pointer {
+ base = field.Type.Elem()
+ } else {
+ own = append(own, field)
+ }
+ }
+ if base == nil {
+ return nil, errors.New("attribute view embedded base is missing")
+ }
+ for _, present := range []bool{true, false} {
+ fields := append([]reflect.StructField{}, own...)
+ if present {
+ for i := 0; i < base.NumField(); i++ {
+ field := base.Field(i)
+ shadowed := false
+ for _, child := range own {
+ if child.Name == field.Name {
+ shadowed = true
+ break
+ }
+ }
+ if !shadowed {
+ fields = append(fields, field)
+ }
+ }
+ }
+ object := &Schema{Type: "object", Properties: map[string]*Schema{}, AdditionalProperties: false}
+ if err := b.fields(object, reflect.StructOf(fields), input); err != nil {
+ return nil, err
+ }
+ result.AnyOf = append(result.AnyOf, object)
+ }
+ return &Schema{Ref: "#/$defs/" + name}, nil
+}
+
+type AVRenderResult struct {
+ success *AVRenderData
+ failure *AVViewNotFound
+}
+
+func NewAVRenderResult(value AVRenderData) AVRenderResult { return AVRenderResult{success: &value} }
+func NewAVRenderResultError(value AVViewNotFound) AVRenderResult {
+ return AVRenderResult{failure: &value}
+}
+func (value AVRenderResult) MarshalJSON() ([]byte, error) {
+ if value.success != nil {
+ return json.Marshal(value.success)
+ }
+ if value.failure != nil {
+ return json.Marshal(value.failure)
+ }
+ return nil, errors.New("attribute view response variant is not set")
+}
+
+type AVCreateItemResult struct {
+ success *AVCreateAttributeViewItemResult
+ failure *AVUnavailableNotebook
+}
+
+func NewAVCreateItemResult(value AVCreateAttributeViewItemResult) AVCreateItemResult {
+ return AVCreateItemResult{success: &value}
+}
+func NewAVCreateItemResultError(value AVUnavailableNotebook) AVCreateItemResult {
+ return AVCreateItemResult{failure: &value}
+}
+func (value AVCreateItemResult) MarshalJSON() ([]byte, error) {
+ if value.success != nil {
+ return json.Marshal(value.success)
+ }
+ if value.failure != nil {
+ return json.Marshal(value.failure)
+ }
+ return nil, errors.New("attribute view response variant is not set")
+}
+
+type AVCreateItemDocsResult struct {
+ success *AVCreateAttributeViewItemDocsResult
+ failure *AVUnavailableNotebook
+}
+
+func NewAVCreateItemDocsResult(value AVCreateAttributeViewItemDocsResult) AVCreateItemDocsResult {
+ return AVCreateItemDocsResult{success: &value}
+}
+func NewAVCreateItemDocsResultError(value AVUnavailableNotebook) AVCreateItemDocsResult {
+ return AVCreateItemDocsResult{failure: &value}
+}
+func (value AVCreateItemDocsResult) MarshalJSON() ([]byte, error) {
+ if value.success != nil {
+ return json.Marshal(value.success)
+ }
+ if value.failure != nil {
+ return json.Marshal(value.failure)
+ }
+ return nil, errors.New("attribute view response variant is not set")
+}
diff --git a/kernel/apicontract/av_value_patch.go b/kernel/apicontract/av_value_patch.go
new file mode 100644
index 0000000000..3d6ba181ba
--- /dev/null
+++ b/kernel/apicontract/av_value_patch.go
@@ -0,0 +1,21 @@
+package apicontract
+
+import "encoding/json"
+
+// AVValuePatch 保留字段省略和显式 null,使单元格更新能够合并现有值。
+type AVValuePatch struct{ raw json.RawMessage }
+
+func (value *AVValuePatch) UnmarshalJSON(data []byte) error {
+ var fields AVValue
+ if err := json.Unmarshal(data, &fields); err != nil {
+ return err
+ }
+ value.raw = append(value.raw[:0], data...)
+ return nil
+}
+func (value AVValuePatch) MarshalJSON() ([]byte, error) {
+ if len(value.raw) == 0 {
+ return []byte("null"), nil
+ }
+ return value.raw, nil
+}
diff --git a/kernel/apicontract/contracts.go b/kernel/apicontract/contracts.go
index db6aa06c7c..65e9790fc4 100644
--- a/kernel/apicontract/contracts.go
+++ b/kernel/apicontract/contracts.go
@@ -881,3 +881,51 @@ var AIAgentChat = define[AIAgentChatRequest, Null]("agentChat", "/api/ai/agent/c
var AIMCPOAuthCallback = define[EmptyRequest, BinaryContent]("mcpOAuthCallback", "/api/ai/mcp/oauth/callback/:flowID", NoBody, HTTPContentOptions(HTTPContentVariant{Status: 200, ContentType: "text/html"}, HTTPContentVariant{Status: 400, ContentType: "text/html"}, HTTPContentVariant{Status: 403, ContentType: "text/plain"}), "GET")
var AIGetSession = define[AISessionIDRequest, *AISession]("getSession", "/api/ai/agent/getSession", StructJSONBody, ResponseOptions{AdditionalErrorStatuses: []int{500}}, "POST")
var AISaveSession = define[AISession, AISessionSaveData]("saveSession", "/api/ai/agent/saveSession", StructJSONBody, ResponseOptions{DataOnError: true, AdditionalErrorStatuses: []int{400, 409, 500}}, "POST")
+
+var RemoveUnusedAttributeView = define[RemoveUnusedAttributeViewRequest, AVIDData]("removeUnusedAttributeView", "/api/av/removeUnusedAttributeView", JSONBody, ResponseOptions{}, "POST")
+var RemoveUnusedAttributeViews = define[EmptyRequest, AVPathsData]("removeUnusedAttributeViews", "/api/av/removeUnusedAttributeViews", NoBody, ResponseOptions{}, "POST")
+var GetUnusedAttributeViews = define[EmptyRequest, []*AssetUnusedItem]("getUnusedAttributeViews", "/api/av/getUnusedAttributeViews", NoBody, ResponseOptions{}, "POST")
+var GetAttributeViewItemIDsByBoundIDs = define[GetAttributeViewItemIDsByBoundIDsRequest, map[string]string]("getAttributeViewItemIDsByBoundIDs", "/api/av/getAttributeViewItemIDsByBoundIDs", JSONBody, ResponseOptions{}, "POST")
+var GetAttributeViewBoundBlockIDsByItemIDs = define[GetAttributeViewBoundBlockIDsByItemIDsRequest, map[string]string]("getAttributeViewBoundBlockIDsByItemIDs", "/api/av/getAttributeViewBoundBlockIDsByItemIDs", JSONBody, ResponseOptions{}, "POST")
+var GetAttributeViewItemStatuses = define[GetAttributeViewItemStatusesRequest, map[string]string]("getAttributeViewItemStatuses", "/api/av/getAttributeViewItemStatuses", JSONBody, ResponseOptions{}, "POST")
+var GetAttributeViewAddingBlockDefaultValues = define[GetAttributeViewAddingBlockDefaultValuesRequest, AVValuesData]("getAttributeViewAddingBlockDefaultValues", "/api/av/getAttributeViewAddingBlockDefaultValues", JSONBody, ResponseOptions{}, "POST")
+var BatchReplaceAttributeViewBlocks = define[BatchReplaceAttributeViewBlocksRequest, Null]("batchReplaceAttributeViewBlocks", "/api/av/batchReplaceAttributeViewBlocks", JSONBody, ResponseOptions{}, "POST")
+var SetAttrViewGroup = define[SetAttrViewGroupRequest, AVRenderResult]("setAttrViewGroup", "/api/av/setAttrViewGroup", JSONBody, ResponseOptions{DataOnError: true}, "POST")
+var SetAttrViewFilters = define[SetAttrViewFiltersRequest, Null]("setAttrViewFilters", "/api/av/setAttrViewFilters", JSONBody, ResponseOptions{}, "POST")
+var SetAttrViewContextFilter = define[SetAttrViewContextFilterRequest, AVContextFilterData]("setAttrViewContextFilter", "/api/av/setAttrViewContextFilter", JSONBody, ResponseOptions{}, "POST")
+var SetAttrViewSorts = define[SetAttrViewSortsRequest, Null]("setAttrViewSorts", "/api/av/setAttrViewSorts", JSONBody, ResponseOptions{}, "POST")
+var ChangeAttrViewLayout = define[ChangeAttrViewLayoutRequest, AVRenderResult]("changeAttrViewLayout", "/api/av/changeAttrViewLayout", JSONBody, ResponseOptions{DataOnError: true}, "POST")
+var DuplicateAttributeViewBlock = define[DuplicateAttributeViewBlockRequest, AVDuplicateData]("duplicateAttributeViewBlock", "/api/av/duplicateAttributeViewBlock", JSONBody, ResponseOptions{}, "POST")
+var GetAttributeViewKeysByAvID = define[GetAttributeViewKeysByAvIDRequest, []*AVKey]("getAttributeViewKeysByAvID", "/api/av/getAttributeViewKeysByAvID", JSONBody, ResponseOptions{}, "POST")
+var GetAttributeViewKeysByID = define[GetAttributeViewKeysByIDRequest, []*AVKey]("getAttributeViewKeysByID", "/api/av/getAttributeViewKeysByID", JSONBody, ResponseOptions{}, "POST")
+var GetMirrorDatabaseBlocks = define[GetMirrorDatabaseBlocksRequest, RefDefsData]("getMirrorDatabaseBlocks", "/api/av/getMirrorDatabaseBlocks", JSONBody, ResponseOptions{}, "POST")
+var SetDatabaseBlockView = define[SetDatabaseBlockViewRequest, Null]("setDatabaseBlockView", "/api/av/setDatabaseBlockView", JSONBody, ResponseOptions{}, "POST")
+var GetAttributeViewPrimaryKeyValues = define[GetAttributeViewPrimaryKeyValuesRequest, AVPrimaryValuesData]("getAttributeViewPrimaryKeyValues", "/api/av/getAttributeViewPrimaryKeyValues", JSONBody, ResponseOptions{}, "POST")
+var GetAttributeViewRelationCandidates = define[GetAttributeViewRelationCandidatesRequest, AVRelationCandidatesData]("getAttributeViewRelationCandidates", "/api/av/getAttributeViewRelationCandidates", JSONBody, ResponseOptions{}, "POST")
+var AppendAttributeViewDetachedBlocksWithValues = define[AppendAttributeViewDetachedBlocksWithValuesRequest, Null]("appendAttributeViewDetachedBlocksWithValues", "/api/av/appendAttributeViewDetachedBlocksWithValues", JSONBody, ResponseOptions{}, "POST")
+var AddAttributeViewBlocks = define[AddAttributeViewBlocksRequest, Null]("addAttributeViewBlocks", "/api/av/addAttributeViewBlocks", JSONBody, ResponseOptions{}, "POST")
+var RemoveAttributeViewBlocks = define[RemoveAttributeViewBlocksRequest, Null]("removeAttributeViewBlocks", "/api/av/removeAttributeViewBlocks", JSONBody, ResponseOptions{}, "POST")
+var AddAttributeViewKey = define[AddAttributeViewKeyRequest, Null]("addAttributeViewKey", "/api/av/addAttributeViewKey", JSONBody, ResponseOptions{}, "POST")
+var RemoveAttributeViewKey = define[RemoveAttributeViewKeyRequest, Null]("removeAttributeViewKey", "/api/av/removeAttributeViewKey", JSONBody, ResponseOptions{}, "POST")
+var SortAttributeViewViewKey = define[SortAttributeViewViewKeyRequest, Null]("sortAttributeViewViewKey", "/api/av/sortAttributeViewViewKey", JSONBody, ResponseOptions{}, "POST")
+var SortAttributeViewKey = define[SortAttributeViewKeyRequest, Null]("sortAttributeViewKey", "/api/av/sortAttributeViewKey", JSONBody, ResponseOptions{}, "POST")
+var GetAttributeViewFilterSort = define[GetAttributeViewFilterSortRequest, AVFilterSortData]("getAttributeViewFilterSort", "/api/av/getAttributeViewFilterSort", JSONBody, ResponseOptions{}, "POST")
+var SearchAttributeViewRollupDestKeys = define[SearchAttributeViewRollupDestKeysRequest, AVKeysData]("searchAttributeViewRollupDestKeys", "/api/av/searchAttributeViewRollupDestKeys", JSONBody, ResponseOptions{}, "POST")
+var SearchAttributeViewRelationKey = define[SearchAttributeViewRelationKeyRequest, AVKeysData]("searchAttributeViewRelationKey", "/api/av/searchAttributeViewRelationKey", JSONBody, ResponseOptions{}, "POST")
+var GetAttributeView = define[GetAttributeViewRequest, AVData]("getAttributeView", "/api/av/getAttributeView", JSONBody, ResponseOptions{}, "POST")
+var GetAttributeViewPasteRows = define[GetAttributeViewPasteRowsRequest, AVPasteRowsData]("getAttributeViewPasteRows", "/api/av/getAttributeViewPasteRows", JSONBody, ResponseOptions{}, "POST")
+var GetAttributeViewFieldViews = define[GetAttributeViewFieldViewsRequest, AVFieldViewsData]("getAttributeViewFieldViews", "/api/av/getAttributeViewFieldViews", JSONBody, ResponseOptions{}, "POST")
+var CreateAttributeViewItem = define[CreateAttributeViewItemRequest, AVCreateItemResult]("createAttributeViewItem", "/api/av/createAttributeViewItem", JSONBody, ResponseOptions{DataOnError: true, AdditionalCodes: []int{1}}, "POST")
+var CreateAttributeViewItemWithMarkdown = define[CreateAttributeViewItemWithMarkdownRequest, AVCreateItemResult]("createAttributeViewItemWithMarkdown", "/api/av/createAttributeViewItemWithMarkdown", JSONBody, ResponseOptions{DataOnError: true, AdditionalCodes: []int{1}}, "POST")
+var CreateAttributeViewItemDocs = define[CreateAttributeViewItemDocsRequest, AVCreateItemDocsResult]("createAttributeViewItemDocs", "/api/av/createAttributeViewItemDocs", JSONBody, ResponseOptions{DataOnError: true, AdditionalCodes: []int{1}}, "POST")
+var SearchAttributeView = define[SearchAttributeViewRequest, AVSearchData]("searchAttributeView", "/api/av/searchAttributeView", JSONBody, ResponseOptions{}, "POST")
+var RenderSnapshotAttributeView = define[RenderSnapshotAttributeViewRequest, AVArchiveRenderData]("renderSnapshotAttributeView", "/api/av/renderSnapshotAttributeView", JSONBody, ResponseOptions{}, "POST")
+var RenderHistoryAttributeView = define[RenderHistoryAttributeViewRequest, AVArchiveRenderData]("renderHistoryAttributeView", "/api/av/renderHistoryAttributeView", JSONBody, ResponseOptions{}, "POST")
+var RenderAttributeView = define[RenderAttributeViewRequest, AVRenderResult]("renderAttributeView", "/api/av/renderAttributeView", JSONBody, ResponseOptions{DataOnError: true, FastJSON: true}, "POST")
+var GetCurrentAttrViewImages = define[GetCurrentAttrViewImagesRequest, []string]("getCurrentAttrViewImages", "/api/av/getCurrentAttrViewImages", JSONBody, ResponseOptions{}, "POST")
+var GetAttributeViewKeys = define[GetAttributeViewKeysRequest, []*AVBlockAttributeViewKeys]("getAttributeViewKeys", "/api/av/getAttributeViewKeys", JSONBody, ResponseOptions{}, "POST")
+var GetAttributeViewSearchTarget = define[GetAttributeViewSearchTargetRequest, *AVAttributeViewSearchTarget]("getAttributeViewSearchTarget", "/api/av/getAttributeViewSearchTarget", JSONBody, ResponseOptions{}, "POST")
+var GetAttributeViewBacklinks = define[GetAttributeViewBacklinksRequest, *AVAttributeViewBacklinks]("getAttributeViewBacklinks", "/api/av/getAttributeViewBacklinks", JSONBody, ResponseOptions{}, "POST")
+var SetAttributeViewBlockAttr = define[SetAttributeViewBlockAttrRequest, AVValueData]("setAttributeViewBlockAttr", "/api/av/setAttributeViewBlockAttr", JSONBody, ResponseOptions{}, "POST")
+var BatchSetAttributeViewBlockAttrs = define[BatchSetAttributeViewBlockAttrsRequest, Null]("batchSetAttributeViewBlockAttrs", "/api/av/batchSetAttributeViewBlockAttrs", JSONBody, ResponseOptions{}, "POST")
+var GetAttributeViewRowSort = define[GetAttributeViewRowSortRequest, AVRowSortPreview]("getAttributeViewRowSort", "/api/av/getAttributeViewRowSort", StructJSONBody, ResponseOptions{}, "POST")
diff --git a/kernel/apicontract/legacy_routes.json b/kernel/apicontract/legacy_routes.json
index 56836dcfeb..29adb2ec8b 100644
--- a/kernel/apicontract/legacy_routes.json
+++ b/kernel/apicontract/legacy_routes.json
@@ -12,53 +12,6 @@
{"method":"GET","path":"/es/network/proxy","handler":"esProxy"},
{"method":"GET","path":"/ws/broadcast","handler":"broadcast"},
{"method":"GET","path":"/ws/network/proxy","handler":"wsProxy"},
- {"method":"POST","path":"/api/av/addAttributeViewBlocks","handler":"addAttributeViewBlocks"},
- {"method":"POST","path":"/api/av/addAttributeViewKey","handler":"addAttributeViewKey"},
- {"method":"POST","path":"/api/av/appendAttributeViewDetachedBlocksWithValues","handler":"appendAttributeViewDetachedBlocksWithValues"},
- {"method":"POST","path":"/api/av/batchReplaceAttributeViewBlocks","handler":"batchReplaceAttributeViewBlocks"},
- {"method":"POST","path":"/api/av/batchSetAttributeViewBlockAttrs","handler":"batchSetAttributeViewBlockAttrs"},
- {"method":"POST","path":"/api/av/changeAttrViewLayout","handler":"changeAttrViewLayout"},
- {"method":"POST","path":"/api/av/createAttributeViewItem","handler":"createAttributeViewItem"},
- {"method":"POST","path":"/api/av/createAttributeViewItemDocs","handler":"createAttributeViewItemDocs"},
- {"method":"POST","path":"/api/av/createAttributeViewItemWithMarkdown","handler":"createAttributeViewItemWithMarkdown"},
- {"method":"POST","path":"/api/av/duplicateAttributeViewBlock","handler":"duplicateAttributeViewBlock"},
- {"method":"POST","path":"/api/av/getAttributeView","handler":"getAttributeView"},
- {"method":"POST","path":"/api/av/getAttributeViewAddingBlockDefaultValues","handler":"getAttributeViewAddingBlockDefaultValues"},
- {"method":"POST","path":"/api/av/getAttributeViewBacklinks","handler":"getAttributeViewBacklinks"},
- {"method":"POST","path":"/api/av/getAttributeViewBoundBlockIDsByItemIDs","handler":"getAttributeViewBoundBlockIDsByItemIDs"},
- {"method":"POST","path":"/api/av/getAttributeViewFieldViews","handler":"getAttributeViewFieldViews"},
- {"method":"POST","path":"/api/av/getAttributeViewFilterSort","handler":"getAttributeViewFilterSort"},
- {"method":"POST","path":"/api/av/getAttributeViewItemIDsByBoundIDs","handler":"getAttributeViewItemIDsByBoundIDs"},
- {"method":"POST","path":"/api/av/getAttributeViewItemStatuses","handler":"getAttributeViewItemStatuses"},
- {"method":"POST","path":"/api/av/getAttributeViewKeys","handler":"getAttributeViewKeys"},
- {"method":"POST","path":"/api/av/getAttributeViewKeysByAvID","handler":"getAttributeViewKeysByAvID"},
- {"method":"POST","path":"/api/av/getAttributeViewKeysByID","handler":"getAttributeViewKeysByID"},
- {"method":"POST","path":"/api/av/getAttributeViewPasteRows","handler":"getAttributeViewPasteRows"},
- {"method":"POST","path":"/api/av/getAttributeViewPrimaryKeyValues","handler":"getAttributeViewPrimaryKeyValues"},
- {"method":"POST","path":"/api/av/getAttributeViewRelationCandidates","handler":"getAttributeViewRelationCandidates"},
- {"method":"POST","path":"/api/av/getAttributeViewRowSort","handler":"getAttributeViewRowSort"},
- {"method":"POST","path":"/api/av/getAttributeViewSearchTarget","handler":"getAttributeViewSearchTarget"},
- {"method":"POST","path":"/api/av/getCurrentAttrViewImages","handler":"getCurrentAttrViewImages"},
- {"method":"POST","path":"/api/av/getMirrorDatabaseBlocks","handler":"getMirrorDatabaseBlocks"},
- {"method":"POST","path":"/api/av/getUnusedAttributeViews","handler":"getUnusedAttributeViews"},
- {"method":"POST","path":"/api/av/removeAttributeViewBlocks","handler":"removeAttributeViewBlocks"},
- {"method":"POST","path":"/api/av/removeAttributeViewKey","handler":"removeAttributeViewKey"},
- {"method":"POST","path":"/api/av/removeUnusedAttributeView","handler":"removeUnusedAttributeView"},
- {"method":"POST","path":"/api/av/removeUnusedAttributeViews","handler":"removeUnusedAttributeViews"},
- {"method":"POST","path":"/api/av/renderAttributeView","handler":"renderAttributeView"},
- {"method":"POST","path":"/api/av/renderHistoryAttributeView","handler":"renderHistoryAttributeView"},
- {"method":"POST","path":"/api/av/renderSnapshotAttributeView","handler":"renderSnapshotAttributeView"},
- {"method":"POST","path":"/api/av/searchAttributeView","handler":"searchAttributeView"},
- {"method":"POST","path":"/api/av/searchAttributeViewRelationKey","handler":"searchAttributeViewRelationKey"},
- {"method":"POST","path":"/api/av/searchAttributeViewRollupDestKeys","handler":"searchAttributeViewRollupDestKeys"},
- {"method":"POST","path":"/api/av/setAttrViewContextFilter","handler":"setAttrViewContextFilter"},
- {"method":"POST","path":"/api/av/setAttrViewFilters","handler":"setAttrViewFilters"},
- {"method":"POST","path":"/api/av/setAttrViewGroup","handler":"setAttrViewGroup"},
- {"method":"POST","path":"/api/av/setAttrViewSorts","handler":"setAttrViewSorts"},
- {"method":"POST","path":"/api/av/setAttributeViewBlockAttr","handler":"setAttributeViewBlockAttr"},
- {"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/extension/copy","handler":"extensionCopy"},
{"method":"POST","path":"/api/network/forwardProxy","handler":"forwardProxy"},
{"method":"POST","path":"/api/system/addCustomEmoji","handler":"addCustomEmoji"},
diff --git a/kernel/apicontract/schema.go b/kernel/apicontract/schema.go
index a2bc2a09b3..65bb50f372 100644
--- a/kernel/apicontract/schema.go
+++ b/kernel/apicontract/schema.go
@@ -88,6 +88,9 @@ func nonnullable(schema *Schema) *Schema {
}
func (b *schemaBuilder) schema(t reflect.Type, input bool) (*Schema, error) {
+ if schema, err := avPayloadSchema(b, t, input); schema != nil || err != nil {
+ return schema, err
+ }
if t == reflect.TypeFor[*AISession]() {
schema, err := aiSessionPayloadSchema(b, input)
if err != nil {
diff --git a/kernel/apicontract/schema.json b/kernel/apicontract/schema.json
index c91f720784..0f75822423 100644
--- a/kernel/apicontract/schema.json
+++ b/kernel/apicontract/schema.json
@@ -5249,33 +5249,115 @@
],
"additionalProperties": false
},
- "AccountLoginData": {
+ "AVArchiveRenderData": {
"type": "object",
"properties": {
- "needCaptcha": {
+ "colorOrder": {
"anyOf": [
{
- "type": "string"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "token": {
+ "customColors": {
"anyOf": [
{
- "type": "string"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVAttributeViewCustomColor"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
},
- "userName": {
+ "defaultTemplateID": {
+ "type": "string"
+ },
+ "id": {
+ "type": "string"
+ },
+ "isMirror": {
+ "type": "boolean"
+ },
+ "name": {
+ "type": "string"
+ },
+ "newItemTemplates": {
"anyOf": [
{
- "type": "string"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVNewItemTemplate"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "usedCustomColorIndexes": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "integer"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "view": {
+ "$ref": "#/$defs/AVViewInstance"
+ },
+ "viewID": {
+ "type": "string"
+ },
+ "viewType": {
+ "type": "string",
+ "enum": [
+ "table",
+ "gallery",
+ "kanban"
+ ]
+ },
+ "views": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVViewData"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
@@ -5284,106 +5366,198 @@
}
},
"required": [
- "needCaptcha",
- "token",
- "userName"
+ "colorOrder",
+ "customColors",
+ "defaultTemplateID",
+ "id",
+ "isMirror",
+ "name",
+ "newItemTemplates",
+ "usedCustomColorIndexes",
+ "view",
+ "viewID",
+ "viewType",
+ "views"
],
"additionalProperties": false
},
- "AccountLoginRequestInput": {
+ "AVAttributeViewBacklink": {
"type": "object",
"properties": {
- "captcha": {
+ "avID": {
"type": "string"
},
- "cloudRegion": {
- "type": "number"
+ "avName": {
+ "type": "string"
},
- "userName": {
+ "blockIDs": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "boundBlockID": {
"type": "string"
},
- "userPassword": {
+ "boxID": {
"type": "string"
- }
- },
- "required": [
- "captcha",
- "cloudRegion",
- "userName",
- "userPassword"
- ],
- "additionalProperties": false
- },
- "ActivationCodeRequestInput": {
- "type": "object",
- "properties": {
- "data": {
+ },
+ "databaseBlockID": {
+ "type": "string"
+ },
+ "databasePath": {
+ "type": "string"
+ },
+ "icon": {
+ "type": "string"
+ },
+ "isDetached": {
+ "type": "boolean"
+ },
+ "itemID": {
+ "type": "string"
+ },
+ "relations": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVAttributeViewBacklinkRelation"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "title": {
+ "type": "string"
+ },
+ "valueID": {
"type": "string"
}
},
"required": [
- "data"
+ "avID",
+ "avName",
+ "blockIDs",
+ "boundBlockID",
+ "boxID",
+ "databaseBlockID",
+ "databasePath",
+ "icon",
+ "isDetached",
+ "itemID",
+ "relations",
+ "title",
+ "valueID"
],
"additionalProperties": false
},
- "AppendBlockRequestInput": {
+ "AVAttributeViewBacklinkRelation": {
"type": "object",
"properties": {
- "data": {
+ "keyID": {
"type": "string"
},
- "dataType": {
+ "keyName": {
"type": "string"
},
- "parentID": {
+ "targetAvID": {
+ "type": "string"
+ },
+ "targetItemID": {
"type": "string"
}
},
"required": [
- "data",
- "dataType",
- "parentID"
+ "keyID",
+ "keyName",
+ "targetAvID",
+ "targetItemID"
],
"additionalProperties": false
},
- "AppendHeadingChildrenRequestInput": {
+ "AVAttributeViewBacklinks": {
"type": "object",
"properties": {
- "childrenDOM": {
- "type": "string"
+ "items": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVAttributeViewBacklink"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "id": {
- "type": "string"
+ "total": {
+ "type": "integer"
}
},
"required": [
- "childrenDOM",
- "id"
+ "items",
+ "total"
],
"additionalProperties": false
},
- "AssetAnnotationData": {
+ "AVAttributeViewColor": {
"type": "object",
"properties": {
- "data": {
- "type": "string"
+ "dark": {
+ "$ref": "#/$defs/AVAttributeViewColorTheme"
+ },
+ "light": {
+ "$ref": "#/$defs/AVAttributeViewColorTheme"
}
},
"required": [
- "data"
+ "dark",
+ "light"
],
"additionalProperties": false
},
- "AssetCloudUploadRequestInput": {
+ "AVAttributeViewColorInput": {
"type": "object",
"properties": {
- "id": {
- "type": "string"
+ "dark": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVAttributeViewColorThemeInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "ignorePushMsg": {
+ "light": {
"anyOf": [
{
- "type": "boolean"
+ "$ref": "#/$defs/AVAttributeViewColorThemeInput"
},
{
"type": "null"
@@ -5391,58 +5565,41 @@
]
}
},
- "required": [
- "id"
- ],
"additionalProperties": false
},
- "AssetContent": {
+ "AVAttributeViewColorTheme": {
"type": "object",
"properties": {
- "content": {
- "type": "string"
- },
- "ext": {
- "type": "string"
- },
- "hSize": {
- "type": "string"
- },
- "id": {
- "type": "string"
- },
- "name": {
+ "backgroundColor": {
"type": "string"
},
- "path": {
+ "color": {
"type": "string"
- },
- "size": {
- "type": "integer"
- },
- "updated": {
- "type": "integer"
}
},
"required": [
- "content",
- "ext",
- "hSize",
- "id",
- "name",
- "path",
- "size",
- "updated"
+ "backgroundColor",
+ "color"
],
"additionalProperties": false
},
- "AssetContentData": {
+ "AVAttributeViewColorThemeInput": {
"type": "object",
"properties": {
- "assetContent": {
+ "backgroundColor": {
"anyOf": [
{
- "$ref": "#/$defs/AssetContent"
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "color": {
+ "anyOf": [
+ {
+ "type": "string"
},
{
"type": "null"
@@ -5450,74 +5607,113 @@
]
}
},
- "required": [
- "assetContent"
- ],
"additionalProperties": false
},
- "AssetContentRequestInput": {
+ "AVAttributeViewContextFilter": {
"type": "object",
"properties": {
- "id": {
- "type": "string"
- },
- "query": {
+ "keyID": {
"type": "string"
},
- "queryMethod": {
- "type": "number"
+ "spec": {
+ "type": "integer",
+ "enum": [
+ 1
+ ]
}
},
"required": [
- "id",
- "query",
- "queryMethod"
+ "keyID",
+ "spec"
],
"additionalProperties": false
},
- "AssetDocumentAssetsRequestInput": {
+ "AVAttributeViewContextFilterField": {
"type": "object",
"properties": {
+ "icon": {
+ "type": "string"
+ },
"id": {
"type": "string"
},
- "retainQueryStr": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
+ "name": {
+ "type": "string"
+ },
+ "targetAvID": {
+ "type": "string"
}
},
"required": [
- "id"
+ "icon",
+ "id",
+ "name",
+ "targetAvID"
],
"additionalProperties": false
},
- "AssetDocumentRequestInput": {
+ "AVAttributeViewCustomColor": {
"type": "object",
"properties": {
- "id": {
- "type": "string"
+ "dark": {
+ "$ref": "#/$defs/AVAttributeViewColorTheme"
+ },
+ "hidden": {
+ "type": "boolean"
+ },
+ "index": {
+ "type": "integer"
+ },
+ "light": {
+ "$ref": "#/$defs/AVAttributeViewColorTheme"
}
},
"required": [
- "id"
+ "dark",
+ "index",
+ "light"
],
"additionalProperties": false
},
- "AssetInsertCoverData": {
+ "AVAttributeViewData": {
"type": "object",
"properties": {
- "succFiles": {
+ "cardCoverPositions": {
+ "type": "object",
+ "additionalProperties": {
+ "anyOf": [
+ {
+ "type": "object",
+ "additionalProperties": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVCardCoverPosition"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "customColors": {
"anyOf": [
{
"type": "array",
"items": {
- "$ref": "#/$defs/AssetUploadSuccess"
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVAttributeViewCustomColor"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
{
@@ -5525,11 +5721,17 @@
}
]
},
- "succMap": {
+ "defaultTemplateID": {
+ "type": "string"
+ },
+ "id": {
+ "type": "string"
+ },
+ "keyIDs": {
"anyOf": [
{
- "type": "object",
- "additionalProperties": {
+ "type": "array",
+ "items": {
"type": "string"
}
},
@@ -5537,28 +5739,15 @@
"type": "null"
}
]
- }
- },
- "required": [
- "succFiles",
- "succMap"
- ],
- "additionalProperties": false
- },
- "AssetOCRData": {
- "type": "object",
- "properties": {
- "ocrJSON": {
+ },
+ "keyValues": {
"anyOf": [
{
"type": "array",
"items": {
"anyOf": [
{
- "type": "object",
- "additionalProperties": {
- "type": "string"
- }
+ "$ref": "#/$defs/AVKeyValues"
},
{
"type": "null"
@@ -5571,23 +5760,42 @@
}
]
},
- "text": {
+ "name": {
"type": "string"
- }
- },
- "required": [
- "ocrJSON",
- "text"
- ],
- "additionalProperties": false
- },
- "AssetOCRTextRequestInput": {
- "type": "object",
- "properties": {
- "path": {
+ },
+ "newItemTemplates": {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVNewItemTemplate"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "spec": {
+ "type": "integer"
+ },
+ "viewID": {
+ "type": "string"
+ },
+ "views": {
"anyOf": [
{
- "type": "string"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVView"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
@@ -5595,170 +5803,277 @@
]
}
},
- "additionalProperties": false
- },
- "AssetPathData": {
- "type": "object",
- "properties": {
- "path": {
- "type": "string"
- }
- },
"required": [
- "path"
+ "customColors",
+ "id",
+ "keyIDs",
+ "keyValues",
+ "name",
+ "spec",
+ "viewID",
+ "views"
],
"additionalProperties": false
},
- "AssetPathRequestInput": {
+ "AVAttributeViewFieldView": {
"type": "object",
"properties": {
- "path": {
+ "hidden": {
+ "type": "boolean"
+ },
+ "icon": {
+ "type": "string"
+ },
+ "id": {
"type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "type": {
+ "type": "string",
+ "enum": [
+ "table",
+ "gallery",
+ "kanban"
+ ]
}
},
"required": [
- "path"
+ "hidden",
+ "icon",
+ "id",
+ "name",
+ "type"
],
"additionalProperties": false
},
- "AssetPathsCloudUploadRequestInput": {
+ "AVAttributeViewGroupItemPosition": {
"type": "object",
"properties": {
- "ignorePushMsg": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
+ "groupID": {
+ "type": "string"
},
- "paths": {
- "type": "array",
- "items": {
- "type": "string"
- }
+ "previousID": {
+ "type": "string"
}
},
"required": [
- "paths"
+ "groupID",
+ "previousID"
],
"additionalProperties": false
},
- "AssetPathsData": {
+ "AVAttributeViewItemPosition": {
"type": "object",
"properties": {
- "paths": {
+ "groups": {
"anyOf": [
{
"type": "array",
"items": {
- "type": "string"
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVAttributeViewGroupItemPosition"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
{
"type": "null"
}
]
+ },
+ "previousID": {
+ "type": "string"
+ },
+ "viewID": {
+ "type": "string"
}
},
"required": [
- "paths"
+ "groups",
+ "previousID",
+ "viewID"
],
"additionalProperties": false
},
- "AssetRenameData": {
+ "AVAttributeViewRenderTarget": {
"type": "object",
"properties": {
- "newPath": {
+ "groupID": {
+ "type": "string"
+ },
+ "index": {
+ "type": "integer"
+ },
+ "itemID": {
"type": "string"
+ },
+ "offset": {
+ "type": "integer"
+ },
+ "pageSize": {
+ "type": "integer"
+ },
+ "status": {
+ "type": "string",
+ "enum": [
+ "visible",
+ "filtered",
+ "itemNotFound",
+ "groupHidden"
+ ]
}
},
"required": [
- "newPath"
+ "index",
+ "itemID",
+ "offset",
+ "pageSize",
+ "status"
],
"additionalProperties": false
},
- "AssetStatData": {
+ "AVAttributeViewSearchTarget": {
"type": "object",
"properties": {
- "created": {
- "type": "integer"
+ "avID": {
+ "type": "string"
},
- "downloaded": {
- "type": "boolean",
- "enum": [
- false
+ "boundBlockID": {
+ "type": "string"
+ },
+ "databaseBlockID": {
+ "type": "string"
+ },
+ "groupID": {
+ "type": "string"
+ },
+ "isDetached": {
+ "type": "boolean"
+ },
+ "itemID": {
+ "type": "string"
+ },
+ "keywords": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
]
},
- "hCreated": {
+ "matchedKeyID": {
"type": "string"
},
- "hSize": {
+ "matchedValueID": {
"type": "string"
},
- "hUpdated": {
+ "notebookID": {
"type": "string"
},
- "size": {
- "type": "integer"
+ "title": {
+ "type": "string"
},
- "updated": {
- "type": "integer"
- }
- },
- "required": [
- "created",
- "hCreated",
- "hSize",
- "hUpdated",
- "size",
- "updated"
- ],
- "additionalProperties": false
- },
- "AssetTextData": {
- "type": "object",
- "properties": {
- "text": {
+ "valueID": {
+ "type": "string"
+ },
+ "viewID": {
"type": "string"
}
},
"required": [
- "text"
+ "avID",
+ "boundBlockID",
+ "databaseBlockID",
+ "isDetached",
+ "itemID",
+ "keywords",
+ "matchedKeyID",
+ "matchedValueID",
+ "notebookID",
+ "title",
+ "valueID"
],
"additionalProperties": false
},
- "AssetUnusedItem": {
+ "AVAvSearchResult": {
"type": "object",
"properties": {
- "blockIDs": {
+ "avID": {
+ "type": "string"
+ },
+ "avName": {
+ "type": "string"
+ },
+ "blockID": {
+ "type": "string"
+ },
+ "children": {
"type": "array",
"items": {
- "type": "string"
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVAvSearchResult"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
- "item": {
+ "hPath": {
"type": "string"
},
- "name": {
+ "matched": {
+ "type": "boolean"
+ },
+ "viewID": {
"type": "string"
},
- "path": {
+ "viewLayout": {
+ "type": "string",
+ "enum": [
+ "",
+ "table",
+ "gallery",
+ "kanban"
+ ]
+ },
+ "viewName": {
"type": "string"
}
},
"required": [
- "item",
- "name"
+ "avID",
+ "avName",
+ "blockID",
+ "hPath",
+ "viewID",
+ "viewLayout",
+ "viewName"
],
"additionalProperties": false
},
- "AssetUploadData": {
+ "AVBlockAttributeViewKeys": {
"type": "object",
"properties": {
- "errFiles": {
+ "avID": {
+ "type": "string"
+ },
+ "avName": {
+ "type": "string"
+ },
+ "blockIDs": {
"anyOf": [
{
"type": "array",
@@ -5771,12 +6086,19 @@
}
]
},
- "failedFiles": {
+ "customColors": {
"anyOf": [
{
"type": "array",
"items": {
- "$ref": "#/$defs/AssetUploadFailure"
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVAttributeViewCustomColor"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
{
@@ -5784,12 +6106,19 @@
}
]
},
- "succFiles": {
+ "itemPositions": {
"anyOf": [
{
"type": "array",
"items": {
- "$ref": "#/$defs/AssetUploadSuccess"
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVAttributeViewItemPosition"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
{
@@ -5797,12 +6126,19 @@
}
]
},
- "succMap": {
+ "keyValues": {
"anyOf": [
{
- "type": "object",
- "additionalProperties": {
- "type": "string"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVKeyValues"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
{
@@ -5812,73 +6148,81 @@
}
},
"required": [
- "errFiles",
- "failedFiles",
- "succFiles",
- "succMap"
+ "avID",
+ "avName",
+ "blockIDs",
+ "customColors",
+ "itemPositions",
+ "keyValues"
],
"additionalProperties": false
},
- "AssetUploadFailure": {
+ "AVBlockSourceInput": {
"type": "object",
"properties": {
- "error": {
- "type": "string"
- },
- "index": {
- "type": "integer"
+ "content": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "name": {
- "type": "string"
- }
- },
- "required": [
- "error",
- "index",
- "name"
- ],
- "additionalProperties": false
- },
- "AssetUploadSuccess": {
- "type": "object",
- "properties": {
- "index": {
- "type": "integer"
+ "id": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "name": {
- "type": "string"
+ "isDetached": {
+ "type": "boolean"
},
- "path": {
- "type": "string"
+ "itemID": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
"required": [
- "index",
- "name",
- "path"
+ "isDetached"
],
"additionalProperties": false
},
- "AttributeViewColorTheme": {
+ "AVCardCoverPosition": {
"type": "object",
"properties": {
- "backgroundColor": {
+ "image": {
"type": "string"
},
- "color": {
- "type": "string"
+ "x": {
+ "type": "number"
+ },
+ "y": {
+ "type": "number"
}
},
"required": [
- "backgroundColor",
- "color"
+ "image",
+ "x",
+ "y"
],
"additionalProperties": false
},
- "AttributeViewColorThemeInput": {
+ "AVCellUpdateInput": {
"type": "object",
"properties": {
- "backgroundColor": {
+ "itemID": {
"anyOf": [
{
"type": "string"
@@ -5888,7 +6232,10 @@
}
]
},
- "color": {
+ "keyID": {
+ "type": "string"
+ },
+ "rowID": {
"anyOf": [
{
"type": "string"
@@ -5897,190 +6244,240 @@
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "AttributeViewCustomColor": {
- "type": "object",
- "properties": {
- "dark": {
- "$ref": "#/$defs/AttributeViewColorTheme"
- },
- "hidden": {
- "type": "boolean"
},
- "index": {
- "type": "integer"
- },
- "light": {
- "$ref": "#/$defs/AttributeViewColorTheme"
+ "value": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVValueInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
"required": [
- "dark",
- "index",
- "light"
+ "keyID"
],
"additionalProperties": false
},
- "AttributeViewCustomColorInput": {
+ "AVContextFilterData": {
"type": "object",
"properties": {
- "dark": {
+ "contextFilter": {
"anyOf": [
{
- "$ref": "#/$defs/AttributeViewColorThemeInput"
+ "$ref": "#/$defs/AVAttributeViewContextFilter"
},
{
"type": "null"
}
]
- },
- "hidden": {
+ }
+ },
+ "required": [
+ "contextFilter"
+ ],
+ "additionalProperties": false
+ },
+ "AVCreateAttributeViewItemDocsResult": {
+ "type": "object",
+ "properties": {
+ "blockIDs": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "index": {
+ "itemIDs": {
"anyOf": [
{
- "type": "integer"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "light": {
- "anyOf": [
- {
- "$ref": "#/$defs/AttributeViewColorThemeInput"
- },
- {
- "type": "null"
- }
- ]
+ "skippedItemIDs": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "warnings": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
}
},
+ "required": [
+ "blockIDs",
+ "itemIDs"
+ ],
"additionalProperties": false
},
- "AutoLaunchRequestInput": {
+ "AVCreateAttributeViewItemResult": {
"type": "object",
"properties": {
- "autoLaunch": {
- "type": "number"
+ "blockID": {
+ "type": "string"
+ },
+ "content": {
+ "type": "string"
+ },
+ "isDetached": {
+ "type": "boolean"
+ },
+ "itemID": {
+ "type": "string"
+ },
+ "warnings": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
}
},
"required": [
- "autoLaunch"
+ "blockID",
+ "content",
+ "isDetached",
+ "itemID"
],
"additionalProperties": false
},
- "BacklinkAttributeViewMatch": {
+ "AVCreateItemDocsResult": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVCreateAttributeViewItemDocsResult"
+ },
+ {
+ "$ref": "#/$defs/AVUnavailableNotebook"
+ }
+ ]
+ },
+ "AVCreateItemResult": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVCreateAttributeViewItemResult"
+ },
+ {
+ "$ref": "#/$defs/AVUnavailableNotebook"
+ }
+ ]
+ },
+ "AVCreated": {
"type": "object",
"properties": {
- "defIDs": {
+ "includeTime": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "includeTime"
+ ],
+ "additionalProperties": false
+ },
+ "AVData": {
+ "type": "object",
+ "properties": {
+ "av": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "$ref": "#/$defs/AVAttributeViewData"
},
{
"type": "null"
}
]
+ }
+ },
+ "required": [
+ "av"
+ ],
+ "additionalProperties": false
+ },
+ "AVDate": {
+ "type": "object",
+ "properties": {
+ "autoFillNow": {
+ "type": "boolean"
},
- "itemID": {
- "type": "string"
- },
- "keyID": {
- "type": "string"
- },
- "keyName": {
- "type": "string"
- },
- "title": {
+ "fillSpecificTime": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "autoFillNow",
+ "fillSpecificTime"
+ ],
+ "additionalProperties": false
+ },
+ "AVDuplicateData": {
+ "type": "object",
+ "properties": {
+ "avID": {
"type": "string"
},
- "valueID": {
+ "blockID": {
"type": "string"
}
},
"required": [
- "defIDs",
- "itemID",
- "keyID",
- "keyName",
- "title",
- "valueID"
+ "avID",
+ "blockID"
],
"additionalProperties": false
},
- "BacklinkAttributeViewTarget": {
+ "AVFieldCalc": {
"type": "object",
"properties": {
- "blockID": {
+ "operator": {
"type": "string"
},
- "matches": {
+ "result": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/BacklinkAttributeViewMatch"
- },
- {
- "type": "null"
- }
- ]
- }
+ "$ref": "#/$defs/AVValue"
},
{
"type": "null"
}
]
+ },
+ "template": {
+ "type": "string"
}
},
"required": [
- "blockID",
- "matches"
+ "operator",
+ "result"
],
"additionalProperties": false
},
- "BacklinkContext": {
+ "AVFieldViewsData": {
"type": "object",
"properties": {
- "attributeViewTargets": {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/BacklinkAttributeViewTarget"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "blockPaths": {
+ "views": {
"anyOf": [
{
"type": "array",
"items": {
"anyOf": [
{
- "$ref": "#/$defs/BlockPath"
+ "$ref": "#/$defs/AVAttributeViewFieldView"
},
{
"type": "null"
@@ -6092,46 +6489,24 @@
"type": "null"
}
]
- },
- "dom": {
- "type": "string"
- },
- "expand": {
- "type": "boolean"
- },
- "id": {
- "type": "string"
- },
- "referenceBlockID": {
- "type": "string"
- },
- "revision": {
- "type": "string"
- },
- "type": {
- "type": "string"
}
},
"required": [
- "blockPaths",
- "dom",
- "expand",
- "id",
- "revision"
+ "views"
],
"additionalProperties": false
},
- "BacklinkContextData": {
+ "AVFilterSortData": {
"type": "object",
"properties": {
- "backlinks": {
+ "filters": {
"anyOf": [
{
"type": "array",
"items": {
"anyOf": [
{
- "$ref": "#/$defs/BacklinkContext"
+ "$ref": "#/$defs/AVViewFilter"
},
{
"type": "null"
@@ -6144,14 +6519,14 @@
}
]
},
- "backmentions": {
+ "sorts": {
"anyOf": [
{
"type": "array",
"items": {
"anyOf": [
{
- "$ref": "#/$defs/BacklinkContext"
+ "$ref": "#/$defs/AVViewSort"
},
{
"type": "null"
@@ -6163,110 +6538,335 @@
"type": "null"
}
]
- },
- "keywords": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- {
- "type": "null"
- }
- ]
- },
- "revision": {
- "type": "string"
- },
- "unchanged": {
- "type": "boolean"
}
},
"required": [
- "backlinks",
- "backmentions",
- "keywords",
- "revision",
- "unchanged"
+ "filters",
+ "sorts"
],
"additionalProperties": false
},
- "BacklinkDocumentRequestInput": {
- "type": "object",
- "properties": {
- "containChildren": {
- "anyOf": [
- {
+ "AVGallery": {
+ "anyOf": [
+ {
+ "type": "object",
+ "properties": {
+ "cardAspectRatio": {
+ "type": "integer"
+ },
+ "cardAspectRatioValue": {
+ "type": "number"
+ },
+ "cardCount": {
+ "type": "integer"
+ },
+ "cardLayout": {
+ "type": "integer"
+ },
+ "cardSize": {
+ "type": "integer"
+ },
+ "cardWidth": {
+ "type": "integer"
+ },
+ "cards": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVGalleryCard"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "coverFrom": {
+ "type": "integer"
+ },
+ "coverFromAssetKeyID": {
+ "type": "string"
+ },
+ "desc": {
+ "type": "string"
+ },
+ "displayEmptyFields": {
"type": "boolean"
},
- {
- "type": "null"
- }
- ]
- },
- "defID": {
- "type": "string"
- },
- "highlight": {
- "anyOf": [
- {
+ "displayFieldName": {
"type": "boolean"
},
- {
- "type": "null"
- }
- ]
- },
- "keyword": {
- "type": "string"
- },
- "knownRevision": {
- "anyOf": [
- {
+ "fields": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVGalleryField"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "filters": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVViewFilter"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "fitImage": {
+ "type": "boolean"
+ },
+ "group": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVViewGroup"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "groupCalc": {
+ "$ref": "#/$defs/AVGroupCalc"
+ },
+ "groupFolded": {
+ "type": "boolean"
+ },
+ "groupHidden": {
+ "type": "integer"
+ },
+ "groupKey": {
+ "$ref": "#/$defs/AVKey"
+ },
+ "groupValue": {
+ "$ref": "#/$defs/AVValue"
+ },
+ "groups": {
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/AVViewInstance"
+ }
+ },
+ "hideAttrViewName": {
+ "type": "boolean"
+ },
+ "icon": {
"type": "string"
},
- {
- "type": "null"
+ "id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "pageSize": {
+ "type": "integer"
+ },
+ "showIcon": {
+ "type": "boolean"
+ },
+ "sorts": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVViewSort"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "wrapField": {
+ "type": "boolean"
}
- ]
- },
- "notebook": {
- "type": "string"
- },
- "refTreeID": {
- "type": "string"
+ },
+ "required": [
+ "coverFrom",
+ "cardAspectRatio",
+ "cardAspectRatioValue",
+ "cardSize",
+ "cardWidth",
+ "cardLayout",
+ "fitImage",
+ "displayFieldName",
+ "displayEmptyFields",
+ "fields",
+ "cards",
+ "cardCount",
+ "id",
+ "icon",
+ "name",
+ "desc",
+ "hideAttrViewName",
+ "filters",
+ "sorts",
+ "group",
+ "pageSize",
+ "showIcon",
+ "wrapField",
+ "groupFolded",
+ "groupHidden"
+ ],
+ "additionalProperties": false
},
- "sourceFilter": {
- "anyOf": [
- {
- "$ref": "#/$defs/BacklinkSourceFilterInput"
+ {
+ "type": "object",
+ "properties": {
+ "cardAspectRatio": {
+ "type": "integer"
},
- {
- "type": "null"
+ "cardAspectRatioValue": {
+ "type": "number"
+ },
+ "cardCount": {
+ "type": "integer"
+ },
+ "cardLayout": {
+ "type": "integer"
+ },
+ "cardSize": {
+ "type": "integer"
+ },
+ "cardWidth": {
+ "type": "integer"
+ },
+ "cards": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVGalleryCard"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "coverFrom": {
+ "type": "integer"
+ },
+ "coverFromAssetKeyID": {
+ "type": "string"
+ },
+ "displayEmptyFields": {
+ "type": "boolean"
+ },
+ "displayFieldName": {
+ "type": "boolean"
+ },
+ "fields": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVGalleryField"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "fitImage": {
+ "type": "boolean"
}
- ]
+ },
+ "required": [
+ "coverFrom",
+ "cardAspectRatio",
+ "cardAspectRatioValue",
+ "cardSize",
+ "cardWidth",
+ "cardLayout",
+ "fitImage",
+ "displayFieldName",
+ "displayEmptyFields",
+ "fields",
+ "cards",
+ "cardCount"
+ ],
+ "additionalProperties": false
}
- },
- "required": [
- "defID",
- "keyword",
- "refTreeID"
- ],
- "additionalProperties": false
+ ]
},
- "BacklinkList": {
+ "AVGalleryCard": {
"type": "object",
"properties": {
- "backlinks": {
+ "coverContent": {
+ "type": "string"
+ },
+ "coverPosition": {
+ "$ref": "#/$defs/AVCardCoverPosition"
+ },
+ "coverURL": {
+ "type": "string"
+ },
+ "id": {
+ "type": "string"
+ },
+ "values": {
"anyOf": [
{
"type": "array",
"items": {
"anyOf": [
{
- "$ref": "#/$defs/BacklinkPath"
+ "$ref": "#/$defs/AVGalleryFieldValue"
},
{
"type": "null"
@@ -6278,15 +6878,74 @@
"type": "null"
}
]
- },
- "backmentions": {
- "anyOf": [
- {
+ }
+ },
+ "required": [
+ "coverContent",
+ "coverURL",
+ "id",
+ "values"
+ ],
+ "additionalProperties": false
+ },
+ "AVGalleryField": {
+ "anyOf": [
+ {
+ "type": "object",
+ "properties": {
+ "calc": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVFieldCalc"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "created": {
+ "$ref": "#/$defs/AVCreated"
+ },
+ "date": {
+ "$ref": "#/$defs/AVDate"
+ },
+ "dateFormat": {
+ "type": "string",
+ "enum": [
+ "",
+ "full",
+ "month-day-year",
+ "day-month-year",
+ "year-month-day"
+ ]
+ },
+ "desc": {
+ "type": "string"
+ },
+ "fullRow": {
+ "type": "boolean"
+ },
+ "hidden": {
+ "type": "boolean"
+ },
+ "icon": {
+ "type": "string"
+ },
+ "id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "numberFormat": {
+ "type": "string"
+ },
+ "options": {
"type": "array",
"items": {
"anyOf": [
{
- "$ref": "#/$defs/BacklinkPath"
+ "$ref": "#/$defs/AVSelectOption"
},
{
"type": "null"
@@ -6294,139 +6953,226 @@
]
}
},
- {
- "type": "null"
+ "relation": {
+ "$ref": "#/$defs/AVRelation"
+ },
+ "renderTemplate": {
+ "type": "string"
+ },
+ "rollup": {
+ "$ref": "#/$defs/AVRollup"
+ },
+ "template": {
+ "type": "string"
+ },
+ "type": {
+ "type": "string",
+ "enum": [
+ "block",
+ "text",
+ "number",
+ "date",
+ "select",
+ "mSelect",
+ "url",
+ "email",
+ "phone",
+ "mAsset",
+ "template",
+ "created",
+ "updated",
+ "checkbox",
+ "relation",
+ "rollup",
+ "lineNumber"
+ ]
+ },
+ "updated": {
+ "$ref": "#/$defs/AVUpdated"
+ },
+ "wrap": {
+ "type": "boolean"
}
- ]
- },
- "box": {
- "type": "string"
- },
- "k": {
- "type": "string"
- },
- "linkRefsCount": {
- "type": "integer"
- },
- "mentionsCount": {
- "type": "integer"
- },
- "mk": {
- "type": "string"
- },
- "revision": {
- "type": "string"
+ },
+ "required": [
+ "fullRow",
+ "id",
+ "name",
+ "type",
+ "icon",
+ "wrap",
+ "hidden",
+ "desc",
+ "calc",
+ "numberFormat",
+ "template"
+ ],
+ "additionalProperties": false
},
- "unchanged": {
- "type": "boolean"
- }
- },
- "required": [
- "backlinks",
- "backmentions",
- "box",
- "k",
- "linkRefsCount",
- "mentionsCount",
- "mk",
- "revision",
- "unchanged"
- ],
- "additionalProperties": false
- },
- "BacklinkListRequestInput": {
- "type": "object",
- "properties": {
- "containChildren": {
- "anyOf": [
- {
+ {
+ "type": "object",
+ "properties": {
+ "fullRow": {
"type": "boolean"
- },
- {
- "type": "null"
}
- ]
- },
- "id": {
- "anyOf": [
- {
+ },
+ "required": [
+ "fullRow"
+ ],
+ "additionalProperties": false
+ }
+ ]
+ },
+ "AVGalleryFieldValue": {
+ "anyOf": [
+ {
+ "type": "object",
+ "properties": {
+ "id": {
"type": "string"
},
- {
- "type": "null"
+ "value": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVValue"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "valueType": {
+ "type": "string",
+ "enum": [
+ "block",
+ "text",
+ "number",
+ "date",
+ "select",
+ "mSelect",
+ "url",
+ "email",
+ "phone",
+ "mAsset",
+ "template",
+ "created",
+ "updated",
+ "checkbox",
+ "relation",
+ "rollup",
+ "lineNumber"
+ ]
}
- ]
+ },
+ "required": [
+ "id",
+ "value",
+ "valueType"
+ ],
+ "additionalProperties": false
},
- "includeMentions": {
+ {
+ "type": "object",
+ "additionalProperties": false
+ }
+ ]
+ },
+ "AVGroupCalc": {
+ "type": "object",
+ "properties": {
+ "calc": {
"anyOf": [
{
- "type": "boolean"
+ "$ref": "#/$defs/AVFieldCalc"
},
{
"type": "null"
}
]
},
- "k": {
+ "field": {
"type": "string"
- },
- "knownRevision": {
+ }
+ },
+ "required": [
+ "calc",
+ "field"
+ ],
+ "additionalProperties": false
+ },
+ "AVGroupPagingInput": {
+ "type": "object",
+ "properties": {
+ "page": {
"anyOf": [
{
- "type": "string"
+ "type": "number"
},
{
"type": "null"
}
]
},
- "mSort": {
+ "pageSize": {
"anyOf": [
{
- "type": "string"
+ "type": "number"
},
{
"type": "null"
}
]
+ }
+ },
+ "additionalProperties": false
+ },
+ "AVGroupRange": {
+ "type": "object",
+ "properties": {
+ "numEnd": {
+ "type": "number"
},
- "mk": {
- "type": "string"
- },
- "notebook": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
+ "numStart": {
+ "type": "number"
},
- "refDefCandidates": {
+ "numStep": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "numEnd",
+ "numStart",
+ "numStep"
+ ],
+ "additionalProperties": false
+ },
+ "AVGroupRangeInput": {
+ "type": "object",
+ "properties": {
+ "numEnd": {
"anyOf": [
{
- "type": "boolean"
+ "type": "number"
},
{
"type": "null"
}
]
},
- "sort": {
+ "numStart": {
"anyOf": [
{
- "type": "string"
+ "type": "number"
},
{
"type": "null"
}
]
},
- "sourceFilter": {
+ "numStep": {
"anyOf": [
{
- "$ref": "#/$defs/BacklinkSourceFilterInput"
+ "type": "number"
},
{
"type": "null"
@@ -6436,126 +7182,347 @@
},
"additionalProperties": false
},
- "BacklinkPath": {
+ "AVIDData": {
"type": "object",
"properties": {
- "blocks": {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/SearchBlock"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "box": {
- "type": "string"
- },
- "children": {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/SearchPath"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "count": {
- "type": "integer"
- },
- "created": {
- "type": "string"
- },
- "depth": {
- "type": "integer"
- },
- "folded": {
- "type": "boolean"
- },
- "hPath": {
- "type": "string"
- },
"id": {
"type": "string"
- },
- "name": {
- "type": "string"
- },
- "nodeType": {
- "type": "string"
- },
- "number": {
- "type": "string"
- },
- "revision": {
- "type": "string"
- },
- "subType": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "updated": {
- "type": "string"
}
},
"required": [
- "box",
- "count",
- "created",
- "depth",
- "folded",
- "hPath",
- "id",
- "name",
- "nodeType",
- "revision",
- "subType",
- "type",
- "updated"
+ "id"
],
"additionalProperties": false
},
- "BacklinkRefDef": {
- "type": "object",
- "properties": {
- "id": {
- "type": "string"
- },
- "path": {
- "type": "string"
+ "AVKanban": {
+ "anyOf": [
+ {
+ "type": "object",
+ "properties": {
+ "cardAspectRatio": {
+ "type": "integer"
+ },
+ "cardAspectRatioValue": {
+ "type": "number"
+ },
+ "cardCount": {
+ "type": "integer"
+ },
+ "cardLayout": {
+ "type": "integer"
+ },
+ "cardSize": {
+ "type": "integer"
+ },
+ "cardWidth": {
+ "type": "integer"
+ },
+ "cards": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVKanbanCard"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "coverFrom": {
+ "type": "integer"
+ },
+ "coverFromAssetKeyID": {
+ "type": "string"
+ },
+ "desc": {
+ "type": "string"
+ },
+ "displayEmptyFields": {
+ "type": "boolean"
+ },
+ "displayFieldName": {
+ "type": "boolean"
+ },
+ "fields": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVKanbanField"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "fillColBackgroundColor": {
+ "type": "boolean"
+ },
+ "filters": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVViewFilter"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "fitImage": {
+ "type": "boolean"
+ },
+ "group": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVViewGroup"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "groupCalc": {
+ "$ref": "#/$defs/AVGroupCalc"
+ },
+ "groupFolded": {
+ "type": "boolean"
+ },
+ "groupHidden": {
+ "type": "integer"
+ },
+ "groupKey": {
+ "$ref": "#/$defs/AVKey"
+ },
+ "groupValue": {
+ "$ref": "#/$defs/AVValue"
+ },
+ "groups": {
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/AVViewInstance"
+ }
+ },
+ "hideAttrViewName": {
+ "type": "boolean"
+ },
+ "icon": {
+ "type": "string"
+ },
+ "id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "pageSize": {
+ "type": "integer"
+ },
+ "showIcon": {
+ "type": "boolean"
+ },
+ "sorts": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVViewSort"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "wrapField": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "coverFrom",
+ "cardAspectRatio",
+ "cardAspectRatioValue",
+ "cardSize",
+ "cardWidth",
+ "cardLayout",
+ "fitImage",
+ "displayFieldName",
+ "displayEmptyFields",
+ "fillColBackgroundColor",
+ "fields",
+ "cards",
+ "cardCount",
+ "id",
+ "icon",
+ "name",
+ "desc",
+ "hideAttrViewName",
+ "filters",
+ "sorts",
+ "group",
+ "pageSize",
+ "showIcon",
+ "wrapField",
+ "groupFolded",
+ "groupHidden"
+ ],
+ "additionalProperties": false
},
- "text": {
- "type": "string"
+ {
+ "type": "object",
+ "properties": {
+ "cardAspectRatio": {
+ "type": "integer"
+ },
+ "cardAspectRatioValue": {
+ "type": "number"
+ },
+ "cardCount": {
+ "type": "integer"
+ },
+ "cardLayout": {
+ "type": "integer"
+ },
+ "cardSize": {
+ "type": "integer"
+ },
+ "cardWidth": {
+ "type": "integer"
+ },
+ "cards": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVKanbanCard"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "coverFrom": {
+ "type": "integer"
+ },
+ "coverFromAssetKeyID": {
+ "type": "string"
+ },
+ "displayEmptyFields": {
+ "type": "boolean"
+ },
+ "displayFieldName": {
+ "type": "boolean"
+ },
+ "fields": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVKanbanField"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "fillColBackgroundColor": {
+ "type": "boolean"
+ },
+ "fitImage": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "coverFrom",
+ "cardAspectRatio",
+ "cardAspectRatioValue",
+ "cardSize",
+ "cardWidth",
+ "cardLayout",
+ "fitImage",
+ "displayFieldName",
+ "displayEmptyFields",
+ "fillColBackgroundColor",
+ "fields",
+ "cards",
+ "cardCount"
+ ],
+ "additionalProperties": false
}
- },
- "required": [
- "id",
- "path",
- "text"
- ],
- "additionalProperties": false
+ ]
},
- "BacklinkRefDefs": {
+ "AVKanbanCard": {
"type": "object",
"properties": {
- "refDefs": {
+ "coverContent": {
+ "type": "string"
+ },
+ "coverPosition": {
+ "$ref": "#/$defs/AVCardCoverPosition"
+ },
+ "coverURL": {
+ "type": "string"
+ },
+ "id": {
+ "type": "string"
+ },
+ "values": {
"anyOf": [
{
"type": "array",
"items": {
"anyOf": [
{
- "$ref": "#/$defs/BacklinkRefDef"
+ "$ref": "#/$defs/AVKanbanFieldValue"
},
{
"type": "null"
@@ -6570,232 +7537,341 @@
}
},
"required": [
- "refDefs"
+ "coverContent",
+ "coverURL",
+ "id",
+ "values"
],
"additionalProperties": false
},
- "BacklinkSourceFilterInput": {
- "type": "object",
- "properties": {
- "dailyNote": {
- "anyOf": [
- {
+ "AVKanbanField": {
+ "anyOf": [
+ {
+ "type": "object",
+ "properties": {
+ "calc": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVFieldCalc"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "created": {
+ "$ref": "#/$defs/AVCreated"
+ },
+ "date": {
+ "$ref": "#/$defs/AVDate"
+ },
+ "dateFormat": {
+ "type": "string",
+ "enum": [
+ "",
+ "full",
+ "month-day-year",
+ "day-month-year",
+ "year-month-day"
+ ]
+ },
+ "desc": {
"type": "string"
},
- {
- "type": "null"
- }
- ]
- },
- "excludeSelf": {
- "anyOf": [
- {
+ "fullRow": {
"type": "boolean"
},
- {
- "type": "null"
- }
- ]
- },
- "excludedNotebookIDs": {
- "anyOf": [
- {
+ "hidden": {
+ "type": "boolean"
+ },
+ "icon": {
+ "type": "string"
+ },
+ "id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "numberFormat": {
+ "type": "string"
+ },
+ "options": {
"type": "array",
"items": {
- "type": "string"
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVSelectOption"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
- {
- "type": "null"
+ "relation": {
+ "$ref": "#/$defs/AVRelation"
+ },
+ "renderTemplate": {
+ "type": "string"
+ },
+ "rollup": {
+ "$ref": "#/$defs/AVRollup"
+ },
+ "template": {
+ "type": "string"
+ },
+ "type": {
+ "type": "string",
+ "enum": [
+ "block",
+ "text",
+ "number",
+ "date",
+ "select",
+ "mSelect",
+ "url",
+ "email",
+ "phone",
+ "mAsset",
+ "template",
+ "created",
+ "updated",
+ "checkbox",
+ "relation",
+ "rollup",
+ "lineNumber"
+ ]
+ },
+ "updated": {
+ "$ref": "#/$defs/AVUpdated"
+ },
+ "wrap": {
+ "type": "boolean"
}
- ]
+ },
+ "required": [
+ "fullRow",
+ "id",
+ "name",
+ "type",
+ "icon",
+ "wrap",
+ "hidden",
+ "desc",
+ "calc",
+ "numberFormat",
+ "template"
+ ],
+ "additionalProperties": false
},
- "excludedRefDefIDs": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "type": "string"
- }
+ {
+ "type": "object",
+ "properties": {
+ "fullRow": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "fullRow"
+ ],
+ "additionalProperties": false
+ }
+ ]
+ },
+ "AVKanbanFieldValue": {
+ "anyOf": [
+ {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
},
- {
- "type": "null"
+ "value": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVValue"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "valueType": {
+ "type": "string",
+ "enum": [
+ "block",
+ "text",
+ "number",
+ "date",
+ "select",
+ "mSelect",
+ "url",
+ "email",
+ "phone",
+ "mAsset",
+ "template",
+ "created",
+ "updated",
+ "checkbox",
+ "relation",
+ "rollup",
+ "lineNumber"
+ ]
}
- ]
+ },
+ "required": [
+ "id",
+ "value",
+ "valueType"
+ ],
+ "additionalProperties": false
+ },
+ {
+ "type": "object",
+ "additionalProperties": false
}
- },
- "additionalProperties": false
+ ]
},
- "BackmentionDocumentRequestInput": {
+ "AVKey": {
"type": "object",
"properties": {
- "containChildren": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
+ "created": {
+ "$ref": "#/$defs/AVCreated"
},
- "defID": {
- "type": "string"
+ "date": {
+ "$ref": "#/$defs/AVDate"
},
- "highlight": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
+ "dateFormat": {
+ "type": "string",
+ "enum": [
+ "",
+ "full",
+ "month-day-year",
+ "day-month-year",
+ "year-month-day"
]
},
- "keyword": {
+ "desc": {
"type": "string"
},
- "knownRevision": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
+ "icon": {
+ "type": "string"
},
- "notebook": {
+ "id": {
"type": "string"
},
- "refTreeID": {
+ "name": {
"type": "string"
- }
- },
- "required": [
- "defID",
- "keyword",
- "refTreeID"
- ],
- "additionalProperties": false
- },
- "BatchInsertBlockRequestInput": {
- "type": "object",
- "properties": {
- "blocks": {
- "type": "array",
- "items": {
- "$ref": "#/$defs/BlockInsertInputInput"
- }
- }
- },
- "required": [
- "blocks"
- ],
- "additionalProperties": false
- },
- "BatchParentBlockRequestInput": {
- "type": "object",
- "properties": {
- "blocks": {
- "type": "array",
- "items": {
- "$ref": "#/$defs/PrependBlockRequestInput"
- }
- }
- },
- "required": [
- "blocks"
- ],
- "additionalProperties": false
- },
- "BatchSetBlockAttrsRequestInput": {
- "type": "object",
- "properties": {
- "blockAttrs": {
- "type": "array",
- "items": {
- "$ref": "#/$defs/SetBlockAttrsRequestInput"
- }
- }
- },
- "required": [
- "blockAttrs"
- ],
- "additionalProperties": false
- },
- "BatchTaskListMarkerRequestInput": {
- "type": "object",
- "properties": {
- "items": {
+ },
+ "numberFormat": {
+ "type": "string"
+ },
+ "options": {
"type": "array",
"items": {
- "$ref": "#/$defs/TaskListMarkerRequestInput"
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVSelectOption"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
+ },
+ "relation": {
+ "$ref": "#/$defs/AVRelation"
+ },
+ "renderTemplate": {
+ "type": "string"
+ },
+ "rollup": {
+ "$ref": "#/$defs/AVRollup"
+ },
+ "template": {
+ "type": "string"
+ },
+ "type": {
+ "type": "string",
+ "enum": [
+ "block",
+ "text",
+ "number",
+ "date",
+ "select",
+ "mSelect",
+ "url",
+ "email",
+ "phone",
+ "mAsset",
+ "template",
+ "created",
+ "updated",
+ "checkbox",
+ "relation",
+ "rollup",
+ "lineNumber"
+ ]
+ },
+ "updated": {
+ "$ref": "#/$defs/AVUpdated"
}
},
"required": [
- "items"
+ "desc",
+ "icon",
+ "id",
+ "name",
+ "numberFormat",
+ "template",
+ "type"
],
"additionalProperties": false
},
- "BatchUpdateBlockRequestInput": {
+ "AVKeyValues": {
"type": "object",
"properties": {
- "blocks": {
+ "key": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVKey"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "values": {
"type": "array",
"items": {
- "$ref": "#/$defs/UpdateBlockRequestInput"
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVValue"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
}
},
"required": [
- "blocks"
- ],
- "additionalProperties": false
- },
- "BatchUpdatePackageRequestInput": {
- "type": "object",
- "properties": {
- "frontend": {
- "type": "string"
- }
- },
- "required": [
- "frontend"
+ "key"
],
"additionalProperties": false
},
- "BazaarAppearance": {
+ "AVKeysData": {
"type": "object",
"properties": {
- "bodyGradient": {
- "anyOf": [
- {
- "$ref": "#/$defs/BazaarBodyGradient"
- },
- {
- "type": "null"
- }
- ]
- },
- "closeButtonBehavior": {
- "type": "integer"
- },
- "codeBlockThemeDark": {
- "type": "string"
- },
- "codeBlockThemeLight": {
- "type": "string"
- },
- "darkThemes": {
+ "keys": {
"anyOf": [
{
"type": "array",
"items": {
"anyOf": [
{
- "$ref": "#/$defs/BazaarAppearanceTheme"
+ "$ref": "#/$defs/AVKey"
},
{
"type": "null"
@@ -6807,25 +7883,84 @@
"type": "null"
}
]
- },
- "entryVisibility": {
- "anyOf": [
- {
- "$ref": "#/$defs/BazaarEntryVisibility"
+ }
+ },
+ "required": [
+ "keys"
+ ],
+ "additionalProperties": false
+ },
+ "AVLayoutGallery": {
+ "anyOf": [
+ {
+ "type": "object",
+ "properties": {
+ "cardAspectRatio": {
+ "type": "integer"
},
- {
- "type": "null"
- }
- ]
- },
- "globalFontFamilies": {
- "anyOf": [
- {
+ "cardAspectRatioValue": {
+ "type": "number"
+ },
+ "cardIds": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "cardLayout": {
+ "type": "integer"
+ },
+ "cardSize": {
+ "type": "integer"
+ },
+ "cardWidth": {
+ "type": "integer"
+ },
+ "coverFrom": {
+ "type": "integer"
+ },
+ "coverFromAssetKeyID": {
+ "type": "string"
+ },
+ "displayEmptyFields": {
+ "type": "boolean"
+ },
+ "displayFieldName": {
+ "type": "boolean"
+ },
+ "fields": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVViewGalleryCardField"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "filters": {
"type": "array",
"items": {
"anyOf": [
{
- "$ref": "#/$defs/BazaarEditorFont"
+ "$ref": "#/$defs/AVViewFilter"
},
{
"type": "null"
@@ -6833,31 +7968,24 @@
]
}
},
- {
- "type": "null"
- }
- ]
- },
- "hideStatusBar": {
- "type": "boolean"
- },
- "hideToolbar": {
- "type": "boolean"
- },
- "icon": {
- "type": "string"
- },
- "iconVer": {
- "type": "string"
- },
- "icons": {
- "anyOf": [
- {
+ "fitImage": {
+ "type": "boolean"
+ },
+ "id": {
+ "type": "string"
+ },
+ "pageSize": {
+ "type": "integer"
+ },
+ "showIcon": {
+ "type": "boolean"
+ },
+ "sorts": {
"type": "array",
"items": {
"anyOf": [
{
- "$ref": "#/$defs/BazaarAppearanceIcon"
+ "$ref": "#/$defs/AVViewSort"
},
{
"type": "null"
@@ -6865,22 +7993,177 @@
]
}
},
- {
- "type": "null"
+ "spec": {
+ "type": "integer"
+ },
+ "wrapField": {
+ "type": "boolean"
}
- ]
- },
- "lang": {
- "type": "string"
+ },
+ "required": [
+ "coverFrom",
+ "cardAspectRatio",
+ "cardAspectRatioValue",
+ "cardSize",
+ "cardWidth",
+ "cardLayout",
+ "fitImage",
+ "displayFieldName",
+ "displayEmptyFields",
+ "fields",
+ "cardIds",
+ "spec",
+ "id",
+ "showIcon",
+ "wrapField"
+ ],
+ "additionalProperties": false
},
- "lightThemes": {
- "anyOf": [
- {
+ {
+ "type": "object",
+ "properties": {
+ "cardAspectRatio": {
+ "type": "integer"
+ },
+ "cardAspectRatioValue": {
+ "type": "number"
+ },
+ "cardIds": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "cardLayout": {
+ "type": "integer"
+ },
+ "cardSize": {
+ "type": "integer"
+ },
+ "cardWidth": {
+ "type": "integer"
+ },
+ "coverFrom": {
+ "type": "integer"
+ },
+ "coverFromAssetKeyID": {
+ "type": "string"
+ },
+ "displayEmptyFields": {
+ "type": "boolean"
+ },
+ "displayFieldName": {
+ "type": "boolean"
+ },
+ "fields": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVViewGalleryCardField"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "fitImage": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "coverFrom",
+ "cardAspectRatio",
+ "cardAspectRatioValue",
+ "cardSize",
+ "cardWidth",
+ "cardLayout",
+ "fitImage",
+ "displayFieldName",
+ "displayEmptyFields",
+ "fields",
+ "cardIds"
+ ],
+ "additionalProperties": false
+ }
+ ]
+ },
+ "AVLayoutKanban": {
+ "anyOf": [
+ {
+ "type": "object",
+ "properties": {
+ "cardAspectRatio": {
+ "type": "integer"
+ },
+ "cardAspectRatioValue": {
+ "type": "number"
+ },
+ "cardLayout": {
+ "type": "integer"
+ },
+ "cardSize": {
+ "type": "integer"
+ },
+ "cardWidth": {
+ "type": "integer"
+ },
+ "coverFrom": {
+ "type": "integer"
+ },
+ "coverFromAssetKeyID": {
+ "type": "string"
+ },
+ "displayEmptyFields": {
+ "type": "boolean"
+ },
+ "displayFieldName": {
+ "type": "boolean"
+ },
+ "fields": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVViewKanbanField"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "fillColBackgroundColor": {
+ "type": "boolean"
+ },
+ "filters": {
"type": "array",
"items": {
"anyOf": [
{
- "$ref": "#/$defs/BazaarAppearanceTheme"
+ "$ref": "#/$defs/AVViewFilter"
},
{
"type": "null"
@@ -6888,119 +8171,372 @@
]
}
},
- {
- "type": "null"
+ "fitImage": {
+ "type": "boolean"
+ },
+ "id": {
+ "type": "string"
+ },
+ "pageSize": {
+ "type": "integer"
+ },
+ "showIcon": {
+ "type": "boolean"
+ },
+ "sorts": {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVViewSort"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "spec": {
+ "type": "integer"
+ },
+ "wrapField": {
+ "type": "boolean"
}
- ]
- },
- "mode": {
- "type": "integer"
- },
- "modeOS": {
- "type": "boolean"
+ },
+ "required": [
+ "coverFrom",
+ "cardAspectRatio",
+ "cardAspectRatioValue",
+ "cardSize",
+ "cardWidth",
+ "cardLayout",
+ "fitImage",
+ "displayFieldName",
+ "displayEmptyFields",
+ "fillColBackgroundColor",
+ "fields",
+ "spec",
+ "id",
+ "showIcon",
+ "wrapField"
+ ],
+ "additionalProperties": false
},
- "notifications": {
- "anyOf": [
- {
- "$ref": "#/$defs/BazaarNotifications"
+ {
+ "type": "object",
+ "properties": {
+ "cardAspectRatio": {
+ "type": "integer"
},
- {
- "type": "null"
+ "cardAspectRatioValue": {
+ "type": "number"
+ },
+ "cardLayout": {
+ "type": "integer"
+ },
+ "cardSize": {
+ "type": "integer"
+ },
+ "cardWidth": {
+ "type": "integer"
+ },
+ "coverFrom": {
+ "type": "integer"
+ },
+ "coverFromAssetKeyID": {
+ "type": "string"
+ },
+ "displayEmptyFields": {
+ "type": "boolean"
+ },
+ "displayFieldName": {
+ "type": "boolean"
+ },
+ "fields": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVViewKanbanField"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "fillColBackgroundColor": {
+ "type": "boolean"
+ },
+ "fitImage": {
+ "type": "boolean"
}
- ]
+ },
+ "required": [
+ "coverFrom",
+ "cardAspectRatio",
+ "cardAspectRatioValue",
+ "cardSize",
+ "cardWidth",
+ "cardLayout",
+ "fitImage",
+ "displayFieldName",
+ "displayEmptyFields",
+ "fillColBackgroundColor",
+ "fields"
+ ],
+ "additionalProperties": false
+ }
+ ]
+ },
+ "AVLayoutTable": {
+ "anyOf": [
+ {
+ "type": "object",
+ "properties": {
+ "columns": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVViewTableColumn"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "filters": {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVViewFilter"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "id": {
+ "type": "string"
+ },
+ "pageSize": {
+ "type": "integer"
+ },
+ "rowIds": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "showIcon": {
+ "type": "boolean"
+ },
+ "sorts": {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVViewSort"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "spec": {
+ "type": "integer"
+ },
+ "wrapField": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "columns",
+ "rowIds",
+ "spec",
+ "id",
+ "showIcon",
+ "wrapField"
+ ],
+ "additionalProperties": false
},
- "statusBar": {
- "anyOf": [
- {
- "$ref": "#/$defs/BazaarStatusBar"
+ {
+ "type": "object",
+ "properties": {
+ "columns": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVViewTableColumn"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- {
- "type": "null"
+ "rowIds": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
}
+ },
+ "required": [
+ "columns",
+ "rowIds"
+ ],
+ "additionalProperties": false
+ }
+ ]
+ },
+ "AVNewItemFieldValue": {
+ "type": "object",
+ "properties": {
+ "mode": {
+ "type": "string",
+ "enum": [
+ "static",
+ "currentTime"
]
},
- "themeDark": {
- "type": "string"
- },
- "themeJS": {
- "type": "boolean"
- },
- "themeLight": {
+ "value": {
+ "$ref": "#/$defs/AVValue"
+ }
+ },
+ "required": [
+ "mode"
+ ],
+ "additionalProperties": false
+ },
+ "AVNewItemSaveLocation": {
+ "type": "object",
+ "properties": {
+ "boxID": {
"type": "string"
},
- "themeVer": {
+ "pathTemplate": {
"type": "string"
}
},
"required": [
- "bodyGradient",
- "closeButtonBehavior",
- "codeBlockThemeDark",
- "codeBlockThemeLight",
- "darkThemes",
- "entryVisibility",
- "globalFontFamilies",
- "hideStatusBar",
- "hideToolbar",
- "icon",
- "iconVer",
- "icons",
- "lang",
- "lightThemes",
- "mode",
- "modeOS",
- "notifications",
- "statusBar",
- "themeDark",
- "themeJS",
- "themeLight",
- "themeVer"
+ "pathTemplate"
],
"additionalProperties": false
},
- "BazaarAppearanceIcon": {
+ "AVNewItemTemplate": {
"type": "object",
"properties": {
- "label": {
+ "contentTemplatePath": {
+ "type": "string"
+ },
+ "fieldValues": {
+ "type": "object",
+ "additionalProperties": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVNewItemFieldValue"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "hideInFileTree": {
+ "type": "boolean"
+ },
+ "icon": {
+ "type": "string"
+ },
+ "id": {
"type": "string"
},
"name": {
"type": "string"
+ },
+ "primaryKeyTemplate": {
+ "type": "string"
+ },
+ "saveLocation": {
+ "$ref": "#/$defs/AVNewItemSaveLocation"
+ },
+ "targetType": {
+ "type": "string",
+ "enum": [
+ "detached",
+ "document"
+ ]
}
},
"required": [
- "label",
- "name"
+ "id",
+ "name",
+ "targetType"
],
"additionalProperties": false
},
- "BazaarAppearancePackagesData": {
+ "AVPasteRowsData": {
"type": "object",
"properties": {
- "appearance": {
+ "inferableKeyIDs": {
"anyOf": [
{
- "$ref": "#/$defs/BazaarAppearance"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "packages": {
+ "view": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/BazaarPackage"
- },
- {
- "type": "null"
- }
- ]
- }
+ "$ref": "#/$defs/AVTable"
},
{
"type": "null"
@@ -7009,103 +8545,131 @@
}
},
"required": [
- "appearance",
- "packages"
+ "inferableKeyIDs",
+ "view"
],
"additionalProperties": false
},
- "BazaarAppearanceTheme": {
+ "AVPathsData": {
"type": "object",
"properties": {
- "frontends": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "label": {
- "type": "string"
- },
- "name": {
- "type": "string"
+ "paths": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
"required": [
- "label",
- "name"
+ "paths"
],
"additionalProperties": false
},
- "BazaarBodyGradient": {
+ "AVPrimaryValuesData": {
"type": "object",
"properties": {
- "dark": {
- "$ref": "#/$defs/BazaarBodyGradientColor"
- },
- "light": {
- "$ref": "#/$defs/BazaarBodyGradientColor"
+ "blockIDs": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "mode": {
- "type": "string"
- }
- },
- "required": [
- "dark",
- "light",
- "mode"
- ],
- "additionalProperties": false
- },
- "BazaarBodyGradientColor": {
- "type": "object",
- "properties": {
- "color": {
+ "name": {
"type": "string"
},
- "opacity": {
- "type": "number"
+ "rows": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVKeyValues"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "total": {
+ "type": "integer"
}
},
"required": [
- "color",
- "opacity"
+ "blockIDs",
+ "name",
+ "rows",
+ "total"
],
"additionalProperties": false
},
- "BazaarEditorFont": {
+ "AVRelation": {
"type": "object",
"properties": {
- "displayName": {
+ "avID": {
"type": "string"
},
- "family": {
+ "backKeyID": {
"type": "string"
},
- "weight": {
- "type": "integer"
+ "candidateFilters": {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVViewFilter"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "isTwoWay": {
+ "type": "boolean"
}
},
"required": [
- "displayName",
- "family",
- "weight"
+ "avID",
+ "backKeyID",
+ "isTwoWay"
],
"additionalProperties": false
},
- "BazaarEntryVisibility": {
+ "AVRelationCandidatesData": {
"type": "object",
"properties": {
- "active": {
- "type": "string"
+ "blockIDs": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "profiles": {
+ "columns": {
"anyOf": [
{
"type": "array",
"items": {
"anyOf": [
{
- "$ref": "#/$defs/BazaarEntryVisibilityProfile"
+ "$ref": "#/$defs/AVTableColumn"
},
{
"type": "null"
@@ -7118,26 +8682,19 @@
}
]
},
- "version": {
- "type": "integer"
- }
- },
- "required": [
- "active",
- "profiles",
- "version"
- ],
- "additionalProperties": false
- },
- "BazaarEntryVisibilityProfile": {
- "type": "object",
- "properties": {
- "entries": {
+ "customColors": {
"anyOf": [
{
- "type": "object",
- "additionalProperties": {
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVAttributeViewCustomColor"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
{
@@ -7145,23 +8702,20 @@
}
]
},
- "id": {
+ "name": {
"type": "string"
},
- "name": {
+ "notebookID": {
"type": "string"
},
- "orders": {
+ "rows": {
"anyOf": [
{
- "type": "object",
- "additionalProperties": {
+ "type": "array",
+ "items": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "$ref": "#/$defs/AVTableRow"
},
{
"type": "null"
@@ -7173,25 +8727,20 @@
"type": "null"
}
]
- }
- },
- "required": [
- "entries",
- "id",
- "name",
- "orders"
- ],
- "additionalProperties": false
- },
- "BazaarFunding": {
- "type": "object",
- "properties": {
- "custom": {
+ },
+ "selectedRows": {
"anyOf": [
{
"type": "array",
"items": {
- "type": "string"
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVTableRow"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
{
@@ -7199,154 +8748,82 @@
}
]
},
- "github": {
- "type": "string"
- },
- "links": {
- "type": "array",
- "items": {
- "$ref": "#/$defs/BazaarFundingLink"
- }
- },
- "openCollective": {
- "type": "string"
- },
- "patreon": {
- "type": "string"
- }
- },
- "required": [
- "custom",
- "github",
- "openCollective",
- "patreon"
- ],
- "additionalProperties": false
- },
- "BazaarFundingLink": {
- "type": "object",
- "properties": {
- "label": {
- "type": "string"
- },
- "url": {
- "type": "string"
+ "total": {
+ "type": "integer"
}
},
"required": [
- "label",
- "url"
+ "blockIDs",
+ "columns",
+ "customColors",
+ "name",
+ "notebookID",
+ "rows",
+ "selectedRows",
+ "total"
],
"additionalProperties": false
},
- "BazaarLocalInstallData": {
+ "AVRelativeDate": {
"type": "object",
"properties": {
- "minAppVersion": {
- "type": "string"
- },
- "packageName": {
- "type": "string"
+ "count": {
+ "type": "integer"
},
- "packageType": {
- "type": "string"
+ "direction": {
+ "type": "integer"
},
- "updated": {
- "type": "boolean"
+ "unit": {
+ "type": "integer"
}
},
"required": [
- "packageName",
- "packageType",
- "updated"
+ "count",
+ "direction",
+ "unit"
],
"additionalProperties": false
},
- "BazaarLocalInstallError": {
+ "AVRelativeDateInput": {
"type": "object",
"properties": {
- "minAppVersion": {
- "type": "string"
- },
- "packageName": {
- "type": "string"
- },
- "packageType": {
- "type": "string"
- },
- "reason": {
- "type": "string",
- "enum": [
- "install-failed",
- "package-exists",
- "package-incompatible"
+ "count": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
]
- }
- },
- "required": [
- "minAppVersion",
- "packageName",
- "packageType",
- "reason"
- ],
- "additionalProperties": false
- },
- "BazaarLocalInstallResult": {
- "anyOf": [
- {
- "$ref": "#/$defs/BazaarLocalInstallData"
- },
- {
- "$ref": "#/$defs/BazaarLocalInstallError"
- }
- ]
- },
- "BazaarNotifications": {
- "type": "object",
- "properties": {
- "browserCompatibility": {
- "type": "boolean"
- },
- "docTreeMaxList": {
- "type": "boolean"
- },
- "formatPainterTip": {
- "type": "boolean"
- },
- "selectAllIncompleteTip": {
- "type": "boolean"
},
- "selectAllTip": {
- "type": "boolean"
- },
- "tagMaxList": {
- "type": "boolean"
+ "direction": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "workspaceNotSSD": {
- "type": "boolean"
+ "unit": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
- "required": [
- "browserCompatibility",
- "docTreeMaxList",
- "tagMaxList",
- "workspaceNotSSD"
- ],
"additionalProperties": false
},
- "BazaarPackage": {
+ "AVRenderData": {
"type": "object",
"properties": {
- "alternatives": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "author": {
- "type": "string"
- },
- "backends": {
+ "colorOrder": {
"anyOf": [
{
"type": "array",
@@ -7359,55 +8836,29 @@
}
]
},
- "bazaarIncompatible": {
- "type": "boolean"
- },
- "bootAppearances": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "current": {
- "type": "boolean"
- },
- "deprecated": {
- "type": "boolean"
- },
- "deprecatedReason": {
- "type": "object",
- "additionalProperties": {
- "type": "string"
- }
- },
- "description": {
+ "contextFilter": {
"anyOf": [
{
- "type": "object",
- "additionalProperties": {
- "type": "string"
- }
+ "$ref": "#/$defs/AVAttributeViewContextFilter"
},
{
"type": "null"
}
]
},
- "disabledInPublish": {
- "type": "boolean"
- },
- "disallowInstall": {
- "type": "boolean"
- },
- "disallowUpdate": {
- "type": "boolean"
- },
- "displayName": {
+ "contextFilterFields": {
"anyOf": [
{
- "type": "object",
- "additionalProperties": {
- "type": "string"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVAttributeViewContextFilterField"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
{
@@ -7415,18 +8866,19 @@
}
]
},
- "downloads": {
- "type": "integer"
- },
- "enabled": {
- "type": "boolean"
- },
- "frontends": {
+ "customColors": {
"anyOf": [
{
"type": "array",
"items": {
- "type": "string"
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVAttributeViewCustomColor"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
{
@@ -7434,63 +8886,31 @@
}
]
},
- "funding": {
- "anyOf": [
- {
- "$ref": "#/$defs/BazaarFunding"
- },
- {
- "type": "null"
- }
- ]
- },
- "hInstallDate": {
- "type": "string"
- },
- "hInstallSize": {
- "type": "string"
- },
- "hSize": {
+ "defaultTemplateID": {
"type": "string"
},
- "hUpdated": {
+ "id": {
"type": "string"
},
- "hasStorageData": {
+ "isMirror": {
"type": "boolean"
},
- "icon": {
- "type": "string"
- },
- "iconURL": {
+ "name": {
"type": "string"
},
- "installSize": {
- "type": "integer"
- },
- "installTime": {
- "type": "integer"
- },
- "installed": {
- "type": "boolean"
- },
- "installedIncompatible": {
- "type": "boolean"
- },
- "invalidReason": {
- "type": "string",
- "enum": [
- "missing-manifest",
- "invalid-manifest",
- "name-mismatch"
- ]
- },
- "kernels": {
+ "newItemTemplates": {
"anyOf": [
{
"type": "array",
"items": {
- "type": "string"
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVNewItemTemplate"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
{
@@ -7498,12 +8918,15 @@
}
]
},
- "keywords": {
+ "target": {
+ "$ref": "#/$defs/AVAttributeViewRenderTarget"
+ },
+ "usedCustomColorIndexes": {
"anyOf": [
{
"type": "array",
"items": {
- "type": "string"
+ "type": "integer"
}
},
{
@@ -7511,166 +8934,119 @@
}
]
},
- "minAppVersion": {
+ "view": {
+ "$ref": "#/$defs/AVViewInstance"
+ },
+ "viewID": {
"type": "string"
},
- "modes": {
+ "viewType": {
+ "type": "string",
+ "enum": [
+ "table",
+ "gallery",
+ "kanban"
+ ]
+ },
+ "views": {
"anyOf": [
{
"type": "array",
"items": {
- "type": "string"
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVViewData"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
{
"type": "null"
}
]
+ }
+ },
+ "required": [
+ "colorOrder",
+ "contextFilter",
+ "contextFilterFields",
+ "customColors",
+ "defaultTemplateID",
+ "id",
+ "isMirror",
+ "name",
+ "newItemTemplates",
+ "usedCustomColorIndexes",
+ "view",
+ "viewID",
+ "viewType",
+ "views"
+ ],
+ "additionalProperties": false
+ },
+ "AVRenderResult": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVRenderData"
},
- "name": {
- "type": "string"
- },
- "openIssues": {
- "type": "integer"
- },
- "outdated": {
- "type": "boolean"
- },
- "preferredDeprecatedReason": {
- "type": "string"
- },
- "preferredDesc": {
- "type": "string"
- },
- "preferredFunding": {
- "type": "string"
- },
- "preferredName": {
- "type": "string"
- },
- "preferredReadme": {
- "type": "string"
- },
- "preview": {
- "type": "string"
- },
- "previewURL": {
- "type": "string"
- },
- "rating": {
- "$ref": "#/$defs/BazaarPackageRating"
- },
- "ratingAvailable": {
- "type": "boolean"
- },
- "readme": {
+ {
+ "$ref": "#/$defs/AVViewNotFound"
+ }
+ ]
+ },
+ "AVRollup": {
+ "type": "object",
+ "properties": {
+ "calc": {
"anyOf": [
{
- "type": "object",
- "additionalProperties": {
- "type": "string"
- }
+ "$ref": "#/$defs/AVRollupCalc"
},
{
"type": "null"
}
]
},
- "repoHash": {
- "type": "string"
- },
- "repoRef": {
- "type": "string"
- },
- "repoURL": {
- "type": "string"
- },
- "size": {
- "type": "integer"
- },
- "stars": {
- "type": "integer"
- },
- "updateRequiredMinAppVer": {
- "type": "string"
- },
- "updateTime": {
- "type": "integer"
- },
- "updated": {
- "type": "string"
+ "filters": {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVViewFilter"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
- "url": {
+ "keyID": {
"type": "string"
},
- "userDisabledInPublish": {
- "type": "boolean"
- },
- "version": {
+ "relationKeyID": {
"type": "string"
}
},
"required": [
- "author",
- "backends",
- "current",
- "description",
- "disabledInPublish",
- "disallowInstall",
- "disallowUpdate",
- "displayName",
- "downloads",
- "frontends",
- "funding",
- "hInstallDate",
- "hInstallSize",
- "hSize",
- "hUpdated",
- "iconURL",
- "installSize",
- "installTime",
- "installed",
- "kernels",
- "keywords",
- "minAppVersion",
- "name",
- "openIssues",
- "outdated",
- "preferredDesc",
- "preferredFunding",
- "preferredName",
- "preferredReadme",
- "previewURL",
- "ratingAvailable",
- "readme",
- "repoHash",
- "repoURL",
- "size",
- "stars",
- "updateTime",
- "updated",
- "url",
- "version"
+ "calc",
+ "keyID",
+ "relationKeyID"
],
"additionalProperties": false
},
- "BazaarPackageDetail": {
+ "AVRollupCalc": {
"type": "object",
"properties": {
- "available": {
- "anyOf": [
- {
- "$ref": "#/$defs/BazaarPackage"
- },
- {
- "type": "null"
- }
- ]
+ "operator": {
+ "type": "string"
},
- "installed": {
+ "result": {
"anyOf": [
{
- "$ref": "#/$defs/BazaarPackage"
+ "$ref": "#/$defs/AVValue"
},
{
"type": "null"
@@ -7679,63 +9055,25 @@
}
},
"required": [
- "available",
- "installed"
- ],
- "additionalProperties": false
- },
- "BazaarPackageRating": {
- "type": "object",
- "properties": {
- "average": {
- "type": "number"
- },
- "count": {
- "type": "integer"
- },
- "distribution": {
- "type": "array",
- "items": {
- "type": "integer"
- },
- "minItems": 5,
- "maxItems": 5
- }
- },
- "required": [
- "average",
- "count",
- "distribution"
- ],
- "additionalProperties": false
- },
- "BazaarPackageSizeData": {
- "type": "object",
- "properties": {
- "hInstallSize": {
- "type": "string"
- },
- "installSize": {
- "type": "integer"
- }
- },
- "required": [
- "hInstallSize",
- "installSize"
+ "operator",
+ "result"
],
"additionalProperties": false
},
- "BazaarPackagesData": {
+ "AVRowOrder": {
"type": "object",
"properties": {
- "packages": {
+ "groups": {
"anyOf": [
{
- "type": "array",
- "items": {
+ "type": "object",
+ "additionalProperties": {
"anyOf": [
{
- "$ref": "#/$defs/BazaarPackage"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
@@ -7747,74 +9085,8 @@
"type": "null"
}
]
- }
- },
- "required": [
- "packages"
- ],
- "additionalProperties": false
- },
- "BazaarREADMEData": {
- "type": "object",
- "properties": {
- "html": {
- "type": "string"
- }
- },
- "required": [
- "html"
- ],
- "additionalProperties": false
- },
- "BazaarRatingData": {
- "type": "object",
- "properties": {
- "rating": {
- "$ref": "#/$defs/BazaarPackageRating"
- },
- "ratingAvailable": {
- "type": "boolean"
- },
- "userRating": {
- "type": "integer"
- }
- },
- "required": [
- "ratingAvailable",
- "userRating"
- ],
- "additionalProperties": false
- },
- "BazaarRatingError": {
- "type": "object",
- "properties": {
- "errorCode": {
- "type": "string",
- "enum": [
- "bazaarRatingRateLimited",
- "bazaarPackagePending"
- ]
- }
- },
- "required": [
- "errorCode"
- ],
- "additionalProperties": false
- },
- "BazaarRatingResult": {
- "anyOf": [
- {
- "$ref": "#/$defs/BazaarRatingData"
},
- {
- "$ref": "#/$defs/BazaarRatingError"
- }
- ]
- },
- "BazaarRatingsData": {
- "type": "object",
- "properties": {
- "eligiblePackageNames": {
+ "itemIDs": {
"anyOf": [
{
"type": "array",
@@ -7827,14 +9099,14 @@
}
]
},
- "ratings": {
+ "sorts": {
"anyOf": [
{
- "type": "object",
- "additionalProperties": {
+ "type": "array",
+ "items": {
"anyOf": [
{
- "$ref": "#/$defs/BazaarPackageRating"
+ "$ref": "#/$defs/AVViewSort"
},
{
"type": "null"
@@ -7849,79 +9121,69 @@
}
},
"required": [
- "eligiblePackageNames",
- "ratings"
+ "groups",
+ "itemIDs",
+ "sorts"
],
"additionalProperties": false
},
- "BazaarStatusBar": {
+ "AVRowOrderChange": {
"type": "object",
"properties": {
- "msgDataSyncDisabled": {
- "type": "boolean"
- },
- "msgTaskAssetDatabaseIndexCommitDisabled": {
- "type": "boolean"
- },
- "msgTaskDatabaseIndexCommitDisabled": {
- "type": "boolean"
- },
- "msgTaskHistoryDatabaseIndexCommitDisabled": {
- "type": "boolean"
+ "expected": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVRowOrder"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "msgTaskHistoryGenerateFileDisabled": {
- "type": "boolean"
+ "rowOrder": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVRowOrder"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "version": {
- "type": "integer"
+ "validateGroup": {
+ "type": "string"
}
},
"required": [
- "msgDataSyncDisabled",
- "msgTaskAssetDatabaseIndexCommitDisabled",
- "msgTaskDatabaseIndexCommitDisabled",
- "msgTaskHistoryDatabaseIndexCommitDisabled",
- "msgTaskHistoryGenerateFileDisabled",
- "version"
+ "expected",
+ "rowOrder"
],
"additionalProperties": false
},
- "BazaarUpdatedData": {
+ "AVRowSortOperation": {
"type": "object",
"properties": {
- "icons": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/BazaarPackageDetail"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- {
- "type": "null"
- }
+ "action": {
+ "type": "string",
+ "enum": [
+ "sortAttrViewRow"
]
},
- "plugins": {
+ "avID": {
+ "type": "string"
+ },
+ "backRelationKeyID": {
+ "type": "string"
+ },
+ "blockID": {
+ "type": "string"
+ },
+ "blockIDs": {
"anyOf": [
{
"type": "array",
"items": {
- "anyOf": [
- {
- "$ref": "#/$defs/BazaarPackageDetail"
- },
- {
- "type": "null"
- }
- ]
+ "type": "string"
}
},
{
@@ -7929,19 +9191,12 @@
}
]
},
- "templates": {
+ "context": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/BazaarPackageDetail"
- },
- {
- "type": "null"
- }
- ]
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
}
},
{
@@ -7949,65 +9204,154 @@
}
]
},
- "themes": {
+ "data": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/BazaarPackageDetail"
- },
- {
- "type": "null"
- }
- ]
- }
+ "$ref": "#/$defs/AVRowOrderChange"
},
{
"type": "null"
}
]
},
- "widgets": {
+ "deckID": {
+ "type": "string"
+ },
+ "format": {
+ "type": "string"
+ },
+ "groupID": {
+ "type": "string"
+ },
+ "id": {
+ "type": "string"
+ },
+ "ignoreDefaultFill": {
+ "type": "boolean"
+ },
+ "isDetached": {
+ "type": "boolean"
+ },
+ "isTwoWay": {
+ "type": "boolean"
+ },
+ "keyID": {
+ "type": "string"
+ },
+ "layout": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "nextID": {
+ "type": "string"
+ },
+ "parentID": {
+ "type": "string"
+ },
+ "previousID": {
+ "type": "string"
+ },
+ "removeDest": {
+ "type": "boolean"
+ },
+ "retData": {
+ "type": "null"
+ },
+ "rootID": {
+ "type": "string"
+ },
+ "rowID": {
+ "type": "string"
+ },
+ "srcIDs": {
"anyOf": [
{
"type": "array",
"items": {
- "anyOf": [
- {
- "$ref": "#/$defs/BazaarPackageDetail"
- },
- {
- "type": "null"
- }
- ]
+ "type": "string"
}
},
{
"type": "null"
}
]
+ },
+ "srcs": {
+ "type": "null"
+ },
+ "targetGroupID": {
+ "type": "string"
+ },
+ "type": {
+ "type": "string",
+ "enum": [
+ ""
+ ]
+ },
+ "viewID": {
+ "type": "string"
+ },
+ "viewIDs": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
}
},
"required": [
- "icons",
- "plugins",
- "templates",
- "themes",
- "widgets"
+ "action",
+ "avID",
+ "backRelationKeyID",
+ "blockID",
+ "blockIDs",
+ "context",
+ "data",
+ "deckID",
+ "format",
+ "groupID",
+ "id",
+ "ignoreDefaultFill",
+ "isDetached",
+ "isTwoWay",
+ "keyID",
+ "layout",
+ "name",
+ "nextID",
+ "parentID",
+ "previousID",
+ "removeDest",
+ "retData",
+ "rootID",
+ "rowID",
+ "srcIDs",
+ "srcs",
+ "targetGroupID",
+ "type",
+ "viewID"
],
"additionalProperties": false
},
- "BazaarUserRatingsData": {
+ "AVRowSortPreview": {
"type": "object",
"properties": {
- "eligiblePackageNames": {
+ "conflict": {
+ "type": "boolean"
+ },
+ "doOperations": {
"anyOf": [
{
"type": "array",
"items": {
- "type": "string"
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVRowSortOperation"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
{
@@ -8015,12 +9359,19 @@
}
]
},
- "userRatings": {
+ "undoOperations": {
"anyOf": [
{
- "type": "object",
- "additionalProperties": {
- "type": "integer"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVRowSortOperation"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
{
@@ -8030,35 +9381,23 @@
}
},
"required": [
- "eligiblePackageNames",
- "userRatings"
+ "conflict",
+ "doOperations",
+ "undoOperations"
],
"additionalProperties": false
},
- "BazaarUserRatingsResult": {
- "anyOf": [
- {
- "$ref": "#/$defs/BazaarUserRatingsData"
- },
- {
- "$ref": "#/$defs/BazaarRatingError"
- }
- ]
- },
- "BlockBreadcrumbChildren": {
+ "AVSearchData": {
"type": "object",
"properties": {
- "hasMore": {
- "type": "boolean"
- },
- "items": {
+ "results": {
"anyOf": [
{
"type": "array",
"items": {
"anyOf": [
{
- "$ref": "#/$defs/BlockPath"
+ "$ref": "#/$defs/AVAvSearchResult"
},
{
"type": "null"
@@ -8073,104 +9412,506 @@
}
},
"required": [
- "hasMore",
- "items"
+ "results"
],
"additionalProperties": false
},
- "BlockBreadcrumbChildrenRequestInput": {
+ "AVSelectOption": {
"type": "object",
"properties": {
- "excludeTypes": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- {
- "type": "null"
- }
- ]
+ "color": {
+ "type": "string"
},
- "id": {
+ "desc": {
"type": "string"
},
- "ids": {
- "anyOf": [
- {
+ "name": {
+ "type": "string"
+ },
+ "resolvedColor": {
+ "$ref": "#/$defs/AVAttributeViewColor"
+ }
+ },
+ "required": [
+ "color",
+ "desc",
+ "name"
+ ],
+ "additionalProperties": false
+ },
+ "AVTable": {
+ "anyOf": [
+ {
+ "type": "object",
+ "properties": {
+ "columns": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVTableColumn"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "desc": {
+ "type": "string"
+ },
+ "filters": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVViewFilter"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "group": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVViewGroup"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "groupCalc": {
+ "$ref": "#/$defs/AVGroupCalc"
+ },
+ "groupFolded": {
+ "type": "boolean"
+ },
+ "groupHidden": {
+ "type": "integer"
+ },
+ "groupKey": {
+ "$ref": "#/$defs/AVKey"
+ },
+ "groupValue": {
+ "$ref": "#/$defs/AVValue"
+ },
+ "groups": {
"type": "array",
"items": {
- "type": "string"
+ "$ref": "#/$defs/AVViewInstance"
}
},
- {
- "type": "null"
+ "hideAttrViewName": {
+ "type": "boolean"
+ },
+ "icon": {
+ "type": "string"
+ },
+ "id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "pageSize": {
+ "type": "integer"
+ },
+ "rowCount": {
+ "type": "integer"
+ },
+ "rows": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVTableRow"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "showIcon": {
+ "type": "boolean"
+ },
+ "sorts": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVViewSort"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "wrapField": {
+ "type": "boolean"
}
- ]
+ },
+ "required": [
+ "columns",
+ "rows",
+ "rowCount",
+ "id",
+ "icon",
+ "name",
+ "desc",
+ "hideAttrViewName",
+ "filters",
+ "sorts",
+ "group",
+ "pageSize",
+ "showIcon",
+ "wrapField",
+ "groupFolded",
+ "groupHidden"
+ ],
+ "additionalProperties": false
},
- "limit": {
- "anyOf": [
- {
- "type": "number"
+ {
+ "type": "object",
+ "properties": {
+ "columns": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVTableColumn"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- {
- "type": "null"
+ "rowCount": {
+ "type": "integer"
+ },
+ "rows": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVTableRow"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
}
- ]
- },
- "notebook": {
- "anyOf": [
- {
+ },
+ "required": [
+ "columns",
+ "rows",
+ "rowCount"
+ ],
+ "additionalProperties": false
+ }
+ ]
+ },
+ "AVTableCell": {
+ "anyOf": [
+ {
+ "type": "object",
+ "properties": {
+ "bgColor": {
"type": "string"
},
- {
- "type": "null"
+ "color": {
+ "type": "string"
+ },
+ "id": {
+ "type": "string"
+ },
+ "value": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVValue"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "valueType": {
+ "type": "string",
+ "enum": [
+ "block",
+ "text",
+ "number",
+ "date",
+ "select",
+ "mSelect",
+ "url",
+ "email",
+ "phone",
+ "mAsset",
+ "template",
+ "created",
+ "updated",
+ "checkbox",
+ "relation",
+ "rollup",
+ "lineNumber"
+ ]
}
- ]
+ },
+ "required": [
+ "color",
+ "bgColor",
+ "id",
+ "value",
+ "valueType"
+ ],
+ "additionalProperties": false
},
- "offset": {
- "anyOf": [
- {
- "type": "number"
+ {
+ "type": "object",
+ "properties": {
+ "bgColor": {
+ "type": "string"
},
- {
- "type": "null"
+ "color": {
+ "type": "string"
}
- ]
+ },
+ "required": [
+ "color",
+ "bgColor"
+ ],
+ "additionalProperties": false
}
- },
- "required": [
- "id"
- ],
- "additionalProperties": false
+ ]
},
- "BlockBreadcrumbRequestInput": {
- "type": "object",
- "properties": {
- "excludeTypes": {
- "anyOf": [
- {
+ "AVTableColumn": {
+ "anyOf": [
+ {
+ "type": "object",
+ "properties": {
+ "align": {
+ "type": "string",
+ "enum": [
+ "",
+ "left",
+ "center",
+ "right"
+ ]
+ },
+ "calc": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVFieldCalc"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "created": {
+ "$ref": "#/$defs/AVCreated"
+ },
+ "date": {
+ "$ref": "#/$defs/AVDate"
+ },
+ "dateFormat": {
+ "type": "string",
+ "enum": [
+ "",
+ "full",
+ "month-day-year",
+ "day-month-year",
+ "year-month-day"
+ ]
+ },
+ "desc": {
+ "type": "string"
+ },
+ "hidden": {
+ "type": "boolean"
+ },
+ "icon": {
+ "type": "string"
+ },
+ "id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "numberFormat": {
+ "type": "string"
+ },
+ "options": {
"type": "array",
"items": {
- "type": "string"
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVSelectOption"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
- {
- "type": "null"
+ "pin": {
+ "type": "boolean"
+ },
+ "relation": {
+ "$ref": "#/$defs/AVRelation"
+ },
+ "renderTemplate": {
+ "type": "string"
+ },
+ "rollup": {
+ "$ref": "#/$defs/AVRollup"
+ },
+ "template": {
+ "type": "string"
+ },
+ "type": {
+ "type": "string",
+ "enum": [
+ "block",
+ "text",
+ "number",
+ "date",
+ "select",
+ "mSelect",
+ "url",
+ "email",
+ "phone",
+ "mAsset",
+ "template",
+ "created",
+ "updated",
+ "checkbox",
+ "relation",
+ "rollup",
+ "lineNumber"
+ ]
+ },
+ "updated": {
+ "$ref": "#/$defs/AVUpdated"
+ },
+ "width": {
+ "type": "string"
+ },
+ "wrap": {
+ "type": "boolean"
}
- ]
- },
- "id": {
- "type": "string"
+ },
+ "required": [
+ "pin",
+ "width",
+ "align",
+ "id",
+ "name",
+ "type",
+ "icon",
+ "wrap",
+ "hidden",
+ "desc",
+ "calc",
+ "numberFormat",
+ "template"
+ ],
+ "additionalProperties": false
},
- "ids": {
+ {
+ "type": "object",
+ "properties": {
+ "align": {
+ "type": "string",
+ "enum": [
+ "",
+ "left",
+ "center",
+ "right"
+ ]
+ },
+ "pin": {
+ "type": "boolean"
+ },
+ "width": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "pin",
+ "width",
+ "align"
+ ],
+ "additionalProperties": false
+ }
+ ]
+ },
+ "AVTableRow": {
+ "type": "object",
+ "properties": {
+ "cells": {
"anyOf": [
{
"type": "array",
"items": {
- "type": "string"
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVTableCell"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
{
@@ -8178,148 +9919,185 @@
}
]
},
- "notebook": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "id"
- ],
- "additionalProperties": false
- },
- "BlockDOMData": {
- "type": "object",
- "properties": {
- "dom": {
- "type": "string"
- },
"id": {
"type": "string"
}
},
"required": [
- "dom",
+ "cells",
"id"
],
"additionalProperties": false
},
- "BlockDeleteData": {
+ "AVUnavailableNotebook": {
"type": "object",
"properties": {
- "createEmptyParagraph": {
- "type": "boolean"
+ "unavailableNotebook": {
+ "type": "boolean",
+ "enum": [
+ true
+ ]
}
},
"required": [
- "createEmptyParagraph"
+ "unavailableNotebook"
],
"additionalProperties": false
},
- "BlockFoldData": {
+ "AVUpdated": {
"type": "object",
"properties": {
- "isFolded": {
- "type": "boolean"
- },
- "isRoot": {
+ "includeTime": {
"type": "boolean"
}
},
"required": [
- "isFolded",
- "isRoot"
+ "includeTime"
],
"additionalProperties": false
},
- "BlockIDRequestInput": {
+ "AVValue": {
"type": "object",
"properties": {
+ "block": {
+ "$ref": "#/$defs/AVValueBlock"
+ },
+ "blockID": {
+ "type": "string"
+ },
+ "checkbox": {
+ "$ref": "#/$defs/AVValueCheckbox"
+ },
+ "created": {
+ "$ref": "#/$defs/AVValueCreated"
+ },
+ "createdAt": {
+ "type": "integer"
+ },
+ "date": {
+ "$ref": "#/$defs/AVValueDate"
+ },
+ "email": {
+ "$ref": "#/$defs/AVValueEmail"
+ },
"id": {
"type": "string"
- }
- },
- "required": [
- "id"
- ],
- "additionalProperties": false
- },
- "BlockIDsRequestInput": {
- "type": "object",
- "properties": {
- "ids": {
+ },
+ "isDetached": {
+ "type": "boolean"
+ },
+ "keyID": {
+ "type": "string"
+ },
+ "mAsset": {
"type": "array",
"items": {
- "type": "string"
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVValueAsset"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "mSelect": {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVValueSelect"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
+ },
+ "number": {
+ "$ref": "#/$defs/AVValueNumber"
+ },
+ "phone": {
+ "$ref": "#/$defs/AVValuePhone"
+ },
+ "relation": {
+ "$ref": "#/$defs/AVValueRelation"
+ },
+ "renderedContent": {
+ "type": "string"
+ },
+ "rollup": {
+ "$ref": "#/$defs/AVValueRollup"
+ },
+ "template": {
+ "$ref": "#/$defs/AVValueTemplate"
+ },
+ "text": {
+ "$ref": "#/$defs/AVValueText"
+ },
+ "type": {
+ "type": "string",
+ "enum": [
+ "block",
+ "text",
+ "number",
+ "date",
+ "select",
+ "mSelect",
+ "url",
+ "email",
+ "phone",
+ "mAsset",
+ "template",
+ "created",
+ "updated",
+ "checkbox",
+ "relation",
+ "rollup",
+ "lineNumber"
+ ]
+ },
+ "updated": {
+ "$ref": "#/$defs/AVValueUpdated"
+ },
+ "updatedAt": {
+ "type": "integer"
+ },
+ "url": {
+ "$ref": "#/$defs/AVValueURL"
}
},
- "required": [
- "ids"
- ],
"additionalProperties": false
},
- "BlockInfoData": {
- "anyOf": [
- {
- "$ref": "#/$defs/FullBlockInfo"
- },
- {
- "$ref": "#/$defs/PublishedBlockInfo"
- }
- ]
- },
- "BlockInfoRequestInput": {
+ "AVValueAsset": {
"type": "object",
"properties": {
- "id": {
+ "content": {
"type": "string"
},
- "ids": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- {
- "type": "null"
- }
- ]
+ "name": {
+ "type": "string"
},
- "notebook": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
+ "type": {
+ "type": "string",
+ "enum": [
+ "file",
+ "image"
]
}
},
"required": [
- "id"
+ "content",
+ "name",
+ "type"
],
"additionalProperties": false
},
- "BlockInsertInputInput": {
+ "AVValueAssetInput": {
"type": "object",
"properties": {
- "data": {
- "type": "string"
- },
- "dataType": {
- "type": "string"
- },
- "nextID": {
+ "content": {
"anyOf": [
{
"type": "string"
@@ -8329,7 +10107,7 @@
}
]
},
- "parentID": {
+ "name": {
"anyOf": [
{
"type": "string"
@@ -8339,7 +10117,11 @@
}
]
},
- "previousID": {
+ "type": {
+ "enum": [
+ "file",
+ "image"
+ ],
"anyOf": [
{
"type": "string"
@@ -8350,58 +10132,63 @@
]
}
},
- "required": [
- "data",
- "dataType"
- ],
"additionalProperties": false
},
- "BlockKramdownData": {
+ "AVValueBlock": {
"type": "object",
"properties": {
- "id": {
+ "content": {
"type": "string"
},
- "kramdown": {
+ "created": {
+ "type": "integer"
+ },
+ "icon": {
+ "type": "string"
+ },
+ "id": {
"type": "string"
+ },
+ "refSubtype": {
+ "type": "string",
+ "enum": [
+ "s",
+ "d"
+ ]
+ },
+ "updated": {
+ "type": "integer"
}
},
"required": [
- "id",
- "kramdown"
+ "content"
],
"additionalProperties": false
},
- "BlockKramdownRequestInput": {
+ "AVValueBlockInput": {
"type": "object",
"properties": {
- "id": {
- "type": "string"
- },
- "ids": {
+ "content": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "type": "string"
},
{
"type": "null"
}
]
},
- "mode": {
+ "created": {
"anyOf": [
{
- "type": "string"
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "notebook": {
+ "icon": {
"anyOf": [
{
"type": "string"
@@ -8410,278 +10197,124 @@
"type": "null"
}
]
- }
- },
- "required": [
- "id"
- ],
- "additionalProperties": false
- },
- "BlockOperation": {
- "type": "object",
- "properties": {
- "action": {
- "type": "string",
- "enum": [
- "delete",
- "insert",
- "update",
- "foldHeading",
- "unfoldHeading",
- "setAttrs",
- "moveOutlineHeading",
- "appendInsert",
- "prependInsert"
- ]
- },
- "avID": {
- "type": "string"
- },
- "backRelationKeyID": {
- "type": "string"
- },
- "blockID": {
- "type": "string"
- },
- "blockIDs": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- {
- "type": "null"
- }
- ]
},
- "context": {
+ "id": {
"anyOf": [
{
- "type": "object",
- "additionalProperties": {
- "type": "string"
- }
+ "type": "string"
},
{
"type": "null"
}
]
},
- "data": {
+ "refSubtype": {
+ "enum": [
+ "s",
+ "d"
+ ],
"anyOf": [
- {
- "type": "null"
- },
{
"type": "string"
},
- {
- "$ref": "#/$defs/BlockDeleteData"
- }
- ]
- },
- "deckID": {
- "type": "string"
- },
- "format": {
- "type": "string"
- },
- "groupID": {
- "type": "string"
- },
- "id": {
- "type": "string"
- },
- "ignoreDefaultFill": {
- "type": "boolean"
- },
- "isDetached": {
- "type": "boolean"
- },
- "isTwoWay": {
- "type": "boolean"
- },
- "keyID": {
- "type": "string"
- },
- "layout": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "nextID": {
- "type": "string"
- },
- "parentID": {
- "type": "string"
- },
- "previousID": {
- "type": "string"
- },
- "removeDest": {
- "type": "boolean"
- },
- "retData": {
- "anyOf": [
{
"type": "null"
- },
- {
- "type": "string"
- },
- {
- "type": "array",
- "items": {
- "type": "string"
- }
}
]
},
- "rootID": {
- "type": "string"
- },
- "rowID": {
- "type": "string"
- },
- "srcIDs": {
+ "updated": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "type": "integer"
},
{
"type": "null"
}
]
- },
- "srcs": {
- "type": "null"
- },
- "targetGroupID": {
- "type": "string"
- },
- "type": {
- "type": "string",
- "enum": [
- ""
- ]
- },
- "viewID": {
- "type": "string"
- },
- "viewIDs": {
- "type": "array",
- "items": {
- "type": "string"
- }
+ }
+ },
+ "additionalProperties": false
+ },
+ "AVValueCheckbox": {
+ "type": "object",
+ "properties": {
+ "checked": {
+ "type": "boolean"
}
},
"required": [
- "action",
- "avID",
- "backRelationKeyID",
- "blockID",
- "blockIDs",
- "context",
- "data",
- "deckID",
- "format",
- "groupID",
- "id",
- "ignoreDefaultFill",
- "isDetached",
- "isTwoWay",
- "keyID",
- "layout",
- "name",
- "nextID",
- "parentID",
- "previousID",
- "removeDest",
- "retData",
- "rootID",
- "rowID",
- "srcIDs",
- "srcs",
- "targetGroupID",
- "type",
- "viewID"
+ "checked"
],
"additionalProperties": false
},
- "BlockPath": {
+ "AVValueCheckboxInput": {
"type": "object",
"properties": {
- "children": {
+ "checked": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/BlockPath"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "boolean"
},
{
"type": "null"
}
]
+ }
+ },
+ "additionalProperties": false
+ },
+ "AVValueCreated": {
+ "type": "object",
+ "properties": {
+ "content": {
+ "type": "integer"
},
- "hasChildren": {
- "type": "boolean"
- },
- "id": {
- "type": "string"
+ "content2": {
+ "type": "integer"
},
- "name": {
+ "formattedContent": {
"type": "string"
},
- "subType": {
- "type": "string"
+ "isNotEmpty": {
+ "type": "boolean"
},
- "type": {
- "type": "string"
+ "isNotEmpty2": {
+ "type": "boolean"
}
},
"required": [
- "children",
- "id",
- "name",
- "subType",
- "type"
+ "content",
+ "content2",
+ "formattedContent",
+ "isNotEmpty",
+ "isNotEmpty2"
],
"additionalProperties": false
},
- "BlockQueryRequestInput": {
+ "AVValueCreatedInput": {
"type": "object",
"properties": {
- "id": {
- "type": "string"
+ "content": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "ids": {
+ "content2": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "notebook": {
+ "formattedContent": {
"anyOf": [
{
"type": "string"
@@ -8690,202 +10323,109 @@
"type": "null"
}
]
- }
- },
- "required": [
- "id"
- ],
- "additionalProperties": false
- },
- "BlockRelevantData": {
- "type": "object",
- "properties": {
- "nextID": {
- "type": "string"
},
- "parentID": {
- "type": "string"
- },
- "previousID": {
- "type": "string"
- }
- },
- "required": [
- "nextID",
- "parentID",
- "previousID"
- ],
- "additionalProperties": false
- },
- "BlockReminderRequestInput": {
- "type": "object",
- "properties": {
- "id": {
- "type": "string"
+ "isNotEmpty": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "timed": {
- "type": "string"
+ "isNotEmpty2": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
- "required": [
- "id",
- "timed"
- ],
"additionalProperties": false
},
- "BlockSiblingData": {
+ "AVValueData": {
"type": "object",
"properties": {
- "next": {
- "type": "string"
- },
- "parent": {
- "type": "string"
- },
- "previous": {
- "type": "string"
+ "value": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVValue"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
"required": [
- "next",
- "parent",
- "previous"
+ "value"
],
"additionalProperties": false
},
- "BlockStat": {
+ "AVValueDate": {
"type": "object",
"properties": {
- "blockCount": {
+ "content": {
"type": "integer"
},
- "imageCount": {
+ "content2": {
"type": "integer"
},
- "linkCount": {
- "type": "integer"
+ "formattedContent": {
+ "type": "string"
},
- "refCount": {
- "type": "integer"
+ "hasEndDate": {
+ "type": "boolean"
},
- "runeCount": {
- "type": "integer"
+ "isNotEmpty": {
+ "type": "boolean"
},
- "wordCount": {
- "type": "integer"
+ "isNotEmpty2": {
+ "type": "boolean"
+ },
+ "isNotTime": {
+ "type": "boolean"
}
},
"required": [
- "blockCount",
- "imageCount",
- "linkCount",
- "refCount",
- "runeCount",
- "wordCount"
+ "content",
+ "content2",
+ "formattedContent",
+ "hasEndDate",
+ "isNotEmpty",
+ "isNotEmpty2",
+ "isNotTime"
],
"additionalProperties": false
},
- "BlockTransaction": {
+ "AVValueDateInput": {
"type": "object",
"properties": {
- "doOperations": {
+ "content": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/BlockOperation"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "templateDocTreePlanID": {
- "type": "string"
- },
- "timestamp": {
- "type": "integer"
- },
- "undoOperations": {
+ "content2": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/BlockOperation"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "integer"
},
{
"type": "null"
}
]
- }
- },
- "required": [
- "doOperations",
- "timestamp",
- "undoOperations"
- ],
- "additionalProperties": false
- },
- "BlockTreeInfo": {
- "type": "object",
- "properties": {
- "id": {
- "type": "string"
- },
- "nextID": {
- "type": "string"
- },
- "nextType": {
- "type": "string"
- },
- "parentID": {
- "type": "string"
},
- "parentType": {
- "type": "string"
- },
- "previousID": {
- "type": "string"
- },
- "previousType": {
- "type": "string"
- },
- "type": {
- "type": "string"
- }
- },
- "required": [
- "id",
- "nextID",
- "nextType",
- "parentID",
- "parentType",
- "previousID",
- "previousType",
- "type"
- ],
- "additionalProperties": false
- },
- "BlocksKramdownRequestInput": {
- "type": "object",
- "properties": {
- "id": {
+ "formattedContent": {
"anyOf": [
{
"type": "string"
@@ -8895,61 +10435,40 @@
}
]
},
- "ids": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "mode": {
+ "hasEndDate": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "notebook": {
+ "isNotEmpty": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
- }
- },
- "required": [
- "ids"
- ],
- "additionalProperties": false
- },
- "BlocksQueryRequestInput": {
- "type": "object",
- "properties": {
- "id": {
+ },
+ "isNotEmpty2": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "ids": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "notebook": {
+ "isNotTime": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
@@ -8957,15 +10476,24 @@
]
}
},
+ "additionalProperties": false
+ },
+ "AVValueEmail": {
+ "type": "object",
+ "properties": {
+ "content": {
+ "type": "string"
+ }
+ },
"required": [
- "ids"
+ "content"
],
"additionalProperties": false
},
- "BlocksWordCountRequestInput": {
+ "AVValueEmailInput": {
"type": "object",
"properties": {
- "id": {
+ "content": {
"anyOf": [
{
"type": "string"
@@ -8974,50 +10502,121 @@
"type": "null"
}
]
- },
- "ids": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "notebook": {
+ }
+ },
+ "additionalProperties": false
+ },
+ "AVValueInput": {
+ "type": "object",
+ "properties": {
+ "block": {
"anyOf": [
{
- "type": "string"
+ "$ref": "#/$defs/AVValueBlockInput"
},
{
"type": "null"
}
]
},
- "reqId": {
+ "blockID": {
"anyOf": [
{
- "$ref": "#/$defs/JSONValue"
+ "type": "string"
},
{
"type": "null"
}
]
- }
- },
- "required": [
- "ids"
- ],
- "additionalProperties": false
- },
- "Bookmark": {
- "type": "object",
- "properties": {
- "blocks": {
+ },
+ "checkbox": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
+ "$ref": "#/$defs/AVValueCheckboxInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "created": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVValueCreatedInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "createdAt": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "date": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVValueDateInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "email": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVValueEmailInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "id": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "isDetached": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "keyID": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "mAsset": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
{
- "$ref": "#/$defs/SearchBlock"
+ "$ref": "#/$defs/AVValueAssetInput"
},
{
"type": "null"
@@ -9030,67 +10629,247 @@
}
]
},
- "count": {
- "type": "integer"
+ "mSelect": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVValueSelectInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "depth": {
- "type": "integer"
+ "number": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVValueNumberInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "name": {
- "type": "string"
+ "phone": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVValuePhoneInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "relation": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVValueRelationInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "renderedContent": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "rollup": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVValueRollupInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "template": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVValueTemplateInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "text": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVValueTextInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
"type": {
- "type": "string"
+ "enum": [
+ "block",
+ "text",
+ "number",
+ "date",
+ "select",
+ "mSelect",
+ "url",
+ "email",
+ "phone",
+ "mAsset",
+ "template",
+ "created",
+ "updated",
+ "checkbox",
+ "relation",
+ "rollup",
+ "lineNumber"
+ ],
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "updated": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVValueUpdatedInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "updatedAt": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "url": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVValueURLInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
- "required": [
- "blocks",
- "count",
- "depth",
- "name",
- "type"
- ],
"additionalProperties": false
},
- "BootProgressData": {
+ "AVValueNumber": {
"type": "object",
"properties": {
- "details": {
+ "content": {
+ "type": "number"
+ },
+ "format": {
"type": "string"
},
- "progress": {
- "type": "integer"
+ "formattedContent": {
+ "type": "string"
+ },
+ "isNotEmpty": {
+ "type": "boolean"
}
},
"required": [
- "details",
- "progress"
+ "content",
+ "format",
+ "formattedContent",
+ "isNotEmpty"
],
"additionalProperties": false
},
- "BroadcastChannel": {
+ "AVValueNumberInput": {
"type": "object",
"properties": {
- "count": {
- "type": "integer"
+ "content": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "name": {
+ "format": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "formattedContent": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "isNotEmpty": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "AVValuePhone": {
+ "type": "object",
+ "properties": {
+ "content": {
"type": "string"
}
},
"required": [
- "count",
- "name"
+ "content"
],
"additionalProperties": false
},
- "BroadcastChannelData": {
+ "AVValuePhoneInput": {
"type": "object",
"properties": {
- "channel": {
+ "content": {
"anyOf": [
{
- "$ref": "#/$defs/BroadcastChannel"
+ "type": "string"
},
{
"type": "null"
@@ -9098,190 +10877,247 @@
]
}
},
- "required": [
- "channel"
- ],
"additionalProperties": false
},
- "BroadcastChannelRequestInput": {
+ "AVValueRelation": {
"type": "object",
"properties": {
- "name": {
- "type": "string"
+ "blockIDs": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "contents": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVValue"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
"required": [
- "name"
+ "blockIDs",
+ "contents"
],
"additionalProperties": false
},
- "BroadcastChannelsData": {
+ "AVValueRelationInput": {
"type": "object",
"properties": {
- "channels": {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/BroadcastChannel"
- },
- {
- "type": "null"
+ "blockIDs": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
}
- ]
- }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "contents": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVValueInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
- "required": [
- "channels"
- ],
"additionalProperties": false
},
- "BroadcastMessageRequestInput": {
+ "AVValueRollup": {
"type": "object",
"properties": {
- "channel": {
- "type": "string"
- },
- "message": {
- "type": "string"
+ "contents": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVValue"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
"required": [
- "channel",
- "message"
+ "contents"
],
"additionalProperties": false
},
- "BroadcastPublishData": {
+ "AVValueRollupInput": {
"type": "object",
"properties": {
- "results": {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/BroadcastPublishResult"
- },
- {
- "type": "null"
+ "contents": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVValueInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
- ]
- }
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
- "required": [
- "results"
- ],
"additionalProperties": false
},
- "BroadcastPublishMessage": {
+ "AVValueSelect": {
"type": "object",
"properties": {
- "filename": {
+ "color": {
"type": "string"
},
- "size": {
- "type": "integer"
+ "content": {
+ "type": "string"
},
- "type": {
- "type": "string",
- "enum": [
- "string",
- "binary"
- ]
+ "resolvedColor": {
+ "$ref": "#/$defs/AVAttributeViewColor"
}
},
"required": [
- "filename",
- "size",
- "type"
+ "color",
+ "content"
],
"additionalProperties": false
},
- "BroadcastPublishResult": {
+ "AVValueSelectInput": {
"type": "object",
"properties": {
- "channel": {
- "$ref": "#/$defs/BroadcastChannel"
- },
- "code": {
- "type": "integer"
+ "color": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "message": {
- "$ref": "#/$defs/BroadcastPublishMessage"
+ "content": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "msg": {
- "type": "string"
+ "resolvedColor": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVAttributeViewColorInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
- "required": [
- "channel",
- "code",
- "message",
- "msg"
- ],
"additionalProperties": false
},
- "ChangeMasterPasswordRequestInput": {
+ "AVValueTemplate": {
"type": "object",
"properties": {
- "newPassword": {
- "type": "string"
- },
- "oldPassword": {
+ "content": {
"type": "string"
}
},
"required": [
- "newPassword",
- "oldPassword"
+ "content"
],
"additionalProperties": false
},
- "ChangeSortNotebookRequestInput": {
+ "AVValueTemplateInput": {
"type": "object",
"properties": {
- "notebooks": {
- "type": "array",
- "items": {
- "type": "string"
- }
+ "content": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
- "required": [
- "notebooks"
- ],
"additionalProperties": false
},
- "CheckActivationCodeRequestInput": {
+ "AVValueText": {
"type": "object",
"properties": {
- "data": {
+ "content": {
"type": "string"
+ },
+ "rich": {
+ "$ref": "#/$defs/AVValueTextRich"
}
},
"required": [
- "data"
+ "content"
],
"additionalProperties": false
},
- "CheckBlockRefRequestInput": {
+ "AVValueTextInput": {
"type": "object",
"properties": {
- "deletedIDs": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "exactIDs": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "id": {
+ "content": {
"anyOf": [
{
"type": "string"
@@ -9291,38 +11127,49 @@
}
]
},
- "ids": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "notebook": {
+ "rich": {
"anyOf": [
{
- "type": "string"
+ "$ref": "#/$defs/AVValueTextRichInput"
},
{
"type": "null"
}
]
+ }
+ },
+ "additionalProperties": false
+ },
+ "AVValueTextRich": {
+ "type": "object",
+ "properties": {
+ "content": {
+ "type": "string"
},
- "paths": {
- "type": "array",
- "items": {
- "type": "string"
- }
+ "format": {
+ "type": "string",
+ "enum": [
+ "kramdown"
+ ]
},
- "scope": {
- "type": "string"
+ "spec": {
+ "type": "integer",
+ "enum": [
+ 1
+ ]
}
},
+ "required": [
+ "content",
+ "format",
+ "spec"
+ ],
"additionalProperties": false
},
- "CheckBlocksExistRequestInput": {
+ "AVValueTextRichInput": {
"type": "object",
"properties": {
- "id": {
+ "content": {
"anyOf": [
{
"type": "string"
@@ -9332,13 +11179,10 @@
}
]
},
- "ids": {
- "type": "array",
- "items": {
- "$ref": "#/$defs/JSONValue"
- }
- },
- "notebook": {
+ "format": {
+ "enum": [
+ "kramdown"
+ ],
"anyOf": [
{
"type": "string"
@@ -9347,32 +11191,39 @@
"type": "null"
}
]
+ },
+ "spec": {
+ "enum": [
+ 1
+ ],
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
- "required": [
- "ids"
- ],
"additionalProperties": false
},
- "CheckSnapshotData": {
+ "AVValueURL": {
"type": "object",
"properties": {
- "changed": {
- "type": "boolean"
+ "content": {
+ "type": "string"
}
},
"required": [
- "changed"
+ "content"
],
"additionalProperties": false
},
- "CheckoutRepoRequestInput": {
+ "AVValueURLInput": {
"type": "object",
"properties": {
- "id": {
- "type": "string"
- },
- "sessionID": {
+ "content": {
"anyOf": [
{
"type": "string"
@@ -9383,286 +11234,438 @@
]
}
},
- "required": [
- "id"
- ],
"additionalProperties": false
},
- "ChildBlock": {
+ "AVValueUpdated": {
"type": "object",
"properties": {
"content": {
- "type": "string"
- },
- "id": {
- "type": "string"
+ "type": "integer"
},
- "markdown": {
- "type": "string"
+ "content2": {
+ "type": "integer"
},
- "subType": {
+ "formattedContent": {
"type": "string"
},
- "type": {
- "type": "string"
- }
- },
- "required": [
- "id",
- "type"
- ],
- "additionalProperties": false
- },
- "CleanupRichTextRequestInput": {
- "type": "object",
- "properties": {
- "batch": {
- "type": "string"
+ "isNotEmpty": {
+ "type": "boolean"
},
- "groups": {
- "type": "array",
- "items": {
- "type": "string"
- }
+ "isNotEmpty2": {
+ "type": "boolean"
}
},
"required": [
- "batch",
- "groups"
+ "content",
+ "content2",
+ "formattedContent",
+ "isNotEmpty",
+ "isNotEmpty2"
],
"additionalProperties": false
},
- "ClipboardFile": {
+ "AVValueUpdatedInput": {
"type": "object",
"properties": {
- "isDir": {
- "type": "boolean"
+ "content": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "name": {
- "type": "string"
+ "content2": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "path": {
- "type": "string"
+ "formattedContent": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "size": {
- "type": "integer"
+ "isNotEmpty": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "updated": {
- "type": "integer"
- }
- },
- "required": [
- "isDir",
- "name",
- "path",
- "size",
- "updated"
- ],
- "additionalProperties": false
- },
- "ClipboardPathRequestInput": {
- "type": "object",
- "properties": {
- "path": {
- "type": "string"
+ "isNotEmpty2": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
- "required": [
- "path"
- ],
"additionalProperties": false
},
- "CloseNotebookRequestInput": {
+ "AVValuesData": {
"type": "object",
"properties": {
- "notebook": {
- "type": "string"
+ "values": {
+ "anyOf": [
+ {
+ "type": "object",
+ "additionalProperties": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVValue"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
"required": [
- "notebook"
+ "values"
],
"additionalProperties": false
},
- "CloudBackup": {
+ "AVView": {
"type": "object",
"properties": {
- "hSize": {
+ "desc": {
"type": "string"
},
- "saveDir": {
- "type": "string"
+ "filters": {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVViewFilter"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
- "size": {
+ "gallery": {
+ "$ref": "#/$defs/AVLayoutGallery"
+ },
+ "group": {
+ "$ref": "#/$defs/AVViewGroup"
+ },
+ "groupCalc": {
+ "$ref": "#/$defs/AVGroupCalc"
+ },
+ "groupCreated": {
"type": "integer"
},
- "updated": {
- "type": "string"
- }
- },
- "required": [
- "hSize",
- "saveDir",
- "size",
- "updated"
- ],
- "additionalProperties": false
- },
- "CloudReminderRequestInput": {
- "type": "object",
- "properties": {
- "content": {
- "type": "string"
+ "groupFolded": {
+ "type": "boolean"
},
- "id": {
- "type": "string"
+ "groupHidden": {
+ "type": "integer"
},
- "timed": {
- "type": "string"
- }
- },
- "required": [
- "content",
- "id",
- "timed"
- ],
- "additionalProperties": false
- },
- "CloudSpaceData": {
- "type": "object",
- "properties": {
- "backup": {
+ "groupItemIds": {
"anyOf": [
{
- "$ref": "#/$defs/CloudBackup"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "hAssetSize": {
- "type": "string"
+ "groupKey": {
+ "$ref": "#/$defs/AVKey"
},
- "hExchangeSize": {
- "type": "string"
+ "groupSort": {
+ "type": "integer"
},
- "hSize": {
- "type": "string"
+ "groupVal": {
+ "$ref": "#/$defs/AVValue"
},
- "hTotalSize": {
- "type": "string"
+ "groups": {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVView"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
- "hTrafficAPIGet": {
- "type": "string"
+ "hideAttrViewName": {
+ "type": "boolean"
},
- "hTrafficAPIPut": {
+ "icon": {
"type": "string"
},
- "hTrafficDownloadSize": {
+ "id": {
"type": "string"
},
- "hTrafficUploadSize": {
+ "itemIds": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "kanban": {
+ "$ref": "#/$defs/AVLayoutKanban"
+ },
+ "name": {
"type": "string"
},
- "sync": {
- "anyOf": [
- {
- "$ref": "#/$defs/CloudSync"
- },
- {
- "type": "null"
- }
+ "pageSize": {
+ "type": "integer"
+ },
+ "sorts": {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVViewSort"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "table": {
+ "$ref": "#/$defs/AVLayoutTable"
+ },
+ "type": {
+ "type": "string",
+ "enum": [
+ "table",
+ "gallery",
+ "kanban"
]
}
},
"required": [
- "backup",
- "hAssetSize",
- "hExchangeSize",
- "hSize",
- "hTotalSize",
- "hTrafficAPIGet",
- "hTrafficAPIPut",
- "hTrafficDownloadSize",
- "hTrafficUploadSize",
- "sync"
+ "desc",
+ "groupCreated",
+ "groupFolded",
+ "groupHidden",
+ "groupItemIds",
+ "groupSort",
+ "hideAttrViewName",
+ "icon",
+ "id",
+ "name",
+ "pageSize",
+ "type"
],
"additionalProperties": false
},
- "CloudSync": {
+ "AVViewData": {
"type": "object",
"properties": {
- "cloudName": {
+ "desc": {
"type": "string"
},
- "hSize": {
+ "hideAttrViewName": {
+ "type": "boolean"
+ },
+ "icon": {
"type": "string"
},
- "saveDir": {
+ "id": {
"type": "string"
},
- "size": {
+ "name": {
+ "type": "string"
+ },
+ "pageSize": {
"type": "integer"
},
- "updated": {
- "type": "string"
+ "type": {
+ "type": "string",
+ "enum": [
+ "table",
+ "gallery",
+ "kanban"
+ ]
}
},
"required": [
- "cloudName",
- "hSize",
- "saveDir",
- "size",
- "updated"
+ "desc",
+ "hideAttrViewName",
+ "icon",
+ "id",
+ "name",
+ "pageSize",
+ "type"
],
"additionalProperties": false
},
- "CloudSyncDir": {
+ "AVViewFilter": {
"type": "object",
"properties": {
- "cloudName": {
+ "column": {
"type": "string"
},
- "hSize": {
- "type": "string"
+ "combination": {
+ "type": "string",
+ "enum": [
+ "and",
+ "or"
+ ]
},
- "saveDir": {
- "type": "string"
+ "dateEndpoint": {
+ "type": "string",
+ "enum": [
+ "start",
+ "end"
+ ]
},
- "size": {
- "type": "integer"
+ "filters": {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVViewFilter"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
- "updated": {
- "type": "string"
+ "operator": {
+ "type": "string",
+ "enum": [
+ "",
+ "=",
+ "!=",
+ "\u003e",
+ "\u003e=",
+ "\u003c",
+ "\u003c=",
+ "Contains",
+ "Does not contains",
+ "Contains any item",
+ "Does not contain any item",
+ "Is empty",
+ "Is not empty",
+ "Starts with",
+ "Ends with",
+ "Is between",
+ "Is true",
+ "Is false"
+ ]
+ },
+ "quantifier": {
+ "type": "string"
+ },
+ "relativeDate": {
+ "$ref": "#/$defs/AVRelativeDate"
+ },
+ "relativeDate2": {
+ "$ref": "#/$defs/AVRelativeDate"
+ },
+ "value": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVValue"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "valueSource": {
+ "type": "string",
+ "enum": [
+ "stored",
+ "rendered"
+ ]
}
},
"required": [
- "cloudName",
- "hSize",
- "saveDir",
- "size",
- "updated"
+ "column",
+ "operator",
+ "value"
],
"additionalProperties": false
},
- "CloudSyncDirsData": {
+ "AVViewFilterInput": {
"type": "object",
"properties": {
- "checkedSyncDir": {
- "type": "string"
+ "column": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "hSize": {
- "type": "string"
+ "combination": {
+ "enum": [
+ "and",
+ "or"
+ ],
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "syncDirs": {
+ "dateEndpoint": {
+ "enum": [
+ "start",
+ "end"
+ ],
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "filters": {
"anyOf": [
{
"type": "array",
"items": {
"anyOf": [
{
- "$ref": "#/$defs/CloudSyncDir"
+ "$ref": "#/$defs/AVViewFilterInput"
},
{
"type": "null"
@@ -9674,203 +11677,85 @@
"type": "null"
}
]
- }
- },
- "required": [
- "checkedSyncDir",
- "hSize",
- "syncDirs"
- ],
- "additionalProperties": false
- },
- "ContentWordCountRequestInput": {
- "type": "object",
- "properties": {
- "content": {
- "type": "string"
},
- "reqId": {
+ "operator": {
+ "enum": [
+ "",
+ "=",
+ "!=",
+ "\u003e",
+ "\u003e=",
+ "\u003c",
+ "\u003c=",
+ "Contains",
+ "Does not contains",
+ "Contains any item",
+ "Does not contain any item",
+ "Is empty",
+ "Is not empty",
+ "Starts with",
+ "Ends with",
+ "Is between",
+ "Is true",
+ "Is false"
+ ],
"anyOf": [
{
- "$ref": "#/$defs/JSONValue"
+ "type": "string"
},
{
"type": "null"
}
]
- }
- },
- "required": [
- "content"
- ],
- "additionalProperties": false
- },
- "ContinueImportSYRequestInput": {
- "type": "object",
- "properties": {
- "notebook": {
- "type": "string"
- },
- "token": {
- "type": "string"
- }
- },
- "required": [
- "notebook",
- "token"
- ],
- "additionalProperties": false
- },
- "CopyExportFileRequestInput": {
- "type": "object",
- "properties": {
- "dest": {
- "type": "string"
},
- "srcPath": {
- "type": "string"
- }
- },
- "required": [
- "dest",
- "srcPath"
- ],
- "additionalProperties": false
- },
- "CopyFileRequestInput": {
- "type": "object",
- "properties": {
- "dest": {
- "type": "string"
- },
- "src": {
- "type": "string"
- }
- },
- "required": [
- "dest",
- "src"
- ],
- "additionalProperties": false
- },
- "CopyFilesRequestInput": {
- "type": "object",
- "properties": {
- "destDir": {
- "type": "string"
- },
- "srcs": {
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- },
- "required": [
- "destDir",
- "srcs"
- ],
- "additionalProperties": false
- },
- "CopyStdMarkdownRequestInput": {
- "type": "object",
- "properties": {
- "adjustHeadingLevel": {
+ "quantifier": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "assetsDestSpace2Underscore": {
+ "relativeDate": {
"anyOf": [
{
- "type": "boolean"
+ "$ref": "#/$defs/AVRelativeDateInput"
},
{
"type": "null"
}
]
},
- "fillCSSVar": {
+ "relativeDate2": {
"anyOf": [
{
- "type": "boolean"
+ "$ref": "#/$defs/AVRelativeDateInput"
},
{
"type": "null"
}
]
},
- "id": {
- "type": "string"
- },
- "imgTag": {
+ "value": {
"anyOf": [
{
- "type": "boolean"
+ "$ref": "#/$defs/AVValueInput"
},
{
"type": "null"
}
]
- }
- },
- "required": [
- "id"
- ],
- "additionalProperties": false
- },
- "CreateAssetHistoryRequestInput": {
- "type": "object",
- "properties": {
- "path": {
- "type": "string"
- }
- },
- "required": [
- "path"
- ],
- "additionalProperties": false
- },
- "CreateDocHistoryRequestInput": {
- "type": "object",
- "properties": {
- "id": {
- "type": "string"
- }
- },
- "required": [
- "id"
- ],
- "additionalProperties": false
- },
- "CreateEncryptedNotebookRequestInput": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
},
- "password": {
- "type": "string"
- }
- },
- "required": [
- "name",
- "password"
- ],
- "additionalProperties": false
- },
- "CreateNotebookData": {
- "type": "object",
- "properties": {
- "notebook": {
+ "valueSource": {
+ "enum": [
+ "stored",
+ "rendered"
+ ],
"anyOf": [
{
- "$ref": "#/$defs/Notebook"
+ "type": "string"
},
{
"type": "null"
@@ -9878,117 +11763,149 @@
]
}
},
- "required": [
- "notebook"
- ],
"additionalProperties": false
},
- "CreateNotebookRequestInput": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
+ "AVViewGalleryCardField": {
+ "anyOf": [
+ {
+ "type": "object",
+ "properties": {
+ "calc": {
+ "$ref": "#/$defs/AVFieldCalc"
+ },
+ "desc": {
+ "type": "string"
+ },
+ "fullRow": {
+ "type": "boolean"
+ },
+ "hidden": {
+ "type": "boolean"
+ },
+ "id": {
+ "type": "string"
+ },
+ "wrap": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "fullRow",
+ "id",
+ "wrap",
+ "hidden"
+ ],
+ "additionalProperties": false
+ },
+ {
+ "type": "object",
+ "properties": {
+ "fullRow": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "fullRow"
+ ],
+ "additionalProperties": false
}
- },
- "required": [
- "name"
- ],
- "additionalProperties": false
+ ]
},
- "CreateRiffDeckRequestInput": {
+ "AVViewGroup": {
"type": "object",
"properties": {
- "name": {
+ "field": {
"type": "string"
- }
- },
- "required": [
- "name"
- ],
- "additionalProperties": false
- },
- "CreateSnapshotData": {
- "type": "object",
- "properties": {
- "created": {
+ },
+ "hideEmpty": {
"type": "boolean"
},
- "id": {
- "type": "string"
+ "method": {
+ "type": "integer"
+ },
+ "order": {
+ "type": "integer"
+ },
+ "range": {
+ "$ref": "#/$defs/AVGroupRange"
+ },
+ "valueSource": {
+ "type": "string",
+ "enum": [
+ "stored",
+ "rendered"
+ ]
}
},
"required": [
- "created",
- "id"
+ "field",
+ "hideEmpty",
+ "method",
+ "order"
],
"additionalProperties": false
},
- "CreateSnapshotRequestInput": {
- "type": "object",
- "properties": {
- "memo": {
- "type": "string"
- }
- },
- "additionalProperties": false
- },
- "Criterion": {
+ "AVViewGroupInput": {
"type": "object",
"properties": {
- "group": {
- "type": "integer"
- },
- "hPath": {
- "type": "string"
- },
- "hasReplace": {
- "type": "boolean"
- },
- "idPath": {
+ "field": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "type": "string"
},
{
"type": "null"
}
]
},
- "k": {
- "type": "string"
+ "hideEmpty": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
"method": {
- "type": "integer"
- },
- "name": {
- "type": "string"
- },
- "r": {
- "type": "string"
- },
- "replaceTypes": {
"anyOf": [
{
- "$ref": "#/$defs/CriterionReplaceTypes"
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "sort": {
- "type": "integer"
+ "order": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "subTypes": {
- "$ref": "#/$defs/SearchSubTypes"
+ "range": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVGroupRangeInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "types": {
+ "valueSource": {
+ "enum": [
+ "stored",
+ "rendered"
+ ],
"anyOf": [
{
- "$ref": "#/$defs/CriterionTypes"
+ "type": "string"
},
{
"type": "null"
@@ -9996,36 +11913,135 @@
]
}
},
+ "additionalProperties": false
+ },
+ "AVViewInstance": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVTable"
+ },
+ {
+ "$ref": "#/$defs/AVGallery"
+ },
+ {
+ "$ref": "#/$defs/AVKanban"
+ }
+ ]
+ },
+ "AVViewKanbanField": {
+ "anyOf": [
+ {
+ "type": "object",
+ "properties": {
+ "calc": {
+ "$ref": "#/$defs/AVFieldCalc"
+ },
+ "desc": {
+ "type": "string"
+ },
+ "fullRow": {
+ "type": "boolean"
+ },
+ "hidden": {
+ "type": "boolean"
+ },
+ "id": {
+ "type": "string"
+ },
+ "wrap": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "fullRow",
+ "id",
+ "wrap",
+ "hidden"
+ ],
+ "additionalProperties": false
+ },
+ {
+ "type": "object",
+ "properties": {
+ "fullRow": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "fullRow"
+ ],
+ "additionalProperties": false
+ }
+ ]
+ },
+ "AVViewNotFound": {
+ "type": "object",
+ "properties": {
+ "error": {
+ "type": "string",
+ "enum": [
+ "viewNotFound"
+ ]
+ }
+ },
"required": [
- "group",
- "hPath",
- "hasReplace",
- "idPath",
- "k",
- "method",
- "name",
- "r",
- "replaceTypes",
- "sort",
- "subTypes",
- "types"
+ "error"
],
"additionalProperties": false
},
- "CriterionInput": {
+ "AVViewSort": {
"type": "object",
"properties": {
- "group": {
+ "column": {
+ "type": "string"
+ },
+ "dateEndpoint": {
+ "type": "string",
+ "enum": [
+ "start",
+ "end"
+ ]
+ },
+ "order": {
+ "type": "string",
+ "enum": [
+ "",
+ "ASC",
+ "DESC"
+ ]
+ },
+ "valueSource": {
+ "type": "string",
+ "enum": [
+ "stored",
+ "rendered"
+ ]
+ }
+ },
+ "required": [
+ "column",
+ "order"
+ ],
+ "additionalProperties": false
+ },
+ "AVViewSortInput": {
+ "type": "object",
+ "properties": {
+ "column": {
"anyOf": [
{
- "type": "integer"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "hPath": {
+ "dateEndpoint": {
+ "enum": [
+ "start",
+ "end"
+ ],
"anyOf": [
{
"type": "string"
@@ -10035,30 +12051,117 @@
}
]
},
- "hasReplace": {
+ "order": {
+ "enum": [
+ "",
+ "ASC",
+ "DESC"
+ ],
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "idPath": {
+ "valueSource": {
+ "enum": [
+ "stored",
+ "rendered"
+ ],
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "type": "string"
},
{
"type": "null"
}
]
+ }
+ },
+ "additionalProperties": false
+ },
+ "AVViewTableColumn": {
+ "anyOf": [
+ {
+ "type": "object",
+ "properties": {
+ "align": {
+ "type": "string",
+ "enum": [
+ "",
+ "left",
+ "center",
+ "right"
+ ]
+ },
+ "calc": {
+ "$ref": "#/$defs/AVFieldCalc"
+ },
+ "desc": {
+ "type": "string"
+ },
+ "hidden": {
+ "type": "boolean"
+ },
+ "id": {
+ "type": "string"
+ },
+ "pin": {
+ "type": "boolean"
+ },
+ "width": {
+ "type": "string"
+ },
+ "wrap": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "pin",
+ "width",
+ "id",
+ "wrap",
+ "hidden"
+ ],
+ "additionalProperties": false
},
- "k": {
+ {
+ "type": "object",
+ "properties": {
+ "align": {
+ "type": "string",
+ "enum": [
+ "",
+ "left",
+ "center",
+ "right"
+ ]
+ },
+ "calc": {
+ "$ref": "#/$defs/AVFieldCalc"
+ },
+ "pin": {
+ "type": "boolean"
+ },
+ "width": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "pin",
+ "width"
+ ],
+ "additionalProperties": false
+ }
+ ]
+ },
+ "AccountLoginData": {
+ "type": "object",
+ "properties": {
+ "needCaptcha": {
"anyOf": [
{
"type": "string"
@@ -10068,17 +12171,17 @@
}
]
},
- "method": {
+ "token": {
"anyOf": [
{
- "type": "integer"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "name": {
+ "userName": {
"anyOf": [
{
"type": "string"
@@ -10087,8 +12190,58 @@
"type": "null"
}
]
+ }
+ },
+ "required": [
+ "needCaptcha",
+ "token",
+ "userName"
+ ],
+ "additionalProperties": false
+ },
+ "AccountLoginRequestInput": {
+ "type": "object",
+ "properties": {
+ "captcha": {
+ "type": "string"
},
- "r": {
+ "cloudRegion": {
+ "type": "number"
+ },
+ "userName": {
+ "type": "string"
+ },
+ "userPassword": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "captcha",
+ "cloudRegion",
+ "userName",
+ "userPassword"
+ ],
+ "additionalProperties": false
+ },
+ "ActivationCodeRequestInput": {
+ "type": "object",
+ "properties": {
+ "data": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "data"
+ ],
+ "additionalProperties": false
+ },
+ "AddAttributeViewBlocksRequestInput": {
+ "type": "object",
+ "properties": {
+ "avID": {
+ "type": "string"
+ },
+ "blockID": {
"anyOf": [
{
"type": "string"
@@ -10098,40 +12251,46 @@
}
]
},
- "replaceTypes": {
+ "groupID": {
"anyOf": [
{
- "$ref": "#/$defs/CriterionReplaceTypesInput"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "sort": {
+ "ignoreDefaultFill": {
"anyOf": [
{
- "type": "integer"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "subTypes": {
+ "previousID": {
"anyOf": [
{
- "$ref": "#/$defs/SearchSubTypesInput"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "types": {
+ "srcs": {
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/AVBlockSourceInput"
+ }
+ },
+ "viewID": {
"anyOf": [
{
- "$ref": "#/$defs/CriterionTypesInput"
+ "type": "string"
},
{
"type": "null"
@@ -10139,130 +12298,145 @@
]
}
},
+ "required": [
+ "avID",
+ "srcs"
+ ],
"additionalProperties": false
},
- "CriterionReplaceTypes": {
+ "AddAttributeViewKeyRequestInput": {
"type": "object",
"properties": {
- "aHref": {
- "type": "boolean"
+ "avID": {
+ "type": "string"
},
- "aText": {
- "type": "boolean"
+ "blockID": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "aTitle": {
- "type": "boolean"
+ "keyID": {
+ "type": "string"
},
- "blockRef": {
- "type": "boolean"
+ "keyIcon": {
+ "type": "string"
},
- "code": {
- "type": "boolean"
+ "keyName": {
+ "type": "string"
},
- "codeBlock": {
- "type": "boolean"
+ "keyType": {
+ "type": "string"
},
- "docTitle": {
- "type": "boolean"
+ "previousKeyID": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "avID",
+ "keyID",
+ "keyIcon",
+ "keyName",
+ "keyType",
+ "previousKeyID"
+ ],
+ "additionalProperties": false
+ },
+ "AppendAttributeViewDetachedBlocksWithValuesRequestInput": {
+ "type": "object",
+ "properties": {
+ "avID": {
+ "type": "string"
},
- "em": {
- "type": "boolean"
- },
- "fileAnnotationRef": {
- "type": "boolean"
- },
- "htmlBlock": {
- "type": "boolean"
- },
- "imgSrc": {
- "type": "boolean"
- },
- "imgText": {
- "type": "boolean"
- },
- "imgTitle": {
- "type": "boolean"
- },
- "inlineMath": {
- "type": "boolean"
- },
- "inlineMemo": {
- "type": "boolean"
- },
- "kbd": {
- "type": "boolean"
- },
- "mark": {
- "type": "boolean"
- },
- "mathBlock": {
- "type": "boolean"
- },
- "s": {
- "type": "boolean"
- },
- "strong": {
- "type": "boolean"
- },
- "sub": {
- "type": "boolean"
- },
- "sup": {
- "type": "boolean"
+ "blocksValues": {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVValueInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ }
+ },
+ "required": [
+ "avID",
+ "blocksValues"
+ ],
+ "additionalProperties": false
+ },
+ "AppendBlockRequestInput": {
+ "type": "object",
+ "properties": {
+ "data": {
+ "type": "string"
},
- "tag": {
- "type": "boolean"
+ "dataType": {
+ "type": "string"
},
- "text": {
- "type": "boolean"
+ "parentID": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "data",
+ "dataType",
+ "parentID"
+ ],
+ "additionalProperties": false
+ },
+ "AppendHeadingChildrenRequestInput": {
+ "type": "object",
+ "properties": {
+ "childrenDOM": {
+ "type": "string"
},
- "u": {
- "type": "boolean"
+ "id": {
+ "type": "string"
}
},
"required": [
- "aHref",
- "aText",
- "aTitle",
- "blockRef",
- "code",
- "codeBlock",
- "docTitle",
- "em",
- "fileAnnotationRef",
- "htmlBlock",
- "imgSrc",
- "imgText",
- "imgTitle",
- "inlineMath",
- "inlineMemo",
- "kbd",
- "mark",
- "mathBlock",
- "s",
- "strong",
- "sub",
- "sup",
- "tag",
- "text",
- "u"
+ "childrenDOM",
+ "id"
],
"additionalProperties": false
},
- "CriterionReplaceTypesInput": {
+ "AssetAnnotationData": {
"type": "object",
"properties": {
- "aHref": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
+ "data": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "data"
+ ],
+ "additionalProperties": false
+ },
+ "AssetCloudUploadRequestInput": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
},
- "aText": {
+ "ignorePushMsg": {
"anyOf": [
{
"type": "boolean"
@@ -10271,18 +12445,99 @@
"type": "null"
}
]
+ }
+ },
+ "required": [
+ "id"
+ ],
+ "additionalProperties": false
+ },
+ "AssetContent": {
+ "type": "object",
+ "properties": {
+ "content": {
+ "type": "string"
},
- "aTitle": {
+ "ext": {
+ "type": "string"
+ },
+ "hSize": {
+ "type": "string"
+ },
+ "id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "path": {
+ "type": "string"
+ },
+ "size": {
+ "type": "integer"
+ },
+ "updated": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "content",
+ "ext",
+ "hSize",
+ "id",
+ "name",
+ "path",
+ "size",
+ "updated"
+ ],
+ "additionalProperties": false
+ },
+ "AssetContentData": {
+ "type": "object",
+ "properties": {
+ "assetContent": {
"anyOf": [
{
- "type": "boolean"
+ "$ref": "#/$defs/AssetContent"
},
{
"type": "null"
}
]
+ }
+ },
+ "required": [
+ "assetContent"
+ ],
+ "additionalProperties": false
+ },
+ "AssetContentRequestInput": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
},
- "blockRef": {
+ "query": {
+ "type": "string"
+ },
+ "queryMethod": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "id",
+ "query",
+ "queryMethod"
+ ],
+ "additionalProperties": false
+ },
+ "AssetDocumentAssetsRequestInput": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "retainQueryStr": {
"anyOf": [
{
"type": "boolean"
@@ -10291,48 +12546,141 @@
"type": "null"
}
]
- },
- "code": {
+ }
+ },
+ "required": [
+ "id"
+ ],
+ "additionalProperties": false
+ },
+ "AssetDocumentRequestInput": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id"
+ ],
+ "additionalProperties": false
+ },
+ "AssetInsertCoverData": {
+ "type": "object",
+ "properties": {
+ "succFiles": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/AssetUploadSuccess"
+ }
},
{
"type": "null"
}
]
},
- "codeBlock": {
+ "succMap": {
"anyOf": [
{
- "type": "boolean"
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
- },
- "docTitle": {
+ }
+ },
+ "required": [
+ "succFiles",
+ "succMap"
+ ],
+ "additionalProperties": false
+ },
+ "AssetOCRData": {
+ "type": "object",
+ "properties": {
+ "ocrJSON": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
},
- "em": {
+ "text": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "ocrJSON",
+ "text"
+ ],
+ "additionalProperties": false
+ },
+ "AssetOCRTextRequestInput": {
+ "type": "object",
+ "properties": {
+ "path": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
- },
- "fileAnnotationRef": {
+ }
+ },
+ "additionalProperties": false
+ },
+ "AssetPathData": {
+ "type": "object",
+ "properties": {
+ "path": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "path"
+ ],
+ "additionalProperties": false
+ },
+ "AssetPathRequestInput": {
+ "type": "object",
+ "properties": {
+ "path": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "path"
+ ],
+ "additionalProperties": false
+ },
+ "AssetPathsCloudUploadRequestInput": {
+ "type": "object",
+ "properties": {
+ "ignorePushMsg": {
"anyOf": [
{
"type": "boolean"
@@ -10342,117 +12690,310 @@
}
]
},
- "htmlBlock": {
+ "paths": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ },
+ "required": [
+ "paths"
+ ],
+ "additionalProperties": false
+ },
+ "AssetPathsData": {
+ "type": "object",
+ "properties": {
+ "paths": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
+ }
+ },
+ "required": [
+ "paths"
+ ],
+ "additionalProperties": false
+ },
+ "AssetRenameData": {
+ "type": "object",
+ "properties": {
+ "newPath": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "newPath"
+ ],
+ "additionalProperties": false
+ },
+ "AssetStatData": {
+ "type": "object",
+ "properties": {
+ "created": {
+ "type": "integer"
},
- "imgSrc": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
+ "downloaded": {
+ "type": "boolean",
+ "enum": [
+ false
]
},
- "imgText": {
+ "hCreated": {
+ "type": "string"
+ },
+ "hSize": {
+ "type": "string"
+ },
+ "hUpdated": {
+ "type": "string"
+ },
+ "size": {
+ "type": "integer"
+ },
+ "updated": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "created",
+ "hCreated",
+ "hSize",
+ "hUpdated",
+ "size",
+ "updated"
+ ],
+ "additionalProperties": false
+ },
+ "AssetTextData": {
+ "type": "object",
+ "properties": {
+ "text": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "text"
+ ],
+ "additionalProperties": false
+ },
+ "AssetUnusedItem": {
+ "type": "object",
+ "properties": {
+ "blockIDs": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "item": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "path": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "item",
+ "name"
+ ],
+ "additionalProperties": false
+ },
+ "AssetUploadData": {
+ "type": "object",
+ "properties": {
+ "errFiles": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "imgTitle": {
+ "failedFiles": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/AssetUploadFailure"
+ }
},
{
"type": "null"
}
]
},
- "inlineMath": {
+ "succFiles": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/AssetUploadSuccess"
+ }
},
{
"type": "null"
}
]
},
- "inlineMemo": {
+ "succMap": {
"anyOf": [
{
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
- },
- "kbd": {
- "anyOf": [
- {
- "type": "boolean"
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
+ }
+ },
+ "required": [
+ "errFiles",
+ "failedFiles",
+ "succFiles",
+ "succMap"
+ ],
+ "additionalProperties": false
+ },
+ "AssetUploadFailure": {
+ "type": "object",
+ "properties": {
+ "error": {
+ "type": "string"
},
- "mark": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
+ "index": {
+ "type": "integer"
},
- "mathBlock": {
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "error",
+ "index",
+ "name"
+ ],
+ "additionalProperties": false
+ },
+ "AssetUploadSuccess": {
+ "type": "object",
+ "properties": {
+ "index": {
+ "type": "integer"
+ },
+ "name": {
+ "type": "string"
+ },
+ "path": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "index",
+ "name",
+ "path"
+ ],
+ "additionalProperties": false
+ },
+ "AttributeViewColorTheme": {
+ "type": "object",
+ "properties": {
+ "backgroundColor": {
+ "type": "string"
+ },
+ "color": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "backgroundColor",
+ "color"
+ ],
+ "additionalProperties": false
+ },
+ "AttributeViewColorThemeInput": {
+ "type": "object",
+ "properties": {
+ "backgroundColor": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "s": {
+ "color": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
+ }
+ },
+ "additionalProperties": false
+ },
+ "AttributeViewCustomColor": {
+ "type": "object",
+ "properties": {
+ "dark": {
+ "$ref": "#/$defs/AttributeViewColorTheme"
},
- "strong": {
+ "hidden": {
+ "type": "boolean"
+ },
+ "index": {
+ "type": "integer"
+ },
+ "light": {
+ "$ref": "#/$defs/AttributeViewColorTheme"
+ }
+ },
+ "required": [
+ "dark",
+ "index",
+ "light"
+ ],
+ "additionalProperties": false
+ },
+ "AttributeViewCustomColorInput": {
+ "type": "object",
+ "properties": {
+ "dark": {
"anyOf": [
{
- "type": "boolean"
+ "$ref": "#/$defs/AttributeViewColorThemeInput"
},
{
"type": "null"
}
]
},
- "sub": {
+ "hidden": {
"anyOf": [
{
"type": "boolean"
@@ -10462,40 +13003,103 @@
}
]
},
- "sup": {
+ "index": {
"anyOf": [
{
- "type": "boolean"
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "tag": {
+ "light": {
"anyOf": [
{
- "type": "boolean"
+ "$ref": "#/$defs/AttributeViewColorThemeInput"
},
{
"type": "null"
}
]
- },
- "text": {
+ }
+ },
+ "additionalProperties": false
+ },
+ "AutoLaunchRequestInput": {
+ "type": "object",
+ "properties": {
+ "autoLaunch": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "autoLaunch"
+ ],
+ "additionalProperties": false
+ },
+ "BacklinkAttributeViewMatch": {
+ "type": "object",
+ "properties": {
+ "defIDs": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "u": {
+ "itemID": {
+ "type": "string"
+ },
+ "keyID": {
+ "type": "string"
+ },
+ "keyName": {
+ "type": "string"
+ },
+ "title": {
+ "type": "string"
+ },
+ "valueID": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "defIDs",
+ "itemID",
+ "keyID",
+ "keyName",
+ "title",
+ "valueID"
+ ],
+ "additionalProperties": false
+ },
+ "BacklinkAttributeViewTarget": {
+ "type": "object",
+ "properties": {
+ "blockID": {
+ "type": "string"
+ },
+ "matches": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/BacklinkAttributeViewMatch"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
@@ -10503,130 +13107,152 @@
]
}
},
+ "required": [
+ "blockID",
+ "matches"
+ ],
"additionalProperties": false
},
- "CriterionTypes": {
+ "BacklinkContext": {
"type": "object",
"properties": {
- "audioBlock": {
- "type": "boolean"
- },
- "blockquote": {
- "type": "boolean"
- },
- "callout": {
- "type": "boolean"
- },
- "codeBlock": {
- "type": "boolean"
- },
- "databaseBlock": {
- "type": "boolean"
- },
- "document": {
- "type": "boolean"
- },
- "embedBlock": {
- "type": "boolean"
- },
- "heading": {
- "type": "boolean"
- },
- "htmlBlock": {
- "type": "boolean"
- },
- "iframeBlock": {
- "type": "boolean"
- },
- "list": {
- "type": "boolean"
- },
- "listItem": {
- "type": "boolean"
- },
- "mathBlock": {
- "type": "boolean"
+ "attributeViewTargets": {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/BacklinkAttributeViewTarget"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
- "paragraph": {
- "type": "boolean"
+ "blockPaths": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/BlockPath"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "superBlock": {
- "type": "boolean"
+ "dom": {
+ "type": "string"
},
- "tabItem": {
+ "expand": {
"type": "boolean"
},
- "table": {
- "type": "boolean"
+ "id": {
+ "type": "string"
},
- "tabs": {
- "type": "boolean"
+ "referenceBlockID": {
+ "type": "string"
},
- "videoBlock": {
- "type": "boolean"
+ "revision": {
+ "type": "string"
},
- "widgetBlock": {
- "type": "boolean"
+ "type": {
+ "type": "string"
}
},
"required": [
- "audioBlock",
- "blockquote",
- "callout",
- "codeBlock",
- "databaseBlock",
- "document",
- "embedBlock",
- "heading",
- "htmlBlock",
- "iframeBlock",
- "list",
- "listItem",
- "mathBlock",
- "paragraph",
- "superBlock",
- "tabItem",
- "table",
- "tabs",
- "videoBlock",
- "widgetBlock"
+ "blockPaths",
+ "dom",
+ "expand",
+ "id",
+ "revision"
],
"additionalProperties": false
},
- "CriterionTypesInput": {
+ "BacklinkContextData": {
"type": "object",
"properties": {
- "audioBlock": {
+ "backlinks": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/BacklinkContext"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
},
- "blockquote": {
+ "backmentions": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/BacklinkContext"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
},
- "callout": {
+ "keywords": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "codeBlock": {
+ "revision": {
+ "type": "string"
+ },
+ "unchanged": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "backlinks",
+ "backmentions",
+ "keywords",
+ "revision",
+ "unchanged"
+ ],
+ "additionalProperties": false
+ },
+ "BacklinkDocumentRequestInput": {
+ "type": "object",
+ "properties": {
+ "containChildren": {
"anyOf": [
{
"type": "boolean"
@@ -10636,7 +13262,10 @@
}
]
},
- "databaseBlock": {
+ "defID": {
+ "type": "string"
+ },
+ "highlight": {
"anyOf": [
{
"type": "boolean"
@@ -10646,47 +13275,125 @@
}
]
},
- "document": {
+ "keyword": {
+ "type": "string"
+ },
+ "knownRevision": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "embedBlock": {
+ "notebook": {
+ "type": "string"
+ },
+ "refTreeID": {
+ "type": "string"
+ },
+ "sourceFilter": {
"anyOf": [
{
- "type": "boolean"
+ "$ref": "#/$defs/BacklinkSourceFilterInput"
},
{
"type": "null"
}
]
- },
- "heading": {
+ }
+ },
+ "required": [
+ "defID",
+ "keyword",
+ "refTreeID"
+ ],
+ "additionalProperties": false
+ },
+ "BacklinkList": {
+ "type": "object",
+ "properties": {
+ "backlinks": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/BacklinkPath"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
},
- "htmlBlock": {
+ "backmentions": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/BacklinkPath"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
},
- "iframeBlock": {
+ "box": {
+ "type": "string"
+ },
+ "k": {
+ "type": "string"
+ },
+ "linkRefsCount": {
+ "type": "integer"
+ },
+ "mentionsCount": {
+ "type": "integer"
+ },
+ "mk": {
+ "type": "string"
+ },
+ "revision": {
+ "type": "string"
+ },
+ "unchanged": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "backlinks",
+ "backmentions",
+ "box",
+ "k",
+ "linkRefsCount",
+ "mentionsCount",
+ "mk",
+ "revision",
+ "unchanged"
+ ],
+ "additionalProperties": false
+ },
+ "BacklinkListRequestInput": {
+ "type": "object",
+ "properties": {
+ "containChildren": {
"anyOf": [
{
"type": "boolean"
@@ -10696,17 +13403,17 @@
}
]
},
- "list": {
+ "id": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "listItem": {
+ "includeMentions": {
"anyOf": [
{
"type": "boolean"
@@ -10716,57 +13423,43 @@
}
]
},
- "mathBlock": {
+ "k": {
+ "type": "string"
+ },
+ "knownRevision": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "paragraph": {
+ "mSort": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "superBlock": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
- },
- "tabItem": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
+ "mk": {
+ "type": "string"
},
- "table": {
+ "notebook": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "tabs": {
+ "refDefCandidates": {
"anyOf": [
{
"type": "boolean"
@@ -10776,20 +13469,20 @@
}
]
},
- "videoBlock": {
+ "sort": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "widgetBlock": {
+ "sourceFilter": {
"anyOf": [
{
- "type": "boolean"
+ "$ref": "#/$defs/BacklinkSourceFilterInput"
},
{
"type": "null"
@@ -10799,175 +13492,148 @@
},
"additionalProperties": false
},
- "DOMData": {
+ "BacklinkPath": {
"type": "object",
"properties": {
- "dom": {
+ "blocks": {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SearchBlock"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "box": {
"type": "string"
- }
- },
- "required": [
- "dom"
- ],
- "additionalProperties": false
- },
- "DOMTextRequestInput": {
- "type": "object",
- "properties": {
- "dom": {
+ },
+ "children": {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SearchPath"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "count": {
+ "type": "integer"
+ },
+ "created": {
"type": "string"
- }
- },
- "required": [
- "dom"
- ],
- "additionalProperties": false
- },
- "DailyNoteBlockRequestInput": {
- "type": "object",
- "properties": {
- "data": {
+ },
+ "depth": {
+ "type": "integer"
+ },
+ "folded": {
+ "type": "boolean"
+ },
+ "hPath": {
"type": "string"
},
- "dataType": {
+ "id": {
"type": "string"
},
- "notebook": {
+ "name": {
"type": "string"
- }
- },
- "required": [
- "data",
- "dataType",
- "notebook"
- ],
- "additionalProperties": false
- },
- "DeleteBlockRequestInput": {
- "type": "object",
- "properties": {
- "id": {
+ },
+ "nodeType": {
"type": "string"
- }
- },
- "required": [
- "id"
- ],
- "additionalProperties": false
- },
- "DiffDocVersionsRequestInput": {
- "type": "object",
- "properties": {
- "left": {
- "$ref": "#/$defs/DocVersionRefInput"
},
- "right": {
- "$ref": "#/$defs/DocVersionRefInput"
- }
- },
- "required": [
- "left",
- "right"
- ],
- "additionalProperties": false
- },
- "DiffRepoSnapshotsRequestInput": {
- "type": "object",
- "properties": {
- "left": {
+ "number": {
"type": "string"
},
- "right": {
+ "revision": {
"type": "string"
- }
- },
- "required": [
- "left",
- "right"
- ],
- "additionalProperties": false
- },
- "DirectoryEntry": {
- "type": "object",
- "properties": {
- "isDir": {
- "type": "boolean"
},
- "isSymlink": {
- "type": "boolean"
+ "subType": {
+ "type": "string"
},
- "name": {
+ "type": {
"type": "string"
},
"updated": {
- "type": "integer"
+ "type": "string"
}
},
"required": [
- "isDir",
- "isSymlink",
+ "box",
+ "count",
+ "created",
+ "depth",
+ "folded",
+ "hPath",
+ "id",
"name",
+ "nodeType",
+ "revision",
+ "subType",
+ "type",
"updated"
],
"additionalProperties": false
},
- "DocAttrView": {
+ "BacklinkRefDef": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
- "name": {
+ "path": {
+ "type": "string"
+ },
+ "text": {
"type": "string"
}
},
"required": [
"id",
- "name"
+ "path",
+ "text"
],
"additionalProperties": false
},
- "DocHeadingLevelData": {
+ "BacklinkRefDefs": {
"type": "object",
"properties": {
- "counts": {
- "type": "array",
- "items": {
- "type": "integer"
- }
- },
- "title": {
- "type": "string"
- },
- "transaction": {
+ "refDefs": {
"anyOf": [
{
- "$ref": "#/$defs/BlockTransaction"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/BacklinkRefDef"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
- },
- "withSubheadingCounts": {
- "type": "array",
- "items": {
- "type": "integer"
- }
}
},
"required": [
- "counts",
- "title",
- "transaction",
- "withSubheadingCounts"
+ "refDefs"
],
"additionalProperties": false
},
- "DocHeadingLevelRequestInput": {
+ "BacklinkSourceFilterInput": {
"type": "object",
"properties": {
- "id": {
+ "dailyNote": {
"anyOf": [
{
"type": "string"
@@ -10977,37 +13643,49 @@
}
]
},
- "notebook": {
+ "excludeSelf": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "source": {
+ "excludedNotebookIDs": {
"anyOf": [
{
- "type": "integer"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "target": {
+ "excludedRefDefIDs": {
"anyOf": [
{
- "type": "integer"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
- },
- "withSubheadings": {
+ }
+ },
+ "additionalProperties": false
+ },
+ "BackmentionDocumentRequestInput": {
+ "type": "object",
+ "properties": {
+ "containChildren": {
"anyOf": [
{
"type": "boolean"
@@ -11016,37 +13694,10 @@
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "DocHistoryContentData": {
- "type": "object",
- "properties": {
- "content": {
- "type": "string"
},
- "id": {
+ "defID": {
"type": "string"
},
- "isLargeDoc": {
- "type": "boolean"
- },
- "rootID": {
- "type": "string"
- }
- },
- "required": [
- "content",
- "id",
- "isLargeDoc",
- "rootID"
- ],
- "additionalProperties": false
- },
- "DocHistoryContentRequestInput": {
- "type": "object",
- "properties": {
"highlight": {
"anyOf": [
{
@@ -11057,10 +13708,10 @@
}
]
},
- "historyPath": {
+ "keyword": {
"type": "string"
},
- "k": {
+ "knownRevision": {
"anyOf": [
{
"type": "string"
@@ -11069,24 +13720,190 @@
"type": "null"
}
]
+ },
+ "notebook": {
+ "type": "string"
+ },
+ "refTreeID": {
+ "type": "string"
}
},
"required": [
- "historyPath"
+ "defID",
+ "keyword",
+ "refTreeID"
],
"additionalProperties": false
},
- "DocInfo": {
+ "BatchInsertBlockRequestInput": {
"type": "object",
"properties": {
- "attrViews": {
+ "blocks": {
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/BlockInsertInputInput"
+ }
+ }
+ },
+ "required": [
+ "blocks"
+ ],
+ "additionalProperties": false
+ },
+ "BatchParentBlockRequestInput": {
+ "type": "object",
+ "properties": {
+ "blocks": {
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/PrependBlockRequestInput"
+ }
+ }
+ },
+ "required": [
+ "blocks"
+ ],
+ "additionalProperties": false
+ },
+ "BatchReplaceAttributeViewBlocksRequestInput": {
+ "type": "object",
+ "properties": {
+ "avID": {
+ "type": "string"
+ },
+ "isDetached": {
+ "type": "boolean"
+ },
+ "oldNew": {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ }
+ },
+ "required": [
+ "avID",
+ "isDetached",
+ "oldNew"
+ ],
+ "additionalProperties": false
+ },
+ "BatchSetAttributeViewBlockAttrsRequestInput": {
+ "type": "object",
+ "properties": {
+ "avID": {
+ "type": "string"
+ },
+ "values": {
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/AVCellUpdateInput"
+ }
+ }
+ },
+ "required": [
+ "avID",
+ "values"
+ ],
+ "additionalProperties": false
+ },
+ "BatchSetBlockAttrsRequestInput": {
+ "type": "object",
+ "properties": {
+ "blockAttrs": {
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/SetBlockAttrsRequestInput"
+ }
+ }
+ },
+ "required": [
+ "blockAttrs"
+ ],
+ "additionalProperties": false
+ },
+ "BatchTaskListMarkerRequestInput": {
+ "type": "object",
+ "properties": {
+ "items": {
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/TaskListMarkerRequestInput"
+ }
+ }
+ },
+ "required": [
+ "items"
+ ],
+ "additionalProperties": false
+ },
+ "BatchUpdateBlockRequestInput": {
+ "type": "object",
+ "properties": {
+ "blocks": {
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/UpdateBlockRequestInput"
+ }
+ }
+ },
+ "required": [
+ "blocks"
+ ],
+ "additionalProperties": false
+ },
+ "BatchUpdatePackageRequestInput": {
+ "type": "object",
+ "properties": {
+ "frontend": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "frontend"
+ ],
+ "additionalProperties": false
+ },
+ "BazaarAppearance": {
+ "type": "object",
+ "properties": {
+ "bodyGradient": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/BazaarBodyGradient"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "closeButtonBehavior": {
+ "type": "integer"
+ },
+ "codeBlockThemeDark": {
+ "type": "string"
+ },
+ "codeBlockThemeLight": {
+ "type": "string"
+ },
+ "darkThemes": {
"anyOf": [
{
"type": "array",
"items": {
"anyOf": [
{
- "$ref": "#/$defs/DocAttrView"
+ "$ref": "#/$defs/BazaarAppearanceTheme"
},
{
"type": "null"
@@ -11099,12 +13916,29 @@
}
]
},
- "ial": {
+ "entryVisibility": {
"anyOf": [
{
- "type": "object",
- "additionalProperties": {
- "type": "string"
+ "$ref": "#/$defs/BazaarEntryVisibility"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "globalFontFamilies": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/BazaarEditorFont"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
{
@@ -11112,24 +13946,31 @@
}
]
},
- "icon": {
- "type": "string"
+ "hideStatusBar": {
+ "type": "boolean"
},
- "id": {
- "type": "string"
+ "hideToolbar": {
+ "type": "boolean"
},
- "name": {
+ "icon": {
"type": "string"
},
- "refCount": {
- "type": "integer"
+ "iconVer": {
+ "type": "string"
},
- "refIDs": {
+ "icons": {
"anyOf": [
{
"type": "array",
"items": {
- "type": "string"
+ "anyOf": [
+ {
+ "$ref": "#/$defs/BazaarAppearanceIcon"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
{
@@ -11137,73 +13978,17 @@
}
]
},
- "rootID": {
+ "lang": {
"type": "string"
},
- "subFileCount": {
- "type": "integer"
- }
- },
- "required": [
- "attrViews",
- "ial",
- "icon",
- "id",
- "name",
- "refCount",
- "refIDs",
- "rootID",
- "subFileCount"
- ],
- "additionalProperties": false
- },
- "DocOrdersRequestInput": {
- "type": "object",
- "properties": {
- "id": {
- "type": "string"
- }
- },
- "required": [
- "id"
- ],
- "additionalProperties": false
- },
- "DocVersionDiffContent": {
- "type": "object",
- "properties": {
- "content": {
- "type": "string"
- },
- "id": {
- "type": "string"
- },
- "rootID": {
- "type": "string"
- },
- "title": {
- "type": "string"
- }
- },
- "required": [
- "content",
- "id",
- "rootID",
- "title"
- ],
- "additionalProperties": false
- },
- "DocVersionDiffResult": {
- "type": "object",
- "properties": {
- "differences": {
+ "lightThemes": {
"anyOf": [
{
"type": "array",
"items": {
"anyOf": [
{
- "$ref": "#/$defs/DocVersionDifference"
+ "$ref": "#/$defs/BazaarAppearanceTheme"
},
{
"type": "null"
@@ -11216,205 +14001,219 @@
}
]
},
- "fallback": {
- "type": "boolean"
+ "mode": {
+ "type": "integer"
},
- "large": {
+ "modeOS": {
"type": "boolean"
},
- "left": {
+ "notifications": {
"anyOf": [
{
- "$ref": "#/$defs/DocVersionDiffContent"
+ "$ref": "#/$defs/BazaarNotifications"
},
{
"type": "null"
}
]
},
- "message": {
- "type": "string"
- },
- "right": {
+ "statusBar": {
"anyOf": [
{
- "$ref": "#/$defs/DocVersionDiffContent"
+ "$ref": "#/$defs/BazaarStatusBar"
},
{
"type": "null"
}
]
},
- "titleModified": {
+ "themeDark": {
+ "type": "string"
+ },
+ "themeJS": {
"type": "boolean"
+ },
+ "themeLight": {
+ "type": "string"
+ },
+ "themeVer": {
+ "type": "string"
}
},
"required": [
- "differences",
- "fallback",
- "large",
- "left",
- "message",
- "right",
- "titleModified"
+ "bodyGradient",
+ "closeButtonBehavior",
+ "codeBlockThemeDark",
+ "codeBlockThemeLight",
+ "darkThemes",
+ "entryVisibility",
+ "globalFontFamilies",
+ "hideStatusBar",
+ "hideToolbar",
+ "icon",
+ "iconVer",
+ "icons",
+ "lang",
+ "lightThemes",
+ "mode",
+ "modeOS",
+ "notifications",
+ "statusBar",
+ "themeDark",
+ "themeJS",
+ "themeLight",
+ "themeVer"
],
"additionalProperties": false
},
- "DocVersionDifference": {
+ "BazaarAppearanceIcon": {
"type": "object",
"properties": {
- "id": {
+ "label": {
"type": "string"
},
- "statuses": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- {
- "type": "null"
- }
- ]
+ "name": {
+ "type": "string"
}
},
"required": [
- "id",
- "statuses"
+ "label",
+ "name"
],
"additionalProperties": false
},
- "DocVersionRefInput": {
+ "BazaarAppearancePackagesData": {
"type": "object",
"properties": {
- "id": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "path": {
+ "appearance": {
"anyOf": [
{
- "type": "string"
+ "$ref": "#/$defs/BazaarAppearance"
},
{
"type": "null"
}
]
},
- "snapshot": {
+ "packages": {
"anyOf": [
{
- "type": "string"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/BazaarPackage"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
- },
- "type": {
- "type": "string"
}
},
"required": [
- "type"
+ "appearance",
+ "packages"
],
"additionalProperties": false
},
- "DocsInfoRequestInput": {
+ "BazaarAppearanceTheme": {
"type": "object",
"properties": {
- "av": {
- "type": "boolean"
- },
- "ids": {
+ "frontends": {
"type": "array",
"items": {
"type": "string"
}
},
- "refCount": {
- "type": "boolean"
+ "label": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
}
},
"required": [
- "av",
- "ids",
- "refCount"
+ "label",
+ "name"
],
"additionalProperties": false
},
- "DownloadCloudSnapshotRequestInput": {
+ "BazaarBodyGradient": {
"type": "object",
"properties": {
- "id": {
- "type": "string"
+ "dark": {
+ "$ref": "#/$defs/BazaarBodyGradientColor"
},
- "tag": {
+ "light": {
+ "$ref": "#/$defs/BazaarBodyGradientColor"
+ },
+ "mode": {
"type": "string"
}
},
"required": [
- "id",
- "tag"
+ "dark",
+ "light",
+ "mode"
],
"additionalProperties": false
},
- "DownloadInstallPkgRequestInput": {
+ "BazaarBodyGradientColor": {
"type": "object",
"properties": {
- "downloadInstallPkg": {
- "type": "boolean"
+ "color": {
+ "type": "string"
+ },
+ "opacity": {
+ "type": "number"
}
},
"required": [
- "downloadInstallPkg"
+ "color",
+ "opacity"
],
"additionalProperties": false
},
- "EditorReadOnlyRequestInput": {
+ "BazaarEditorFont": {
"type": "object",
"properties": {
- "readonly": {
- "type": "boolean"
+ "displayName": {
+ "type": "string"
+ },
+ "family": {
+ "type": "string"
+ },
+ "weight": {
+ "type": "integer"
}
},
"required": [
- "readonly"
+ "displayName",
+ "family",
+ "weight"
],
"additionalProperties": false
},
- "EmbedBlock": {
+ "BazaarEntryVisibility": {
"type": "object",
"properties": {
- "allowChildOperation": {
- "type": "boolean"
- },
- "block": {
- "anyOf": [
- {
- "$ref": "#/$defs/SearchBlock"
- },
- {
- "type": "null"
- }
- ]
+ "active": {
+ "type": "string"
},
- "blockPaths": {
+ "profiles": {
"anyOf": [
{
"type": "array",
"items": {
"anyOf": [
{
- "$ref": "#/$defs/BlockPath"
+ "$ref": "#/$defs/BazaarEntryVisibilityProfile"
},
{
"type": "null"
@@ -11426,142 +14225,76 @@
"type": "null"
}
]
+ },
+ "version": {
+ "type": "integer"
}
},
"required": [
- "allowChildOperation",
- "block",
- "blockPaths"
+ "active",
+ "profiles",
+ "version"
],
"additionalProperties": false
},
- "EmbedBlocksData": {
+ "BazaarEntryVisibilityProfile": {
"type": "object",
"properties": {
- "blocks": {
+ "entries": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/EmbedBlock"
- },
- {
- "type": "null"
- }
- ]
+ "type": "object",
+ "additionalProperties": {
+ "type": "boolean"
}
},
{
"type": "null"
}
]
- }
- },
- "required": [
- "blocks"
- ],
- "additionalProperties": false
- },
- "EmbedStat": {
- "type": "object",
- "properties": {
- "complete": {
- "type": "boolean"
- },
- "cycleCount": {
- "type": "integer"
- },
- "depthLimitCount": {
- "type": "integer"
- },
- "failedQueryCount": {
- "type": "integer"
},
- "failedResultCount": {
- "type": "integer"
- },
- "jsEmbedCount": {
- "type": "integer"
- },
- "queryEmbedCount": {
- "type": "integer"
- },
- "resultCount": {
- "type": "integer"
- },
- "truncatedQueryCount": {
- "type": "integer"
- }
- },
- "required": [
- "complete",
- "cycleCount",
- "depthLimitCount",
- "failedQueryCount",
- "failedResultCount",
- "jsEmbedCount",
- "queryEmbedCount",
- "resultCount",
- "truncatedQueryCount"
- ],
- "additionalProperties": false
- },
- "EmptyRequestInput": {
- "type": "object",
- "additionalProperties": false
- },
- "EncryptedNotebookStatus": {
- "type": "object",
- "properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
- "state": {
- "type": "string",
- "enum": [
- "Locked",
- "Unlocking",
- "Unlocked",
- "Locking",
- "Error"
+ "orders": {
+ "anyOf": [
+ {
+ "type": "object",
+ "additionalProperties": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
]
- },
- "unlocked": {
- "type": "boolean"
}
},
"required": [
+ "entries",
"id",
"name",
- "state",
- "unlocked"
+ "orders"
],
"additionalProperties": false
},
- "EncryptedNotebookStatusData": {
+ "BazaarFunding": {
"type": "object",
"properties": {
- "boxes": {
- "type": "array",
- "items": {
- "$ref": "#/$defs/EncryptedNotebookStatus"
- }
- },
- "count": {
- "type": "integer"
- },
- "enabled": {
- "type": "boolean"
- },
- "hasHistoryDependency": {
- "type": "boolean"
- },
- "migrationBoxes": {
+ "custom": {
"anyOf": [
{
"type": "array",
@@ -11574,523 +14307,829 @@
}
]
},
- "migrationPending": {
- "type": "boolean"
+ "github": {
+ "type": "string"
},
- "state": {
- "type": "string",
- "enum": [
- "Disabled",
- "Enabled",
- "RecoveryRequired"
- ]
+ "links": {
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/BazaarFundingLink"
+ }
+ },
+ "openCollective": {
+ "type": "string"
+ },
+ "patreon": {
+ "type": "string"
}
},
"required": [
- "boxes",
- "count",
- "enabled",
- "hasHistoryDependency",
- "migrationBoxes",
- "migrationPending",
- "state"
+ "custom",
+ "github",
+ "openCollective",
+ "patreon"
],
"additionalProperties": false
},
- "ExportAsFileRequestInput": {
+ "BazaarFundingLink": {
"type": "object",
"properties": {
- "file": {
- "type": "string",
- "format": "binary"
+ "label": {
+ "type": "string"
},
- "type": {
+ "url": {
"type": "string"
}
},
"required": [
- "file",
- "type"
+ "label",
+ "url"
],
"additionalProperties": false
},
- "ExportAttributeViewRequestInput": {
+ "BazaarLocalInstallData": {
"type": "object",
"properties": {
- "blockID": {
+ "minAppVersion": {
"type": "string"
},
- "id": {
+ "packageName": {
+ "type": "string"
+ },
+ "packageType": {
"type": "string"
+ },
+ "updated": {
+ "type": "boolean"
}
},
"required": [
- "blockID",
- "id"
+ "packageName",
+ "packageType",
+ "updated"
],
"additionalProperties": false
},
- "ExportBrowserHTMLRequestInput": {
+ "BazaarLocalInstallError": {
"type": "object",
"properties": {
- "folder": {
+ "minAppVersion": {
"type": "string"
},
- "html": {
+ "packageName": {
"type": "string"
},
- "name": {
+ "packageType": {
"type": "string"
+ },
+ "reason": {
+ "type": "string",
+ "enum": [
+ "install-failed",
+ "package-exists",
+ "package-incompatible"
+ ]
}
},
"required": [
- "folder",
- "html",
- "name"
+ "minAppVersion",
+ "packageName",
+ "packageType",
+ "reason"
],
"additionalProperties": false
},
- "ExportDocumentsMarkdownRequestInput": {
+ "BazaarLocalInstallResult": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/BazaarLocalInstallData"
+ },
+ {
+ "$ref": "#/$defs/BazaarLocalInstallError"
+ }
+ ]
+ },
+ "BazaarNotifications": {
"type": "object",
"properties": {
- "addTitle": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
+ "browserCompatibility": {
+ "type": "boolean"
},
- "blockEmbedMode": {
- "anyOf": [
- {
- "type": "number"
- },
- {
- "type": "null"
- }
- ]
+ "docTreeMaxList": {
+ "type": "boolean"
},
- "blockRefMode": {
- "anyOf": [
- {
- "type": "number"
- },
- {
- "type": "null"
- }
- ]
+ "formatPainterTip": {
+ "type": "boolean"
},
- "blockRefTextLeft": {
+ "selectAllIncompleteTip": {
+ "type": "boolean"
+ },
+ "selectAllTip": {
+ "type": "boolean"
+ },
+ "tagMaxList": {
+ "type": "boolean"
+ },
+ "workspaceNotSSD": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "browserCompatibility",
+ "docTreeMaxList",
+ "tagMaxList",
+ "workspaceNotSSD"
+ ],
+ "additionalProperties": false
+ },
+ "BazaarPackage": {
+ "type": "object",
+ "properties": {
+ "alternatives": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "author": {
+ "type": "string"
+ },
+ "backends": {
"anyOf": [
{
- "type": "string"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "blockRefTextRight": {
+ "bazaarIncompatible": {
+ "type": "boolean"
+ },
+ "bootAppearances": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "current": {
+ "type": "boolean"
+ },
+ "deprecated": {
+ "type": "boolean"
+ },
+ "deprecatedReason": {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ }
+ },
+ "description": {
"anyOf": [
{
- "type": "string"
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "fileAnnotationRefMode": {
+ "disabledInPublish": {
+ "type": "boolean"
+ },
+ "disallowInstall": {
+ "type": "boolean"
+ },
+ "disallowUpdate": {
+ "type": "boolean"
+ },
+ "displayName": {
"anyOf": [
{
- "type": "number"
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "ids": {
- "type": "array",
- "items": {
- "type": "string"
- }
+ "downloads": {
+ "type": "integer"
},
- "includeRelatedDocs": {
+ "enabled": {
+ "type": "boolean"
+ },
+ "frontends": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "includeSubDocs": {
+ "funding": {
"anyOf": [
{
- "type": "boolean"
+ "$ref": "#/$defs/BazaarFunding"
},
{
"type": "null"
}
]
},
- "inlineMemo": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
+ "hInstallDate": {
+ "type": "string"
+ },
+ "hInstallSize": {
+ "type": "string"
+ },
+ "hSize": {
+ "type": "string"
+ },
+ "hUpdated": {
+ "type": "string"
+ },
+ "hasStorageData": {
+ "type": "boolean"
+ },
+ "icon": {
+ "type": "string"
+ },
+ "iconURL": {
+ "type": "string"
+ },
+ "installSize": {
+ "type": "integer"
+ },
+ "installTime": {
+ "type": "integer"
+ },
+ "installed": {
+ "type": "boolean"
+ },
+ "installedIncompatible": {
+ "type": "boolean"
+ },
+ "invalidReason": {
+ "type": "string",
+ "enum": [
+ "missing-manifest",
+ "invalid-manifest",
+ "name-mismatch"
]
},
- "markdownYFM": {
+ "kernels": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "removeAssetsID": {
+ "keywords": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "tagCloseMarker": {
+ "minAppVersion": {
+ "type": "string"
+ },
+ "modes": {
"anyOf": [
{
- "type": "string"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "tagOpenMarker": {
+ "name": {
+ "type": "string"
+ },
+ "openIssues": {
+ "type": "integer"
+ },
+ "outdated": {
+ "type": "boolean"
+ },
+ "preferredDeprecatedReason": {
+ "type": "string"
+ },
+ "preferredDesc": {
+ "type": "string"
+ },
+ "preferredFunding": {
+ "type": "string"
+ },
+ "preferredName": {
+ "type": "string"
+ },
+ "preferredReadme": {
+ "type": "string"
+ },
+ "preview": {
+ "type": "string"
+ },
+ "previewURL": {
+ "type": "string"
+ },
+ "rating": {
+ "$ref": "#/$defs/BazaarPackageRating"
+ },
+ "ratingAvailable": {
+ "type": "boolean"
+ },
+ "readme": {
"anyOf": [
{
- "type": "string"
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
+ },
+ "repoHash": {
+ "type": "string"
+ },
+ "repoRef": {
+ "type": "string"
+ },
+ "repoURL": {
+ "type": "string"
+ },
+ "size": {
+ "type": "integer"
+ },
+ "stars": {
+ "type": "integer"
+ },
+ "updateRequiredMinAppVer": {
+ "type": "string"
+ },
+ "updateTime": {
+ "type": "integer"
+ },
+ "updated": {
+ "type": "string"
+ },
+ "url": {
+ "type": "string"
+ },
+ "userDisabledInPublish": {
+ "type": "boolean"
+ },
+ "version": {
+ "type": "string"
}
},
"required": [
- "ids"
+ "author",
+ "backends",
+ "current",
+ "description",
+ "disabledInPublish",
+ "disallowInstall",
+ "disallowUpdate",
+ "displayName",
+ "downloads",
+ "frontends",
+ "funding",
+ "hInstallDate",
+ "hInstallSize",
+ "hSize",
+ "hUpdated",
+ "iconURL",
+ "installSize",
+ "installTime",
+ "installed",
+ "kernels",
+ "keywords",
+ "minAppVersion",
+ "name",
+ "openIssues",
+ "outdated",
+ "preferredDesc",
+ "preferredFunding",
+ "preferredName",
+ "preferredReadme",
+ "previewURL",
+ "ratingAvailable",
+ "readme",
+ "repoHash",
+ "repoURL",
+ "size",
+ "stars",
+ "updateTime",
+ "updated",
+ "url",
+ "version"
],
"additionalProperties": false
},
- "ExportDocxRequestInput": {
+ "BazaarPackageDetail": {
"type": "object",
"properties": {
- "id": {
- "type": "string"
- },
- "merge": {
+ "available": {
"anyOf": [
{
- "type": "boolean"
+ "$ref": "#/$defs/BazaarPackage"
},
{
"type": "null"
}
]
},
- "mergeContentHeadingMode": {
+ "installed": {
"anyOf": [
{
- "type": "string"
+ "$ref": "#/$defs/BazaarPackage"
},
{
"type": "null"
}
]
+ }
+ },
+ "required": [
+ "available",
+ "installed"
+ ],
+ "additionalProperties": false
+ },
+ "BazaarPackageRating": {
+ "type": "object",
+ "properties": {
+ "average": {
+ "type": "number"
},
- "mergeDocHeadingMode": {
+ "count": {
+ "type": "integer"
+ },
+ "distribution": {
+ "type": "array",
+ "items": {
+ "type": "integer"
+ },
+ "minItems": 5,
+ "maxItems": 5
+ }
+ },
+ "required": [
+ "average",
+ "count",
+ "distribution"
+ ],
+ "additionalProperties": false
+ },
+ "BazaarPackageSizeData": {
+ "type": "object",
+ "properties": {
+ "hInstallSize": {
+ "type": "string"
+ },
+ "installSize": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "hInstallSize",
+ "installSize"
+ ],
+ "additionalProperties": false
+ },
+ "BazaarPackagesData": {
+ "type": "object",
+ "properties": {
+ "packages": {
"anyOf": [
{
- "type": "string"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/BazaarPackage"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
- },
- "removeAssets": {
- "type": "boolean"
- },
- "savePath": {
- "type": "string"
}
},
"required": [
- "id",
- "removeAssets",
- "savePath"
+ "packages"
],
"additionalProperties": false
},
- "ExportFileData": {
+ "BazaarREADMEData": {
"type": "object",
"properties": {
- "file": {
+ "html": {
"type": "string"
}
},
"required": [
- "file"
+ "html"
],
"additionalProperties": false
},
- "ExportFolderRequestInput": {
+ "BazaarRatingData": {
"type": "object",
"properties": {
- "folder": {
- "type": "string"
+ "rating": {
+ "$ref": "#/$defs/BazaarPackageRating"
+ },
+ "ratingAvailable": {
+ "type": "boolean"
+ },
+ "userRating": {
+ "type": "integer"
}
},
"required": [
- "folder"
+ "ratingAvailable",
+ "userRating"
],
"additionalProperties": false
},
- "ExportHTMLData": {
+ "BazaarRatingError": {
"type": "object",
"properties": {
- "content": {
- "type": "string"
- },
- "folder": {
- "type": "string"
- },
- "id": {
- "type": "string"
- },
- "name": {
- "type": "string"
+ "errorCode": {
+ "type": "string",
+ "enum": [
+ "bazaarRatingRateLimited",
+ "bazaarPackagePending"
+ ]
}
},
"required": [
- "content",
- "id",
- "name"
+ "errorCode"
],
"additionalProperties": false
},
- "ExportHTMLRequestInput": {
+ "BazaarRatingResult": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/BazaarRatingData"
+ },
+ {
+ "$ref": "#/$defs/BazaarRatingError"
+ }
+ ]
+ },
+ "BazaarRatingsData": {
"type": "object",
"properties": {
- "addTitle": {
+ "eligiblePackageNames": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "customTitle": {
+ "ratings": {
"anyOf": [
{
- "type": "string"
+ "type": "object",
+ "additionalProperties": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/BazaarPackageRating"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
+ }
+ },
+ "required": [
+ "eligiblePackageNames",
+ "ratings"
+ ],
+ "additionalProperties": false
+ },
+ "BazaarStatusBar": {
+ "type": "object",
+ "properties": {
+ "msgDataSyncDisabled": {
+ "type": "boolean"
},
- "id": {
- "type": "string"
+ "msgTaskAssetDatabaseIndexCommitDisabled": {
+ "type": "boolean"
},
- "keepFold": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
+ "msgTaskDatabaseIndexCommitDisabled": {
+ "type": "boolean"
},
- "merge": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
+ "msgTaskHistoryDatabaseIndexCommitDisabled": {
+ "type": "boolean"
},
- "mergeContentHeadingMode": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "mergeDocHeadingMode": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "pdf": {
+ "msgTaskHistoryGenerateFileDisabled": {
"type": "boolean"
},
- "savePath": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "id",
- "pdf"
- ],
- "additionalProperties": false
- },
- "ExportIDRequestInput": {
- "type": "object",
- "properties": {
- "id": {
- "type": "string"
- }
- },
- "required": [
- "id"
- ],
- "additionalProperties": false
- },
- "ExportIDsRequestInput": {
- "type": "object",
- "properties": {
- "ids": {
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- },
- "required": [
- "ids"
- ],
- "additionalProperties": false
- },
- "ExportMarkdownContentData": {
- "type": "object",
- "properties": {
- "content": {
- "type": "string"
- },
- "hPath": {
- "type": "string"
+ "version": {
+ "type": "integer"
}
},
"required": [
- "content",
- "hPath"
+ "msgDataSyncDisabled",
+ "msgTaskAssetDatabaseIndexCommitDisabled",
+ "msgTaskDatabaseIndexCommitDisabled",
+ "msgTaskHistoryDatabaseIndexCommitDisabled",
+ "msgTaskHistoryGenerateFileDisabled",
+ "version"
],
"additionalProperties": false
},
- "ExportMarkdownContentRequestInput": {
+ "BazaarUpdatedData": {
"type": "object",
"properties": {
- "addTitle": {
+ "icons": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/BazaarPackageDetail"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
},
- "adjustHeadingLevel": {
+ "plugins": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/BazaarPackageDetail"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
},
- "embedMode": {
+ "templates": {
"anyOf": [
{
- "type": "number"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/BazaarPackageDetail"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
},
- "fillCSSVar": {
+ "themes": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/BazaarPackageDetail"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
},
- "id": {
- "type": "string"
- },
- "imgTag": {
+ "widgets": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/BazaarPackageDetail"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
- },
- "refMode": {
+ }
+ },
+ "required": [
+ "icons",
+ "plugins",
+ "templates",
+ "themes",
+ "widgets"
+ ],
+ "additionalProperties": false
+ },
+ "BazaarUserRatingsData": {
+ "type": "object",
+ "properties": {
+ "eligiblePackageNames": {
"anyOf": [
{
- "type": "number"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "yfm": {
+ "userRatings": {
"anyOf": [
{
- "type": "boolean"
+ "type": "object",
+ "additionalProperties": {
+ "type": "integer"
+ }
},
{
"type": "null"
@@ -12099,20 +15138,41 @@
}
},
"required": [
- "id"
+ "eligiblePackageNames",
+ "userRatings"
],
"additionalProperties": false
},
- "ExportMarkdownHTMLRequestInput": {
+ "BazaarUserRatingsResult": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/BazaarUserRatingsData"
+ },
+ {
+ "$ref": "#/$defs/BazaarRatingError"
+ }
+ ]
+ },
+ "BlockBreadcrumbChildren": {
"type": "object",
"properties": {
- "id": {
- "type": "string"
+ "hasMore": {
+ "type": "boolean"
},
- "savePath": {
+ "items": {
"anyOf": [
{
- "type": "string"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/BlockPath"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
@@ -12121,34 +15181,44 @@
}
},
"required": [
- "id"
+ "hasMore",
+ "items"
],
"additionalProperties": false
},
- "ExportMarkdownRequestInput": {
+ "BlockBreadcrumbChildrenRequestInput": {
"type": "object",
"properties": {
- "addTitle": {
+ "excludeTypes": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "blockEmbedMode": {
+ "id": {
+ "type": "string"
+ },
+ "ids": {
"anyOf": [
{
- "type": "number"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "blockRefMode": {
+ "limit": {
"anyOf": [
{
"type": "number"
@@ -12158,7 +15228,7 @@
}
]
},
- "blockRefTextLeft": {
+ "notebook": {
"anyOf": [
{
"type": "string"
@@ -12168,20 +15238,32 @@
}
]
},
- "blockRefTextRight": {
+ "offset": {
"anyOf": [
{
- "type": "string"
+ "type": "number"
},
{
"type": "null"
}
]
- },
- "fileAnnotationRefMode": {
+ }
+ },
+ "required": [
+ "id"
+ ],
+ "additionalProperties": false
+ },
+ "BlockBreadcrumbRequestInput": {
+ "type": "object",
+ "properties": {
+ "excludeTypes": {
"anyOf": [
{
- "type": "number"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
@@ -12191,57 +15273,171 @@
"id": {
"type": "string"
},
- "includeRelatedDocs": {
+ "ids": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "includeSubDocs": {
+ "notebook": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
+ }
+ },
+ "required": [
+ "id"
+ ],
+ "additionalProperties": false
+ },
+ "BlockDOMData": {
+ "type": "object",
+ "properties": {
+ "dom": {
+ "type": "string"
},
- "inlineMemo": {
+ "id": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "dom",
+ "id"
+ ],
+ "additionalProperties": false
+ },
+ "BlockDeleteData": {
+ "type": "object",
+ "properties": {
+ "createEmptyParagraph": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "createEmptyParagraph"
+ ],
+ "additionalProperties": false
+ },
+ "BlockFoldData": {
+ "type": "object",
+ "properties": {
+ "isFolded": {
+ "type": "boolean"
+ },
+ "isRoot": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "isFolded",
+ "isRoot"
+ ],
+ "additionalProperties": false
+ },
+ "BlockIDRequestInput": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id"
+ ],
+ "additionalProperties": false
+ },
+ "BlockIDsRequestInput": {
+ "type": "object",
+ "properties": {
+ "ids": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ },
+ "required": [
+ "ids"
+ ],
+ "additionalProperties": false
+ },
+ "BlockInfoData": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/FullBlockInfo"
+ },
+ {
+ "$ref": "#/$defs/PublishedBlockInfo"
+ }
+ ]
+ },
+ "BlockInfoRequestInput": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "ids": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "markdownYFM": {
+ "notebook": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
+ }
+ },
+ "required": [
+ "id"
+ ],
+ "additionalProperties": false
+ },
+ "BlockInsertInputInput": {
+ "type": "object",
+ "properties": {
+ "data": {
+ "type": "string"
},
- "removeAssetsID": {
+ "dataType": {
+ "type": "string"
+ },
+ "nextID": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "tagCloseMarker": {
+ "parentID": {
"anyOf": [
{
"type": "string"
@@ -12251,7 +15447,7 @@
}
]
},
- "tagOpenMarker": {
+ "previousID": {
"anyOf": [
{
"type": "string"
@@ -12263,72 +15459,57 @@
}
},
"required": [
- "id"
- ],
- "additionalProperties": false
- },
- "ExportNameData": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
- }
- },
- "required": [
- "name"
+ "data",
+ "dataType"
],
"additionalProperties": false
},
- "ExportNamedZipData": {
+ "BlockKramdownData": {
"type": "object",
"properties": {
- "name": {
+ "id": {
"type": "string"
},
- "zip": {
+ "kramdown": {
"type": "string"
}
},
"required": [
- "name",
- "zip"
+ "id",
+ "kramdown"
],
"additionalProperties": false
},
- "ExportNotebookMarkdownRequestInput": {
+ "BlockKramdownRequestInput": {
"type": "object",
"properties": {
- "addTitle": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
+ "id": {
+ "type": "string"
},
- "blockEmbedMode": {
+ "ids": {
"anyOf": [
{
- "type": "number"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "blockRefMode": {
+ "mode": {
"anyOf": [
{
- "type": "number"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "blockRefTextLeft": {
+ "notebook": {
"anyOf": [
{
"type": "string"
@@ -12337,140 +15518,278 @@
"type": "null"
}
]
+ }
+ },
+ "required": [
+ "id"
+ ],
+ "additionalProperties": false
+ },
+ "BlockOperation": {
+ "type": "object",
+ "properties": {
+ "action": {
+ "type": "string",
+ "enum": [
+ "delete",
+ "insert",
+ "update",
+ "foldHeading",
+ "unfoldHeading",
+ "setAttrs",
+ "moveOutlineHeading",
+ "appendInsert",
+ "prependInsert"
+ ]
},
- "blockRefTextRight": {
+ "avID": {
+ "type": "string"
+ },
+ "backRelationKeyID": {
+ "type": "string"
+ },
+ "blockID": {
+ "type": "string"
+ },
+ "blockIDs": {
"anyOf": [
{
- "type": "string"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "fileAnnotationRefMode": {
+ "context": {
"anyOf": [
{
- "type": "number"
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "includeRelatedDocs": {
+ "data": {
"anyOf": [
{
- "type": "boolean"
+ "type": "null"
},
{
- "type": "null"
+ "type": "string"
+ },
+ {
+ "$ref": "#/$defs/BlockDeleteData"
}
]
},
- "includeSubDocs": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
+ "deckID": {
+ "type": "string"
},
- "inlineMemo": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
+ "format": {
+ "type": "string"
},
- "markdownYFM": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
+ "groupID": {
+ "type": "string"
},
- "notebook": {
+ "id": {
"type": "string"
},
- "removeAssetsID": {
+ "ignoreDefaultFill": {
+ "type": "boolean"
+ },
+ "isDetached": {
+ "type": "boolean"
+ },
+ "isTwoWay": {
+ "type": "boolean"
+ },
+ "keyID": {
+ "type": "string"
+ },
+ "layout": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "nextID": {
+ "type": "string"
+ },
+ "parentID": {
+ "type": "string"
+ },
+ "previousID": {
+ "type": "string"
+ },
+ "removeDest": {
+ "type": "boolean"
+ },
+ "retData": {
"anyOf": [
- {
- "type": "boolean"
- },
{
"type": "null"
- }
- ]
- },
- "tagCloseMarker": {
- "anyOf": [
+ },
{
"type": "string"
},
{
- "type": "null"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
}
]
},
- "tagOpenMarker": {
+ "rootID": {
+ "type": "string"
+ },
+ "rowID": {
+ "type": "string"
+ },
+ "srcIDs": {
"anyOf": [
{
- "type": "string"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
+ },
+ "srcs": {
+ "type": "null"
+ },
+ "targetGroupID": {
+ "type": "string"
+ },
+ "type": {
+ "type": "string",
+ "enum": [
+ ""
+ ]
+ },
+ "viewID": {
+ "type": "string"
+ },
+ "viewIDs": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
}
},
"required": [
- "notebook"
+ "action",
+ "avID",
+ "backRelationKeyID",
+ "blockID",
+ "blockIDs",
+ "context",
+ "data",
+ "deckID",
+ "format",
+ "groupID",
+ "id",
+ "ignoreDefaultFill",
+ "isDetached",
+ "isTwoWay",
+ "keyID",
+ "layout",
+ "name",
+ "nextID",
+ "parentID",
+ "previousID",
+ "removeDest",
+ "retData",
+ "rootID",
+ "rowID",
+ "srcIDs",
+ "srcs",
+ "targetGroupID",
+ "type",
+ "viewID"
],
"additionalProperties": false
},
- "ExportNotebooksMarkdownRequestInput": {
+ "BlockPath": {
"type": "object",
"properties": {
- "addTitle": {
+ "children": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/BlockPath"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
},
- "blockEmbedMode": {
- "anyOf": [
- {
- "type": "number"
- },
- {
- "type": "null"
- }
- ]
+ "hasChildren": {
+ "type": "boolean"
},
- "blockRefMode": {
+ "id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "subType": {
+ "type": "string"
+ },
+ "type": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "children",
+ "id",
+ "name",
+ "subType",
+ "type"
+ ],
+ "additionalProperties": false
+ },
+ "BlockQueryRequestInput": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "ids": {
"anyOf": [
{
- "type": "number"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "blockRefTextLeft": {
+ "notebook": {
"anyOf": [
{
"type": "string"
@@ -12479,91 +15798,298 @@
"type": "null"
}
]
+ }
+ },
+ "required": [
+ "id"
+ ],
+ "additionalProperties": false
+ },
+ "BlockRelevantData": {
+ "type": "object",
+ "properties": {
+ "nextID": {
+ "type": "string"
},
- "blockRefTextRight": {
+ "parentID": {
+ "type": "string"
+ },
+ "previousID": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "nextID",
+ "parentID",
+ "previousID"
+ ],
+ "additionalProperties": false
+ },
+ "BlockReminderRequestInput": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "timed": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "timed"
+ ],
+ "additionalProperties": false
+ },
+ "BlockSiblingData": {
+ "type": "object",
+ "properties": {
+ "next": {
+ "type": "string"
+ },
+ "parent": {
+ "type": "string"
+ },
+ "previous": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "next",
+ "parent",
+ "previous"
+ ],
+ "additionalProperties": false
+ },
+ "BlockStat": {
+ "type": "object",
+ "properties": {
+ "blockCount": {
+ "type": "integer"
+ },
+ "imageCount": {
+ "type": "integer"
+ },
+ "linkCount": {
+ "type": "integer"
+ },
+ "refCount": {
+ "type": "integer"
+ },
+ "runeCount": {
+ "type": "integer"
+ },
+ "wordCount": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "blockCount",
+ "imageCount",
+ "linkCount",
+ "refCount",
+ "runeCount",
+ "wordCount"
+ ],
+ "additionalProperties": false
+ },
+ "BlockTransaction": {
+ "type": "object",
+ "properties": {
+ "doOperations": {
"anyOf": [
{
- "type": "string"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/BlockOperation"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
},
- "fileAnnotationRefMode": {
+ "templateDocTreePlanID": {
+ "type": "string"
+ },
+ "timestamp": {
+ "type": "integer"
+ },
+ "undoOperations": {
"anyOf": [
{
- "type": "number"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/BlockOperation"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
+ }
+ },
+ "required": [
+ "doOperations",
+ "timestamp",
+ "undoOperations"
+ ],
+ "additionalProperties": false
+ },
+ "BlockTreeInfo": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
},
- "includeRelatedDocs": {
+ "nextID": {
+ "type": "string"
+ },
+ "nextType": {
+ "type": "string"
+ },
+ "parentID": {
+ "type": "string"
+ },
+ "parentType": {
+ "type": "string"
+ },
+ "previousID": {
+ "type": "string"
+ },
+ "previousType": {
+ "type": "string"
+ },
+ "type": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "nextID",
+ "nextType",
+ "parentID",
+ "parentType",
+ "previousID",
+ "previousType",
+ "type"
+ ],
+ "additionalProperties": false
+ },
+ "BlocksKramdownRequestInput": {
+ "type": "object",
+ "properties": {
+ "id": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "includeSubDocs": {
+ "ids": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "mode": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "inlineMemo": {
+ "notebook": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
- },
- "markdownYFM": {
+ }
+ },
+ "required": [
+ "ids"
+ ],
+ "additionalProperties": false
+ },
+ "BlocksQueryRequestInput": {
+ "type": "object",
+ "properties": {
+ "id": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "notebooks": {
+ "ids": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "notebook": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "type": "string"
},
{
"type": "null"
}
]
- },
- "removeAssetsID": {
+ }
+ },
+ "required": [
+ "ids"
+ ],
+ "additionalProperties": false
+ },
+ "BlocksWordCountRequestInput": {
+ "type": "object",
+ "properties": {
+ "id": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "tagCloseMarker": {
+ "ids": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "notebook": {
"anyOf": [
{
"type": "string"
@@ -12573,10 +16099,10 @@
}
]
},
- "tagOpenMarker": {
+ "reqId": {
"anyOf": [
{
- "type": "string"
+ "$ref": "#/$defs/JSONValue"
},
{
"type": "null"
@@ -12584,163 +16110,95 @@
]
}
},
+ "required": [
+ "ids"
+ ],
"additionalProperties": false
},
- "ExportNotebooksRequestInput": {
+ "Bookmark": {
"type": "object",
"properties": {
- "notebooks": {
+ "blocks": {
"anyOf": [
{
"type": "array",
"items": {
- "type": "string"
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SearchBlock"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
{
"type": "null"
}
]
+ },
+ "count": {
+ "type": "integer"
+ },
+ "depth": {
+ "type": "integer"
+ },
+ "name": {
+ "type": "string"
+ },
+ "type": {
+ "type": "string"
}
},
+ "required": [
+ "blocks",
+ "count",
+ "depth",
+ "name",
+ "type"
+ ],
"additionalProperties": false
},
- "ExportPathData": {
+ "BootProgressData": {
"type": "object",
"properties": {
- "path": {
+ "details": {
"type": "string"
+ },
+ "progress": {
+ "type": "integer"
}
},
"required": [
- "path"
+ "details",
+ "progress"
],
"additionalProperties": false
},
- "ExportPreviewData": {
+ "BroadcastChannel": {
"type": "object",
"properties": {
- "fillCSSVar": {
- "type": "boolean"
- },
- "html": {
- "type": "string"
- }
- },
- "required": [
- "fillCSSVar",
- "html"
- ],
- "additionalProperties": false
- },
- "ExportPreviewHTMLData": {
- "type": "object",
- "properties": {
- "attrs": {
- "anyOf": [
- {
- "type": "object",
- "additionalProperties": {
- "type": "string"
- }
- },
- {
- "type": "null"
- }
- ]
- },
- "content": {
- "type": "string"
- },
- "id": {
- "type": "string"
+ "count": {
+ "type": "integer"
},
"name": {
"type": "string"
- },
- "type": {
- "type": "string"
}
},
"required": [
- "attrs",
- "content",
- "id",
- "name",
- "type"
+ "count",
+ "name"
],
"additionalProperties": false
},
- "ExportPreviewHTMLRequestInput": {
+ "BroadcastChannelData": {
"type": "object",
"properties": {
- "addTitle": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
- },
- "customTitle": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "id": {
- "type": "string"
- },
- "image": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
- },
- "keepFold": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
- },
- "merge": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
- },
- "mergeContentHeadingMode": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "mergeDocHeadingMode": {
+ "channel": {
"anyOf": [
{
- "type": "string"
+ "$ref": "#/$defs/BroadcastChannel"
},
{
"type": "null"
@@ -12749,166 +16207,170 @@
}
},
"required": [
- "id"
+ "channel"
],
"additionalProperties": false
},
- "ExportRepoFileRequestInput": {
+ "BroadcastChannelRequestInput": {
"type": "object",
"properties": {
- "id": {
+ "name": {
"type": "string"
}
},
"required": [
- "id"
+ "name"
],
"additionalProperties": false
},
- "ExportResourcesRequestInput": {
+ "BroadcastChannelsData": {
"type": "object",
"properties": {
- "name": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "paths": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "type": "string"
+ "channels": {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/BroadcastChannel"
+ },
+ {
+ "type": "null"
}
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "additionalProperties": false
- },
- "ExportTempContentRequestInput": {
- "type": "object",
- "properties": {
- "content": {
- "type": "string"
- },
- "id": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
+ ]
+ }
}
},
"required": [
- "content"
+ "channels"
],
"additionalProperties": false
},
- "ExportURLData": {
+ "BroadcastMessageRequestInput": {
"type": "object",
"properties": {
- "url": {
+ "channel": {
+ "type": "string"
+ },
+ "message": {
"type": "string"
}
},
"required": [
- "url"
+ "channel",
+ "message"
],
"additionalProperties": false
},
- "ExportZipData": {
+ "BroadcastPublishData": {
"type": "object",
"properties": {
- "zip": {
- "type": "string"
+ "results": {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/BroadcastPublishResult"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
}
},
"required": [
- "zip"
+ "results"
],
"additionalProperties": false
},
- "FileAnnotationRefRequestInput": {
+ "BroadcastPublishMessage": {
"type": "object",
"properties": {
- "id": {
+ "filename": {
"type": "string"
},
- "notebook": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
+ "size": {
+ "type": "integer"
+ },
+ "type": {
+ "type": "string",
+ "enum": [
+ "string",
+ "binary"
]
}
},
"required": [
- "id"
+ "filename",
+ "size",
+ "type"
],
"additionalProperties": false
},
- "FilePathData": {
+ "BroadcastPublishResult": {
"type": "object",
"properties": {
- "path": {
+ "channel": {
+ "$ref": "#/$defs/BroadcastChannel"
+ },
+ "code": {
+ "type": "integer"
+ },
+ "message": {
+ "$ref": "#/$defs/BroadcastPublishMessage"
+ },
+ "msg": {
"type": "string"
}
},
"required": [
- "path"
+ "channel",
+ "code",
+ "message",
+ "msg"
],
"additionalProperties": false
},
- "FilePathRequestInput": {
+ "ChangeAttrViewLayoutRequestInput": {
"type": "object",
"properties": {
- "path": {
+ "avID": {
+ "type": "string"
+ },
+ "blockID": {
+ "type": "string"
+ },
+ "layoutType": {
"type": "string"
}
},
"required": [
- "path"
+ "avID",
+ "blockID",
+ "layoutType"
],
"additionalProperties": false
},
- "FileTreeAuthPublishRequestInput": {
+ "ChangeMasterPasswordRequestInput": {
"type": "object",
"properties": {
- "id": {
+ "newPassword": {
"type": "string"
},
- "password": {
+ "oldPassword": {
"type": "string"
}
},
"required": [
- "id",
- "password"
+ "newPassword",
+ "oldPassword"
],
"additionalProperties": false
},
- "FileTreeChangeSortRequestInput": {
+ "ChangeSortNotebookRequestInput": {
"type": "object",
"properties": {
- "notebook": {
- "type": "string"
- },
- "paths": {
+ "notebooks": {
"type": "array",
"items": {
"type": "string"
@@ -12916,45 +16378,36 @@
}
},
"required": [
- "notebook",
- "paths"
+ "notebooks"
],
"additionalProperties": false
},
- "FileTreeCreateData": {
+ "CheckActivationCodeRequestInput": {
"type": "object",
"properties": {
- "id": {
+ "data": {
"type": "string"
}
},
"required": [
- "id"
+ "data"
],
"additionalProperties": false
},
- "FileTreeCreateMarkdownRequestInput": {
+ "CheckBlockRefRequestInput": {
"type": "object",
"properties": {
- "clippingHref": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
+ "deletedIDs": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
- "docCreateTemplatePath": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
+ "exactIDs": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
"id": {
"anyOf": [
@@ -12966,56 +16419,13 @@
}
]
},
- "listDocTree": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
- },
- "markdown": {
- "type": "string"
+ "ids": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
"notebook": {
- "type": "string"
- },
- "parentID": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "path": {
- "type": "string"
- },
- "sortPosition": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "sortTargetID": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "tags": {
"anyOf": [
{
"type": "string"
@@ -13025,31 +16435,22 @@
}
]
},
- "titleEmpty": {
- "type": "boolean"
+ "paths": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
- "withMath": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
+ "scope": {
+ "type": "string"
}
},
- "required": [
- "markdown",
- "notebook",
- "path"
- ],
"additionalProperties": false
},
- "FileTreeCreateRequestInput": {
+ "CheckBlocksExistRequestInput": {
"type": "object",
"properties": {
- "docCreateTemplatePath": {
+ "id": {
"anyOf": [
{
"type": "string"
@@ -13059,36 +16460,13 @@
}
]
},
- "listDocTree": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
- },
- "md": {
- "type": "string"
+ "ids": {
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/JSONValue"
+ }
},
"notebook": {
- "type": "string"
- },
- "path": {
- "type": "string"
- },
- "sortPosition": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "sortTargetID": {
"anyOf": [
{
"type": "string"
@@ -13097,56 +16475,32 @@
"type": "null"
}
]
- },
- "sorts": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- {
- "type": "null"
- }
- ]
- },
- "title": {
- "type": "string"
}
},
"required": [
- "md",
- "notebook",
- "path",
- "title"
+ "ids"
],
"additionalProperties": false
},
- "FileTreeCreateSavePathData": {
+ "CheckSnapshotData": {
"type": "object",
"properties": {
- "box": {
- "type": "string"
- },
- "docCreateTemplatePath": {
- "type": "string"
- },
- "path": {
- "type": "string"
+ "changed": {
+ "type": "boolean"
}
},
"required": [
- "box",
- "docCreateTemplatePath",
- "path"
+ "changed"
],
"additionalProperties": false
},
- "FileTreeDailyNoteRequestInput": {
+ "CheckoutRepoRequestInput": {
"type": "object",
"properties": {
- "app": {
+ "id": {
+ "type": "string"
+ },
+ "sessionID": {
"anyOf": [
{
"type": "string"
@@ -13155,378 +16509,401 @@
"type": "null"
}
]
- },
- "notebook": {
- "type": "string"
}
},
"required": [
- "notebook"
+ "id"
],
"additionalProperties": false
},
- "FileTreeDocFile": {
+ "ChildBlock": {
"type": "object",
"properties": {
- "children": {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/FileTreeDocFile"
- },
- {
- "type": "null"
- }
- ]
- }
+ "content": {
+ "type": "string"
},
"id": {
"type": "string"
+ },
+ "markdown": {
+ "type": "string"
+ },
+ "subType": {
+ "type": "string"
+ },
+ "type": {
+ "type": "string"
}
},
"required": [
- "id"
+ "id",
+ "type"
],
"additionalProperties": false
},
- "FileTreeDocHeadingData": {
+ "CleanupRichTextRequestInput": {
"type": "object",
"properties": {
- "srcTreeBox": {
+ "batch": {
"type": "string"
},
- "srcTreePath": {
- "type": "string"
- }
- },
+ "groups": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ },
"required": [
- "srcTreeBox",
- "srcTreePath"
+ "batch",
+ "groups"
],
"additionalProperties": false
},
- "FileTreeDocHeadingRequestInput": {
+ "ClipboardFile": {
"type": "object",
"properties": {
- "after": {
+ "isDir": {
"type": "boolean"
},
- "srcID": {
+ "name": {
"type": "string"
},
- "targetID": {
+ "path": {
"type": "string"
+ },
+ "size": {
+ "type": "integer"
+ },
+ "updated": {
+ "type": "integer"
}
},
"required": [
- "after",
- "srcID",
- "targetID"
+ "isDir",
+ "name",
+ "path",
+ "size",
+ "updated"
],
"additionalProperties": false
},
- "FileTreeDocPathData": {
+ "ClipboardPathRequestInput": {
"type": "object",
"properties": {
- "notebook": {
- "type": "string"
- },
"path": {
"type": "string"
}
},
"required": [
- "notebook",
"path"
],
"additionalProperties": false
},
- "FileTreeDocTreeData": {
+ "CloseNotebookRequestInput": {
"type": "object",
"properties": {
- "tree": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/FileTreeDocFile"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- {
- "type": "null"
- }
- ]
+ "notebook": {
+ "type": "string"
}
},
"required": [
- "tree"
+ "notebook"
],
"additionalProperties": false
},
- "FileTreeDuplicateData": {
+ "CloudBackup": {
"type": "object",
"properties": {
- "hPath": {
+ "hSize": {
"type": "string"
},
- "id": {
+ "saveDir": {
"type": "string"
},
- "notebook": {
- "type": "string"
+ "size": {
+ "type": "integer"
},
- "path": {
+ "updated": {
"type": "string"
}
},
"required": [
- "hPath",
- "id",
- "notebook",
- "path"
+ "hSize",
+ "saveDir",
+ "size",
+ "updated"
],
"additionalProperties": false
},
- "FileTreeFile": {
+ "CloudReminderRequestInput": {
"type": "object",
"properties": {
- "alias": {
+ "content": {
"type": "string"
},
- "bookmark": {
+ "id": {
"type": "string"
},
- "childrenSortMode": {
+ "timed": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "content",
+ "id",
+ "timed"
+ ],
+ "additionalProperties": false
+ },
+ "CloudSpaceData": {
+ "type": "object",
+ "properties": {
+ "backup": {
"anyOf": [
{
- "type": "integer"
+ "$ref": "#/$defs/CloudBackup"
},
{
"type": "null"
}
]
},
- "count": {
- "type": "integer"
- },
- "ctime": {
- "type": "integer"
- },
- "dueFlashcardCount": {
- "type": "integer"
- },
- "flashcardCount": {
- "type": "integer"
- },
- "hCtime": {
+ "hAssetSize": {
"type": "string"
},
- "hMtime": {
+ "hExchangeSize": {
"type": "string"
},
"hSize": {
"type": "string"
},
- "icon": {
+ "hTotalSize": {
"type": "string"
},
- "id": {
+ "hTrafficAPIGet": {
"type": "string"
},
- "memo": {
+ "hTrafficAPIPut": {
"type": "string"
},
- "mtime": {
- "type": "integer"
+ "hTrafficDownloadSize": {
+ "type": "string"
},
- "name": {
+ "hTrafficUploadSize": {
"type": "string"
},
- "name1": {
+ "sync": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/CloudSync"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "backup",
+ "hAssetSize",
+ "hExchangeSize",
+ "hSize",
+ "hTotalSize",
+ "hTrafficAPIGet",
+ "hTrafficAPIPut",
+ "hTrafficDownloadSize",
+ "hTrafficUploadSize",
+ "sync"
+ ],
+ "additionalProperties": false
+ },
+ "CloudSync": {
+ "type": "object",
+ "properties": {
+ "cloudName": {
"type": "string"
},
- "newFlashcardCount": {
- "type": "integer"
+ "hSize": {
+ "type": "string"
},
- "path": {
+ "saveDir": {
"type": "string"
},
"size": {
"type": "integer"
},
- "sort": {
- "type": "integer"
- },
- "subFileCount": {
- "type": "integer"
- },
- "titleEmpty": {
- "type": "boolean"
+ "updated": {
+ "type": "string"
}
},
"required": [
- "alias",
- "bookmark",
- "childrenSortMode",
- "count",
- "ctime",
- "dueFlashcardCount",
- "flashcardCount",
- "hCtime",
- "hMtime",
+ "cloudName",
"hSize",
- "icon",
- "id",
- "memo",
- "mtime",
- "name",
- "name1",
- "newFlashcardCount",
- "path",
+ "saveDir",
"size",
- "sort",
- "subFileCount"
+ "updated"
],
"additionalProperties": false
},
- "FileTreeGetDocData": {
+ "CloudSyncDir": {
"type": "object",
"properties": {
- "blockCount": {
- "type": "integer"
+ "cloudName": {
+ "type": "string"
},
- "box": {
+ "hSize": {
"type": "string"
},
- "content": {
+ "saveDir": {
"type": "string"
},
- "docInfo": {
- "$ref": "#/$defs/DocInfo"
+ "size": {
+ "type": "integer"
},
- "eof": {
- "type": "boolean"
+ "updated": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "cloudName",
+ "hSize",
+ "saveDir",
+ "size",
+ "updated"
+ ],
+ "additionalProperties": false
+ },
+ "CloudSyncDirsData": {
+ "type": "object",
+ "properties": {
+ "checkedSyncDir": {
+ "type": "string"
},
- "headingNumbers": {
+ "hSize": {
+ "type": "string"
+ },
+ "syncDirs": {
"anyOf": [
{
- "type": "object",
- "additionalProperties": {
- "type": "string"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/CloudSyncDir"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
{
"type": "null"
}
]
- },
- "id": {
+ }
+ },
+ "required": [
+ "checkedSyncDir",
+ "hSize",
+ "syncDirs"
+ ],
+ "additionalProperties": false
+ },
+ "ContentWordCountRequestInput": {
+ "type": "object",
+ "properties": {
+ "content": {
"type": "string"
},
- "isBacklinkExpand": {
- "type": "boolean"
- },
- "isSyncing": {
- "type": "boolean"
- },
- "keywords": {
+ "reqId": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "$ref": "#/$defs/JSONValue"
},
{
"type": "null"
}
]
- },
- "mode": {
- "type": "integer"
- },
- "parent2ID": {
+ }
+ },
+ "required": [
+ "content"
+ ],
+ "additionalProperties": false
+ },
+ "ContinueImportSYRequestInput": {
+ "type": "object",
+ "properties": {
+ "notebook": {
"type": "string"
},
- "parentID": {
+ "token": {
"type": "string"
- },
- "path": {
+ }
+ },
+ "required": [
+ "notebook",
+ "token"
+ ],
+ "additionalProperties": false
+ },
+ "CopyExportFileRequestInput": {
+ "type": "object",
+ "properties": {
+ "dest": {
"type": "string"
},
- "publishAccessRequired": {
- "type": "boolean"
- },
- "reqId": {
- "$ref": "#/$defs/JSONValue"
- },
- "rootID": {
+ "srcPath": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "dest",
+ "srcPath"
+ ],
+ "additionalProperties": false
+ },
+ "CopyFileRequestInput": {
+ "type": "object",
+ "properties": {
+ "dest": {
"type": "string"
},
- "scroll": {
- "type": "boolean"
- },
- "type": {
+ "src": {
"type": "string"
}
},
"required": [
- "blockCount",
- "box",
- "content",
- "eof",
- "headingNumbers",
- "id",
- "isBacklinkExpand",
- "isSyncing",
- "keywords",
- "mode",
- "parent2ID",
- "parentID",
- "path",
- "publishAccessRequired",
- "reqId",
- "rootID",
- "scroll",
- "type"
+ "dest",
+ "src"
],
"additionalProperties": false
},
- "FileTreeGetDocRequestInput": {
+ "CopyFilesRequestInput": {
"type": "object",
"properties": {
- "endID": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "highlight": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
- },
- "id": {
+ "destDir": {
"type": "string"
},
- "includeDocInfo": {
+ "srcs": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ },
+ "required": [
+ "destDir",
+ "srcs"
+ ],
+ "additionalProperties": false
+ },
+ "CopyStdMarkdownRequestInput": {
+ "type": "object",
+ "properties": {
+ "adjustHeadingLevel": {
"anyOf": [
{
"type": "boolean"
@@ -13536,17 +16913,17 @@
}
]
},
- "index": {
+ "assetsDestSpace2Underscore": {
"anyOf": [
{
- "type": "number"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "isBacklink": {
+ "fillCSSVar": {
"anyOf": [
{
"type": "boolean"
@@ -13556,17 +16933,41 @@
}
]
},
- "mode": {
+ "id": {
+ "type": "string"
+ },
+ "imgTag": {
"anyOf": [
{
- "type": "number"
+ "type": "boolean"
},
{
"type": "null"
}
]
- },
- "notebook": {
+ }
+ },
+ "required": [
+ "id"
+ ],
+ "additionalProperties": false
+ },
+ "CreateAssetHistoryRequestInput": {
+ "type": "object",
+ "properties": {
+ "path": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "path"
+ ],
+ "additionalProperties": false
+ },
+ "CreateAttributeViewItemDocsRequestInput": {
+ "type": "object",
+ "properties": {
+ "app": {
"anyOf": [
{
"type": "string"
@@ -13576,11 +16977,17 @@
}
]
},
- "originalRefBlockIDs": {
+ "avID": {
+ "type": "string"
+ },
+ "blockID": {
+ "type": "string"
+ },
+ "itemIDs": {
"anyOf": [
{
- "type": "object",
- "additionalProperties": {
+ "type": "array",
+ "items": {
"type": "string"
}
},
@@ -13589,7 +16996,10 @@
}
]
},
- "query": {
+ "saveMode": {
+ "type": "string"
+ },
+ "session": {
"anyOf": [
{
"type": "string"
@@ -13598,61 +17008,76 @@
"type": "null"
}
]
- },
- "queryMethod": {
+ }
+ },
+ "required": [
+ "avID",
+ "blockID",
+ "itemIDs",
+ "saveMode"
+ ],
+ "additionalProperties": false
+ },
+ "CreateAttributeViewItemRequestInput": {
+ "type": "object",
+ "properties": {
+ "app": {
"anyOf": [
{
- "type": "number"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "querySubTypes": {
+ "avID": {
+ "type": "string"
+ },
+ "blockID": {
+ "type": "string"
+ },
+ "groupID": {
"anyOf": [
{
- "$ref": "#/$defs/SearchSubtypeFilterInput"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "queryTypes": {
+ "previousID": {
"anyOf": [
{
- "type": "object",
- "additionalProperties": {
- "type": "boolean"
- }
+ "type": "string"
},
{
"type": "null"
}
]
},
- "reqId": {
+ "session": {
"anyOf": [
{
- "$ref": "#/$defs/JSONValue"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "size": {
+ "templateID": {
"anyOf": [
{
- "type": "number"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "startID": {
+ "viewID": {
"anyOf": [
{
"type": "string"
@@ -13664,14 +17089,15 @@
}
},
"required": [
- "id"
+ "avID",
+ "blockID"
],
"additionalProperties": false
},
- "FileTreeHeadingDocRequestInput": {
+ "CreateAttributeViewItemWithMarkdownRequestInput": {
"type": "object",
"properties": {
- "previousPath": {
+ "app": {
"anyOf": [
{
"type": "string"
@@ -13681,13 +17107,13 @@
}
]
},
- "srcHeadingID": {
+ "avID": {
"type": "string"
},
- "targetNoteBook": {
+ "blockID": {
"type": "string"
},
- "targetPath": {
+ "clippingHref": {
"anyOf": [
{
"type": "string"
@@ -13697,96 +17123,30 @@
}
]
},
- "toTop": {
+ "groupID": {
"anyOf": [
{
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "srcHeadingID",
- "targetNoteBook"
- ],
- "additionalProperties": false
- },
- "FileTreeIDRequestInput": {
- "type": "object",
- "properties": {
- "id": {
- "type": "string"
- }
- },
- "required": [
- "id"
- ],
- "additionalProperties": false
- },
- "FileTreeListData": {
- "type": "object",
- "properties": {
- "box": {
- "type": "string"
- },
- "effectiveSortMode": {
- "type": "integer"
- },
- "files": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/FileTreeFile"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "string"
},
{
"type": "null"
}
]
},
- "path": {
- "type": "string"
- }
- },
- "required": [
- "box",
- "effectiveSortMode",
- "files",
- "path"
- ],
- "additionalProperties": false
- },
- "FileTreeListItemDocRequestInput": {
- "type": "object",
- "properties": {
- "previousPath": {
+ "listDocTree": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "srcListItemID": {
- "type": "string"
- },
- "targetNoteBook": {
+ "markdown": {
"type": "string"
},
- "targetPath": {
+ "previousID": {
"anyOf": [
{
"type": "string"
@@ -13796,27 +17156,7 @@
}
]
},
- "toTop": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "srcListItemID",
- "targetNoteBook"
- ],
- "additionalProperties": false
- },
- "FileTreeListRequestInput": {
- "type": "object",
- "properties": {
- "app": {
+ "session": {
"anyOf": [
{
"type": "string"
@@ -13826,56 +17166,36 @@
}
]
},
- "flashcard": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
- },
- "ignoreMaxListHint": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
- },
- "maxListCount": {
+ "tags": {
"anyOf": [
{
- "type": "number"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "notebook": {
+ "templateID": {
"type": "string"
},
- "path": {
+ "title": {
"type": "string"
},
- "showHidden": {
+ "viewID": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "sort": {
+ "withMath": {
"anyOf": [
{
- "type": "number"
+ "type": "boolean"
},
{
"type": "null"
@@ -13884,118 +17204,49 @@
}
},
"required": [
- "notebook",
- "path"
+ "avID",
+ "blockID",
+ "markdown",
+ "templateID",
+ "title"
],
"additionalProperties": false
},
- "FileTreeMoveIDsRequestInput": {
+ "CreateDocHistoryRequestInput": {
"type": "object",
"properties": {
- "callback": {
- "anyOf": [
- {
- "$ref": "#/$defs/JSONValue"
- },
- {
- "type": "null"
- }
- ]
- },
- "fromIDs": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "toID": {
+ "id": {
"type": "string"
}
},
"required": [
- "fromIDs",
- "toID"
+ "id"
],
"additionalProperties": false
},
- "FileTreeMoveRequestInput": {
+ "CreateEncryptedNotebookRequestInput": {
"type": "object",
"properties": {
- "callback": {
- "anyOf": [
- {
- "$ref": "#/$defs/JSONValue"
- },
- {
- "type": "null"
- }
- ]
- },
- "fromPaths": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "toNotebook": {
+ "name": {
"type": "string"
},
- "toPath": {
- "type": "string"
- }
- },
- "required": [
- "fromPaths",
- "toNotebook",
- "toPath"
- ],
- "additionalProperties": false
- },
- "FileTreeNotebookRequestInput": {
- "type": "object",
- "properties": {
- "notebook": {
+ "password": {
"type": "string"
}
},
"required": [
- "notebook"
+ "name",
+ "password"
],
"additionalProperties": false
},
- "FileTreeOptionalIDRequestInput": {
- "type": "object",
- "properties": {
- "id": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "additionalProperties": false
- },
- "FileTreeOptionalPathRequestInput": {
+ "CreateNotebookData": {
"type": "object",
"properties": {
"notebook": {
"anyOf": [
{
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "path": {
- "anyOf": [
- {
- "type": "string"
+ "$ref": "#/$defs/Notebook"
},
{
"type": "null"
@@ -14003,194 +17254,164 @@
]
}
},
+ "required": [
+ "notebook"
+ ],
"additionalProperties": false
},
- "FileTreePathRequestInput": {
+ "CreateNotebookRequestInput": {
"type": "object",
"properties": {
- "notebook": {
- "type": "string"
- },
- "path": {
+ "name": {
"type": "string"
}
},
"required": [
- "notebook",
- "path"
+ "name"
],
"additionalProperties": false
},
- "FileTreePathsRequestInput": {
+ "CreateRiffDeckRequestInput": {
"type": "object",
"properties": {
- "paths": {
- "type": "array",
- "items": {
- "type": "string"
- }
+ "name": {
+ "type": "string"
}
},
"required": [
- "paths"
+ "name"
],
"additionalProperties": false
},
- "FileTreePublishData": {
+ "CreateSnapshotData": {
"type": "object",
"properties": {
- "publishAccess": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/FileTreePublishItem"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- {
- "type": "null"
- }
- ]
+ "created": {
+ "type": "boolean"
+ },
+ "id": {
+ "type": "string"
}
},
"required": [
- "publishAccess"
+ "created",
+ "id"
],
"additionalProperties": false
},
- "FileTreePublishIDsRequestInput": {
+ "CreateSnapshotRequestInput": {
"type": "object",
"properties": {
- "ids": {
- "type": "array",
- "items": {
- "type": "string"
- }
+ "memo": {
+ "type": "string"
}
},
- "required": [
- "ids"
- ],
"additionalProperties": false
},
- "FileTreePublishItem": {
+ "Criterion": {
"type": "object",
"properties": {
- "disable": {
- "type": "boolean"
- },
- "id": {
- "type": "string"
+ "group": {
+ "type": "integer"
},
- "password": {
+ "hPath": {
"type": "string"
},
- "visible": {
+ "hasReplace": {
"type": "boolean"
- }
- },
- "required": [
- "disable",
- "id",
- "password",
- "visible"
- ],
- "additionalProperties": false
- },
- "FileTreeRenameIDRequestInput": {
- "type": "object",
- "properties": {
- "id": {
+ },
+ "idPath": {
"anyOf": [
{
- "type": "string"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "title": {
- "type": "string"
- }
- },
- "required": [
- "title"
- ],
- "additionalProperties": false
- },
- "FileTreeRenameRequestInput": {
- "type": "object",
- "properties": {
- "notebook": {
+ "k": {
"type": "string"
},
- "path": {
+ "method": {
+ "type": "integer"
+ },
+ "name": {
"type": "string"
},
- "title": {
+ "r": {
"type": "string"
- }
- },
- "required": [
- "notebook",
- "path",
- "title"
- ],
- "additionalProperties": false
- },
- "FileTreeReorderData": {
- "type": "object",
- "properties": {
- "changed": {
- "type": "boolean"
},
- "conflict": {
- "type": "boolean"
+ "replaceTypes": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/CriterionReplaceTypes"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "notebook": {
- "type": "string"
+ "sort": {
+ "type": "integer"
},
- "parentPath": {
- "type": "string"
+ "subTypes": {
+ "$ref": "#/$defs/SearchSubTypes"
+ },
+ "types": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/CriterionTypes"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
"required": [
- "changed"
+ "group",
+ "hPath",
+ "hasReplace",
+ "idPath",
+ "k",
+ "method",
+ "name",
+ "r",
+ "replaceTypes",
+ "sort",
+ "subTypes",
+ "types"
],
"additionalProperties": false
},
- "FileTreeReorderRequestInput": {
+ "CriterionInput": {
"type": "object",
"properties": {
- "position": {
+ "group": {
"anyOf": [
{
- "type": "string"
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "preview": {
+ "hPath": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "removeSorts": {
+ "hasReplace": {
"anyOf": [
{
"type": "boolean"
@@ -14200,255 +17421,93 @@
}
]
},
- "respectSort": {
+ "idPath": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "sourceIDs": {
+ "k": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "type": "string"
},
{
"type": "null"
}
]
},
- "targetID": {
+ "method": {
"anyOf": [
{
- "type": "string"
+ "type": "integer"
},
{
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "FileTreeSavePathData": {
- "type": "object",
- "properties": {
- "box": {
- "type": "string"
- },
- "path": {
- "type": "string"
- }
- },
- "required": [
- "box",
- "path"
- ],
- "additionalProperties": false
- },
- "FileTreeSearchDoc": {
- "type": "object",
- "properties": {
- "alias": {
- "type": "string"
- },
- "box": {
- "type": "string"
- },
- "boxIcon": {
- "type": "string"
- },
- "dueFlashcardCount": {
- "type": "string"
- },
- "flashcardCount": {
- "type": "string"
- },
- "hPath": {
- "type": "string"
},
"name": {
- "type": "string"
- },
- "newFlashcardCount": {
- "type": "string"
- },
- "path": {
- "type": "string"
- }
- },
- "required": [
- "box",
- "boxIcon",
- "hPath",
- "path"
- ],
- "additionalProperties": false
- },
- "FileTreeSearchRequestInput": {
- "type": "object",
- "properties": {
- "excludeIDs": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "type": "string"
},
{
"type": "null"
}
]
},
- "flashcard": {
+ "r": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "k": {
- "type": "string"
- }
- },
- "required": [
- "k"
- ],
- "additionalProperties": false
- },
- "FileTreeSetPublishRequestInput": {
- "type": "object",
- "properties": {
- "disable": {
- "type": "boolean"
- },
- "id": {
- "type": "string"
- },
- "password": {
- "type": "string"
- },
- "visible": {
- "type": "boolean"
- }
- },
- "required": [
- "disable",
- "id",
- "password",
- "visible"
- ],
- "additionalProperties": false
- },
- "FileTreeSetSortData": {
- "type": "object",
- "properties": {
- "docIDs": {
+ "replaceTypes": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "$ref": "#/$defs/CriterionReplaceTypesInput"
},
{
"type": "null"
}
]
},
- "notebookIDs": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "docIDs",
- "notebookIDs"
- ],
- "additionalProperties": false
- },
- "FileTreeSetSortRequestInput": {
- "type": "object",
- "properties": {
- "docSorts": {
+ "sort": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/FileTreeSortItemInput"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "notebookSorts": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/FileTreeSortItemInput"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "additionalProperties": false
- },
- "FileTreeSortItemInput": {
- "type": "object",
- "properties": {
- "id": {
+ "subTypes": {
"anyOf": [
{
- "type": "string"
+ "$ref": "#/$defs/SearchSubTypesInput"
},
{
"type": "null"
}
]
},
- "sort": {
+ "types": {
"anyOf": [
{
- "type": "integer"
+ "$ref": "#/$defs/CriterionTypesInput"
},
{
"type": "null"
@@ -14458,382 +17517,328 @@
},
"additionalProperties": false
},
- "FileTreeSortModeData": {
+ "CriterionReplaceTypes": {
"type": "object",
"properties": {
- "box": {
- "type": "string"
+ "aHref": {
+ "type": "boolean"
},
- "effectiveSortMode": {
- "type": "integer"
+ "aText": {
+ "type": "boolean"
},
- "id": {
- "type": "string"
+ "aTitle": {
+ "type": "boolean"
},
- "path": {
- "type": "string"
+ "blockRef": {
+ "type": "boolean"
},
- "sortMode": {
- "anyOf": [
- {
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
+ "code": {
+ "type": "boolean"
+ },
+ "codeBlock": {
+ "type": "boolean"
+ },
+ "docTitle": {
+ "type": "boolean"
+ },
+ "em": {
+ "type": "boolean"
+ },
+ "fileAnnotationRef": {
+ "type": "boolean"
+ },
+ "htmlBlock": {
+ "type": "boolean"
+ },
+ "imgSrc": {
+ "type": "boolean"
+ },
+ "imgText": {
+ "type": "boolean"
+ },
+ "imgTitle": {
+ "type": "boolean"
+ },
+ "inlineMath": {
+ "type": "boolean"
+ },
+ "inlineMemo": {
+ "type": "boolean"
+ },
+ "kbd": {
+ "type": "boolean"
+ },
+ "mark": {
+ "type": "boolean"
+ },
+ "mathBlock": {
+ "type": "boolean"
+ },
+ "s": {
+ "type": "boolean"
+ },
+ "strong": {
+ "type": "boolean"
+ },
+ "sub": {
+ "type": "boolean"
+ },
+ "sup": {
+ "type": "boolean"
+ },
+ "tag": {
+ "type": "boolean"
+ },
+ "text": {
+ "type": "boolean"
+ },
+ "u": {
+ "type": "boolean"
}
},
"required": [
- "box",
- "effectiveSortMode",
- "id",
- "path",
- "sortMode"
+ "aHref",
+ "aText",
+ "aTitle",
+ "blockRef",
+ "code",
+ "codeBlock",
+ "docTitle",
+ "em",
+ "fileAnnotationRef",
+ "htmlBlock",
+ "imgSrc",
+ "imgText",
+ "imgTitle",
+ "inlineMath",
+ "inlineMemo",
+ "kbd",
+ "mark",
+ "mathBlock",
+ "s",
+ "strong",
+ "sub",
+ "sup",
+ "tag",
+ "text",
+ "u"
],
"additionalProperties": false
},
- "FileTreeSortModeRequestInput": {
+ "CriterionReplaceTypesInput": {
"type": "object",
"properties": {
- "id": {
+ "aHref": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "sortMode": {
+ "aText": {
"anyOf": [
{
- "type": "integer"
+ "type": "boolean"
},
{
"type": "null"
}
]
- }
- },
- "required": [
- "sortMode"
- ],
- "additionalProperties": false
- },
- "FileTreeTrimIDRequestInput": {
- "type": "object",
- "properties": {
- "id": {
- "type": "string"
- }
- },
- "required": [
- "id"
- ],
- "additionalProperties": false
- },
- "FindReplaceRequestInput": {
- "type": "object",
- "properties": {
- "groupBy": {
+ },
+ "aTitle": {
"anyOf": [
{
- "type": "number"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "ids": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "k": {
- "type": "string"
- },
- "method": {
+ "blockRef": {
"anyOf": [
{
- "type": "number"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "orderBy": {
+ "code": {
"anyOf": [
{
- "type": "number"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "page": {
+ "codeBlock": {
"anyOf": [
{
- "type": "number"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "pageSize": {
+ "docTitle": {
"anyOf": [
{
- "type": "number"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "paths": {
+ "em": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "query": {
+ "fileAnnotationRef": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "r": {
- "type": "string"
- },
- "replaceTypes": {
+ "htmlBlock": {
"anyOf": [
{
- "type": "object",
- "additionalProperties": {
- "type": "boolean"
- }
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "subTypes": {
+ "imgSrc": {
"anyOf": [
{
- "$ref": "#/$defs/SearchSubtypeFilterInput"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "types": {
+ "imgText": {
"anyOf": [
{
- "type": "object",
- "additionalProperties": {
- "type": "boolean"
- }
+ "type": "boolean"
},
{
"type": "null"
}
]
- }
- },
- "required": [
- "ids",
- "k",
- "r"
- ],
- "additionalProperties": false
- },
- "FullBlockInfo": {
- "type": "object",
- "properties": {
- "box": {
- "type": "string"
- },
- "path": {
- "type": "string"
- },
- "rootChildID": {
- "type": "string"
- },
- "rootID": {
- "type": "string"
- },
- "rootIcon": {
- "type": "string"
- },
- "rootTitle": {
- "type": "string"
},
- "rootTitleEmpty": {
- "type": "boolean"
- }
- },
- "required": [
- "box",
- "path",
- "rootChildID",
- "rootID",
- "rootIcon",
- "rootTitle",
- "rootTitleEmpty"
- ],
- "additionalProperties": false
- },
- "FullTextSearchBlockData": {
- "type": "object",
- "properties": {
- "blocks": {
+ "imgTitle": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/SearchBlock"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "docMode": {
- "type": "boolean"
- },
- "matchedBlockCount": {
- "type": "integer"
- },
- "matchedRootCount": {
- "type": "integer"
- },
- "pageCount": {
- "type": "integer"
- }
- },
- "required": [
- "blocks",
- "docMode",
- "matchedBlockCount",
- "matchedRootCount",
- "pageCount"
- ],
- "additionalProperties": false
- },
- "FullTextSearchBlockRequestInput": {
- "type": "object",
- "properties": {
- "groupBy": {
+ "inlineMath": {
"anyOf": [
{
- "type": "number"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "method": {
+ "inlineMemo": {
"anyOf": [
{
- "type": "number"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "notebook": {
+ "kbd": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "orderBy": {
+ "mark": {
"anyOf": [
{
- "type": "number"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "page": {
+ "mathBlock": {
"anyOf": [
{
- "type": "number"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "pageSize": {
+ "s": {
"anyOf": [
{
- "type": "number"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "paths": {
+ "strong": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "query": {
+ "sub": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "searchHPath": {
+ "sup": {
"anyOf": [
{
"type": "boolean"
@@ -14843,39 +17848,30 @@
}
]
},
- "subTypes": {
+ "tag": {
"anyOf": [
{
- "$ref": "#/$defs/SearchSubtypeFilterInput"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "types": {
+ "text": {
"anyOf": [
{
- "type": "object",
- "additionalProperties": {
- "type": "boolean"
- }
+ "type": "boolean"
},
{
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "GetBazaarIconRequestInput": {
- "type": "object",
- "properties": {
- "keyword": {
+ },
+ "u": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
@@ -14885,202 +17881,178 @@
},
"additionalProperties": false
},
- "GetBazaarPackageREADMERequestInput": {
+ "CriterionTypes": {
"type": "object",
"properties": {
- "packageType": {
- "type": "string"
+ "audioBlock": {
+ "type": "boolean"
},
- "repoHash": {
- "type": "string"
+ "blockquote": {
+ "type": "boolean"
},
- "repoURL": {
- "type": "string"
- }
- },
- "required": [
- "packageType",
- "repoHash",
- "repoURL"
- ],
- "additionalProperties": false
- },
- "GetBazaarPackageRatingRequestInput": {
- "type": "object",
- "properties": {
- "packageName": {
- "type": "string"
+ "callout": {
+ "type": "boolean"
},
- "packageType": {
- "type": "string"
- }
- },
- "required": [
- "packageName",
- "packageType"
- ],
- "additionalProperties": false
- },
- "GetBazaarPackageRatingsRequestInput": {
- "type": "object",
- "properties": {
- "packageNames": {
- "type": "array",
- "items": {
- "type": "string"
- }
+ "codeBlock": {
+ "type": "boolean"
},
- "packageType": {
- "type": "string"
+ "databaseBlock": {
+ "type": "boolean"
+ },
+ "document": {
+ "type": "boolean"
+ },
+ "embedBlock": {
+ "type": "boolean"
+ },
+ "heading": {
+ "type": "boolean"
+ },
+ "htmlBlock": {
+ "type": "boolean"
+ },
+ "iframeBlock": {
+ "type": "boolean"
+ },
+ "list": {
+ "type": "boolean"
+ },
+ "listItem": {
+ "type": "boolean"
+ },
+ "mathBlock": {
+ "type": "boolean"
+ },
+ "paragraph": {
+ "type": "boolean"
+ },
+ "superBlock": {
+ "type": "boolean"
+ },
+ "tabItem": {
+ "type": "boolean"
+ },
+ "table": {
+ "type": "boolean"
+ },
+ "tabs": {
+ "type": "boolean"
+ },
+ "videoBlock": {
+ "type": "boolean"
+ },
+ "widgetBlock": {
+ "type": "boolean"
}
},
"required": [
- "packageNames",
- "packageType"
+ "audioBlock",
+ "blockquote",
+ "callout",
+ "codeBlock",
+ "databaseBlock",
+ "document",
+ "embedBlock",
+ "heading",
+ "htmlBlock",
+ "iframeBlock",
+ "list",
+ "listItem",
+ "mathBlock",
+ "paragraph",
+ "superBlock",
+ "tabItem",
+ "table",
+ "tabs",
+ "videoBlock",
+ "widgetBlock"
],
"additionalProperties": false
},
- "GetBazaarPackageRequestInput": {
+ "CriterionTypesInput": {
"type": "object",
"properties": {
- "frontend": {
+ "audioBlock": {
"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"
- }
+ "blockquote": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "packageType": {
- "type": "string"
- }
- },
- "required": [
- "packageNames",
- "packageType"
- ],
- "additionalProperties": false
- },
- "GetBazaarPluginRequestInput": {
- "type": "object",
- "properties": {
- "frontend": {
- "type": "string"
+ "callout": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "keyword": {
+ "codeBlock": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
- }
- },
- "required": [
- "frontend"
- ],
- "additionalProperties": false
- },
- "GetBazaarTemplateRequestInput": {
- "type": "object",
- "properties": {
- "keyword": {
+ },
+ "databaseBlock": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "GetBazaarThemeRequestInput": {
- "type": "object",
- "properties": {
- "frontend": {
+ },
+ "document": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "keyword": {
+ "embedBlock": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "GetBazaarWidgetRequestInput": {
- "type": "object",
- "properties": {
- "keyword": {
+ },
+ "heading": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "GetCloudRepoSnapshotsRequestInput": {
- "type": "object",
- "properties": {
- "page": {
- "type": "number"
- }
- },
- "required": [
- "page"
- ],
- "additionalProperties": false
- },
- "GetEmbedBlockRequestInput": {
- "type": "object",
- "properties": {
- "breadcrumb": {
+ },
+ "htmlBlock": {
"anyOf": [
{
"type": "boolean"
@@ -15090,145 +18062,110 @@
}
]
},
- "embedBlockID": {
- "type": "string"
+ "iframeBlock": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "headingMode": {
+ "list": {
"anyOf": [
{
- "type": "number"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "includeIDs": {
- "type": "array",
- "items": {
- "type": "string"
- }
+ "listItem": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "notebook": {
+ "mathBlock": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
- }
- },
- "required": [
- "embedBlockID",
- "includeIDs"
- ],
- "additionalProperties": false
- },
- "GetInstalledIconRequestInput": {
- "type": "object",
- "properties": {
- "keyword": {
+ },
+ "paragraph": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "GetInstalledPackageSizeRequestInput": {
- "type": "object",
- "properties": {
- "packageName": {
- "type": "string"
},
- "packageType": {
- "type": "string"
- }
- },
- "required": [
- "packageName",
- "packageType"
- ],
- "additionalProperties": false
- },
- "GetInstalledPluginRequestInput": {
- "type": "object",
- "properties": {
- "frontend": {
- "type": "string"
+ "superBlock": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "keyword": {
+ "tabItem": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
- }
- },
- "required": [
- "frontend"
- ],
- "additionalProperties": false
- },
- "GetInstalledTemplateRequestInput": {
- "type": "object",
- "properties": {
- "keyword": {
+ },
+ "table": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "GetInstalledThemeRequestInput": {
- "type": "object",
- "properties": {
- "frontend": {
+ },
+ "tabs": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "keyword": {
+ "videoBlock": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "GetInstalledWidgetRequestInput": {
- "type": "object",
- "properties": {
- "keyword": {
+ },
+ "widgetBlock": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
@@ -15238,23 +18175,51 @@
},
"additionalProperties": false
},
- "GetRepoDocHistoryRequestInput": {
+ "DOMData": {
"type": "object",
"properties": {
- "id": {
+ "dom": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "dom"
+ ],
+ "additionalProperties": false
+ },
+ "DOMTextRequestInput": {
+ "type": "object",
+ "properties": {
+ "dom": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "dom"
+ ],
+ "additionalProperties": false
+ },
+ "DailyNoteBlockRequestInput": {
+ "type": "object",
+ "properties": {
+ "data": {
"type": "string"
},
- "page": {
- "type": "number"
+ "dataType": {
+ "type": "string"
+ },
+ "notebook": {
+ "type": "string"
}
},
"required": [
- "id",
- "page"
+ "data",
+ "dataType",
+ "notebook"
],
"additionalProperties": false
},
- "GetRepoFileRequestInput": {
+ "DeleteBlockRequestInput": {
"type": "object",
"properties": {
"id": {
@@ -15266,137 +18231,119 @@
],
"additionalProperties": false
},
- "GetRepoSnapshotsRequestInput": {
+ "DiffDocVersionsRequestInput": {
"type": "object",
"properties": {
- "page": {
- "type": "number"
+ "left": {
+ "$ref": "#/$defs/DocVersionRefInput"
+ },
+ "right": {
+ "$ref": "#/$defs/DocVersionRefInput"
}
},
"required": [
- "page"
+ "left",
+ "right"
],
"additionalProperties": false
},
- "GetSnippetRequestInput": {
+ "DiffRepoSnapshotsRequestInput": {
"type": "object",
"properties": {
- "enabled": {
- "type": "number"
- },
- "keyword": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
+ "left": {
+ "type": "string"
},
- "type": {
+ "right": {
"type": "string"
}
},
"required": [
- "enabled",
- "type"
+ "left",
+ "right"
],
"additionalProperties": false
},
- "GetTagRequestInput": {
+ "DirectoryEntry": {
"type": "object",
"properties": {
- "app": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
+ "isDir": {
+ "type": "boolean"
},
- "ignoreMaxListHint": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
+ "isSymlink": {
+ "type": "boolean"
},
- "sort": {
- "anyOf": [
- {
- "type": "number"
- },
- {
- "type": "null"
- }
- ]
+ "name": {
+ "type": "string"
+ },
+ "updated": {
+ "type": "integer"
}
},
+ "required": [
+ "isDir",
+ "isSymlink",
+ "name",
+ "updated"
+ ],
"additionalProperties": false
},
- "GetUpdatedPackageRequestInput": {
+ "DocAttrView": {
"type": "object",
"properties": {
- "frontend": {
+ "id": {
+ "type": "string"
+ },
+ "name": {
"type": "string"
}
},
"required": [
- "frontend"
+ "id",
+ "name"
],
"additionalProperties": false
},
- "GlobalGraphConf": {
+ "DocHeadingLevelData": {
"type": "object",
"properties": {
- "d3": {
- "anyOf": [
- {
- "$ref": "#/$defs/GraphD3"
- },
- {
- "type": "null"
- }
- ]
- },
- "dailyNote": {
- "type": "boolean"
+ "counts": {
+ "type": "array",
+ "items": {
+ "type": "integer"
+ }
},
- "minRefs": {
- "type": "integer"
+ "title": {
+ "type": "string"
},
- "type": {
+ "transaction": {
"anyOf": [
{
- "$ref": "#/$defs/GraphTypeFilter"
+ "$ref": "#/$defs/BlockTransaction"
},
{
"type": "null"
}
]
+ },
+ "withSubheadingCounts": {
+ "type": "array",
+ "items": {
+ "type": "integer"
+ }
}
},
"required": [
- "d3",
- "dailyNote",
- "minRefs",
- "type"
+ "counts",
+ "title",
+ "transaction",
+ "withSubheadingCounts"
],
"additionalProperties": false
},
- "GlobalGraphRequestInput": {
+ "DocHeadingLevelRequestInput": {
"type": "object",
"properties": {
- "conf": {
- "$ref": "#/$defs/GraphConfigurationFieldsInput"
- },
- "k": {
+ "id": {
"anyOf": [
{
"type": "string"
@@ -15406,91 +18353,40 @@
}
]
},
- "reqId": {
+ "notebook": {
"anyOf": [
{
- "$ref": "#/$defs/JSONValue"
+ "type": "string"
},
{
"type": "null"
}
]
- }
- },
- "required": [
- "conf"
- ],
- "additionalProperties": false
- },
- "GlobalGraphResult": {
- "type": "object",
- "properties": {
- "box": {
- "type": "string"
- },
- "conf": {
- "$ref": "#/$defs/GlobalGraphConf"
},
- "links": {
+ "source": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/GraphLink"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "nodes": {
+ "target": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/GraphNode"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "reqId": {
- "$ref": "#/$defs/JSONValue"
- }
- },
- "required": [
- "box",
- "conf",
- "links",
- "nodes",
- "reqId"
- ],
- "additionalProperties": false
- },
- "GraphArrows": {
- "type": "object",
- "properties": {
- "to": {
+ "withSubheadings": {
"anyOf": [
{
- "$ref": "#/$defs/GraphArrowsTo"
+ "type": "boolean"
},
{
"type": "null"
@@ -15498,498 +18394,684 @@
]
}
},
- "required": [
- "to"
- ],
"additionalProperties": false
},
- "GraphArrowsTo": {
+ "DocHistoryContentData": {
"type": "object",
"properties": {
- "enabled": {
+ "content": {
+ "type": "string"
+ },
+ "id": {
+ "type": "string"
+ },
+ "isLargeDoc": {
"type": "boolean"
+ },
+ "rootID": {
+ "type": "string"
}
},
"required": [
- "enabled"
+ "content",
+ "id",
+ "isLargeDoc",
+ "rootID"
],
"additionalProperties": false
},
- "GraphConfigurationFieldsInput": {
+ "DocHistoryContentRequestInput": {
"type": "object",
"properties": {
- "d3": {
+ "highlight": {
"anyOf": [
{
- "$ref": "#/$defs/GraphD3Input"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "dailyNote": {
+ "historyPath": {
+ "type": "string"
+ },
+ "k": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "historyPath"
+ ],
+ "additionalProperties": false
+ },
+ "DocInfo": {
+ "type": "object",
+ "properties": {
+ "attrViews": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/DocAttrView"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
},
- "minRefs": {
+ "ial": {
"anyOf": [
{
- "type": "integer"
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "type": {
+ "icon": {
+ "type": "string"
+ },
+ "id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "refCount": {
+ "type": "integer"
+ },
+ "refIDs": {
"anyOf": [
{
- "$ref": "#/$defs/GraphTypeFilterInput"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
+ },
+ "rootID": {
+ "type": "string"
+ },
+ "subFileCount": {
+ "type": "integer"
}
},
+ "required": [
+ "attrViews",
+ "ial",
+ "icon",
+ "id",
+ "name",
+ "refCount",
+ "refIDs",
+ "rootID",
+ "subFileCount"
+ ],
"additionalProperties": false
},
- "GraphCorrelation": {
+ "DocOrdersRequestInput": {
"type": "object",
"properties": {
- "reqId": {
- "$ref": "#/$defs/JSONValue"
+ "id": {
+ "type": "string"
}
},
"required": [
- "reqId"
+ "id"
],
"additionalProperties": false
},
- "GraphD3": {
+ "DocVersionDiffContent": {
"type": "object",
"properties": {
- "arrow": {
- "type": "boolean"
- },
- "centerStrength": {
- "type": "number"
- },
- "collideRadius": {
- "type": "number"
- },
- "collideStrength": {
- "type": "number"
- },
- "lineOpacity": {
- "type": "number"
+ "content": {
+ "type": "string"
},
- "linkDistance": {
- "type": "integer"
+ "id": {
+ "type": "string"
},
- "linkWidth": {
- "type": "number"
+ "rootID": {
+ "type": "string"
},
- "nodeSize": {
- "type": "number"
+ "title": {
+ "type": "string"
}
},
"required": [
- "arrow",
- "centerStrength",
- "collideRadius",
- "collideStrength",
- "lineOpacity",
- "linkDistance",
- "linkWidth",
- "nodeSize"
+ "content",
+ "id",
+ "rootID",
+ "title"
],
"additionalProperties": false
},
- "GraphD3Input": {
+ "DocVersionDiffResult": {
"type": "object",
"properties": {
- "arrow": {
+ "differences": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/DocVersionDifference"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
},
- "centerStrength": {
- "anyOf": [
- {
- "type": "number"
- },
- {
- "type": "null"
- }
- ]
+ "fallback": {
+ "type": "boolean"
},
- "collideRadius": {
+ "large": {
+ "type": "boolean"
+ },
+ "left": {
"anyOf": [
{
- "type": "number"
+ "$ref": "#/$defs/DocVersionDiffContent"
},
{
"type": "null"
}
]
},
- "collideStrength": {
+ "message": {
+ "type": "string"
+ },
+ "right": {
"anyOf": [
{
- "type": "number"
+ "$ref": "#/$defs/DocVersionDiffContent"
},
{
"type": "null"
}
]
},
- "lineOpacity": {
+ "titleModified": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "differences",
+ "fallback",
+ "large",
+ "left",
+ "message",
+ "right",
+ "titleModified"
+ ],
+ "additionalProperties": false
+ },
+ "DocVersionDifference": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "statuses": {
"anyOf": [
{
- "type": "number"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
- },
- "linkDistance": {
+ }
+ },
+ "required": [
+ "id",
+ "statuses"
+ ],
+ "additionalProperties": false
+ },
+ "DocVersionRefInput": {
+ "type": "object",
+ "properties": {
+ "id": {
"anyOf": [
{
- "type": "integer"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "linkWidth": {
+ "path": {
"anyOf": [
{
- "type": "number"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "nodeSize": {
+ "snapshot": {
"anyOf": [
{
- "type": "number"
+ "type": "string"
},
{
"type": "null"
}
]
+ },
+ "type": {
+ "type": "string"
}
},
+ "required": [
+ "type"
+ ],
"additionalProperties": false
},
- "GraphLink": {
+ "DocsInfoRequestInput": {
"type": "object",
"properties": {
- "arrows": {
- "anyOf": [
- {
- "$ref": "#/$defs/GraphArrows"
- },
- {
- "type": "null"
- }
- ]
+ "av": {
+ "type": "boolean"
},
- "from": {
- "type": "string"
+ "ids": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
- "ref": {
+ "refCount": {
"type": "boolean"
- },
- "to": {
- "type": "string"
}
},
"required": [
- "arrows",
- "from",
- "ref",
- "to"
+ "av",
+ "ids",
+ "refCount"
],
"additionalProperties": false
},
- "GraphNode": {
+ "DownloadCloudSnapshotRequestInput": {
"type": "object",
"properties": {
- "box": {
- "type": "string"
- },
- "defs": {
- "type": "integer"
- },
"id": {
"type": "string"
},
- "label": {
- "type": "string"
- },
- "path": {
- "type": "string"
- },
- "refs": {
- "type": "integer"
- },
- "size": {
- "type": "number"
- },
- "title": {
- "type": "string"
- },
- "type": {
+ "tag": {
"type": "string"
}
},
"required": [
- "box",
- "defs",
"id",
- "label",
- "path",
- "refs",
- "size",
- "type"
+ "tag"
],
"additionalProperties": false
},
- "GraphTypeFilter": {
+ "DownloadInstallPkgRequestInput": {
"type": "object",
"properties": {
- "blockquote": {
- "type": "boolean"
- },
- "callout": {
- "type": "boolean"
- },
- "code": {
- "type": "boolean"
- },
- "heading": {
- "type": "boolean"
- },
- "list": {
- "type": "boolean"
- },
- "listItem": {
- "type": "boolean"
- },
- "math": {
- "type": "boolean"
- },
- "paragraph": {
- "type": "boolean"
- },
- "super": {
- "type": "boolean"
- },
- "table": {
+ "downloadInstallPkg": {
"type": "boolean"
- },
- "tag": {
+ }
+ },
+ "required": [
+ "downloadInstallPkg"
+ ],
+ "additionalProperties": false
+ },
+ "DuplicateAttributeViewBlockRequestInput": {
+ "type": "object",
+ "properties": {
+ "avID": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "avID"
+ ],
+ "additionalProperties": false
+ },
+ "EditorReadOnlyRequestInput": {
+ "type": "object",
+ "properties": {
+ "readonly": {
"type": "boolean"
}
},
"required": [
- "blockquote",
- "callout",
- "code",
- "heading",
- "list",
- "listItem",
- "math",
- "paragraph",
- "super",
- "table",
- "tag"
+ "readonly"
],
"additionalProperties": false
},
- "GraphTypeFilterInput": {
+ "EmbedBlock": {
"type": "object",
"properties": {
- "blockquote": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
+ "allowChildOperation": {
+ "type": "boolean"
},
- "callout": {
+ "block": {
"anyOf": [
{
- "type": "boolean"
+ "$ref": "#/$defs/SearchBlock"
},
{
"type": "null"
}
]
},
- "code": {
+ "blockPaths": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/BlockPath"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
- },
- "heading": {
+ }
+ },
+ "required": [
+ "allowChildOperation",
+ "block",
+ "blockPaths"
+ ],
+ "additionalProperties": false
+ },
+ "EmbedBlocksData": {
+ "type": "object",
+ "properties": {
+ "blocks": {
"anyOf": [
{
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
- },
- "list": {
- "anyOf": [
- {
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/EmbedBlock"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
+ }
+ },
+ "required": [
+ "blocks"
+ ],
+ "additionalProperties": false
+ },
+ "EmbedStat": {
+ "type": "object",
+ "properties": {
+ "complete": {
+ "type": "boolean"
},
- "listItem": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
+ "cycleCount": {
+ "type": "integer"
},
- "math": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
+ "depthLimitCount": {
+ "type": "integer"
},
- "paragraph": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
+ "failedQueryCount": {
+ "type": "integer"
},
- "super": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
+ "failedResultCount": {
+ "type": "integer"
+ },
+ "jsEmbedCount": {
+ "type": "integer"
+ },
+ "queryEmbedCount": {
+ "type": "integer"
+ },
+ "resultCount": {
+ "type": "integer"
+ },
+ "truncatedQueryCount": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "complete",
+ "cycleCount",
+ "depthLimitCount",
+ "failedQueryCount",
+ "failedResultCount",
+ "jsEmbedCount",
+ "queryEmbedCount",
+ "resultCount",
+ "truncatedQueryCount"
+ ],
+ "additionalProperties": false
+ },
+ "EmptyRequestInput": {
+ "type": "object",
+ "additionalProperties": false
+ },
+ "EncryptedNotebookStatus": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "state": {
+ "type": "string",
+ "enum": [
+ "Locked",
+ "Unlocking",
+ "Unlocked",
+ "Locking",
+ "Error"
]
},
- "table": {
+ "unlocked": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "id",
+ "name",
+ "state",
+ "unlocked"
+ ],
+ "additionalProperties": false
+ },
+ "EncryptedNotebookStatusData": {
+ "type": "object",
+ "properties": {
+ "boxes": {
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/EncryptedNotebookStatus"
+ }
+ },
+ "count": {
+ "type": "integer"
+ },
+ "enabled": {
+ "type": "boolean"
+ },
+ "hasHistoryDependency": {
+ "type": "boolean"
+ },
+ "migrationBoxes": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "tag": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
+ "migrationPending": {
+ "type": "boolean"
+ },
+ "state": {
+ "type": "string",
+ "enum": [
+ "Disabled",
+ "Enabled",
+ "RecoveryRequired"
]
}
},
+ "required": [
+ "boxes",
+ "count",
+ "enabled",
+ "hasHistoryDependency",
+ "migrationBoxes",
+ "migrationPending",
+ "state"
+ ],
"additionalProperties": false
},
- "HTMLClipboardPreflight": {
+ "ExportAsFileRequestInput": {
"type": "object",
"properties": {
- "converted": {
- "type": "boolean"
+ "file": {
+ "type": "string",
+ "format": "binary"
},
- "dom": {
+ "type": {
"type": "string"
- },
- "normalizedHTML": {
+ }
+ },
+ "required": [
+ "file",
+ "type"
+ ],
+ "additionalProperties": false
+ },
+ "ExportAttributeViewRequestInput": {
+ "type": "object",
+ "properties": {
+ "blockID": {
"type": "string"
},
- "useHTML": {
- "type": "boolean"
+ "id": {
+ "type": "string"
}
},
"required": [
- "converted",
- "useHTML"
+ "blockID",
+ "id"
],
"additionalProperties": false
},
- "HTMLClipboardRequestInput": {
+ "ExportBrowserHTMLRequestInput": {
"type": "object",
"properties": {
- "dom": {
+ "folder": {
"type": "string"
},
- "mathML": {
+ "html": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "folder",
+ "html",
+ "name"
+ ],
+ "additionalProperties": false
+ },
+ "ExportDocumentsMarkdownRequestInput": {
+ "type": "object",
+ "properties": {
+ "addTitle": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "notebook": {
+ "blockEmbedMode": {
"anyOf": [
{
- "type": "string"
+ "type": "number"
},
{
"type": "null"
}
]
},
- "office": {
+ "blockRefMode": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "blockRefTextLeft": {
"anyOf": [
{
"type": "string"
@@ -15999,7 +19081,7 @@
}
]
},
- "officeMathHTML": {
+ "blockRefTextRight": {
"anyOf": [
{
"type": "string"
@@ -16009,17 +19091,23 @@
}
]
},
- "preflight": {
+ "fileAnnotationRefMode": {
"anyOf": [
{
- "type": "boolean"
+ "type": "number"
},
{
"type": "null"
}
]
},
- "preparedHTML": {
+ "ids": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "includeRelatedDocs": {
"anyOf": [
{
"type": "boolean"
@@ -16029,7 +19117,7 @@
}
]
},
- "preserveSourceFormat": {
+ "includeSubDocs": {
"anyOf": [
{
"type": "boolean"
@@ -16039,7 +19127,7 @@
}
]
},
- "skipBase64Assets": {
+ "inlineMemo": {
"anyOf": [
{
"type": "boolean"
@@ -16049,7 +19137,7 @@
}
]
},
- "skipInlineSVGAssets": {
+ "markdownYFM": {
"anyOf": [
{
"type": "boolean"
@@ -16059,7 +19147,7 @@
}
]
},
- "skipLocalAssets": {
+ "removeAssetsID": {
"anyOf": [
{
"type": "boolean"
@@ -16069,7 +19157,7 @@
}
]
},
- "text": {
+ "tagCloseMarker": {
"anyOf": [
{
"type": "string"
@@ -16079,7 +19167,7 @@
}
]
},
- "wps": {
+ "tagOpenMarker": {
"anyOf": [
{
"type": "string"
@@ -16091,29 +19179,17 @@
}
},
"required": [
- "dom"
- ],
- "additionalProperties": false
- },
- "HTMLData": {
- "type": "object",
- "properties": {
- "html": {
- "type": "string"
- }
- },
- "required": [
- "html"
+ "ids"
],
"additionalProperties": false
},
- "HeadingChildrenRequestInput": {
+ "ExportDocxRequestInput": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
- "removeFoldAttr": {
+ "merge": {
"anyOf": [
{
"type": "boolean"
@@ -16122,54 +19198,8 @@
"type": "null"
}
]
- }
- },
- "required": [
- "id"
- ],
- "additionalProperties": false
- },
- "HeadingFoldRequestInput": {
- "type": "object",
- "properties": {
- "id": {
- "type": "string"
- },
- "scope": {
- "type": "string"
- }
- },
- "required": [
- "id",
- "scope"
- ],
- "additionalProperties": false
- },
- "HeadingLevelRequestInput": {
- "type": "object",
- "properties": {
- "id": {
- "type": "string"
- },
- "ids": {
- "type": "array",
- "items": {
- "type": "string"
- }
},
- "level": {
- "type": "number"
- }
- },
- "required": [
- "level"
- ],
- "additionalProperties": false
- },
- "HeadingNumbersRequestInput": {
- "type": "object",
- "properties": {
- "id": {
+ "mergeContentHeadingMode": {
"anyOf": [
{
"type": "string"
@@ -16179,7 +19209,7 @@
}
]
},
- "notebook": {
+ "mergeDocHeadingMode": {
"anyOf": [
{
"type": "string"
@@ -16188,107 +19218,82 @@
"type": "null"
}
]
+ },
+ "removeAssets": {
+ "type": "boolean"
+ },
+ "savePath": {
+ "type": "string"
}
},
+ "required": [
+ "id",
+ "removeAssets",
+ "savePath"
+ ],
"additionalProperties": false
},
- "History": {
+ "ExportFileData": {
"type": "object",
"properties": {
- "hCreated": {
+ "file": {
"type": "string"
- },
- "items": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/HistoryItem"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- {
- "type": "null"
- }
- ]
}
},
"required": [
- "hCreated",
- "items"
+ "file"
],
"additionalProperties": false
},
- "HistoryItem": {
+ "ExportFolderRequestInput": {
"type": "object",
"properties": {
- "id": {
+ "folder": {
"type": "string"
- },
- "notebook": {
+ }
+ },
+ "required": [
+ "folder"
+ ],
+ "additionalProperties": false
+ },
+ "ExportHTMLData": {
+ "type": "object",
+ "properties": {
+ "content": {
"type": "string"
},
- "op": {
+ "folder": {
"type": "string"
},
- "path": {
+ "id": {
"type": "string"
},
- "title": {
+ "name": {
"type": "string"
}
},
"required": [
+ "content",
"id",
- "notebook",
- "op",
- "path",
- "title"
+ "name"
],
"additionalProperties": false
},
- "HistoryItemsData": {
+ "ExportHTMLRequestInput": {
"type": "object",
"properties": {
- "items": {
+ "addTitle": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/HistoryItem"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "boolean"
},
{
"type": "null"
}
]
- }
- },
- "required": [
- "items"
- ],
- "additionalProperties": false
- },
- "HistoryItemsRequestInput": {
- "type": "object",
- "properties": {
- "created": {
- "type": "string"
},
- "notebook": {
+ "customTitle": {
"anyOf": [
{
"type": "string"
@@ -16298,7 +19303,30 @@
}
]
},
- "op": {
+ "id": {
+ "type": "string"
+ },
+ "keepFold": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "merge": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "mergeContentHeadingMode": {
"anyOf": [
{
"type": "string"
@@ -16308,7 +19336,7 @@
}
]
},
- "query": {
+ "mergeDocHeadingMode": {
"anyOf": [
{
"type": "string"
@@ -16318,10 +19346,13 @@
}
]
},
- "type": {
+ "pdf": {
+ "type": "boolean"
+ },
+ "savePath": {
"anyOf": [
{
- "type": "number"
+ "type": "string"
},
{
"type": "null"
@@ -16330,137 +19361,88 @@
}
},
"required": [
- "created"
+ "id",
+ "pdf"
],
"additionalProperties": false
},
- "HistoryPathRequestInput": {
+ "ExportIDRequestInput": {
"type": "object",
"properties": {
- "historyPath": {
+ "id": {
"type": "string"
}
},
"required": [
- "historyPath"
+ "id"
],
"additionalProperties": false
},
- "ImportAutoDocument": {
+ "ExportIDsRequestInput": {
"type": "object",
"properties": {
- "token": {
+ "ids": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ },
+ "required": [
+ "ids"
+ ],
+ "additionalProperties": false
+ },
+ "ExportMarkdownContentData": {
+ "type": "object",
+ "properties": {
+ "content": {
"type": "string"
},
- "type": {
- "type": "string",
- "enum": [
- "document"
- ]
+ "hPath": {
+ "type": "string"
}
},
"required": [
- "type"
+ "content",
+ "hPath"
],
"additionalProperties": false
},
- "ImportAutoNotebook": {
+ "ExportMarkdownContentRequestInput": {
"type": "object",
"properties": {
- "notebook": {
+ "addTitle": {
"anyOf": [
{
- "$ref": "#/$defs/Notebook"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "type": {
- "type": "string",
- "enum": [
- "notebook"
- ]
- }
- },
- "required": [
- "notebook",
- "type"
- ],
- "additionalProperties": false
- },
- "ImportAutoNotebooks": {
- "type": "object",
- "properties": {
- "notebooks": {
+ "adjustHeadingLevel": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/Notebook"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "type": {
- "type": "string",
- "enum": [
- "notebooks"
- ]
- }
- },
- "required": [
- "notebooks",
- "type"
- ],
- "additionalProperties": false
- },
- "ImportDataRequestInput": {
- "type": "object",
- "properties": {
- "file": {
- "type": "string",
- "format": "binary"
- }
- },
- "additionalProperties": false
- },
- "ImportDocumentData": {
- "type": "object",
- "properties": {
- "type": {
- "type": "string",
- "enum": [
- "document"
+ "embedMode": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
]
- }
- },
- "required": [
- "type"
- ],
- "additionalProperties": false
- },
- "ImportMarkdownRequestInput": {
- "type": "object",
- "properties": {
- "localPath": {
- "type": "string"
- },
- "notebook": {
- "type": "string"
},
- "skipRoot": {
+ "fillCSSVar": {
"anyOf": [
{
"type": "boolean"
@@ -16470,99 +19452,55 @@
}
]
},
- "toPath": {
+ "id": {
"type": "string"
- }
- },
- "required": [
- "localPath",
- "notebook",
- "toPath"
- ],
- "additionalProperties": false
- },
- "ImportNotebookCryptoBackupRequestInput": {
- "type": "object",
- "properties": {
- "file": {
- "type": "string",
- "format": "binary"
},
- "password": {
- "type": "string"
- }
- },
- "required": [
- "file"
- ],
- "additionalProperties": false
- },
- "ImportRepoKeyRequestInput": {
- "type": "object",
- "properties": {
- "key": {
- "type": "string"
- }
- },
- "required": [
- "key"
- ],
- "additionalProperties": false
- },
- "ImportSYRequestInput": {
- "type": "object",
- "properties": {
- "file": {
- "type": "string",
- "format": "binary"
+ "imgTag": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "notebook": {
- "type": "string"
+ "refMode": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "toPath": {
- "type": "string"
- }
- },
- "additionalProperties": false
- },
- "ImportTokenRequestInput": {
- "type": "object",
- "properties": {
- "token": {
- "type": "string"
+ "yfm": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
"required": [
- "token"
+ "id"
],
"additionalProperties": false
},
- "ImportZipMarkdownRequestInput": {
+ "ExportMarkdownHTMLRequestInput": {
"type": "object",
"properties": {
- "file": {
- "type": "string",
- "format": "binary"
- },
- "notebook": {
- "type": "string"
- },
- "skipRoot": {
+ "id": {
"type": "string"
},
- "toPath": {
- "type": "string"
- }
- },
- "additionalProperties": false
- },
- "ImportedNotebook": {
- "type": "object",
- "properties": {
- "notebook": {
+ "savePath": {
"anyOf": [
{
- "$ref": "#/$defs/Notebook"
+ "type": "string"
},
{
"type": "null"
@@ -16571,255 +19509,140 @@
}
},
"required": [
- "notebook"
+ "id"
],
"additionalProperties": false
},
- "ImportedNotebooks": {
+ "ExportMarkdownRequestInput": {
"type": "object",
"properties": {
- "notebooks": {
+ "addTitle": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/Notebook"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "boolean"
},
{
"type": "null"
}
]
- }
- },
- "required": [
- "notebooks"
- ],
- "additionalProperties": false
- },
- "InitRepoKeyFromPassphraseRequestInput": {
- "type": "object",
- "properties": {
- "pass": {
- "type": "string"
- }
- },
- "required": [
- "pass"
- ],
- "additionalProperties": false
- },
- "InlineStyle": {
- "type": "object",
- "properties": {
- "dark": {
+ },
+ "blockEmbedMode": {
"anyOf": [
{
- "$ref": "#/$defs/InlineStyleTheme"
+ "type": "number"
},
{
"type": "null"
}
]
},
- "hidden": {
- "type": "boolean"
- },
- "id": {
- "type": "string"
- },
- "light": {
+ "blockRefMode": {
"anyOf": [
{
- "$ref": "#/$defs/InlineStyleTheme"
+ "type": "number"
},
{
"type": "null"
}
]
},
- "name": {
- "type": "string"
- }
- },
- "required": [
- "dark",
- "id",
- "light",
- "name"
- ],
- "additionalProperties": false
- },
- "InlineStyleAV": {
- "type": "object",
- "properties": {
- "colors": {
+ "blockRefTextLeft": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/AttributeViewCustomColor"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "string"
},
{
"type": "null"
}
]
},
- "order": {
+ "blockRefTextRight": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "type": "string"
},
{
"type": "null"
}
]
- }
- },
- "required": [
- "colors",
- "order"
- ],
- "additionalProperties": false
- },
- "InlineStyleAVInput": {
- "type": "object",
- "properties": {
- "colors": {
+ },
+ "fileAnnotationRefMode": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/AttributeViewCustomColorInput"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "number"
},
{
"type": "null"
}
]
},
- "order": {
+ "id": {
+ "type": "string"
+ },
+ "includeRelatedDocs": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "type": "boolean"
},
{
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "InlineStyleBuiltin": {
- "type": "object",
- "properties": {
- "colors": {
+ },
+ "includeSubDocs": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/InlineStyleBuiltinColor"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "hidden": {
+ "inlineMemo": {
"anyOf": [
{
- "$ref": "#/$defs/InlineStyleBuiltinHidden"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "styles": {
+ "markdownYFM": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/InlineStyleBuiltinStyle"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "boolean"
},
{
"type": "null"
}
]
- }
- },
- "required": [
- "colors",
- "hidden",
- "styles"
- ],
- "additionalProperties": false
- },
- "InlineStyleBuiltinColor": {
- "type": "object",
- "properties": {
- "dark": {
+ },
+ "removeAssetsID": {
"anyOf": [
{
- "$ref": "#/$defs/InlineStyleTheme"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "index": {
- "type": "integer"
+ "tagCloseMarker": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "light": {
+ "tagOpenMarker": {
"anyOf": [
{
- "$ref": "#/$defs/InlineStyleTheme"
+ "type": "string"
},
{
"type": "null"
@@ -16828,217 +19651,168 @@
}
},
"required": [
- "dark",
- "index",
- "light"
+ "id"
],
"additionalProperties": false
},
- "InlineStyleBuiltinColorInput": {
+ "ExportNameData": {
"type": "object",
"properties": {
- "dark": {
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "name"
+ ],
+ "additionalProperties": false
+ },
+ "ExportNamedZipData": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string"
+ },
+ "zip": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "name",
+ "zip"
+ ],
+ "additionalProperties": false
+ },
+ "ExportNotebookMarkdownRequestInput": {
+ "type": "object",
+ "properties": {
+ "addTitle": {
"anyOf": [
{
- "$ref": "#/$defs/InlineStyleThemeInput"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "index": {
+ "blockEmbedMode": {
"anyOf": [
{
- "type": "integer"
+ "type": "number"
},
{
"type": "null"
}
]
},
- "light": {
+ "blockRefMode": {
"anyOf": [
{
- "$ref": "#/$defs/InlineStyleThemeInput"
+ "type": "number"
},
{
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "InlineStyleBuiltinHidden": {
- "type": "object",
- "properties": {
- "av": {
+ },
+ "blockRefTextLeft": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "integer"
- }
+ "type": "string"
},
{
"type": "null"
}
]
},
- "backgroundColor": {
+ "blockRefTextRight": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "integer"
- }
+ "type": "string"
},
{
"type": "null"
}
]
},
- "color": {
+ "fileAnnotationRefMode": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "integer"
- }
+ "type": "number"
},
{
"type": "null"
}
]
},
- "style1": {
+ "includeRelatedDocs": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "type": "boolean"
},
{
"type": "null"
}
]
- }
- },
- "required": [
- "av",
- "backgroundColor",
- "color",
- "style1"
- ],
- "additionalProperties": false
- },
- "InlineStyleBuiltinHiddenInput": {
- "type": "object",
- "properties": {
- "av": {
+ },
+ "includeSubDocs": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "integer"
- }
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "backgroundColor": {
+ "inlineMemo": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "integer"
- }
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "color": {
+ "markdownYFM": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "integer"
- }
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "style1": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "additionalProperties": false
- },
- "InlineStyleBuiltinInput": {
- "type": "object",
- "properties": {
- "colors": {
+ "notebook": {
+ "type": "string"
+ },
+ "removeAssetsID": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/InlineStyleBuiltinColorInput"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "hidden": {
+ "tagCloseMarker": {
"anyOf": [
{
- "$ref": "#/$defs/InlineStyleBuiltinHiddenInput"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "styles": {
+ "tagOpenMarker": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/InlineStyleBuiltinStyleInput"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "string"
},
{
"type": "null"
@@ -17046,56 +19820,45 @@
]
}
},
+ "required": [
+ "notebook"
+ ],
"additionalProperties": false
},
- "InlineStyleBuiltinStyle": {
+ "ExportNotebooksMarkdownRequestInput": {
"type": "object",
"properties": {
- "dark": {
+ "addTitle": {
"anyOf": [
{
- "$ref": "#/$defs/InlineStyleTheme"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "id": {
- "type": "string"
- },
- "light": {
+ "blockEmbedMode": {
"anyOf": [
{
- "$ref": "#/$defs/InlineStyleTheme"
+ "type": "number"
},
{
"type": "null"
}
]
- }
- },
- "required": [
- "dark",
- "id",
- "light"
- ],
- "additionalProperties": false
- },
- "InlineStyleBuiltinStyleInput": {
- "type": "object",
- "properties": {
- "dark": {
+ },
+ "blockRefMode": {
"anyOf": [
{
- "$ref": "#/$defs/InlineStyleThemeInput"
+ "type": "number"
},
{
"type": "null"
}
]
},
- "id": {
+ "blockRefTextLeft": {
"anyOf": [
{
"type": "string"
@@ -17105,33 +19868,27 @@
}
]
},
- "light": {
+ "blockRefTextRight": {
"anyOf": [
{
- "$ref": "#/$defs/InlineStyleThemeInput"
+ "type": "string"
},
{
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "InlineStyleInput": {
- "type": "object",
- "properties": {
- "dark": {
+ },
+ "fileAnnotationRefMode": {
"anyOf": [
{
- "$ref": "#/$defs/InlineStyleThemeInput"
+ "type": "number"
},
{
"type": "null"
}
]
},
- "hidden": {
+ "includeRelatedDocs": {
"anyOf": [
{
"type": "boolean"
@@ -17141,56 +19898,37 @@
}
]
},
- "id": {
+ "includeSubDocs": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "light": {
+ "inlineMemo": {
"anyOf": [
{
- "$ref": "#/$defs/InlineStyleThemeInput"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "name": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "additionalProperties": false
- },
- "InlineStyleOrder": {
- "type": "object",
- "properties": {
- "backgroundColor": {
+ "markdownYFM": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "color": {
+ "notebooks": {
"anyOf": [
{
"type": "array",
@@ -17203,57 +19941,43 @@
}
]
},
- "style1": {
+ "removeAssetsID": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "type": "boolean"
},
{
"type": "null"
}
]
- }
- },
- "required": [
- "backgroundColor",
- "color",
- "style1"
- ],
- "additionalProperties": false
- },
- "InlineStyleOrderInput": {
- "type": "object",
- "properties": {
- "backgroundColor": {
+ },
+ "tagCloseMarker": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "type": "string"
},
{
"type": "null"
}
]
},
- "color": {
+ "tagOpenMarker": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "type": "string"
},
{
"type": "null"
}
]
- },
- "style1": {
+ }
+ },
+ "additionalProperties": false
+ },
+ "ExportNotebooksRequestInput": {
+ "type": "object",
+ "properties": {
+ "notebooks": {
"anyOf": [
{
"type": "array",
@@ -17269,130 +19993,129 @@
},
"additionalProperties": false
},
- "InlineStyleTheme": {
+ "ExportPathData": {
"type": "object",
"properties": {
- "backgroundColor": {
+ "path": {
"type": "string"
+ }
+ },
+ "required": [
+ "path"
+ ],
+ "additionalProperties": false
+ },
+ "ExportPreviewData": {
+ "type": "object",
+ "properties": {
+ "fillCSSVar": {
+ "type": "boolean"
},
- "color": {
+ "html": {
"type": "string"
}
},
+ "required": [
+ "fillCSSVar",
+ "html"
+ ],
"additionalProperties": false
},
- "InlineStyleThemeInput": {
+ "ExportPreviewHTMLData": {
"type": "object",
"properties": {
- "backgroundColor": {
+ "attrs": {
"anyOf": [
{
- "type": "string"
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "color": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
+ "content": {
+ "type": "string"
+ },
+ "id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "type": {
+ "type": "string"
}
},
+ "required": [
+ "attrs",
+ "content",
+ "id",
+ "name",
+ "type"
+ ],
"additionalProperties": false
},
- "InlineStyles": {
+ "ExportPreviewHTMLRequestInput": {
"type": "object",
"properties": {
- "av": {
+ "addTitle": {
"anyOf": [
{
- "$ref": "#/$defs/InlineStyleAV"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "builtin": {
+ "customTitle": {
"anyOf": [
{
- "$ref": "#/$defs/InlineStyleBuiltin"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "order": {
+ "id": {
+ "type": "string"
+ },
+ "image": {
"anyOf": [
{
- "$ref": "#/$defs/InlineStyleOrder"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "styles": {
+ "keepFold": {
"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": {
+ "merge": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "parentID": {
+ "mergeContentHeadingMode": {
"anyOf": [
{
"type": "string"
@@ -17402,7 +20125,7 @@
}
]
},
- "previousID": {
+ "mergeDocHeadingMode": {
"anyOf": [
{
"type": "string"
@@ -17414,60 +20137,61 @@
}
},
"required": [
- "data",
- "dataType"
+ "id"
],
"additionalProperties": false
},
- "InsertCoverRequestInput": {
+ "ExportRepoFileRequestInput": {
"type": "object",
"properties": {
"id": {
"type": "string"
- },
- "name": {
- "type": "string"
}
},
"required": [
- "id",
- "name"
+ "id"
],
"additionalProperties": false
},
- "InsertLocalAssetsRequestInput": {
+ "ExportResourcesRequestInput": {
"type": "object",
"properties": {
- "assetPaths": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "fromHTMLPaste": {
+ "name": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "id": {
+ "paths": {
"anyOf": [
{
- "type": "string"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
+ }
+ },
+ "additionalProperties": false
+ },
+ "ExportTempContentRequestInput": {
+ "type": "object",
+ "properties": {
+ "content": {
+ "type": "string"
},
- "isUpload": {
+ "id": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
@@ -17476,30 +20200,41 @@
}
},
"required": [
- "assetPaths"
+ "content"
],
"additionalProperties": false
},
- "InstallBazaarIconRequestInput": {
+ "ExportURLData": {
"type": "object",
"properties": {
- "keyword": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "packageName": {
+ "url": {
"type": "string"
- },
- "repoHash": {
+ }
+ },
+ "required": [
+ "url"
+ ],
+ "additionalProperties": false
+ },
+ "ExportZipData": {
+ "type": "object",
+ "properties": {
+ "zip": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "zip"
+ ],
+ "additionalProperties": false
+ },
+ "FileAnnotationRefRequestInput": {
+ "type": "object",
+ "properties": {
+ "id": {
"type": "string"
},
- "repoRef": {
+ "notebook": {
"anyOf": [
{
"type": "string"
@@ -17508,25 +20243,88 @@
"type": "null"
}
]
+ }
+ },
+ "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
+ },
+ "FileTreeAuthPublishRequestInput": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
},
- "repoURL": {
+ "password": {
"type": "string"
}
},
"required": [
- "packageName",
- "repoHash",
- "repoURL"
+ "id",
+ "password"
],
"additionalProperties": false
},
- "InstallBazaarPluginRequestInput": {
+ "FileTreeChangeSortRequestInput": {
"type": "object",
"properties": {
- "frontend": {
+ "notebook": {
"type": "string"
},
- "keyword": {
+ "paths": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ },
+ "required": [
+ "notebook",
+ "paths"
+ ],
+ "additionalProperties": false
+ },
+ "FileTreeCreateData": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id"
+ ],
+ "additionalProperties": false
+ },
+ "FileTreeCreateMarkdownRequestInput": {
+ "type": "object",
+ "properties": {
+ "clippingHref": {
"anyOf": [
{
"type": "string"
@@ -17536,13 +20334,7 @@
}
]
},
- "packageName": {
- "type": "string"
- },
- "repoHash": {
- "type": "string"
- },
- "repoRef": {
+ "docCreateTemplatePath": {
"anyOf": [
{
"type": "string"
@@ -17552,22 +20344,7 @@
}
]
},
- "repoURL": {
- "type": "string"
- }
- },
- "required": [
- "frontend",
- "packageName",
- "repoHash",
- "repoURL"
- ],
- "additionalProperties": false
- },
- "InstallBazaarTemplateRequestInput": {
- "type": "object",
- "properties": {
- "keyword": {
+ "id": {
"anyOf": [
{
"type": "string"
@@ -17577,13 +20354,23 @@
}
]
},
- "packageName": {
+ "listDocTree": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "markdown": {
"type": "string"
},
- "repoHash": {
+ "notebook": {
"type": "string"
},
- "repoRef": {
+ "parentID": {
"anyOf": [
{
"type": "string"
@@ -17593,21 +20380,10 @@
}
]
},
- "repoURL": {
+ "path": {
"type": "string"
- }
- },
- "required": [
- "packageName",
- "repoHash",
- "repoURL"
- ],
- "additionalProperties": false
- },
- "InstallBazaarThemeRequestInput": {
- "type": "object",
- "properties": {
- "frontend": {
+ },
+ "sortPosition": {
"anyOf": [
{
"type": "string"
@@ -17617,7 +20393,7 @@
}
]
},
- "keyword": {
+ "sortTargetID": {
"anyOf": [
{
"type": "string"
@@ -17627,43 +20403,41 @@
}
]
},
- "mode": {
- "type": "number"
+ "tags": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "modeOS": {
+ "titleEmpty": {
"type": "boolean"
},
- "packageName": {
- "type": "string"
- },
- "repoHash": {
- "type": "string"
- },
- "repoRef": {
+ "withMath": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
- },
- "repoURL": {
- "type": "string"
}
},
"required": [
- "packageName",
- "repoHash",
- "repoURL"
+ "markdown",
+ "notebook",
+ "path"
],
"additionalProperties": false
},
- "InstallBazaarWidgetRequestInput": {
+ "FileTreeCreateRequestInput": {
"type": "object",
"properties": {
- "keyword": {
+ "docCreateTemplatePath": {
"anyOf": [
{
"type": "string"
@@ -17673,13 +20447,26 @@
}
]
},
- "packageName": {
+ "listDocTree": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "md": {
"type": "string"
},
- "repoHash": {
+ "notebook": {
"type": "string"
},
- "repoRef": {
+ "path": {
+ "type": "string"
+ },
+ "sortPosition": {
"anyOf": [
{
"type": "string"
@@ -17689,95 +20476,171 @@
}
]
},
- "repoURL": {
+ "sortTargetID": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "sorts": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "title": {
"type": "string"
}
},
"required": [
- "packageName",
- "repoHash",
- "repoURL"
+ "md",
+ "notebook",
+ "path",
+ "title"
],
"additionalProperties": false
},
- "InstallLocalBazaarPackageRequestInput": {
+ "FileTreeCreateSavePathData": {
"type": "object",
"properties": {
- "file": {
- "type": "string",
- "format": "binary"
+ "box": {
+ "type": "string"
},
- "frontend": {
+ "docCreateTemplatePath": {
"type": "string"
},
- "overwrite": {
+ "path": {
"type": "string"
}
},
+ "required": [
+ "box",
+ "docCreateTemplatePath",
+ "path"
+ ],
"additionalProperties": false
},
- "JSONValue": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "type": "boolean"
- },
- {
- "type": "number"
+ "FileTreeDailyNoteRequestInput": {
+ "type": "object",
+ "properties": {
+ "app": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- {
+ "notebook": {
"type": "string"
- },
- {
+ }
+ },
+ "required": [
+ "notebook"
+ ],
+ "additionalProperties": false
+ },
+ "FileTreeDocFile": {
+ "type": "object",
+ "properties": {
+ "children": {
"type": "array",
"items": {
- "$ref": "#/$defs/JSONValue"
+ "anyOf": [
+ {
+ "$ref": "#/$defs/FileTreeDocFile"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
- {
- "type": "object",
- "additionalProperties": {
- "$ref": "#/$defs/JSONValue"
- }
+ "id": {
+ "type": "string"
}
- ]
+ },
+ "required": [
+ "id"
+ ],
+ "additionalProperties": false
},
- "KernelPetal": {
+ "FileTreeDocHeadingData": {
"type": "object",
"properties": {
- "existed": {
- "type": "boolean"
+ "srcTreeBox": {
+ "type": "string"
},
- "incompatible": {
+ "srcTreePath": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "srcTreeBox",
+ "srcTreePath"
+ ],
+ "additionalProperties": false
+ },
+ "FileTreeDocHeadingRequestInput": {
+ "type": "object",
+ "properties": {
+ "after": {
"type": "boolean"
},
- "js": {
+ "srcID": {
+ "type": "string"
+ },
+ "targetID": {
"type": "string"
}
},
"required": [
- "existed",
- "incompatible",
- "js"
+ "after",
+ "srcID",
+ "targetID"
],
"additionalProperties": false
},
- "ListNotebooksData": {
+ "FileTreeDocPathData": {
"type": "object",
"properties": {
- "boxDocEnabled": {
- "type": "boolean"
+ "notebook": {
+ "type": "string"
},
- "notebooks": {
+ "path": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "notebook",
+ "path"
+ ],
+ "additionalProperties": false
+ },
+ "FileTreeDocTreeData": {
+ "type": "object",
+ "properties": {
+ "tree": {
"anyOf": [
{
"type": "array",
"items": {
"anyOf": [
{
- "$ref": "#/$defs/Notebook"
+ "$ref": "#/$defs/FileTreeDocFile"
},
{
"type": "null"
@@ -17792,133 +20655,243 @@
}
},
"required": [
- "boxDocEnabled",
- "notebooks"
+ "tree"
],
"additionalProperties": false
},
- "ListNotebooksRequestInput": {
- "type": "object",
- "properties": {
- "flashcard": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "additionalProperties": false
- },
- "LoadPetalsRequestInput": {
+ "FileTreeDuplicateData": {
"type": "object",
"properties": {
- "frontend": {
+ "hPath": {
+ "type": "string"
+ },
+ "id": {
+ "type": "string"
+ },
+ "notebook": {
+ "type": "string"
+ },
+ "path": {
"type": "string"
}
},
"required": [
- "frontend"
+ "hPath",
+ "id",
+ "notebook",
+ "path"
],
"additionalProperties": false
},
- "LoadedPlugin": {
+ "FileTreeFile": {
"type": "object",
"properties": {
- "methods": {
+ "alias": {
+ "type": "string"
+ },
+ "bookmark": {
+ "type": "string"
+ },
+ "childrenSortMode": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/PluginRPCMethod"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "integer"
},
{
"type": "null"
}
]
},
+ "count": {
+ "type": "integer"
+ },
+ "ctime": {
+ "type": "integer"
+ },
+ "dueFlashcardCount": {
+ "type": "integer"
+ },
+ "flashcardCount": {
+ "type": "integer"
+ },
+ "hCtime": {
+ "type": "string"
+ },
+ "hMtime": {
+ "type": "string"
+ },
+ "hSize": {
+ "type": "string"
+ },
+ "icon": {
+ "type": "string"
+ },
+ "id": {
+ "type": "string"
+ },
+ "memo": {
+ "type": "string"
+ },
+ "mtime": {
+ "type": "integer"
+ },
"name": {
"type": "string"
},
- "state": {
+ "name1": {
"type": "string"
},
- "stateCode": {
+ "newFlashcardCount": {
+ "type": "integer"
+ },
+ "path": {
+ "type": "string"
+ },
+ "size": {
+ "type": "integer"
+ },
+ "sort": {
"type": "integer"
+ },
+ "subFileCount": {
+ "type": "integer"
+ },
+ "titleEmpty": {
+ "type": "boolean"
}
},
"required": [
- "methods",
+ "alias",
+ "bookmark",
+ "childrenSortMode",
+ "count",
+ "ctime",
+ "dueFlashcardCount",
+ "flashcardCount",
+ "hCtime",
+ "hMtime",
+ "hSize",
+ "icon",
+ "id",
+ "memo",
+ "mtime",
"name",
- "state",
- "stateCode"
+ "name1",
+ "newFlashcardCount",
+ "path",
+ "size",
+ "sort",
+ "subFileCount"
],
"additionalProperties": false
},
- "LoadedPluginRequestInput": {
+ "FileTreeGetDocData": {
"type": "object",
"properties": {
- "name": {
+ "blockCount": {
+ "type": "integer"
+ },
+ "box": {
"type": "string"
- }
- },
- "required": [
- "name"
- ],
- "additionalProperties": false
- },
- "LocalGraphConf": {
- "type": "object",
- "properties": {
- "d3": {
+ },
+ "content": {
+ "type": "string"
+ },
+ "docInfo": {
+ "$ref": "#/$defs/DocInfo"
+ },
+ "eof": {
+ "type": "boolean"
+ },
+ "headingNumbers": {
"anyOf": [
{
- "$ref": "#/$defs/GraphD3"
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "dailyNote": {
+ "id": {
+ "type": "string"
+ },
+ "isBacklinkExpand": {
"type": "boolean"
},
- "type": {
+ "isSyncing": {
+ "type": "boolean"
+ },
+ "keywords": {
"anyOf": [
{
- "$ref": "#/$defs/GraphTypeFilter"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
+ },
+ "mode": {
+ "type": "integer"
+ },
+ "parent2ID": {
+ "type": "string"
+ },
+ "parentID": {
+ "type": "string"
+ },
+ "path": {
+ "type": "string"
+ },
+ "publishAccessRequired": {
+ "type": "boolean"
+ },
+ "reqId": {
+ "$ref": "#/$defs/JSONValue"
+ },
+ "rootID": {
+ "type": "string"
+ },
+ "scroll": {
+ "type": "boolean"
+ },
+ "type": {
+ "type": "string"
}
},
"required": [
- "d3",
- "dailyNote",
+ "blockCount",
+ "box",
+ "content",
+ "eof",
+ "headingNumbers",
+ "id",
+ "isBacklinkExpand",
+ "isSyncing",
+ "keywords",
+ "mode",
+ "parent2ID",
+ "parentID",
+ "path",
+ "publishAccessRequired",
+ "reqId",
+ "rootID",
+ "scroll",
"type"
],
"additionalProperties": false
},
- "LocalGraphRequestInput": {
+ "FileTreeGetDocRequestInput": {
"type": "object",
"properties": {
- "conf": {
- "$ref": "#/$defs/GraphConfigurationFieldsInput"
- },
- "id": {
+ "endID": {
"anyOf": [
{
"type": "string"
@@ -17928,94 +20901,75 @@
}
]
},
- "k": {
+ "highlight": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "notebook": {
+ "id": {
+ "type": "string"
+ },
+ "includeDocInfo": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "reqId": {
+ "index": {
"anyOf": [
{
- "$ref": "#/$defs/JSONValue"
+ "type": "number"
},
{
"type": "null"
}
]
},
- "type": {
+ "isBacklink": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "LocalGraphResult": {
- "type": "object",
- "properties": {
- "box": {
- "type": "string"
- },
- "conf": {
- "$ref": "#/$defs/LocalGraphConf"
},
- "id": {
- "type": "string"
+ "mode": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "links": {
+ "notebook": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/GraphLink"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "string"
},
{
"type": "null"
}
]
},
- "nodes": {
+ "originalRefBlockIDs": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/GraphNode"
- },
- {
- "type": "null"
- }
- ]
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
}
},
{
@@ -18023,135 +20977,70 @@
}
]
},
- "reqId": {
- "$ref": "#/$defs/JSONValue"
- }
- },
- "required": [
- "box",
- "conf",
- "id",
- "links",
- "nodes",
- "reqId"
- ],
- "additionalProperties": false
- },
- "LockScreenRequestInput": {
- "type": "object",
- "properties": {
- "lockScreenMode": {
- "type": "number"
- }
- },
- "required": [
- "lockScreenMode"
- ],
- "additionalProperties": false
- },
- "Login2faEnvelope": {
- "type": "object",
- "properties": {
- "code": {
- "type": "integer"
+ "query": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "data": {
+ "queryMethod": {
"anyOf": [
{
- "type": "object",
- "properties": {
- "code": {
- "type": "number"
- },
- "msg": {
- "type": "string"
- }
- },
- "required": [
- "code",
- "msg"
- ],
- "additionalProperties": {
- "$ref": "#/$defs/JSONValue"
- }
+ "type": "number"
},
{
"type": "null"
}
]
},
- "msg": {
- "type": "string"
- }
- },
- "required": [
- "code",
- "data",
- "msg"
- ],
- "additionalProperties": false
- },
- "MarkdownHTMLRequestInput": {
- "type": "object",
- "properties": {
- "markdown": {
- "type": "string"
+ "querySubTypes": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SearchSubtypeFilterInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "mode": {
+ "queryTypes": {
"anyOf": [
{
- "type": "string"
+ "type": "object",
+ "additionalProperties": {
+ "type": "boolean"
+ }
},
{
"type": "null"
}
]
- }
- },
- "required": [
- "markdown"
- ],
- "additionalProperties": false
- },
- "MoveBlockRequestInput": {
- "type": "object",
- "properties": {
- "id": {
- "type": "string"
},
- "parentID": {
+ "reqId": {
"anyOf": [
{
- "type": "string"
+ "$ref": "#/$defs/JSONValue"
},
{
"type": "null"
}
]
},
- "previousID": {
+ "size": {
"anyOf": [
{
- "type": "string"
+ "type": "number"
},
{
"type": "null"
}
]
- }
- },
- "required": [
- "id"
- ],
- "additionalProperties": false
- },
- "NetImageAssetsRequestInput": {
- "type": "object",
- "properties": {
- "id": {
- "type": "string"
},
- "url": {
+ "startID": {
"anyOf": [
{
"type": "string"
@@ -18167,287 +21056,125 @@
],
"additionalProperties": false
},
- "NetworkData": {
+ "FileTreeHeadingDocRequestInput": {
"type": "object",
"properties": {
- "proxy": {
+ "previousPath": {
"anyOf": [
{
- "$ref": "#/$defs/NetworkProxy"
+ "type": "string"
},
{
"type": "null"
}
]
- }
- },
- "required": [
- "proxy"
- ],
- "additionalProperties": false
- },
- "NetworkProxy": {
- "type": "object",
- "properties": {
- "host": {
- "type": "string"
},
- "port": {
+ "srcHeadingID": {
"type": "string"
},
- "scheme": {
- "type": "string"
- }
- },
- "required": [
- "host",
- "port",
- "scheme"
- ],
- "additionalProperties": false
- },
- "NetworkProxyInput": {
- "type": "object",
- "properties": {
- "host": {
+ "targetNoteBook": {
"type": "string"
},
- "port": {
- "type": "string"
+ "targetPath": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "scheme": {
- "type": "string"
- }
- },
- "required": [
- "host",
- "port",
- "scheme"
- ],
- "additionalProperties": false
- },
- "NetworkServeRequestInput": {
- "type": "object",
- "properties": {
- "networkServe": {
- "type": "boolean"
- }
- },
- "required": [
- "networkServe"
- ],
- "additionalProperties": false
- },
- "NetworkServeTLSRequestInput": {
- "type": "object",
- "properties": {
- "networkServeTLS": {
- "type": "boolean"
+ "toTop": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
"required": [
- "networkServeTLS"
+ "srcHeadingID",
+ "targetNoteBook"
],
"additionalProperties": false
},
- "Notebook": {
+ "FileTreeIDRequestInput": {
"type": "object",
"properties": {
- "closed": {
- "type": "boolean"
- },
- "dueFlashcardCount": {
- "type": "integer"
- },
- "encrypted": {
- "type": "boolean"
- },
- "flashcardCount": {
- "type": "integer"
- },
- "icon": {
- "type": "string"
- },
"id": {
"type": "string"
- },
- "name": {
- "type": "string"
- },
- "newFlashcardCount": {
- "type": "integer"
- },
- "sort": {
- "type": "integer"
- },
- "sortMode": {
- "type": "integer"
- },
- "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"
+ "id"
],
"additionalProperties": false
},
- "NotebookConf": {
+ "FileTreeListData": {
"type": "object",
"properties": {
- "boxCrypt": {
- "anyOf": [
- {
- "$ref": "#/$defs/NotebookEncryption"
- },
- {
- "type": "null"
- }
- ]
- },
- "closed": {
- "type": "boolean"
- },
- "dailyNoteSavePath": {
- "type": "string"
- },
- "dailyNoteTemplatePath": {
- "type": "string"
- },
- "docCreateSaveBox": {
- "type": "string"
- },
- "docCreateSavePath": {
- "type": "string"
- },
- "docCreateTemplatePath": {
- "type": "string"
- },
- "encrypted": {
- "type": "boolean"
- },
- "icon": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "refCreateSaveBox": {
- "type": "string"
- },
- "refCreateSavePath": {
+ "box": {
"type": "string"
},
- "sort": {
- "type": "integer"
- },
- "sortMode": {
+ "effectiveSortMode": {
"type": "integer"
- }
- },
- "required": [
- "boxCrypt",
- "closed",
- "dailyNoteSavePath",
- "dailyNoteTemplatePath",
- "docCreateSaveBox",
- "docCreateSavePath",
- "docCreateTemplatePath",
- "encrypted",
- "icon",
- "name",
- "refCreateSaveBox",
- "refCreateSavePath",
- "sort",
- "sortMode"
- ],
- "additionalProperties": false
- },
- "NotebookConfData": {
- "type": "object",
- "properties": {
- "box": {
- "type": "string"
},
- "conf": {
+ "files": {
"anyOf": [
{
- "$ref": "#/$defs/NotebookConf"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/FileTreeFile"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
},
- "name": {
+ "path": {
"type": "string"
}
},
"required": [
"box",
- "conf",
- "name"
+ "effectiveSortMode",
+ "files",
+ "path"
],
"additionalProperties": false
},
- "NotebookConfPatchInput": {
+ "FileTreeListItemDocRequestInput": {
"type": "object",
"properties": {
- "boxCrypt": {
+ "previousPath": {
"anyOf": [
{
- "$ref": "#/$defs/NotebookEncryptionPatchInput"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "closed": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
+ "srcListItemID": {
+ "type": "string"
},
- "dailyNoteSavePath": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
+ "targetNoteBook": {
+ "type": "string"
},
- "dailyNoteTemplatePath": {
+ "targetPath": {
"anyOf": [
{
"type": "string"
@@ -18457,17 +21184,27 @@
}
]
},
- "docCreateSaveBox": {
+ "toTop": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
- },
- "docCreateSavePath": {
+ }
+ },
+ "required": [
+ "srcListItemID",
+ "targetNoteBook"
+ ],
+ "additionalProperties": false
+ },
+ "FileTreeListRequestInput": {
+ "type": "object",
+ "properties": {
+ "app": {
"anyOf": [
{
"type": "string"
@@ -18477,17 +21214,17 @@
}
]
},
- "docCreateTemplatePath": {
+ "flashcard": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "encrypted": {
+ "ignoreMaxListHint": {
"anyOf": [
{
"type": "boolean"
@@ -18497,40 +21234,26 @@
}
]
},
- "icon": {
+ "maxListCount": {
"anyOf": [
{
- "type": "string"
+ "type": "number"
},
{
"type": "null"
}
]
},
- "name": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
+ "notebook": {
+ "type": "string"
},
- "refCreateSaveBox": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
+ "path": {
+ "type": "string"
},
- "refCreateSavePath": {
+ "showHidden": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
@@ -18540,73 +21263,98 @@
"sort": {
"anyOf": [
{
- "type": "integer"
+ "type": "number"
},
{
"type": "null"
}
]
- },
- "sortMode": {
+ }
+ },
+ "required": [
+ "notebook",
+ "path"
+ ],
+ "additionalProperties": false
+ },
+ "FileTreeMoveIDsRequestInput": {
+ "type": "object",
+ "properties": {
+ "callback": {
"anyOf": [
{
- "type": "integer"
+ "$ref": "#/$defs/JSONValue"
},
{
"type": "null"
}
]
+ },
+ "fromIDs": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "toID": {
+ "type": "string"
}
},
+ "required": [
+ "fromIDs",
+ "toID"
+ ],
"additionalProperties": false
},
- "NotebookCryptoAutoLockRequestInput": {
+ "FileTreeMoveRequestInput": {
"type": "object",
"properties": {
- "autoLockMinutes": {
- "type": "number"
- }
- },
+ "callback": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/JSONValue"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "fromPaths": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "toNotebook": {
+ "type": "string"
+ },
+ "toPath": {
+ "type": "string"
+ }
+ },
"required": [
- "autoLockMinutes"
+ "fromPaths",
+ "toNotebook",
+ "toPath"
],
"additionalProperties": false
},
- "NotebookCryptoBackupData": {
+ "FileTreeNotebookRequestInput": {
"type": "object",
"properties": {
- "file": {
+ "notebook": {
"type": "string"
}
},
"required": [
- "file"
+ "notebook"
],
"additionalProperties": false
},
- "NotebookEncryption": {
+ "FileTreeOptionalIDRequestInput": {
"type": "object",
"properties": {
- "createdAt": {
- "type": "integer"
- },
- "metadata": {
- "type": "string"
- },
- "spec": {
- "type": "integer"
- },
- "wrapNonce": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "wrappedDEK": {
+ "id": {
"anyOf": [
{
"type": "string"
@@ -18617,111 +21365,76 @@
]
}
},
- "required": [
- "createdAt",
- "spec",
- "wrapNonce",
- "wrappedDEK"
- ],
"additionalProperties": false
},
- "NotebookEncryptionPatchInput": {
+ "FileTreeOptionalPathRequestInput": {
"type": "object",
"properties": {
- "createdAt": {
- "anyOf": [
- {
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
- },
- "metadata": {
- "anyOf": [
- {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "array",
- "items": {
- "type": "integer"
- }
- }
- ]
- },
- {
- "type": "null"
- }
- ]
- },
- "spec": {
+ "notebook": {
"anyOf": [
{
- "type": "integer"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "wrapNonce": {
+ "path": {
"anyOf": [
{
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "array",
- "items": {
- "type": "integer"
- }
- }
- ]
+ "type": "string"
},
{
"type": "null"
}
]
+ }
+ },
+ "additionalProperties": false
+ },
+ "FileTreePathRequestInput": {
+ "type": "object",
+ "properties": {
+ "notebook": {
+ "type": "string"
},
- "wrappedDEK": {
- "anyOf": [
- {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "array",
- "items": {
- "type": "integer"
- }
- }
- ]
- },
- {
- "type": "null"
- }
- ]
+ "path": {
+ "type": "string"
}
},
+ "required": [
+ "notebook",
+ "path"
+ ],
"additionalProperties": false
},
- "NotebookHistoryData": {
+ "FileTreePathsRequestInput": {
"type": "object",
"properties": {
- "histories": {
+ "paths": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ },
+ "required": [
+ "paths"
+ ],
+ "additionalProperties": false
+ },
+ "FileTreePublishData": {
+ "type": "object",
+ "properties": {
+ "publishAccess": {
"anyOf": [
{
"type": "array",
"items": {
"anyOf": [
{
- "$ref": "#/$defs/History"
+ "$ref": "#/$defs/FileTreePublishItem"
},
{
"type": "null"
@@ -18736,119 +21449,172 @@
}
},
"required": [
- "histories"
+ "publishAccess"
],
"additionalProperties": false
},
- "NotebookIDRequestInput": {
+ "FileTreePublishIDsRequestInput": {
"type": "object",
"properties": {
- "notebook": {
- "type": "string"
+ "ids": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
}
},
"required": [
- "notebook"
+ "ids"
],
"additionalProperties": false
},
- "NotebookInfo": {
+ "FileTreePublishItem": {
"type": "object",
"properties": {
- "ctime": {
- "type": "integer"
- },
- "docCount": {
- "type": "integer"
- },
- "hCtime": {
- "type": "string"
- },
- "hMtime": {
- "type": "string"
- },
- "hSize": {
- "type": "string"
+ "disable": {
+ "type": "boolean"
},
"id": {
"type": "string"
},
- "mtime": {
- "type": "integer"
- },
- "name": {
+ "password": {
"type": "string"
},
- "size": {
- "type": "integer"
+ "visible": {
+ "type": "boolean"
}
},
"required": [
- "ctime",
- "docCount",
- "hCtime",
- "hMtime",
- "hSize",
+ "disable",
"id",
- "mtime",
- "name",
- "size"
+ "password",
+ "visible"
],
"additionalProperties": false
},
- "NotebookInfoData": {
+ "FileTreeRenameIDRequestInput": {
"type": "object",
"properties": {
- "boxInfo": {
+ "id": {
"anyOf": [
{
- "$ref": "#/$defs/NotebookInfo"
+ "type": "string"
},
{
"type": "null"
}
]
+ },
+ "title": {
+ "type": "string"
}
},
"required": [
- "boxInfo"
+ "title"
],
"additionalProperties": false
},
- "NotebookPasswordRequestInput": {
+ "FileTreeRenameRequestInput": {
"type": "object",
"properties": {
- "password": {
+ "notebook": {
+ "type": "string"
+ },
+ "path": {
+ "type": "string"
+ },
+ "title": {
"type": "string"
}
},
"required": [
- "password"
+ "notebook",
+ "path",
+ "title"
],
"additionalProperties": false
},
- "NotificationData": {
+ "FileTreeReorderData": {
"type": "object",
"properties": {
- "id": {
+ "changed": {
+ "type": "boolean"
+ },
+ "conflict": {
+ "type": "boolean"
+ },
+ "notebook": {
+ "type": "string"
+ },
+ "parentPath": {
"type": "string"
}
},
"required": [
- "id"
+ "changed"
],
"additionalProperties": false
},
- "NotificationRequestInput": {
+ "FileTreeReorderRequestInput": {
"type": "object",
"properties": {
- "msg": {
- "type": "string"
+ "position": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "timeout": {
+ "preview": {
"anyOf": [
{
- "type": "number"
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "removeSorts": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "respectSort": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "sourceIDs": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "targetID": {
+ "anyOf": [
+ {
+ "type": "string"
},
{
"type": "null"
@@ -18856,61 +21622,126 @@
]
}
},
- "required": [
- "msg"
- ],
"additionalProperties": false
},
- "ObsidianAnalysisRequestInput": {
+ "FileTreeSavePathData": {
"type": "object",
"properties": {
- "localPath": {
+ "box": {
+ "type": "string"
+ },
+ "path": {
"type": "string"
}
},
"required": [
- "localPath"
+ "box",
+ "path"
],
"additionalProperties": false
},
- "ObsidianImportRequestInput": {
+ "FileTreeSearchDoc": {
"type": "object",
"properties": {
- "notebookName": {
+ "alias": {
"type": "string"
},
- "taskID": {
+ "box": {
+ "type": "string"
+ },
+ "boxIcon": {
+ "type": "string"
+ },
+ "dueFlashcardCount": {
+ "type": "string"
+ },
+ "flashcardCount": {
+ "type": "string"
+ },
+ "hPath": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "newFlashcardCount": {
+ "type": "string"
+ },
+ "path": {
"type": "string"
}
},
"required": [
- "notebookName",
- "taskID"
+ "box",
+ "boxIcon",
+ "hPath",
+ "path"
],
"additionalProperties": false
},
- "ObsidianTaskRequestInput": {
+ "FileTreeSearchRequestInput": {
"type": "object",
"properties": {
- "taskID": {
+ "excludeIDs": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "flashcard": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "k": {
"type": "string"
}
},
"required": [
- "taskID"
+ "k"
],
"additionalProperties": false
},
- "ObsidianVaultAnalysis": {
+ "FileTreeSetPublishRequestInput": {
"type": "object",
"properties": {
- "ambiguousCount": {
- "type": "integer"
+ "disable": {
+ "type": "boolean"
},
- "blockIDCount": {
- "type": "integer"
+ "id": {
+ "type": "string"
},
- "blockingErrors": {
+ "password": {
+ "type": "string"
+ },
+ "visible": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "disable",
+ "id",
+ "password",
+ "visible"
+ ],
+ "additionalProperties": false
+ },
+ "FileTreeSetSortData": {
+ "type": "object",
+ "properties": {
+ "docIDs": {
"anyOf": [
{
"type": "array",
@@ -18923,61 +21754,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": {
+ "notebookIDs": {
"anyOf": [
{
"type": "array",
@@ -18989,145 +21766,125 @@
"type": "null"
}
]
- },
- "wikiLinkCount": {
- "type": "integer"
}
},
"required": [
- "ambiguousCount",
- "blockIDCount",
- "blockingErrors",
- "commentCount",
- "embedCount",
- "footnoteCount",
- "importableAssetCount",
- "importableAssetSize",
- "markdownCount",
- "missingCount",
- "nameAdjustmentCount",
- "notebookName",
- "skippedHiddenCount",
- "skippedLinkCount",
- "skippedNestedVaultCount",
- "skippedSpecialCount",
- "syntheticParentCount",
- "unreferencedFileCount",
- "unsupportedCount",
- "vaultName",
- "vaultPath",
- "warnings",
- "wikiLinkCount"
+ "docIDs",
+ "notebookIDs"
],
"additionalProperties": false
},
- "ObsidianVaultImportResult": {
+ "FileTreeSetSortRequestInput": {
"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": {
- "type": "string"
- },
- "notebookName": {
- "type": "string"
- },
- "preservedCommentCount": {
- "type": "integer"
- },
- "preservedUnresolvedCount": {
- "type": "integer"
- },
- "skippedPathCount": {
- "type": "integer"
- },
- "syntheticParentCount": {
- "type": "integer"
+ "docSorts": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/FileTreeSortItemInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "unreferencedFileCount": {
- "type": "integer"
+ "notebookSorts": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/FileTreeSortItemInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
- "required": [
- "convertedEmbedCount",
- "convertedFootnoteCount",
- "convertedLinkCount",
- "importedAttachmentCount",
- "incomplete",
- "markdownCount",
- "nameAdjustmentCount",
- "notebookID",
- "notebookName",
- "preservedCommentCount",
- "preservedUnresolvedCount",
- "skippedPathCount",
- "syntheticParentCount",
- "unreferencedFileCount"
- ],
"additionalProperties": false
},
- "ObsidianVaultTask": {
+ "FileTreeSortItemInput": {
"type": "object",
"properties": {
- "analysis": {
- "$ref": "#/$defs/ObsidianVaultAnalysis"
- },
- "detail": {
- "type": "string"
- },
- "error": {
- "type": "string"
+ "id": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "message": {
+ "sort": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "FileTreeSortModeData": {
+ "type": "object",
+ "properties": {
+ "box": {
"type": "string"
},
- "progress": {
+ "effectiveSortMode": {
"type": "integer"
},
- "result": {
- "$ref": "#/$defs/ObsidianVaultImportResult"
- },
- "state": {
+ "id": {
"type": "string"
},
- "taskID": {
+ "path": {
"type": "string"
+ },
+ "sortMode": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
"required": [
- "message",
- "progress",
- "state",
- "taskID"
+ "box",
+ "effectiveSortMode",
+ "id",
+ "path",
+ "sortMode"
],
"additionalProperties": false
},
- "OpenNotebookRequestInput": {
+ "FileTreeSortModeRequestInput": {
"type": "object",
"properties": {
- "app": {
+ "id": {
"anyOf": [
{
"type": "string"
@@ -19137,16 +21894,23 @@
}
]
},
- "notebook": {
- "type": "string"
+ "sortMode": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
"required": [
- "notebook"
+ "sortMode"
],
"additionalProperties": false
},
- "OpenRepoSnapshotFileRequestInput": {
+ "FileTreeTrimIDRequestInput": {
"type": "object",
"properties": {
"id": {
@@ -19158,169 +21922,100 @@
],
"additionalProperties": false
},
- "OrderedListStartData": {
- "type": "object",
- "properties": {
- "found": {
- "type": "boolean"
- },
- "start": {
- "type": "integer"
- }
- },
- "required": [
- "found",
- "start"
- ],
- "additionalProperties": false
- },
- "OutlineRequestInput": {
+ "FindReplaceRequestInput": {
"type": "object",
"properties": {
- "id": {
+ "groupBy": {
"anyOf": [
{
- "type": "string"
+ "type": "number"
},
{
"type": "null"
}
]
},
- "notebook": {
+ "ids": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "k": {
+ "type": "string"
+ },
+ "method": {
"anyOf": [
{
- "type": "string"
+ "type": "number"
},
{
"type": "null"
}
]
},
- "preview": {
+ "orderBy": {
"anyOf": [
{
- "type": "boolean"
+ "type": "number"
},
{
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "OutlineStorageRequestInput": {
- "type": "object",
- "properties": {
- "docID": {
- "type": "string"
- }
- },
- "required": [
- "docID"
- ],
- "additionalProperties": false
- },
- "OutlineStorageSetRequestInput": {
- "type": "object",
- "properties": {
- "docID": {
- "type": "string"
- },
- "val": {
- "type": "object",
- "additionalProperties": {
- "$ref": "#/$defs/JSONValue"
- }
- }
- },
- "required": [
- "docID",
- "val"
- ],
- "additionalProperties": false
- },
- "PandocData": {
- "type": "object",
- "properties": {
- "path": {
- "type": "string"
- }
- },
- "required": [
- "path"
- ],
- "additionalProperties": false
- },
- "PandocRequestInput": {
- "type": "object",
- "properties": {
- "args": {
- "type": "array",
- "items": {
- "type": "string"
- }
},
- "dir": {
+ "page": {
"anyOf": [
{
- "type": "string"
+ "type": "number"
},
{
"type": "null"
}
]
- }
- },
- "required": [
- "args"
- ],
- "additionalProperties": false
- },
- "PerformSyncRequestInput": {
- "type": "object",
- "properties": {
- "mobileSwitch": {
+ },
+ "pageSize": {
"anyOf": [
{
- "type": "boolean"
+ "type": "number"
},
{
"type": "null"
}
]
},
- "upload": {
- "type": "boolean"
- }
- },
- "additionalProperties": false
- },
- "Petal": {
- "type": "object",
- "properties": {
- "css": {
- "type": "string"
- },
- "disabledInPublish": {
- "type": "boolean"
+ "paths": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "disallowInstall": {
- "type": "boolean"
+ "query": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "displayName": {
+ "r": {
"type": "string"
},
- "enabled": {
- "type": "boolean"
- },
- "i18n": {
+ "replaceTypes": {
"anyOf": [
{
"type": "object",
"additionalProperties": {
- "$ref": "#/$defs/JSONValue"
+ "type": "boolean"
}
},
{
@@ -19328,125 +22023,133 @@
}
]
},
- "incompatible": {
- "type": "boolean"
- },
- "js": {
- "type": "string"
- },
- "kernel": {
- "$ref": "#/$defs/KernelPetal"
- },
- "name": {
- "type": "string"
- },
- "userDisabledInPublish": {
- "type": "boolean"
+ "subTypes": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SearchSubtypeFilterInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "version": {
- "type": "string"
+ "types": {
+ "anyOf": [
+ {
+ "type": "object",
+ "additionalProperties": {
+ "type": "boolean"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
"required": [
- "css",
- "disabledInPublish",
- "disallowInstall",
- "displayName",
- "enabled",
- "i18n",
- "incompatible",
- "js",
- "kernel",
- "name",
- "userDisabledInPublish",
- "version"
+ "ids",
+ "k",
+ "r"
],
"additionalProperties": false
},
- "PinnedDoc": {
+ "FullBlockInfo": {
"type": "object",
"properties": {
- "childrenSortMode": {
- "anyOf": [
- {
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
- },
- "icon": {
+ "box": {
"type": "string"
},
- "id": {
+ "path": {
"type": "string"
},
- "name": {
+ "rootChildID": {
"type": "string"
},
- "notebook": {
+ "rootID": {
"type": "string"
},
- "path": {
+ "rootIcon": {
"type": "string"
},
- "subFileCount": {
- "type": "integer"
+ "rootTitle": {
+ "type": "string"
},
- "unavailable": {
+ "rootTitleEmpty": {
"type": "boolean"
}
},
"required": [
- "childrenSortMode",
- "icon",
- "id",
- "name",
- "notebook",
+ "box",
"path",
- "subFileCount",
- "unavailable"
+ "rootChildID",
+ "rootID",
+ "rootIcon",
+ "rootTitle",
+ "rootTitleEmpty"
],
"additionalProperties": false
},
- "PluginRPCError": {
+ "FullTextSearchBlockData": {
"type": "object",
"properties": {
- "code": {
+ "blocks": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SearchBlock"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "docMode": {
+ "type": "boolean"
+ },
+ "matchedBlockCount": {
"type": "integer"
},
- "data": {
- "$ref": "#/$defs/JSONValue"
+ "matchedRootCount": {
+ "type": "integer"
},
- "message": {
- "type": "string"
+ "pageCount": {
+ "type": "integer"
}
},
"required": [
- "code",
- "message"
+ "blocks",
+ "docMode",
+ "matchedBlockCount",
+ "matchedRootCount",
+ "pageCount"
],
"additionalProperties": false
},
- "PluginRPCFailure": {
+ "FullTextSearchBlockRequestInput": {
"type": "object",
"properties": {
- "error": {
+ "groupBy": {
"anyOf": [
{
- "$ref": "#/$defs/PluginRPCError"
+ "type": "number"
},
{
"type": "null"
}
]
},
- "id": {
+ "method": {
"anyOf": [
- {
- "type": "string"
- },
{
"type": "number"
},
@@ -19455,76 +22158,38 @@
}
]
},
- "jsonrpc": {
- "type": "string",
- "enum": [
- "2.0"
- ]
- }
- },
- "required": [
- "error",
- "id",
- "jsonrpc"
- ],
- "additionalProperties": false
- },
- "PluginRPCMethod": {
- "type": "object",
- "properties": {
- "descriptions": {
+ "notebook": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "type": "string"
},
{
"type": "null"
}
]
},
- "name": {
- "type": "string"
- }
- },
- "required": [
- "descriptions",
- "name"
- ],
- "additionalProperties": false
- },
- "PluginRPCNotification": {
- "type": "object",
- "properties": {
- "jsonrpc": {
- "type": "string",
- "enum": [
- "2.0"
+ "orderBy": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
]
},
- "method": {
- "type": "string"
- },
- "params": {
- "$ref": "#/$defs/JSONValue"
- }
- },
- "required": [
- "jsonrpc",
- "method"
- ],
- "additionalProperties": false
- },
- "PluginRPCRequestFieldsInput": {
- "type": "object",
- "properties": {
- "id": {
+ "page": {
"anyOf": [
{
- "type": "string"
+ "type": "number"
},
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "pageSize": {
+ "anyOf": [
{
"type": "number"
},
@@ -19533,32 +22198,56 @@
}
]
},
- "jsonrpc": {
- "type": "string",
- "enum": [
- "2.0"
+ "paths": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
]
},
- "method": {
- "type": "string"
+ "query": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "params": {
+ "searchHPath": {
"anyOf": [
{
- "anyOf": [
- {
- "type": "array",
- "items": {
- "$ref": "#/$defs/JSONValue"
- }
- },
- {
- "type": "object",
- "additionalProperties": {
- "$ref": "#/$defs/JSONValue"
- }
- }
- ]
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "subTypes": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SearchSubtypeFilterInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "types": {
+ "anyOf": [
+ {
+ "type": "object",
+ "additionalProperties": {
+ "type": "boolean"
+ }
},
{
"type": "null"
@@ -19566,97 +22255,84 @@
]
}
},
- "required": [
- "jsonrpc",
- "method"
- ],
"additionalProperties": false
},
- "PluginRPCSuccess": {
+ "GetAttributeViewAddingBlockDefaultValuesRequestInput": {
"type": "object",
"properties": {
- "id": {
+ "addingBlockID": {
"anyOf": [
{
"type": "string"
},
{
- "type": "number"
+ "type": "null"
+ }
+ ]
+ },
+ "avID": {
+ "type": "string"
+ },
+ "blockID": {
+ "anyOf": [
+ {
+ "type": "string"
},
{
"type": "null"
}
]
},
- "jsonrpc": {
- "type": "string",
- "enum": [
- "2.0"
+ "groupID": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
]
},
- "result": {
- "$ref": "#/$defs/JSONValue"
- }
- },
- "required": [
- "id",
- "jsonrpc",
- "result"
- ],
- "additionalProperties": false
- },
- "PrepareRichTextRequestInput": {
- "type": "object",
- "properties": {
- "assets": {
- "type": "array",
- "items": {
- "$ref": "#/$defs/RichClipboardAssetInput"
- }
- }
- },
- "required": [
- "assets"
- ],
- "additionalProperties": false
- },
- "PrependBlockRequestInput": {
- "type": "object",
- "properties": {
- "data": {
- "type": "string"
- },
- "dataType": {
- "type": "string"
+ "previousID": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "parentID": {
- "type": "string"
+ "viewID": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
"required": [
- "data",
- "dataType",
- "parentID"
+ "avID"
],
"additionalProperties": false
},
- "ProcessPDFRequestInput": {
+ "GetAttributeViewBacklinksRequestInput": {
"type": "object",
"properties": {
- "id": {
- "type": "string"
- },
- "merge": {
+ "avID": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "mergeContentHeadingMode": {
+ "id": {
"anyOf": [
{
"type": "string"
@@ -19666,7 +22342,7 @@
}
]
},
- "mergeDocHeadingMode": {
+ "itemID": {
"anyOf": [
{
"type": "string"
@@ -19676,120 +22352,93 @@
}
]
},
- "path": {
- "type": "string"
- },
- "removeAssets": {
- "type": "boolean"
- },
- "watermark": {
- "type": "boolean"
+ "valueID": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
- "required": [
- "id",
- "path",
- "removeAssets",
- "watermark"
- ],
"additionalProperties": false
},
- "PublishedBlockInfo": {
+ "GetAttributeViewBoundBlockIDsByItemIDsRequestInput": {
"type": "object",
"properties": {
- "publishAccessRequired": {
- "type": "boolean",
- "enum": [
- true
- ]
- },
- "rootID": {
- "type": "string"
- },
- "rootIcon": {
- "type": "string"
- },
- "rootTitle": {
+ "avID": {
"type": "string"
},
- "rootTitleEmpty": {
- "type": "boolean"
+ "itemIDs": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
}
},
"required": [
- "publishAccessRequired",
- "rootID",
- "rootIcon",
- "rootTitle",
- "rootTitleEmpty"
+ "avID",
+ "itemIDs"
],
"additionalProperties": false
},
- "PutFileRequestInput": {
+ "GetAttributeViewFieldViewsRequestInput": {
"type": "object",
"properties": {
- "app": {
- "type": "string"
- },
- "file": {
- "type": "string",
- "format": "binary"
- },
- "isDir": {
- "type": "string"
- },
- "modTime": {
+ "avID": {
"type": "string"
},
- "path": {
+ "keyID": {
"type": "string"
}
},
+ "required": [
+ "avID",
+ "keyID"
+ ],
"additionalProperties": false
},
- "ReadDirectoryRequestInput": {
+ "GetAttributeViewFilterSortRequestInput": {
"type": "object",
"properties": {
- "path": {
+ "blockID": {
+ "type": "string"
+ },
+ "id": {
"type": "string"
}
},
"required": [
- "path"
+ "blockID",
+ "id"
],
"additionalProperties": false
},
- "RecentDoc": {
+ "GetAttributeViewItemIDsByBoundIDsRequestInput": {
"type": "object",
"properties": {
- "closedAt": {
- "type": "integer"
- },
- "icon": {
- "type": "string"
- },
- "openAt": {
- "type": "integer"
- },
- "rootID": {
- "type": "string"
- },
- "title": {
+ "avID": {
"type": "string"
},
- "viewedAt": {
- "type": "integer"
+ "blockIDs": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
}
},
"required": [
- "rootID"
+ "avID",
+ "blockIDs"
],
"additionalProperties": false
},
- "RecentDocUpdateRequestInput": {
+ "GetAttributeViewItemStatusesRequestInput": {
"type": "object",
"properties": {
- "rootID": {
+ "blockID": {
"anyOf": [
{
"type": "string"
@@ -19798,14 +22447,17 @@
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "RecentDocsRequestInput": {
- "type": "object",
- "properties": {
- "sortBy": {
+ },
+ "id": {
+ "type": "string"
+ },
+ "itemIDs": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "query": {
"anyOf": [
{
"type": "string"
@@ -19814,20 +22466,11 @@
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "RecentDocsUpdateRequestInput": {
- "type": "object",
- "properties": {
- "rootIDs": {
+ },
+ "viewID": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "type": "string"
},
{
"type": "null"
@@ -19835,79 +22478,80 @@
]
}
},
+ "required": [
+ "id",
+ "itemIDs"
+ ],
"additionalProperties": false
},
- "RefDefs": {
+ "GetAttributeViewKeysByAvIDRequestInput": {
"type": "object",
"properties": {
- "defIDs": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- {
- "type": "null"
- }
- ]
- },
- "refID": {
+ "avID": {
"type": "string"
}
},
"required": [
- "defIDs",
- "refID"
+ "avID"
],
"additionalProperties": false
},
- "RefDefsData": {
+ "GetAttributeViewKeysByIDRequestInput": {
"type": "object",
"properties": {
- "refDefs": {
+ "avID": {
+ "type": "string"
+ },
+ "keyIDs": {
"type": "array",
"items": {
- "$ref": "#/$defs/RefDefs"
+ "type": "string"
}
}
},
"required": [
- "refDefs"
+ "avID",
+ "keyIDs"
],
"additionalProperties": false
},
- "RefIDsData": {
+ "GetAttributeViewKeysRequestInput": {
"type": "object",
"properties": {
- "originalRefBlockIDs": {
+ "avID": {
"anyOf": [
{
- "type": "object",
- "additionalProperties": {
- "type": "string"
- }
+ "type": "string"
},
{
"type": "null"
}
]
},
- "refDefs": {
+ "id": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/RefDefs"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "itemID": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "valueID": {
+ "anyOf": [
+ {
+ "type": "string"
},
{
"type": "null"
@@ -19915,16 +22559,21 @@
]
}
},
- "required": [
- "originalRefBlockIDs",
- "refDefs"
- ],
"additionalProperties": false
},
- "RefIDsRequestInput": {
+ "GetAttributeViewPasteRowsRequestInput": {
"type": "object",
"properties": {
- "id": {
+ "avID": {
+ "type": "string"
+ },
+ "blockID": {
+ "type": "string"
+ },
+ "count": {
+ "type": "number"
+ },
+ "groupID": {
"anyOf": [
{
"type": "string"
@@ -19934,20 +22583,20 @@
}
]
},
- "ids": {
+ "query": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "type": "string"
},
{
"type": "null"
}
]
},
- "notebook": {
+ "startItemID": {
+ "type": "string"
+ },
+ "viewID": {
"anyOf": [
{
"type": "string"
@@ -19958,15 +22607,34 @@
]
}
},
+ "required": [
+ "avID",
+ "blockID",
+ "count",
+ "startItemID"
+ ],
"additionalProperties": false
},
- "RefTextQueryRequestInput": {
+ "GetAttributeViewPrimaryKeyValuesRequestInput": {
"type": "object",
"properties": {
- "anchor": {
+ "blockIDs": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "id": {
"type": "string"
},
- "notebook": {
+ "keyword": {
"anyOf": [
{
"type": "string"
@@ -19975,18 +22643,26 @@
"type": "null"
}
]
- }
- },
- "required": [
- "anchor"
- ],
- "additionalProperties": false
- },
- "RefreshBacklinkRequestInput": {
- "type": "object",
- "properties": {
- "id": {
- "type": "string"
+ },
+ "page": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "pageSize": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
"required": [
@@ -19994,46 +22670,180 @@
],
"additionalProperties": false
},
- "RemoveBookmarkRequestInput": {
+ "GetAttributeViewRelationCandidatesRequestInput": {
"type": "object",
"properties": {
- "bookmark": {
- "type": "string"
- }
- },
- "required": [
- "bookmark"
- ],
+ "avID": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "id": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "keyID": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "keyword": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "page": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "pageSize": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "selectedBlockIDs": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
"additionalProperties": false
},
- "RemoveCloudRepoTagSnapshotRequestInput": {
+ "GetAttributeViewRequestInput": {
"type": "object",
"properties": {
- "tag": {
+ "id": {
"type": "string"
}
},
"required": [
- "tag"
+ "id"
],
"additionalProperties": false
},
- "RemoveCriterionRequestInput": {
+ "GetAttributeViewRowSortRequestInput": {
"type": "object",
"properties": {
- "name": {
- "type": "string"
+ "avID": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "blockID": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "groupID": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "itemIDs": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "nextID": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "previousID": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "viewID": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
- "required": [
- "name"
- ],
"additionalProperties": false
},
- "RemoveFileRequestInput": {
+ "GetAttributeViewSearchTargetRequestInput": {
"type": "object",
"properties": {
- "app": {
+ "id": {
"anyOf": [
{
"type": "string"
@@ -20043,191 +22853,247 @@
}
]
},
- "path": {
- "type": "string"
+ "keywords": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
- "required": [
- "path"
- ],
"additionalProperties": false
},
- "RemoveRepoTagSnapshotRequestInput": {
+ "GetBazaarIconRequestInput": {
"type": "object",
"properties": {
- "tag": {
- "type": "string"
+ "keyword": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
- "required": [
- "tag"
- ],
"additionalProperties": false
},
- "RemoveShorthandsRequestInput": {
+ "GetBazaarPackageREADMERequestInput": {
"type": "object",
"properties": {
- "ids": {
- "type": "array",
- "items": {
- "type": "string"
- }
+ "packageType": {
+ "type": "string"
+ },
+ "repoHash": {
+ "type": "string"
+ },
+ "repoURL": {
+ "type": "string"
}
},
"required": [
- "ids"
+ "packageType",
+ "repoHash",
+ "repoURL"
],
"additionalProperties": false
},
- "RemoveTagRequestInput": {
+ "GetBazaarPackageRatingRequestInput": {
"type": "object",
"properties": {
- "label": {
+ "packageName": {
+ "type": "string"
+ },
+ "packageType": {
"type": "string"
}
},
"required": [
- "label"
+ "packageName",
+ "packageType"
],
"additionalProperties": false
},
- "RenameAssetRequestInput": {
+ "GetBazaarPackageRatingsRequestInput": {
"type": "object",
"properties": {
- "newName": {
- "type": "string"
+ "packageNames": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
- "oldPath": {
+ "packageType": {
"type": "string"
}
},
"required": [
- "newName",
- "oldPath"
+ "packageNames",
+ "packageType"
],
"additionalProperties": false
},
- "RenameBookmarkRequestInput": {
+ "GetBazaarPackageRequestInput": {
"type": "object",
"properties": {
- "newBookmark": {
+ "frontend": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "packageName": {
"type": "string"
},
- "oldBookmark": {
+ "packageType": {
"type": "string"
}
},
"required": [
- "newBookmark",
- "oldBookmark"
+ "packageName",
+ "packageType"
],
"additionalProperties": false
},
- "RenameFileRequestInput": {
+ "GetBazaarPackageUserRatingsRequestInput": {
"type": "object",
"properties": {
- "newPath": {
- "type": "string"
+ "packageNames": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
- "path": {
+ "packageType": {
"type": "string"
}
},
"required": [
- "newPath",
- "path"
+ "packageNames",
+ "packageType"
],
"additionalProperties": false
},
- "RenameNotebookRequestInput": {
+ "GetBazaarPluginRequestInput": {
"type": "object",
"properties": {
- "name": {
+ "frontend": {
"type": "string"
},
- "notebook": {
- "type": "string"
+ "keyword": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
"required": [
- "name",
- "notebook"
+ "frontend"
],
"additionalProperties": false
},
- "RenameRiffDeckRequestInput": {
+ "GetBazaarTemplateRequestInput": {
"type": "object",
"properties": {
- "deckID": {
- "type": "string"
- },
- "name": {
- "type": "string"
+ "keyword": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
- "required": [
- "deckID",
- "name"
- ],
"additionalProperties": false
},
- "RenameTagRequestInput": {
+ "GetBazaarThemeRequestInput": {
"type": "object",
"properties": {
- "newLabel": {
- "type": "string"
+ "frontend": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "oldLabel": {
- "type": "string"
+ "keyword": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
- "required": [
- "newLabel",
- "oldLabel"
- ],
"additionalProperties": false
},
- "RenderSprigRequestInput": {
+ "GetBazaarWidgetRequestInput": {
"type": "object",
"properties": {
- "template": {
- "type": "string"
+ "keyword": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
- "required": [
- "template"
- ],
"additionalProperties": false
},
- "RenderTemplateData": {
+ "GetCloudRepoSnapshotsRequestInput": {
"type": "object",
"properties": {
- "content": {
- "type": "string"
- },
- "docTreePlan": {
- "$ref": "#/$defs/TemplatePlan"
- },
- "path": {
- "type": "string"
+ "page": {
+ "type": "number"
}
},
"required": [
- "content",
- "path"
+ "page"
],
"additionalProperties": false
},
- "RenderTemplateRequestInput": {
+ "GetCurrentAttrViewImagesRequestInput": {
"type": "object",
"properties": {
- "content": {
- "type": "string"
+ "blockID": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
"id": {
"type": "string"
},
- "mode": {
+ "query": {
"anyOf": [
{
"type": "string"
@@ -20237,13 +23103,10 @@
}
]
},
- "path": {
- "type": "string"
- },
- "preview": {
+ "viewID": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
@@ -20252,56 +23115,43 @@
}
},
"required": [
- "id",
- "path"
- ],
- "additionalProperties": false
- },
- "ReorderData": {
- "type": "object",
- "properties": {
- "changed": {
- "type": "boolean"
- },
- "notebook": {
- "type": "string"
- },
- "parentPath": {
- "type": "string"
- }
- },
- "required": [
- "changed"
+ "id"
],
"additionalProperties": false
},
- "ReorderNotebooksRequestInput": {
+ "GetEmbedBlockRequestInput": {
"type": "object",
"properties": {
- "position": {
+ "breadcrumb": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "sourceIDs": {
+ "embedBlockID": {
+ "type": "string"
+ },
+ "headingMode": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "type": "number"
},
{
"type": "null"
}
]
},
- "targetID": {
+ "includeIDs": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "notebook": {
"anyOf": [
{
"type": "string"
@@ -20312,62 +23162,54 @@
]
}
},
+ "required": [
+ "embedBlockID",
+ "includeIDs"
+ ],
"additionalProperties": false
},
- "RepoCloudSnapshotsData": {
+ "GetInstalledIconRequestInput": {
"type": "object",
"properties": {
- "pageCount": {
- "type": "integer"
- },
- "snapshots": {
+ "keyword": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/RepoLog"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "string"
},
{
"type": "null"
}
]
+ }
+ },
+ "additionalProperties": false
+ },
+ "GetInstalledPackageSizeRequestInput": {
+ "type": "object",
+ "properties": {
+ "packageName": {
+ "type": "string"
},
- "totalCount": {
- "type": "integer"
+ "packageType": {
+ "type": "string"
}
},
"required": [
- "pageCount",
- "snapshots",
- "totalCount"
+ "packageName",
+ "packageType"
],
"additionalProperties": false
},
- "RepoCloudTagsData": {
+ "GetInstalledPluginRequestInput": {
"type": "object",
"properties": {
- "snapshots": {
+ "frontend": {
+ "type": "string"
+ },
+ "keyword": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/RepoLog"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "string"
},
{
"type": "null"
@@ -20376,107 +23218,59 @@
}
},
"required": [
- "snapshots"
+ "frontend"
],
"additionalProperties": false
},
- "RepoDiffData": {
+ "GetInstalledTemplateRequestInput": {
"type": "object",
"properties": {
- "addsLeft": {
+ "keyword": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/RepoDiffFile"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "string"
},
{
"type": "null"
}
]
- },
- "left": {
- "anyOf": [
- {
- "$ref": "#/$defs/RepoDiffIndex"
- },
- {
- "type": "null"
- }
- ]
- },
- "removesRight": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/RepoDiffFile"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- {
- "type": "null"
- }
- ]
- },
- "right": {
+ }
+ },
+ "additionalProperties": false
+ },
+ "GetInstalledThemeRequestInput": {
+ "type": "object",
+ "properties": {
+ "frontend": {
"anyOf": [
{
- "$ref": "#/$defs/RepoDiffIndex"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "updatesLeft": {
+ "keyword": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/RepoDiffFile"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "string"
},
{
"type": "null"
}
]
- },
- "updatesRight": {
+ }
+ },
+ "additionalProperties": false
+ },
+ "GetInstalledWidgetRequestInput": {
+ "type": "object",
+ "properties": {
+ "keyword": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/RepoDiffFile"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "string"
},
{
"type": "null"
@@ -20484,349 +23278,221 @@
]
}
},
+ "additionalProperties": false
+ },
+ "GetMirrorDatabaseBlocksRequestInput": {
+ "type": "object",
+ "properties": {
+ "avID": {
+ "type": "string"
+ }
+ },
"required": [
- "addsLeft",
- "left",
- "removesRight",
- "right",
- "updatesLeft",
- "updatesRight"
+ "avID"
],
"additionalProperties": false
},
- "RepoDiffFile": {
+ "GetRepoDocHistoryRequestInput": {
"type": "object",
"properties": {
- "fileID": {
- "type": "string"
- },
- "hPath": {
- "type": "string"
- },
- "hSize": {
- "type": "string"
- },
- "indexID": {
- "type": "string"
- },
- "path": {
- "type": "string"
- },
- "title": {
+ "id": {
"type": "string"
},
- "updated": {
- "type": "integer"
+ "page": {
+ "type": "number"
}
},
"required": [
- "fileID",
- "hSize",
- "indexID",
- "path",
- "title",
- "updated"
+ "id",
+ "page"
],
"additionalProperties": false
},
- "RepoDiffIndex": {
+ "GetRepoFileRequestInput": {
"type": "object",
"properties": {
- "created": {
- "type": "integer"
- },
"id": {
"type": "string"
}
},
"required": [
- "created",
"id"
],
"additionalProperties": false
},
- "RepoDocHistory": {
+ "GetRepoSnapshotsRequestInput": {
"type": "object",
"properties": {
- "fileID": {
- "type": "string"
- },
- "hSize": {
- "type": "string"
- },
- "indexID": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "updated": {
- "type": "integer"
+ "page": {
+ "type": "number"
}
},
"required": [
- "fileID",
- "hSize",
- "indexID",
- "title",
- "updated"
+ "page"
],
"additionalProperties": false
},
- "RepoDocHistoryData": {
+ "GetSnippetRequestInput": {
"type": "object",
"properties": {
- "files": {
+ "enabled": {
+ "type": "number"
+ },
+ "keyword": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/RepoDocHistory"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "string"
},
{
"type": "null"
}
]
},
- "pageCount": {
- "type": "integer"
- },
- "totalCount": {
- "type": "integer"
- }
- },
- "required": [
- "files",
- "pageCount",
- "totalCount"
- ],
- "additionalProperties": false
- },
- "RepoExportData": {
- "type": "object",
- "properties": {
- "path": {
+ "type": {
"type": "string"
}
},
"required": [
- "path"
+ "enabled",
+ "type"
],
"additionalProperties": false
},
- "RepoFile": {
+ "GetTagRequestInput": {
"type": "object",
"properties": {
- "chunks": {
+ "app": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "type": "string"
},
{
"type": "null"
}
]
},
- "id": {
- "type": "string"
- },
- "path": {
- "type": "string"
- },
- "size": {
- "type": "integer"
+ "ignoreMaxListHint": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "updated": {
- "type": "integer"
+ "sort": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
- "required": [
- "chunks",
- "id",
- "path",
- "size",
- "updated"
- ],
"additionalProperties": false
},
- "RepoKeyData": {
+ "GetUpdatedPackageRequestInput": {
"type": "object",
"properties": {
- "key": {
+ "frontend": {
"type": "string"
}
},
"required": [
- "key"
+ "frontend"
],
"additionalProperties": false
},
- "RepoLog": {
+ "GlobalGraphConf": {
"type": "object",
"properties": {
- "count": {
- "type": "integer"
- },
- "created": {
- "type": "integer"
- },
- "files": {
+ "d3": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/RepoFile"
- },
- {
- "type": "null"
- }
- ]
- }
+ "$ref": "#/$defs/GraphD3"
},
{
"type": "null"
}
]
},
- "hCreated": {
- "type": "string"
- },
- "hSize": {
- "type": "string"
- },
- "hTagUpdated": {
- "type": "string"
- },
- "id": {
- "type": "string"
- },
- "memo": {
- "type": "string"
+ "dailyNote": {
+ "type": "boolean"
},
- "size": {
+ "minRefs": {
"type": "integer"
},
- "systemID": {
- "type": "string"
- },
- "systemName": {
- "type": "string"
- },
- "systemOS": {
- "type": "string"
- },
- "tag": {
- "type": "string"
+ "type": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/GraphTypeFilter"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
"required": [
- "count",
- "created",
- "files",
- "hCreated",
- "hSize",
- "hTagUpdated",
- "id",
- "memo",
- "size",
- "systemID",
- "systemName",
- "systemOS",
- "tag"
+ "d3",
+ "dailyNote",
+ "minRefs",
+ "type"
],
"additionalProperties": false
},
- "RepoOpenFileData": {
+ "GlobalGraphRequestInput": {
"type": "object",
"properties": {
- "content": {
- "type": "string"
- },
- "displayInText": {
- "type": "boolean"
- },
- "title": {
- "type": "string"
+ "conf": {
+ "$ref": "#/$defs/GraphConfigurationFieldsInput"
},
- "updated": {
- "type": "integer"
- }
- },
- "required": [
- "content",
- "displayInText",
- "title",
- "updated"
- ],
- "additionalProperties": false
- },
- "RepoSearchData": {
- "type": "object",
- "properties": {
- "files": {
+ "k": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/RepoDiffFile"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "string"
},
{
"type": "null"
}
]
},
- "pageCount": {
- "type": "integer"
- },
- "totalCount": {
- "type": "integer"
+ "reqId": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/JSONValue"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
"required": [
- "files",
- "pageCount",
- "totalCount"
+ "conf"
],
"additionalProperties": false
},
- "RepoSnapshot": {
+ "GlobalGraphResult": {
"type": "object",
"properties": {
- "count": {
- "type": "integer"
+ "box": {
+ "type": "string"
},
- "created": {
- "type": "integer"
+ "conf": {
+ "$ref": "#/$defs/GlobalGraphConf"
},
- "files": {
+ "links": {
"anyOf": [
{
"type": "array",
"items": {
"anyOf": [
{
- "$ref": "#/$defs/RepoFile"
+ "$ref": "#/$defs/GraphLink"
},
{
"type": "null"
@@ -20839,47 +23505,14 @@
}
]
},
- "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": {
- "type": "string"
- },
- "typesCount": {
+ "nodes": {
"anyOf": [
{
"type": "array",
"items": {
"anyOf": [
{
- "$ref": "#/$defs/RepoTypeCount"
+ "$ref": "#/$defs/GraphNode"
},
{
"type": "null"
@@ -20891,185 +23524,88 @@
"type": "null"
}
]
+ },
+ "reqId": {
+ "$ref": "#/$defs/JSONValue"
}
},
"required": [
- "count",
- "created",
- "files",
- "hCreated",
- "hSize",
- "hTagUpdated",
- "id",
- "memo",
- "requiresDownload",
- "size",
- "systemID",
- "systemName",
- "systemOS",
- "tag",
- "typesCount"
+ "box",
+ "conf",
+ "links",
+ "nodes",
+ "reqId"
],
"additionalProperties": false
},
- "RepoSnapshotsData": {
+ "GraphArrows": {
"type": "object",
"properties": {
- "pageCount": {
- "type": "integer"
- },
- "snapshots": {
+ "to": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/RepoSnapshot"
- },
- {
- "type": "null"
- }
- ]
- }
+ "$ref": "#/$defs/GraphArrowsTo"
},
{
"type": "null"
}
]
- },
- "totalCount": {
- "type": "integer"
}
},
"required": [
- "pageCount",
- "snapshots",
- "totalCount"
+ "to"
],
"additionalProperties": false
},
- "RepoTagsData": {
+ "GraphArrowsTo": {
"type": "object",
"properties": {
- "snapshots": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/RepoSnapshot"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- {
- "type": "null"
- }
- ]
+ "enabled": {
+ "type": "boolean"
}
},
"required": [
- "snapshots"
+ "enabled"
],
"additionalProperties": false
},
- "RepoTypeCount": {
+ "GraphConfigurationFieldsInput": {
"type": "object",
"properties": {
- "count": {
- "type": "integer"
- },
- "type": {
- "type": "string"
- }
- },
- "required": [
- "count",
- "type"
- ],
- "additionalProperties": false
- },
- "ResetGraphData": {
- "type": "object",
- "properties": {
- "conf": {
- "$ref": "#/$defs/GlobalGraphConf"
- }
- },
- "required": [
- "conf"
- ],
- "additionalProperties": false
- },
- "ResetLocalGraphData": {
- "type": "object",
- "properties": {
- "conf": {
- "$ref": "#/$defs/LocalGraphConf"
- }
- },
- "required": [
- "conf"
- ],
- "additionalProperties": false
- },
- "ResetRiffCardsRequestInput": {
- "type": "object",
- "properties": {
- "blockIDs": {
+ "d3": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "$ref": "#/$defs/GraphD3Input"
},
{
"type": "null"
}
]
},
- "deckID": {
- "type": "string"
+ "dailyNote": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "id": {
- "type": "string"
+ "minRefs": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
"type": {
- "type": "string"
- }
- },
- "required": [
- "deckID",
- "id",
- "type"
- ],
- "additionalProperties": false
- },
- "ReviewRiffCardRequestInput": {
- "type": "object",
- "properties": {
- "cardID": {
- "type": "string"
- },
- "deckID": {
- "type": "string"
- },
- "rating": {
- "type": "number"
- },
- "reviewedCards": {
"anyOf": [
{
- "type": "array",
- "items": {
- "$ref": "#/$defs/RiffReviewedCardInput"
- }
+ "$ref": "#/$defs/GraphTypeFilterInput"
},
{
"type": "null"
@@ -21077,415 +23613,530 @@
]
}
},
+ "additionalProperties": false
+ },
+ "GraphCorrelation": {
+ "type": "object",
+ "properties": {
+ "reqId": {
+ "$ref": "#/$defs/JSONValue"
+ }
+ },
"required": [
- "cardID",
- "deckID",
- "rating"
+ "reqId"
],
"additionalProperties": false
},
- "RichClipboardAssetInput": {
+ "GraphD3": {
"type": "object",
"properties": {
- "box": {
- "type": "string"
+ "arrow": {
+ "type": "boolean"
},
- "index": {
+ "centerStrength": {
+ "type": "number"
+ },
+ "collideRadius": {
+ "type": "number"
+ },
+ "collideStrength": {
+ "type": "number"
+ },
+ "lineOpacity": {
+ "type": "number"
+ },
+ "linkDistance": {
"type": "integer"
},
- "path": {
- "type": "string"
+ "linkWidth": {
+ "type": "number"
+ },
+ "nodeSize": {
+ "type": "number"
}
},
"required": [
- "index",
- "path"
+ "arrow",
+ "centerStrength",
+ "collideRadius",
+ "collideStrength",
+ "lineOpacity",
+ "linkDistance",
+ "linkWidth",
+ "nodeSize"
],
"additionalProperties": false
},
- "RichClipboardPrepared": {
+ "GraphD3Input": {
"type": "object",
"properties": {
- "assets": {
+ "arrow": {
"anyOf": [
{
- "type": "array",
- "items": {
- "$ref": "#/$defs/RichClipboardPreparedAsset"
- }
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "batch": {
- "type": "string"
+ "centerStrength": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "groups": {
+ "collideRadius": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "type": "number"
},
{
"type": "null"
}
]
- }
- },
- "required": [
- "assets",
- "batch",
- "groups"
- ],
- "additionalProperties": false
- },
- "RichClipboardPreparedAsset": {
- "type": "object",
- "properties": {
- "index": {
- "type": "integer"
},
- "path": {
- "type": "string"
- }
- },
- "required": [
- "index",
- "path"
- ],
- "additionalProperties": false
- },
- "RiffBlockIDsRequestInput": {
- "type": "object",
- "properties": {
- "blockIDs": {
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- },
- "required": [
- "blockIDs"
- ],
- "additionalProperties": false
- },
- "RiffBlocksData": {
- "type": "object",
- "properties": {
- "blocks": {
+ "collideStrength": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/SearchBlock"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "number"
},
{
"type": "null"
}
]
- }
- },
- "required": [
- "blocks"
- ],
- "additionalProperties": false
- },
- "RiffCardDueInput": {
- "type": "object",
- "properties": {
- "due": {
- "type": "string"
},
- "id": {
- "type": "string"
- }
- },
- "required": [
- "due",
- "id"
- ],
- "additionalProperties": false
- },
- "RiffCardRequestInput": {
- "type": "object",
- "properties": {
- "cardID": {
- "type": "string"
+ "lineOpacity": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "deckID": {
- "type": "string"
- }
- },
- "required": [
- "cardID",
- "deckID"
- ],
- "additionalProperties": false
- },
- "RiffCardsData": {
- "type": "object",
- "properties": {
- "blocks": {
+ "linkDistance": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/SearchBlock"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "pageCount": {
- "type": "integer"
+ "linkWidth": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "total": {
- "type": "integer"
+ "nodeSize": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
- "required": [
- "blocks",
- "pageCount",
- "total"
- ],
"additionalProperties": false
},
- "RiffCardsRequestInput": {
+ "GraphLink": {
"type": "object",
"properties": {
- "id": {
- "type": "string"
- },
- "page": {
- "type": "number"
- },
- "pageSize": {
+ "arrows": {
"anyOf": [
{
- "type": "number"
+ "$ref": "#/$defs/GraphArrows"
},
{
"type": "null"
}
]
+ },
+ "from": {
+ "type": "string"
+ },
+ "ref": {
+ "type": "boolean"
+ },
+ "to": {
+ "type": "string"
}
},
"required": [
- "id",
- "page"
+ "arrows",
+ "from",
+ "ref",
+ "to"
],
"additionalProperties": false
},
- "RiffDeck": {
+ "GraphNode": {
"type": "object",
"properties": {
- "created": {
+ "box": {
"type": "string"
},
+ "defs": {
+ "type": "integer"
+ },
"id": {
"type": "string"
},
- "name": {
+ "label": {
"type": "string"
},
- "size": {
+ "path": {
+ "type": "string"
+ },
+ "refs": {
"type": "integer"
},
- "updated": {
+ "size": {
+ "type": "number"
+ },
+ "title": {
+ "type": "string"
+ },
+ "type": {
"type": "string"
}
},
"required": [
- "created",
+ "box",
+ "defs",
"id",
- "name",
+ "label",
+ "path",
+ "refs",
"size",
- "updated"
+ "type"
],
"additionalProperties": false
},
- "RiffDeckCardsRequestInput": {
+ "GraphTypeFilter": {
"type": "object",
"properties": {
- "blockIDs": {
- "type": "array",
- "items": {
- "type": "string"
- }
+ "blockquote": {
+ "type": "boolean"
},
- "deckID": {
- "type": "string"
- }
- },
- "required": [
- "blockIDs",
- "deckID"
- ],
- "additionalProperties": false
- },
- "RiffDeckRequestInput": {
- "type": "object",
- "properties": {
- "deckID": {
- "type": "string"
- }
- },
- "required": [
- "deckID"
- ],
- "additionalProperties": false
- },
- "RiffDueCard": {
- "type": "object",
- "properties": {
- "blockID": {
- "type": "string"
+ "callout": {
+ "type": "boolean"
},
- "cardID": {
- "type": "string"
+ "code": {
+ "type": "boolean"
},
- "deckID": {
- "type": "string"
+ "heading": {
+ "type": "boolean"
},
- "lapses": {
- "type": "integer"
+ "list": {
+ "type": "boolean"
},
- "lastReview": {
- "type": "integer"
+ "listItem": {
+ "type": "boolean"
},
- "nextDues": {
- "anyOf": [
- {
- "type": "object",
- "additionalProperties": {
- "type": "string"
- }
- },
- {
- "type": "null"
- }
- ]
+ "math": {
+ "type": "boolean"
},
- "reps": {
- "type": "integer"
+ "paragraph": {
+ "type": "boolean"
},
- "state": {
- "type": "integer"
+ "super": {
+ "type": "boolean"
+ },
+ "table": {
+ "type": "boolean"
+ },
+ "tag": {
+ "type": "boolean"
}
},
"required": [
- "blockID",
- "cardID",
- "deckID",
- "lapses",
- "lastReview",
- "nextDues",
- "reps",
- "state"
+ "blockquote",
+ "callout",
+ "code",
+ "heading",
+ "list",
+ "listItem",
+ "math",
+ "paragraph",
+ "super",
+ "table",
+ "tag"
],
"additionalProperties": false
},
- "RiffDueCardsData": {
+ "GraphTypeFilterInput": {
"type": "object",
"properties": {
- "cards": {
+ "blockquote": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/RiffDueCard"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "unreviewedCount": {
- "type": "integer"
+ "callout": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "unreviewedNewCardCount": {
- "type": "integer"
+ "code": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "unreviewedOldCardCount": {
- "type": "integer"
+ "heading": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "list": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "listItem": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "math": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "paragraph": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "super": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "table": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "tag": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "HTMLClipboardPreflight": {
+ "type": "object",
+ "properties": {
+ "converted": {
+ "type": "boolean"
+ },
+ "dom": {
+ "type": "string"
+ },
+ "normalizedHTML": {
+ "type": "string"
+ },
+ "useHTML": {
+ "type": "boolean"
}
},
"required": [
- "cards",
- "unreviewedCount",
- "unreviewedNewCardCount",
- "unreviewedOldCardCount"
+ "converted",
+ "useHTML"
],
"additionalProperties": false
},
- "RiffDueCardsRequestInput": {
+ "HTMLClipboardRequestInput": {
"type": "object",
"properties": {
- "deckID": {
+ "dom": {
"type": "string"
},
- "reviewedCards": {
+ "mathML": {
"anyOf": [
{
- "type": "array",
- "items": {
- "$ref": "#/$defs/RiffReviewedCardInput"
- }
+ "type": "string"
},
{
"type": "null"
}
]
- }
- },
- "required": [
- "deckID"
- ],
- "additionalProperties": false
- },
- "RiffNotebookDueCardsRequestInput": {
- "type": "object",
- "properties": {
+ },
"notebook": {
- "type": "string"
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "reviewedCards": {
+ "office": {
"anyOf": [
{
- "type": "array",
- "items": {
- "$ref": "#/$defs/RiffReviewedCardInput"
- }
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "officeMathHTML": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "preflight": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "preparedHTML": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "preserveSourceFormat": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "skipBase64Assets": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "skipInlineSVGAssets": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "skipLocalAssets": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "text": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "wps": {
+ "anyOf": [
+ {
+ "type": "string"
},
{
"type": "null"
@@ -21494,63 +24145,85 @@
}
},
"required": [
- "notebook"
+ "dom"
],
"additionalProperties": false
},
- "RiffReviewedCardInput": {
+ "HTMLData": {
"type": "object",
"properties": {
- "cardID": {
+ "html": {
"type": "string"
}
},
"required": [
- "cardID"
+ "html"
],
"additionalProperties": false
},
- "RiffTreeDueCardsRequestInput": {
+ "HeadingChildrenRequestInput": {
"type": "object",
"properties": {
- "reviewedCards": {
+ "id": {
+ "type": "string"
+ },
+ "removeFoldAttr": {
"anyOf": [
{
- "type": "array",
- "items": {
- "$ref": "#/$defs/RiffReviewedCardInput"
- }
+ "type": "boolean"
},
{
"type": "null"
}
]
+ }
+ },
+ "required": [
+ "id"
+ ],
+ "additionalProperties": false
+ },
+ "HeadingFoldRequestInput": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
},
- "rootID": {
+ "scope": {
"type": "string"
}
},
"required": [
- "rootID"
+ "id",
+ "scope"
],
"additionalProperties": false
},
- "RollbackRepoSnapshotFileRequestInput": {
+ "HeadingLevelRequestInput": {
"type": "object",
"properties": {
"id": {
"type": "string"
+ },
+ "ids": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "level": {
+ "type": "number"
}
},
"required": [
- "id"
+ "level"
],
"additionalProperties": false
},
- "SQLQueryRequestInput": {
+ "HeadingNumbersRequestInput": {
"type": "object",
"properties": {
- "mode": {
+ "id": {
"anyOf": [
{
"type": "string"
@@ -21560,72 +24233,91 @@
}
]
},
- "stmt": {
- "type": "string"
+ "notebook": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
- "required": [
- "stmt"
- ],
"additionalProperties": false
},
- "SaveTemplateRequestInput": {
+ "History": {
"type": "object",
"properties": {
- "databaseMode": {
- "type": "string"
- },
- "directory": {
- "type": "string"
- },
- "id": {
- "type": "string"
- },
- "name": {
+ "hCreated": {
"type": "string"
},
- "overwrite": {
- "type": "boolean"
+ "items": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/HistoryItem"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
"required": [
- "id",
- "name",
- "overwrite"
+ "hCreated",
+ "items"
],
"additionalProperties": false
},
- "SearchAsset": {
+ "HistoryItem": {
"type": "object",
"properties": {
- "hName": {
+ "id": {
+ "type": "string"
+ },
+ "notebook": {
+ "type": "string"
+ },
+ "op": {
"type": "string"
},
"path": {
"type": "string"
},
- "updated": {
- "type": "integer"
+ "title": {
+ "type": "string"
}
},
"required": [
- "hName",
+ "id",
+ "notebook",
+ "op",
"path",
- "updated"
+ "title"
],
"additionalProperties": false
},
- "SearchAssetContentData": {
+ "HistoryItemsData": {
"type": "object",
"properties": {
- "assetContents": {
+ "items": {
"anyOf": [
{
"type": "array",
"items": {
"anyOf": [
{
- "$ref": "#/$defs/AssetContent"
+ "$ref": "#/$defs/HistoryItem"
},
{
"type": "null"
@@ -21637,58 +24329,33 @@
"type": "null"
}
]
- },
- "matchedAssetCount": {
- "type": "integer"
- },
- "pageCount": {
- "type": "integer"
}
},
"required": [
- "assetContents",
- "matchedAssetCount",
- "pageCount"
+ "items"
],
"additionalProperties": false
},
- "SearchAssetContentRequestInput": {
+ "HistoryItemsRequestInput": {
"type": "object",
"properties": {
- "method": {
- "anyOf": [
- {
- "type": "number"
- },
- {
- "type": "null"
- }
- ]
- },
- "orderBy": {
- "anyOf": [
- {
- "type": "number"
- },
- {
- "type": "null"
- }
- ]
+ "created": {
+ "type": "string"
},
- "page": {
+ "notebook": {
"anyOf": [
{
- "type": "number"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "pageSize": {
+ "op": {
"anyOf": [
{
- "type": "number"
+ "type": "string"
},
{
"type": "null"
@@ -21705,13 +24372,10 @@
}
]
},
- "types": {
+ "type": {
"anyOf": [
{
- "type": "object",
- "additionalProperties": {
- "type": "boolean"
- }
+ "type": "number"
},
{
"type": "null"
@@ -21719,50 +24383,78 @@
]
}
},
+ "required": [
+ "created"
+ ],
+ "additionalProperties": false
+ },
+ "HistoryPathRequestInput": {
+ "type": "object",
+ "properties": {
+ "historyPath": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "historyPath"
+ ],
"additionalProperties": false
},
- "SearchAssetRequestInput": {
+ "ImportAutoDocument": {
"type": "object",
"properties": {
- "exts": {
+ "token": {
+ "type": "string"
+ },
+ "type": {
+ "type": "string",
+ "enum": [
+ "document"
+ ]
+ }
+ },
+ "required": [
+ "type"
+ ],
+ "additionalProperties": false
+ },
+ "ImportAutoNotebook": {
+ "type": "object",
+ "properties": {
+ "notebook": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "$ref": "#/$defs/Notebook"
},
{
"type": "null"
}
]
},
- "k": {
- "type": "string"
+ "type": {
+ "type": "string",
+ "enum": [
+ "notebook"
+ ]
}
},
"required": [
- "k"
+ "notebook",
+ "type"
],
"additionalProperties": false
},
- "SearchBlock": {
+ "ImportAutoNotebooks": {
"type": "object",
"properties": {
- "alias": {
- "type": "string"
- },
- "box": {
- "type": "string"
- },
- "children": {
+ "notebooks": {
"anyOf": [
{
"type": "array",
"items": {
"anyOf": [
{
- "$ref": "#/$defs/SearchBlock"
+ "$ref": "#/$defs/Notebook"
},
{
"type": "null"
@@ -21775,81 +24467,179 @@
}
]
},
- "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": {
- "type": "string"
- },
- "ial": {
- "anyOf": [
- {
- "type": "object",
- "additionalProperties": {
- "type": "string"
- }
+ "type": {
+ "type": "string",
+ "enum": [
+ "notebooks"
+ ]
+ }
+ },
+ "required": [
+ "notebooks",
+ "type"
+ ],
+ "additionalProperties": false
+ },
+ "ImportDataRequestInput": {
+ "type": "object",
+ "properties": {
+ "file": {
+ "type": "string",
+ "format": "binary"
+ }
+ },
+ "additionalProperties": false
+ },
+ "ImportDocumentData": {
+ "type": "object",
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "document"
+ ]
+ }
+ },
+ "required": [
+ "type"
+ ],
+ "additionalProperties": false
+ },
+ "ImportMarkdownRequestInput": {
+ "type": "object",
+ "properties": {
+ "localPath": {
+ "type": "string"
+ },
+ "notebook": {
+ "type": "string"
+ },
+ "skipRoot": {
+ "anyOf": [
+ {
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "id": {
+ "toPath": {
"type": "string"
+ }
+ },
+ "required": [
+ "localPath",
+ "notebook",
+ "toPath"
+ ],
+ "additionalProperties": false
+ },
+ "ImportNotebookCryptoBackupRequestInput": {
+ "type": "object",
+ "properties": {
+ "file": {
+ "type": "string",
+ "format": "binary"
},
- "markdown": {
+ "password": {
"type": "string"
- },
- "memo": {
+ }
+ },
+ "required": [
+ "file"
+ ],
+ "additionalProperties": false
+ },
+ "ImportRepoKeyRequestInput": {
+ "type": "object",
+ "properties": {
+ "key": {
"type": "string"
+ }
+ },
+ "required": [
+ "key"
+ ],
+ "additionalProperties": false
+ },
+ "ImportSYRequestInput": {
+ "type": "object",
+ "properties": {
+ "file": {
+ "type": "string",
+ "format": "binary"
},
- "name": {
+ "notebook": {
"type": "string"
},
- "number": {
+ "toPath": {
"type": "string"
- },
- "parentID": {
+ }
+ },
+ "additionalProperties": false
+ },
+ "ImportTokenRequestInput": {
+ "type": "object",
+ "properties": {
+ "token": {
"type": "string"
+ }
+ },
+ "required": [
+ "token"
+ ],
+ "additionalProperties": false
+ },
+ "ImportZipMarkdownRequestInput": {
+ "type": "object",
+ "properties": {
+ "file": {
+ "type": "string",
+ "format": "binary"
},
- "path": {
+ "notebook": {
"type": "string"
},
- "refCount": {
- "type": "integer"
- },
- "refText": {
+ "skipRoot": {
"type": "string"
},
- "refs": {
+ "toPath": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false
+ },
+ "ImportedNotebook": {
+ "type": "object",
+ "properties": {
+ "notebook": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/Notebook"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "notebook"
+ ],
+ "additionalProperties": false
+ },
+ "ImportedNotebooks": {
+ "type": "object",
+ "properties": {
+ "notebooks": {
"anyOf": [
{
"type": "array",
"items": {
"anyOf": [
{
- "$ref": "#/$defs/SearchBlock"
+ "$ref": "#/$defs/Notebook"
},
{
"type": "null"
@@ -21861,155 +24651,133 @@
"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"
+ "notebooks"
],
"additionalProperties": false
},
- "SearchBlockCard": {
+ "InitRepoKeyFromPassphraseRequestInput": {
"type": "object",
"properties": {
- "due": {
- "type": "string"
- },
- "lapses": {
- "type": "integer"
- },
- "lastReview": {
+ "pass": {
"type": "string"
- },
- "reps": {
- "type": "integer"
- },
- "state": {
- "type": "integer"
}
},
"required": [
- "due",
- "lapses",
- "lastReview",
- "reps",
- "state"
+ "pass"
],
"additionalProperties": false
},
- "SearchBlockRequestInput": {
+ "InlineStyle": {
"type": "object",
"properties": {
- "groupBy": {
+ "dark": {
"anyOf": [
{
- "type": "number"
+ "$ref": "#/$defs/InlineStyleTheme"
},
{
"type": "null"
}
]
},
- "method": {
+ "hidden": {
+ "type": "boolean"
+ },
+ "id": {
+ "type": "string"
+ },
+ "light": {
"anyOf": [
{
- "type": "number"
+ "$ref": "#/$defs/InlineStyleTheme"
},
{
"type": "null"
}
]
},
- "orderBy": {
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "dark",
+ "id",
+ "light",
+ "name"
+ ],
+ "additionalProperties": false
+ },
+ "InlineStyleAV": {
+ "type": "object",
+ "properties": {
+ "colors": {
"anyOf": [
{
- "type": "number"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AttributeViewCustomColor"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
},
- "page": {
+ "order": {
"anyOf": [
{
- "type": "number"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
- },
- "pageSize": {
+ }
+ },
+ "required": [
+ "colors",
+ "order"
+ ],
+ "additionalProperties": false
+ },
+ "InlineStyleAVInput": {
+ "type": "object",
+ "properties": {
+ "colors": {
"anyOf": [
{
- "type": "number"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AttributeViewCustomColorInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
},
- "paths": {
+ "order": {
"anyOf": [
{
"type": "array",
@@ -22021,54 +24789,51 @@
"type": "null"
}
]
- },
- "query": {
+ }
+ },
+ "additionalProperties": false
+ },
+ "InlineStyleBuiltin": {
+ "type": "object",
+ "properties": {
+ "colors": {
"anyOf": [
{
- "type": "string"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/InlineStyleBuiltinColor"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
},
- "subTypes": {
+ "hidden": {
"anyOf": [
{
- "$ref": "#/$defs/SearchSubtypeFilterInput"
+ "$ref": "#/$defs/InlineStyleBuiltinHidden"
},
{
"type": "null"
}
]
},
- "types": {
- "anyOf": [
- {
- "type": "object",
- "additionalProperties": {
- "type": "boolean"
- }
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "additionalProperties": false
- },
- "SearchBlocksData": {
- "type": "object",
- "properties": {
- "blocks": {
+ "styles": {
"anyOf": [
{
"type": "array",
"items": {
"anyOf": [
{
- "$ref": "#/$defs/SearchBlock"
+ "$ref": "#/$defs/InlineStyleBuiltinStyle"
},
{
"type": "null"
@@ -22080,155 +24845,128 @@
"type": "null"
}
]
- },
- "matchedBlockCount": {
- "type": "integer"
- },
- "matchedRootCount": {
- "type": "integer"
- },
- "pageCount": {
- "type": "integer"
}
},
"required": [
- "blocks",
- "matchedBlockCount",
- "matchedRootCount",
- "pageCount"
+ "colors",
+ "hidden",
+ "styles"
],
"additionalProperties": false
},
- "SearchEmbedBlockRequestInput": {
+ "InlineStyleBuiltinColor": {
"type": "object",
"properties": {
- "breadcrumb": {
+ "dark": {
"anyOf": [
{
- "type": "boolean"
+ "$ref": "#/$defs/InlineStyleTheme"
},
{
"type": "null"
}
]
},
- "embedBlockID": {
- "type": "string"
- },
- "excludeIDs": {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "headingMode": {
- "anyOf": [
- {
- "type": "number"
- },
- {
- "type": "null"
- }
- ]
+ "index": {
+ "type": "integer"
},
- "notebook": {
+ "light": {
"anyOf": [
{
- "type": "string"
+ "$ref": "#/$defs/InlineStyleTheme"
},
{
"type": "null"
}
]
- },
- "stmt": {
- "type": "string"
}
},
"required": [
- "embedBlockID",
- "excludeIDs",
- "stmt"
+ "dark",
+ "index",
+ "light"
],
"additionalProperties": false
},
- "SearchHeadingFilterInput": {
+ "InlineStyleBuiltinColorInput": {
"type": "object",
"properties": {
- "h1": {
+ "dark": {
"anyOf": [
{
- "type": "boolean"
+ "$ref": "#/$defs/InlineStyleThemeInput"
},
{
"type": "null"
}
]
},
- "h2": {
+ "index": {
"anyOf": [
{
- "type": "boolean"
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "h3": {
+ "light": {
"anyOf": [
{
- "type": "boolean"
+ "$ref": "#/$defs/InlineStyleThemeInput"
},
{
"type": "null"
}
]
- },
- "h4": {
+ }
+ },
+ "additionalProperties": false
+ },
+ "InlineStyleBuiltinHidden": {
+ "type": "object",
+ "properties": {
+ "av": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "type": "integer"
+ }
},
{
"type": "null"
}
]
},
- "h5": {
+ "backgroundColor": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "type": "integer"
+ }
},
{
"type": "null"
}
]
},
- "h6": {
+ "color": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "type": "integer"
+ }
},
{
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "SearchHistoryData": {
- "type": "object",
- "properties": {
- "histories": {
+ },
+ "style1": {
"anyOf": [
{
"type": "array",
@@ -22240,68 +24978,65 @@
"type": "null"
}
]
- },
- "pageCount": {
- "type": "integer"
- },
- "totalCount": {
- "type": "integer"
}
},
"required": [
- "histories",
- "pageCount",
- "totalCount"
+ "av",
+ "backgroundColor",
+ "color",
+ "style1"
],
"additionalProperties": false
},
- "SearchHistoryRequestInput": {
+ "InlineStyleBuiltinHiddenInput": {
"type": "object",
"properties": {
- "notebook": {
+ "av": {
"anyOf": [
{
- "type": "string"
+ "type": "array",
+ "items": {
+ "type": "integer"
+ }
},
{
"type": "null"
}
]
},
- "op": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "page": {
+ "backgroundColor": {
"anyOf": [
{
- "type": "number"
+ "type": "array",
+ "items": {
+ "type": "integer"
+ }
},
{
"type": "null"
}
]
},
- "query": {
+ "color": {
"anyOf": [
{
- "type": "string"
+ "type": "array",
+ "items": {
+ "type": "integer"
+ }
},
{
"type": "null"
}
]
},
- "type": {
+ "style1": {
"anyOf": [
{
- "type": "number"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
@@ -22311,45 +25046,53 @@
},
"additionalProperties": false
},
- "SearchKeywordRequestInput": {
- "type": "object",
- "properties": {
- "k": {
- "type": "string"
- }
- },
- "required": [
- "k"
- ],
- "additionalProperties": false
- },
- "SearchListFilterInput": {
+ "InlineStyleBuiltinInput": {
"type": "object",
"properties": {
- "o": {
+ "colors": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/InlineStyleBuiltinColorInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
},
- "t": {
+ "hidden": {
"anyOf": [
{
- "type": "boolean"
+ "$ref": "#/$defs/InlineStyleBuiltinHiddenInput"
},
{
"type": "null"
}
]
},
- "u": {
+ "styles": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/InlineStyleBuiltinStyleInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
@@ -22359,23 +25102,26 @@
},
"additionalProperties": false
},
- "SearchPageRequestInput": {
+ "InlineStyleBuiltinStyle": {
"type": "object",
"properties": {
- "page": {
+ "dark": {
"anyOf": [
{
- "type": "number"
+ "$ref": "#/$defs/InlineStyleTheme"
},
{
"type": "null"
}
]
},
- "pageSize": {
+ "id": {
+ "type": "string"
+ },
+ "light": {
"anyOf": [
{
- "type": "number"
+ "$ref": "#/$defs/InlineStyleTheme"
},
{
"type": "null"
@@ -22383,122 +25129,63 @@
]
}
},
- "additionalProperties": false
- },
- "SearchPath": {
- "type": "object",
- "properties": {
- "blocks": {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/SearchBlock"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "box": {
- "type": "string"
- },
- "children": {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/SearchPath"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "count": {
- "type": "integer"
- },
- "created": {
- "type": "string"
- },
- "depth": {
- "type": "integer"
- },
- "folded": {
- "type": "boolean"
- },
- "hPath": {
- "type": "string"
- },
- "id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "nodeType": {
- "type": "string"
- },
- "number": {
- "type": "string"
- },
- "subType": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "updated": {
- "type": "string"
- }
- },
"required": [
- "box",
- "count",
- "created",
- "depth",
- "folded",
- "hPath",
+ "dark",
"id",
- "name",
- "nodeType",
- "subType",
- "type",
- "updated"
+ "light"
],
"additionalProperties": false
},
- "SearchPathRequestInput": {
+ "InlineStyleBuiltinStyleInput": {
"type": "object",
"properties": {
- "path": {
- "type": "string"
+ "dark": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/InlineStyleThemeInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "id": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "light": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/InlineStyleThemeInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
- "required": [
- "path"
- ],
"additionalProperties": false
},
- "SearchRefBlockRequestInput": {
+ "InlineStyleInput": {
"type": "object",
"properties": {
- "beforeLen": {
- "type": "number"
- },
- "id": {
+ "dark": {
"anyOf": [
{
- "type": "string"
+ "$ref": "#/$defs/InlineStyleThemeInput"
},
{
"type": "null"
}
]
},
- "isDatabase": {
+ "hidden": {
"anyOf": [
{
"type": "boolean"
@@ -22508,73 +25195,48 @@
}
]
},
- "isSquareBrackets": {
+ "id": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "k": {
- "type": "string"
- },
- "notebook": {
+ "light": {
"anyOf": [
{
- "type": "string"
+ "$ref": "#/$defs/InlineStyleThemeInput"
},
{
"type": "null"
}
]
},
- "reqId": {
+ "name": {
"anyOf": [
{
- "$ref": "#/$defs/JSONValue"
+ "type": "string"
},
{
"type": "null"
}
]
- },
- "rootID": {
- "type": "string"
- }
- },
- "additionalProperties": false
- },
- "SearchRefCorrelation": {
- "type": "object",
- "properties": {
- "reqId": {
- "$ref": "#/$defs/JSONValue"
}
},
- "required": [
- "reqId"
- ],
"additionalProperties": false
},
- "SearchRefResult": {
+ "InlineStyleOrder": {
"type": "object",
"properties": {
- "blocks": {
+ "backgroundColor": {
"anyOf": [
{
"type": "array",
"items": {
- "anyOf": [
- {
- "$ref": "#/$defs/SearchBlock"
- },
- {
- "type": "null"
- }
- ]
+ "type": "string"
}
},
{
@@ -22582,49 +25244,49 @@
}
]
},
- "k": {
- "type": "string"
- },
- "newDoc": {
- "type": "boolean"
- },
- "reqId": {
- "$ref": "#/$defs/JSONValue"
- }
- },
- "required": [
- "blocks",
- "k",
- "newDoc",
- "reqId"
- ],
- "additionalProperties": false
- },
- "SearchRepoFileRequestInput": {
- "type": "object",
- "properties": {
- "keyword": {
- "type": "string"
+ "color": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "page": {
- "type": "number"
+ "style1": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
"required": [
- "keyword",
- "page"
+ "backgroundColor",
+ "color",
+ "style1"
],
"additionalProperties": false
},
- "SearchSubTypes": {
+ "InlineStyleOrderInput": {
"type": "object",
"properties": {
- "heading": {
+ "backgroundColor": {
"anyOf": [
{
- "type": "object",
- "additionalProperties": {
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "type": "string"
}
},
{
@@ -22632,12 +25294,12 @@
}
]
},
- "list": {
+ "color": {
"anyOf": [
{
- "type": "object",
- "additionalProperties": {
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "type": "string"
}
},
{
@@ -22645,12 +25307,12 @@
}
]
},
- "listItem": {
+ "style1": {
"anyOf": [
{
- "type": "object",
- "additionalProperties": {
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "type": "string"
}
},
{
@@ -22659,49 +25321,37 @@
]
}
},
- "required": [
- "heading",
- "list",
- "listItem"
- ],
"additionalProperties": false
},
- "SearchSubTypesInput": {
+ "InlineStyleTheme": {
"type": "object",
"properties": {
- "heading": {
- "anyOf": [
- {
- "type": "object",
- "additionalProperties": {
- "type": "boolean"
- }
- },
- {
- "type": "null"
- }
- ]
+ "backgroundColor": {
+ "type": "string"
},
- "list": {
+ "color": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false
+ },
+ "InlineStyleThemeInput": {
+ "type": "object",
+ "properties": {
+ "backgroundColor": {
"anyOf": [
{
- "type": "object",
- "additionalProperties": {
- "type": "boolean"
- }
+ "type": "string"
},
{
"type": "null"
}
]
},
- "listItem": {
+ "color": {
"anyOf": [
{
- "type": "object",
- "additionalProperties": {
- "type": "boolean"
- }
+ "type": "string"
},
{
"type": "null"
@@ -22711,87 +25361,47 @@
},
"additionalProperties": false
},
- "SearchSubtypeFilterInput": {
+ "InlineStyles": {
"type": "object",
"properties": {
- "heading": {
+ "av": {
"anyOf": [
{
- "$ref": "#/$defs/SearchHeadingFilterInput"
+ "$ref": "#/$defs/InlineStyleAV"
},
{
"type": "null"
}
]
},
- "list": {
+ "builtin": {
"anyOf": [
{
- "$ref": "#/$defs/SearchListFilterInput"
+ "$ref": "#/$defs/InlineStyleBuiltin"
},
{
"type": "null"
}
]
},
- "listItem": {
+ "order": {
"anyOf": [
{
- "$ref": "#/$defs/SearchListFilterInput"
+ "$ref": "#/$defs/InlineStyleOrder"
},
{
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "SearchTagData": {
- "type": "object",
- "properties": {
- "k": {
- "type": "string"
- },
- "tags": {
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- },
- "required": [
- "k",
- "tags"
- ],
- "additionalProperties": false
- },
- "SearchTagRequestInput": {
- "type": "object",
- "properties": {
- "k": {
- "type": "string"
- }
- },
- "required": [
- "k"
- ],
- "additionalProperties": false
- },
- "SearchTemplateData": {
- "type": "object",
- "properties": {
- "k": {
- "type": "string"
},
- "templates": {
+ "styles": {
"anyOf": [
{
"type": "array",
"items": {
"anyOf": [
{
- "$ref": "#/$defs/SearchTemplateResult"
+ "$ref": "#/$defs/InlineStyle"
},
{
"type": "null"
@@ -22803,54 +25413,53 @@
"type": "null"
}
]
+ },
+ "version": {
+ "type": "integer"
}
},
"required": [
- "k",
- "templates"
+ "av",
+ "builtin",
+ "order",
+ "styles",
+ "version"
],
"additionalProperties": false
},
- "SearchTemplateResult": {
+ "InsertBlockRequestInput": {
"type": "object",
"properties": {
- "content": {
+ "data": {
"type": "string"
},
- "path": {
+ "dataType": {
"type": "string"
},
- "relativePath": {
- "type": "string"
- }
- },
- "required": [
- "content",
- "path",
- "relativePath"
- ],
- "additionalProperties": false
- },
- "SearchWidgetData": {
- "type": "object",
- "properties": {
- "k": {
- "type": "string"
+ "nextID": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "widgets": {
+ "parentID": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/SearchWidgetResult"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "previousID": {
+ "anyOf": [
+ {
+ "type": "string"
},
{
"type": "null"
@@ -22859,15 +25468,15 @@
}
},
"required": [
- "k",
- "widgets"
+ "data",
+ "dataType"
],
"additionalProperties": false
},
- "SearchWidgetResult": {
+ "InsertCoverRequestInput": {
"type": "object",
"properties": {
- "content": {
+ "id": {
"type": "string"
},
"name": {
@@ -22875,121 +25484,119 @@
}
},
"required": [
- "content",
+ "id",
"name"
],
"additionalProperties": false
},
- "SetAIRequestInput": {
+ "InsertLocalAssetsRequestInput": {
"type": "object",
"properties": {
- "agent": {
- "anyOf": [
- {
- "$ref": "#/$defs/SettingAgentInput"
- },
- {
- "type": "null"
- }
- ]
+ "assetPaths": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
- "editing": {
+ "fromHTMLPaste": {
"anyOf": [
{
- "$ref": "#/$defs/SettingEditingInput"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "embedding": {
+ "id": {
"anyOf": [
{
- "$ref": "#/$defs/SettingEmbeddingInput"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "imageGeneration": {
+ "isUpload": {
"anyOf": [
{
- "$ref": "#/$defs/SettingImageGenerationInput"
+ "type": "boolean"
},
{
"type": "null"
}
]
- },
- "mcp": {
+ }
+ },
+ "required": [
+ "assetPaths"
+ ],
+ "additionalProperties": false
+ },
+ "InstallBazaarIconRequestInput": {
+ "type": "object",
+ "properties": {
+ "keyword": {
"anyOf": [
{
- "$ref": "#/$defs/SettingMCPInput"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "providers": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/SettingProviderInput"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- {
- "type": "null"
- }
- ]
+ "packageName": {
+ "type": "string"
},
- "rerank": {
+ "repoHash": {
+ "type": "string"
+ },
+ "repoRef": {
"anyOf": [
{
- "$ref": "#/$defs/SettingRerankInput"
+ "type": "string"
},
{
"type": "null"
}
]
+ },
+ "repoURL": {
+ "type": "string"
}
},
+ "required": [
+ "packageName",
+ "repoHash",
+ "repoURL"
+ ],
"additionalProperties": false
},
- "SetAppearanceRequestInput": {
+ "InstallBazaarPluginRequestInput": {
"type": "object",
"properties": {
- "bodyGradient": {
- "anyOf": [
- {
- "$ref": "#/$defs/SettingBodyGradientInput"
- },
- {
- "type": "null"
- }
- ]
+ "frontend": {
+ "type": "string"
},
- "closeButtonBehavior": {
+ "keyword": {
"anyOf": [
{
- "type": "integer"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "codeBlockThemeDark": {
+ "packageName": {
+ "type": "string"
+ },
+ "repoHash": {
+ "type": "string"
+ },
+ "repoRef": {
"anyOf": [
{
"type": "string"
@@ -22999,7 +25606,22 @@
}
]
},
- "codeBlockThemeLight": {
+ "repoURL": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "frontend",
+ "packageName",
+ "repoHash",
+ "repoURL"
+ ],
+ "additionalProperties": false
+ },
+ "InstallBazaarTemplateRequestInput": {
+ "type": "object",
+ "properties": {
+ "keyword": {
"anyOf": [
{
"type": "string"
@@ -23009,77 +25631,93 @@
}
]
},
- "darkThemes": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/SettingAppearanceThemeInput"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- {
- "type": "null"
- }
- ]
+ "packageName": {
+ "type": "string"
},
- "entryVisibility": {
+ "repoHash": {
+ "type": "string"
+ },
+ "repoRef": {
"anyOf": [
{
- "$ref": "#/$defs/SettingEntryVisibilityInput"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "globalFontFamilies": {
+ "repoURL": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "packageName",
+ "repoHash",
+ "repoURL"
+ ],
+ "additionalProperties": false
+ },
+ "InstallBazaarThemeRequestInput": {
+ "type": "object",
+ "properties": {
+ "frontend": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/SettingEditorFontInput"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "string"
},
{
"type": "null"
}
]
},
- "hideStatusBar": {
+ "keyword": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "hideToolbar": {
+ "mode": {
+ "type": "number"
+ },
+ "modeOS": {
+ "type": "boolean"
+ },
+ "packageName": {
+ "type": "string"
+ },
+ "repoHash": {
+ "type": "string"
+ },
+ "repoRef": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "icon": {
+ "repoURL": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "packageName",
+ "repoHash",
+ "repoURL"
+ ],
+ "additionalProperties": false
+ },
+ "InstallBazaarWidgetRequestInput": {
+ "type": "object",
+ "properties": {
+ "keyword": {
"anyOf": [
{
"type": "string"
@@ -23089,7 +25727,13 @@
}
]
},
- "iconVer": {
+ "packageName": {
+ "type": "string"
+ },
+ "repoHash": {
+ "type": "string"
+ },
+ "repoRef": {
"anyOf": [
{
"type": "string"
@@ -23099,14 +25743,95 @@
}
]
},
- "icons": {
+ "repoURL": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "packageName",
+ "repoHash",
+ "repoURL"
+ ],
+ "additionalProperties": false
+ },
+ "InstallLocalBazaarPackageRequestInput": {
+ "type": "object",
+ "properties": {
+ "file": {
+ "type": "string",
+ "format": "binary"
+ },
+ "frontend": {
+ "type": "string"
+ },
+ "overwrite": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false
+ },
+ "JSONValue": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "type": "string"
+ },
+ {
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/JSONValue"
+ }
+ },
+ {
+ "type": "object",
+ "additionalProperties": {
+ "$ref": "#/$defs/JSONValue"
+ }
+ }
+ ]
+ },
+ "KernelPetal": {
+ "type": "object",
+ "properties": {
+ "existed": {
+ "type": "boolean"
+ },
+ "incompatible": {
+ "type": "boolean"
+ },
+ "js": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "existed",
+ "incompatible",
+ "js"
+ ],
+ "additionalProperties": false
+ },
+ "ListNotebooksData": {
+ "type": "object",
+ "properties": {
+ "boxDocEnabled": {
+ "type": "boolean"
+ },
+ "notebooks": {
"anyOf": [
{
"type": "array",
"items": {
"anyOf": [
{
- "$ref": "#/$defs/SettingAppearanceIconInput"
+ "$ref": "#/$defs/Notebook"
},
{
"type": "null"
@@ -23118,25 +25843,53 @@
"type": "null"
}
]
- },
- "lang": {
+ }
+ },
+ "required": [
+ "boxDocEnabled",
+ "notebooks"
+ ],
+ "additionalProperties": false
+ },
+ "ListNotebooksRequestInput": {
+ "type": "object",
+ "properties": {
+ "flashcard": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
- },
- "lightThemes": {
+ }
+ },
+ "additionalProperties": false
+ },
+ "LoadPetalsRequestInput": {
+ "type": "object",
+ "properties": {
+ "frontend": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "frontend"
+ ],
+ "additionalProperties": false
+ },
+ "LoadedPlugin": {
+ "type": "object",
+ "properties": {
+ "methods": {
"anyOf": [
{
"type": "array",
"items": {
"anyOf": [
{
- "$ref": "#/$defs/SettingAppearanceThemeInput"
+ "$ref": "#/$defs/PluginRPCMethod"
},
{
"type": "null"
@@ -23149,47 +25902,87 @@
}
]
},
- "mode": {
- "anyOf": [
- {
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
+ "name": {
+ "type": "string"
},
- "modeOS": {
+ "state": {
+ "type": "string"
+ },
+ "stateCode": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "methods",
+ "name",
+ "state",
+ "stateCode"
+ ],
+ "additionalProperties": false
+ },
+ "LoadedPluginRequestInput": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "name"
+ ],
+ "additionalProperties": false
+ },
+ "LocalGraphConf": {
+ "type": "object",
+ "properties": {
+ "d3": {
"anyOf": [
{
- "type": "boolean"
+ "$ref": "#/$defs/GraphD3"
},
{
"type": "null"
}
]
},
- "notifications": {
+ "dailyNote": {
+ "type": "boolean"
+ },
+ "type": {
"anyOf": [
{
- "$ref": "#/$defs/SettingNotificationsInput"
+ "$ref": "#/$defs/GraphTypeFilter"
},
{
"type": "null"
}
]
+ }
+ },
+ "required": [
+ "d3",
+ "dailyNote",
+ "type"
+ ],
+ "additionalProperties": false
+ },
+ "LocalGraphRequestInput": {
+ "type": "object",
+ "properties": {
+ "conf": {
+ "$ref": "#/$defs/GraphConfigurationFieldsInput"
},
- "statusBar": {
+ "id": {
"anyOf": [
{
- "$ref": "#/$defs/SettingStatusBarInput"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "themeDark": {
+ "k": {
"anyOf": [
{
"type": "string"
@@ -23199,27 +25992,27 @@
}
]
},
- "themeJS": {
+ "notebook": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "themeLight": {
+ "reqId": {
"anyOf": [
{
- "type": "string"
+ "$ref": "#/$defs/JSONValue"
},
{
"type": "null"
}
]
},
- "themeVer": {
+ "type": {
"anyOf": [
{
"type": "string"
@@ -23232,75 +26025,136 @@
},
"additionalProperties": false
},
- "SetAssetAnnotationRequestInput": {
+ "LocalGraphResult": {
"type": "object",
"properties": {
- "data": {
+ "box": {
"type": "string"
},
- "path": {
+ "conf": {
+ "$ref": "#/$defs/LocalGraphConf"
+ },
+ "id": {
"type": "string"
+ },
+ "links": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/GraphLink"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "nodes": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/GraphNode"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "reqId": {
+ "$ref": "#/$defs/JSONValue"
}
},
"required": [
- "data",
- "path"
+ "box",
+ "conf",
+ "id",
+ "links",
+ "nodes",
+ "reqId"
],
"additionalProperties": false
},
- "SetAssetOCRTextRequestInput": {
+ "LockScreenRequestInput": {
"type": "object",
"properties": {
- "path": {
- "type": "string"
- },
- "text": {
- "type": "string"
+ "lockScreenMode": {
+ "type": "number"
}
},
"required": [
- "path",
- "text"
+ "lockScreenMode"
],
"additionalProperties": false
},
- "SetBazaarPackageRatingRequestInput": {
+ "Login2faEnvelope": {
"type": "object",
"properties": {
- "packageName": {
- "type": "string"
+ "code": {
+ "type": "integer"
},
- "packageType": {
- "type": "string"
+ "data": {
+ "anyOf": [
+ {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "number"
+ },
+ "msg": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "msg"
+ ],
+ "additionalProperties": {
+ "$ref": "#/$defs/JSONValue"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "rating": {
- "type": "number"
+ "msg": {
+ "type": "string"
}
},
"required": [
- "packageName",
- "packageType",
- "rating"
+ "code",
+ "data",
+ "msg"
],
"additionalProperties": false
},
- "SetBazaarRequestInput": {
+ "MarkdownHTMLRequestInput": {
"type": "object",
"properties": {
- "petalDisabled": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
+ "markdown": {
+ "type": "string"
},
- "trust": {
+ "mode": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
@@ -23308,51 +26162,31 @@
]
}
},
- "additionalProperties": false
- },
- "SetBlockAttrsRequestInput": {
- "type": "object",
- "properties": {
- "attrs": {
- "type": "object",
- "additionalProperties": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "id": {
- "type": "string"
- }
- },
"required": [
- "attrs",
- "id"
+ "markdown"
],
"additionalProperties": false
},
- "SetConfSnippetRequestInput": {
+ "MoveBlockRequestInput": {
"type": "object",
"properties": {
- "enabledCSS": {
+ "id": {
+ "type": "string"
+ },
+ "parentID": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "enabledJS": {
+ "previousID": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
@@ -23360,15 +26194,21 @@
]
}
},
+ "required": [
+ "id"
+ ],
"additionalProperties": false
},
- "SetCriterionRequestInput": {
+ "NetImageAssetsRequestInput": {
"type": "object",
"properties": {
- "criterion": {
+ "id": {
+ "type": "string"
+ },
+ "url": {
"anyOf": [
{
- "$ref": "#/$defs/CriterionInput"
+ "type": "string"
},
{
"type": "null"
@@ -23377,64 +26217,271 @@
}
},
"required": [
- "criterion"
+ "id"
],
"additionalProperties": false
},
- "SetEditorRequestInput": {
+ "NetworkData": {
"type": "object",
"properties": {
- "allowHTMLBLockScript": {
+ "proxy": {
"anyOf": [
{
- "type": "boolean"
+ "$ref": "#/$defs/NetworkProxy"
},
{
"type": "null"
}
]
+ }
+ },
+ "required": [
+ "proxy"
+ ],
+ "additionalProperties": false
+ },
+ "NetworkProxy": {
+ "type": "object",
+ "properties": {
+ "host": {
+ "type": "string"
},
- "allowSVGScript": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
+ "port": {
+ "type": "string"
+ },
+ "scheme": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "host",
+ "port",
+ "scheme"
+ ],
+ "additionalProperties": false
+ },
+ "NetworkProxyInput": {
+ "type": "object",
+ "properties": {
+ "host": {
+ "type": "string"
+ },
+ "port": {
+ "type": "string"
+ },
+ "scheme": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "host",
+ "port",
+ "scheme"
+ ],
+ "additionalProperties": false
+ },
+ "NetworkServeRequestInput": {
+ "type": "object",
+ "properties": {
+ "networkServe": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "networkServe"
+ ],
+ "additionalProperties": false
+ },
+ "NetworkServeTLSRequestInput": {
+ "type": "object",
+ "properties": {
+ "networkServeTLS": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "networkServeTLS"
+ ],
+ "additionalProperties": false
+ },
+ "Notebook": {
+ "type": "object",
+ "properties": {
+ "closed": {
+ "type": "boolean"
+ },
+ "dueFlashcardCount": {
+ "type": "integer"
+ },
+ "encrypted": {
+ "type": "boolean"
+ },
+ "flashcardCount": {
+ "type": "integer"
+ },
+ "icon": {
+ "type": "string"
+ },
+ "id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "newFlashcardCount": {
+ "type": "integer"
+ },
+ "sort": {
+ "type": "integer"
+ },
+ "sortMode": {
+ "type": "integer"
+ },
+ "state": {
+ "type": "string",
+ "enum": [
+ "Locked",
+ "Unlocking",
+ "Unlocked",
+ "Locking",
+ "Error"
]
},
- "assetOpen": {
+ "subFileCount": {
+ "type": "integer"
+ },
+ "unlocked": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "closed",
+ "dueFlashcardCount",
+ "encrypted",
+ "flashcardCount",
+ "icon",
+ "id",
+ "name",
+ "newFlashcardCount",
+ "sort",
+ "sortMode",
+ "subFileCount",
+ "unlocked"
+ ],
+ "additionalProperties": false
+ },
+ "NotebookConf": {
+ "type": "object",
+ "properties": {
+ "boxCrypt": {
"anyOf": [
{
- "$ref": "#/$defs/SettingAssetOpenInput"
+ "$ref": "#/$defs/NotebookEncryption"
},
{
"type": "null"
}
]
},
- "backlinkContainChildren": {
+ "closed": {
+ "type": "boolean"
+ },
+ "dailyNoteSavePath": {
+ "type": "string"
+ },
+ "dailyNoteTemplatePath": {
+ "type": "string"
+ },
+ "docCreateSaveBox": {
+ "type": "string"
+ },
+ "docCreateSavePath": {
+ "type": "string"
+ },
+ "docCreateTemplatePath": {
+ "type": "string"
+ },
+ "encrypted": {
+ "type": "boolean"
+ },
+ "icon": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "refCreateSaveBox": {
+ "type": "string"
+ },
+ "refCreateSavePath": {
+ "type": "string"
+ },
+ "sort": {
+ "type": "integer"
+ },
+ "sortMode": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "boxCrypt",
+ "closed",
+ "dailyNoteSavePath",
+ "dailyNoteTemplatePath",
+ "docCreateSaveBox",
+ "docCreateSavePath",
+ "docCreateTemplatePath",
+ "encrypted",
+ "icon",
+ "name",
+ "refCreateSaveBox",
+ "refCreateSavePath",
+ "sort",
+ "sortMode"
+ ],
+ "additionalProperties": false
+ },
+ "NotebookConfData": {
+ "type": "object",
+ "properties": {
+ "box": {
+ "type": "string"
+ },
+ "conf": {
"anyOf": [
{
- "type": "boolean"
+ "$ref": "#/$defs/NotebookConf"
},
{
"type": "null"
}
]
},
- "backlinkExpandCount": {
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "box",
+ "conf",
+ "name"
+ ],
+ "additionalProperties": false
+ },
+ "NotebookConfPatchInput": {
+ "type": "object",
+ "properties": {
+ "boxCrypt": {
"anyOf": [
{
- "type": "integer"
+ "$ref": "#/$defs/NotebookEncryptionPatchInput"
},
{
"type": "null"
}
]
},
- "backlinkHideReference": {
+ "closed": {
"anyOf": [
{
"type": "boolean"
@@ -23444,7 +26491,7 @@
}
]
},
- "backlinkMentionExclude": {
+ "dailyNoteSavePath": {
"anyOf": [
{
"type": "string"
@@ -23454,57 +26501,47 @@
}
]
},
- "backlinkShowBottom": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
- },
- "backlinkSort": {
+ "dailyNoteTemplatePath": {
"anyOf": [
{
- "type": "integer"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "backmentionExpandCount": {
+ "docCreateSaveBox": {
"anyOf": [
{
- "type": "integer"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "backmentionSort": {
+ "docCreateSavePath": {
"anyOf": [
{
- "type": "integer"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "blockRefDynamicAnchorTextMaxLen": {
+ "docCreateTemplatePath": {
"anyOf": [
{
- "type": "integer"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "checkBlockRef": {
+ "encrypted": {
"anyOf": [
{
"type": "boolean"
@@ -23514,57 +26551,47 @@
}
]
},
- "codeFontFamilies": {
+ "icon": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/SettingEditorFontInput"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "string"
},
{
"type": "null"
}
]
},
- "codeLigatures": {
+ "name": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "codeLineWrap": {
+ "refCreateSaveBox": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "codeSyntaxHighlightLineNum": {
+ "refCreateSavePath": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "codeTabSpaces": {
+ "sort": {
"anyOf": [
{
"type": "integer"
@@ -23574,7 +26601,7 @@
}
]
},
- "cursorSurroundingLines": {
+ "sortMode": {
"anyOf": [
{
"type": "integer"
@@ -23583,48 +26610,109 @@
"type": "null"
}
]
+ }
+ },
+ "additionalProperties": false
+ },
+ "NotebookCryptoAutoLockRequestInput": {
+ "type": "object",
+ "properties": {
+ "autoLockMinutes": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "autoLockMinutes"
+ ],
+ "additionalProperties": false
+ },
+ "NotebookCryptoBackupData": {
+ "type": "object",
+ "properties": {
+ "file": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "file"
+ ],
+ "additionalProperties": false
+ },
+ "NotebookEncryption": {
+ "type": "object",
+ "properties": {
+ "createdAt": {
+ "type": "integer"
},
- "databaseAttrClickMode": {
+ "metadata": {
+ "type": "string"
+ },
+ "spec": {
+ "type": "integer"
+ },
+ "wrapNonce": {
"anyOf": [
{
- "type": "integer"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "databaseAttrHideEmpty": {
+ "wrappedDEK": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
- },
- "databaseAttrShow": {
+ }
+ },
+ "required": [
+ "createdAt",
+ "spec",
+ "wrapNonce",
+ "wrappedDEK"
+ ],
+ "additionalProperties": false
+ },
+ "NotebookEncryptionPatchInput": {
+ "type": "object",
+ "properties": {
+ "createdAt": {
"anyOf": [
{
- "type": "boolean"
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "databaseAttrUseTabs": {
+ "metadata": {
"anyOf": [
{
- "type": "boolean"
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "array",
+ "items": {
+ "type": "integer"
+ }
+ }
+ ]
},
{
"type": "null"
}
]
},
- "databaseAttrViewMode": {
+ "spec": {
"anyOf": [
{
"type": "integer"
@@ -23634,97 +26722,60 @@
}
]
},
- "displayBookmarkIcon": {
+ "wrapNonce": {
"anyOf": [
{
- "type": "boolean"
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "array",
+ "items": {
+ "type": "integer"
+ }
+ }
+ ]
},
{
"type": "null"
}
]
},
- "displayNetImgMark": {
+ "wrappedDEK": {
"anyOf": [
{
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
- },
- "dragHTMLFileToIframe": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
- },
- "dynamicLoadBlocks": {
- "anyOf": [
- {
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
- },
- "embedBlockBreadcrumb": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
- },
- "emoji": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- {
- "type": "null"
- }
- ]
- },
- "floatWindowDelay": {
- "anyOf": [
- {
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
- },
- "floatWindowMode": {
- "anyOf": [
- {
- "type": "integer"
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "array",
+ "items": {
+ "type": "integer"
+ }
+ }
+ ]
},
{
"type": "null"
}
]
- },
- "fontFamilies": {
+ }
+ },
+ "additionalProperties": false
+ },
+ "NotebookHistoryData": {
+ "type": "object",
+ "properties": {
+ "histories": {
"anyOf": [
{
"type": "array",
"items": {
"anyOf": [
{
- "$ref": "#/$defs/SettingEditorFontInput"
+ "$ref": "#/$defs/History"
},
{
"type": "null"
@@ -23736,78 +26787,471 @@
"type": "null"
}
]
+ }
+ },
+ "required": [
+ "histories"
+ ],
+ "additionalProperties": false
+ },
+ "NotebookIDRequestInput": {
+ "type": "object",
+ "properties": {
+ "notebook": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "notebook"
+ ],
+ "additionalProperties": false
+ },
+ "NotebookInfo": {
+ "type": "object",
+ "properties": {
+ "ctime": {
+ "type": "integer"
},
- "fontFamily": {
+ "docCount": {
+ "type": "integer"
+ },
+ "hCtime": {
+ "type": "string"
+ },
+ "hMtime": {
+ "type": "string"
+ },
+ "hSize": {
+ "type": "string"
+ },
+ "id": {
+ "type": "string"
+ },
+ "mtime": {
+ "type": "integer"
+ },
+ "name": {
+ "type": "string"
+ },
+ "size": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "ctime",
+ "docCount",
+ "hCtime",
+ "hMtime",
+ "hSize",
+ "id",
+ "mtime",
+ "name",
+ "size"
+ ],
+ "additionalProperties": false
+ },
+ "NotebookInfoData": {
+ "type": "object",
+ "properties": {
+ "boxInfo": {
"anyOf": [
{
- "type": "string"
+ "$ref": "#/$defs/NotebookInfo"
},
{
"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"
},
- "fontFamilyDisplay": {
+ "timeout": {
"anyOf": [
{
- "type": "string"
+ "type": "number"
},
{
"type": "null"
}
]
+ }
+ },
+ "required": [
+ "msg"
+ ],
+ "additionalProperties": false
+ },
+ "ObsidianAnalysisRequestInput": {
+ "type": "object",
+ "properties": {
+ "localPath": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "localPath"
+ ],
+ "additionalProperties": false
+ },
+ "ObsidianImportRequestInput": {
+ "type": "object",
+ "properties": {
+ "notebookName": {
+ "type": "string"
},
- "fontSize": {
+ "taskID": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "notebookName",
+ "taskID"
+ ],
+ "additionalProperties": false
+ },
+ "ObsidianTaskRequestInput": {
+ "type": "object",
+ "properties": {
+ "taskID": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "taskID"
+ ],
+ "additionalProperties": false
+ },
+ "ObsidianVaultAnalysis": {
+ "type": "object",
+ "properties": {
+ "ambiguousCount": {
+ "type": "integer"
+ },
+ "blockIDCount": {
+ "type": "integer"
+ },
+ "blockingErrors": {
"anyOf": [
{
- "type": "integer"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "fontSizeScrollZoom": {
+ "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": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "fontWeight": {
+ "wikiLinkCount": {
+ "type": "integer"
+ }
+ },
+ "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": {
+ "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": {
+ "type": "string"
+ },
+ "notebookName": {
+ "type": "string"
+ },
+ "preservedCommentCount": {
+ "type": "integer"
+ },
+ "preservedUnresolvedCount": {
+ "type": "integer"
+ },
+ "skippedPathCount": {
+ "type": "integer"
+ },
+ "syntheticParentCount": {
+ "type": "integer"
+ },
+ "unreferencedFileCount": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "convertedEmbedCount",
+ "convertedFootnoteCount",
+ "convertedLinkCount",
+ "importedAttachmentCount",
+ "incomplete",
+ "markdownCount",
+ "nameAdjustmentCount",
+ "notebookID",
+ "notebookName",
+ "preservedCommentCount",
+ "preservedUnresolvedCount",
+ "skippedPathCount",
+ "syntheticParentCount",
+ "unreferencedFileCount"
+ ],
+ "additionalProperties": false
+ },
+ "ObsidianVaultTask": {
+ "type": "object",
+ "properties": {
+ "analysis": {
+ "$ref": "#/$defs/ObsidianVaultAnalysis"
+ },
+ "detail": {
+ "type": "string"
+ },
+ "error": {
+ "type": "string"
+ },
+ "message": {
+ "type": "string"
+ },
+ "progress": {
+ "type": "integer"
+ },
+ "result": {
+ "$ref": "#/$defs/ObsidianVaultImportResult"
+ },
+ "state": {
+ "type": "string"
+ },
+ "taskID": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "message",
+ "progress",
+ "state",
+ "taskID"
+ ],
+ "additionalProperties": false
+ },
+ "OpenNotebookRequestInput": {
+ "type": "object",
+ "properties": {
+ "app": {
"anyOf": [
{
- "type": "integer"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "fullWidth": {
+ "notebook": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "notebook"
+ ],
+ "additionalProperties": false
+ },
+ "OpenRepoSnapshotFileRequestInput": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id"
+ ],
+ "additionalProperties": false
+ },
+ "OrderedListStartData": {
+ "type": "object",
+ "properties": {
+ "found": {
+ "type": "boolean"
+ },
+ "start": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "found",
+ "start"
+ ],
+ "additionalProperties": false
+ },
+ "OutlineRequestInput": {
+ "type": "object",
+ "properties": {
+ "id": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "generateHistoryInterval": {
+ "notebook": {
"anyOf": [
{
- "type": "integer"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "hashTagSearch": {
+ "preview": {
"anyOf": [
{
"type": "boolean"
@@ -23816,28 +27260,63 @@
"type": "null"
}
]
+ }
+ },
+ "additionalProperties": false
+ },
+ "OutlineStorageRequestInput": {
+ "type": "object",
+ "properties": {
+ "docID": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "docID"
+ ],
+ "additionalProperties": false
+ },
+ "OutlineStorageSetRequestInput": {
+ "type": "object",
+ "properties": {
+ "docID": {
+ "type": "string"
},
- "headingEmbedMode": {
- "anyOf": [
- {
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
- },
- "headingNumber": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
+ "val": {
+ "type": "object",
+ "additionalProperties": {
+ "$ref": "#/$defs/JSONValue"
+ }
+ }
+ },
+ "required": [
+ "docID",
+ "val"
+ ],
+ "additionalProperties": false
+ },
+ "PandocData": {
+ "type": "object",
+ "properties": {
+ "path": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "path"
+ ],
+ "additionalProperties": false
+ },
+ "PandocRequestInput": {
+ "type": "object",
+ "properties": {
+ "args": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
- "headingNumberFormat": {
+ "dir": {
"anyOf": [
{
"type": "string"
@@ -23846,18 +27325,17 @@
"type": "null"
}
]
- },
- "historyRetentionDays": {
- "anyOf": [
- {
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
- },
- "justify": {
+ }
+ },
+ "required": [
+ "args"
+ ],
+ "additionalProperties": false
+ },
+ "PerformSyncRequestInput": {
+ "type": "object",
+ "properties": {
+ "mobileSwitch": {
"anyOf": [
{
"type": "boolean"
@@ -23867,117 +27345,188 @@
}
]
},
- "katexMacros": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
+ "upload": {
+ "type": "boolean"
+ }
+ },
+ "additionalProperties": false
+ },
+ "Petal": {
+ "type": "object",
+ "properties": {
+ "css": {
+ "type": "string"
},
- "keepLoadedContent": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
+ "disabledInPublish": {
+ "type": "boolean"
},
- "listItemDotNumberClickFocus": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
+ "disallowInstall": {
+ "type": "boolean"
},
- "listLogicalOutdent": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
+ "displayName": {
+ "type": "string"
},
- "markdown": {
- "anyOf": [
- {
- "$ref": "#/$defs/SettingMarkdownInput"
- },
- {
- "type": "null"
- }
- ]
+ "enabled": {
+ "type": "boolean"
},
- "onlySearchForDoc": {
+ "i18n": {
"anyOf": [
{
- "type": "boolean"
+ "type": "object",
+ "additionalProperties": {
+ "$ref": "#/$defs/JSONValue"
+ }
},
{
"type": "null"
}
]
},
- "pasteURLAutoConvert": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
+ "incompatible": {
+ "type": "boolean"
},
- "plantUMLServePath": {
+ "js": {
+ "type": "string"
+ },
+ "kernel": {
+ "$ref": "#/$defs/KernelPetal"
+ },
+ "name": {
+ "type": "string"
+ },
+ "userDisabledInPublish": {
+ "type": "boolean"
+ },
+ "version": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "css",
+ "disabledInPublish",
+ "disallowInstall",
+ "displayName",
+ "enabled",
+ "i18n",
+ "incompatible",
+ "js",
+ "kernel",
+ "name",
+ "userDisabledInPublish",
+ "version"
+ ],
+ "additionalProperties": false
+ },
+ "PinnedDoc": {
+ "type": "object",
+ "properties": {
+ "childrenSortMode": {
"anyOf": [
{
- "type": "string"
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "readOnly": {
+ "icon": {
+ "type": "string"
+ },
+ "id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "notebook": {
+ "type": "string"
+ },
+ "path": {
+ "type": "string"
+ },
+ "subFileCount": {
+ "type": "integer"
+ },
+ "unavailable": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "childrenSortMode",
+ "icon",
+ "id",
+ "name",
+ "notebook",
+ "path",
+ "subFileCount",
+ "unavailable"
+ ],
+ "additionalProperties": false
+ },
+ "PluginRPCError": {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer"
+ },
+ "data": {
+ "$ref": "#/$defs/JSONValue"
+ },
+ "message": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "message"
+ ],
+ "additionalProperties": false
+ },
+ "PluginRPCFailure": {
+ "type": "object",
+ "properties": {
+ "error": {
"anyOf": [
{
- "type": "boolean"
+ "$ref": "#/$defs/PluginRPCError"
},
{
"type": "null"
}
]
},
- "rtl": {
+ "id": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
- "type": "null"
- }
- ]
- },
- "spellcheck": {
- "anyOf": [
- {
- "type": "boolean"
+ "type": "number"
},
{
"type": "null"
}
]
},
- "spellcheckLanguages": {
+ "jsonrpc": {
+ "type": "string",
+ "enum": [
+ "2.0"
+ ]
+ }
+ },
+ "required": [
+ "error",
+ "id",
+ "jsonrpc"
+ ],
+ "additionalProperties": false
+ },
+ "PluginRPCMethod": {
+ "type": "object",
+ "properties": {
+ "descriptions": {
"anyOf": [
{
"type": "array",
@@ -23990,76 +27539,80 @@
}
]
},
- "virtualBlockRef": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "descriptions",
+ "name"
+ ],
+ "additionalProperties": false
+ },
+ "PluginRPCNotification": {
+ "type": "object",
+ "properties": {
+ "jsonrpc": {
+ "type": "string",
+ "enum": [
+ "2.0"
]
},
- "virtualBlockRefExclude": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
+ "method": {
+ "type": "string"
},
- "virtualBlockRefInclude": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
+ "params": {
+ "$ref": "#/$defs/JSONValue"
}
},
+ "required": [
+ "jsonrpc",
+ "method"
+ ],
"additionalProperties": false
},
- "SetEntryVisibilityRequestInput": {
+ "PluginRPCRequestFieldsInput": {
"type": "object",
"properties": {
- "active": {
+ "id": {
"anyOf": [
{
"type": "string"
},
{
- "type": "null"
- }
- ]
- },
- "profiles": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/SettingEntryVisibilityProfileInput"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "number"
},
{
"type": "null"
}
]
},
- "version": {
+ "jsonrpc": {
+ "type": "string",
+ "enum": [
+ "2.0"
+ ]
+ },
+ "method": {
+ "type": "string"
+ },
+ "params": {
"anyOf": [
{
- "type": "integer"
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/JSONValue"
+ }
+ },
+ {
+ "type": "object",
+ "additionalProperties": {
+ "$ref": "#/$defs/JSONValue"
+ }
+ }
+ ]
},
{
"type": "null"
@@ -24067,52 +27620,97 @@
]
}
},
+ "required": [
+ "jsonrpc",
+ "method"
+ ],
"additionalProperties": false
},
- "SetExportRequestInput": {
+ "PluginRPCSuccess": {
"type": "object",
"properties": {
- "addTitle": {
+ "id": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
- "type": "null"
- }
- ]
- },
- "blockEmbedMode": {
- "anyOf": [
- {
- "type": "integer"
+ "type": "number"
},
{
"type": "null"
}
]
},
- "blockRefMode": {
- "anyOf": [
- {
- "type": "integer"
- },
- {
- "type": "null"
- }
+ "jsonrpc": {
+ "type": "string",
+ "enum": [
+ "2.0"
]
},
- "blockRefTextLeft": {
+ "result": {
+ "$ref": "#/$defs/JSONValue"
+ }
+ },
+ "required": [
+ "id",
+ "jsonrpc",
+ "result"
+ ],
+ "additionalProperties": false
+ },
+ "PrepareRichTextRequestInput": {
+ "type": "object",
+ "properties": {
+ "assets": {
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/RichClipboardAssetInput"
+ }
+ }
+ },
+ "required": [
+ "assets"
+ ],
+ "additionalProperties": false
+ },
+ "PrependBlockRequestInput": {
+ "type": "object",
+ "properties": {
+ "data": {
+ "type": "string"
+ },
+ "dataType": {
+ "type": "string"
+ },
+ "parentID": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "data",
+ "dataType",
+ "parentID"
+ ],
+ "additionalProperties": false
+ },
+ "ProcessPDFRequestInput": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "merge": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "blockRefTextRight": {
+ "mergeContentHeadingMode": {
"anyOf": [
{
"type": "string"
@@ -24122,7 +27720,7 @@
}
]
},
- "docxTemplate": {
+ "mergeDocHeadingMode": {
"anyOf": [
{
"type": "string"
@@ -24132,27 +27730,120 @@
}
]
},
- "fileAnnotationRefMode": {
- "anyOf": [
- {
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
+ "path": {
+ "type": "string"
},
- "imageWatermarkDesc": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
+ "removeAssets": {
+ "type": "boolean"
+ },
+ "watermark": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "id",
+ "path",
+ "removeAssets",
+ "watermark"
+ ],
+ "additionalProperties": false
+ },
+ "PublishedBlockInfo": {
+ "type": "object",
+ "properties": {
+ "publishAccessRequired": {
+ "type": "boolean",
+ "enum": [
+ true
]
},
- "imageWatermarkStr": {
+ "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"
@@ -24161,58 +27852,133 @@
"type": "null"
}
]
- },
- "includeRelatedDocs": {
+ }
+ },
+ "additionalProperties": false
+ },
+ "RecentDocsRequestInput": {
+ "type": "object",
+ "properties": {
+ "sortBy": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
- },
- "includeSubDocs": {
+ }
+ },
+ "additionalProperties": false
+ },
+ "RecentDocsUpdateRequestInput": {
+ "type": "object",
+ "properties": {
+ "rootIDs": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
- },
- "inlineMemo": {
+ }
+ },
+ "additionalProperties": false
+ },
+ "RefDefs": {
+ "type": "object",
+ "properties": {
+ "defIDs": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "markdownYFM": {
+ "refID": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "defIDs",
+ "refID"
+ ],
+ "additionalProperties": false
+ },
+ "RefDefsData": {
+ "type": "object",
+ "properties": {
+ "refDefs": {
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/RefDefs"
+ }
+ }
+ },
+ "required": [
+ "refDefs"
+ ],
+ "additionalProperties": false
+ },
+ "RefIDsData": {
+ "type": "object",
+ "properties": {
+ "originalRefBlockIDs": {
"anyOf": [
{
- "type": "boolean"
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "pandocBin": {
+ "refDefs": {
"anyOf": [
{
- "type": "string"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/RefDefs"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
- },
- "pandocParams": {
+ }
+ },
+ "required": [
+ "originalRefBlockIDs",
+ "refDefs"
+ ],
+ "additionalProperties": false
+ },
+ "RefIDsRequestInput": {
+ "type": "object",
+ "properties": {
+ "id": {
"anyOf": [
{
"type": "string"
@@ -24222,17 +27988,20 @@
}
]
},
- "paragraphBeginningSpace": {
+ "ids": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "pdfFooter": {
+ "notebook": {
"anyOf": [
{
"type": "string"
@@ -24241,8 +28010,17 @@
"type": "null"
}
]
+ }
+ },
+ "additionalProperties": false
+ },
+ "RefTextQueryRequestInput": {
+ "type": "object",
+ "properties": {
+ "anchor": {
+ "type": "string"
},
- "pdfWatermarkDesc": {
+ "notebook": {
"anyOf": [
{
"type": "string"
@@ -24251,18 +28029,54 @@
"type": "null"
}
]
+ }
+ },
+ "required": [
+ "anchor"
+ ],
+ "additionalProperties": false
+ },
+ "RefreshBacklinkRequestInput": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id"
+ ],
+ "additionalProperties": false
+ },
+ "RemoveAttributeViewBlocksRequestInput": {
+ "type": "object",
+ "properties": {
+ "avID": {
+ "type": "string"
},
- "pdfWatermarkStr": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
+ "srcIDs": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ },
+ "required": [
+ "avID",
+ "srcIDs"
+ ],
+ "additionalProperties": false
+ },
+ "RemoveAttributeViewKeyRequestInput": {
+ "type": "object",
+ "properties": {
+ "avID": {
+ "type": "string"
},
- "removeAssetsID": {
+ "keyID": {
+ "type": "string"
+ },
+ "removeRelationDest": {
"anyOf": [
{
"type": "boolean"
@@ -24271,8 +28085,54 @@
"type": "null"
}
]
- },
- "tagCloseMarker": {
+ }
+ },
+ "required": [
+ "avID",
+ "keyID"
+ ],
+ "additionalProperties": false
+ },
+ "RemoveBookmarkRequestInput": {
+ "type": "object",
+ "properties": {
+ "bookmark": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "bookmark"
+ ],
+ "additionalProperties": false
+ },
+ "RemoveCloudRepoTagSnapshotRequestInput": {
+ "type": "object",
+ "properties": {
+ "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": "string"
@@ -24282,33 +28142,176 @@
}
]
},
- "tagOpenMarker": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
+ "path": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "path"
+ ],
+ "additionalProperties": false
+ },
+ "RemoveRepoTagSnapshotRequestInput": {
+ "type": "object",
+ "properties": {
+ "tag": {
+ "type": "string"
}
},
+ "required": [
+ "tag"
+ ],
"additionalProperties": false
},
- "SetFiletreeRequestInput": {
+ "RemoveShorthandsRequestInput": {
"type": "object",
"properties": {
- "allowCreateDeeper": {
+ "ids": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ },
+ "required": [
+ "ids"
+ ],
+ "additionalProperties": false
+ },
+ "RemoveTagRequestInput": {
+ "type": "object",
+ "properties": {
+ "label": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "label"
+ ],
+ "additionalProperties": false
+ },
+ "RemoveUnusedAttributeViewRequestInput": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id"
+ ],
+ "additionalProperties": false
+ },
+ "RenameAssetRequestInput": {
+ "type": "object",
+ "properties": {
+ "newName": {
+ "type": "string"
+ },
+ "oldPath": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "newName",
+ "oldPath"
+ ],
+ "additionalProperties": false
+ },
+ "RenameBookmarkRequestInput": {
+ "type": "object",
+ "properties": {
+ "newBookmark": {
+ "type": "string"
+ },
+ "oldBookmark": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "newBookmark",
+ "oldBookmark"
+ ],
+ "additionalProperties": false
+ },
+ "RenameFileRequestInput": {
+ "type": "object",
+ "properties": {
+ "newPath": {
+ "type": "string"
+ },
+ "path": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "newPath",
+ "path"
+ ],
+ "additionalProperties": false
+ },
+ "RenameNotebookRequestInput": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string"
+ },
+ "notebook": {
+ "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
+ },
+ "RenderAttributeViewRequestInput": {
+ "type": "object",
+ "properties": {
+ "blockID": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "alwaysSelectOpenedFile": {
+ "createIfNotExist": {
"anyOf": [
{
"type": "boolean"
@@ -24318,27 +28321,30 @@
}
]
},
- "boxDocEnabled": {
+ "groupPaging": {
"anyOf": [
{
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
- },
- "closeTabOnDoubleClick": {
- "anyOf": [
- {
- "type": "boolean"
+ "type": "object",
+ "additionalProperties": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVGroupPagingInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
},
- "closeTabsOnStart": {
+ "id": {
+ "type": "string"
+ },
+ "ignoreRows": {
"anyOf": [
{
"type": "boolean"
@@ -24348,37 +28354,37 @@
}
]
},
- "createDocAtTop": {
+ "initialLayout": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "docCreateSaveBox": {
+ "page": {
"anyOf": [
{
- "type": "string"
+ "type": "number"
},
{
"type": "null"
}
]
},
- "docCreateSavePath": {
+ "pageSize": {
"anyOf": [
{
- "type": "string"
+ "type": "number"
},
{
"type": "null"
}
]
},
- "docCreateTemplatePath": {
+ "query": {
"anyOf": [
{
"type": "string"
@@ -24388,87 +28394,112 @@
}
]
},
- "docIconClickExpand": {
+ "targetGroupID": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "largeFileWarningSize": {
+ "targetItemID": {
"anyOf": [
{
- "type": "integer"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "maxListCount": {
+ "viewID": {
"anyOf": [
{
- "type": "integer"
+ "type": "string"
},
{
"type": "null"
}
]
- },
- "maxOpenTabCount": {
+ }
+ },
+ "required": [
+ "id"
+ ],
+ "additionalProperties": false
+ },
+ "RenderHistoryAttributeViewRequestInput": {
+ "type": "object",
+ "properties": {
+ "blockID": {
"anyOf": [
{
- "type": "integer"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "noSplitScreenWhenOpenTab": {
+ "carrierViewID": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "openFilesUseCurrentTab": {
+ "created": {
+ "type": "string"
+ },
+ "groupPaging": {
"anyOf": [
{
- "type": "boolean"
+ "type": "object",
+ "additionalProperties": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVGroupPagingInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
},
- "parentDocClickExpand": {
+ "id": {
+ "type": "string"
+ },
+ "page": {
"anyOf": [
{
- "type": "boolean"
+ "type": "number"
},
{
"type": "null"
}
]
},
- "recentDocsMaxListCount": {
+ "pageSize": {
"anyOf": [
{
- "type": "integer"
+ "type": "number"
},
{
"type": "null"
}
]
},
- "refCreateSaveBox": {
+ "query": {
"anyOf": [
{
"type": "string"
@@ -24478,7 +28509,7 @@
}
]
},
- "refCreateSavePath": {
+ "viewID": {
"anyOf": [
{
"type": "string"
@@ -24487,18 +28518,28 @@
"type": "null"
}
]
- },
- "removeDocWithoutConfirm": {
+ }
+ },
+ "required": [
+ "created",
+ "id"
+ ],
+ "additionalProperties": false
+ },
+ "RenderSnapshotAttributeViewRequestInput": {
+ "type": "object",
+ "properties": {
+ "blockID": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "shorthandSaveBox": {
+ "carrierViewID": {
"anyOf": [
{
"type": "string"
@@ -24508,7 +28549,13 @@
}
]
},
- "shorthandSavePath": {
+ "id": {
+ "type": "string"
+ },
+ "snapshot": {
+ "type": "string"
+ },
+ "viewID": {
"anyOf": [
{
"type": "string"
@@ -24517,38 +28564,68 @@
"type": "null"
}
]
+ }
+ },
+ "required": [
+ "id",
+ "snapshot"
+ ],
+ "additionalProperties": false
+ },
+ "RenderSprigRequestInput": {
+ "type": "object",
+ "properties": {
+ "template": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "template"
+ ],
+ "additionalProperties": false
+ },
+ "RenderTemplateData": {
+ "type": "object",
+ "properties": {
+ "content": {
+ "type": "string"
},
- "sort": {
- "anyOf": [
- {
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
+ "docTreePlan": {
+ "$ref": "#/$defs/TemplatePlan"
},
- "tabStartupMode": {
- "anyOf": [
- {
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
+ "path": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "content",
+ "path"
+ ],
+ "additionalProperties": false
+ },
+ "RenderTemplateRequestInput": {
+ "type": "object",
+ "properties": {
+ "content": {
+ "type": "string"
},
- "useSVGDefaultIcon": {
+ "id": {
+ "type": "string"
+ },
+ "mode": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "useSingleLineSave": {
+ "path": {
+ "type": "string"
+ },
+ "preview": {
"anyOf": [
{
"type": "boolean"
@@ -24559,135 +28636,232 @@
]
}
},
+ "required": [
+ "id",
+ "path"
+ ],
"additionalProperties": false
},
- "SetFlashcardRequestInput": {
+ "ReorderData": {
"type": "object",
"properties": {
- "blockquote": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
+ "changed": {
+ "type": "boolean"
},
- "callout": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
+ "notebook": {
+ "type": "string"
},
- "deck": {
+ "parentPath": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "changed"
+ ],
+ "additionalProperties": false
+ },
+ "ReorderNotebooksRequestInput": {
+ "type": "object",
+ "properties": {
+ "position": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "heading": {
+ "sourceIDs": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "list": {
+ "targetID": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
+ }
+ },
+ "additionalProperties": false
+ },
+ "RepoCloudSnapshotsData": {
+ "type": "object",
+ "properties": {
+ "pageCount": {
+ "type": "integer"
},
- "mark": {
+ "snapshots": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/RepoLog"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
},
- "maximumInterval": {
+ "totalCount": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "pageCount",
+ "snapshots",
+ "totalCount"
+ ],
+ "additionalProperties": false
+ },
+ "RepoCloudTagsData": {
+ "type": "object",
+ "properties": {
+ "snapshots": {
"anyOf": [
{
- "type": "integer"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/RepoLog"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
- },
- "newCardLimit": {
+ }
+ },
+ "required": [
+ "snapshots"
+ ],
+ "additionalProperties": false
+ },
+ "RepoDiffData": {
+ "type": "object",
+ "properties": {
+ "addsLeft": {
"anyOf": [
{
- "type": "integer"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/RepoDiffFile"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
},
- "requestRetention": {
+ "left": {
"anyOf": [
{
- "type": "number"
+ "$ref": "#/$defs/RepoDiffIndex"
},
{
"type": "null"
}
]
},
- "reviewCardLimit": {
+ "removesRight": {
"anyOf": [
{
- "type": "integer"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/RepoDiffFile"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
},
- "reviewMode": {
+ "right": {
"anyOf": [
{
- "type": "integer"
+ "$ref": "#/$defs/RepoDiffIndex"
},
{
"type": "null"
}
]
},
- "superBlock": {
+ "updatesLeft": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/RepoDiffFile"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
},
- "weights": {
+ "updatesRight": {
"anyOf": [
{
- "type": "string"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/RepoDiffFile"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
@@ -24695,609 +28869,1321 @@
]
}
},
- "additionalProperties": false
- },
- "SetGraphConfRequestInput": {
- "type": "object",
- "properties": {
- "conf": {
- "$ref": "#/$defs/GraphConfigurationFieldsInput"
- },
- "type": {
- "type": "string"
- }
- },
"required": [
- "conf",
- "type"
+ "addsLeft",
+ "left",
+ "removesRight",
+ "right",
+ "updatesLeft",
+ "updatesRight"
],
"additionalProperties": false
},
- "SetInlineStylesRequestInput": {
+ "RepoDiffFile": {
"type": "object",
"properties": {
- "app": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
+ "fileID": {
+ "type": "string"
},
- "av": {
- "anyOf": [
- {
- "$ref": "#/$defs/InlineStyleAVInput"
- },
- {
- "type": "null"
- }
- ]
+ "hPath": {
+ "type": "string"
},
- "builtin": {
- "anyOf": [
- {
- "$ref": "#/$defs/InlineStyleBuiltinInput"
- },
- {
- "type": "null"
- }
- ]
+ "hSize": {
+ "type": "string"
},
- "order": {
- "anyOf": [
- {
- "$ref": "#/$defs/InlineStyleOrderInput"
- },
- {
- "type": "null"
- }
- ]
+ "indexID": {
+ "type": "string"
},
- "styles": {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/InlineStyleInput"
- },
- {
- "type": "null"
- }
- ]
- }
+ "path": {
+ "type": "string"
},
- "version": {
- "type": "number"
+ "title": {
+ "type": "string"
+ },
+ "updated": {
+ "type": "integer"
}
},
"required": [
- "styles",
- "version"
+ "fileID",
+ "hSize",
+ "indexID",
+ "path",
+ "title",
+ "updated"
],
"additionalProperties": false
},
- "SetNotebookConfRequestInput": {
+ "RepoDiffIndex": {
"type": "object",
"properties": {
- "conf": {
- "anyOf": [
- {
- "$ref": "#/$defs/NotebookConfPatchInput"
- },
- {
- "type": "null"
- }
- ]
+ "created": {
+ "type": "integer"
},
- "notebook": {
+ "id": {
"type": "string"
}
},
"required": [
- "notebook"
+ "created",
+ "id"
],
"additionalProperties": false
},
- "SetNotebookIconRequestInput": {
+ "RepoDocHistory": {
"type": "object",
"properties": {
- "icon": {
+ "fileID": {
"type": "string"
},
- "notebook": {
+ "hSize": {
+ "type": "string"
+ },
+ "indexID": {
"type": "string"
+ },
+ "title": {
+ "type": "string"
+ },
+ "updated": {
+ "type": "integer"
}
},
"required": [
- "icon",
- "notebook"
+ "fileID",
+ "hSize",
+ "indexID",
+ "title",
+ "updated"
],
"additionalProperties": false
},
- "SetPetalEnabledRequestInput": {
+ "RepoDocHistoryData": {
"type": "object",
"properties": {
- "app": {
+ "files": {
"anyOf": [
{
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "enabled": {
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/RepoDocHistory"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "packageName": {
- "type": "string"
+ "pageCount": {
+ "type": "integer"
+ },
+ "totalCount": {
+ "type": "integer"
}
},
"required": [
- "enabled",
- "packageName"
+ "files",
+ "pageCount",
+ "totalCount"
],
"additionalProperties": false
},
- "SetPetalPublishEnabledRequestInput": {
+ "RepoExportData": {
"type": "object",
"properties": {
- "enabled": {
- "type": "boolean"
- },
- "packageName": {
+ "path": {
"type": "string"
}
},
"required": [
- "enabled",
- "packageName"
+ "path"
],
"additionalProperties": false
},
- "SetPublishRequestInput": {
+ "RepoFile": {
"type": "object",
"properties": {
- "auth": {
+ "chunks": {
"anyOf": [
{
- "$ref": "#/$defs/SettingBasicAuthInput"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "enable": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
+ "id": {
+ "type": "string"
},
- "port": {
- "anyOf": [
- {
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
+ "path": {
+ "type": "string"
+ },
+ "size": {
+ "type": "integer"
+ },
+ "updated": {
+ "type": "integer"
}
},
+ "required": [
+ "chunks",
+ "id",
+ "path",
+ "size",
+ "updated"
+ ],
"additionalProperties": false
},
- "SetRepoIndexRetentionDaysRequestInput": {
+ "RepoKeyData": {
"type": "object",
"properties": {
- "days": {
- "type": "number"
+ "key": {
+ "type": "string"
}
},
"required": [
- "days"
+ "key"
],
"additionalProperties": false
},
- "SetRetentionIndexesDailyRequestInput": {
+ "RepoLog": {
"type": "object",
"properties": {
- "indexes": {
- "type": "number"
+ "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"
+ },
+ "size": {
+ "type": "integer"
+ },
+ "systemID": {
+ "type": "string"
+ },
+ "systemName": {
+ "type": "string"
+ },
+ "systemOS": {
+ "type": "string"
+ },
+ "tag": {
+ "type": "string"
}
},
"required": [
- "indexes"
+ "count",
+ "created",
+ "files",
+ "hCreated",
+ "hSize",
+ "hTagUpdated",
+ "id",
+ "memo",
+ "size",
+ "systemID",
+ "systemName",
+ "systemOS",
+ "tag"
],
"additionalProperties": false
},
- "SetRiffCardsDueRequestInput": {
+ "RepoOpenFileData": {
"type": "object",
"properties": {
- "cardDues": {
- "type": "array",
- "items": {
- "$ref": "#/$defs/RiffCardDueInput"
- }
+ "content": {
+ "type": "string"
+ },
+ "displayInText": {
+ "type": "boolean"
+ },
+ "title": {
+ "type": "string"
+ },
+ "updated": {
+ "type": "integer"
}
},
"required": [
- "cardDues"
+ "content",
+ "displayInText",
+ "title",
+ "updated"
],
"additionalProperties": false
},
- "SetSearchRequestInput": {
+ "RepoSearchData": {
"type": "object",
"properties": {
- "alias": {
+ "files": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/RepoDiffFile"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
},
- "audioBlock": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
+ "pageCount": {
+ "type": "integer"
},
- "backlinkMentionAlias": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
+ "totalCount": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "files",
+ "pageCount",
+ "totalCount"
+ ],
+ "additionalProperties": false
+ },
+ "RepoSnapshot": {
+ "type": "object",
+ "properties": {
+ "count": {
+ "type": "integer"
},
- "backlinkMentionAnchor": {
+ "created": {
+ "type": "integer"
+ },
+ "files": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/RepoFile"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
},
- "backlinkMentionDoc": {
+ "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": {
+ "type": "string"
+ },
+ "typesCount": {
"anyOf": [
{
- "type": "boolean"
+ "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"
+ ],
+ "additionalProperties": false
+ },
+ "RepoSnapshotsData": {
+ "type": "object",
+ "properties": {
+ "pageCount": {
+ "type": "integer"
},
- "backlinkMentionKeywordsLimit": {
+ "snapshots": {
"anyOf": [
{
- "type": "integer"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/RepoSnapshot"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
},
- "backlinkMentionName": {
+ "totalCount": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "pageCount",
+ "snapshots",
+ "totalCount"
+ ],
+ "additionalProperties": false
+ },
+ "RepoTagsData": {
+ "type": "object",
+ "properties": {
+ "snapshots": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/RepoSnapshot"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
+ }
+ },
+ "required": [
+ "snapshots"
+ ],
+ "additionalProperties": false
+ },
+ "RepoTypeCount": {
+ "type": "object",
+ "properties": {
+ "count": {
+ "type": "integer"
},
- "blockquote": {
+ "type": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "count",
+ "type"
+ ],
+ "additionalProperties": false
+ },
+ "ResetGraphData": {
+ "type": "object",
+ "properties": {
+ "conf": {
+ "$ref": "#/$defs/GlobalGraphConf"
+ }
+ },
+ "required": [
+ "conf"
+ ],
+ "additionalProperties": false
+ },
+ "ResetLocalGraphData": {
+ "type": "object",
+ "properties": {
+ "conf": {
+ "$ref": "#/$defs/LocalGraphConf"
+ }
+ },
+ "required": [
+ "conf"
+ ],
+ "additionalProperties": false
+ },
+ "ResetRiffCardsRequestInput": {
+ "type": "object",
+ "properties": {
+ "blockIDs": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "callout": {
+ "deckID": {
+ "type": "string"
+ },
+ "id": {
+ "type": "string"
+ },
+ "type": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "deckID",
+ "id",
+ "type"
+ ],
+ "additionalProperties": false
+ },
+ "ReviewRiffCardRequestInput": {
+ "type": "object",
+ "properties": {
+ "cardID": {
+ "type": "string"
+ },
+ "deckID": {
+ "type": "string"
+ },
+ "rating": {
+ "type": "number"
+ },
+ "reviewedCards": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/RiffReviewedCardInput"
+ }
},
{
"type": "null"
}
]
+ }
+ },
+ "required": [
+ "cardID",
+ "deckID",
+ "rating"
+ ],
+ "additionalProperties": false
+ },
+ "RichClipboardAssetInput": {
+ "type": "object",
+ "properties": {
+ "box": {
+ "type": "string"
},
- "caseSensitive": {
+ "index": {
+ "type": "integer"
+ },
+ "path": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "index",
+ "path"
+ ],
+ "additionalProperties": false
+ },
+ "RichClipboardPrepared": {
+ "type": "object",
+ "properties": {
+ "assets": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/RichClipboardPreparedAsset"
+ }
},
{
"type": "null"
}
]
},
- "codeBlock": {
+ "batch": {
+ "type": "string"
+ },
+ "groups": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
- },
- "databaseBlock": {
+ }
+ },
+ "required": [
+ "assets",
+ "batch",
+ "groups"
+ ],
+ "additionalProperties": false
+ },
+ "RichClipboardPreparedAsset": {
+ "type": "object",
+ "properties": {
+ "index": {
+ "type": "integer"
+ },
+ "path": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "index",
+ "path"
+ ],
+ "additionalProperties": false
+ },
+ "RiffBlockIDsRequestInput": {
+ "type": "object",
+ "properties": {
+ "blockIDs": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ },
+ "required": [
+ "blockIDs"
+ ],
+ "additionalProperties": false
+ },
+ "RiffBlocksData": {
+ "type": "object",
+ "properties": {
+ "blocks": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SearchBlock"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
+ }
+ },
+ "required": [
+ "blocks"
+ ],
+ "additionalProperties": false
+ },
+ "RiffCardDueInput": {
+ "type": "object",
+ "properties": {
+ "due": {
+ "type": "string"
},
- "document": {
+ "id": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "due",
+ "id"
+ ],
+ "additionalProperties": false
+ },
+ "RiffCardRequestInput": {
+ "type": "object",
+ "properties": {
+ "cardID": {
+ "type": "string"
+ },
+ "deckID": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "cardID",
+ "deckID"
+ ],
+ "additionalProperties": false
+ },
+ "RiffCardsData": {
+ "type": "object",
+ "properties": {
+ "blocks": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SearchBlock"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
},
- "embedBlock": {
+ "pageCount": {
+ "type": "integer"
+ },
+ "total": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "blocks",
+ "pageCount",
+ "total"
+ ],
+ "additionalProperties": false
+ },
+ "RiffCardsRequestInput": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "page": {
+ "type": "number"
+ },
+ "pageSize": {
"anyOf": [
{
- "type": "boolean"
+ "type": "number"
},
{
"type": "null"
}
]
+ }
+ },
+ "required": [
+ "id",
+ "page"
+ ],
+ "additionalProperties": false
+ },
+ "RiffDeck": {
+ "type": "object",
+ "properties": {
+ "created": {
+ "type": "string"
},
- "hanSensitive": {
+ "id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "size": {
+ "type": "integer"
+ },
+ "updated": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "created",
+ "id",
+ "name",
+ "size",
+ "updated"
+ ],
+ "additionalProperties": false
+ },
+ "RiffDeckCardsRequestInput": {
+ "type": "object",
+ "properties": {
+ "blockIDs": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "deckID": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "blockIDs",
+ "deckID"
+ ],
+ "additionalProperties": false
+ },
+ "RiffDeckRequestInput": {
+ "type": "object",
+ "properties": {
+ "deckID": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "deckID"
+ ],
+ "additionalProperties": false
+ },
+ "RiffDueCard": {
+ "type": "object",
+ "properties": {
+ "blockID": {
+ "type": "string"
+ },
+ "cardID": {
+ "type": "string"
+ },
+ "deckID": {
+ "type": "string"
+ },
+ "lapses": {
+ "type": "integer"
+ },
+ "lastReview": {
+ "type": "integer"
+ },
+ "nextDues": {
"anyOf": [
{
- "type": "boolean"
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "heading": {
+ "reps": {
+ "type": "integer"
+ },
+ "state": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "blockID",
+ "cardID",
+ "deckID",
+ "lapses",
+ "lastReview",
+ "nextDues",
+ "reps",
+ "state"
+ ],
+ "additionalProperties": false
+ },
+ "RiffDueCardsData": {
+ "type": "object",
+ "properties": {
+ "cards": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/RiffDueCard"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
},
- "htmlBlock": {
+ "unreviewedCount": {
+ "type": "integer"
+ },
+ "unreviewedNewCardCount": {
+ "type": "integer"
+ },
+ "unreviewedOldCardCount": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "cards",
+ "unreviewedCount",
+ "unreviewedNewCardCount",
+ "unreviewedOldCardCount"
+ ],
+ "additionalProperties": false
+ },
+ "RiffDueCardsRequestInput": {
+ "type": "object",
+ "properties": {
+ "deckID": {
+ "type": "string"
+ },
+ "reviewedCards": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/RiffReviewedCardInput"
+ }
},
{
"type": "null"
}
]
+ }
+ },
+ "required": [
+ "deckID"
+ ],
+ "additionalProperties": false
+ },
+ "RiffNotebookDueCardsRequestInput": {
+ "type": "object",
+ "properties": {
+ "notebook": {
+ "type": "string"
},
- "ial": {
+ "reviewedCards": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/RiffReviewedCardInput"
+ }
},
{
"type": "null"
}
]
- },
- "iframeBlock": {
+ }
+ },
+ "required": [
+ "notebook"
+ ],
+ "additionalProperties": false
+ },
+ "RiffReviewedCardInput": {
+ "type": "object",
+ "properties": {
+ "cardID": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "cardID"
+ ],
+ "additionalProperties": false
+ },
+ "RiffTreeDueCardsRequestInput": {
+ "type": "object",
+ "properties": {
+ "reviewedCards": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/RiffReviewedCardInput"
+ }
},
{
"type": "null"
}
]
},
- "indexAssetPath": {
+ "rootID": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "rootID"
+ ],
+ "additionalProperties": false
+ },
+ "RollbackRepoSnapshotFileRequestInput": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id"
+ ],
+ "additionalProperties": false
+ },
+ "SQLQueryRequestInput": {
+ "type": "object",
+ "properties": {
+ "mode": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "limit": {
+ "stmt": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "stmt"
+ ],
+ "additionalProperties": false
+ },
+ "SaveTemplateRequestInput": {
+ "type": "object",
+ "properties": {
+ "databaseMode": {
+ "type": "string"
+ },
+ "directory": {
+ "type": "string"
+ },
+ "id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "overwrite": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "id",
+ "name",
+ "overwrite"
+ ],
+ "additionalProperties": false
+ },
+ "SearchAsset": {
+ "type": "object",
+ "properties": {
+ "hName": {
+ "type": "string"
+ },
+ "path": {
+ "type": "string"
+ },
+ "updated": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "hName",
+ "path",
+ "updated"
+ ],
+ "additionalProperties": false
+ },
+ "SearchAssetContentData": {
+ "type": "object",
+ "properties": {
+ "assetContents": {
"anyOf": [
{
- "type": "integer"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AssetContent"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
},
- "list": {
+ "matchedAssetCount": {
+ "type": "integer"
+ },
+ "pageCount": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "assetContents",
+ "matchedAssetCount",
+ "pageCount"
+ ],
+ "additionalProperties": false
+ },
+ "SearchAssetContentRequestInput": {
+ "type": "object",
+ "properties": {
+ "method": {
"anyOf": [
{
- "type": "boolean"
+ "type": "number"
},
{
"type": "null"
}
]
},
- "listItem": {
+ "orderBy": {
"anyOf": [
{
- "type": "boolean"
+ "type": "number"
},
{
"type": "null"
}
]
},
- "mathBlock": {
+ "page": {
"anyOf": [
{
- "type": "boolean"
+ "type": "number"
},
{
"type": "null"
}
]
},
- "memo": {
+ "pageSize": {
"anyOf": [
{
- "type": "boolean"
+ "type": "number"
},
{
"type": "null"
}
]
},
- "name": {
+ "query": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "paragraph": {
+ "types": {
"anyOf": [
{
- "type": "boolean"
+ "type": "object",
+ "additionalProperties": {
+ "type": "boolean"
+ }
},
{
"type": "null"
}
]
- },
- "superBlock": {
+ }
+ },
+ "additionalProperties": false
+ },
+ "SearchAssetRequestInput": {
+ "type": "object",
+ "properties": {
+ "exts": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "tabItem": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
- },
- "table": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
- },
- "tabs": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
- },
- "videoBlock": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
- },
- "virtualRefAlias": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
+ "k": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "k"
+ ],
+ "additionalProperties": false
+ },
+ "SearchAttributeViewRelationKeyRequestInput": {
+ "type": "object",
+ "properties": {
+ "avID": {
+ "type": "string"
},
- "virtualRefAnchor": {
+ "keyword": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "avID",
+ "keyword"
+ ],
+ "additionalProperties": false
+ },
+ "SearchAttributeViewRequestInput": {
+ "type": "object",
+ "properties": {
+ "avID": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "virtualRefDoc": {
+ "blockID": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "virtualRefName": {
+ "excludes": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "widgetBlock": {
+ "includeViewMatches": {
"anyOf": [
{
"type": "boolean"
@@ -25306,114 +30192,49 @@
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "SetSecretsRequestInput": {
- "type": "object",
- "properties": {
- "items": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/SettingSecretInput"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "additionalProperties": false
- },
- "SetSnapshotMemoRequestInput": {
- "type": "object",
- "properties": {
- "id": {
- "type": "string"
},
- "memo": {
+ "keyword": {
"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"
+ "keyword"
],
"additionalProperties": false
},
- "SetSyncWebDAVRequestInput": {
+ "SearchAttributeViewRollupDestKeysRequestInput": {
"type": "object",
"properties": {
- "webdav": {
- "$ref": "#/$defs/SyncWebDAVInput"
+ "avID": {
+ "type": "string"
+ },
+ "keyword": {
+ "type": "string"
}
},
"required": [
- "webdav"
+ "avID",
+ "keyword"
],
"additionalProperties": false
},
- "SetVariablesRequestInput": {
+ "SearchBlock": {
"type": "object",
"properties": {
- "items": {
+ "alias": {
+ "type": "string"
+ },
+ "box": {
+ "type": "string"
+ },
+ "children": {
"anyOf": [
{
"type": "array",
"items": {
"anyOf": [
{
- "$ref": "#/$defs/SettingVariableInput"
+ "$ref": "#/$defs/SearchBlock"
},
{
"type": "null"
@@ -25425,71 +30246,82 @@
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "SettingAI": {
- "type": "object",
- "properties": {
- "agent": {
- "anyOf": [
- {
- "$ref": "#/$defs/SettingAgent"
- },
- {
- "type": "null"
- }
- ]
},
- "editing": {
- "anyOf": [
- {
- "$ref": "#/$defs/SettingEditing"
- },
- {
- "type": "null"
- }
- ]
+ "content": {
+ "type": "string"
},
- "embedding": {
- "anyOf": [
- {
- "$ref": "#/$defs/SettingEmbedding"
- },
- {
- "type": "null"
- }
- ]
+ "count": {
+ "type": "integer"
},
- "imageGeneration": {
- "anyOf": [
- {
- "$ref": "#/$defs/SettingImageGeneration"
- },
- {
- "type": "null"
- }
- ]
+ "created": {
+ "type": "string"
},
- "mcp": {
+ "defID": {
+ "type": "string"
+ },
+ "defPath": {
+ "type": "string"
+ },
+ "depth": {
+ "type": "integer"
+ },
+ "fcontent": {
+ "type": "string"
+ },
+ "folded": {
+ "type": "boolean"
+ },
+ "hPath": {
+ "type": "string"
+ },
+ "ial": {
"anyOf": [
{
- "$ref": "#/$defs/SettingMCP"
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "providers": {
+ "id": {
+ "type": "string"
+ },
+ "markdown": {
+ "type": "string"
+ },
+ "memo": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "number": {
+ "type": "string"
+ },
+ "parentID": {
+ "type": "string"
+ },
+ "path": {
+ "type": "string"
+ },
+ "refCount": {
+ "type": "integer"
+ },
+ "refText": {
+ "type": "string"
+ },
+ "refs": {
"anyOf": [
{
"type": "array",
"items": {
"anyOf": [
{
- "$ref": "#/$defs/SettingProvider"
+ "$ref": "#/$defs/SearchBlock"
},
{
"type": "null"
@@ -25502,165 +30334,167 @@
}
]
},
- "rerank": {
+ "riffCard": {
"anyOf": [
{
- "$ref": "#/$defs/SettingRerank"
+ "$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": [
- "agent",
- "editing",
- "embedding",
- "imageGeneration",
- "mcp",
- "providers",
- "rerank"
+ "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
},
- "SettingAgent": {
+ "SearchBlockCard": {
"type": "object",
"properties": {
- "approvalPolicy": {
- "anyOf": [
- {
- "$ref": "#/$defs/SettingApprovalPolicy"
- },
- {
- "type": "null"
- }
- ]
- },
- "capabilityPolicy": {
- "anyOf": [
- {
- "$ref": "#/$defs/SettingCapabilityPolicy"
- },
- {
- "type": "null"
- }
- ]
- },
- "confirmTimeout": {
- "type": "integer"
- },
- "maxCompletionTokens": {
- "type": "integer"
- },
- "maxRetries": {
- "type": "integer"
+ "due": {
+ "type": "string"
},
- "maxToolCallRounds": {
+ "lapses": {
"type": "integer"
},
- "modelId": {
+ "lastReview": {
"type": "string"
},
- "sessionTimeout": {
+ "reps": {
"type": "integer"
},
- "skills": {
- "anyOf": [
- {
- "$ref": "#/$defs/SettingAgentSkills"
- },
- {
- "type": "null"
- }
- ]
- },
- "streamIdleTimeout": {
+ "state": {
"type": "integer"
- },
- "temperature": {
- "type": "number"
}
},
"required": [
- "approvalPolicy",
- "capabilityPolicy",
- "confirmTimeout",
- "maxCompletionTokens",
- "maxRetries",
- "maxToolCallRounds",
- "modelId",
- "sessionTimeout",
- "skills",
- "streamIdleTimeout",
- "temperature"
+ "due",
+ "lapses",
+ "lastReview",
+ "reps",
+ "state"
],
"additionalProperties": false
},
- "SettingAgentInput": {
+ "SearchBlockRequestInput": {
"type": "object",
"properties": {
- "approvalPolicy": {
+ "groupBy": {
"anyOf": [
{
- "$ref": "#/$defs/SettingApprovalPolicyInput"
+ "type": "number"
},
{
"type": "null"
}
]
},
- "capabilityPolicy": {
+ "method": {
"anyOf": [
{
- "$ref": "#/$defs/SettingCapabilityPolicyInput"
+ "type": "number"
},
{
"type": "null"
}
]
},
- "confirmTimeout": {
+ "orderBy": {
"anyOf": [
{
- "type": "integer"
+ "type": "number"
},
{
"type": "null"
}
]
},
- "maxCompletionTokens": {
+ "page": {
"anyOf": [
{
- "type": "integer"
+ "type": "number"
},
{
"type": "null"
}
]
},
- "maxRetries": {
+ "pageSize": {
"anyOf": [
{
- "type": "integer"
+ "type": "number"
},
{
"type": "null"
}
]
},
- "maxToolCallRounds": {
+ "paths": {
"anyOf": [
{
- "type": "integer"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "modelId": {
+ "query": {
"anyOf": [
{
"type": "string"
@@ -25670,40 +30504,23 @@
}
]
},
- "sessionTimeout": {
- "anyOf": [
- {
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
- },
- "skills": {
- "anyOf": [
- {
- "$ref": "#/$defs/SettingAgentSkillsInput"
- },
- {
- "type": "null"
- }
- ]
- },
- "streamIdleTimeout": {
+ "subTypes": {
"anyOf": [
{
- "type": "integer"
+ "$ref": "#/$defs/SearchSubtypeFilterInput"
},
{
"type": "null"
}
]
},
- "temperature": {
+ "types": {
"anyOf": [
{
- "type": "number"
+ "type": "object",
+ "additionalProperties": {
+ "type": "boolean"
+ }
},
{
"type": "null"
@@ -25713,259 +30530,207 @@
},
"additionalProperties": false
},
- "SettingAgentSkills": {
+ "SearchBlocksData": {
"type": "object",
"properties": {
- "userEnabled": {
+ "blocks": {
"anyOf": [
{
"type": "array",
"items": {
- "type": "string"
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SearchBlock"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
{
"type": "null"
}
]
+ },
+ "matchedBlockCount": {
+ "type": "integer"
+ },
+ "matchedRootCount": {
+ "type": "integer"
+ },
+ "pageCount": {
+ "type": "integer"
}
},
"required": [
- "userEnabled"
+ "blocks",
+ "matchedBlockCount",
+ "matchedRootCount",
+ "pageCount"
],
"additionalProperties": false
},
- "SettingAgentSkillsInput": {
+ "SearchEmbedBlockRequestInput": {
"type": "object",
"properties": {
- "userEnabled": {
+ "breadcrumb": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "type": "boolean"
},
{
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "SettingAppearance": {
- "type": "object",
- "properties": {
- "bodyGradient": {
+ },
+ "embedBlockID": {
+ "type": "string"
+ },
+ "excludeIDs": {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "headingMode": {
"anyOf": [
{
- "$ref": "#/$defs/SettingBodyGradient"
+ "type": "number"
},
{
"type": "null"
}
]
},
- "closeButtonBehavior": {
- "type": "integer"
- },
- "codeBlockThemeDark": {
- "type": "string"
- },
- "codeBlockThemeLight": {
- "type": "string"
- },
- "darkThemes": {
+ "notebook": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/SettingAppearanceTheme"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "string"
},
{
"type": "null"
}
]
},
- "entryVisibility": {
+ "stmt": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "embedBlockID",
+ "excludeIDs",
+ "stmt"
+ ],
+ "additionalProperties": false
+ },
+ "SearchHeadingFilterInput": {
+ "type": "object",
+ "properties": {
+ "h1": {
"anyOf": [
{
- "$ref": "#/$defs/SettingEntryVisibility"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "globalFontFamilies": {
+ "h2": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/SettingEditorFont"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "hideStatusBar": {
- "type": "boolean"
- },
- "hideToolbar": {
- "type": "boolean"
- },
- "icon": {
- "type": "string"
- },
- "iconVer": {
- "type": "string"
- },
- "icons": {
+ "h3": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/SettingAppearanceIcon"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "lang": {
- "type": "string"
- },
- "lightThemes": {
+ "h4": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/SettingAppearanceTheme"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "mode": {
- "type": "integer"
- },
- "modeOS": {
- "type": "boolean"
- },
- "notifications": {
+ "h5": {
"anyOf": [
{
- "$ref": "#/$defs/SettingNotifications"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "statusBar": {
+ "h6": {
"anyOf": [
{
- "$ref": "#/$defs/SettingStatusBar"
+ "type": "boolean"
},
{
"type": "null"
}
]
- },
- "themeDark": {
- "type": "string"
- },
- "themeJS": {
- "type": "boolean"
- },
- "themeLight": {
- "type": "string"
- },
- "themeVer": {
- "type": "string"
}
},
- "required": [
- "bodyGradient",
- "closeButtonBehavior",
- "codeBlockThemeDark",
- "codeBlockThemeLight",
- "darkThemes",
- "entryVisibility",
- "globalFontFamilies",
- "hideStatusBar",
- "hideToolbar",
- "icon",
- "iconVer",
- "icons",
- "lang",
- "lightThemes",
- "mode",
- "modeOS",
- "notifications",
- "statusBar",
- "themeDark",
- "themeJS",
- "themeLight",
- "themeVer"
- ],
"additionalProperties": false
},
- "SettingAppearanceIcon": {
+ "SearchHistoryData": {
"type": "object",
"properties": {
- "label": {
- "type": "string"
+ "histories": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "name": {
- "type": "string"
+ "pageCount": {
+ "type": "integer"
+ },
+ "totalCount": {
+ "type": "integer"
}
},
"required": [
- "label",
- "name"
+ "histories",
+ "pageCount",
+ "totalCount"
],
"additionalProperties": false
},
- "SettingAppearanceIconInput": {
+ "SearchHistoryRequestInput": {
"type": "object",
"properties": {
- "label": {
+ "notebook": {
"anyOf": [
{
"type": "string"
@@ -25975,7 +30740,7 @@
}
]
},
- "name": {
+ "op": {
"anyOf": [
{
"type": "string"
@@ -25984,49 +30749,18 @@
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "SettingAppearanceTheme": {
- "type": "object",
- "properties": {
- "frontends": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "label": {
- "type": "string"
},
- "name": {
- "type": "string"
- }
- },
- "required": [
- "label",
- "name"
- ],
- "additionalProperties": false
- },
- "SettingAppearanceThemeInput": {
- "type": "object",
- "properties": {
- "frontends": {
+ "page": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "type": "number"
},
{
"type": "null"
}
]
},
- "label": {
+ "query": {
"anyOf": [
{
"type": "string"
@@ -26036,10 +30770,10 @@
}
]
},
- "name": {
+ "type": {
"anyOf": [
{
- "type": "string"
+ "type": "number"
},
{
"type": "null"
@@ -26049,26 +30783,45 @@
},
"additionalProperties": false
},
- "SettingApprovalPolicy": {
+ "SearchKeywordRequestInput": {
"type": "object",
"properties": {
- "default": {
+ "k": {
"type": "string"
+ }
+ },
+ "required": [
+ "k"
+ ],
+ "additionalProperties": false
+ },
+ "SearchListFilterInput": {
+ "type": "object",
+ "properties": {
+ "o": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "overrides": {
+ "t": {
"anyOf": [
{
- "type": "object",
- "additionalProperties": {
- "anyOf": [
- {
- "$ref": "#/$defs/SettingCapabilityApproval"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "u": {
+ "anyOf": [
+ {
+ "type": "boolean"
},
{
"type": "null"
@@ -26076,39 +30829,25 @@
]
}
},
- "required": [
- "default",
- "overrides"
- ],
"additionalProperties": false
},
- "SettingApprovalPolicyInput": {
+ "SearchPageRequestInput": {
"type": "object",
"properties": {
- "default": {
+ "page": {
"anyOf": [
{
- "type": "string"
+ "type": "number"
},
{
"type": "null"
}
]
},
- "overrides": {
+ "pageSize": {
"anyOf": [
{
- "type": "object",
- "additionalProperties": {
- "anyOf": [
- {
- "$ref": "#/$defs/SettingCapabilityApprovalInput"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "number"
},
{
"type": "null"
@@ -26118,34 +30857,110 @@
},
"additionalProperties": false
},
- "SettingAssetOpen": {
+ "SearchPath": {
"type": "object",
"properties": {
- "altClick": {
+ "blocks": {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SearchBlock"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "box": {
"type": "string"
},
- "click": {
+ "children": {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SearchPath"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "count": {
+ "type": "integer"
+ },
+ "created": {
"type": "string"
},
- "ctrlClick": {
+ "depth": {
+ "type": "integer"
+ },
+ "folded": {
+ "type": "boolean"
+ },
+ "hPath": {
"type": "string"
},
- "shiftClick": {
+ "id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "nodeType": {
+ "type": "string"
+ },
+ "number": {
+ "type": "string"
+ },
+ "subType": {
+ "type": "string"
+ },
+ "type": {
+ "type": "string"
+ },
+ "updated": {
"type": "string"
}
},
"required": [
- "altClick",
- "click",
- "ctrlClick",
- "shiftClick"
+ "box",
+ "count",
+ "created",
+ "depth",
+ "folded",
+ "hPath",
+ "id",
+ "name",
+ "nodeType",
+ "subType",
+ "type",
+ "updated"
],
"additionalProperties": false
},
- "SettingAssetOpenInput": {
+ "SearchPathRequestInput": {
"type": "object",
"properties": {
- "altClick": {
+ "path": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "path"
+ ],
+ "additionalProperties": false
+ },
+ "SearchRefBlockRequestInput": {
+ "type": "object",
+ "properties": {
+ "beforeLen": {
+ "type": "number"
+ },
+ "id": {
"anyOf": [
{
"type": "string"
@@ -26155,27 +30970,30 @@
}
]
},
- "click": {
+ "isDatabase": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "ctrlClick": {
+ "isSquareBrackets": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "shiftClick": {
+ "k": {
+ "type": "string"
+ },
+ "notebook": {
"anyOf": [
{
"type": "string"
@@ -26184,21 +31002,46 @@
"type": "null"
}
]
+ },
+ "reqId": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/JSONValue"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "rootID": {
+ "type": "string"
}
},
"additionalProperties": false
},
- "SettingBasicAuth": {
+ "SearchRefCorrelation": {
"type": "object",
"properties": {
- "accounts": {
+ "reqId": {
+ "$ref": "#/$defs/JSONValue"
+ }
+ },
+ "required": [
+ "reqId"
+ ],
+ "additionalProperties": false
+ },
+ "SearchRefResult": {
+ "type": "object",
+ "properties": {
+ "blocks": {
"anyOf": [
{
"type": "array",
"items": {
"anyOf": [
{
- "$ref": "#/$defs/SettingBasicAuthAccount"
+ "$ref": "#/$defs/SearchBlock"
},
{
"type": "null"
@@ -26211,63 +31054,76 @@
}
]
},
- "enable": {
+ "k": {
+ "type": "string"
+ },
+ "newDoc": {
"type": "boolean"
+ },
+ "reqId": {
+ "$ref": "#/$defs/JSONValue"
}
},
"required": [
- "accounts",
- "enable"
+ "blocks",
+ "k",
+ "newDoc",
+ "reqId"
],
"additionalProperties": false
},
- "SettingBasicAuthAccount": {
+ "SearchRepoFileRequestInput": {
"type": "object",
"properties": {
- "memo": {
- "type": "string"
- },
- "password": {
+ "keyword": {
"type": "string"
},
- "username": {
- "type": "string"
+ "page": {
+ "type": "number"
}
},
"required": [
- "memo",
- "password",
- "username"
+ "keyword",
+ "page"
],
"additionalProperties": false
},
- "SettingBasicAuthAccountInput": {
+ "SearchSubTypes": {
"type": "object",
"properties": {
- "memo": {
+ "heading": {
"anyOf": [
{
- "type": "string"
+ "type": "object",
+ "additionalProperties": {
+ "type": "boolean"
+ }
},
{
"type": "null"
}
]
},
- "password": {
+ "list": {
"anyOf": [
{
- "type": "string"
- },
- {
- "type": "null"
+ "type": "object",
+ "additionalProperties": {
+ "type": "boolean"
+ }
+ },
+ {
+ "type": "null"
}
]
},
- "username": {
+ "listItem": {
"anyOf": [
{
- "type": "string"
+ "type": "object",
+ "additionalProperties": {
+ "type": "boolean"
+ }
},
{
"type": "null"
@@ -26275,24 +31131,22 @@
]
}
},
+ "required": [
+ "heading",
+ "list",
+ "listItem"
+ ],
"additionalProperties": false
},
- "SettingBasicAuthInput": {
+ "SearchSubTypesInput": {
"type": "object",
"properties": {
- "accounts": {
+ "heading": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/SettingBasicAuthAccountInput"
- },
- {
- "type": "null"
- }
- ]
+ "type": "object",
+ "additionalProperties": {
+ "type": "boolean"
}
},
{
@@ -26300,88 +31154,26 @@
}
]
},
- "enable": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "additionalProperties": false
- },
- "SettingBazaar": {
- "type": "object",
- "properties": {
- "petalDisabled": {
- "type": "boolean"
- },
- "trust": {
- "type": "boolean"
- }
- },
- "required": [
- "petalDisabled",
- "trust"
- ],
- "additionalProperties": false
- },
- "SettingBodyGradient": {
- "type": "object",
- "properties": {
- "dark": {
- "$ref": "#/$defs/SettingBodyGradientColor"
- },
- "light": {
- "$ref": "#/$defs/SettingBodyGradientColor"
- },
- "mode": {
- "type": "string"
- }
- },
- "required": [
- "dark",
- "light",
- "mode"
- ],
- "additionalProperties": false
- },
- "SettingBodyGradientColor": {
- "type": "object",
- "properties": {
- "color": {
- "type": "string"
- },
- "opacity": {
- "type": "number"
- }
- },
- "required": [
- "color",
- "opacity"
- ],
- "additionalProperties": false
- },
- "SettingBodyGradientColorInput": {
- "type": "object",
- "properties": {
- "color": {
+ "list": {
"anyOf": [
{
- "type": "string"
+ "type": "object",
+ "additionalProperties": {
+ "type": "boolean"
+ }
},
{
"type": "null"
}
]
},
- "opacity": {
+ "listItem": {
"anyOf": [
{
- "type": "number"
+ "type": "object",
+ "additionalProperties": {
+ "type": "boolean"
+ }
},
{
"type": "null"
@@ -26391,33 +31183,33 @@
},
"additionalProperties": false
},
- "SettingBodyGradientInput": {
+ "SearchSubtypeFilterInput": {
"type": "object",
"properties": {
- "dark": {
+ "heading": {
"anyOf": [
{
- "$ref": "#/$defs/SettingBodyGradientColorInput"
+ "$ref": "#/$defs/SearchHeadingFilterInput"
},
{
"type": "null"
}
]
},
- "light": {
+ "list": {
"anyOf": [
{
- "$ref": "#/$defs/SettingBodyGradientColorInput"
+ "$ref": "#/$defs/SearchListFilterInput"
},
{
"type": "null"
}
]
},
- "mode": {
+ "listItem": {
"anyOf": [
{
- "type": "string"
+ "$ref": "#/$defs/SearchListFilterInput"
},
{
"type": "null"
@@ -26427,142 +31219,57 @@
},
"additionalProperties": false
},
- "SettingBootAppearance": {
+ "SearchTagData": {
"type": "object",
"properties": {
- "appearance": {
- "type": "string"
- },
- "backgroundColor": {
- "type": "string"
- },
- "displayName": {
+ "k": {
"type": "string"
},
- "enabled": {
- "type": "boolean"
- },
- "frontends": {
+ "tags": {
"type": "array",
"items": {
"type": "string"
}
- },
- "layers": {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/SettingBootAppearanceLayer"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "officialUI": {
- "$ref": "#/$defs/SettingBootAppearanceOfficialUI"
- },
- "provider": {
- "type": "string"
- },
- "style": {
- "type": "string"
- }
- },
- "required": [
- "enabled"
- ],
- "additionalProperties": false
- },
- "SettingBootAppearanceCurrent": {
- "type": "object",
- "properties": {
- "appearance": {
- "type": "string"
- },
- "provider": {
- "type": "string"
}
},
"required": [
- "appearance",
- "provider"
+ "k",
+ "tags"
],
"additionalProperties": false
},
- "SettingBootAppearanceLayer": {
+ "SearchTagRequestInput": {
"type": "object",
"properties": {
- "fit": {
- "type": "string"
- },
- "id": {
- "type": "string"
- },
- "position": {
- "type": "string"
- },
- "poster": {
- "type": "string"
- },
- "src": {
- "type": "string"
- },
- "type": {
+ "k": {
"type": "string"
}
},
"required": [
- "id",
- "src",
- "type"
+ "k"
],
"additionalProperties": false
},
- "SettingBootAppearanceOfficialUI": {
+ "SearchTemplateData": {
"type": "object",
"properties": {
- "progressColor": {
- "type": "string"
- },
- "showDetails": {
- "type": "boolean"
- },
- "showLogo": {
- "type": "boolean"
- },
- "textColor": {
- "type": "string"
- },
- "trackColor": {
+ "k": {
"type": "string"
- }
- },
- "required": [
- "showDetails",
- "showLogo"
- ],
- "additionalProperties": false
- },
- "SettingBootAppearanceRequestInput": {
- "type": "object",
- "properties": {
- "appearance": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
},
- "provider": {
+ "templates": {
"anyOf": [
{
- "type": "string"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SearchTemplateResult"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
@@ -26570,39 +31277,46 @@
]
}
},
+ "required": [
+ "k",
+ "templates"
+ ],
"additionalProperties": false
},
- "SettingBootAppearanceSelection": {
+ "SearchTemplateResult": {
"type": "object",
"properties": {
- "appearance": {
+ "content": {
"type": "string"
},
- "provider": {
+ "path": {
"type": "string"
},
- "schemaVersion": {
- "type": "integer"
+ "relativePath": {
+ "type": "string"
}
},
"required": [
- "appearance",
- "provider",
- "schemaVersion"
+ "content",
+ "path",
+ "relativePath"
],
"additionalProperties": false
},
- "SettingBootAppearancesData": {
+ "SearchWidgetData": {
"type": "object",
"properties": {
- "appearances": {
+ "k": {
+ "type": "string"
+ },
+ "widgets": {
"anyOf": [
{
"type": "array",
"items": {
"anyOf": [
{
- "$ref": "#/$defs/SettingBootAppearance"
+ "$ref": "#/$defs/SearchWidgetResult"
},
{
"type": "null"
@@ -26614,181 +31328,130 @@
"type": "null"
}
]
- },
- "current": {
- "$ref": "#/$defs/SettingBootAppearanceCurrent"
}
},
"required": [
- "appearances",
- "current"
+ "k",
+ "widgets"
],
"additionalProperties": false
},
- "SettingCapabilityApproval": {
+ "SearchWidgetResult": {
"type": "object",
"properties": {
- "actions": {
- "anyOf": [
- {
- "type": "object",
- "additionalProperties": {
- "type": "string"
- }
- },
- {
- "type": "null"
- }
- ]
+ "content": {
+ "type": "string"
},
- "default": {
+ "name": {
"type": "string"
}
},
"required": [
- "actions",
- "default"
+ "content",
+ "name"
],
"additionalProperties": false
},
- "SettingCapabilityApprovalInput": {
+ "SetAIRequestInput": {
"type": "object",
"properties": {
- "actions": {
+ "agent": {
"anyOf": [
{
- "type": "object",
- "additionalProperties": {
- "type": "string"
- }
+ "$ref": "#/$defs/SettingAgentInput"
},
{
"type": "null"
}
]
},
- "default": {
+ "editing": {
"anyOf": [
{
- "type": "string"
+ "$ref": "#/$defs/SettingEditingInput"
},
{
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "SettingCapabilityPolicy": {
- "type": "object",
- "properties": {
- "default": {
- "type": "string"
},
- "overrides": {
+ "embedding": {
"anyOf": [
{
- "type": "object",
- "additionalProperties": {
- "type": "string"
- }
+ "$ref": "#/$defs/SettingEmbeddingInput"
},
{
"type": "null"
}
]
- }
- },
- "required": [
- "default",
- "overrides"
- ],
- "additionalProperties": false
- },
- "SettingCapabilityPolicyInput": {
- "type": "object",
- "properties": {
- "default": {
+ },
+ "imageGeneration": {
"anyOf": [
{
- "type": "string"
+ "$ref": "#/$defs/SettingImageGenerationInput"
},
{
"type": "null"
}
]
},
- "overrides": {
+ "mcp": {
"anyOf": [
{
- "type": "object",
- "additionalProperties": {
- "type": "string"
- }
+ "$ref": "#/$defs/SettingMCPInput"
},
{
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "SettingCloudUserRequestInput": {
- "type": "object",
- "properties": {
- "token": {
+ },
+ "providers": {
"anyOf": [
{
- "type": "string"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingProviderInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "SettingEditing": {
- "type": "object",
- "properties": {
- "maxCompletionTokens": {
- "type": "integer"
- },
- "maxHistoryMessages": {
- "type": "integer"
- },
- "modelId": {
- "type": "string"
},
- "temperature": {
- "type": "number"
+ "rerank": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingRerankInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
- "required": [
- "maxCompletionTokens",
- "maxHistoryMessages",
- "modelId",
- "temperature"
- ],
"additionalProperties": false
},
- "SettingEditingInput": {
+ "SetAppearanceRequestInput": {
"type": "object",
"properties": {
- "maxCompletionTokens": {
+ "bodyGradient": {
"anyOf": [
{
- "type": "integer"
+ "$ref": "#/$defs/SettingBodyGradientInput"
},
{
"type": "null"
}
]
},
- "maxHistoryMessages": {
+ "closeButtonBehavior": {
"anyOf": [
{
"type": "integer"
@@ -26798,7 +31461,7 @@
}
]
},
- "modelId": {
+ "codeBlockThemeDark": {
"anyOf": [
{
"type": "string"
@@ -26808,80 +31471,67 @@
}
]
},
- "temperature": {
+ "codeBlockThemeLight": {
"anyOf": [
{
- "type": "number"
+ "type": "string"
},
{
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "SettingEditor": {
- "type": "object",
- "properties": {
- "allowHTMLBLockScript": {
- "type": "boolean"
},
- "allowSVGScript": {
- "type": "boolean"
- },
- "assetOpen": {
+ "darkThemes": {
"anyOf": [
{
- "$ref": "#/$defs/SettingAssetOpen"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingAppearanceThemeInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
},
- "backlinkContainChildren": {
- "type": "boolean"
- },
- "backlinkExpandCount": {
- "type": "integer"
- },
- "backlinkHideReference": {
- "type": "boolean"
- },
- "backlinkMentionExclude": {
- "type": "string"
- },
- "backlinkShowBottom": {
- "type": "boolean"
- },
- "backlinkSort": {
+ "entryVisibility": {
"anyOf": [
{
- "type": "integer"
+ "$ref": "#/$defs/SettingEntryVisibilityInput"
},
{
"type": "null"
}
]
},
- "backmentionExpandCount": {
- "type": "integer"
- },
- "backmentionSort": {
+ "globalFontFamilies": {
"anyOf": [
{
- "type": "integer"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingEditorFontInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
},
- "blockRefDynamicAnchorTextMaxLen": {
- "type": "integer"
- },
- "checkBlockRef": {
+ "hideStatusBar": {
"anyOf": [
{
"type": "boolean"
@@ -26891,91 +31541,49 @@
}
]
},
- "codeFontFamilies": {
+ "hideToolbar": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/SettingEditorFont"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "codeLigatures": {
- "type": "boolean"
- },
- "codeLineWrap": {
- "type": "boolean"
- },
- "codeSyntaxHighlightLineNum": {
- "type": "boolean"
- },
- "codeTabSpaces": {
- "type": "integer"
- },
- "cursorSurroundingLines": {
- "type": "integer"
- },
- "databaseAttrClickMode": {
- "type": "integer"
- },
- "databaseAttrHideEmpty": {
- "type": "boolean"
- },
- "databaseAttrShow": {
+ "icon": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "databaseAttrUseTabs": {
+ "iconVer": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "databaseAttrViewMode": {
- "type": "integer"
- },
- "displayBookmarkIcon": {
- "type": "boolean"
- },
- "displayNetImgMark": {
- "type": "boolean"
- },
- "dragHTMLFileToIframe": {
- "type": "boolean"
- },
- "dynamicLoadBlocks": {
- "type": "integer"
- },
- "embedBlockBreadcrumb": {
- "type": "boolean"
- },
- "emoji": {
+ "icons": {
"anyOf": [
{
"type": "array",
"items": {
- "type": "string"
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingAppearanceIconInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
{
@@ -26983,27 +31591,24 @@
}
]
},
- "floatWindowDelay": {
+ "lang": {
"anyOf": [
{
- "type": "integer"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "floatWindowMode": {
- "type": "integer"
- },
- "fontFamilies": {
+ "lightThemes": {
"anyOf": [
{
"type": "array",
"items": {
"anyOf": [
{
- "$ref": "#/$defs/SettingEditorFont"
+ "$ref": "#/$defs/SettingAppearanceThemeInput"
},
{
"type": "null"
@@ -27016,28 +31621,17 @@
}
]
},
- "fontFamily": {
- "type": "string"
- },
- "fontFamilyDisplay": {
- "type": "string"
- },
- "fontSize": {
- "type": "integer"
- },
- "fontSizeScrollZoom": {
- "type": "boolean"
- },
- "fontWeight": {
- "type": "integer"
- },
- "fullWidth": {
- "type": "boolean"
- },
- "generateHistoryInterval": {
- "type": "integer"
+ "mode": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "hashTagSearch": {
+ "modeOS": {
"anyOf": [
{
"type": "boolean"
@@ -27047,183 +31641,111 @@
}
]
},
- "headingEmbedMode": {
- "type": "integer"
- },
- "headingNumber": {
- "type": "boolean"
- },
- "headingNumberFormat": {
- "type": "string"
- },
- "historyRetentionDays": {
- "type": "integer"
- },
- "justify": {
- "type": "boolean"
- },
- "katexMacros": {
- "type": "string"
- },
- "keepLoadedContent": {
- "type": "boolean"
- },
- "listItemDotNumberClickFocus": {
- "type": "boolean"
- },
- "listLogicalOutdent": {
- "type": "boolean"
- },
- "markdown": {
+ "notifications": {
"anyOf": [
{
- "$ref": "#/$defs/SettingMarkdown"
+ "$ref": "#/$defs/SettingNotificationsInput"
},
{
"type": "null"
}
]
},
- "onlySearchForDoc": {
- "type": "boolean"
- },
- "pasteURLAutoConvert": {
- "type": "boolean"
- },
- "plantUMLServePath": {
- "type": "string"
- },
- "readOnly": {
- "type": "boolean"
- },
- "rtl": {
- "type": "boolean"
+ "statusBar": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingStatusBarInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "spellcheck": {
- "type": "boolean"
+ "themeDark": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "spellcheckLanguages": {
+ "themeJS": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "virtualBlockRef": {
- "type": "boolean"
+ "themeLight": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "virtualBlockRefExclude": {
+ "themeVer": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "SetAssetAnnotationRequestInput": {
+ "type": "object",
+ "properties": {
+ "data": {
"type": "string"
},
- "virtualBlockRefInclude": {
+ "path": {
"type": "string"
}
},
"required": [
- "allowHTMLBLockScript",
- "allowSVGScript",
- "assetOpen",
- "backlinkContainChildren",
- "backlinkExpandCount",
- "backlinkHideReference",
- "backlinkMentionExclude",
- "backlinkShowBottom",
- "backlinkSort",
- "backmentionExpandCount",
- "backmentionSort",
- "blockRefDynamicAnchorTextMaxLen",
- "checkBlockRef",
- "codeFontFamilies",
- "codeLigatures",
- "codeLineWrap",
- "codeSyntaxHighlightLineNum",
- "codeTabSpaces",
- "cursorSurroundingLines",
- "databaseAttrClickMode",
- "databaseAttrHideEmpty",
- "databaseAttrShow",
- "databaseAttrUseTabs",
- "databaseAttrViewMode",
- "displayBookmarkIcon",
- "displayNetImgMark",
- "dragHTMLFileToIframe",
- "dynamicLoadBlocks",
- "embedBlockBreadcrumb",
- "emoji",
- "floatWindowDelay",
- "floatWindowMode",
- "fontFamilies",
- "fontFamily",
- "fontFamilyDisplay",
- "fontSize",
- "fontSizeScrollZoom",
- "fontWeight",
- "fullWidth",
- "generateHistoryInterval",
- "hashTagSearch",
- "headingEmbedMode",
- "headingNumber",
- "headingNumberFormat",
- "historyRetentionDays",
- "justify",
- "katexMacros",
- "keepLoadedContent",
- "listItemDotNumberClickFocus",
- "listLogicalOutdent",
- "markdown",
- "onlySearchForDoc",
- "pasteURLAutoConvert",
- "plantUMLServePath",
- "readOnly",
- "rtl",
- "spellcheck",
- "spellcheckLanguages",
- "virtualBlockRef",
- "virtualBlockRefExclude",
- "virtualBlockRefInclude"
+ "data",
+ "path"
],
"additionalProperties": false
},
- "SettingEditorFont": {
+ "SetAssetOCRTextRequestInput": {
"type": "object",
"properties": {
- "displayName": {
+ "path": {
"type": "string"
},
- "family": {
+ "text": {
"type": "string"
- },
- "weight": {
- "type": "integer"
}
},
"required": [
- "displayName",
- "family",
- "weight"
+ "path",
+ "text"
],
"additionalProperties": false
},
- "SettingEditorFontInput": {
+ "SetAttrViewContextFilterRequestInput": {
"type": "object",
"properties": {
- "displayName": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
+ "avID": {
+ "type": "string"
},
- "family": {
+ "blockID": {
+ "type": "string"
+ },
+ "keyID": {
"anyOf": [
{
"type": "string"
@@ -27232,11 +31754,60 @@
"type": "null"
}
]
+ }
+ },
+ "required": [
+ "avID",
+ "blockID"
+ ],
+ "additionalProperties": false
+ },
+ "SetAttrViewFiltersRequestInput": {
+ "type": "object",
+ "properties": {
+ "avID": {
+ "type": "string"
},
- "weight": {
+ "blockID": {
+ "type": "string"
+ },
+ "data": {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVViewFilterInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ }
+ },
+ "required": [
+ "avID",
+ "blockID",
+ "data"
+ ],
+ "additionalProperties": false
+ },
+ "SetAttrViewGroupRequestInput": {
+ "type": "object",
+ "properties": {
+ "avID": {
+ "type": "string"
+ },
+ "blockID": {
+ "type": "string"
+ },
+ "group": {
+ "$ref": "#/$defs/AVViewGroupInput"
+ },
+ "ignoreRows": {
"anyOf": [
{
- "type": "integer"
+ "type": "boolean"
},
{
"type": "null"
@@ -27244,48 +31815,50 @@
]
}
},
+ "required": [
+ "avID",
+ "blockID",
+ "group"
+ ],
"additionalProperties": false
},
- "SettingEmbedding": {
+ "SetAttrViewSortsRequestInput": {
"type": "object",
"properties": {
- "apiKey": {
- "type": "string"
- },
- "baseURL": {
- "type": "string"
- },
- "dimensions": {
- "type": "integer"
- },
- "enabled": {
- "type": "boolean"
- },
- "id": {
+ "avID": {
"type": "string"
},
- "name": {
+ "blockID": {
"type": "string"
},
- "timeout": {
- "type": "integer"
+ "data": {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVViewSortInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
}
},
"required": [
- "apiKey",
- "baseURL",
- "dimensions",
- "enabled",
- "id",
- "name",
- "timeout"
+ "avID",
+ "blockID",
+ "data"
],
"additionalProperties": false
},
- "SettingEmbeddingInput": {
+ "SetAttributeViewBlockAttrRequestInput": {
"type": "object",
"properties": {
- "apiKey": {
+ "avID": {
+ "type": "string"
+ },
+ "itemID": {
"anyOf": [
{
"type": "string"
@@ -27295,7 +31868,10 @@
}
]
},
- "baseURL": {
+ "keyID": {
+ "type": "string"
+ },
+ "rowID": {
"anyOf": [
{
"type": "string"
@@ -27305,17 +31881,51 @@
}
]
},
- "dimensions": {
+ "value": {
+ "$ref": "#/$defs/AVValueInput"
+ }
+ },
+ "required": [
+ "avID",
+ "keyID",
+ "value"
+ ],
+ "additionalProperties": false
+ },
+ "SetBazaarPackageRatingRequestInput": {
+ "type": "object",
+ "properties": {
+ "packageName": {
+ "type": "string"
+ },
+ "packageType": {
+ "type": "string"
+ },
+ "rating": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "packageName",
+ "packageType",
+ "rating"
+ ],
+ "additionalProperties": false
+ },
+ "SetBazaarRequestInput": {
+ "type": "object",
+ "properties": {
+ "petalDisabled": {
"anyOf": [
{
- "type": "integer"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "enabled": {
+ "trust": {
"anyOf": [
{
"type": "boolean"
@@ -27324,31 +31934,69 @@
"type": "null"
}
]
+ }
+ },
+ "additionalProperties": false
+ },
+ "SetBlockAttrsRequestInput": {
+ "type": "object",
+ "properties": {
+ "attrs": {
+ "type": "object",
+ "additionalProperties": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
"id": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "attrs",
+ "id"
+ ],
+ "additionalProperties": false
+ },
+ "SetConfSnippetRequestInput": {
+ "type": "object",
+ "properties": {
+ "enabledCSS": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "name": {
+ "enabledJS": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
- },
- "timeout": {
+ }
+ },
+ "additionalProperties": false
+ },
+ "SetCriterionRequestInput": {
+ "type": "object",
+ "properties": {
+ "criterion": {
"anyOf": [
{
- "type": "integer"
+ "$ref": "#/$defs/CriterionInput"
},
{
"type": "null"
@@ -27356,177 +32004,95 @@
]
}
},
- "additionalProperties": false
- },
- "SettingEmojiRequestInput": {
- "type": "object",
- "properties": {
- "emoji": {
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- },
"required": [
- "emoji"
+ "criterion"
],
"additionalProperties": false
},
- "SettingEntryVisibility": {
+ "SetDatabaseBlockViewRequestInput": {
"type": "object",
"properties": {
- "active": {
+ "avID": {
"type": "string"
},
- "profiles": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/SettingEntryVisibilityProfile"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- {
- "type": "null"
- }
- ]
+ "id": {
+ "type": "string"
},
- "version": {
- "type": "integer"
+ "viewID": {
+ "type": "string"
}
},
"required": [
- "active",
- "profiles",
- "version"
+ "avID",
+ "id",
+ "viewID"
],
"additionalProperties": false
},
- "SettingEntryVisibilityInput": {
+ "SetEditorRequestInput": {
"type": "object",
"properties": {
- "active": {
+ "allowHTMLBLockScript": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "profiles": {
+ "allowSVGScript": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/SettingEntryVisibilityProfileInput"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "version": {
+ "assetOpen": {
"anyOf": [
{
- "type": "integer"
+ "$ref": "#/$defs/SettingAssetOpenInput"
},
{
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "SettingEntryVisibilityProfile": {
- "type": "object",
- "properties": {
- "entries": {
+ },
+ "backlinkContainChildren": {
"anyOf": [
{
- "type": "object",
- "additionalProperties": {
- "type": "boolean"
- }
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "orders": {
+ "backlinkExpandCount": {
"anyOf": [
{
- "type": "object",
- "additionalProperties": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "integer"
},
{
"type": "null"
}
]
- }
- },
- "required": [
- "entries",
- "id",
- "name",
- "orders"
- ],
- "additionalProperties": false
- },
- "SettingEntryVisibilityProfileInput": {
- "type": "object",
- "properties": {
- "entries": {
+ },
+ "backlinkHideReference": {
"anyOf": [
{
- "type": "object",
- "additionalProperties": {
- "type": "boolean"
- }
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "id": {
+ "backlinkMentionExclude": {
"anyOf": [
{
"type": "string"
@@ -27536,225 +32102,47 @@
}
]
},
- "name": {
+ "backlinkShowBottom": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "orders": {
+ "backlinkSort": {
"anyOf": [
{
- "type": "object",
- "additionalProperties": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "integer"
},
{
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "SettingExport": {
- "type": "object",
- "properties": {
- "addTitle": {
- "type": "boolean"
- },
- "blockEmbedMode": {
- "type": "integer"
- },
- "blockRefMode": {
- "type": "integer"
- },
- "blockRefTextLeft": {
- "type": "string"
- },
- "blockRefTextRight": {
- "type": "string"
- },
- "docxTemplate": {
- "type": "string"
- },
- "fileAnnotationRefMode": {
- "type": "integer"
- },
- "imageWatermarkDesc": {
- "type": "string"
- },
- "imageWatermarkStr": {
- "type": "string"
- },
- "includeRelatedDocs": {
- "type": "boolean"
- },
- "includeSubDocs": {
- "type": "boolean"
- },
- "inlineMemo": {
- "type": "boolean"
- },
- "markdownYFM": {
- "type": "boolean"
- },
- "pandocBin": {
- "type": "string"
- },
- "pandocParams": {
- "type": "string"
- },
- "paragraphBeginningSpace": {
- "type": "boolean"
},
- "pdfFooter": {
- "type": "string"
- },
- "pdfWatermarkDesc": {
- "type": "string"
- },
- "pdfWatermarkStr": {
- "type": "string"
- },
- "removeAssetsID": {
- "type": "boolean"
- },
- "tagCloseMarker": {
- "type": "string"
- },
- "tagOpenMarker": {
- "type": "string"
- }
- },
- "required": [
- "addTitle",
- "blockEmbedMode",
- "blockRefMode",
- "blockRefTextLeft",
- "blockRefTextRight",
- "docxTemplate",
- "fileAnnotationRefMode",
- "imageWatermarkDesc",
- "imageWatermarkStr",
- "includeRelatedDocs",
- "includeSubDocs",
- "inlineMemo",
- "markdownYFM",
- "pandocBin",
- "pandocParams",
- "paragraphBeginningSpace",
- "pdfFooter",
- "pdfWatermarkDesc",
- "pdfWatermarkStr",
- "removeAssetsID",
- "tagCloseMarker",
- "tagOpenMarker"
- ],
- "additionalProperties": false
- },
- "SettingFileTree": {
- "type": "object",
- "properties": {
- "allowCreateDeeper": {
- "type": "boolean"
- },
- "alwaysSelectOpenedFile": {
- "type": "boolean"
- },
- "boxDocEnabled": {
+ "backmentionExpandCount": {
"anyOf": [
{
- "type": "boolean"
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "closeTabOnDoubleClick": {
- "type": "boolean"
- },
- "closeTabsOnStart": {
- "type": "boolean"
- },
- "createDocAtTop": {
+ "backmentionSort": {
"anyOf": [
{
- "type": "boolean"
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "docCreateSaveBox": {
- "type": "string"
- },
- "docCreateSavePath": {
- "type": "string"
- },
- "docCreateTemplatePath": {
- "type": "string"
- },
- "docIconClickExpand": {
- "type": "boolean"
- },
- "largeFileWarningSize": {
- "type": "integer"
- },
- "maxListCount": {
- "type": "integer"
- },
- "maxOpenTabCount": {
- "type": "integer"
- },
- "noSplitScreenWhenOpenTab": {
- "type": "boolean"
- },
- "openFilesUseCurrentTab": {
- "type": "boolean"
- },
- "parentDocClickExpand": {
- "type": "boolean"
- },
- "recentDocsMaxListCount": {
- "type": "integer"
- },
- "refCreateSaveBox": {
- "type": "string"
- },
- "refCreateSavePath": {
- "type": "string"
- },
- "removeDocWithoutConfirm": {
- "type": "boolean"
- },
- "shorthandSaveBox": {
- "type": "string"
- },
- "shorthandSavePath": {
- "type": "string"
- },
- "sort": {
- "type": "integer"
- },
- "tabStartupMode": {
+ "blockRefDynamicAnchorTextMaxLen": {
"anyOf": [
{
"type": "integer"
@@ -27764,7 +32152,7 @@
}
]
},
- "useSVGDefaultIcon": {
+ "checkBlockRef": {
"anyOf": [
{
"type": "boolean"
@@ -27774,174 +32162,57 @@
}
]
},
- "useSingleLineSave": {
- "type": "boolean"
- }
- },
- "required": [
- "allowCreateDeeper",
- "alwaysSelectOpenedFile",
- "boxDocEnabled",
- "closeTabOnDoubleClick",
- "closeTabsOnStart",
- "createDocAtTop",
- "docCreateSaveBox",
- "docCreateSavePath",
- "docCreateTemplatePath",
- "docIconClickExpand",
- "largeFileWarningSize",
- "maxListCount",
- "maxOpenTabCount",
- "noSplitScreenWhenOpenTab",
- "openFilesUseCurrentTab",
- "parentDocClickExpand",
- "recentDocsMaxListCount",
- "refCreateSaveBox",
- "refCreateSavePath",
- "removeDocWithoutConfirm",
- "shorthandSaveBox",
- "shorthandSavePath",
- "sort",
- "tabStartupMode",
- "useSVGDefaultIcon",
- "useSingleLineSave"
- ],
- "additionalProperties": false
- },
- "SettingFlashcard": {
- "type": "object",
- "properties": {
- "blockquote": {
- "type": "boolean"
- },
- "callout": {
- "type": "boolean"
- },
- "deck": {
- "type": "boolean"
- },
- "heading": {
- "type": "boolean"
- },
- "list": {
- "type": "boolean"
- },
- "mark": {
- "type": "boolean"
- },
- "maximumInterval": {
- "type": "integer"
- },
- "newCardLimit": {
- "type": "integer"
- },
- "requestRetention": {
- "type": "number"
- },
- "reviewCardLimit": {
- "type": "integer"
- },
- "reviewMode": {
- "type": "integer"
- },
- "superBlock": {
- "type": "boolean"
- },
- "weights": {
- "type": "string"
- }
- },
- "required": [
- "blockquote",
- "callout",
- "deck",
- "heading",
- "list",
- "mark",
- "maximumInterval",
- "newCardLimit",
- "requestRetention",
- "reviewCardLimit",
- "reviewMode",
- "superBlock",
- "weights"
- ],
- "additionalProperties": false
- },
- "SettingIconRequestInput": {
- "type": "object",
- "properties": {
- "icon": {
- "type": "string"
- }
- },
- "required": [
- "icon"
- ],
- "additionalProperties": false
- },
- "SettingImageGeneration": {
- "type": "object",
- "properties": {
- "modelId": {
- "type": "string"
- },
- "outputFormat": {
- "type": "string"
- },
- "quality": {
- "type": "string"
- },
- "requestTimeout": {
- "type": "integer"
+ "codeFontFamilies": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingEditorFontInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "size": {
- "type": "string"
- }
- },
- "required": [
- "modelId",
- "outputFormat",
- "quality",
- "requestTimeout",
- "size"
- ],
- "additionalProperties": false
- },
- "SettingImageGenerationInput": {
- "type": "object",
- "properties": {
- "modelId": {
+ "codeLigatures": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "outputFormat": {
+ "codeLineWrap": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "quality": {
+ "codeSyntaxHighlightLineNum": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "requestTimeout": {
+ "codeTabSpaces": {
"anyOf": [
{
"type": "integer"
@@ -27951,171 +32222,117 @@
}
]
},
- "size": {
+ "cursorSurroundingLines": {
"anyOf": [
{
- "type": "string"
+ "type": "integer"
},
{
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "SettingKeymapRequestInput": {
- "type": "object",
- "properties": {
- "data": {
+ },
+ "databaseAttrClickMode": {
"anyOf": [
{
- "type": "object",
- "additionalProperties": {
- "$ref": "#/$defs/JSONValue"
- }
+ "type": "integer"
},
{
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "SettingLogin2faRequestInput": {
- "type": "object",
- "properties": {
- "code": {
- "type": "string"
},
- "token": {
- "type": "string"
- }
- },
- "required": [
- "code",
- "token"
- ],
- "additionalProperties": false
- },
- "SettingMCP": {
- "type": "object",
- "properties": {
- "exposurePolicy": {
+ "databaseAttrHideEmpty": {
"anyOf": [
{
- "$ref": "#/$defs/SettingCapabilityPolicy"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "servers": {
+ "databaseAttrShow": {
"anyOf": [
{
- "type": "array",
- "items": {
- "$ref": "#/$defs/SettingMCPServer"
- }
+ "type": "boolean"
},
{
"type": "null"
}
]
- }
- },
- "required": [
- "exposurePolicy",
- "servers"
- ],
- "additionalProperties": false
- },
- "SettingMCPInput": {
- "type": "object",
- "properties": {
- "exposurePolicy": {
+ },
+ "databaseAttrUseTabs": {
"anyOf": [
{
- "$ref": "#/$defs/SettingCapabilityPolicyInput"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "servers": {
+ "databaseAttrViewMode": {
"anyOf": [
{
- "type": "array",
- "items": {
- "$ref": "#/$defs/SettingMCPServerInput"
- }
+ "type": "integer"
},
{
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "SettingMCPServer": {
- "type": "object",
- "properties": {
- "args": {
+ },
+ "displayBookmarkIcon": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "command": {
- "type": "string"
- },
- "disableStandaloneSSE": {
- "type": "boolean"
- },
- "enabled": {
- "type": "boolean"
+ "displayNetImgMark": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "env": {
+ "dragHTMLFileToIframe": {
"anyOf": [
{
- "type": "object",
- "additionalProperties": {
- "type": "string"
- }
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "headers": {
+ "dynamicLoadBlocks": {
"anyOf": [
{
- "type": "object",
- "additionalProperties": {
- "type": "string"
- }
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "id": {
- "type": "string"
+ "embedBlockBreadcrumb": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "inheritEnv": {
+ "emoji": {
"anyOf": [
{
"type": "array",
@@ -28128,48 +32345,39 @@
}
]
},
- "name": {
- "type": "string"
- },
- "timeout": {
- "type": "integer"
- },
- "trustToolAnnotations": {
- "type": "boolean"
+ "floatWindowDelay": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "type": {
- "type": "string"
+ "floatWindowMode": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "url": {
- "type": "string"
- }
- },
- "required": [
- "args",
- "command",
- "disableStandaloneSSE",
- "enabled",
- "env",
- "headers",
- "id",
- "inheritEnv",
- "name",
- "timeout",
- "trustToolAnnotations",
- "type",
- "url"
- ],
- "additionalProperties": false
- },
- "SettingMCPServerInput": {
- "type": "object",
- "properties": {
- "args": {
+ "fontFamilies": {
"anyOf": [
{
"type": "array",
"items": {
- "type": "string"
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingEditorFontInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
{
@@ -28177,7 +32385,7 @@
}
]
},
- "command": {
+ "fontFamily": {
"anyOf": [
{
"type": "string"
@@ -28187,7 +32395,27 @@
}
]
},
- "disableStandaloneSSE": {
+ "fontFamilyDisplay": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "fontSize": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "fontSizeScrollZoom": {
"anyOf": [
{
"type": "boolean"
@@ -28197,7 +32425,17 @@
}
]
},
- "enabled": {
+ "fontWeight": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "fullWidth": {
"anyOf": [
{
"type": "boolean"
@@ -28207,56 +32445,47 @@
}
]
},
- "env": {
+ "generateHistoryInterval": {
"anyOf": [
{
- "type": "object",
- "additionalProperties": {
- "type": "string"
- }
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "headers": {
+ "hashTagSearch": {
"anyOf": [
{
- "type": "object",
- "additionalProperties": {
- "type": "string"
- }
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "id": {
+ "headingEmbedMode": {
"anyOf": [
{
- "type": "string"
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "inheritEnv": {
+ "headingNumber": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "name": {
+ "headingNumberFormat": {
"anyOf": [
{
"type": "string"
@@ -28266,7 +32495,7 @@
}
]
},
- "timeout": {
+ "historyRetentionDays": {
"anyOf": [
{
"type": "integer"
@@ -28276,7 +32505,7 @@
}
]
},
- "trustToolAnnotations": {
+ "justify": {
"anyOf": [
{
"type": "boolean"
@@ -28286,7 +32515,7 @@
}
]
},
- "type": {
+ "katexMacros": {
"anyOf": [
{
"type": "string"
@@ -28296,23 +32525,17 @@
}
]
},
- "url": {
+ "keepLoadedContent": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "SettingMarkdown": {
- "type": "object",
- "properties": {
- "blockFullWidthTaskList": {
+ },
+ "listItemDotNumberClickFocus": {
"anyOf": [
{
"type": "boolean"
@@ -28322,7 +32545,7 @@
}
]
},
- "codeBlockMiddleDot": {
+ "listLogicalOutdent": {
"anyOf": [
{
"type": "boolean"
@@ -28332,63 +32555,17 @@
}
]
},
- "inlineAsterisk": {
- "type": "boolean"
- },
- "inlineFullWidthStrikethrough": {
- "type": "boolean"
- },
- "inlineMark": {
- "type": "boolean"
- },
- "inlineMath": {
- "type": "boolean"
- },
- "inlineStrikethrough": {
- "type": "boolean"
- },
- "inlineSub": {
- "type": "boolean"
- },
- "inlineSup": {
- "type": "boolean"
- },
- "inlineTag": {
- "type": "boolean"
- },
- "inlineUnderscore": {
- "type": "boolean"
- }
- },
- "required": [
- "blockFullWidthTaskList",
- "codeBlockMiddleDot",
- "inlineAsterisk",
- "inlineFullWidthStrikethrough",
- "inlineMark",
- "inlineMath",
- "inlineStrikethrough",
- "inlineSub",
- "inlineSup",
- "inlineTag",
- "inlineUnderscore"
- ],
- "additionalProperties": false
- },
- "SettingMarkdownInput": {
- "type": "object",
- "properties": {
- "blockFullWidthTaskList": {
+ "markdown": {
"anyOf": [
{
- "type": "boolean"
+ "$ref": "#/$defs/SettingMarkdownInput"
},
{
"type": "null"
}
]
},
- "codeBlockMiddleDot": {
+ "onlySearchForDoc": {
"anyOf": [
{
"type": "boolean"
@@ -28398,7 +32575,7 @@
}
]
},
- "inlineAsterisk": {
+ "pasteURLAutoConvert": {
"anyOf": [
{
"type": "boolean"
@@ -28408,17 +32585,17 @@
}
]
},
- "inlineFullWidthStrikethrough": {
+ "plantUMLServePath": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "inlineMark": {
+ "readOnly": {
"anyOf": [
{
"type": "boolean"
@@ -28428,7 +32605,7 @@
}
]
},
- "inlineMath": {
+ "rtl": {
"anyOf": [
{
"type": "boolean"
@@ -28438,7 +32615,7 @@
}
]
},
- "inlineStrikethrough": {
+ "spellcheck": {
"anyOf": [
{
"type": "boolean"
@@ -28448,17 +32625,20 @@
}
]
},
- "inlineSub": {
+ "spellcheckLanguages": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "inlineSup": {
+ "virtualBlockRef": {
"anyOf": [
{
"type": "boolean"
@@ -28468,20 +32648,20 @@
}
]
},
- "inlineTag": {
+ "virtualBlockRefExclude": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "inlineUnderscore": {
+ "virtualBlockRefInclude": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
@@ -28491,66 +32671,86 @@
},
"additionalProperties": false
},
- "SettingModel": {
+ "SetEntryVisibilityRequestInput": {
"type": "object",
"properties": {
- "contextLength": {
- "type": "integer"
- },
- "displayName": {
- "type": "string"
- },
- "enabled": {
- "type": "boolean"
+ "active": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "id": {
- "type": "string"
+ "profiles": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingEntryVisibilityProfileInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "name": {
- "type": "string"
+ "version": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
- "required": [
- "enabled",
- "id",
- "name"
- ],
"additionalProperties": false
},
- "SettingModelInput": {
+ "SetExportRequestInput": {
"type": "object",
"properties": {
- "contextLength": {
+ "addTitle": {
"anyOf": [
{
- "type": "integer"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "displayName": {
+ "blockEmbedMode": {
"anyOf": [
{
- "type": "string"
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "enabled": {
+ "blockRefMode": {
"anyOf": [
{
- "type": "boolean"
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "id": {
+ "blockRefTextLeft": {
"anyOf": [
{
"type": "string"
@@ -28560,7 +32760,7 @@
}
]
},
- "name": {
+ "blockRefTextRight": {
"anyOf": [
{
"type": "string"
@@ -28569,87 +32769,48 @@
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "SettingNotifications": {
- "type": "object",
- "properties": {
- "browserCompatibility": {
- "type": "boolean"
- },
- "docTreeMaxList": {
- "type": "boolean"
- },
- "formatPainterTip": {
- "type": "boolean"
- },
- "selectAllIncompleteTip": {
- "type": "boolean"
- },
- "selectAllTip": {
- "type": "boolean"
- },
- "tagMaxList": {
- "type": "boolean"
},
- "workspaceNotSSD": {
- "type": "boolean"
- }
- },
- "required": [
- "browserCompatibility",
- "docTreeMaxList",
- "tagMaxList",
- "workspaceNotSSD"
- ],
- "additionalProperties": false
- },
- "SettingNotificationsInput": {
- "type": "object",
- "properties": {
- "browserCompatibility": {
+ "docxTemplate": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "docTreeMaxList": {
+ "fileAnnotationRefMode": {
"anyOf": [
{
- "type": "boolean"
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "formatPainterTip": {
+ "imageWatermarkDesc": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "selectAllIncompleteTip": {
+ "imageWatermarkStr": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "selectAllTip": {
+ "includeRelatedDocs": {
"anyOf": [
{
"type": "boolean"
@@ -28659,7 +32820,7 @@
}
]
},
- "tagMaxList": {
+ "includeSubDocs": {
"anyOf": [
{
"type": "boolean"
@@ -28669,7 +32830,7 @@
}
]
},
- "workspaceNotSSD": {
+ "inlineMemo": {
"anyOf": [
{
"type": "boolean"
@@ -28678,197 +32839,144 @@
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "SettingPetalDisabledData": {
- "type": "object",
- "properties": {
- "dataChangePlugins": {
+ },
+ "markdownYFM": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "globalPetalChanged": {
- "type": "boolean"
- },
- "globalPetalDisabled": {
- "type": "boolean"
- },
- "globalPetalEnabled": {
- "type": "boolean"
- },
- "globalPetalRevision": {
- "type": "integer"
- },
- "reloadPlugins": {
+ "pandocBin": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "type": "string"
},
{
"type": "null"
}
]
},
- "uninstallPlugins": {
+ "pandocParams": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "type": "string"
},
{
"type": "null"
}
]
},
- "unloadPlugins": {
+ "paragraphBeginningSpace": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "type": "boolean"
},
{
"type": "null"
}
]
- }
- },
- "required": [
- "dataChangePlugins",
- "globalPetalChanged",
- "globalPetalDisabled",
- "globalPetalEnabled",
- "globalPetalRevision",
- "reloadPlugins",
- "uninstallPlugins",
- "unloadPlugins"
- ],
- "additionalProperties": false
- },
- "SettingPetalDisabledRequestInput": {
- "type": "object",
- "properties": {
- "petalDisabled": {
- "type": "boolean"
- }
- },
- "required": [
- "petalDisabled"
- ],
- "additionalProperties": false
- },
- "SettingProvider": {
- "type": "object",
- "properties": {
- "apiKey": {
- "type": "string"
- },
- "baseURL": {
- "type": "string"
},
- "displayName": {
- "type": "string"
- },
- "enabled": {
- "type": "boolean"
+ "pdfFooter": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "headers": {
- "type": "object",
- "additionalProperties": {
- "type": "string"
- }
+ "pdfWatermarkDesc": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "id": {
- "type": "string"
+ "pdfWatermarkStr": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "models": {
+ "removeAssetsID": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/SettingModel"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "protocol": {
- "type": "string"
+ "tagCloseMarker": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "requestTimeout": {
- "type": "integer"
+ "tagOpenMarker": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
- "required": [
- "apiKey",
- "baseURL",
- "enabled",
- "id",
- "models",
- "requestTimeout"
- ],
"additionalProperties": false
},
- "SettingProviderInput": {
+ "SetFiletreeRequestInput": {
"type": "object",
"properties": {
- "apiKey": {
+ "allowCreateDeeper": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "baseURL": {
+ "alwaysSelectOpenedFile": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "displayName": {
+ "boxDocEnabled": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "enabled": {
+ "closeTabOnDoubleClick": {
"anyOf": [
{
"type": "boolean"
@@ -28878,50 +32986,37 @@
}
]
},
- "headers": {
+ "closeTabsOnStart": {
"anyOf": [
{
- "type": "object",
- "additionalProperties": {
- "type": "string"
- }
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "id": {
+ "createDocAtTop": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "models": {
+ "docCreateSaveBox": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/SettingModelInput"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "string"
},
{
"type": "null"
}
]
},
- "protocol": {
+ "docCreateSavePath": {
"anyOf": [
{
"type": "string"
@@ -28931,123 +33026,47 @@
}
]
},
- "requestTimeout": {
+ "docCreateTemplatePath": {
"anyOf": [
{
- "type": "integer"
+ "type": "string"
},
{
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "SettingPublish": {
- "type": "object",
- "properties": {
- "auth": {
+ },
+ "docIconClickExpand": {
"anyOf": [
{
- "$ref": "#/$defs/SettingBasicAuth"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "enable": {
- "type": "boolean"
- },
- "port": {
- "type": "integer"
- }
- },
- "required": [
- "auth",
- "enable",
- "port"
- ],
- "additionalProperties": false
- },
- "SettingPublishData": {
- "type": "object",
- "properties": {
- "port": {
- "type": "integer"
- },
- "publish": {
+ "largeFileWarningSize": {
"anyOf": [
{
- "$ref": "#/$defs/SettingPublish"
+ "type": "integer"
},
{
"type": "null"
}
]
- }
- },
- "required": [
- "port",
- "publish"
- ],
- "additionalProperties": false
- },
- "SettingRerank": {
- "type": "object",
- "properties": {
- "apiKey": {
- "type": "string"
- },
- "candidateCount": {
- "type": "integer"
- },
- "enabled": {
- "type": "boolean"
- },
- "endpoint": {
- "type": "string"
- },
- "id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "requestFormat": {
- "type": "string"
},
- "timeout": {
- "type": "integer"
- }
- },
- "required": [
- "apiKey",
- "candidateCount",
- "enabled",
- "endpoint",
- "id",
- "name",
- "requestFormat",
- "timeout"
- ],
- "additionalProperties": false
- },
- "SettingRerankInput": {
- "type": "object",
- "properties": {
- "apiKey": {
+ "maxListCount": {
"anyOf": [
{
- "type": "string"
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "candidateCount": {
+ "maxOpenTabCount": {
"anyOf": [
{
"type": "integer"
@@ -29057,7 +33076,7 @@
}
]
},
- "enabled": {
+ "noSplitScreenWhenOpenTab": {
"anyOf": [
{
"type": "boolean"
@@ -29067,37 +33086,37 @@
}
]
},
- "endpoint": {
+ "openFilesUseCurrentTab": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "id": {
+ "parentDocClickExpand": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "name": {
+ "recentDocsMaxListCount": {
"anyOf": [
{
- "type": "string"
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "requestFormat": {
+ "refCreateSaveBox": {
"anyOf": [
{
"type": "string"
@@ -29107,65 +33126,17 @@
}
]
},
- "timeout": {
+ "refCreateSavePath": {
"anyOf": [
{
- "type": "integer"
+ "type": "string"
},
{
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "SettingSearch": {
- "type": "object",
- "properties": {
- "alias": {
- "type": "boolean"
- },
- "audioBlock": {
- "type": "boolean"
- },
- "backlinkMentionAlias": {
- "type": "boolean"
- },
- "backlinkMentionAnchor": {
- "type": "boolean"
- },
- "backlinkMentionDoc": {
- "type": "boolean"
- },
- "backlinkMentionKeywordsLimit": {
- "type": "integer"
- },
- "backlinkMentionName": {
- "type": "boolean"
- },
- "blockquote": {
- "type": "boolean"
- },
- "callout": {
- "type": "boolean"
- },
- "caseSensitive": {
- "type": "boolean"
- },
- "codeBlock": {
- "type": "boolean"
- },
- "databaseBlock": {
- "type": "boolean"
- },
- "document": {
- "type": "boolean"
- },
- "embedBlock": {
- "type": "boolean"
},
- "hanSensitive": {
+ "removeDocWithoutConfirm": {
"anyOf": [
{
"type": "boolean"
@@ -29175,200 +33146,60 @@
}
]
},
- "heading": {
- "type": "boolean"
- },
- "htmlBlock": {
- "type": "boolean"
- },
- "ial": {
- "type": "boolean"
- },
- "iframeBlock": {
- "type": "boolean"
- },
- "indexAssetPath": {
- "type": "boolean"
- },
- "limit": {
- "type": "integer"
- },
- "list": {
- "type": "boolean"
- },
- "listItem": {
- "type": "boolean"
- },
- "mathBlock": {
- "type": "boolean"
- },
- "memo": {
- "type": "boolean"
- },
- "name": {
- "type": "boolean"
- },
- "paragraph": {
- "type": "boolean"
- },
- "superBlock": {
- "type": "boolean"
- },
- "tabItem": {
- "type": "boolean"
- },
- "table": {
- "type": "boolean"
- },
- "tabs": {
- "type": "boolean"
- },
- "videoBlock": {
- "type": "boolean"
- },
- "virtualRefAlias": {
- "type": "boolean"
- },
- "virtualRefAnchor": {
- "type": "boolean"
- },
- "virtualRefDoc": {
- "type": "boolean"
- },
- "virtualRefName": {
- "type": "boolean"
- },
- "widgetBlock": {
- "type": "boolean"
- }
- },
- "required": [
- "alias",
- "audioBlock",
- "backlinkMentionAlias",
- "backlinkMentionAnchor",
- "backlinkMentionDoc",
- "backlinkMentionKeywordsLimit",
- "backlinkMentionName",
- "blockquote",
- "callout",
- "caseSensitive",
- "codeBlock",
- "databaseBlock",
- "document",
- "embedBlock",
- "hanSensitive",
- "heading",
- "htmlBlock",
- "ial",
- "iframeBlock",
- "indexAssetPath",
- "limit",
- "list",
- "listItem",
- "mathBlock",
- "memo",
- "name",
- "paragraph",
- "superBlock",
- "tabItem",
- "table",
- "tabs",
- "videoBlock",
- "virtualRefAlias",
- "virtualRefAnchor",
- "virtualRefDoc",
- "virtualRefName",
- "widgetBlock"
- ],
- "additionalProperties": false
- },
- "SettingSecret": {
- "type": "object",
- "properties": {
- "allowedHosts": {
+ "shorthandSaveBox": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "type": "string"
},
{
"type": "null"
}
]
},
- "name": {
- "type": "string"
+ "shorthandSavePath": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "value": {
- "type": "string"
- }
- },
- "required": [
- "allowedHosts",
- "name",
- "value"
- ],
- "additionalProperties": false
- },
- "SettingSecretInput": {
- "type": "object",
- "properties": {
- "allowedHosts": {
+ "sort": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "name": {
+ "tabStartupMode": {
"anyOf": [
{
- "type": "string"
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "value": {
+ "useSVGDefaultIcon": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "SettingSecrets": {
- "type": "object",
- "properties": {
- "items": {
+ },
+ "useSingleLineSave": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/SettingSecret"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "boolean"
},
{
"type": "null"
@@ -29376,63 +33207,22 @@
]
}
},
- "required": [
- "items"
- ],
- "additionalProperties": false
- },
- "SettingSnpt": {
- "type": "object",
- "properties": {
- "enabledCSS": {
- "type": "boolean"
- },
- "enabledJS": {
- "type": "boolean"
- }
- },
- "required": [
- "enabledCSS",
- "enabledJS"
- ],
"additionalProperties": false
},
- "SettingStatusBar": {
+ "SetFlashcardRequestInput": {
"type": "object",
"properties": {
- "msgDataSyncDisabled": {
- "type": "boolean"
- },
- "msgTaskAssetDatabaseIndexCommitDisabled": {
- "type": "boolean"
- },
- "msgTaskDatabaseIndexCommitDisabled": {
- "type": "boolean"
- },
- "msgTaskHistoryDatabaseIndexCommitDisabled": {
- "type": "boolean"
- },
- "msgTaskHistoryGenerateFileDisabled": {
- "type": "boolean"
+ "blockquote": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "version": {
- "type": "integer"
- }
- },
- "required": [
- "msgDataSyncDisabled",
- "msgTaskAssetDatabaseIndexCommitDisabled",
- "msgTaskDatabaseIndexCommitDisabled",
- "msgTaskHistoryDatabaseIndexCommitDisabled",
- "msgTaskHistoryGenerateFileDisabled",
- "version"
- ],
- "additionalProperties": false
- },
- "SettingStatusBarInput": {
- "type": "object",
- "properties": {
- "msgDataSyncDisabled": {
+ "callout": {
"anyOf": [
{
"type": "boolean"
@@ -29442,7 +33232,7 @@
}
]
},
- "msgTaskAssetDatabaseIndexCommitDisabled": {
+ "deck": {
"anyOf": [
{
"type": "boolean"
@@ -29452,7 +33242,7 @@
}
]
},
- "msgTaskDatabaseIndexCommitDisabled": {
+ "heading": {
"anyOf": [
{
"type": "boolean"
@@ -29462,7 +33252,7 @@
}
]
},
- "msgTaskHistoryDatabaseIndexCommitDisabled": {
+ "list": {
"anyOf": [
{
"type": "boolean"
@@ -29472,7 +33262,7 @@
}
]
},
- "msgTaskHistoryGenerateFileDisabled": {
+ "mark": {
"anyOf": [
{
"type": "boolean"
@@ -29482,7 +33272,7 @@
}
]
},
- "version": {
+ "maximumInterval": {
"anyOf": [
{
"type": "integer"
@@ -29491,206 +33281,90 @@
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "SettingThemeRequestInput": {
- "type": "object",
- "properties": {
- "appearanceMode": {
+ },
+ "newCardLimit": {
"anyOf": [
{
- "type": "string"
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "modes": {
+ "requestRetention": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "number"
- }
+ "type": "number"
},
{
"type": "null"
}
]
},
- "theme": {
+ "reviewCardLimit": {
"anyOf": [
{
- "type": "string"
+ "type": "integer"
},
{
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "SettingUser": {
- "type": "object",
- "properties": {
- "userAvatarURL": {
- "type": "string"
- },
- "userCreateTime": {
- "type": "string"
- },
- "userHomeBImgURL": {
- "type": "string"
- },
- "userId": {
- "type": "string"
- },
- "userIntro": {
- "type": "string"
- },
- "userName": {
- "type": "string"
- },
- "userNickname": {
- "type": "string"
- },
- "userSiYuanAssetSize": {
- "type": "number"
- },
- "userSiYuanOneTimePayStatus": {
- "type": "number"
- },
- "userSiYuanPointExchangeRepoSize": {
- "type": "number"
- },
- "userSiYuanProExpireTime": {
- "type": "number"
- },
- "userSiYuanRepoSize": {
- "type": "number"
- },
- "userSiYuanSubscriptionPlan": {
- "type": "number"
- },
- "userSiYuanSubscriptionStatus": {
- "type": "number"
},
- "userSiYuanSubscriptionType": {
- "type": "number"
- },
- "userTitles": {
+ "reviewMode": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/SettingUserTitle"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "userToken": {
- "type": "string"
- },
- "userTokenExpireTime": {
- "type": "string"
- },
- "userTrafficAPIGet": {
- "type": "number"
- },
- "userTrafficAPIPut": {
- "type": "number"
- },
- "userTrafficDownload": {
- "type": "number"
- },
- "userTrafficTime": {
- "type": "number"
- },
- "userTrafficUpload": {
- "type": "number"
- }
- },
- "required": [
- "userAvatarURL",
- "userCreateTime",
- "userHomeBImgURL",
- "userId",
- "userIntro",
- "userName",
- "userNickname",
- "userSiYuanAssetSize",
- "userSiYuanOneTimePayStatus",
- "userSiYuanPointExchangeRepoSize",
- "userSiYuanProExpireTime",
- "userSiYuanRepoSize",
- "userSiYuanSubscriptionPlan",
- "userSiYuanSubscriptionStatus",
- "userSiYuanSubscriptionType",
- "userTitles",
- "userToken",
- "userTokenExpireTime",
- "userTrafficAPIGet",
- "userTrafficAPIPut",
- "userTrafficDownload",
- "userTrafficTime",
- "userTrafficUpload"
- ],
- "additionalProperties": false
- },
- "SettingUserTitle": {
- "type": "object",
- "properties": {
- "desc": {
- "type": "string"
- },
- "icon": {
- "type": "string"
+ "superBlock": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "name": {
- "type": "string"
+ "weights": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
- "required": [
- "desc",
- "icon",
- "name"
- ],
"additionalProperties": false
},
- "SettingVariable": {
+ "SetGraphConfRequestInput": {
"type": "object",
"properties": {
- "name": {
- "type": "string"
+ "conf": {
+ "$ref": "#/$defs/GraphConfigurationFieldsInput"
},
- "value": {
+ "type": {
"type": "string"
}
},
"required": [
- "name",
- "value"
+ "conf",
+ "type"
],
"additionalProperties": false
},
- "SettingVariableInput": {
+ "SetInlineStylesRequestInput": {
"type": "object",
"properties": {
- "name": {
+ "app": {
"anyOf": [
{
"type": "string"
@@ -29700,215 +33374,153 @@
}
]
},
- "value": {
+ "av": {
"anyOf": [
{
- "type": "string"
+ "$ref": "#/$defs/InlineStyleAVInput"
},
{
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "SettingVariables": {
- "type": "object",
- "properties": {
- "items": {
+ },
+ "builtin": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/SettingVariable"
- },
- {
- "type": "null"
- }
- ]
- }
+ "$ref": "#/$defs/InlineStyleBuiltinInput"
},
{
"type": "null"
}
]
- }
- },
- "required": [
- "items"
- ],
- "additionalProperties": false
- },
- "Shorthand": {
- "type": "object",
- "properties": {
- "hCreated": {
- "type": "string"
- },
- "oId": {
- "type": "string"
- },
- "shorthandContent": {
- "type": "string"
- },
- "shorthandDesc": {
- "type": "string"
- },
- "shorthandFrom": {
- "type": "integer"
- },
- "shorthandMd": {
- "type": "string"
},
- "shorthandTitle": {
- "type": "string"
- },
- "shorthandURL": {
- "type": "string"
- }
- },
- "required": [
- "hCreated",
- "oId",
- "shorthandContent",
- "shorthandDesc",
- "shorthandFrom",
- "shorthandMd",
- "shorthandTitle",
- "shorthandURL"
- ],
- "additionalProperties": false
- },
- "ShorthandPage": {
- "type": "object",
- "properties": {
- "pagination": {
- "$ref": "#/$defs/ShorthandPagination"
+ "order": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/InlineStyleOrderInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "shorthands": {
+ "styles": {
"type": "array",
"items": {
"anyOf": [
{
- "$ref": "#/$defs/Shorthand"
+ "$ref": "#/$defs/InlineStyleInput"
},
{
"type": "null"
}
]
}
+ },
+ "version": {
+ "type": "number"
}
},
"required": [
- "pagination",
- "shorthands"
+ "styles",
+ "version"
],
"additionalProperties": false
},
- "ShorthandPagination": {
+ "SetNotebookConfRequestInput": {
"type": "object",
"properties": {
- "paginationPageCount": {
- "type": "integer"
- },
- "paginationPageNums": {
+ "conf": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "integer"
- }
+ "$ref": "#/$defs/NotebookConfPatchInput"
},
{
"type": "null"
}
]
},
- "paginationRecordCount": {
- "type": "integer"
+ "notebook": {
+ "type": "string"
}
},
"required": [
- "paginationPageCount",
- "paginationPageNums",
- "paginationRecordCount"
+ "notebook"
],
"additionalProperties": false
},
- "ShorthandsData": {
+ "SetNotebookIconRequestInput": {
"type": "object",
"properties": {
- "code": {
- "type": "integer"
- },
- "data": {
- "$ref": "#/$defs/ShorthandPage"
+ "icon": {
+ "type": "string"
},
- "msg": {
+ "notebook": {
"type": "string"
}
},
"required": [
- "code",
- "data",
- "msg"
+ "icon",
+ "notebook"
],
"additionalProperties": false
},
- "ShorthandsRequestInput": {
+ "SetPetalEnabledRequestInput": {
"type": "object",
"properties": {
- "page": {
- "type": "number"
+ "app": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "enabled": {
+ "type": "boolean"
+ },
+ "packageName": {
+ "type": "string"
}
},
"required": [
- "page"
+ "enabled",
+ "packageName"
],
"additionalProperties": false
},
- "Snippet": {
+ "SetPetalPublishEnabledRequestInput": {
"type": "object",
"properties": {
- "content": {
- "type": "string"
- },
- "disabledInPublish": {
- "type": "boolean"
- },
"enabled": {
"type": "boolean"
},
- "id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "type": {
+ "packageName": {
"type": "string"
}
},
"required": [
- "content",
- "disabledInPublish",
"enabled",
- "id",
- "name",
- "type"
+ "packageName"
],
"additionalProperties": false
},
- "SnippetInput": {
+ "SetPublishRequestInput": {
"type": "object",
"properties": {
- "content": {
- "type": "string"
+ "auth": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingBasicAuthInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "disabledInPublish": {
+ "enable": {
"anyOf": [
{
"type": "boolean"
@@ -29918,596 +33530,222 @@
}
]
},
- "enabled": {
- "type": "boolean"
- },
- "id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "type": {
- "type": "string"
+ "port": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
- "required": [
- "content",
- "enabled",
- "id",
- "name",
- "type"
- ],
"additionalProperties": false
},
- "SnippetsData": {
+ "SetRepoIndexRetentionDaysRequestInput": {
"type": "object",
"properties": {
- "snippets": {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/Snippet"
- },
- {
- "type": "null"
- }
- ]
- }
+ "days": {
+ "type": "number"
}
},
"required": [
- "snippets"
+ "days"
],
"additionalProperties": false
},
- "StorageKeyRequestInput": {
+ "SetRetentionIndexesDailyRequestInput": {
"type": "object",
"properties": {
- "key": {
- "type": "string"
+ "indexes": {
+ "type": "number"
}
},
"required": [
- "key"
+ "indexes"
],
"additionalProperties": false
},
- "StorageKeysRequestInput": {
+ "SetRiffCardsDueRequestInput": {
"type": "object",
"properties": {
- "keys": {
+ "cardDues": {
"type": "array",
"items": {
- "type": "string"
+ "$ref": "#/$defs/RiffCardDueInput"
}
}
},
"required": [
- "keys"
+ "cardDues"
],
"additionalProperties": false
},
- "StorageRemoveKeysRequestInput": {
+ "SetSearchRequestInput": {
"type": "object",
"properties": {
- "app": {
+ "alias": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "keys": {
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- },
- "required": [
- "keys"
- ],
- "additionalProperties": false
- },
- "StorageRemoveRequestInput": {
- "type": "object",
- "properties": {
- "app": {
+ "audioBlock": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "key": {
- "type": "string"
- }
- },
- "required": [
- "key"
- ],
- "additionalProperties": false
- },
- "StorageSetKeysRequestInput": {
- "type": "object",
- "properties": {
- "app": {
+ "backlinkMentionAlias": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "keyVals": {
- "type": "object",
- "additionalProperties": {
- "$ref": "#/$defs/JSONValue"
- }
- }
- },
- "required": [
- "keyVals"
- ],
- "additionalProperties": false
- },
- "StorageSetRequestInput": {
- "type": "object",
- "properties": {
- "app": {
+ "backlinkMentionAnchor": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "key": {
- "type": "string"
- },
- "val": {
+ "backlinkMentionDoc": {
"anyOf": [
{
- "$ref": "#/$defs/JSONValue"
+ "type": "boolean"
},
{
"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": {
+ "backlinkMentionKeywordsLimit": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/SyncOnlineKernel"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "integer"
},
{
"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": {
+ "backlinkMentionName": {
"anyOf": [
{
- "type": "number"
+ "type": "boolean"
},
{
"type": "null"
}
]
- }
- },
- "required": [
- "enabled"
- ],
- "additionalProperties": false
- },
- "SyncLANStatus": {
- "type": "object",
- "properties": {
- "active": {
- "type": "boolean"
- },
- "connectedPeers": {
- "type": "integer"
- },
- "discoveredPeers": {
- "type": "integer"
},
- "enabled": {
- "type": "boolean"
- },
- "maxConcurrentReqs": {
- "type": "integer"
- }
- },
- "required": [
- "active",
- "connectedPeers",
- "discoveredPeers",
- "enabled",
- "maxConcurrentReqs"
- ],
- "additionalProperties": false
- },
- "SyncLocal": {
- "type": "object",
- "properties": {
- "concurrentReqs": {
- "type": "integer"
- },
- "endpoint": {
- "type": "string"
- },
- "timeout": {
- "type": "integer"
- }
- },
- "required": [
- "concurrentReqs",
- "endpoint",
- "timeout"
- ],
- "additionalProperties": false
- },
- "SyncLocalData": {
- "type": "object",
- "properties": {
- "local": {
+ "blockquote": {
"anyOf": [
{
- "$ref": "#/$defs/SyncLocal"
+ "type": "boolean"
},
{
"type": "null"
}
]
- }
- },
- "required": [
- "local"
- ],
- "additionalProperties": false
- },
- "SyncLocalInput": {
- "type": "object",
- "properties": {
- "concurrentReqs": {
+ },
+ "callout": {
"anyOf": [
{
- "type": "integer"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "endpoint": {
+ "caseSensitive": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "timeout": {
+ "codeBlock": {
"anyOf": [
{
- "type": "integer"
+ "type": "boolean"
},
{
"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": {
+ "databaseBlock": {
"anyOf": [
{
- "$ref": "#/$defs/SyncS3"
+ "type": "boolean"
},
{
"type": "null"
}
]
- }
- },
- "required": [
- "s3"
- ],
- "additionalProperties": false
- },
- "SyncS3Input": {
- "type": "object",
- "properties": {
- "accessKey": {
+ },
+ "document": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "bucket": {
+ "embedBlock": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "concurrentReqs": {
+ "hanSensitive": {
"anyOf": [
{
- "type": "integer"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "endpoint": {
+ "heading": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "pathStyle": {
+ "htmlBlock": {
"anyOf": [
{
"type": "boolean"
@@ -30517,27 +33755,27 @@
}
]
},
- "region": {
+ "ial": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "secretKey": {
+ "iframeBlock": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "skipTlsVerify": {
+ "indexAssetPath": {
"anyOf": [
{
"type": "boolean"
@@ -30547,7 +33785,7 @@
}
]
},
- "timeout": {
+ "limit": {
"anyOf": [
{
"type": "integer"
@@ -30556,95 +33794,48 @@
"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": {
+ "list": {
"anyOf": [
{
- "$ref": "#/$defs/SyncWebDAV"
+ "type": "boolean"
},
{
"type": "null"
}
]
- }
- },
- "required": [
- "webdav"
- ],
- "additionalProperties": false
- },
- "SyncWebDAVInput": {
- "type": "object",
- "properties": {
- "concurrentReqs": {
+ },
+ "listItem": {
"anyOf": [
{
- "type": "integer"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "endpoint": {
+ "mathBlock": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "password": {
+ "memo": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "skipTlsVerify": {
+ "name": {
"anyOf": [
{
"type": "boolean"
@@ -30654,127 +33845,110 @@
}
]
},
- "timeout": {
+ "paragraph": {
"anyOf": [
{
- "type": "integer"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "username": {
+ "superBlock": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "TagData": {
- "type": "object",
- "properties": {
- "children": {
+ },
+ "tabItem": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/TagData"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "count": {
- "type": "integer"
- },
- "depth": {
- "type": "integer"
+ "table": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "label": {
- "type": "string"
+ "tabs": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "name": {
- "type": "string"
+ "videoBlock": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "type": {
- "type": "string"
- }
- },
- "required": [
- "children",
- "count",
- "depth",
- "label",
- "name",
- "type"
- ],
- "additionalProperties": false
- },
- "TagSnapshotRequestInput": {
- "type": "object",
- "properties": {
- "id": {
- "type": "string"
+ "virtualRefAlias": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "name": {
- "type": "string"
- }
- },
- "required": [
- "id",
- "name"
- ],
- "additionalProperties": false
- },
- "TailChildBlocksRequestInput": {
- "type": "object",
- "properties": {
- "id": {
- "type": "string"
+ "virtualRefAnchor": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "ids": {
+ "virtualRefDoc": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "n": {
+ "virtualRefName": {
"anyOf": [
{
- "type": "number"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "notebook": {
+ "widgetBlock": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
@@ -30782,147 +33956,112 @@
]
}
},
- "required": [
- "id"
- ],
"additionalProperties": false
},
- "TaskListMarkerRequestInput": {
+ "SetSecretsRequestInput": {
"type": "object",
"properties": {
- "id": {
- "type": "string"
- },
- "marker": {
- "type": "string"
+ "items": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingSecretInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
- "required": [
- "id",
- "marker"
- ],
"additionalProperties": false
},
- "TemplateDocumentInfo": {
+ "SetSnapshotMemoRequestInput": {
"type": "object",
"properties": {
- "directory": {
+ "id": {
"type": "string"
},
- "hasDatabase": {
- "type": "boolean"
- },
- "name": {
+ "memo": {
"type": "string"
}
},
"required": [
- "directory",
- "hasDatabase",
- "name"
+ "id",
+ "memo"
],
"additionalProperties": false
},
- "TemplateDocumentRequestInput": {
+ "SetSnippetRequestInput": {
"type": "object",
"properties": {
- "id": {
- "type": "string"
+ "snippets": {
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/SnippetInput"
+ }
}
},
"required": [
- "id"
+ "snippets"
],
"additionalProperties": false
},
- "TemplateFileEntry": {
+ "SetSyncLocalRequestInput": {
"type": "object",
"properties": {
- "isDir": {
- "type": "boolean"
- },
- "isPackage": {
- "type": "boolean"
- },
- "path": {
- "type": "string"
+ "local": {
+ "$ref": "#/$defs/SyncLocalInput"
}
},
"required": [
- "isDir",
- "path"
+ "local"
],
"additionalProperties": false
},
- "TemplateFileRequestInput": {
- "type": "object",
- "properties": {
- "action": {
- "type": "string"
- },
- "content": {
- "type": "string"
- },
- "path": {
- "type": "string"
- },
- "revision": {
- "type": "string"
- },
- "target": {
- "type": "string"
- }
- },
- "additionalProperties": false
- },
- "TemplateFileRevision": {
+ "SetSyncS3RequestInput": {
"type": "object",
"properties": {
- "revision": {
- "type": "string"
+ "s3": {
+ "$ref": "#/$defs/SyncS3Input"
}
},
"required": [
- "revision"
+ "s3"
],
"additionalProperties": false
},
- "TemplateFileSource": {
+ "SetSyncWebDAVRequestInput": {
"type": "object",
"properties": {
- "content": {
- "type": "string"
- },
- "path": {
- "type": "string"
- },
- "revision": {
- "type": "string"
+ "webdav": {
+ "$ref": "#/$defs/SyncWebDAVInput"
}
},
"required": [
- "content",
- "revision"
+ "webdav"
],
"additionalProperties": false
},
- "TemplatePlan": {
+ "SetVariablesRequestInput": {
"type": "object",
"properties": {
- "count": {
- "type": "integer"
- },
- "id": {
- "type": "string"
- },
- "nodes": {
+ "items": {
"anyOf": [
{
"type": "array",
"items": {
"anyOf": [
{
- "$ref": "#/$defs/TemplatePlanNode"
+ "$ref": "#/$defs/SettingVariableInput"
},
{
"type": "null"
@@ -30936,138 +34075,74 @@
]
}
},
- "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": {
+ "SettingAI": {
"type": "object",
"properties": {
- "fromID": {
- "type": "string"
- },
- "refIDs": {
+ "agent": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "$ref": "#/$defs/SettingAgent"
},
{
"type": "null"
}
]
},
- "reloadUI": {
+ "editing": {
"anyOf": [
{
- "type": "boolean"
+ "$ref": "#/$defs/SettingEditing"
},
{
"type": "null"
}
]
},
- "toID": {
- "type": "string"
- }
- },
- "required": [
- "fromID",
- "toID"
- ],
- "additionalProperties": false
- },
- "TreeStatData": {
- "type": "object",
- "properties": {
- "containsEmbed": {
- "type": "boolean"
- },
- "embedStat": {
+ "embedding": {
"anyOf": [
{
- "$ref": "#/$defs/EmbedStat"
+ "$ref": "#/$defs/SettingEmbedding"
},
{
"type": "null"
}
]
},
- "reqId": {
- "$ref": "#/$defs/JSONValue"
- },
- "stat": {
+ "imageGeneration": {
"anyOf": [
{
- "$ref": "#/$defs/BlockStat"
+ "$ref": "#/$defs/SettingImageGeneration"
},
{
"type": "null"
}
]
},
- "statWithEmbed": {
+ "mcp": {
"anyOf": [
{
- "$ref": "#/$defs/BlockStat"
+ "$ref": "#/$defs/SettingMCP"
},
{
"type": "null"
}
]
- }
- },
- "required": [
- "reqId",
- "stat"
- ],
- "additionalProperties": false
- },
- "TreeStatRequestInput": {
- "type": "object",
- "properties": {
- "id": {
- "type": "string"
},
- "ids": {
+ "providers": {
"anyOf": [
{
"type": "array",
"items": {
- "type": "string"
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingProvider"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
{
@@ -31075,178 +34150,165 @@
}
]
},
- "includeEmbed": {
+ "rerank": {
"anyOf": [
{
- "type": "boolean"
+ "$ref": "#/$defs/SettingRerank"
},
{
"type": "null"
}
]
- },
- "notebook": {
+ }
+ },
+ "required": [
+ "agent",
+ "editing",
+ "embedding",
+ "imageGeneration",
+ "mcp",
+ "providers",
+ "rerank"
+ ],
+ "additionalProperties": false
+ },
+ "SettingAgent": {
+ "type": "object",
+ "properties": {
+ "approvalPolicy": {
"anyOf": [
{
- "type": "string"
+ "$ref": "#/$defs/SettingApprovalPolicy"
},
{
"type": "null"
}
]
},
- "reqId": {
+ "capabilityPolicy": {
"anyOf": [
{
- "$ref": "#/$defs/JSONValue"
+ "$ref": "#/$defs/SettingCapabilityPolicy"
},
{
"type": "null"
}
]
- }
- },
- "required": [
- "id"
- ],
- "additionalProperties": false
- },
- "TrimmedIDRequestInput": {
- "type": "object",
- "properties": {
- "id": {
- "type": "string"
- }
- },
- "required": [
- "id"
- ],
- "additionalProperties": false
- },
- "UnfoldedParentData": {
- "type": "object",
- "properties": {
- "parentID": {
+ },
+ "confirmTimeout": {
+ "type": "integer"
+ },
+ "maxCompletionTokens": {
+ "type": "integer"
+ },
+ "maxRetries": {
+ "type": "integer"
+ },
+ "maxToolCallRounds": {
+ "type": "integer"
+ },
+ "modelId": {
"type": "string"
- }
- },
- "required": [
- "parentID"
- ],
- "additionalProperties": false
- },
- "UninstallBazaarIconRequestInput": {
- "type": "object",
- "properties": {
- "keyword": {
+ },
+ "sessionTimeout": {
+ "type": "integer"
+ },
+ "skills": {
"anyOf": [
{
- "type": "string"
+ "$ref": "#/$defs/SettingAgentSkills"
},
{
"type": "null"
}
]
},
- "packageName": {
- "type": "string"
+ "streamIdleTimeout": {
+ "type": "integer"
+ },
+ "temperature": {
+ "type": "number"
}
},
"required": [
- "packageName"
+ "approvalPolicy",
+ "capabilityPolicy",
+ "confirmTimeout",
+ "maxCompletionTokens",
+ "maxRetries",
+ "maxToolCallRounds",
+ "modelId",
+ "sessionTimeout",
+ "skills",
+ "streamIdleTimeout",
+ "temperature"
],
"additionalProperties": false
},
- "UninstallBazaarPluginRequestInput": {
+ "SettingAgentInput": {
"type": "object",
"properties": {
- "frontend": {
+ "approvalPolicy": {
"anyOf": [
{
- "type": "string"
+ "$ref": "#/$defs/SettingApprovalPolicyInput"
},
{
"type": "null"
}
]
},
- "keyword": {
+ "capabilityPolicy": {
"anyOf": [
{
- "type": "string"
+ "$ref": "#/$defs/SettingCapabilityPolicyInput"
},
{
"type": "null"
}
]
},
- "packageName": {
- "type": "string"
- }
- },
- "required": [
- "packageName"
- ],
- "additionalProperties": false
- },
- "UninstallBazaarTemplateRequestInput": {
- "type": "object",
- "properties": {
- "keyword": {
+ "confirmTimeout": {
"anyOf": [
{
- "type": "string"
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "packageName": {
- "type": "string"
- }
- },
- "required": [
- "packageName"
- ],
- "additionalProperties": false
- },
- "UninstallBazaarThemeRequestInput": {
- "type": "object",
- "properties": {
- "frontend": {
+ "maxCompletionTokens": {
"anyOf": [
{
- "type": "string"
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "keyword": {
+ "maxRetries": {
"anyOf": [
{
- "type": "string"
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "packageName": {
- "type": "string"
- }
- },
- "required": [
- "packageName"
- ],
- "additionalProperties": false
- },
- "UninstallBazaarWidgetRequestInput": {
- "type": "object",
- "properties": {
- "keyword": {
+ "maxToolCallRounds": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "modelId": {
"anyOf": [
{
"type": "string"
@@ -31256,264 +34318,363 @@
}
]
},
- "packageName": {
- "type": "string"
+ "sessionTimeout": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "skills": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingAgentSkillsInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "streamIdleTimeout": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "temperature": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
- "required": [
- "packageName"
- ],
"additionalProperties": false
},
- "UnlockNotebookRequestInput": {
+ "SettingAgentSkills": {
"type": "object",
"properties": {
- "notebook": {
- "type": "string"
- },
- "password": {
- "type": "string"
+ "userEnabled": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
"required": [
- "notebook",
- "password"
+ "userEnabled"
],
"additionalProperties": false
},
- "UnzipRequestInput": {
+ "SettingAgentSkillsInput": {
"type": "object",
"properties": {
- "path": {
- "type": "string"
- },
- "zipPath": {
- "type": "string"
+ "userEnabled": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
- "required": [
- "path",
- "zipPath"
- ],
"additionalProperties": false
},
- "UpdateBazaarPackageRequestInput": {
+ "SettingAppearance": {
"type": "object",
"properties": {
- "frontend": {
- "type": "string"
- },
- "keyword": {
+ "bodyGradient": {
"anyOf": [
{
- "type": "string"
+ "$ref": "#/$defs/SettingBodyGradient"
},
{
"type": "null"
}
]
},
- "packageName": {
- "type": "string"
+ "closeButtonBehavior": {
+ "type": "integer"
},
- "packageType": {
- "type": "string"
- }
- },
- "required": [
- "frontend",
- "packageName",
- "packageType"
- ],
- "additionalProperties": false
- },
- "UpdateBlockRequestInput": {
- "type": "object",
- "properties": {
- "data": {
+ "codeBlockThemeDark": {
"type": "string"
},
- "dataType": {
+ "codeBlockThemeLight": {
"type": "string"
},
- "id": {
- "type": "string"
+ "darkThemes": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingAppearanceTheme"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "lockType": {
+ "entryVisibility": {
"anyOf": [
{
- "type": "boolean"
+ "$ref": "#/$defs/SettingEntryVisibility"
},
{
"type": "null"
}
]
- }
- },
- "required": [
- "data",
- "dataType",
- "id"
- ],
- "additionalProperties": false
- },
- "UpdateChannelRequestInput": {
- "type": "object",
- "properties": {
- "updateChannel": {
- "type": "string"
- }
- },
- "required": [
- "updateChannel"
- ],
- "additionalProperties": false
- },
- "UpdateEmbedBlockRequestInput": {
- "type": "object",
- "properties": {
- "content": {
+ },
+ "globalFontFamilies": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingEditorFont"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "hideStatusBar": {
+ "type": "boolean"
+ },
+ "hideToolbar": {
+ "type": "boolean"
+ },
+ "icon": {
"type": "string"
},
- "id": {
+ "iconVer": {
"type": "string"
- }
- },
- "required": [
- "content",
- "id"
- ],
- "additionalProperties": false
- },
- "UpdatePinnedDocsRequestInput": {
- "type": "object",
- "properties": {
- "action": {
+ },
+ "icons": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingAppearanceIcon"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "lang": {
"type": "string"
},
- "after": {
+ "lightThemes": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingAppearanceTheme"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "mode": {
+ "type": "integer"
+ },
+ "modeOS": {
"type": "boolean"
},
- "ids": {
- "type": "array",
- "items": {
- "type": "string"
- }
+ "notifications": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingNotifications"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "targetID": {
- "type": "string"
- }
- },
- "required": [
- "action",
- "ids"
- ],
- "additionalProperties": false
- },
- "UploadAssetRequestInput": {
- "type": "object",
- "properties": {
- "assetsDirPath": {
+ "statusBar": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingStatusBar"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "themeDark": {
"type": "string"
},
- "file[]": {
- "type": "array",
- "items": {
- "type": "string",
- "format": "binary"
- }
+ "themeJS": {
+ "type": "boolean"
},
- "id": {
+ "themeLight": {
+ "type": "string"
+ },
+ "themeVer": {
"type": "string"
}
},
+ "required": [
+ "bodyGradient",
+ "closeButtonBehavior",
+ "codeBlockThemeDark",
+ "codeBlockThemeLight",
+ "darkThemes",
+ "entryVisibility",
+ "globalFontFamilies",
+ "hideStatusBar",
+ "hideToolbar",
+ "icon",
+ "iconVer",
+ "icons",
+ "lang",
+ "lightThemes",
+ "mode",
+ "modeOS",
+ "notifications",
+ "statusBar",
+ "themeDark",
+ "themeJS",
+ "themeLight",
+ "themeVer"
+ ],
"additionalProperties": false
},
- "UploadCloudSnapshotRequestInput": {
+ "SettingAppearanceIcon": {
"type": "object",
"properties": {
- "id": {
+ "label": {
"type": "string"
},
- "tag": {
+ "name": {
"type": "string"
}
},
"required": [
- "id",
- "tag"
+ "label",
+ "name"
],
"additionalProperties": false
},
- "ViewStatePatchRequestInput": {
+ "SettingAppearanceIconInput": {
"type": "object",
"properties": {
- "key": {
- "type": "string"
- },
- "removeKeys": {
+ "label": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "type": "string"
},
{
"type": "null"
}
]
},
- "values": {
- "type": "object",
- "additionalProperties": {
- "$ref": "#/$defs/JSONValue"
- }
+ "name": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
- "required": [
- "key"
- ],
"additionalProperties": false
},
- "VirtualBlockRefRequestInput": {
+ "SettingAppearanceTheme": {
"type": "object",
"properties": {
- "keywords": {
+ "frontends": {
"type": "array",
"items": {
"type": "string"
}
- }
- },
- "required": [
- "keywords"
- ],
- "additionalProperties": false
- },
- "WPSPresentationData": {
- "type": "object",
- "properties": {
- "converted": {
- "type": "boolean"
},
- "dom": {
+ "label": {
+ "type": "string"
+ },
+ "name": {
"type": "string"
}
},
"required": [
- "converted",
- "dom"
+ "label",
+ "name"
],
"additionalProperties": false
},
- "WPSPresentationRequestInput": {
+ "SettingAppearanceThemeInput": {
"type": "object",
"properties": {
- "data": {
- "type": "string"
+ "frontends": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "text": {
+ "label": {
"anyOf": [
{
"type": "string"
@@ -31523,26 +34684,39 @@
}
]
},
- "type": {
- "type": "string"
+ "name": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
- "required": [
- "data",
- "type"
- ],
"additionalProperties": false
},
- "WordCountData": {
+ "SettingApprovalPolicy": {
"type": "object",
"properties": {
- "reqId": {
- "$ref": "#/$defs/JSONValue"
+ "default": {
+ "type": "string"
},
- "stat": {
+ "overrides": {
"anyOf": [
{
- "$ref": "#/$defs/BlockStat"
+ "type": "object",
+ "additionalProperties": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingCapabilityApproval"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
@@ -31551,173 +34725,9963 @@
}
},
"required": [
- "reqId",
- "stat"
+ "default",
+ "overrides"
],
"additionalProperties": false
},
- "WorkspaceAVBuiltinColorUpdateInput": {
+ "SettingApprovalPolicyInput": {
"type": "object",
"properties": {
- "customized": {
+ "default": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "dark": {
+ "overrides": {
"anyOf": [
{
- "$ref": "#/$defs/InlineStyleThemeInput"
+ "type": "object",
+ "additionalProperties": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingCapabilityApprovalInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
+ }
+ },
+ "additionalProperties": false
+ },
+ "SettingAssetOpen": {
+ "type": "object",
+ "properties": {
+ "altClick": {
+ "type": "string"
},
- "hidden": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
+ "click": {
+ "type": "string"
+ },
+ "ctrlClick": {
+ "type": "string"
+ },
+ "shiftClick": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "altClick",
+ "click",
+ "ctrlClick",
+ "shiftClick"
+ ],
+ "additionalProperties": false
+ },
+ "SettingAssetOpenInput": {
+ "type": "object",
+ "properties": {
+ "altClick": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
"type": "null"
}
]
},
- "index": {
+ "click": {
"anyOf": [
{
- "type": "integer"
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "ctrlClick": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "shiftClick": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "SettingBasicAuth": {
+ "type": "object",
+ "properties": {
+ "accounts": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingBasicAuthAccount"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "enable": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "accounts",
+ "enable"
+ ],
+ "additionalProperties": false
+ },
+ "SettingBasicAuthAccount": {
+ "type": "object",
+ "properties": {
+ "memo": {
+ "type": "string"
+ },
+ "password": {
+ "type": "string"
+ },
+ "username": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "memo",
+ "password",
+ "username"
+ ],
+ "additionalProperties": false
+ },
+ "SettingBasicAuthAccountInput": {
+ "type": "object",
+ "properties": {
+ "memo": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "password": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "username": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "SettingBasicAuthInput": {
+ "type": "object",
+ "properties": {
+ "accounts": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingBasicAuthAccountInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "enable": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "SettingBazaar": {
+ "type": "object",
+ "properties": {
+ "petalDisabled": {
+ "type": "boolean"
+ },
+ "trust": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "petalDisabled",
+ "trust"
+ ],
+ "additionalProperties": false
+ },
+ "SettingBodyGradient": {
+ "type": "object",
+ "properties": {
+ "dark": {
+ "$ref": "#/$defs/SettingBodyGradientColor"
+ },
+ "light": {
+ "$ref": "#/$defs/SettingBodyGradientColor"
+ },
+ "mode": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "dark",
+ "light",
+ "mode"
+ ],
+ "additionalProperties": false
+ },
+ "SettingBodyGradientColor": {
+ "type": "object",
+ "properties": {
+ "color": {
+ "type": "string"
+ },
+ "opacity": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "color",
+ "opacity"
+ ],
+ "additionalProperties": false
+ },
+ "SettingBodyGradientColorInput": {
+ "type": "object",
+ "properties": {
+ "color": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "opacity": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "SettingBodyGradientInput": {
+ "type": "object",
+ "properties": {
+ "dark": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingBodyGradientColorInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "light": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingBodyGradientColorInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "mode": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "SettingBootAppearance": {
+ "type": "object",
+ "properties": {
+ "appearance": {
+ "type": "string"
+ },
+ "backgroundColor": {
+ "type": "string"
+ },
+ "displayName": {
+ "type": "string"
+ },
+ "enabled": {
+ "type": "boolean"
+ },
+ "frontends": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "layers": {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingBootAppearanceLayer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "officialUI": {
+ "$ref": "#/$defs/SettingBootAppearanceOfficialUI"
+ },
+ "provider": {
+ "type": "string"
+ },
+ "style": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "enabled"
+ ],
+ "additionalProperties": false
+ },
+ "SettingBootAppearanceCurrent": {
+ "type": "object",
+ "properties": {
+ "appearance": {
+ "type": "string"
+ },
+ "provider": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "appearance",
+ "provider"
+ ],
+ "additionalProperties": false
+ },
+ "SettingBootAppearanceLayer": {
+ "type": "object",
+ "properties": {
+ "fit": {
+ "type": "string"
+ },
+ "id": {
+ "type": "string"
+ },
+ "position": {
+ "type": "string"
+ },
+ "poster": {
+ "type": "string"
+ },
+ "src": {
+ "type": "string"
+ },
+ "type": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "src",
+ "type"
+ ],
+ "additionalProperties": false
+ },
+ "SettingBootAppearanceOfficialUI": {
+ "type": "object",
+ "properties": {
+ "progressColor": {
+ "type": "string"
+ },
+ "showDetails": {
+ "type": "boolean"
+ },
+ "showLogo": {
+ "type": "boolean"
+ },
+ "textColor": {
+ "type": "string"
+ },
+ "trackColor": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "showDetails",
+ "showLogo"
+ ],
+ "additionalProperties": false
+ },
+ "SettingBootAppearanceRequestInput": {
+ "type": "object",
+ "properties": {
+ "appearance": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "provider": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "SettingBootAppearanceSelection": {
+ "type": "object",
+ "properties": {
+ "appearance": {
+ "type": "string"
+ },
+ "provider": {
+ "type": "string"
+ },
+ "schemaVersion": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "appearance",
+ "provider",
+ "schemaVersion"
+ ],
+ "additionalProperties": false
+ },
+ "SettingBootAppearancesData": {
+ "type": "object",
+ "properties": {
+ "appearances": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingBootAppearance"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "current": {
+ "$ref": "#/$defs/SettingBootAppearanceCurrent"
+ }
+ },
+ "required": [
+ "appearances",
+ "current"
+ ],
+ "additionalProperties": false
+ },
+ "SettingCapabilityApproval": {
+ "type": "object",
+ "properties": {
+ "actions": {
+ "anyOf": [
+ {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "default": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "actions",
+ "default"
+ ],
+ "additionalProperties": false
+ },
+ "SettingCapabilityApprovalInput": {
+ "type": "object",
+ "properties": {
+ "actions": {
+ "anyOf": [
+ {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "default": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "SettingCapabilityPolicy": {
+ "type": "object",
+ "properties": {
+ "default": {
+ "type": "string"
+ },
+ "overrides": {
+ "anyOf": [
+ {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "default",
+ "overrides"
+ ],
+ "additionalProperties": false
+ },
+ "SettingCapabilityPolicyInput": {
+ "type": "object",
+ "properties": {
+ "default": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "overrides": {
+ "anyOf": [
+ {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "SettingCloudUserRequestInput": {
+ "type": "object",
+ "properties": {
+ "token": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "SettingEditing": {
+ "type": "object",
+ "properties": {
+ "maxCompletionTokens": {
+ "type": "integer"
+ },
+ "maxHistoryMessages": {
+ "type": "integer"
+ },
+ "modelId": {
+ "type": "string"
+ },
+ "temperature": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "maxCompletionTokens",
+ "maxHistoryMessages",
+ "modelId",
+ "temperature"
+ ],
+ "additionalProperties": false
+ },
+ "SettingEditingInput": {
+ "type": "object",
+ "properties": {
+ "maxCompletionTokens": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "maxHistoryMessages": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "modelId": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "temperature": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "SettingEditor": {
+ "type": "object",
+ "properties": {
+ "allowHTMLBLockScript": {
+ "type": "boolean"
+ },
+ "allowSVGScript": {
+ "type": "boolean"
+ },
+ "assetOpen": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingAssetOpen"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "backlinkContainChildren": {
+ "type": "boolean"
+ },
+ "backlinkExpandCount": {
+ "type": "integer"
+ },
+ "backlinkHideReference": {
+ "type": "boolean"
+ },
+ "backlinkMentionExclude": {
+ "type": "string"
+ },
+ "backlinkShowBottom": {
+ "type": "boolean"
+ },
+ "backlinkSort": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "backmentionExpandCount": {
+ "type": "integer"
+ },
+ "backmentionSort": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "blockRefDynamicAnchorTextMaxLen": {
+ "type": "integer"
+ },
+ "checkBlockRef": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "codeFontFamilies": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingEditorFont"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "codeLigatures": {
+ "type": "boolean"
+ },
+ "codeLineWrap": {
+ "type": "boolean"
+ },
+ "codeSyntaxHighlightLineNum": {
+ "type": "boolean"
+ },
+ "codeTabSpaces": {
+ "type": "integer"
+ },
+ "cursorSurroundingLines": {
+ "type": "integer"
+ },
+ "databaseAttrClickMode": {
+ "type": "integer"
+ },
+ "databaseAttrHideEmpty": {
+ "type": "boolean"
+ },
+ "databaseAttrShow": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "databaseAttrUseTabs": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "databaseAttrViewMode": {
+ "type": "integer"
+ },
+ "displayBookmarkIcon": {
+ "type": "boolean"
+ },
+ "displayNetImgMark": {
+ "type": "boolean"
+ },
+ "dragHTMLFileToIframe": {
+ "type": "boolean"
+ },
+ "dynamicLoadBlocks": {
+ "type": "integer"
+ },
+ "embedBlockBreadcrumb": {
+ "type": "boolean"
+ },
+ "emoji": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "floatWindowDelay": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "floatWindowMode": {
+ "type": "integer"
+ },
+ "fontFamilies": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingEditorFont"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "fontFamily": {
+ "type": "string"
+ },
+ "fontFamilyDisplay": {
+ "type": "string"
+ },
+ "fontSize": {
+ "type": "integer"
+ },
+ "fontSizeScrollZoom": {
+ "type": "boolean"
+ },
+ "fontWeight": {
+ "type": "integer"
+ },
+ "fullWidth": {
+ "type": "boolean"
+ },
+ "generateHistoryInterval": {
+ "type": "integer"
+ },
+ "hashTagSearch": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "headingEmbedMode": {
+ "type": "integer"
+ },
+ "headingNumber": {
+ "type": "boolean"
+ },
+ "headingNumberFormat": {
+ "type": "string"
+ },
+ "historyRetentionDays": {
+ "type": "integer"
+ },
+ "justify": {
+ "type": "boolean"
+ },
+ "katexMacros": {
+ "type": "string"
+ },
+ "keepLoadedContent": {
+ "type": "boolean"
+ },
+ "listItemDotNumberClickFocus": {
+ "type": "boolean"
+ },
+ "listLogicalOutdent": {
+ "type": "boolean"
+ },
+ "markdown": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingMarkdown"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "onlySearchForDoc": {
+ "type": "boolean"
+ },
+ "pasteURLAutoConvert": {
+ "type": "boolean"
+ },
+ "plantUMLServePath": {
+ "type": "string"
+ },
+ "readOnly": {
+ "type": "boolean"
+ },
+ "rtl": {
+ "type": "boolean"
+ },
+ "spellcheck": {
+ "type": "boolean"
+ },
+ "spellcheckLanguages": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "virtualBlockRef": {
+ "type": "boolean"
+ },
+ "virtualBlockRefExclude": {
+ "type": "string"
+ },
+ "virtualBlockRefInclude": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "allowHTMLBLockScript",
+ "allowSVGScript",
+ "assetOpen",
+ "backlinkContainChildren",
+ "backlinkExpandCount",
+ "backlinkHideReference",
+ "backlinkMentionExclude",
+ "backlinkShowBottom",
+ "backlinkSort",
+ "backmentionExpandCount",
+ "backmentionSort",
+ "blockRefDynamicAnchorTextMaxLen",
+ "checkBlockRef",
+ "codeFontFamilies",
+ "codeLigatures",
+ "codeLineWrap",
+ "codeSyntaxHighlightLineNum",
+ "codeTabSpaces",
+ "cursorSurroundingLines",
+ "databaseAttrClickMode",
+ "databaseAttrHideEmpty",
+ "databaseAttrShow",
+ "databaseAttrUseTabs",
+ "databaseAttrViewMode",
+ "displayBookmarkIcon",
+ "displayNetImgMark",
+ "dragHTMLFileToIframe",
+ "dynamicLoadBlocks",
+ "embedBlockBreadcrumb",
+ "emoji",
+ "floatWindowDelay",
+ "floatWindowMode",
+ "fontFamilies",
+ "fontFamily",
+ "fontFamilyDisplay",
+ "fontSize",
+ "fontSizeScrollZoom",
+ "fontWeight",
+ "fullWidth",
+ "generateHistoryInterval",
+ "hashTagSearch",
+ "headingEmbedMode",
+ "headingNumber",
+ "headingNumberFormat",
+ "historyRetentionDays",
+ "justify",
+ "katexMacros",
+ "keepLoadedContent",
+ "listItemDotNumberClickFocus",
+ "listLogicalOutdent",
+ "markdown",
+ "onlySearchForDoc",
+ "pasteURLAutoConvert",
+ "plantUMLServePath",
+ "readOnly",
+ "rtl",
+ "spellcheck",
+ "spellcheckLanguages",
+ "virtualBlockRef",
+ "virtualBlockRefExclude",
+ "virtualBlockRefInclude"
+ ],
+ "additionalProperties": false
+ },
+ "SettingEditorFont": {
+ "type": "object",
+ "properties": {
+ "displayName": {
+ "type": "string"
+ },
+ "family": {
+ "type": "string"
+ },
+ "weight": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "displayName",
+ "family",
+ "weight"
+ ],
+ "additionalProperties": false
+ },
+ "SettingEditorFontInput": {
+ "type": "object",
+ "properties": {
+ "displayName": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "family": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "weight": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "SettingEmbedding": {
+ "type": "object",
+ "properties": {
+ "apiKey": {
+ "type": "string"
+ },
+ "baseURL": {
+ "type": "string"
+ },
+ "dimensions": {
+ "type": "integer"
+ },
+ "enabled": {
+ "type": "boolean"
+ },
+ "id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "timeout": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "apiKey",
+ "baseURL",
+ "dimensions",
+ "enabled",
+ "id",
+ "name",
+ "timeout"
+ ],
+ "additionalProperties": false
+ },
+ "SettingEmbeddingInput": {
+ "type": "object",
+ "properties": {
+ "apiKey": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "baseURL": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "dimensions": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "enabled": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "id": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "name": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "timeout": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "SettingEmojiRequestInput": {
+ "type": "object",
+ "properties": {
+ "emoji": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ },
+ "required": [
+ "emoji"
+ ],
+ "additionalProperties": false
+ },
+ "SettingEntryVisibility": {
+ "type": "object",
+ "properties": {
+ "active": {
+ "type": "string"
+ },
+ "profiles": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingEntryVisibilityProfile"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "version": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "active",
+ "profiles",
+ "version"
+ ],
+ "additionalProperties": false
+ },
+ "SettingEntryVisibilityInput": {
+ "type": "object",
+ "properties": {
+ "active": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "profiles": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingEntryVisibilityProfileInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "version": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "SettingEntryVisibilityProfile": {
+ "type": "object",
+ "properties": {
+ "entries": {
+ "anyOf": [
+ {
+ "type": "object",
+ "additionalProperties": {
+ "type": "boolean"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "orders": {
+ "anyOf": [
+ {
+ "type": "object",
+ "additionalProperties": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "entries",
+ "id",
+ "name",
+ "orders"
+ ],
+ "additionalProperties": false
+ },
+ "SettingEntryVisibilityProfileInput": {
+ "type": "object",
+ "properties": {
+ "entries": {
+ "anyOf": [
+ {
+ "type": "object",
+ "additionalProperties": {
+ "type": "boolean"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "id": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "name": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "orders": {
+ "anyOf": [
+ {
+ "type": "object",
+ "additionalProperties": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "SettingExport": {
+ "type": "object",
+ "properties": {
+ "addTitle": {
+ "type": "boolean"
+ },
+ "blockEmbedMode": {
+ "type": "integer"
+ },
+ "blockRefMode": {
+ "type": "integer"
+ },
+ "blockRefTextLeft": {
+ "type": "string"
+ },
+ "blockRefTextRight": {
+ "type": "string"
+ },
+ "docxTemplate": {
+ "type": "string"
+ },
+ "fileAnnotationRefMode": {
+ "type": "integer"
+ },
+ "imageWatermarkDesc": {
+ "type": "string"
+ },
+ "imageWatermarkStr": {
+ "type": "string"
+ },
+ "includeRelatedDocs": {
+ "type": "boolean"
+ },
+ "includeSubDocs": {
+ "type": "boolean"
+ },
+ "inlineMemo": {
+ "type": "boolean"
+ },
+ "markdownYFM": {
+ "type": "boolean"
+ },
+ "pandocBin": {
+ "type": "string"
+ },
+ "pandocParams": {
+ "type": "string"
+ },
+ "paragraphBeginningSpace": {
+ "type": "boolean"
+ },
+ "pdfFooter": {
+ "type": "string"
+ },
+ "pdfWatermarkDesc": {
+ "type": "string"
+ },
+ "pdfWatermarkStr": {
+ "type": "string"
+ },
+ "removeAssetsID": {
+ "type": "boolean"
+ },
+ "tagCloseMarker": {
+ "type": "string"
+ },
+ "tagOpenMarker": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "addTitle",
+ "blockEmbedMode",
+ "blockRefMode",
+ "blockRefTextLeft",
+ "blockRefTextRight",
+ "docxTemplate",
+ "fileAnnotationRefMode",
+ "imageWatermarkDesc",
+ "imageWatermarkStr",
+ "includeRelatedDocs",
+ "includeSubDocs",
+ "inlineMemo",
+ "markdownYFM",
+ "pandocBin",
+ "pandocParams",
+ "paragraphBeginningSpace",
+ "pdfFooter",
+ "pdfWatermarkDesc",
+ "pdfWatermarkStr",
+ "removeAssetsID",
+ "tagCloseMarker",
+ "tagOpenMarker"
+ ],
+ "additionalProperties": false
+ },
+ "SettingFileTree": {
+ "type": "object",
+ "properties": {
+ "allowCreateDeeper": {
+ "type": "boolean"
+ },
+ "alwaysSelectOpenedFile": {
+ "type": "boolean"
+ },
+ "boxDocEnabled": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "closeTabOnDoubleClick": {
+ "type": "boolean"
+ },
+ "closeTabsOnStart": {
+ "type": "boolean"
+ },
+ "createDocAtTop": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "docCreateSaveBox": {
+ "type": "string"
+ },
+ "docCreateSavePath": {
+ "type": "string"
+ },
+ "docCreateTemplatePath": {
+ "type": "string"
+ },
+ "docIconClickExpand": {
+ "type": "boolean"
+ },
+ "largeFileWarningSize": {
+ "type": "integer"
+ },
+ "maxListCount": {
+ "type": "integer"
+ },
+ "maxOpenTabCount": {
+ "type": "integer"
+ },
+ "noSplitScreenWhenOpenTab": {
+ "type": "boolean"
+ },
+ "openFilesUseCurrentTab": {
+ "type": "boolean"
+ },
+ "parentDocClickExpand": {
+ "type": "boolean"
+ },
+ "recentDocsMaxListCount": {
+ "type": "integer"
+ },
+ "refCreateSaveBox": {
+ "type": "string"
+ },
+ "refCreateSavePath": {
+ "type": "string"
+ },
+ "removeDocWithoutConfirm": {
+ "type": "boolean"
+ },
+ "shorthandSaveBox": {
+ "type": "string"
+ },
+ "shorthandSavePath": {
+ "type": "string"
+ },
+ "sort": {
+ "type": "integer"
+ },
+ "tabStartupMode": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "useSVGDefaultIcon": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "useSingleLineSave": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "allowCreateDeeper",
+ "alwaysSelectOpenedFile",
+ "boxDocEnabled",
+ "closeTabOnDoubleClick",
+ "closeTabsOnStart",
+ "createDocAtTop",
+ "docCreateSaveBox",
+ "docCreateSavePath",
+ "docCreateTemplatePath",
+ "docIconClickExpand",
+ "largeFileWarningSize",
+ "maxListCount",
+ "maxOpenTabCount",
+ "noSplitScreenWhenOpenTab",
+ "openFilesUseCurrentTab",
+ "parentDocClickExpand",
+ "recentDocsMaxListCount",
+ "refCreateSaveBox",
+ "refCreateSavePath",
+ "removeDocWithoutConfirm",
+ "shorthandSaveBox",
+ "shorthandSavePath",
+ "sort",
+ "tabStartupMode",
+ "useSVGDefaultIcon",
+ "useSingleLineSave"
+ ],
+ "additionalProperties": false
+ },
+ "SettingFlashcard": {
+ "type": "object",
+ "properties": {
+ "blockquote": {
+ "type": "boolean"
+ },
+ "callout": {
+ "type": "boolean"
+ },
+ "deck": {
+ "type": "boolean"
+ },
+ "heading": {
+ "type": "boolean"
+ },
+ "list": {
+ "type": "boolean"
+ },
+ "mark": {
+ "type": "boolean"
+ },
+ "maximumInterval": {
+ "type": "integer"
+ },
+ "newCardLimit": {
+ "type": "integer"
+ },
+ "requestRetention": {
+ "type": "number"
+ },
+ "reviewCardLimit": {
+ "type": "integer"
+ },
+ "reviewMode": {
+ "type": "integer"
+ },
+ "superBlock": {
+ "type": "boolean"
+ },
+ "weights": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "blockquote",
+ "callout",
+ "deck",
+ "heading",
+ "list",
+ "mark",
+ "maximumInterval",
+ "newCardLimit",
+ "requestRetention",
+ "reviewCardLimit",
+ "reviewMode",
+ "superBlock",
+ "weights"
+ ],
+ "additionalProperties": false
+ },
+ "SettingIconRequestInput": {
+ "type": "object",
+ "properties": {
+ "icon": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "icon"
+ ],
+ "additionalProperties": false
+ },
+ "SettingImageGeneration": {
+ "type": "object",
+ "properties": {
+ "modelId": {
+ "type": "string"
+ },
+ "outputFormat": {
+ "type": "string"
+ },
+ "quality": {
+ "type": "string"
+ },
+ "requestTimeout": {
+ "type": "integer"
+ },
+ "size": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "modelId",
+ "outputFormat",
+ "quality",
+ "requestTimeout",
+ "size"
+ ],
+ "additionalProperties": false
+ },
+ "SettingImageGenerationInput": {
+ "type": "object",
+ "properties": {
+ "modelId": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "outputFormat": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "quality": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "requestTimeout": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "size": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "SettingKeymapRequestInput": {
+ "type": "object",
+ "properties": {
+ "data": {
+ "anyOf": [
+ {
+ "type": "object",
+ "additionalProperties": {
+ "$ref": "#/$defs/JSONValue"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "SettingLogin2faRequestInput": {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "string"
+ },
+ "token": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "token"
+ ],
+ "additionalProperties": false
+ },
+ "SettingMCP": {
+ "type": "object",
+ "properties": {
+ "exposurePolicy": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingCapabilityPolicy"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "servers": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/SettingMCPServer"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "exposurePolicy",
+ "servers"
+ ],
+ "additionalProperties": false
+ },
+ "SettingMCPInput": {
+ "type": "object",
+ "properties": {
+ "exposurePolicy": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingCapabilityPolicyInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "servers": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/SettingMCPServerInput"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "SettingMCPServer": {
+ "type": "object",
+ "properties": {
+ "args": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "command": {
+ "type": "string"
+ },
+ "disableStandaloneSSE": {
+ "type": "boolean"
+ },
+ "enabled": {
+ "type": "boolean"
+ },
+ "env": {
+ "anyOf": [
+ {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "headers": {
+ "anyOf": [
+ {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "id": {
+ "type": "string"
+ },
+ "inheritEnv": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "name": {
+ "type": "string"
+ },
+ "timeout": {
+ "type": "integer"
+ },
+ "trustToolAnnotations": {
+ "type": "boolean"
+ },
+ "type": {
+ "type": "string"
+ },
+ "url": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "args",
+ "command",
+ "disableStandaloneSSE",
+ "enabled",
+ "env",
+ "headers",
+ "id",
+ "inheritEnv",
+ "name",
+ "timeout",
+ "trustToolAnnotations",
+ "type",
+ "url"
+ ],
+ "additionalProperties": false
+ },
+ "SettingMCPServerInput": {
+ "type": "object",
+ "properties": {
+ "args": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "command": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "disableStandaloneSSE": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "enabled": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "env": {
+ "anyOf": [
+ {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "headers": {
+ "anyOf": [
+ {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "id": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "inheritEnv": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "name": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "timeout": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "trustToolAnnotations": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "type": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "url": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "SettingMarkdown": {
+ "type": "object",
+ "properties": {
+ "blockFullWidthTaskList": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "codeBlockMiddleDot": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "inlineAsterisk": {
+ "type": "boolean"
+ },
+ "inlineFullWidthStrikethrough": {
+ "type": "boolean"
+ },
+ "inlineMark": {
+ "type": "boolean"
+ },
+ "inlineMath": {
+ "type": "boolean"
+ },
+ "inlineStrikethrough": {
+ "type": "boolean"
+ },
+ "inlineSub": {
+ "type": "boolean"
+ },
+ "inlineSup": {
+ "type": "boolean"
+ },
+ "inlineTag": {
+ "type": "boolean"
+ },
+ "inlineUnderscore": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "blockFullWidthTaskList",
+ "codeBlockMiddleDot",
+ "inlineAsterisk",
+ "inlineFullWidthStrikethrough",
+ "inlineMark",
+ "inlineMath",
+ "inlineStrikethrough",
+ "inlineSub",
+ "inlineSup",
+ "inlineTag",
+ "inlineUnderscore"
+ ],
+ "additionalProperties": false
+ },
+ "SettingMarkdownInput": {
+ "type": "object",
+ "properties": {
+ "blockFullWidthTaskList": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "codeBlockMiddleDot": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "inlineAsterisk": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "inlineFullWidthStrikethrough": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "inlineMark": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "inlineMath": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "inlineStrikethrough": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "inlineSub": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "inlineSup": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "inlineTag": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "inlineUnderscore": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "SettingModel": {
+ "type": "object",
+ "properties": {
+ "contextLength": {
+ "type": "integer"
+ },
+ "displayName": {
+ "type": "string"
+ },
+ "enabled": {
+ "type": "boolean"
+ },
+ "id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "enabled",
+ "id",
+ "name"
+ ],
+ "additionalProperties": false
+ },
+ "SettingModelInput": {
+ "type": "object",
+ "properties": {
+ "contextLength": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "displayName": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "enabled": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "id": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "name": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "SettingNotifications": {
+ "type": "object",
+ "properties": {
+ "browserCompatibility": {
+ "type": "boolean"
+ },
+ "docTreeMaxList": {
+ "type": "boolean"
+ },
+ "formatPainterTip": {
+ "type": "boolean"
+ },
+ "selectAllIncompleteTip": {
+ "type": "boolean"
+ },
+ "selectAllTip": {
+ "type": "boolean"
+ },
+ "tagMaxList": {
+ "type": "boolean"
+ },
+ "workspaceNotSSD": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "browserCompatibility",
+ "docTreeMaxList",
+ "tagMaxList",
+ "workspaceNotSSD"
+ ],
+ "additionalProperties": false
+ },
+ "SettingNotificationsInput": {
+ "type": "object",
+ "properties": {
+ "browserCompatibility": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "docTreeMaxList": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "formatPainterTip": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "selectAllIncompleteTip": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "selectAllTip": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "tagMaxList": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "workspaceNotSSD": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "SettingPetalDisabledData": {
+ "type": "object",
+ "properties": {
+ "dataChangePlugins": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "globalPetalChanged": {
+ "type": "boolean"
+ },
+ "globalPetalDisabled": {
+ "type": "boolean"
+ },
+ "globalPetalEnabled": {
+ "type": "boolean"
+ },
+ "globalPetalRevision": {
+ "type": "integer"
+ },
+ "reloadPlugins": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "uninstallPlugins": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "unloadPlugins": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "dataChangePlugins",
+ "globalPetalChanged",
+ "globalPetalDisabled",
+ "globalPetalEnabled",
+ "globalPetalRevision",
+ "reloadPlugins",
+ "uninstallPlugins",
+ "unloadPlugins"
+ ],
+ "additionalProperties": false
+ },
+ "SettingPetalDisabledRequestInput": {
+ "type": "object",
+ "properties": {
+ "petalDisabled": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "petalDisabled"
+ ],
+ "additionalProperties": false
+ },
+ "SettingProvider": {
+ "type": "object",
+ "properties": {
+ "apiKey": {
+ "type": "string"
+ },
+ "baseURL": {
+ "type": "string"
+ },
+ "displayName": {
+ "type": "string"
+ },
+ "enabled": {
+ "type": "boolean"
+ },
+ "headers": {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ }
+ },
+ "id": {
+ "type": "string"
+ },
+ "models": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingModel"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "protocol": {
+ "type": "string"
+ },
+ "requestTimeout": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "apiKey",
+ "baseURL",
+ "enabled",
+ "id",
+ "models",
+ "requestTimeout"
+ ],
+ "additionalProperties": false
+ },
+ "SettingProviderInput": {
+ "type": "object",
+ "properties": {
+ "apiKey": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "baseURL": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "displayName": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "enabled": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "headers": {
+ "anyOf": [
+ {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "id": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "models": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingModelInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "protocol": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "requestTimeout": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "SettingPublish": {
+ "type": "object",
+ "properties": {
+ "auth": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingBasicAuth"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "enable": {
+ "type": "boolean"
+ },
+ "port": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "auth",
+ "enable",
+ "port"
+ ],
+ "additionalProperties": false
+ },
+ "SettingPublishData": {
+ "type": "object",
+ "properties": {
+ "port": {
+ "type": "integer"
+ },
+ "publish": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingPublish"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "port",
+ "publish"
+ ],
+ "additionalProperties": false
+ },
+ "SettingRerank": {
+ "type": "object",
+ "properties": {
+ "apiKey": {
+ "type": "string"
+ },
+ "candidateCount": {
+ "type": "integer"
+ },
+ "enabled": {
+ "type": "boolean"
+ },
+ "endpoint": {
+ "type": "string"
+ },
+ "id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "requestFormat": {
+ "type": "string"
+ },
+ "timeout": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "apiKey",
+ "candidateCount",
+ "enabled",
+ "endpoint",
+ "id",
+ "name",
+ "requestFormat",
+ "timeout"
+ ],
+ "additionalProperties": false
+ },
+ "SettingRerankInput": {
+ "type": "object",
+ "properties": {
+ "apiKey": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "candidateCount": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "enabled": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "endpoint": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "id": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "name": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "requestFormat": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "timeout": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "SettingSearch": {
+ "type": "object",
+ "properties": {
+ "alias": {
+ "type": "boolean"
+ },
+ "audioBlock": {
+ "type": "boolean"
+ },
+ "backlinkMentionAlias": {
+ "type": "boolean"
+ },
+ "backlinkMentionAnchor": {
+ "type": "boolean"
+ },
+ "backlinkMentionDoc": {
+ "type": "boolean"
+ },
+ "backlinkMentionKeywordsLimit": {
+ "type": "integer"
+ },
+ "backlinkMentionName": {
+ "type": "boolean"
+ },
+ "blockquote": {
+ "type": "boolean"
+ },
+ "callout": {
+ "type": "boolean"
+ },
+ "caseSensitive": {
+ "type": "boolean"
+ },
+ "codeBlock": {
+ "type": "boolean"
+ },
+ "databaseBlock": {
+ "type": "boolean"
+ },
+ "document": {
+ "type": "boolean"
+ },
+ "embedBlock": {
+ "type": "boolean"
+ },
+ "hanSensitive": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "heading": {
+ "type": "boolean"
+ },
+ "htmlBlock": {
+ "type": "boolean"
+ },
+ "ial": {
+ "type": "boolean"
+ },
+ "iframeBlock": {
+ "type": "boolean"
+ },
+ "indexAssetPath": {
+ "type": "boolean"
+ },
+ "limit": {
+ "type": "integer"
+ },
+ "list": {
+ "type": "boolean"
+ },
+ "listItem": {
+ "type": "boolean"
+ },
+ "mathBlock": {
+ "type": "boolean"
+ },
+ "memo": {
+ "type": "boolean"
+ },
+ "name": {
+ "type": "boolean"
+ },
+ "paragraph": {
+ "type": "boolean"
+ },
+ "superBlock": {
+ "type": "boolean"
+ },
+ "tabItem": {
+ "type": "boolean"
+ },
+ "table": {
+ "type": "boolean"
+ },
+ "tabs": {
+ "type": "boolean"
+ },
+ "videoBlock": {
+ "type": "boolean"
+ },
+ "virtualRefAlias": {
+ "type": "boolean"
+ },
+ "virtualRefAnchor": {
+ "type": "boolean"
+ },
+ "virtualRefDoc": {
+ "type": "boolean"
+ },
+ "virtualRefName": {
+ "type": "boolean"
+ },
+ "widgetBlock": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "alias",
+ "audioBlock",
+ "backlinkMentionAlias",
+ "backlinkMentionAnchor",
+ "backlinkMentionDoc",
+ "backlinkMentionKeywordsLimit",
+ "backlinkMentionName",
+ "blockquote",
+ "callout",
+ "caseSensitive",
+ "codeBlock",
+ "databaseBlock",
+ "document",
+ "embedBlock",
+ "hanSensitive",
+ "heading",
+ "htmlBlock",
+ "ial",
+ "iframeBlock",
+ "indexAssetPath",
+ "limit",
+ "list",
+ "listItem",
+ "mathBlock",
+ "memo",
+ "name",
+ "paragraph",
+ "superBlock",
+ "tabItem",
+ "table",
+ "tabs",
+ "videoBlock",
+ "virtualRefAlias",
+ "virtualRefAnchor",
+ "virtualRefDoc",
+ "virtualRefName",
+ "widgetBlock"
+ ],
+ "additionalProperties": false
+ },
+ "SettingSecret": {
+ "type": "object",
+ "properties": {
+ "allowedHosts": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "name": {
+ "type": "string"
+ },
+ "value": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "allowedHosts",
+ "name",
+ "value"
+ ],
+ "additionalProperties": false
+ },
+ "SettingSecretInput": {
+ "type": "object",
+ "properties": {
+ "allowedHosts": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "name": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "value": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "SettingSecrets": {
+ "type": "object",
+ "properties": {
+ "items": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingSecret"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "items"
+ ],
+ "additionalProperties": false
+ },
+ "SettingSnpt": {
+ "type": "object",
+ "properties": {
+ "enabledCSS": {
+ "type": "boolean"
+ },
+ "enabledJS": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "enabledCSS",
+ "enabledJS"
+ ],
+ "additionalProperties": false
+ },
+ "SettingStatusBar": {
+ "type": "object",
+ "properties": {
+ "msgDataSyncDisabled": {
+ "type": "boolean"
+ },
+ "msgTaskAssetDatabaseIndexCommitDisabled": {
+ "type": "boolean"
+ },
+ "msgTaskDatabaseIndexCommitDisabled": {
+ "type": "boolean"
+ },
+ "msgTaskHistoryDatabaseIndexCommitDisabled": {
+ "type": "boolean"
+ },
+ "msgTaskHistoryGenerateFileDisabled": {
+ "type": "boolean"
+ },
+ "version": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "msgDataSyncDisabled",
+ "msgTaskAssetDatabaseIndexCommitDisabled",
+ "msgTaskDatabaseIndexCommitDisabled",
+ "msgTaskHistoryDatabaseIndexCommitDisabled",
+ "msgTaskHistoryGenerateFileDisabled",
+ "version"
+ ],
+ "additionalProperties": false
+ },
+ "SettingStatusBarInput": {
+ "type": "object",
+ "properties": {
+ "msgDataSyncDisabled": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "msgTaskAssetDatabaseIndexCommitDisabled": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "msgTaskDatabaseIndexCommitDisabled": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "msgTaskHistoryDatabaseIndexCommitDisabled": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "msgTaskHistoryGenerateFileDisabled": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "version": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "SettingThemeRequestInput": {
+ "type": "object",
+ "properties": {
+ "appearanceMode": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "modes": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "number"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "theme": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "SettingUser": {
+ "type": "object",
+ "properties": {
+ "userAvatarURL": {
+ "type": "string"
+ },
+ "userCreateTime": {
+ "type": "string"
+ },
+ "userHomeBImgURL": {
+ "type": "string"
+ },
+ "userId": {
+ "type": "string"
+ },
+ "userIntro": {
+ "type": "string"
+ },
+ "userName": {
+ "type": "string"
+ },
+ "userNickname": {
+ "type": "string"
+ },
+ "userSiYuanAssetSize": {
+ "type": "number"
+ },
+ "userSiYuanOneTimePayStatus": {
+ "type": "number"
+ },
+ "userSiYuanPointExchangeRepoSize": {
+ "type": "number"
+ },
+ "userSiYuanProExpireTime": {
+ "type": "number"
+ },
+ "userSiYuanRepoSize": {
+ "type": "number"
+ },
+ "userSiYuanSubscriptionPlan": {
+ "type": "number"
+ },
+ "userSiYuanSubscriptionStatus": {
+ "type": "number"
+ },
+ "userSiYuanSubscriptionType": {
+ "type": "number"
+ },
+ "userTitles": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingUserTitle"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "userToken": {
+ "type": "string"
+ },
+ "userTokenExpireTime": {
+ "type": "string"
+ },
+ "userTrafficAPIGet": {
+ "type": "number"
+ },
+ "userTrafficAPIPut": {
+ "type": "number"
+ },
+ "userTrafficDownload": {
+ "type": "number"
+ },
+ "userTrafficTime": {
+ "type": "number"
+ },
+ "userTrafficUpload": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "userAvatarURL",
+ "userCreateTime",
+ "userHomeBImgURL",
+ "userId",
+ "userIntro",
+ "userName",
+ "userNickname",
+ "userSiYuanAssetSize",
+ "userSiYuanOneTimePayStatus",
+ "userSiYuanPointExchangeRepoSize",
+ "userSiYuanProExpireTime",
+ "userSiYuanRepoSize",
+ "userSiYuanSubscriptionPlan",
+ "userSiYuanSubscriptionStatus",
+ "userSiYuanSubscriptionType",
+ "userTitles",
+ "userToken",
+ "userTokenExpireTime",
+ "userTrafficAPIGet",
+ "userTrafficAPIPut",
+ "userTrafficDownload",
+ "userTrafficTime",
+ "userTrafficUpload"
+ ],
+ "additionalProperties": false
+ },
+ "SettingUserTitle": {
+ "type": "object",
+ "properties": {
+ "desc": {
+ "type": "string"
+ },
+ "icon": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "desc",
+ "icon",
+ "name"
+ ],
+ "additionalProperties": false
+ },
+ "SettingVariable": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string"
+ },
+ "value": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "name",
+ "value"
+ ],
+ "additionalProperties": false
+ },
+ "SettingVariableInput": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "value": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "SettingVariables": {
+ "type": "object",
+ "properties": {
+ "items": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingVariable"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "items"
+ ],
+ "additionalProperties": false
+ },
+ "Shorthand": {
+ "type": "object",
+ "properties": {
+ "hCreated": {
+ "type": "string"
+ },
+ "oId": {
+ "type": "string"
+ },
+ "shorthandContent": {
+ "type": "string"
+ },
+ "shorthandDesc": {
+ "type": "string"
+ },
+ "shorthandFrom": {
+ "type": "integer"
+ },
+ "shorthandMd": {
+ "type": "string"
+ },
+ "shorthandTitle": {
+ "type": "string"
+ },
+ "shorthandURL": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "hCreated",
+ "oId",
+ "shorthandContent",
+ "shorthandDesc",
+ "shorthandFrom",
+ "shorthandMd",
+ "shorthandTitle",
+ "shorthandURL"
+ ],
+ "additionalProperties": false
+ },
+ "ShorthandPage": {
+ "type": "object",
+ "properties": {
+ "pagination": {
+ "$ref": "#/$defs/ShorthandPagination"
+ },
+ "shorthands": {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/Shorthand"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ }
+ },
+ "required": [
+ "pagination",
+ "shorthands"
+ ],
+ "additionalProperties": false
+ },
+ "ShorthandPagination": {
+ "type": "object",
+ "properties": {
+ "paginationPageCount": {
+ "type": "integer"
+ },
+ "paginationPageNums": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "integer"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "paginationRecordCount": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "paginationPageCount",
+ "paginationPageNums",
+ "paginationRecordCount"
+ ],
+ "additionalProperties": false
+ },
+ "ShorthandsData": {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer"
+ },
+ "data": {
+ "$ref": "#/$defs/ShorthandPage"
+ },
+ "msg": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "data",
+ "msg"
+ ],
+ "additionalProperties": false
+ },
+ "ShorthandsRequestInput": {
+ "type": "object",
+ "properties": {
+ "page": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "page"
+ ],
+ "additionalProperties": false
+ },
+ "Snippet": {
+ "type": "object",
+ "properties": {
+ "content": {
+ "type": "string"
+ },
+ "disabledInPublish": {
+ "type": "boolean"
+ },
+ "enabled": {
+ "type": "boolean"
+ },
+ "id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "type": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "content",
+ "disabledInPublish",
+ "enabled",
+ "id",
+ "name",
+ "type"
+ ],
+ "additionalProperties": false
+ },
+ "SnippetInput": {
+ "type": "object",
+ "properties": {
+ "content": {
+ "type": "string"
+ },
+ "disabledInPublish": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "enabled": {
+ "type": "boolean"
+ },
+ "id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "type": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "content",
+ "enabled",
+ "id",
+ "name",
+ "type"
+ ],
+ "additionalProperties": false
+ },
+ "SnippetsData": {
+ "type": "object",
+ "properties": {
+ "snippets": {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/Snippet"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ }
+ },
+ "required": [
+ "snippets"
+ ],
+ "additionalProperties": false
+ },
+ "SortAttributeViewKeyRequestInput": {
+ "type": "object",
+ "properties": {
+ "avID": {
+ "type": "string"
+ },
+ "keyID": {
+ "type": "string"
+ },
+ "previousKeyID": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "avID",
+ "keyID",
+ "previousKeyID"
+ ],
+ "additionalProperties": false
+ },
+ "SortAttributeViewViewKeyRequestInput": {
+ "type": "object",
+ "properties": {
+ "avID": {
+ "type": "string"
+ },
+ "keyID": {
+ "type": "string"
+ },
+ "previousKeyID": {
+ "type": "string"
+ },
+ "viewID": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "avID",
+ "keyID",
+ "previousKeyID"
+ ],
+ "additionalProperties": false
+ },
+ "StorageKeyRequestInput": {
+ "type": "object",
+ "properties": {
+ "key": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "key"
+ ],
+ "additionalProperties": false
+ },
+ "StorageKeysRequestInput": {
+ "type": "object",
+ "properties": {
+ "keys": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ },
+ "required": [
+ "keys"
+ ],
+ "additionalProperties": false
+ },
+ "StorageRemoveKeysRequestInput": {
+ "type": "object",
+ "properties": {
+ "app": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "keys": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ },
+ "required": [
+ "keys"
+ ],
+ "additionalProperties": false
+ },
+ "StorageRemoveRequestInput": {
+ "type": "object",
+ "properties": {
+ "app": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "key": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "key"
+ ],
+ "additionalProperties": false
+ },
+ "StorageSetKeysRequestInput": {
+ "type": "object",
+ "properties": {
+ "app": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "keyVals": {
+ "type": "object",
+ "additionalProperties": {
+ "$ref": "#/$defs/JSONValue"
+ }
+ }
+ },
+ "required": [
+ "keyVals"
+ ],
+ "additionalProperties": false
+ },
+ "StorageSetRequestInput": {
+ "type": "object",
+ "properties": {
+ "app": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "key": {
+ "type": "string"
+ },
+ "val": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/JSONValue"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "key"
+ ],
+ "additionalProperties": false
+ },
+ "SwapBlockRefRequestInput": {
+ "type": "object",
+ "properties": {
+ "defID": {
+ "type": "string"
+ },
+ "includeChildren": {
+ "type": "boolean"
+ },
+ "refID": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "defID",
+ "includeChildren",
+ "refID"
+ ],
+ "additionalProperties": false
+ },
+ "SyncAssetDownloadModeData": {
+ "type": "object",
+ "properties": {
+ "assetDownloadMode": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "assetDownloadMode"
+ ],
+ "additionalProperties": false
+ },
+ "SyncEnabledRequestInput": {
+ "type": "object",
+ "properties": {
+ "enabled": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "enabled"
+ ],
+ "additionalProperties": false
+ },
+ "SyncInfoData": {
+ "type": "object",
+ "properties": {
+ "kernel": {
+ "type": "string"
+ },
+ "kernels": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SyncOnlineKernel"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "stat": {
+ "type": "string"
+ },
+ "synced": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "kernel",
+ "kernels",
+ "stat",
+ "synced"
+ ],
+ "additionalProperties": false
+ },
+ "SyncIntervalRequestInput": {
+ "type": "object",
+ "properties": {
+ "interval": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "interval"
+ ],
+ "additionalProperties": false
+ },
+ "SyncLANRequestInput": {
+ "type": "object",
+ "properties": {
+ "enabled": {
+ "type": "boolean"
+ },
+ "maxConcurrentReqs": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "enabled"
+ ],
+ "additionalProperties": false
+ },
+ "SyncLANStatus": {
+ "type": "object",
+ "properties": {
+ "active": {
+ "type": "boolean"
+ },
+ "connectedPeers": {
+ "type": "integer"
+ },
+ "discoveredPeers": {
+ "type": "integer"
+ },
+ "enabled": {
+ "type": "boolean"
+ },
+ "maxConcurrentReqs": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "active",
+ "connectedPeers",
+ "discoveredPeers",
+ "enabled",
+ "maxConcurrentReqs"
+ ],
+ "additionalProperties": false
+ },
+ "SyncLocal": {
+ "type": "object",
+ "properties": {
+ "concurrentReqs": {
+ "type": "integer"
+ },
+ "endpoint": {
+ "type": "string"
+ },
+ "timeout": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "concurrentReqs",
+ "endpoint",
+ "timeout"
+ ],
+ "additionalProperties": false
+ },
+ "SyncLocalData": {
+ "type": "object",
+ "properties": {
+ "local": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SyncLocal"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "local"
+ ],
+ "additionalProperties": false
+ },
+ "SyncLocalInput": {
+ "type": "object",
+ "properties": {
+ "concurrentReqs": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "endpoint": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "timeout": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "SyncModeRequestInput": {
+ "type": "object",
+ "properties": {
+ "mode": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "mode"
+ ],
+ "additionalProperties": false
+ },
+ "SyncNameRequestInput": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "name"
+ ],
+ "additionalProperties": false
+ },
+ "SyncOnlineKernel": {
+ "type": "object",
+ "properties": {
+ "hostname": {
+ "type": "string"
+ },
+ "id": {
+ "type": "string"
+ },
+ "os": {
+ "type": "string"
+ },
+ "ver": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "hostname",
+ "id",
+ "os",
+ "ver"
+ ],
+ "additionalProperties": false
+ },
+ "SyncProviderExportData": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string"
+ },
+ "zip": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "name",
+ "zip"
+ ],
+ "additionalProperties": false
+ },
+ "SyncProviderImportRequestInput": {
+ "type": "object",
+ "properties": {
+ "file": {
+ "type": "string",
+ "format": "binary"
+ }
+ },
+ "additionalProperties": false
+ },
+ "SyncProviderRequestInput": {
+ "type": "object",
+ "properties": {
+ "provider": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "provider"
+ ],
+ "additionalProperties": false
+ },
+ "SyncS3": {
+ "type": "object",
+ "properties": {
+ "accessKey": {
+ "type": "string"
+ },
+ "bucket": {
+ "type": "string"
+ },
+ "concurrentReqs": {
+ "type": "integer"
+ },
+ "endpoint": {
+ "type": "string"
+ },
+ "pathStyle": {
+ "type": "boolean"
+ },
+ "region": {
+ "type": "string"
+ },
+ "secretKey": {
+ "type": "string"
+ },
+ "skipTlsVerify": {
+ "type": "boolean"
+ },
+ "timeout": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "accessKey",
+ "bucket",
+ "concurrentReqs",
+ "endpoint",
+ "pathStyle",
+ "region",
+ "secretKey",
+ "skipTlsVerify",
+ "timeout"
+ ],
+ "additionalProperties": false
+ },
+ "SyncS3Data": {
+ "type": "object",
+ "properties": {
+ "s3": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SyncS3"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "s3"
+ ],
+ "additionalProperties": false
+ },
+ "SyncS3Input": {
+ "type": "object",
+ "properties": {
+ "accessKey": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "bucket": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "concurrentReqs": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "endpoint": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "pathStyle": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "region": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "secretKey": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "skipTlsVerify": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "timeout": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "SyncWebDAV": {
+ "type": "object",
+ "properties": {
+ "concurrentReqs": {
+ "type": "integer"
+ },
+ "endpoint": {
+ "type": "string"
+ },
+ "password": {
+ "type": "string"
+ },
+ "skipTlsVerify": {
+ "type": "boolean"
+ },
+ "timeout": {
+ "type": "integer"
+ },
+ "username": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "concurrentReqs",
+ "endpoint",
+ "password",
+ "skipTlsVerify",
+ "timeout",
+ "username"
+ ],
+ "additionalProperties": false
+ },
+ "SyncWebDAVData": {
+ "type": "object",
+ "properties": {
+ "webdav": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SyncWebDAV"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "webdav"
+ ],
+ "additionalProperties": false
+ },
+ "SyncWebDAVInput": {
+ "type": "object",
+ "properties": {
+ "concurrentReqs": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "endpoint": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "password": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "skipTlsVerify": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "timeout": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "username": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "TagData": {
+ "type": "object",
+ "properties": {
+ "children": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/TagData"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "count": {
+ "type": "integer"
+ },
+ "depth": {
+ "type": "integer"
+ },
+ "label": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "type": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "children",
+ "count",
+ "depth",
+ "label",
+ "name",
+ "type"
+ ],
+ "additionalProperties": false
+ },
+ "TagSnapshotRequestInput": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "name"
+ ],
+ "additionalProperties": false
+ },
+ "TailChildBlocksRequestInput": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "ids": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "n": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "notebook": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "id"
+ ],
+ "additionalProperties": false
+ },
+ "TaskListMarkerRequestInput": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "marker": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "marker"
+ ],
+ "additionalProperties": false
+ },
+ "TemplateDocumentInfo": {
+ "type": "object",
+ "properties": {
+ "directory": {
+ "type": "string"
+ },
+ "hasDatabase": {
+ "type": "boolean"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "directory",
+ "hasDatabase",
+ "name"
+ ],
+ "additionalProperties": false
+ },
+ "TemplateDocumentRequestInput": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id"
+ ],
+ "additionalProperties": false
+ },
+ "TemplateFileEntry": {
+ "type": "object",
+ "properties": {
+ "isDir": {
+ "type": "boolean"
+ },
+ "isPackage": {
+ "type": "boolean"
+ },
+ "path": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "isDir",
+ "path"
+ ],
+ "additionalProperties": false
+ },
+ "TemplateFileRequestInput": {
+ "type": "object",
+ "properties": {
+ "action": {
+ "type": "string"
+ },
+ "content": {
+ "type": "string"
+ },
+ "path": {
+ "type": "string"
+ },
+ "revision": {
+ "type": "string"
+ },
+ "target": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false
+ },
+ "TemplateFileRevision": {
+ "type": "object",
+ "properties": {
+ "revision": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "revision"
+ ],
+ "additionalProperties": false
+ },
+ "TemplateFileSource": {
+ "type": "object",
+ "properties": {
+ "content": {
+ "type": "string"
+ },
+ "path": {
+ "type": "string"
+ },
+ "revision": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "content",
+ "revision"
+ ],
+ "additionalProperties": false
+ },
+ "TemplatePlan": {
+ "type": "object",
+ "properties": {
+ "count": {
+ "type": "integer"
+ },
+ "id": {
+ "type": "string"
+ },
+ "nodes": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/TemplatePlanNode"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "count",
+ "id",
+ "nodes"
+ ],
+ "additionalProperties": false
+ },
+ "TemplatePlanNode": {
+ "type": "object",
+ "properties": {
+ "depth": {
+ "type": "integer"
+ },
+ "hPath": {
+ "type": "string"
+ },
+ "id": {
+ "type": "string"
+ },
+ "parentID": {
+ "type": "string"
+ },
+ "title": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "depth",
+ "hPath",
+ "id",
+ "parentID",
+ "title"
+ ],
+ "additionalProperties": false
+ },
+ "TransferBlockRefRequestInput": {
+ "type": "object",
+ "properties": {
+ "fromID": {
+ "type": "string"
+ },
+ "refIDs": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "reloadUI": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "toID": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "fromID",
+ "toID"
+ ],
+ "additionalProperties": false
+ },
+ "TreeStatData": {
+ "type": "object",
+ "properties": {
+ "containsEmbed": {
+ "type": "boolean"
+ },
+ "embedStat": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/EmbedStat"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "reqId": {
+ "$ref": "#/$defs/JSONValue"
+ },
+ "stat": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/BlockStat"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "statWithEmbed": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/BlockStat"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "reqId",
+ "stat"
+ ],
+ "additionalProperties": false
+ },
+ "TreeStatRequestInput": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "ids": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "includeEmbed": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "notebook": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "reqId": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/JSONValue"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "id"
+ ],
+ "additionalProperties": false
+ },
+ "TrimmedIDRequestInput": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id"
+ ],
+ "additionalProperties": false
+ },
+ "UnfoldedParentData": {
+ "type": "object",
+ "properties": {
+ "parentID": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "parentID"
+ ],
+ "additionalProperties": false
+ },
+ "UninstallBazaarIconRequestInput": {
+ "type": "object",
+ "properties": {
+ "keyword": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "packageName": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "packageName"
+ ],
+ "additionalProperties": false
+ },
+ "UninstallBazaarPluginRequestInput": {
+ "type": "object",
+ "properties": {
+ "frontend": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "keyword": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "packageName": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "packageName"
+ ],
+ "additionalProperties": false
+ },
+ "UninstallBazaarTemplateRequestInput": {
+ "type": "object",
+ "properties": {
+ "keyword": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "packageName": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "packageName"
+ ],
+ "additionalProperties": false
+ },
+ "UninstallBazaarThemeRequestInput": {
+ "type": "object",
+ "properties": {
+ "frontend": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "keyword": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "packageName": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "packageName"
+ ],
+ "additionalProperties": false
+ },
+ "UninstallBazaarWidgetRequestInput": {
+ "type": "object",
+ "properties": {
+ "keyword": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "packageName": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "packageName"
+ ],
+ "additionalProperties": false
+ },
+ "UnlockNotebookRequestInput": {
+ "type": "object",
+ "properties": {
+ "notebook": {
+ "type": "string"
+ },
+ "password": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "notebook",
+ "password"
+ ],
+ "additionalProperties": false
+ },
+ "UnzipRequestInput": {
+ "type": "object",
+ "properties": {
+ "path": {
+ "type": "string"
+ },
+ "zipPath": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "path",
+ "zipPath"
+ ],
+ "additionalProperties": false
+ },
+ "UpdateBazaarPackageRequestInput": {
+ "type": "object",
+ "properties": {
+ "frontend": {
+ "type": "string"
+ },
+ "keyword": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "packageName": {
+ "type": "string"
+ },
+ "packageType": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "frontend",
+ "packageName",
+ "packageType"
+ ],
+ "additionalProperties": false
+ },
+ "UpdateBlockRequestInput": {
+ "type": "object",
+ "properties": {
+ "data": {
+ "type": "string"
+ },
+ "dataType": {
+ "type": "string"
+ },
+ "id": {
+ "type": "string"
+ },
+ "lockType": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "data",
+ "dataType",
+ "id"
+ ],
+ "additionalProperties": false
+ },
+ "UpdateChannelRequestInput": {
+ "type": "object",
+ "properties": {
+ "updateChannel": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "updateChannel"
+ ],
+ "additionalProperties": false
+ },
+ "UpdateEmbedBlockRequestInput": {
+ "type": "object",
+ "properties": {
+ "content": {
+ "type": "string"
+ },
+ "id": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "content",
+ "id"
+ ],
+ "additionalProperties": false
+ },
+ "UpdatePinnedDocsRequestInput": {
+ "type": "object",
+ "properties": {
+ "action": {
+ "type": "string"
+ },
+ "after": {
+ "type": "boolean"
+ },
+ "ids": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "targetID": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "action",
+ "ids"
+ ],
+ "additionalProperties": false
+ },
+ "UploadAssetRequestInput": {
+ "type": "object",
+ "properties": {
+ "assetsDirPath": {
+ "type": "string"
+ },
+ "file[]": {
+ "type": "array",
+ "items": {
+ "type": "string",
+ "format": "binary"
+ }
+ },
+ "id": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false
+ },
+ "UploadCloudSnapshotRequestInput": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "tag": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "tag"
+ ],
+ "additionalProperties": false
+ },
+ "ViewStatePatchRequestInput": {
+ "type": "object",
+ "properties": {
+ "key": {
+ "type": "string"
+ },
+ "removeKeys": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "values": {
+ "type": "object",
+ "additionalProperties": {
+ "$ref": "#/$defs/JSONValue"
+ }
+ }
+ },
+ "required": [
+ "key"
+ ],
+ "additionalProperties": false
+ },
+ "VirtualBlockRefRequestInput": {
+ "type": "object",
+ "properties": {
+ "keywords": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ },
+ "required": [
+ "keywords"
+ ],
+ "additionalProperties": false
+ },
+ "WPSPresentationData": {
+ "type": "object",
+ "properties": {
+ "converted": {
+ "type": "boolean"
+ },
+ "dom": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "converted",
+ "dom"
+ ],
+ "additionalProperties": false
+ },
+ "WPSPresentationRequestInput": {
+ "type": "object",
+ "properties": {
+ "data": {
+ "type": "string"
+ },
+ "text": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "type": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "data",
+ "type"
+ ],
+ "additionalProperties": false
+ },
+ "WordCountData": {
+ "type": "object",
+ "properties": {
+ "reqId": {
+ "$ref": "#/$defs/JSONValue"
+ },
+ "stat": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/BlockStat"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "reqId",
+ "stat"
+ ],
+ "additionalProperties": false
+ },
+ "WorkspaceAVBuiltinColorUpdateInput": {
+ "type": "object",
+ "properties": {
+ "customized": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "dark": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/InlineStyleThemeInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "hidden": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "index": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "light": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/InlineStyleThemeInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "WorkspaceAVPaletteRequestInput": {
+ "type": "object",
+ "properties": {
+ "app": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "builtinColors": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/WorkspaceAVBuiltinColorUpdateInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "colors": {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AttributeViewCustomColorInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "order": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ },
+ "required": [
+ "colors",
+ "order"
+ ],
+ "additionalProperties": false
+ },
+ "WorkspaceInfoData": {
+ "type": "object",
+ "properties": {
+ "siyuanVer": {
+ "type": "string"
+ },
+ "workspaceDir": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "siyuanVer",
+ "workspaceDir"
+ ],
+ "additionalProperties": false
+ },
+ "ZipRequestInput": {
+ "type": "object",
+ "properties": {
+ "path": {
+ "type": "string"
+ },
+ "zipPath": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "path",
+ "zipPath"
+ ],
+ "additionalProperties": false
+ }
+ },
+ "endpoints": [
+ {
+ "method": "GET",
+ "path": "/api/ai/mcp/oauth/callback/:flowID",
+ "handler": "mcpOAuthCallback",
+ "body": "none",
+ "request": {
+ "$ref": "#/$defs/EmptyRequestInput"
+ },
+ "response": {
+ "anyOf": [
+ {
+ "type": "string",
+ "format": "binary"
+ },
+ {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer",
+ "enum": [
+ -1
+ ]
+ },
+ "data": {
+ "anyOf": [
+ {
+ "type": "object",
+ "properties": {
+ "closeTimeout": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "closeTimeout"
+ ],
+ "additionalProperties": false
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "msg": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "msg",
+ "data"
+ ],
+ "additionalProperties": true
+ }
+ ]
+ },
+ "output": "binary",
+ "errorStatus": 200,
+ "contentVariants": [
+ {
+ "status": 200,
+ "contentType": "text/html"
+ },
+ {
+ "status": 400,
+ "contentType": "text/html"
+ },
+ {
+ "status": 403,
+ "contentType": "text/plain"
+ }
+ ]
+ },
+ {
+ "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/ai/agent/browserCapabilityResult",
+ "handler": "agentChatBrowserCapabilityResult",
+ "body": "structJSON",
+ "request": {
+ "$ref": "#/$defs/AIBrowserCapabilityResultRequestInput"
+ },
+ "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
+ }
+ ]
+ },
+ "additionalErrorStatuses": [
+ 409
+ ]
+ },
+ {
+ "method": "POST",
+ "path": "/api/ai/agent/chat",
+ "handler": "agentChat",
+ "body": "structJSON",
+ "request": {
+ "$ref": "#/$defs/AIAgentChatRequestInput"
+ },
+ "response": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "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": "sse",
+ "sse": {
+ "events": {
+ "browser_capability_call": {
+ "$ref": "#/$defs/AISSEBrowserCapabilityCall"
+ },
+ "confirm": {
+ "$ref": "#/$defs/AISSEConfirm"
+ },
+ "content": {
+ "$ref": "#/$defs/AISSEToken"
+ },
+ "done": {
+ "$ref": "#/$defs/AISSETurn"
+ },
+ "error": {
+ "$ref": "#/$defs/AISSEMessage"
+ },
+ "interrupted": {
+ "$ref": "#/$defs/AISSEMessage"
+ },
+ "permission": {
+ "$ref": "#/$defs/AIPermissionData"
+ },
+ "question": {
+ "$ref": "#/$defs/AISSEQuestion"
+ },
+ "reasoning": {
+ "$ref": "#/$defs/AISSEToken"
+ },
+ "retry": {
+ "$ref": "#/$defs/AISSERetry"
+ },
+ "snapshot": {
+ "$ref": "#/$defs/AISSESnapshot"
+ },
+ "thinking": {
+ "$ref": "#/$defs/AISSEThinking"
+ },
+ "tool_call": {
+ "$ref": "#/$defs/AISSEToolCall"
+ },
+ "tool_result": {
+ "$ref": "#/$defs/AISSEToolResult"
+ },
+ "turn": {
+ "$ref": "#/$defs/AISSETurn"
+ },
+ "usage": {
+ "$ref": "#/$defs/AISSEUsage"
+ }
+ }
+ },
+ "additionalErrorStatuses": [
+ 409
+ ]
+ },
+ {
+ "method": "POST",
+ "path": "/api/ai/agent/confirm",
+ "handler": "agentChatConfirm",
+ "body": "structJSON",
+ "request": {
+ "$ref": "#/$defs/AIConfirmRequestInput"
+ },
+ "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
+ }
+ ]
+ },
+ "additionalErrorStatuses": [
+ 409
+ ]
+ },
+ {
+ "method": "POST",
+ "path": "/api/ai/agent/getSession",
+ "handler": "getSession",
+ "body": "structJSON",
+ "request": {
+ "$ref": "#/$defs/AISessionIDRequestInput"
+ },
+ "response": {
+ "anyOf": [
+ {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer",
+ "enum": [
+ 0
+ ]
+ },
+ "data": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AISessionExtensionAISessionFields"
+ },
+ {
+ "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
+ }
+ ]
+ },
+ "additionalErrorStatuses": [
+ 500
+ ]
+ },
+ {
+ "method": "POST",
+ "path": "/api/ai/agent/getSkill",
+ "handler": "getSkill",
+ "body": "structJSON",
+ "request": {
+ "$ref": "#/$defs/AISkillNameRequestInput"
+ },
+ "response": {
+ "anyOf": [
+ {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer",
+ "enum": [
+ 0
+ ]
+ },
+ "data": {
+ "$ref": "#/$defs/AISkillData"
+ },
+ "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/ai/agent/lsSessions",
+ "handler": "lsSessions",
+ "body": "structJSON",
+ "request": {
+ "$ref": "#/$defs/AISessionsRequestInput"
+ },
+ "response": {
+ "anyOf": [
+ {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer",
+ "enum": [
+ 0
+ ]
+ },
+ "data": {
+ "$ref": "#/$defs/AISessionList"
+ },
+ "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/ai/agent/lsSkills",
+ "handler": "lsSkills",
+ "body": "none",
+ "request": {
+ "$ref": "#/$defs/EmptyRequestInput"
+ },
+ "response": {
+ "anyOf": [
+ {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer",
+ "enum": [
+ 0
+ ]
+ },
+ "data": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/AISkillInfo"
+ }
+ },
+ {
+ "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/ai/agent/lsUserSkills",
+ "handler": "lsUserSkills",
+ "body": "none",
+ "request": {
+ "$ref": "#/$defs/EmptyRequestInput"
+ },
+ "response": {
+ "anyOf": [
+ {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer",
+ "enum": [
+ 0
+ ]
+ },
+ "data": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/AIUserSkillInfo"
+ }
+ },
+ {
+ "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/ai/agent/question",
+ "handler": "agentChatQuestion",
+ "body": "structJSON",
+ "request": {
+ "$ref": "#/$defs/AIQuestionRequestInput"
+ },
+ "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
+ }
+ ]
+ },
+ "additionalErrorStatuses": [
+ 409
+ ]
+ },
+ {
+ "method": "POST",
+ "path": "/api/ai/agent/removeSession",
+ "handler": "removeSession",
+ "body": "structJSON",
+ "request": {
+ "$ref": "#/$defs/AISessionIDRequestInput"
+ },
+ "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
+ }
+ ]
+ },
+ "additionalErrorStatuses": [
+ 409,
+ 500
+ ]
+ },
+ {
+ "method": "POST",
+ "path": "/api/ai/agent/removeSkill",
+ "handler": "removeSkill",
+ "body": "structJSON",
+ "request": {
+ "$ref": "#/$defs/AISkillNameRequestInput"
+ },
+ "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/ai/agent/renameSkill",
+ "handler": "renameSkill",
+ "body": "structJSON",
+ "request": {
+ "$ref": "#/$defs/AISkillRenameRequestInput"
+ },
+ "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/ai/agent/saveSession",
+ "handler": "saveSession",
+ "body": "structJSON",
+ "request": {
+ "$ref": "#/$defs/AISessionExtensionAISessionFieldsInput"
+ },
+ "response": {
+ "anyOf": [
+ {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer",
+ "enum": [
+ 0
+ ]
+ },
+ "data": {
+ "$ref": "#/$defs/AISessionSaveData"
+ },
+ "msg": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "msg",
+ "data"
+ ],
+ "additionalProperties": false
+ },
+ {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer",
+ "enum": [
+ -1
+ ]
+ },
+ "data": {
+ "anyOf": [
+ {
+ "type": "object",
+ "properties": {
+ "closeTimeout": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "closeTimeout"
+ ],
+ "additionalProperties": false
+ },
+ {
+ "type": "null"
+ },
+ {
+ "$ref": "#/$defs/AISessionSaveData"
+ }
+ ]
+ },
+ "msg": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "msg",
+ "data"
+ ],
+ "additionalProperties": true
+ }
+ ]
+ },
+ "additionalErrorStatuses": [
+ 400,
+ 409,
+ 500
+ ]
+ },
+ {
+ "method": "POST",
+ "path": "/api/ai/agent/saveSkill",
+ "handler": "saveSkill",
+ "body": "structJSON",
+ "request": {
+ "$ref": "#/$defs/AISkillSaveRequestInput"
+ },
+ "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/ai/agent/setPermission",
+ "handler": "setAgentSessionPermission",
+ "body": "structJSON",
+ "request": {
+ "$ref": "#/$defs/AIPermissionRequestInput"
+ },
+ "response": {
+ "anyOf": [
+ {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer",
+ "enum": [
+ 0
+ ]
+ },
+ "data": {
+ "$ref": "#/$defs/AIPermissionData"
+ },
+ "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/ai/agent/title",
+ "handler": "agentChatTitle",
+ "body": "structJSON",
+ "request": {
+ "$ref": "#/$defs/AITitleRequestInput"
+ },
+ "response": {
+ "anyOf": [
+ {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer",
+ "enum": [
+ 0
+ ]
+ },
+ "data": {
+ "type": "string"
+ },
+ "msg": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "msg",
+ "data"
+ ],
+ "additionalProperties": false
+ },
+ {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer",
+ "enum": [
+ -1
+ ]
+ },
+ "data": {
+ "anyOf": [
+ {
+ "type": "object",
+ "properties": {
+ "closeTimeout": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "closeTimeout"
+ ],
+ "additionalProperties": false
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "msg": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "msg",
+ "data"
+ ],
+ "additionalProperties": true
+ }
+ ]
+ }
+ },
+ {
+ "method": "POST",
+ "path": "/api/ai/chatGPT",
+ "handler": "chatGPT",
+ "body": "json",
+ "request": {
+ "$ref": "#/$defs/AIMessageRequestInput"
+ },
+ "response": {
+ "anyOf": [
+ {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer",
+ "enum": [
+ 0
+ ]
+ },
+ "data": {
+ "type": "string"
+ },
+ "msg": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "msg",
+ "data"
+ ],
+ "additionalProperties": false
+ },
+ {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer",
+ "enum": [
+ -1
+ ]
+ },
+ "data": {
+ "anyOf": [
+ {
+ "type": "object",
+ "properties": {
+ "closeTimeout": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "closeTimeout"
+ ],
+ "additionalProperties": false
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "msg": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "msg",
+ "data"
+ ],
+ "additionalProperties": true
+ }
+ ]
+ }
+ },
+ {
+ "method": "POST",
+ "path": "/api/ai/chatGPTWithAction",
+ "handler": "chatGPTWithAction",
+ "body": "json",
+ "request": {
+ "$ref": "#/$defs/AIActionRequestInput"
+ },
+ "response": {
+ "anyOf": [
+ {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer",
+ "enum": [
+ 0
+ ]
+ },
+ "data": {
+ "type": "string"
+ },
+ "msg": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "msg",
+ "data"
+ ],
+ "additionalProperties": false
+ },
+ {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer",
+ "enum": [
+ -1
+ ]
+ },
+ "data": {
+ "anyOf": [
+ {
+ "type": "object",
+ "properties": {
+ "closeTimeout": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "closeTimeout"
+ ],
+ "additionalProperties": false
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "msg": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "msg",
+ "data"
+ ],
+ "additionalProperties": true
+ }
+ ]
+ }
+ },
+ {
+ "method": "POST",
+ "path": "/api/ai/editor/chat",
+ "handler": "aiEditorChat",
+ "body": "structJSON",
+ "request": {
+ "$ref": "#/$defs/AIEditorChatRequestInput"
+ },
+ "response": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "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": "sse",
+ "sse": {
+ "events": {
+ "content": {
+ "$ref": "#/$defs/AISSEToken"
+ },
+ "done": {
+ "$ref": "#/$defs/AISSEFinish"
+ },
+ "error": {
+ "$ref": "#/$defs/AISSEMessage"
+ },
+ "reasoning": {
+ "$ref": "#/$defs/AISSEToken"
+ },
+ "start": {
+ "$ref": "#/$defs/AISSEStart"
+ },
+ "truncated": {
+ "$ref": "#/$defs/AISSEMessage"
+ }
+ }
+ }
+ },
+ {
+ "method": "POST",
+ "path": "/api/ai/editor/lsActions",
+ "handler": "lsAIEditorActions",
+ "body": "none",
+ "request": {
+ "$ref": "#/$defs/EmptyRequestInput"
+ },
+ "response": {
+ "anyOf": [
+ {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer",
+ "enum": [
+ 0
+ ]
+ },
+ "data": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AIEditorAction"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "msg": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "msg",
+ "data"
+ ],
+ "additionalProperties": false
+ },
+ {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer",
+ "enum": [
+ -1
+ ]
+ },
+ "data": {
+ "anyOf": [
+ {
+ "type": "object",
+ "properties": {
+ "closeTimeout": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "closeTimeout"
+ ],
+ "additionalProperties": false
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "msg": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "msg",
+ "data"
+ ],
+ "additionalProperties": true
+ }
+ ]
+ }
+ },
+ {
+ "method": "POST",
+ "path": "/api/ai/editor/removeAction",
+ "handler": "removeAIEditorAction",
+ "body": "json",
+ "request": {
+ "$ref": "#/$defs/AIEditorActionIDRequestInput"
+ },
+ "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/ai/editor/saveAction",
+ "handler": "saveAIEditorAction",
+ "body": "json",
+ "request": {
+ "$ref": "#/$defs/AIEditorActionSaveRequestInput"
+ },
+ "response": {
+ "anyOf": [
+ {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer",
+ "enum": [
+ 0
+ ]
+ },
+ "data": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AIEditorAction"
+ },
+ {
+ "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/ai/embeddingStat",
+ "handler": "embeddingStat",
+ "body": "none",
+ "request": {
+ "$ref": "#/$defs/EmptyRequestInput"
+ },
+ "response": {
+ "anyOf": [
+ {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer",
+ "enum": [
+ 0
+ ]
+ },
+ "data": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AIEmbeddingStat"
+ },
+ {
+ "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/ai/listModels",
+ "handler": "listModels",
+ "body": "json",
+ "request": {
+ "$ref": "#/$defs/AIProviderRequestInput"
+ },
+ "response": {
+ "anyOf": [
+ {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer",
+ "enum": [
+ 0
+ ]
+ },
+ "data": {
+ "$ref": "#/$defs/AIModelsData"
+ },
+ "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/ai/lsCapabilities",
+ "handler": "lsCapabilities",
+ "body": "none",
+ "request": {
+ "$ref": "#/$defs/EmptyRequestInput"
+ },
+ "response": {
+ "anyOf": [
+ {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer",
+ "enum": [
+ 0
+ ]
+ },
+ "data": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/AICapabilityManifest"
+ }
+ },
+ {
+ "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/ai/mcpEnvironmentVariables",
+ "handler": "mcpEnvironmentVariables",
+ "body": "none",
+ "request": {
+ "$ref": "#/$defs/EmptyRequestInput"
+ },
+ "response": {
+ "anyOf": [
+ {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer",
+ "enum": [
+ 0
+ ]
+ },
+ "data": {
+ "$ref": "#/$defs/AIMCPEnvironmentData"
+ },
+ "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/ai/mcpOAuthAuthorize",
+ "handler": "mcpOAuthAuthorize",
+ "body": "json",
+ "request": {
+ "$ref": "#/$defs/AIMCPIDRequestInput"
+ },
+ "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/ai/mcpOAuthDisconnect",
+ "handler": "mcpOAuthDisconnect",
+ "body": "json",
+ "request": {
+ "$ref": "#/$defs/AIMCPIDRequestInput"
+ },
+ "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/ai/mcpStatus",
+ "handler": "mcpStatus",
+ "body": "none",
+ "request": {
+ "$ref": "#/$defs/EmptyRequestInput"
+ },
+ "response": {
+ "anyOf": [
+ {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer",
+ "enum": [
+ 0
+ ]
+ },
+ "data": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/AIMCPStatus"
+ }
+ },
+ {
+ "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/ai/reindexEmbedding",
+ "handler": "reindexEmbedding",
+ "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/ai/retryFailedEmbedding",
+ "handler": "retryFailedEmbedding",
+ "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/ai/testEmbeddingModel",
+ "handler": "testEmbeddingModel",
+ "body": "none",
+ "request": {
+ "$ref": "#/$defs/EmptyRequestInput"
+ },
+ "response": {
+ "anyOf": [
+ {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer",
+ "enum": [
+ 0
+ ]
+ },
+ "data": {
+ "$ref": "#/$defs/AIEmbeddingTestData"
+ },
+ "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/ai/testModel",
+ "handler": "testModel",
+ "body": "json",
+ "request": {
+ "$ref": "#/$defs/AIModelRequestInput"
+ },
+ "response": {
+ "anyOf": [
+ {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer",
+ "enum": [
+ 0
+ ]
+ },
+ "data": {
+ "$ref": "#/$defs/AIModelTestData"
+ },
+ "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/ai/testRerankModel",
+ "handler": "testRerankModel",
+ "body": "none",
+ "request": {
+ "$ref": "#/$defs/EmptyRequestInput"
+ },
+ "response": {
+ "anyOf": [
+ {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer",
+ "enum": [
+ 0
+ ]
+ },
+ "data": {
+ "$ref": "#/$defs/AIRerankTestData"
+ },
+ "msg": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "msg",
+ "data"
+ ],
+ "additionalProperties": false
+ },
+ {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer",
+ "enum": [
+ -1
+ ]
+ },
+ "data": {
+ "anyOf": [
+ {
+ "type": "object",
+ "properties": {
+ "closeTimeout": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "closeTimeout"
+ ],
+ "additionalProperties": false
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "msg": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "msg",
+ "data"
+ ],
+ "additionalProperties": true
+ }
+ ]
+ }
+ },
+ {
+ "method": "POST",
+ "path": "/api/archive/unzip",
+ "handler": "unzip",
+ "body": "json",
+ "request": {
+ "$ref": "#/$defs/UnzipRequestInput"
+ },
+ "response": {
+ "anyOf": [
+ {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer",
+ "enum": [
+ 0
+ ]
+ },
+ "data": {
+ "type": "null"
+ },
+ "msg": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "msg",
+ "data"
+ ],
+ "additionalProperties": false
+ },
+ {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer",
+ "enum": [
+ -1
+ ]
+ },
+ "data": {
+ "anyOf": [
+ {
+ "type": "object",
+ "properties": {
+ "closeTimeout": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "closeTimeout"
+ ],
+ "additionalProperties": false
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "msg": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "msg",
+ "data"
+ ],
+ "additionalProperties": true
+ }
+ ]
+ }
+ },
+ {
+ "method": "POST",
+ "path": "/api/archive/zip",
+ "handler": "zip",
+ "body": "json",
+ "request": {
+ "$ref": "#/$defs/ZipRequestInput"
+ },
+ "response": {
+ "anyOf": [
+ {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer",
+ "enum": [
+ 0
+ ]
+ },
+ "data": {
+ "type": "null"
+ },
+ "msg": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "msg",
+ "data"
+ ],
+ "additionalProperties": false
+ },
+ {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer",
+ "enum": [
+ -1
+ ]
+ },
+ "data": {
+ "anyOf": [
+ {
+ "type": "object",
+ "properties": {
+ "closeTimeout": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "closeTimeout"
+ ],
+ "additionalProperties": false
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "msg": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "msg",
+ "data"
+ ],
+ "additionalProperties": true
+ }
+ ]
+ }
+ },
+ {
+ "method": "POST",
+ "path": "/api/asset/fullReindexAssetContent",
+ "handler": "fullReindexAssetContent",
+ "body": "none",
+ "request": {
+ "$ref": "#/$defs/EmptyRequestInput"
+ },
+ "response": {
+ "anyOf": [
+ {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer",
+ "enum": [
+ 0
+ ]
+ },
+ "data": {
+ "type": "null"
+ },
+ "msg": {
+ "type": "string"
+ }
},
- {
- "type": "null"
- }
- ]
- },
- "light": {
- "anyOf": [
- {
- "$ref": "#/$defs/InlineStyleThemeInput"
+ "required": [
+ "code",
+ "msg",
+ "data"
+ ],
+ "additionalProperties": false
+ },
+ {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer",
+ "enum": [
+ -1
+ ]
+ },
+ "data": {
+ "anyOf": [
+ {
+ "type": "object",
+ "properties": {
+ "closeTimeout": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "closeTimeout"
+ ],
+ "additionalProperties": false
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "msg": {
+ "type": "string"
+ }
},
- {
- "type": "null"
- }
- ]
- }
- },
- "additionalProperties": false
+ "required": [
+ "code",
+ "msg",
+ "data"
+ ],
+ "additionalProperties": true
+ }
+ ]
+ }
},
- "WorkspaceAVPaletteRequestInput": {
- "type": "object",
- "properties": {
- "app": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "builtinColors": {
- "anyOf": [
- {
- "type": "array",
- "items": {
+ {
+ "method": "POST",
+ "path": "/api/asset/getDocAssets",
+ "handler": "getDocAssets",
+ "body": "json",
+ "request": {
+ "$ref": "#/$defs/AssetDocumentAssetsRequestInput"
+ },
+ "response": {
+ "anyOf": [
+ {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer",
+ "enum": [
+ 0
+ ]
+ },
+ "data": {
"anyOf": [
{
- "$ref": "#/$defs/WorkspaceAVBuiltinColorUpdateInput"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
+ },
+ "msg": {
+ "type": "string"
}
},
- {
- "type": "null"
- }
- ]
- },
- "colors": {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/AttributeViewCustomColorInput"
+ "required": [
+ "code",
+ "msg",
+ "data"
+ ],
+ "additionalProperties": false
+ },
+ {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer",
+ "enum": [
+ -1
+ ]
},
- {
- "type": "null"
+ "data": {
+ "anyOf": [
+ {
+ "type": "object",
+ "properties": {
+ "closeTimeout": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "closeTimeout"
+ ],
+ "additionalProperties": false
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "msg": {
+ "type": "string"
}
- ]
- }
- },
- "order": {
- "type": "array",
- "items": {
- "type": "string"
+ },
+ "required": [
+ "code",
+ "msg",
+ "data"
+ ],
+ "additionalProperties": true
}
- }
- },
- "required": [
- "colors",
- "order"
- ],
- "additionalProperties": false
+ ]
+ }
},
- "WorkspaceInfoData": {
- "type": "object",
- "properties": {
- "siyuanVer": {
- "type": "string"
- },
- "workspaceDir": {
- "type": "string"
- }
+ {
+ "method": "POST",
+ "path": "/api/asset/getDocImageAssets",
+ "handler": "getDocImageAssets",
+ "body": "json",
+ "request": {
+ "$ref": "#/$defs/AssetDocumentRequestInput"
},
- "required": [
- "siyuanVer",
- "workspaceDir"
- ],
- "additionalProperties": false
+ "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
+ }
+ ]
+ }
},
- "ZipRequestInput": {
- "type": "object",
- "properties": {
- "path": {
- "type": "string"
- },
- "zipPath": {
- "type": "string"
- }
+ {
+ "method": "POST",
+ "path": "/api/asset/getFileAnnotation",
+ "handler": "getFileAnnotation",
+ "body": "json",
+ "request": {
+ "$ref": "#/$defs/AssetPathRequestInput"
},
- "required": [
- "path",
- "zipPath"
- ],
- "additionalProperties": false
- }
- },
- "endpoints": [
+ "response": {
+ "anyOf": [
+ {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer",
+ "enum": [
+ 0
+ ]
+ },
+ "data": {
+ "$ref": "#/$defs/AssetAnnotationData"
+ },
+ "msg": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "msg",
+ "data"
+ ],
+ "additionalProperties": false
+ },
+ {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer",
+ "enum": [
+ -1,
+ 1,
+ 403
+ ]
+ },
+ "data": {
+ "anyOf": [
+ {
+ "type": "object",
+ "properties": {
+ "closeTimeout": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "closeTimeout"
+ ],
+ "additionalProperties": false
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "msg": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "msg",
+ "data"
+ ],
+ "additionalProperties": true
+ }
+ ]
+ }
+ },
{
- "method": "GET",
- "path": "/api/ai/mcp/oauth/callback/:flowID",
- "handler": "mcpOAuthCallback",
- "body": "none",
+ "method": "POST",
+ "path": "/api/asset/getImageOCRText",
+ "handler": "getImageOCRText",
+ "body": "json",
"request": {
- "$ref": "#/$defs/EmptyRequestInput"
+ "$ref": "#/$defs/AssetOCRTextRequestInput"
},
"response": {
"anyOf": [
{
- "type": "string",
- "format": "binary"
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer",
+ "enum": [
+ 0
+ ]
+ },
+ "data": {
+ "$ref": "#/$defs/AssetTextData"
+ },
+ "msg": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "msg",
+ "data"
+ ],
+ "additionalProperties": false
},
{
"type": "object",
@@ -31759,28 +44723,12 @@
"additionalProperties": true
}
]
- },
- "output": "binary",
- "errorStatus": 200,
- "contentVariants": [
- {
- "status": 200,
- "contentType": "text/html"
- },
- {
- "status": 400,
- "contentType": "text/html"
- },
- {
- "status": 403,
- "contentType": "text/plain"
- }
- ]
+ }
},
{
- "method": "GET",
- "path": "/api/plugin",
- "handler": "listLoadedPluginsGET",
+ "method": "POST",
+ "path": "/api/asset/getMissingAssets",
+ "handler": "getMissingAssets",
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -31803,7 +44751,7 @@
"items": {
"anyOf": [
{
- "$ref": "#/$defs/LoadedPlugin"
+ "$ref": "#/$defs/AssetUnusedItem"
},
{
"type": "null"
@@ -31870,12 +44818,12 @@
}
},
{
- "method": "GET",
- "path": "/api/plugin/rpc",
- "handler": "getLoadedPluginRPC",
- "body": "json",
+ "method": "POST",
+ "path": "/api/asset/getUnusedAssets",
+ "handler": "getUnusedAssets",
+ "body": "none",
"request": {
- "$ref": "#/$defs/LoadedPluginRequestInput"
+ "$ref": "#/$defs/EmptyRequestInput"
},
"response": {
"anyOf": [
@@ -31891,7 +44839,17 @@
"data": {
"anyOf": [
{
- "$ref": "#/$defs/LoadedPlugin"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AssetUnusedItem"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
@@ -31915,11 +44873,7 @@
"code": {
"type": "integer",
"enum": [
- -1,
- 1,
- 2,
- 3,
- 4
+ -1
]
},
"data": {
@@ -31956,12 +44910,12 @@
}
},
{
- "method": "GET",
- "path": "/api/plugin/rpc/:name",
- "handler": "getLoadedPluginRPCByName",
+ "method": "POST",
+ "path": "/api/asset/insertCover",
+ "handler": "insertCover",
"body": "json",
"request": {
- "$ref": "#/$defs/LoadedPluginRequestInput"
+ "$ref": "#/$defs/InsertCoverRequestInput"
},
"response": {
"anyOf": [
@@ -31975,14 +44929,7 @@
]
},
"data": {
- "anyOf": [
- {
- "$ref": "#/$defs/LoadedPlugin"
- },
- {
- "type": "null"
- }
- ]
+ "$ref": "#/$defs/AssetInsertCoverData"
},
"msg": {
"type": "string"
@@ -32001,11 +44948,7 @@
"code": {
"type": "integer",
"enum": [
- -1,
- 1,
- 2,
- 3,
- 4
+ -1
]
},
"data": {
@@ -32042,12 +44985,12 @@
}
},
{
- "method": "GET",
- "path": "/api/system/bootProgress",
- "handler": "bootProgress",
- "body": "none",
+ "method": "POST",
+ "path": "/api/asset/insertLocalAssets",
+ "handler": "insertLocalAssets",
+ "body": "json",
"request": {
- "$ref": "#/$defs/EmptyRequestInput"
+ "$ref": "#/$defs/InsertLocalAssetsRequestInput"
},
"response": {
"anyOf": [
@@ -32061,7 +45004,7 @@
]
},
"data": {
- "$ref": "#/$defs/BootProgressData"
+ "$ref": "#/$defs/AssetUploadData"
},
"msg": {
"type": "string"
@@ -32099,6 +45042,9 @@
},
{
"type": "null"
+ },
+ {
+ "$ref": "#/$defs/AssetUploadData"
}
]
},
@@ -32117,12 +45063,12 @@
}
},
{
- "method": "GET",
- "path": "/api/system/version",
- "handler": "version",
- "body": "none",
+ "method": "POST",
+ "path": "/api/asset/ocr",
+ "handler": "ocr",
+ "body": "json",
"request": {
- "$ref": "#/$defs/EmptyRequestInput"
+ "$ref": "#/$defs/AssetPathRequestInput"
},
"response": {
"anyOf": [
@@ -32136,7 +45082,7 @@
]
},
"data": {
- "type": "string"
+ "$ref": "#/$defs/AssetOCRData"
},
"msg": {
"type": "string"
@@ -32192,45 +45138,26 @@
}
},
{
- "method": "GET",
- "path": "/ws/plugin/rpc",
- "handler": "pluginJsonRpcWebSocket",
- "body": "none",
+ "method": "POST",
+ "path": "/api/asset/removeUnusedAsset",
+ "handler": "removeUnusedAsset",
+ "body": "json",
"request": {
- "$ref": "#/$defs/EmptyRequestInput"
+ "$ref": "#/$defs/AssetPathRequestInput"
},
"response": {
"anyOf": [
- {
- "$ref": "#/$defs/PluginRPCFailure"
- },
{
"type": "object",
"properties": {
"code": {
"type": "integer",
"enum": [
- -1
+ 0
]
},
"data": {
- "anyOf": [
- {
- "type": "object",
- "properties": {
- "closeTimeout": {
- "type": "number"
- }
- },
- "required": [
- "closeTimeout"
- ],
- "additionalProperties": false
- },
- {
- "type": "null"
- }
- ]
+ "$ref": "#/$defs/AssetPathData"
},
"msg": {
"type": "string"
@@ -32241,68 +45168,7 @@
"msg",
"data"
],
- "additionalProperties": true
- }
- ]
- },
- "output": "websocket",
- "websocket": {
- "incoming": {
- "anyOf": [
- {
- "$ref": "#/$defs/PluginRPCRequestFieldsInput"
- },
- {
- "type": "array",
- "items": {
- "$ref": "#/$defs/PluginRPCRequestFieldsInput"
- },
- "minItems": 1
- }
- ]
- },
- "outgoing": {
- "anyOf": [
- {
- "$ref": "#/$defs/PluginRPCSuccess"
- },
- {
- "$ref": "#/$defs/PluginRPCFailure"
- },
- {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/PluginRPCSuccess"
- },
- {
- "$ref": "#/$defs/PluginRPCFailure"
- }
- ]
- },
- "minItems": 1
- },
- {
- "$ref": "#/$defs/PluginRPCNotification"
- }
- ]
- },
- "failureStatus": 404
- }
- },
- {
- "method": "GET",
- "path": "/ws/plugin/rpc/:name",
- "handler": "pluginJsonRpcWebSocketByName",
- "body": "none",
- "request": {
- "$ref": "#/$defs/EmptyRequestInput"
- },
- "response": {
- "anyOf": [
- {
- "$ref": "#/$defs/PluginRPCFailure"
+ "additionalProperties": false
},
{
"type": "object",
@@ -32344,60 +45210,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",
- "body": "json",
+ "path": "/api/asset/removeUnusedAssets",
+ "handler": "removeUnusedAssets",
+ "body": "none",
"request": {
- "$ref": "#/$defs/CheckActivationCodeRequestInput"
+ "$ref": "#/$defs/EmptyRequestInput"
},
"response": {
"anyOf": [
@@ -32411,7 +45232,7 @@
]
},
"data": {
- "type": "null"
+ "$ref": "#/$defs/AssetPathsData"
},
"msg": {
"type": "string"
@@ -32430,8 +45251,7 @@
"code": {
"type": "integer",
"enum": [
- -1,
- 1
+ -1
]
},
"data": {
@@ -32448,9 +45268,6 @@
],
"additionalProperties": false
},
- {
- "type": "null"
- },
{
"type": "null"
}
@@ -32472,11 +45289,11 @@
},
{
"method": "POST",
- "path": "/api/account/deactivate",
- "handler": "deactivateUser",
- "body": "none",
+ "path": "/api/asset/renameAsset",
+ "handler": "renameAsset",
+ "body": "json",
"request": {
- "$ref": "#/$defs/EmptyRequestInput"
+ "$ref": "#/$defs/RenameAssetRequestInput"
},
"response": {
"anyOf": [
@@ -32490,7 +45307,7 @@
]
},
"data": {
- "type": "null"
+ "$ref": "#/$defs/AssetRenameData"
},
"msg": {
"type": "string"
@@ -32547,11 +45364,11 @@
},
{
"method": "POST",
- "path": "/api/account/login",
- "handler": "login",
+ "path": "/api/asset/resolveAssetPath",
+ "handler": "resolveAssetPath",
"body": "json",
"request": {
- "$ref": "#/$defs/AccountLoginRequestInput"
+ "$ref": "#/$defs/AssetPathRequestInput"
},
"response": {
"anyOf": [
@@ -32565,14 +45382,7 @@
]
},
"data": {
- "anyOf": [
- {
- "$ref": "#/$defs/AccountLoginData"
- },
- {
- "type": "null"
- }
- ]
+ "type": "string"
},
"msg": {
"type": "string"
@@ -32591,9 +45401,7 @@
"code": {
"type": "integer",
"enum": [
- -1,
- 1,
- 10
+ -1
]
},
"data": {
@@ -32612,16 +45420,6 @@
},
{
"type": "null"
- },
- {
- "anyOf": [
- {
- "$ref": "#/$defs/AccountLoginData"
- },
- {
- "type": "null"
- }
- ]
}
]
},
@@ -32641,11 +45439,11 @@
},
{
"method": "POST",
- "path": "/api/account/startFreeTrial",
- "handler": "startFreeTrial",
- "body": "none",
+ "path": "/api/asset/setFileAnnotation",
+ "handler": "setFileAnnotation",
+ "body": "json",
"request": {
- "$ref": "#/$defs/EmptyRequestInput"
+ "$ref": "#/$defs/SetAssetAnnotationRequestInput"
},
"response": {
"anyOf": [
@@ -32716,11 +45514,11 @@
},
{
"method": "POST",
- "path": "/api/account/useActivationcode",
- "handler": "useActivationcode",
+ "path": "/api/asset/setImageOCRText",
+ "handler": "setImageOCRText",
"body": "json",
"request": {
- "$ref": "#/$defs/ActivationCodeRequestInput"
+ "$ref": "#/$defs/SetAssetOCRTextRequestInput"
},
"response": {
"anyOf": [
@@ -32791,11 +45589,11 @@
},
{
"method": "POST",
- "path": "/api/ai/agent/browserCapabilityResult",
- "handler": "agentChatBrowserCapabilityResult",
- "body": "structJSON",
+ "path": "/api/asset/statAsset",
+ "handler": "statAsset",
+ "body": "json",
"request": {
- "$ref": "#/$defs/AIBrowserCapabilityResultRequestInput"
+ "$ref": "#/$defs/AssetPathRequestInput"
},
"response": {
"anyOf": [
@@ -32809,7 +45607,7 @@
]
},
"data": {
- "type": "null"
+ "$ref": "#/$defs/AssetStatData"
},
"msg": {
"type": "string"
@@ -32828,7 +45626,8 @@
"code": {
"type": "integer",
"enum": [
- -1
+ -1,
+ 1
]
},
"data": {
@@ -32862,23 +45661,40 @@
"additionalProperties": true
}
]
- },
- "additionalErrorStatuses": [
- 409
- ]
+ }
},
{
"method": "POST",
- "path": "/api/ai/agent/chat",
- "handler": "agentChat",
- "body": "structJSON",
+ "path": "/api/asset/upload",
+ "handler": "uploadAsset",
+ "body": "multipart",
"request": {
- "$ref": "#/$defs/AIAgentChatRequestInput"
+ "$ref": "#/$defs/UploadAssetRequestInput"
},
"response": {
"anyOf": [
{
- "type": "string"
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer",
+ "enum": [
+ 0
+ ]
+ },
+ "data": {
+ "$ref": "#/$defs/AssetUploadData"
+ },
+ "msg": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "msg",
+ "data"
+ ],
+ "additionalProperties": false
},
{
"type": "object",
@@ -32920,71 +45736,15 @@
"additionalProperties": true
}
]
- },
- "output": "sse",
- "sse": {
- "events": {
- "browser_capability_call": {
- "$ref": "#/$defs/AISSEBrowserCapabilityCall"
- },
- "confirm": {
- "$ref": "#/$defs/AISSEConfirm"
- },
- "content": {
- "$ref": "#/$defs/AISSEToken"
- },
- "done": {
- "$ref": "#/$defs/AISSETurn"
- },
- "error": {
- "$ref": "#/$defs/AISSEMessage"
- },
- "interrupted": {
- "$ref": "#/$defs/AISSEMessage"
- },
- "permission": {
- "$ref": "#/$defs/AIPermissionData"
- },
- "question": {
- "$ref": "#/$defs/AISSEQuestion"
- },
- "reasoning": {
- "$ref": "#/$defs/AISSEToken"
- },
- "retry": {
- "$ref": "#/$defs/AISSERetry"
- },
- "snapshot": {
- "$ref": "#/$defs/AISSESnapshot"
- },
- "thinking": {
- "$ref": "#/$defs/AISSEThinking"
- },
- "tool_call": {
- "$ref": "#/$defs/AISSEToolCall"
- },
- "tool_result": {
- "$ref": "#/$defs/AISSEToolResult"
- },
- "turn": {
- "$ref": "#/$defs/AISSETurn"
- },
- "usage": {
- "$ref": "#/$defs/AISSEUsage"
- }
- }
- },
- "additionalErrorStatuses": [
- 409
- ]
+ }
},
{
"method": "POST",
- "path": "/api/ai/agent/confirm",
- "handler": "agentChatConfirm",
- "body": "structJSON",
+ "path": "/api/asset/uploadCloud",
+ "handler": "uploadCloud",
+ "body": "json",
"request": {
- "$ref": "#/$defs/AIConfirmRequestInput"
+ "$ref": "#/$defs/AssetCloudUploadRequestInput"
},
"response": {
"anyOf": [
@@ -33051,18 +45811,15 @@
"additionalProperties": true
}
]
- },
- "additionalErrorStatuses": [
- 409
- ]
+ }
},
{
"method": "POST",
- "path": "/api/ai/agent/getSession",
- "handler": "getSession",
- "body": "structJSON",
+ "path": "/api/asset/uploadCloudByAssetsPaths",
+ "handler": "uploadCloudByAssetsPaths",
+ "body": "json",
"request": {
- "$ref": "#/$defs/AISessionIDRequestInput"
+ "$ref": "#/$defs/AssetPathsCloudUploadRequestInput"
},
"response": {
"anyOf": [
@@ -33076,14 +45833,7 @@
]
},
"data": {
- "anyOf": [
- {
- "$ref": "#/$defs/AISessionExtensionAISessionFields"
- },
- {
- "type": "null"
- }
- ]
+ "type": "null"
},
"msg": {
"type": "string"
@@ -33136,18 +45886,15 @@
"additionalProperties": true
}
]
- },
- "additionalErrorStatuses": [
- 500
- ]
+ }
},
{
"method": "POST",
- "path": "/api/ai/agent/getSkill",
- "handler": "getSkill",
- "body": "structJSON",
+ "path": "/api/attr/batchGetBlockAttrs",
+ "handler": "batchGetBlockAttrs",
+ "body": "json",
"request": {
- "$ref": "#/$defs/AISkillNameRequestInput"
+ "$ref": "#/$defs/BlockIDsRequestInput"
},
"response": {
"anyOf": [
@@ -33161,7 +45908,20 @@
]
},
"data": {
- "$ref": "#/$defs/AISkillData"
+ "type": "object",
+ "additionalProperties": {
+ "anyOf": [
+ {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
"msg": {
"type": "string"
@@ -33218,11 +45978,11 @@
},
{
"method": "POST",
- "path": "/api/ai/agent/lsSessions",
- "handler": "lsSessions",
- "body": "structJSON",
+ "path": "/api/attr/batchSetBlockAttrs",
+ "handler": "batchSetBlockAttrs",
+ "body": "json",
"request": {
- "$ref": "#/$defs/AISessionsRequestInput"
+ "$ref": "#/$defs/BatchSetBlockAttrsRequestInput"
},
"response": {
"anyOf": [
@@ -33236,7 +45996,7 @@
]
},
"data": {
- "$ref": "#/$defs/AISessionList"
+ "type": "null"
},
"msg": {
"type": "string"
@@ -33293,11 +46053,11 @@
},
{
"method": "POST",
- "path": "/api/ai/agent/lsSkills",
- "handler": "lsSkills",
- "body": "none",
+ "path": "/api/attr/getBlockAttrs",
+ "handler": "getBlockAttrs",
+ "body": "json",
"request": {
- "$ref": "#/$defs/EmptyRequestInput"
+ "$ref": "#/$defs/BlockIDRequestInput"
},
"response": {
"anyOf": [
@@ -33311,17 +46071,10 @@
]
},
"data": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "$ref": "#/$defs/AISkillInfo"
- }
- },
- {
- "type": "null"
- }
- ]
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ }
},
"msg": {
"type": "string"
@@ -33378,8 +46131,8 @@
},
{
"method": "POST",
- "path": "/api/ai/agent/lsUserSkills",
- "handler": "lsUserSkills",
+ "path": "/api/attr/getBookmarkLabels",
+ "handler": "getBookmarkLabels",
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -33400,7 +46153,7 @@
{
"type": "array",
"items": {
- "$ref": "#/$defs/AIUserSkillInfo"
+ "type": "string"
}
},
{
@@ -33463,89 +46216,11 @@
},
{
"method": "POST",
- "path": "/api/ai/agent/question",
- "handler": "agentChatQuestion",
- "body": "structJSON",
- "request": {
- "$ref": "#/$defs/AIQuestionRequestInput"
- },
- "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
- }
- ]
- },
- "additionalErrorStatuses": [
- 409
- ]
- },
- {
- "method": "POST",
- "path": "/api/ai/agent/removeSession",
- "handler": "removeSession",
- "body": "structJSON",
+ "path": "/api/attr/resetBlockAttrs",
+ "handler": "resetBlockAttrs",
+ "body": "none",
"request": {
- "$ref": "#/$defs/AISessionIDRequestInput"
+ "$ref": "#/$defs/EmptyRequestInput"
},
"response": {
"anyOf": [
@@ -33612,19 +46287,15 @@
"additionalProperties": true
}
]
- },
- "additionalErrorStatuses": [
- 409,
- 500
- ]
+ }
},
{
"method": "POST",
- "path": "/api/ai/agent/removeSkill",
- "handler": "removeSkill",
- "body": "structJSON",
+ "path": "/api/attr/setBlockAttrs",
+ "handler": "setBlockAttrs",
+ "body": "json",
"request": {
- "$ref": "#/$defs/AISkillNameRequestInput"
+ "$ref": "#/$defs/SetBlockAttrsRequestInput"
},
"response": {
"anyOf": [
@@ -33695,11 +46366,11 @@
},
{
"method": "POST",
- "path": "/api/ai/agent/renameSkill",
- "handler": "renameSkill",
- "body": "structJSON",
+ "path": "/api/av/addAttributeViewBlocks",
+ "handler": "addAttributeViewBlocks",
+ "body": "json",
"request": {
- "$ref": "#/$defs/AISkillRenameRequestInput"
+ "$ref": "#/$defs/AddAttributeViewBlocksRequestInput"
},
"response": {
"anyOf": [
@@ -33770,94 +46441,11 @@
},
{
"method": "POST",
- "path": "/api/ai/agent/saveSession",
- "handler": "saveSession",
- "body": "structJSON",
- "request": {
- "$ref": "#/$defs/AISessionExtensionAISessionFieldsInput"
- },
- "response": {
- "anyOf": [
- {
- "type": "object",
- "properties": {
- "code": {
- "type": "integer",
- "enum": [
- 0
- ]
- },
- "data": {
- "$ref": "#/$defs/AISessionSaveData"
- },
- "msg": {
- "type": "string"
- }
- },
- "required": [
- "code",
- "msg",
- "data"
- ],
- "additionalProperties": false
- },
- {
- "type": "object",
- "properties": {
- "code": {
- "type": "integer",
- "enum": [
- -1
- ]
- },
- "data": {
- "anyOf": [
- {
- "type": "object",
- "properties": {
- "closeTimeout": {
- "type": "number"
- }
- },
- "required": [
- "closeTimeout"
- ],
- "additionalProperties": false
- },
- {
- "type": "null"
- },
- {
- "$ref": "#/$defs/AISessionSaveData"
- }
- ]
- },
- "msg": {
- "type": "string"
- }
- },
- "required": [
- "code",
- "msg",
- "data"
- ],
- "additionalProperties": true
- }
- ]
- },
- "additionalErrorStatuses": [
- 400,
- 409,
- 500
- ]
- },
- {
- "method": "POST",
- "path": "/api/ai/agent/saveSkill",
- "handler": "saveSkill",
- "body": "structJSON",
+ "path": "/api/av/addAttributeViewKey",
+ "handler": "addAttributeViewKey",
+ "body": "json",
"request": {
- "$ref": "#/$defs/AISkillSaveRequestInput"
+ "$ref": "#/$defs/AddAttributeViewKeyRequestInput"
},
"response": {
"anyOf": [
@@ -33928,11 +46516,11 @@
},
{
"method": "POST",
- "path": "/api/ai/agent/setPermission",
- "handler": "setAgentSessionPermission",
- "body": "structJSON",
+ "path": "/api/av/appendAttributeViewDetachedBlocksWithValues",
+ "handler": "appendAttributeViewDetachedBlocksWithValues",
+ "body": "json",
"request": {
- "$ref": "#/$defs/AIPermissionRequestInput"
+ "$ref": "#/$defs/AppendAttributeViewDetachedBlocksWithValuesRequestInput"
},
"response": {
"anyOf": [
@@ -33946,7 +46534,7 @@
]
},
"data": {
- "$ref": "#/$defs/AIPermissionData"
+ "type": "null"
},
"msg": {
"type": "string"
@@ -34003,11 +46591,11 @@
},
{
"method": "POST",
- "path": "/api/ai/agent/title",
- "handler": "agentChatTitle",
- "body": "structJSON",
+ "path": "/api/av/batchReplaceAttributeViewBlocks",
+ "handler": "batchReplaceAttributeViewBlocks",
+ "body": "json",
"request": {
- "$ref": "#/$defs/AITitleRequestInput"
+ "$ref": "#/$defs/BatchReplaceAttributeViewBlocksRequestInput"
},
"response": {
"anyOf": [
@@ -34021,7 +46609,7 @@
]
},
"data": {
- "type": "string"
+ "type": "null"
},
"msg": {
"type": "string"
@@ -34078,11 +46666,11 @@
},
{
"method": "POST",
- "path": "/api/ai/chatGPT",
- "handler": "chatGPT",
+ "path": "/api/av/batchSetAttributeViewBlockAttrs",
+ "handler": "batchSetAttributeViewBlockAttrs",
"body": "json",
"request": {
- "$ref": "#/$defs/AIMessageRequestInput"
+ "$ref": "#/$defs/BatchSetAttributeViewBlockAttrsRequestInput"
},
"response": {
"anyOf": [
@@ -34096,7 +46684,7 @@
]
},
"data": {
- "type": "string"
+ "type": "null"
},
"msg": {
"type": "string"
@@ -34153,11 +46741,11 @@
},
{
"method": "POST",
- "path": "/api/ai/chatGPTWithAction",
- "handler": "chatGPTWithAction",
+ "path": "/api/av/changeAttrViewLayout",
+ "handler": "changeAttrViewLayout",
"body": "json",
"request": {
- "$ref": "#/$defs/AIActionRequestInput"
+ "$ref": "#/$defs/ChangeAttrViewLayoutRequestInput"
},
"response": {
"anyOf": [
@@ -34171,7 +46759,7 @@
]
},
"data": {
- "type": "string"
+ "$ref": "#/$defs/AVRenderResult"
},
"msg": {
"type": "string"
@@ -34209,61 +46797,9 @@
},
{
"type": "null"
- }
- ]
- },
- "msg": {
- "type": "string"
- }
- },
- "required": [
- "code",
- "msg",
- "data"
- ],
- "additionalProperties": true
- }
- ]
- }
- },
- {
- "method": "POST",
- "path": "/api/ai/editor/chat",
- "handler": "aiEditorChat",
- "body": "structJSON",
- "request": {
- "$ref": "#/$defs/AIEditorChatRequestInput"
- },
- "response": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "object",
- "properties": {
- "code": {
- "type": "integer",
- "enum": [
- -1
- ]
- },
- "data": {
- "anyOf": [
- {
- "type": "object",
- "properties": {
- "closeTimeout": {
- "type": "number"
- }
- },
- "required": [
- "closeTimeout"
- ],
- "additionalProperties": false
},
{
- "type": "null"
+ "$ref": "#/$defs/AVRenderResult"
}
]
},
@@ -34279,38 +46815,15 @@
"additionalProperties": true
}
]
- },
- "output": "sse",
- "sse": {
- "events": {
- "content": {
- "$ref": "#/$defs/AISSEToken"
- },
- "done": {
- "$ref": "#/$defs/AISSEFinish"
- },
- "error": {
- "$ref": "#/$defs/AISSEMessage"
- },
- "reasoning": {
- "$ref": "#/$defs/AISSEToken"
- },
- "start": {
- "$ref": "#/$defs/AISSEStart"
- },
- "truncated": {
- "$ref": "#/$defs/AISSEMessage"
- }
- }
}
},
{
"method": "POST",
- "path": "/api/ai/editor/lsActions",
- "handler": "lsAIEditorActions",
- "body": "none",
+ "path": "/api/av/createAttributeViewItem",
+ "handler": "createAttributeViewItem",
+ "body": "json",
"request": {
- "$ref": "#/$defs/EmptyRequestInput"
+ "$ref": "#/$defs/CreateAttributeViewItemRequestInput"
},
"response": {
"anyOf": [
@@ -34324,24 +46837,7 @@
]
},
"data": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/AIEditorAction"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- {
- "type": "null"
- }
- ]
+ "$ref": "#/$defs/AVCreateItemResult"
},
"msg": {
"type": "string"
@@ -34360,7 +46856,8 @@
"code": {
"type": "integer",
"enum": [
- -1
+ -1,
+ 1
]
},
"data": {
@@ -34379,6 +46876,9 @@
},
{
"type": "null"
+ },
+ {
+ "$ref": "#/$defs/AVCreateItemResult"
}
]
},
@@ -34398,11 +46898,11 @@
},
{
"method": "POST",
- "path": "/api/ai/editor/removeAction",
- "handler": "removeAIEditorAction",
+ "path": "/api/av/createAttributeViewItemDocs",
+ "handler": "createAttributeViewItemDocs",
"body": "json",
"request": {
- "$ref": "#/$defs/AIEditorActionIDRequestInput"
+ "$ref": "#/$defs/CreateAttributeViewItemDocsRequestInput"
},
"response": {
"anyOf": [
@@ -34416,7 +46916,7 @@
]
},
"data": {
- "type": "null"
+ "$ref": "#/$defs/AVCreateItemDocsResult"
},
"msg": {
"type": "string"
@@ -34435,7 +46935,8 @@
"code": {
"type": "integer",
"enum": [
- -1
+ -1,
+ 1
]
},
"data": {
@@ -34454,6 +46955,9 @@
},
{
"type": "null"
+ },
+ {
+ "$ref": "#/$defs/AVCreateItemDocsResult"
}
]
},
@@ -34473,11 +46977,11 @@
},
{
"method": "POST",
- "path": "/api/ai/editor/saveAction",
- "handler": "saveAIEditorAction",
+ "path": "/api/av/createAttributeViewItemWithMarkdown",
+ "handler": "createAttributeViewItemWithMarkdown",
"body": "json",
"request": {
- "$ref": "#/$defs/AIEditorActionSaveRequestInput"
+ "$ref": "#/$defs/CreateAttributeViewItemWithMarkdownRequestInput"
},
"response": {
"anyOf": [
@@ -34491,14 +46995,7 @@
]
},
"data": {
- "anyOf": [
- {
- "$ref": "#/$defs/AIEditorAction"
- },
- {
- "type": "null"
- }
- ]
+ "$ref": "#/$defs/AVCreateItemResult"
},
"msg": {
"type": "string"
@@ -34517,7 +47014,8 @@
"code": {
"type": "integer",
"enum": [
- -1
+ -1,
+ 1
]
},
"data": {
@@ -34536,6 +47034,9 @@
},
{
"type": "null"
+ },
+ {
+ "$ref": "#/$defs/AVCreateItemResult"
}
]
},
@@ -34555,11 +47056,11 @@
},
{
"method": "POST",
- "path": "/api/ai/embeddingStat",
- "handler": "embeddingStat",
- "body": "none",
+ "path": "/api/av/duplicateAttributeViewBlock",
+ "handler": "duplicateAttributeViewBlock",
+ "body": "json",
"request": {
- "$ref": "#/$defs/EmptyRequestInput"
+ "$ref": "#/$defs/DuplicateAttributeViewBlockRequestInput"
},
"response": {
"anyOf": [
@@ -34573,14 +47074,7 @@
]
},
"data": {
- "anyOf": [
- {
- "$ref": "#/$defs/AIEmbeddingStat"
- },
- {
- "type": "null"
- }
- ]
+ "$ref": "#/$defs/AVDuplicateData"
},
"msg": {
"type": "string"
@@ -34637,11 +47131,11 @@
},
{
"method": "POST",
- "path": "/api/ai/listModels",
- "handler": "listModels",
+ "path": "/api/av/getAttributeView",
+ "handler": "getAttributeView",
"body": "json",
"request": {
- "$ref": "#/$defs/AIProviderRequestInput"
+ "$ref": "#/$defs/GetAttributeViewRequestInput"
},
"response": {
"anyOf": [
@@ -34655,7 +47149,7 @@
]
},
"data": {
- "$ref": "#/$defs/AIModelsData"
+ "$ref": "#/$defs/AVData"
},
"msg": {
"type": "string"
@@ -34712,11 +47206,11 @@
},
{
"method": "POST",
- "path": "/api/ai/lsCapabilities",
- "handler": "lsCapabilities",
- "body": "none",
+ "path": "/api/av/getAttributeViewAddingBlockDefaultValues",
+ "handler": "getAttributeViewAddingBlockDefaultValues",
+ "body": "json",
"request": {
- "$ref": "#/$defs/EmptyRequestInput"
+ "$ref": "#/$defs/GetAttributeViewAddingBlockDefaultValuesRequestInput"
},
"response": {
"anyOf": [
@@ -34730,17 +47224,7 @@
]
},
"data": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "$ref": "#/$defs/AICapabilityManifest"
- }
- },
- {
- "type": "null"
- }
- ]
+ "$ref": "#/$defs/AVValuesData"
},
"msg": {
"type": "string"
@@ -34797,11 +47281,11 @@
},
{
"method": "POST",
- "path": "/api/ai/mcpEnvironmentVariables",
- "handler": "mcpEnvironmentVariables",
- "body": "none",
+ "path": "/api/av/getAttributeViewBacklinks",
+ "handler": "getAttributeViewBacklinks",
+ "body": "json",
"request": {
- "$ref": "#/$defs/EmptyRequestInput"
+ "$ref": "#/$defs/GetAttributeViewBacklinksRequestInput"
},
"response": {
"anyOf": [
@@ -34815,7 +47299,14 @@
]
},
"data": {
- "$ref": "#/$defs/AIMCPEnvironmentData"
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVAttributeViewBacklinks"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
"msg": {
"type": "string"
@@ -34872,11 +47363,11 @@
},
{
"method": "POST",
- "path": "/api/ai/mcpOAuthAuthorize",
- "handler": "mcpOAuthAuthorize",
+ "path": "/api/av/getAttributeViewBoundBlockIDsByItemIDs",
+ "handler": "getAttributeViewBoundBlockIDsByItemIDs",
"body": "json",
"request": {
- "$ref": "#/$defs/AIMCPIDRequestInput"
+ "$ref": "#/$defs/GetAttributeViewBoundBlockIDsByItemIDsRequestInput"
},
"response": {
"anyOf": [
@@ -34890,7 +47381,17 @@
]
},
"data": {
- "type": "null"
+ "anyOf": [
+ {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
"msg": {
"type": "string"
@@ -34947,11 +47448,11 @@
},
{
"method": "POST",
- "path": "/api/ai/mcpOAuthDisconnect",
- "handler": "mcpOAuthDisconnect",
+ "path": "/api/av/getAttributeViewFieldViews",
+ "handler": "getAttributeViewFieldViews",
"body": "json",
"request": {
- "$ref": "#/$defs/AIMCPIDRequestInput"
+ "$ref": "#/$defs/GetAttributeViewFieldViewsRequestInput"
},
"response": {
"anyOf": [
@@ -34965,7 +47466,7 @@
]
},
"data": {
- "type": "null"
+ "$ref": "#/$defs/AVFieldViewsData"
},
"msg": {
"type": "string"
@@ -35022,11 +47523,11 @@
},
{
"method": "POST",
- "path": "/api/ai/mcpStatus",
- "handler": "mcpStatus",
- "body": "none",
+ "path": "/api/av/getAttributeViewFilterSort",
+ "handler": "getAttributeViewFilterSort",
+ "body": "json",
"request": {
- "$ref": "#/$defs/EmptyRequestInput"
+ "$ref": "#/$defs/GetAttributeViewFilterSortRequestInput"
},
"response": {
"anyOf": [
@@ -35040,17 +47541,7 @@
]
},
"data": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "$ref": "#/$defs/AIMCPStatus"
- }
- },
- {
- "type": "null"
- }
- ]
+ "$ref": "#/$defs/AVFilterSortData"
},
"msg": {
"type": "string"
@@ -35107,11 +47598,11 @@
},
{
"method": "POST",
- "path": "/api/ai/reindexEmbedding",
- "handler": "reindexEmbedding",
- "body": "none",
+ "path": "/api/av/getAttributeViewItemIDsByBoundIDs",
+ "handler": "getAttributeViewItemIDsByBoundIDs",
+ "body": "json",
"request": {
- "$ref": "#/$defs/EmptyRequestInput"
+ "$ref": "#/$defs/GetAttributeViewItemIDsByBoundIDsRequestInput"
},
"response": {
"anyOf": [
@@ -35125,7 +47616,17 @@
]
},
"data": {
- "type": "null"
+ "anyOf": [
+ {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
"msg": {
"type": "string"
@@ -35182,11 +47683,11 @@
},
{
"method": "POST",
- "path": "/api/ai/retryFailedEmbedding",
- "handler": "retryFailedEmbedding",
- "body": "none",
+ "path": "/api/av/getAttributeViewItemStatuses",
+ "handler": "getAttributeViewItemStatuses",
+ "body": "json",
"request": {
- "$ref": "#/$defs/EmptyRequestInput"
+ "$ref": "#/$defs/GetAttributeViewItemStatusesRequestInput"
},
"response": {
"anyOf": [
@@ -35200,7 +47701,17 @@
]
},
"data": {
- "type": "null"
+ "anyOf": [
+ {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
"msg": {
"type": "string"
@@ -35257,11 +47768,11 @@
},
{
"method": "POST",
- "path": "/api/ai/testEmbeddingModel",
- "handler": "testEmbeddingModel",
- "body": "none",
+ "path": "/api/av/getAttributeViewKeys",
+ "handler": "getAttributeViewKeys",
+ "body": "json",
"request": {
- "$ref": "#/$defs/EmptyRequestInput"
+ "$ref": "#/$defs/GetAttributeViewKeysRequestInput"
},
"response": {
"anyOf": [
@@ -35275,7 +47786,24 @@
]
},
"data": {
- "$ref": "#/$defs/AIEmbeddingTestData"
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVBlockAttributeViewKeys"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
"msg": {
"type": "string"
@@ -35332,11 +47860,11 @@
},
{
"method": "POST",
- "path": "/api/ai/testModel",
- "handler": "testModel",
+ "path": "/api/av/getAttributeViewKeysByAvID",
+ "handler": "getAttributeViewKeysByAvID",
"body": "json",
"request": {
- "$ref": "#/$defs/AIModelRequestInput"
+ "$ref": "#/$defs/GetAttributeViewKeysByAvIDRequestInput"
},
"response": {
"anyOf": [
@@ -35350,7 +47878,24 @@
]
},
"data": {
- "$ref": "#/$defs/AIModelTestData"
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVKey"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
"msg": {
"type": "string"
@@ -35407,11 +47952,11 @@
},
{
"method": "POST",
- "path": "/api/ai/testRerankModel",
- "handler": "testRerankModel",
- "body": "none",
+ "path": "/api/av/getAttributeViewKeysByID",
+ "handler": "getAttributeViewKeysByID",
+ "body": "json",
"request": {
- "$ref": "#/$defs/EmptyRequestInput"
+ "$ref": "#/$defs/GetAttributeViewKeysByIDRequestInput"
},
"response": {
"anyOf": [
@@ -35425,7 +47970,24 @@
]
},
"data": {
- "$ref": "#/$defs/AIRerankTestData"
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVKey"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
"msg": {
"type": "string"
@@ -35482,11 +48044,11 @@
},
{
"method": "POST",
- "path": "/api/archive/unzip",
- "handler": "unzip",
+ "path": "/api/av/getAttributeViewPasteRows",
+ "handler": "getAttributeViewPasteRows",
"body": "json",
"request": {
- "$ref": "#/$defs/UnzipRequestInput"
+ "$ref": "#/$defs/GetAttributeViewPasteRowsRequestInput"
},
"response": {
"anyOf": [
@@ -35500,7 +48062,7 @@
]
},
"data": {
- "type": "null"
+ "$ref": "#/$defs/AVPasteRowsData"
},
"msg": {
"type": "string"
@@ -35557,11 +48119,11 @@
},
{
"method": "POST",
- "path": "/api/archive/zip",
- "handler": "zip",
+ "path": "/api/av/getAttributeViewPrimaryKeyValues",
+ "handler": "getAttributeViewPrimaryKeyValues",
"body": "json",
"request": {
- "$ref": "#/$defs/ZipRequestInput"
+ "$ref": "#/$defs/GetAttributeViewPrimaryKeyValuesRequestInput"
},
"response": {
"anyOf": [
@@ -35575,7 +48137,7 @@
]
},
"data": {
- "type": "null"
+ "$ref": "#/$defs/AVPrimaryValuesData"
},
"msg": {
"type": "string"
@@ -35632,11 +48194,11 @@
},
{
"method": "POST",
- "path": "/api/asset/fullReindexAssetContent",
- "handler": "fullReindexAssetContent",
- "body": "none",
+ "path": "/api/av/getAttributeViewRelationCandidates",
+ "handler": "getAttributeViewRelationCandidates",
+ "body": "json",
"request": {
- "$ref": "#/$defs/EmptyRequestInput"
+ "$ref": "#/$defs/GetAttributeViewRelationCandidatesRequestInput"
},
"response": {
"anyOf": [
@@ -35650,7 +48212,7 @@
]
},
"data": {
- "type": "null"
+ "$ref": "#/$defs/AVRelationCandidatesData"
},
"msg": {
"type": "string"
@@ -35707,11 +48269,11 @@
},
{
"method": "POST",
- "path": "/api/asset/getDocAssets",
- "handler": "getDocAssets",
- "body": "json",
+ "path": "/api/av/getAttributeViewRowSort",
+ "handler": "getAttributeViewRowSort",
+ "body": "structJSON",
"request": {
- "$ref": "#/$defs/AssetDocumentAssetsRequestInput"
+ "$ref": "#/$defs/GetAttributeViewRowSortRequestInput"
},
"response": {
"anyOf": [
@@ -35725,17 +48287,7 @@
]
},
"data": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- {
- "type": "null"
- }
- ]
+ "$ref": "#/$defs/AVRowSortPreview"
},
"msg": {
"type": "string"
@@ -35792,11 +48344,11 @@
},
{
"method": "POST",
- "path": "/api/asset/getDocImageAssets",
- "handler": "getDocImageAssets",
+ "path": "/api/av/getAttributeViewSearchTarget",
+ "handler": "getAttributeViewSearchTarget",
"body": "json",
"request": {
- "$ref": "#/$defs/AssetDocumentRequestInput"
+ "$ref": "#/$defs/GetAttributeViewSearchTargetRequestInput"
},
"response": {
"anyOf": [
@@ -35812,10 +48364,7 @@
"data": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "$ref": "#/$defs/AVAttributeViewSearchTarget"
},
{
"type": "null"
@@ -35877,11 +48426,11 @@
},
{
"method": "POST",
- "path": "/api/asset/getFileAnnotation",
- "handler": "getFileAnnotation",
+ "path": "/api/av/getCurrentAttrViewImages",
+ "handler": "getCurrentAttrViewImages",
"body": "json",
"request": {
- "$ref": "#/$defs/AssetPathRequestInput"
+ "$ref": "#/$defs/GetCurrentAttrViewImagesRequestInput"
},
"response": {
"anyOf": [
@@ -35895,7 +48444,17 @@
]
},
"data": {
- "$ref": "#/$defs/AssetAnnotationData"
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
"msg": {
"type": "string"
@@ -35914,9 +48473,7 @@
"code": {
"type": "integer",
"enum": [
- -1,
- 1,
- 403
+ -1
]
},
"data": {
@@ -35954,11 +48511,11 @@
},
{
"method": "POST",
- "path": "/api/asset/getImageOCRText",
- "handler": "getImageOCRText",
+ "path": "/api/av/getMirrorDatabaseBlocks",
+ "handler": "getMirrorDatabaseBlocks",
"body": "json",
"request": {
- "$ref": "#/$defs/AssetOCRTextRequestInput"
+ "$ref": "#/$defs/GetMirrorDatabaseBlocksRequestInput"
},
"response": {
"anyOf": [
@@ -35972,7 +48529,7 @@
]
},
"data": {
- "$ref": "#/$defs/AssetTextData"
+ "$ref": "#/$defs/RefDefsData"
},
"msg": {
"type": "string"
@@ -36029,8 +48586,8 @@
},
{
"method": "POST",
- "path": "/api/asset/getMissingAssets",
- "handler": "getMissingAssets",
+ "path": "/api/av/getUnusedAttributeViews",
+ "handler": "getUnusedAttributeViews",
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -36121,11 +48678,11 @@
},
{
"method": "POST",
- "path": "/api/asset/getUnusedAssets",
- "handler": "getUnusedAssets",
- "body": "none",
+ "path": "/api/av/removeAttributeViewBlocks",
+ "handler": "removeAttributeViewBlocks",
+ "body": "json",
"request": {
- "$ref": "#/$defs/EmptyRequestInput"
+ "$ref": "#/$defs/RemoveAttributeViewBlocksRequestInput"
},
"response": {
"anyOf": [
@@ -36139,24 +48696,7 @@
]
},
"data": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/AssetUnusedItem"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- {
- "type": "null"
- }
- ]
+ "type": "null"
},
"msg": {
"type": "string"
@@ -36213,11 +48753,11 @@
},
{
"method": "POST",
- "path": "/api/asset/insertCover",
- "handler": "insertCover",
+ "path": "/api/av/removeAttributeViewKey",
+ "handler": "removeAttributeViewKey",
"body": "json",
"request": {
- "$ref": "#/$defs/InsertCoverRequestInput"
+ "$ref": "#/$defs/RemoveAttributeViewKeyRequestInput"
},
"response": {
"anyOf": [
@@ -36231,7 +48771,7 @@
]
},
"data": {
- "$ref": "#/$defs/AssetInsertCoverData"
+ "type": "null"
},
"msg": {
"type": "string"
@@ -36288,11 +48828,11 @@
},
{
"method": "POST",
- "path": "/api/asset/insertLocalAssets",
- "handler": "insertLocalAssets",
+ "path": "/api/av/removeUnusedAttributeView",
+ "handler": "removeUnusedAttributeView",
"body": "json",
"request": {
- "$ref": "#/$defs/InsertLocalAssetsRequestInput"
+ "$ref": "#/$defs/RemoveUnusedAttributeViewRequestInput"
},
"response": {
"anyOf": [
@@ -36306,7 +48846,7 @@
]
},
"data": {
- "$ref": "#/$defs/AssetUploadData"
+ "$ref": "#/$defs/AVIDData"
},
"msg": {
"type": "string"
@@ -36344,9 +48884,6 @@
},
{
"type": "null"
- },
- {
- "$ref": "#/$defs/AssetUploadData"
}
]
},
@@ -36366,11 +48903,11 @@
},
{
"method": "POST",
- "path": "/api/asset/ocr",
- "handler": "ocr",
- "body": "json",
+ "path": "/api/av/removeUnusedAttributeViews",
+ "handler": "removeUnusedAttributeViews",
+ "body": "none",
"request": {
- "$ref": "#/$defs/AssetPathRequestInput"
+ "$ref": "#/$defs/EmptyRequestInput"
},
"response": {
"anyOf": [
@@ -36384,7 +48921,7 @@
]
},
"data": {
- "$ref": "#/$defs/AssetOCRData"
+ "$ref": "#/$defs/AVPathsData"
},
"msg": {
"type": "string"
@@ -36441,11 +48978,11 @@
},
{
"method": "POST",
- "path": "/api/asset/removeUnusedAsset",
- "handler": "removeUnusedAsset",
+ "path": "/api/av/renderAttributeView",
+ "handler": "renderAttributeView",
"body": "json",
"request": {
- "$ref": "#/$defs/AssetPathRequestInput"
+ "$ref": "#/$defs/RenderAttributeViewRequestInput"
},
"response": {
"anyOf": [
@@ -36459,7 +48996,7 @@
]
},
"data": {
- "$ref": "#/$defs/AssetPathData"
+ "$ref": "#/$defs/AVRenderResult"
},
"msg": {
"type": "string"
@@ -36497,81 +49034,9 @@
},
{
"type": "null"
- }
- ]
- },
- "msg": {
- "type": "string"
- }
- },
- "required": [
- "code",
- "msg",
- "data"
- ],
- "additionalProperties": true
- }
- ]
- }
- },
- {
- "method": "POST",
- "path": "/api/asset/removeUnusedAssets",
- "handler": "removeUnusedAssets",
- "body": "none",
- "request": {
- "$ref": "#/$defs/EmptyRequestInput"
- },
- "response": {
- "anyOf": [
- {
- "type": "object",
- "properties": {
- "code": {
- "type": "integer",
- "enum": [
- 0
- ]
- },
- "data": {
- "$ref": "#/$defs/AssetPathsData"
- },
- "msg": {
- "type": "string"
- }
- },
- "required": [
- "code",
- "msg",
- "data"
- ],
- "additionalProperties": false
- },
- {
- "type": "object",
- "properties": {
- "code": {
- "type": "integer",
- "enum": [
- -1
- ]
- },
- "data": {
- "anyOf": [
- {
- "type": "object",
- "properties": {
- "closeTimeout": {
- "type": "number"
- }
- },
- "required": [
- "closeTimeout"
- ],
- "additionalProperties": false
},
{
- "type": "null"
+ "$ref": "#/$defs/AVRenderResult"
}
]
},
@@ -36591,11 +49056,11 @@
},
{
"method": "POST",
- "path": "/api/asset/renameAsset",
- "handler": "renameAsset",
+ "path": "/api/av/renderHistoryAttributeView",
+ "handler": "renderHistoryAttributeView",
"body": "json",
"request": {
- "$ref": "#/$defs/RenameAssetRequestInput"
+ "$ref": "#/$defs/RenderHistoryAttributeViewRequestInput"
},
"response": {
"anyOf": [
@@ -36609,7 +49074,7 @@
]
},
"data": {
- "$ref": "#/$defs/AssetRenameData"
+ "$ref": "#/$defs/AVArchiveRenderData"
},
"msg": {
"type": "string"
@@ -36666,11 +49131,11 @@
},
{
"method": "POST",
- "path": "/api/asset/resolveAssetPath",
- "handler": "resolveAssetPath",
+ "path": "/api/av/renderSnapshotAttributeView",
+ "handler": "renderSnapshotAttributeView",
"body": "json",
"request": {
- "$ref": "#/$defs/AssetPathRequestInput"
+ "$ref": "#/$defs/RenderSnapshotAttributeViewRequestInput"
},
"response": {
"anyOf": [
@@ -36684,7 +49149,7 @@
]
},
"data": {
- "type": "string"
+ "$ref": "#/$defs/AVArchiveRenderData"
},
"msg": {
"type": "string"
@@ -36741,11 +49206,11 @@
},
{
"method": "POST",
- "path": "/api/asset/setFileAnnotation",
- "handler": "setFileAnnotation",
+ "path": "/api/av/searchAttributeView",
+ "handler": "searchAttributeView",
"body": "json",
"request": {
- "$ref": "#/$defs/SetAssetAnnotationRequestInput"
+ "$ref": "#/$defs/SearchAttributeViewRequestInput"
},
"response": {
"anyOf": [
@@ -36759,7 +49224,7 @@
]
},
"data": {
- "type": "null"
+ "$ref": "#/$defs/AVSearchData"
},
"msg": {
"type": "string"
@@ -36816,11 +49281,11 @@
},
{
"method": "POST",
- "path": "/api/asset/setImageOCRText",
- "handler": "setImageOCRText",
- "body": "json",
+ "path": "/api/av/searchAttributeViewNonRelationKey",
+ "handler": "searchAttributeViewNonRelationKey",
+ "body": "none",
"request": {
- "$ref": "#/$defs/SetAssetOCRTextRequestInput"
+ "$ref": "#/$defs/EmptyRequestInput"
},
"response": {
"anyOf": [
@@ -36891,11 +49356,11 @@
},
{
"method": "POST",
- "path": "/api/asset/statAsset",
- "handler": "statAsset",
+ "path": "/api/av/searchAttributeViewRelationKey",
+ "handler": "searchAttributeViewRelationKey",
"body": "json",
"request": {
- "$ref": "#/$defs/AssetPathRequestInput"
+ "$ref": "#/$defs/SearchAttributeViewRelationKeyRequestInput"
},
"response": {
"anyOf": [
@@ -36909,7 +49374,7 @@
]
},
"data": {
- "$ref": "#/$defs/AssetStatData"
+ "$ref": "#/$defs/AVKeysData"
},
"msg": {
"type": "string"
@@ -36928,8 +49393,7 @@
"code": {
"type": "integer",
"enum": [
- -1,
- 1
+ -1
]
},
"data": {
@@ -36967,11 +49431,11 @@
},
{
"method": "POST",
- "path": "/api/asset/upload",
- "handler": "uploadAsset",
- "body": "multipart",
+ "path": "/api/av/searchAttributeViewRollupDestKeys",
+ "handler": "searchAttributeViewRollupDestKeys",
+ "body": "json",
"request": {
- "$ref": "#/$defs/UploadAssetRequestInput"
+ "$ref": "#/$defs/SearchAttributeViewRollupDestKeysRequestInput"
},
"response": {
"anyOf": [
@@ -36985,7 +49449,7 @@
]
},
"data": {
- "$ref": "#/$defs/AssetUploadData"
+ "$ref": "#/$defs/AVKeysData"
},
"msg": {
"type": "string"
@@ -37042,11 +49506,11 @@
},
{
"method": "POST",
- "path": "/api/asset/uploadCloud",
- "handler": "uploadCloud",
+ "path": "/api/av/setAttrViewContextFilter",
+ "handler": "setAttrViewContextFilter",
"body": "json",
"request": {
- "$ref": "#/$defs/AssetCloudUploadRequestInput"
+ "$ref": "#/$defs/SetAttrViewContextFilterRequestInput"
},
"response": {
"anyOf": [
@@ -37060,7 +49524,7 @@
]
},
"data": {
- "type": "null"
+ "$ref": "#/$defs/AVContextFilterData"
},
"msg": {
"type": "string"
@@ -37117,11 +49581,11 @@
},
{
"method": "POST",
- "path": "/api/asset/uploadCloudByAssetsPaths",
- "handler": "uploadCloudByAssetsPaths",
+ "path": "/api/av/setAttrViewFilters",
+ "handler": "setAttrViewFilters",
"body": "json",
"request": {
- "$ref": "#/$defs/AssetPathsCloudUploadRequestInput"
+ "$ref": "#/$defs/SetAttrViewFiltersRequestInput"
},
"response": {
"anyOf": [
@@ -37192,11 +49656,11 @@
},
{
"method": "POST",
- "path": "/api/attr/batchGetBlockAttrs",
- "handler": "batchGetBlockAttrs",
+ "path": "/api/av/setAttrViewGroup",
+ "handler": "setAttrViewGroup",
"body": "json",
"request": {
- "$ref": "#/$defs/BlockIDsRequestInput"
+ "$ref": "#/$defs/SetAttrViewGroupRequestInput"
},
"response": {
"anyOf": [
@@ -37210,20 +49674,7 @@
]
},
"data": {
- "type": "object",
- "additionalProperties": {
- "anyOf": [
- {
- "type": "object",
- "additionalProperties": {
- "type": "string"
- }
- },
- {
- "type": "null"
- }
- ]
- }
+ "$ref": "#/$defs/AVRenderResult"
},
"msg": {
"type": "string"
@@ -37261,81 +49712,9 @@
},
{
"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"
+ "$ref": "#/$defs/AVRenderResult"
}
]
},
@@ -37355,11 +49734,11 @@
},
{
"method": "POST",
- "path": "/api/attr/getBlockAttrs",
- "handler": "getBlockAttrs",
+ "path": "/api/av/setAttrViewSorts",
+ "handler": "setAttrViewSorts",
"body": "json",
"request": {
- "$ref": "#/$defs/BlockIDRequestInput"
+ "$ref": "#/$defs/SetAttrViewSortsRequestInput"
},
"response": {
"anyOf": [
@@ -37373,10 +49752,7 @@
]
},
"data": {
- "type": "object",
- "additionalProperties": {
- "type": "string"
- }
+ "type": "null"
},
"msg": {
"type": "string"
@@ -37433,11 +49809,11 @@
},
{
"method": "POST",
- "path": "/api/attr/getBookmarkLabels",
- "handler": "getBookmarkLabels",
- "body": "none",
+ "path": "/api/av/setAttributeViewBlockAttr",
+ "handler": "setAttributeViewBlockAttr",
+ "body": "json",
"request": {
- "$ref": "#/$defs/EmptyRequestInput"
+ "$ref": "#/$defs/SetAttributeViewBlockAttrRequestInput"
},
"response": {
"anyOf": [
@@ -37451,17 +49827,7 @@
]
},
"data": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- {
- "type": "null"
- }
- ]
+ "$ref": "#/$defs/AVValueData"
},
"msg": {
"type": "string"
@@ -37518,11 +49884,11 @@
},
{
"method": "POST",
- "path": "/api/attr/resetBlockAttrs",
- "handler": "resetBlockAttrs",
- "body": "none",
+ "path": "/api/av/setDatabaseBlockView",
+ "handler": "setDatabaseBlockView",
+ "body": "json",
"request": {
- "$ref": "#/$defs/EmptyRequestInput"
+ "$ref": "#/$defs/SetDatabaseBlockViewRequestInput"
},
"response": {
"anyOf": [
@@ -37593,11 +49959,11 @@
},
{
"method": "POST",
- "path": "/api/attr/setBlockAttrs",
- "handler": "setBlockAttrs",
+ "path": "/api/av/sortAttributeViewKey",
+ "handler": "sortAttributeViewKey",
"body": "json",
"request": {
- "$ref": "#/$defs/SetBlockAttrsRequestInput"
+ "$ref": "#/$defs/SortAttributeViewKeyRequestInput"
},
"response": {
"anyOf": [
@@ -37668,11 +50034,11 @@
},
{
"method": "POST",
- "path": "/api/av/searchAttributeViewNonRelationKey",
- "handler": "searchAttributeViewNonRelationKey",
- "body": "none",
+ "path": "/api/av/sortAttributeViewViewKey",
+ "handler": "sortAttributeViewViewKey",
+ "body": "json",
"request": {
- "$ref": "#/$defs/EmptyRequestInput"
+ "$ref": "#/$defs/SortAttributeViewViewKeyRequestInput"
},
"response": {
"anyOf": [
diff --git a/kernel/model/attribute_view_row_sort.go b/kernel/model/attribute_view_row_sort.go
index eee0461992..34e8e23097 100644
--- a/kernel/model/attribute_view_row_sort.go
+++ b/kernel/model/attribute_view_row_sort.go
@@ -33,6 +33,10 @@ type attributeViewRowOrderChange struct {
ValidateGroup *string `json:"validateGroup,omitempty"`
}
+// AttributeViewRowOrder 和 AttributeViewRowOrderChange 用于传输层逐字段转换行排序预览。
+type AttributeViewRowOrder = attributeViewRowOrder
+type AttributeViewRowOrderChange = attributeViewRowOrderChange
+
type AttributeViewRowSortPreview struct {
Conflict bool `json:"conflict"`
DoOperations []*Operation `json:"doOperations"`