Skip to content

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

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

Daniel5c3fc857cd82
diff --git a/app/src/config/tabs/ai/aiProviderUi.ts b/app/src/config/tabs/ai/aiProviderUi.ts
index 2384067690..2b31538900 100644
--- a/app/src/config/tabs/ai/aiProviderUi.ts
+++ b/app/src/config/tabs/ai/aiProviderUi.ts
@@ -1,3 +1,4 @@
+import type {AIModelTestData} from "../../../types/api";
import {bindPasswordIconaToggle, genConfigItemMainHtml} from "../../render/fragments";
import {confirmDialog} from "../../../dialog/confirmDialog";
import {showMessage} from "../../../dialog/message";
@@ -341,7 +342,7 @@ const openAvailableModelMenu = (modelInput: HTMLInputElement, models: string[])
menu.element.querySelector(".b3-menu__items").setAttribute("style", "overflow: initial");
};
-const showTestResult = (data: Record<string, unknown>) => {
+const showTestResult = (data: AIModelTestData) => {
if (data.matched) {
showMessage(window.siyuan.languages.testConnectionSuccess, undefined, "info");
return;
@@ -650,7 +651,10 @@ const openProviderDetail = (root: HTMLElement, providerId?: string, preset?: IPr
if (!view.isConnected) {
return;
}
- const data = response.data || {};
+ if (response.code !== 0) {
+ return;
+ }
+ const data = response.data;
const responseModels: unknown[] = Array.isArray(data.models) ? data.models : [];
const models = responseModels
.filter((name): name is string => typeof name === "string" && name.trim() !== "")
@@ -853,8 +857,8 @@ const openProviderDetail = (root: HTMLElement, providerId?: string, preset?: IPr
button.disabled = true;
label.textContent = window.siyuan.languages.testConnectionTesting;
fetchPost("/api/ai/testModel", {providerConfig: draft, model: model.name.trim()}, (response) => {
- if (view.isConnected) {
- showTestResult(response.data || {});
+ if (view.isConnected && response.code === 0) {
+ showTestResult(response.data);
}
}).finally(() => {
if (view.isConnected) {
diff --git a/app/src/config/tabs/ai/aiUi.ts b/app/src/config/tabs/ai/aiUi.ts
index ba2eabe5f2..a6d3f9fdbd 100644
--- a/app/src/config/tabs/ai/aiUi.ts
+++ b/app/src/config/tabs/ai/aiUi.ts
@@ -79,15 +79,10 @@ export const mountEmbeddingStatsBlock = (root: HTMLElement) => {
const render = () => {
fetchPost("/api/ai/embeddingStat", {}, (response) => {
- const stat = response.data as {
- total: number,
- indexed: number,
- pending: number,
- failed: number,
- ignoredByLen: number,
- ignoredByConfig: number,
- enabled: boolean,
- };
+ if (response.code !== 0) {
+ return;
+ }
+ const stat = response.data;
if (!stat) {
return;
}
@@ -227,7 +222,10 @@ export const mountEmbeddingTestBtn = (root: HTMLElement) => {
};
fetchPost("/api/ai/testEmbeddingModel", {}, (response) => {
restoreBtn();
- const data = response.data || {};
+ if (response.code !== 0) {
+ return;
+ }
+ const data = response.data;
if (data.matched) {
const dims = data.dimensions;
showMessage(
@@ -274,7 +272,10 @@ export const mountRerankTestBtn = (root: HTMLElement) => {
};
fetchPost("/api/ai/testRerankModel", {}, (response) => {
restoreBtn();
- const data = response.data || {};
+ if (response.code !== 0) {
+ return;
+ }
+ const data = response.data;
if (data.matched) {
showMessage(window.siyuan.languages.testConnectionSuccess, undefined, "info");
return;
@@ -397,15 +398,10 @@ export const mountMcpServersBlock = (root: HTMLElement) => {
// 轮询 MCP 连接状态,刷新每个 server 名称旁的状态圆点颜色、tooltip,以及标题右侧的汇总。
const renderMcpStatus = () => {
fetchPost("/api/ai/mcpStatus", {}, (response) => {
- const items = response.data as Array<{
- id: string;
- name: string;
- status: string;
- tools: number;
- error?: string;
- authorizationURL?: string;
- authorized: boolean;
- }>;
+ if (response.code !== 0) {
+ return;
+ }
+ const items = response.data;
if (!items) {
return;
}
@@ -632,7 +628,10 @@ interface MCPEnvironmentVariablesData {
const openMcpServerDialog = (root: HTMLElement, serverName: string | null) => {
fetchPost("/api/ai/mcpEnvironmentVariables", {}, (response) => {
- const data = response.data as MCPEnvironmentVariablesData;
+ if (response.code !== 0) {
+ return;
+ }
+ const data = response.data;
openMcpServerDialogWithEnvironment(root, serverName, {
names: Array.isArray(data?.names) ? data.names : [],
defaults: Array.isArray(data?.defaults) ? data.defaults : [],
diff --git a/app/src/types/api/index.d.ts b/app/src/types/api/index.d.ts
index a52e27be4a..f2e30b592a 100644
--- a/app/src/types/api/index.d.ts
+++ b/app/src/types/api/index.d.ts
@@ -1,5 +1,193 @@
// 此文件由内核契约生成,请运行 pnpm run api:generate 更新。
+export type AIActionRequestInput = { "action": string; "ids": Array<string>; };
+
+export type AIAgentAttachment = { "detail"?: string; "documentId": string; "height"?: number; "mimeType"?: string; "path": string; "type": string; "width"?: number; };
+
+export type AIAgentAttachmentInput = { "detail"?: string | null; "documentId"?: string | null; "height"?: number | null; "mimeType"?: string | null; "path"?: string | null; "type"?: string | null; "width"?: number | null; };
+
+export type AIAgentChatRequestInput = { "blockHTML"?: string | null; "contentRevision"?: number | null; "editorContext"?: AIEditorContextInput | null; "frontendCapabilities"?: Array<AIFrontendCapabilityInput> | null; "language"?: string | null; "message"?: string | null; "model"?: string | null; "reasoningEffort"?: string | null; "references"?: Array<AIReferenceInput> | null; "regenerate"?: boolean | null; "sessionID"?: string | null; "userEntryID"?: string | null; };
+
+export type AIAgentGoogleToolCallProviderData = { "thoughtSignature"?: string; };
+
+export type AIAgentGoogleToolCallProviderDataInput = { "thoughtSignature"?: string | null; };
+
+export type AIAgentMessage = { "content": string; "editorContext"?: AIEditorContext; "entryID"?: string; "reasoningContent"?: string; "references"?: Array<AIReference>; "responseOutput"?: Array<JSONValue>; "responseOutputTokens"?: number; "role": string; "roundID"?: string; "toolCalls"?: Array<AIAgentToolCall>; };
+
+export type AIAgentMessageInput = { "content"?: string | null; "editorContext"?: AIEditorContextInput | null; "entryID"?: string | null; "reasoningContent"?: string | null; "references"?: Array<AIReferenceInput> | null; "responseOutput"?: Array<JSONValue> | null; "responseOutputTokens"?: number | null; "role"?: string | null; "roundID"?: string | null; "toolCalls"?: Array<AIAgentToolCallInput> | null; };
+
+export type AIAgentToolCall = { "arguments": { [key: string]: JSONValue } | null; "argumentsJSON"?: string; "attachments"?: Array<AIAgentAttachment>; "id"?: string; "name": string; "providerData"?: AIAgentToolCallProviderData; "result"?: string; "state"?: string; };
+
+export type AIAgentToolCallInput = { "arguments"?: { [key: string]: JSONValue } | null; "argumentsJSON"?: string | null; "attachments"?: Array<AIAgentAttachmentInput> | null; "id"?: string | null; "name"?: string | null; "providerData"?: AIAgentToolCallProviderDataInput | null; "result"?: string | null; "state"?: string | null; };
+
+export type AIAgentToolCallProviderData = { "google"?: AIAgentGoogleToolCallProviderData; };
+
+export type AIAgentToolCallProviderDataInput = { "google"?: AIAgentGoogleToolCallProviderDataInput | null; };
+
+export type AIBrowserCapabilityResultRequestInput = { "callID"?: string | null; "isError"?: boolean | null; "result"?: string | null; "structuredContent"?: JSONValue | null; "structuredContentSet"?: boolean | null; };
+
+export type AICapabilityAction = { "effects"?: AIToolEffects; "name": string; };
+
+export type AICapabilityManifest = { "actions"?: Array<AICapabilityAction>; "agentOnly"?: boolean; "available": boolean; "description": string; "effects"?: AIToolEffects; "id": string; "name": string; "ownerId"?: string; "ownerName"?: string; "runtime": string; "source": string; "title"?: string; };
+
+export type AIConfirmRequestInput = { "always"?: boolean | null; "approved"?: boolean | null; "confirmID"?: string | null; };
+
+export type AIEditorAction = { "action": string; "id": string; "name": string; };
+
+export type AIEditorActionIDRequestInput = { "id": string; };
+
+export type AIEditorActionSaveRequestInput = { "action": string; "id"?: string | null; "name": string; };
+
+export type AIEditorChatRequestInput = { "action"?: string | null; "history"?: Array<AIEditorMessageInput> | null; "ids"?: Array<string> | null; "input"?: string | null; "taskID"?: string | null; };
+
+export type AIEditorContext = { "activeDocID"?: string; "activeDocTitle"?: string; "focusedBlockID"?: string; "notebookID"?: string; "selectedBlockIDs"?: Array<string>; "visibleBlockIDs"?: Array<string>; };
+
+export type AIEditorContextInput = { "activeDocID"?: string | null; "activeDocTitle"?: string | null; "focusedBlockID"?: string | null; "notebookID"?: string | null; "selectedBlockIDs"?: Array<string> | null; "visibleBlockIDs"?: Array<string> | null; };
+
+export type AIEditorMessageInput = { "content"?: string | null; "role"?: string | null; };
+
+export type AIEmbeddingStat = { "enabled": boolean; "failed": number; "ignoredByConfig": number; "ignoredByLen": number; "indexed": number; "pending": number; "total": number; };
+
+export type AIEmbeddingTestData = { "dimensions"?: number; "matched": boolean; "msg"?: string; };
+
+export type AIFrontendCapabilityInput = { "actionEffects"?: Record<string, AIToolEffectsInput> | null; "description"?: string | null; "effects"?: AIToolEffectsInput | null; "generation"?: number | null; "id"?: string | null; "inputSchema"?: { [key: string]: JSONValue } | null; "outputSchema"?: { [key: string]: JSONValue } | null; "ownerId"?: string | null; "ownerName"?: string | null; "source"?: string | null; "title"?: string | null; };
+
+export type AIMCPEnvironmentData = { "defaults": Array<string> | null; "names": Array<string> | null; };
+
+export type AIMCPIDRequestInput = { "id"?: string | null; };
+
+export type AIMCPStatus = { "authorizationURL"?: string; "authorized": boolean; "error"?: string; "id": string; "name": string; "status": string; "tools": number; };
+
+export type AIMessageRequestInput = { "msg": string; };
+
+export type AIModelRequestInput = { "model": string; "provider"?: string | null; "providerConfig"?: SettingProviderInput | null; };
+
+export type AIModelTestData = { "available": Array<string> | null; "matched": boolean; "msg"?: string; };
+
+export type AIModelsData = { "contextLengths": Record<string, number> | null; "models": Array<string> | null; "msg"?: string; };
+
+export type AIPermissionData = { "permissionMode": string; };
+
+export type AIPermissionRequestInput = { "permissionMode"?: string | null; "sessionID"?: string | null; };
+
+export type AIProviderRequestInput = { "provider"?: string | null; "providerConfig"?: SettingProviderInput | null; };
+
+export type AIQuestionRequestInput = { "answers"?: Array<string> | null; "questionID"?: string | null; };
+
+export type AIReference = { "id": string; "title": string; };
+
+export type AIReferenceInput = { "id"?: string | null; "title"?: string | null; };
+
+export type AIRerankTestData = { "matched": boolean; "msg"?: string; };
+
+export type AISSEBrowserCapabilityCall = { "arguments": { [key: string]: JSONValue } | null; "callID": string; "capabilityID": string; "generation": number; "name": string; };
+
+export type AISSEConfirm = { "arguments": { [key: string]: JSONValue } | null; "confirmID": string; "effects": AIToolEffects; "forced": boolean; "name": string; };
+
+export type AISSEFinish = { "finishReason": string; };
+
+export type AISSEMessage = { "message": string; };
+
+export type AISSEQuestion = { "arguments": { [key: string]: JSONValue } | null; "questionID": string; "roundID": string; };
+
+export type AISSERetry = { "attempt": number; "maxRetries": number; };
+
+export type AISSESnapshot = { "roundID": string; "snapshotID": string; };
+
+export type AISSEStart = { "taskID": string; };
+
+export type AISSEThinking = { "reasoning": string; "roundID": string; };
+
+export type AISSEToken = { "token": string; };
+
+export type AISSEToolCall = { "arguments": { [key: string]: JSONValue } | null; "callID": string; "name": string; "roundID": string; };
+
+export type AISSEToolResult = { "callID": string; "name": string; "result": string; "roundID": string; };
+
+export type AISSETurn = { "turnID": string; };
+
+export type AISSEUsage = { "cachedTokens": number; "completionTokens": number; "contextLimit": number; "lastPromptTokens": number; "promptTokens": number; "tokenBreakdown": Record<string, number> | null; };
+
+export type AISessionEntry = { "answers"?: Array<string>; "args"?: { [key: string]: JSONValue }; "blockHTML"?: string; "completionTokens"?: number; "confirmID"?: string; "content"?: string; "duration"?: number; "editorContext"?: AIEditorContext; "id"?: string; "name"?: string; "promptTokens"?: number; "questionID"?: string; "questions"?: Array<{ [key: string]: JSONValue } | null>; "reasoningContent"?: string; "references"?: Array<AIReference>; "responseOutput"?: Array<JSONValue>; "responseOutputTokens"?: number; "roundID"?: string; "snapshotID"?: string; "status"?: string; "steps"?: Array<AISessionEntryStep>; "timestamp"?: number; "toolCalls"?: Array<AIAgentToolCall>; "type": string; };
+
+export type AISessionEntryInput = { "answers"?: Array<string> | null; "args"?: { [key: string]: JSONValue } | null; "blockHTML"?: string | null; "completionTokens"?: number | null; "confirmID"?: string | null; "content"?: string | null; "duration"?: number | null; "editorContext"?: AIEditorContextInput | null; "id"?: string | null; "name"?: string | null; "promptTokens"?: number | null; "questionID"?: string | null; "questions"?: Array<{ [key: string]: JSONValue } | null> | null; "reasoningContent"?: string | null; "references"?: Array<AIReferenceInput> | null; "responseOutput"?: Array<JSONValue> | null; "responseOutputTokens"?: number | null; "roundID"?: string | null; "snapshotID"?: string | null; "status"?: string | null; "steps"?: Array<AISessionEntryStepInput> | null; "timestamp"?: number | null; "toolCalls"?: Array<AIAgentToolCallInput> | null; "type"?: string | null; };
+
+export type AISessionEntryStep = { "content"?: string; "reasoning": string; "reasoningContent"?: string; "roundID"?: string; "toolCallIDs"?: Array<string>; "toolNames"?: Array<string>; };
+
+export type AISessionEntryStepInput = { "content"?: string | null; "reasoning"?: string | null; "reasoningContent"?: string | null; "roundID"?: string | null; "toolCallIDs"?: Array<string> | null; "toolNames"?: Array<string> | null; };
+
+export type AISessionExtensionAIAgentAttachment = ({ "detail"?: string | null; "documentId"?: string | null; "height"?: number | null; "mimeType"?: string | null; "path"?: string | null; "type"?: string | null; "width"?: number | null; } & { [key: string]: JSONValue });
+
+export type AISessionExtensionAIAgentAttachmentInput = ({ "detail"?: string | null; "documentId"?: string | null; "height"?: number | null; "mimeType"?: string | null; "path"?: string | null; "type"?: string | null; "width"?: number | null; } & { [key: string]: JSONValue });
+
+export type AISessionExtensionAIAgentGoogleToolCallProviderData = ({ "thoughtSignature"?: string | null; } & { [key: string]: JSONValue });
+
+export type AISessionExtensionAIAgentGoogleToolCallProviderDataInput = ({ "thoughtSignature"?: string | null; } & { [key: string]: JSONValue });
+
+export type AISessionExtensionAIAgentMessage = ({ "content"?: string | null; "editorContext"?: AISessionExtensionAIEditorContext | null; "entryID"?: string | null; "reasoningContent"?: string | null; "references"?: Array<AISessionExtensionAIReference> | null; "responseOutput"?: Array<JSONValue> | null; "responseOutputTokens"?: number | null; "role"?: string | null; "roundID"?: string | null; "toolCalls"?: Array<AISessionExtensionAIAgentToolCall> | null; } & { [key: string]: JSONValue });
+
+export type AISessionExtensionAIAgentMessageInput = ({ "content"?: string | null; "editorContext"?: AISessionExtensionAIEditorContextInput | null; "entryID"?: string | null; "reasoningContent"?: string | null; "references"?: Array<AISessionExtensionAIReferenceInput> | null; "responseOutput"?: Array<JSONValue> | null; "responseOutputTokens"?: number | null; "role"?: string | null; "roundID"?: string | null; "toolCalls"?: Array<AISessionExtensionAIAgentToolCallInput> | null; } & { [key: string]: JSONValue });
+
+export type AISessionExtensionAIAgentToolCall = ({ "arguments"?: { [key: string]: JSONValue } | null; "argumentsJSON"?: string | null; "attachments"?: Array<AISessionExtensionAIAgentAttachment> | null; "id"?: string | null; "name"?: string | null; "providerData"?: AISessionExtensionAIAgentToolCallProviderData | null; "result"?: string | null; "state"?: string | null; } & { [key: string]: JSONValue });
+
+export type AISessionExtensionAIAgentToolCallInput = ({ "arguments"?: { [key: string]: JSONValue } | null; "argumentsJSON"?: string | null; "attachments"?: Array<AISessionExtensionAIAgentAttachmentInput> | null; "id"?: string | null; "name"?: string | null; "providerData"?: AISessionExtensionAIAgentToolCallProviderDataInput | null; "result"?: string | null; "state"?: string | null; } & { [key: string]: JSONValue });
+
+export type AISessionExtensionAIAgentToolCallProviderData = ({ "google"?: AISessionExtensionAIAgentGoogleToolCallProviderData | null; } & { [key: string]: JSONValue });
+
+export type AISessionExtensionAIAgentToolCallProviderDataInput = ({ "google"?: AISessionExtensionAIAgentGoogleToolCallProviderDataInput | null; } & { [key: string]: JSONValue });
+
+export type AISessionExtensionAIEditorContext = ({ "activeDocID"?: string | null; "activeDocTitle"?: string | null; "focusedBlockID"?: string | null; "notebookID"?: string | null; "selectedBlockIDs"?: Array<string> | null; "visibleBlockIDs"?: Array<string> | null; } & { [key: string]: JSONValue });
+
+export type AISessionExtensionAIEditorContextInput = ({ "activeDocID"?: string | null; "activeDocTitle"?: string | null; "focusedBlockID"?: string | null; "notebookID"?: string | null; "selectedBlockIDs"?: Array<string> | null; "visibleBlockIDs"?: Array<string> | null; } & { [key: string]: JSONValue });
+
+export type AISessionExtensionAIReference = ({ "id"?: string | null; "title"?: string | null; } & { [key: string]: JSONValue });
+
+export type AISessionExtensionAIReferenceInput = ({ "id"?: string | null; "title"?: string | null; } & { [key: string]: JSONValue });
+
+export type AISessionExtensionAISessionEntry = ({ "answers"?: Array<string> | null; "args"?: { [key: string]: JSONValue } | null; "blockHTML"?: string | null; "completionTokens"?: number | null; "confirmID"?: string | null; "content"?: string | null; "duration"?: number | null; "editorContext"?: AISessionExtensionAIEditorContext | null; "id"?: string | null; "name"?: string | null; "promptTokens"?: number | null; "questionID"?: string | null; "questions"?: Array<{ [key: string]: JSONValue } | null> | null; "reasoningContent"?: string | null; "references"?: Array<AISessionExtensionAIReference> | null; "responseOutput"?: Array<JSONValue> | null; "responseOutputTokens"?: number | null; "roundID"?: string | null; "snapshotID"?: string | null; "status"?: string | null; "steps"?: Array<AISessionExtensionAISessionEntryStep> | null; "timestamp"?: number | null; "toolCalls"?: Array<AISessionExtensionAIAgentToolCall> | null; "type"?: string | null; } & { [key: string]: JSONValue });
+
+export type AISessionExtensionAISessionEntryInput = ({ "answers"?: Array<string> | null; "args"?: { [key: string]: JSONValue } | null; "blockHTML"?: string | null; "completionTokens"?: number | null; "confirmID"?: string | null; "content"?: string | null; "duration"?: number | null; "editorContext"?: AISessionExtensionAIEditorContextInput | null; "id"?: string | null; "name"?: string | null; "promptTokens"?: number | null; "questionID"?: string | null; "questions"?: Array<{ [key: string]: JSONValue } | null> | null; "reasoningContent"?: string | null; "references"?: Array<AISessionExtensionAIReferenceInput> | null; "responseOutput"?: Array<JSONValue> | null; "responseOutputTokens"?: number | null; "roundID"?: string | null; "snapshotID"?: string | null; "status"?: string | null; "steps"?: Array<AISessionExtensionAISessionEntryStepInput> | null; "timestamp"?: number | null; "toolCalls"?: Array<AISessionExtensionAIAgentToolCallInput> | null; "type"?: string | null; } & { [key: string]: JSONValue });
+
+export type AISessionExtensionAISessionEntryStep = ({ "content"?: string | null; "reasoning"?: string | null; "reasoningContent"?: string | null; "roundID"?: string | null; "toolCallIDs"?: Array<string> | null; "toolNames"?: Array<string> | null; } & { [key: string]: JSONValue });
+
+export type AISessionExtensionAISessionEntryStepInput = ({ "content"?: string | null; "reasoning"?: string | null; "reasoningContent"?: string | null; "roundID"?: string | null; "toolCallIDs"?: Array<string> | null; "toolNames"?: Array<string> | null; } & { [key: string]: JSONValue });
+
+export type AISessionExtensionAISessionFields = ({ "agentRunning"?: boolean | null; "alwaysAllow"?: boolean | null; "commitTurnID"?: string | null; "completionTokens"?: number | null; "contextCachedTokens"?: number | null; "contextLimit"?: number | null; "contextTokenBreakdown"?: Record<string, number> | null; "contextTokens"?: number | null; "createdAt"?: number | null; "entries"?: Array<AISessionExtensionAISessionEntry> | null; "expectedRevision"?: number | null; "id": string; "lastCommittedTurnID"?: string | null; "messageHistory"?: Array<string> | null; "messages"?: Array<AISessionExtensionAIAgentMessage> | null; "model"?: string | null; "permissionMode"?: string | null; "promptTokens"?: number | null; "recoveryRevision"?: number | null; "recoveryState"?: string | null; "recoveryTurnID"?: string | null; "revision"?: number | null; "snapshots"?: Array<string> | null; "title"?: string | null; "titled"?: boolean | null; "totalDuration"?: number | null; "updatedAt"?: number | null; } & { [key: string]: JSONValue });
+
+export type AISessionExtensionAISessionFieldsInput = ({ "agentRunning"?: boolean | null; "alwaysAllow"?: boolean | null; "commitTurnID"?: string | null; "completionTokens"?: number | null; "contextCachedTokens"?: number | null; "contextLimit"?: number | null; "contextTokenBreakdown"?: Record<string, number> | null; "contextTokens"?: number | null; "createdAt"?: number | null; "entries"?: Array<AISessionExtensionAISessionEntryInput> | null; "expectedRevision"?: number | null; "id": string; "lastCommittedTurnID"?: string | null; "messageHistory"?: Array<string> | null; "messages"?: Array<AISessionExtensionAIAgentMessageInput> | null; "model"?: string | null; "permissionMode"?: string | null; "promptTokens"?: number | null; "recoveryRevision"?: number | null; "recoveryState"?: string | null; "recoveryTurnID"?: string | null; "revision"?: number | null; "snapshots"?: Array<string> | null; "title"?: string | null; "titled"?: boolean | null; "totalDuration"?: number | null; "updatedAt"?: number | null; } & { [key: string]: JSONValue });
+
+export type AISessionFields = { "agentRunning"?: boolean; "alwaysAllow"?: boolean; "commitTurnID"?: string; "completionTokens"?: number; "contextCachedTokens"?: number; "contextLimit"?: number; "contextTokenBreakdown"?: Record<string, number>; "contextTokens"?: number; "createdAt"?: number; "entries"?: Array<AISessionEntry>; "expectedRevision"?: number; "id": string; "lastCommittedTurnID"?: string; "messageHistory"?: Array<string>; "messages"?: Array<AIAgentMessage>; "model"?: string; "permissionMode"?: string; "promptTokens"?: number; "recoveryRevision"?: number; "recoveryState"?: string; "recoveryTurnID"?: string; "revision"?: number; "snapshots"?: Array<string>; "title"?: string; "titled"?: boolean; "totalDuration"?: number; "updatedAt"?: number; };
+
+export type AISessionFieldsInput = { "agentRunning"?: boolean | null; "alwaysAllow"?: boolean | null; "commitTurnID"?: string | null; "completionTokens"?: number | null; "contextCachedTokens"?: number | null; "contextLimit"?: number | null; "contextTokenBreakdown"?: Record<string, number> | null; "contextTokens"?: number | null; "createdAt"?: number | null; "entries"?: Array<AISessionEntryInput> | null; "expectedRevision"?: number | null; "id": string; "lastCommittedTurnID"?: string | null; "messageHistory"?: Array<string> | null; "messages"?: Array<AIAgentMessageInput> | null; "model"?: string | null; "permissionMode"?: string | null; "promptTokens"?: number | null; "recoveryRevision"?: number | null; "recoveryState"?: string | null; "recoveryTurnID"?: string | null; "revision"?: number | null; "snapshots"?: Array<string> | null; "title"?: string | null; "titled"?: boolean | null; "totalDuration"?: number | null; "updatedAt"?: number | null; };
+
+export type AISessionIDRequestInput = { "id"?: string | null; };
+
+export type AISessionIndex = { "agentRunning"?: boolean; "createdAt": number; "id": string; "title": string; "updatedAt": number; };
+
+export type AISessionList = { "page": number; "pageSize": number; "sessions": Array<AISessionIndex | null> | null; "total": number; };
+
+export type AISessionSaveData = { "revision": number; "session"?: AISessionExtensionAISessionFields; };
+
+export type AISessionsRequestInput = { "keyword"?: string | null; "page"?: number | null; "pageSize"?: number | null; };
+
+export type AISkillData = { "content": string; "name": string; };
+
+export type AISkillInfo = { "description": string; "name": string; };
+
+export type AISkillNameRequestInput = { "name"?: string | null; };
+
+export type AISkillRenameRequestInput = { "newName"?: string | null; "oldName"?: string | null; };
+
+export type AISkillSaveRequestInput = { "content"?: string | null; "name"?: string | null; };
+
+export type AITitleRequestInput = { "language"?: string | null; "message"?: string | null; "model"?: string | null; };
+
+export type AIToolEffects = { "dataEgress"?: boolean; "externalCost"?: boolean; "localRead"?: boolean; "localWrite"?: boolean; };
+
+export type AIToolEffectsInput = { "dataEgress"?: boolean | null; "externalCost"?: boolean | null; "localRead"?: boolean | null; "localWrite"?: boolean | null; };
+
+export type AIUserSkillInfo = { "description": string; "enabled": boolean; "id": string; "name": string; "shadowed": boolean; };
+
export type AccountLoginData = { "needCaptcha": string | null; "token": string | null; "userName": string | null; };
export type AccountLoginRequestInput = { "captcha": string; "cloudRegion": number; "userName": string; "userPassword": string; };
@@ -1415,7 +1603,6 @@ export type WorkspaceInfoData = { "siyuanVer": string; "workspaceDir": string; }
export type ZipRequestInput = { "path": string; "zipPath": string; };
export type APILegacyGETPath =
- "/api/ai/mcp/oauth/callback/:flowID" |
"/api/icon/getDynamicIcon" |
"/api/network/echo" |
"/api/network/echo/*path" |
@@ -1431,6 +1618,13 @@ export type APILegacyGETPath =
"/ws/network/proxy";
export interface APIGETRoutes {
+ "/api/ai/mcp/oauth/callback/:flowID": {
+ request: EmptyRequestInput;
+ response: Blob | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "none";
+ output: "binary";
+ contentVariants: [{"status":200,"contentType":"text/html"},{"status":400,"contentType":"text/html"},{"status":403,"contentType":"text/plain"}];
+ };
"/api/plugin": {
request: EmptyRequestInput;
response: { "code": 0; "data": Array<LoadedPlugin | null> | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
@@ -1473,40 +1667,6 @@ export interface APIGETRoutes {
}
export type APILegacyPOSTPath =
- "/api/ai/agent/browserCapabilityResult" |
- "/api/ai/agent/chat" |
- "/api/ai/agent/confirm" |
- "/api/ai/agent/getSession" |
- "/api/ai/agent/getSkill" |
- "/api/ai/agent/lsSessions" |
- "/api/ai/agent/lsSkills" |
- "/api/ai/agent/lsUserSkills" |
- "/api/ai/agent/question" |
- "/api/ai/agent/removeSession" |
- "/api/ai/agent/removeSkill" |
- "/api/ai/agent/renameSkill" |
- "/api/ai/agent/saveSession" |
- "/api/ai/agent/saveSkill" |
- "/api/ai/agent/setPermission" |
- "/api/ai/agent/title" |
- "/api/ai/chatGPT" |
- "/api/ai/chatGPTWithAction" |
- "/api/ai/editor/chat" |
- "/api/ai/editor/lsActions" |
- "/api/ai/editor/removeAction" |
- "/api/ai/editor/saveAction" |
- "/api/ai/embeddingStat" |
- "/api/ai/listModels" |
- "/api/ai/lsCapabilities" |
- "/api/ai/mcpEnvironmentVariables" |
- "/api/ai/mcpOAuthAuthorize" |
- "/api/ai/mcpOAuthDisconnect" |
- "/api/ai/mcpStatus" |
- "/api/ai/reindexEmbedding" |
- "/api/ai/retryFailedEmbedding" |
- "/api/ai/testEmbeddingModel" |
- "/api/ai/testModel" |
- "/api/ai/testRerankModel" |
"/api/av/addAttributeViewBlocks" |
"/api/av/addAttributeViewKey" |
"/api/av/appendAttributeViewDetachedBlocksWithValues" |
@@ -1632,6 +1792,187 @@ export interface APIPOSTRoutes {
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
};
+ "/api/ai/agent/browserCapabilityResult": {
+ request: AIBrowserCapabilityResultRequestInput;
+ response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "structJSON";
+ additionalErrorStatuses: [409];
+ };
+ "/api/ai/agent/chat": {
+ request: AIAgentChatRequestInput;
+ response: string | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "structJSON";
+ output: "sse";
+ additionalErrorStatuses: [409];
+ sse: { events: { "browser_capability_call": AISSEBrowserCapabilityCall; "confirm": AISSEConfirm; "content": AISSEToken; "done": AISSETurn; "error": AISSEMessage; "interrupted": AISSEMessage; "permission": AIPermissionData; "question": AISSEQuestion; "reasoning": AISSEToken; "retry": AISSERetry; "snapshot": AISSESnapshot; "thinking": AISSEThinking; "tool_call": AISSEToolCall; "tool_result": AISSEToolResult; "turn": AISSETurn; "usage": AISSEUsage; }; };
+ };
+ "/api/ai/agent/confirm": {
+ request: AIConfirmRequestInput;
+ response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "structJSON";
+ additionalErrorStatuses: [409];
+ };
+ "/api/ai/agent/getSession": {
+ request: AISessionIDRequestInput;
+ response: { "code": 0; "data": AISessionExtensionAISessionFields | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "structJSON";
+ additionalErrorStatuses: [500];
+ };
+ "/api/ai/agent/getSkill": {
+ request: AISkillNameRequestInput;
+ response: { "code": 0; "data": AISkillData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "structJSON";
+ };
+ "/api/ai/agent/lsSessions": {
+ request: AISessionsRequestInput;
+ response: { "code": 0; "data": AISessionList; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "structJSON";
+ };
+ "/api/ai/agent/lsSkills": {
+ request: EmptyRequestInput;
+ response: { "code": 0; "data": Array<AISkillInfo> | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "none";
+ };
+ "/api/ai/agent/lsUserSkills": {
+ request: EmptyRequestInput;
+ response: { "code": 0; "data": Array<AIUserSkillInfo> | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "none";
+ };
+ "/api/ai/agent/question": {
+ request: AIQuestionRequestInput;
+ response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "structJSON";
+ additionalErrorStatuses: [409];
+ };
+ "/api/ai/agent/removeSession": {
+ request: AISessionIDRequestInput;
+ response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "structJSON";
+ additionalErrorStatuses: [409,500];
+ };
+ "/api/ai/agent/removeSkill": {
+ request: AISkillNameRequestInput;
+ response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "structJSON";
+ };
+ "/api/ai/agent/renameSkill": {
+ request: AISkillRenameRequestInput;
+ response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "structJSON";
+ };
+ "/api/ai/agent/saveSession": {
+ request: AISessionExtensionAISessionFieldsInput;
+ response: { "code": 0; "data": AISessionSaveData; "msg": string; } | { "code": -1; "data": ({ "closeTimeout": number; } & { "revision"?: never; "session"?: never; }) | null | (AISessionSaveData & { "closeTimeout"?: never; }); "msg": string; };
+ body: "structJSON";
+ additionalErrorStatuses: [400,409,500];
+ };
+ "/api/ai/agent/saveSkill": {
+ request: AISkillSaveRequestInput;
+ response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "structJSON";
+ };
+ "/api/ai/agent/setPermission": {
+ request: AIPermissionRequestInput;
+ response: { "code": 0; "data": AIPermissionData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "structJSON";
+ };
+ "/api/ai/agent/title": {
+ request: AITitleRequestInput;
+ response: { "code": 0; "data": string; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "structJSON";
+ };
+ "/api/ai/chatGPT": {
+ request: AIMessageRequestInput;
+ response: { "code": 0; "data": string; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "json";
+ };
+ "/api/ai/chatGPTWithAction": {
+ request: AIActionRequestInput;
+ response: { "code": 0; "data": string; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "json";
+ };
+ "/api/ai/editor/chat": {
+ request: AIEditorChatRequestInput;
+ response: string | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "structJSON";
+ output: "sse";
+ sse: { events: { "content": AISSEToken; "done": AISSEFinish; "error": AISSEMessage; "reasoning": AISSEToken; "start": AISSEStart; "truncated": AISSEMessage; }; };
+ };
+ "/api/ai/editor/lsActions": {
+ request: EmptyRequestInput;
+ response: { "code": 0; "data": Array<AIEditorAction | null> | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "none";
+ };
+ "/api/ai/editor/removeAction": {
+ request: AIEditorActionIDRequestInput;
+ response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "json";
+ };
+ "/api/ai/editor/saveAction": {
+ request: AIEditorActionSaveRequestInput;
+ response: { "code": 0; "data": AIEditorAction | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "json";
+ };
+ "/api/ai/embeddingStat": {
+ request: EmptyRequestInput;
+ response: { "code": 0; "data": AIEmbeddingStat | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "none";
+ };
+ "/api/ai/listModels": {
+ request: AIProviderRequestInput;
+ response: { "code": 0; "data": AIModelsData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "json";
+ };
+ "/api/ai/lsCapabilities": {
+ request: EmptyRequestInput;
+ response: { "code": 0; "data": Array<AICapabilityManifest> | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "none";
+ };
+ "/api/ai/mcpEnvironmentVariables": {
+ request: EmptyRequestInput;
+ response: { "code": 0; "data": AIMCPEnvironmentData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "none";
+ };
+ "/api/ai/mcpOAuthAuthorize": {
+ request: AIMCPIDRequestInput;
+ response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "json";
+ };
+ "/api/ai/mcpOAuthDisconnect": {
+ request: AIMCPIDRequestInput;
+ response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "json";
+ };
+ "/api/ai/mcpStatus": {
+ request: EmptyRequestInput;
+ response: { "code": 0; "data": Array<AIMCPStatus> | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "none";
+ };
+ "/api/ai/reindexEmbedding": {
+ request: EmptyRequestInput;
+ response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "none";
+ };
+ "/api/ai/retryFailedEmbedding": {
+ request: EmptyRequestInput;
+ response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "none";
+ };
+ "/api/ai/testEmbeddingModel": {
+ request: EmptyRequestInput;
+ response: { "code": 0; "data": AIEmbeddingTestData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "none";
+ };
+ "/api/ai/testModel": {
+ request: AIModelRequestInput;
+ response: { "code": 0; "data": AIModelTestData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "json";
+ };
+ "/api/ai/testRerankModel": {
+ request: EmptyRequestInput;
+ response: { "code": 0; "data": AIRerankTestData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "none";
+ };
"/api/archive/unzip": {
request: UnzipRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
diff --git a/app/tests/api-contract.types.ts b/app/tests/api-contract.types.ts
index a54b1d730f..835917f402 100644
--- a/app/tests/api-contract.types.ts
+++ b/app/tests/api-contract.types.ts
@@ -412,3 +412,23 @@ if (notebooks.code === 0) {
// @ts-expect-error 成功码下的空数据也必须在严格模式下被检查。
void notebooks.data.notebooks;
}
+
+fetchPost("/api/ai/testModel", {model: "example", providerConfig: {baseURL: "https://example.invalid/v1", headers: {"X-Key": "value"}}}, (response) => {
+ if (response.code === 0) {
+ const matched: boolean = response.data.matched;
+ void matched;
+ }
+});
+fetchPost("/api/ai/agent/confirm", {confirmID: "id", approved: true, always: false});
+fetchPost("/api/ai/agent/browserCapabilityResult", {callID: "id", structuredContent: {future: [true, null, 1]}, structuredContentSet: true});
+// @ts-expect-error 模型名称必须是字符串
+fetchPost("/api/ai/testModel", {model: 1});
+// @ts-expect-error 确认结果必须是布尔值
+fetchPost("/api/ai/agent/confirm", {approved: "yes"});
+// @ts-expect-error 保存会话必须包含会话 ID
+fetchPost("/api/ai/agent/saveSession", {title: "missing ID"});
+const aiStreamContent: import("../src/types/api").APIPOSTRoutes["/api/ai/editor/chat"]["sse"]["events"]["content"] = {token: "text"};
+void aiStreamContent;
+// @ts-expect-error 流式内容必须是字符串
+const invalidAIStreamContent: import("../src/types/api").APIPOSTRoutes["/api/ai/editor/chat"]["sse"]["events"]["content"] = {token: 1};
+void invalidAIStreamContent;
diff --git a/docs/API-CONTRACTS.md b/docs/API-CONTRACTS.md
index eef6483475..1d5e7d3b5b 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
+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.
Document-tree contracts retain conditional parameter validation, path and sorting semantics, omitted callbacks, pagination defaults, and document response variants. Publish authentication preserves HTTP 429 and `Retry-After` through explicitly declared additional error statuses. Publish and encrypted-notebook admission remain before deferred field validation, and document leases cover response serialization.
diff --git a/docs/API-CONTRACTS.zh-CN.md b/docs/API-CONTRACTS.zh-CN.md
index c5fca19b19..0dde161511 100644
--- a/docs/API-CONTRACTS.zh-CN.md
+++ b/docs/API-CONTRACTS.zh-CN.md
@@ -24,6 +24,8 @@
## 兼容要求
+AI 契约保留供应商配置、模型发现与匹配、确认结果、会话扩展字段,以及数值和省略语义。编辑器和智能体流声明实际 SSE 事件,断开连接时关闭上游请求,流生命周期仍位于请求内部。OAuth 页面保留媒体类型、HTTP 状态和安全响应头。会话权限通知使用 `WithAfterWrite`,保留先响应再广播的顺序。任意 JSON 仅用于协议扩展字段和工具结果。
+
设置契约保留局部配置合并、既有默认值、结构字段大小写兼容、显式 null、JSON 数字归一化及解析错误消息。快捷键与云端认证结果声明固定字段,同时保留协议定义的 JSON 扩展。非管理员查询云用户时仍先执行准入判断再读取请求体;双因素认证保留云端错误码与扩展字段。前端继续在既有边界规范化持久化的显示设置。
文档树契约保留条件参数校验、路径与排序语义、回调省略规则、分页默认值及文档响应变体。发布认证通过显式声明的额外错误状态保留 HTTP 429 和 `Retry-After`。发布及加密笔记本准入仍先于延迟字段校验,文档租约覆盖响应序列化阶段。
diff --git a/kernel/api/agent.go b/kernel/api/agent.go
index e91795def8..ffe9a314e7 100644
--- a/kernel/api/agent.go
+++ b/kernel/api/agent.go
@@ -21,7 +21,6 @@ import (
"encoding/json"
"errors"
"fmt"
- "io"
"net/http"
"sync"
"time"
@@ -29,6 +28,7 @@ import (
"github.com/88250/gulu"
"github.com/gin-gonic/gin"
"github.com/siyuan-note/siyuan/kernel/agent"
+ "github.com/siyuan-note/siyuan/kernel/apicontract"
"github.com/siyuan-note/siyuan/kernel/conf"
"github.com/siyuan-note/siyuan/kernel/mcp/tools"
"github.com/siyuan-note/siyuan/kernel/model"
@@ -60,24 +60,13 @@ type runningSession struct {
var sessionsMu sync.Mutex
var runningSessions = map[string]*runningSession{}
-func agentChat(c *gin.Context) {
- if !model.Conf.AI.HasAnyProvider() {
- ret := gulu.Ret.NewResult()
- ret.Code = -1
- ret.Msg = model.Conf.Language(193)
- c.JSON(http.StatusOK, ret)
- return
- }
+var agentChat = contractHandler(apicontract.AIAgentChat, agentChatContract, aiProviderAdmission)
- req := &agentChatReq{}
- if err := c.ShouldBindJSON(req); err != nil {
- ret := gulu.Ret.NewResult()
- ret.Code = -1
- ret.Msg = "invalid request: " + err.Error()
- c.JSON(http.StatusOK, ret)
- return
+func agentChatContract(c *gin.Context, request apicontract.AIAgentChatRequest) apicontract.Response[apicontract.Null] {
+ req, err := aiAgentRequest(request)
+ if err != nil {
+ return apicontract.Failure[apicontract.Null](-1, err.Error())
}
-
modelID := req.Model
var selectedProvider *conf.Provider
var selectedModel *conf.Model
@@ -90,8 +79,7 @@ func agentChat(c *gin.Context) {
ret := gulu.Ret.NewResult()
ret.Code = -1
ret.Msg = model.Conf.Language(193)
- c.JSON(http.StatusOK, ret)
- return
+ return contractFailure[apicontract.Null](ret)
}
client := util.NewOpenAIClientWithModel(selectedProvider.APIKey, selectedProvider.BaseURL, selectedModel.Name, model.ResolveAIProviderHeaders(selectedProvider))
@@ -121,78 +109,79 @@ func agentChat(c *gin.Context) {
ret := gulu.Ret.NewResult()
ret.Code = -1
ret.Msg = "session is busy in another instance"
- c.JSON(http.StatusConflict, ret)
- return
+ return apicontract.AIAgentChat.WithHTTPStatus(contractFailure[apicontract.Null](ret), http.StatusConflict)
}
ctx, cancel := context.WithCancel(c.Request.Context())
ctx = util.ContextWithOpenAIResponsesBaseURL(ctx, selectedProvider.BaseURL)
running := &runningSession{app: app}
runningSessions[req.SessionID] = running
sessionsMu.Unlock()
+ return apicontract.StreamSSE[apicontract.Null](func(_ http.ResponseWriter, _ *http.Request) {
- contentRevision := int64(-1)
- if req.ContentRevision != nil {
- contentRevision = *req.ContentRevision
- }
- contextLimit := agent.ResolveModelContextLimit(selectedProvider.BaseURL, selectedModel.Name, selectedModel.ContextLength)
- imageCapabilityKey := fmt.Sprintf("%s\x00%s\x00%s\x00%s\x00%s",
- selectedProvider.ID, selectedModel.ID, selectedProvider.BaseURL, selectedProvider.Protocol, selectedModel.Name)
- eventCh := agent.AgentChat(ctx, client, selectedProvider.Protocol, selectedModel.Name, imageCapabilityKey,
- contextLimit, req.SessionID, req.UserEntryID, contentRevision, req.Message, req.BlockHTML, req.Language,
- req.References, req.EditorContext, req.FrontendCapabilities, req.Regenerate, confirmTimeout, maxRetries,
- req.ReasoningEffort, requestTimeout, streamIdleTimeout)
- defer cancel()
- streamClosed := false
- defer func() {
- if streamClosed {
- return
+ contentRevision := int64(-1)
+ if req.ContentRevision != nil {
+ contentRevision = *req.ContentRevision
}
- go func() {
- for event := range eventCh {
- recordRunningEvent(req.SessionID, running, event)
+ contextLimit := agent.ResolveModelContextLimit(selectedProvider.BaseURL, selectedModel.Name, selectedModel.ContextLength)
+ imageCapabilityKey := fmt.Sprintf("%s\x00%s\x00%s\x00%s\x00%s",
+ selectedProvider.ID, selectedModel.ID, selectedProvider.BaseURL, selectedProvider.Protocol, selectedModel.Name)
+ eventCh := agent.AgentChat(ctx, client, selectedProvider.Protocol, selectedModel.Name, imageCapabilityKey,
+ contextLimit, req.SessionID, req.UserEntryID, contentRevision, req.Message, req.BlockHTML, req.Language,
+ req.References, req.EditorContext, req.FrontendCapabilities, req.Regenerate, confirmTimeout, maxRetries,
+ req.ReasoningEffort, requestTimeout, streamIdleTimeout)
+ defer cancel()
+ streamClosed := false
+ defer func() {
+ if streamClosed {
+ return
}
- finishRunningSession(req.SessionID, running)
+ go func() {
+ for event := range eventCh {
+ recordRunningEvent(req.SessionID, running, event)
+ }
+ finishRunningSession(req.SessionID, running)
+ }()
}()
- }()
- c.Header("Content-Type", "text/event-stream")
- c.Header("Cache-Control", "no-cache")
- c.Header("Connection", "keep-alive")
+ c.Header("Content-Type", "text/event-stream")
+ c.Header("Cache-Control", "no-cache")
+ c.Header("Connection", "keep-alive")
- flusher, ok := c.Writer.(http.Flusher)
- if !ok {
- return
- }
+ flusher, ok := c.Writer.(http.Flusher)
+ if !ok {
+ return
+ }
- deadlineTimer, deadline := newAgentSessionDeadline(model.Conf.AI.Agent.SessionTimeout)
- if deadlineTimer != nil {
- defer deadlineTimer.Stop()
- }
+ deadlineTimer, deadline := newAgentSessionDeadline(model.Conf.AI.Agent.SessionTimeout)
+ if deadlineTimer != nil {
+ defer deadlineTimer.Stop()
+ }
- // 通知其他实例:该会话的流已开始,镜像端可显示"对话进行中"占位。
- broadcastAgentSessionChanged(app, req.SessionID, "streamStart")
+ // 通知其他实例:该会话的流已开始,镜像端可显示"对话进行中"占位。
+ broadcastAgentSessionChanged(app, req.SessionID, "streamStart")
- for {
- select {
- case event, ok := <-eventCh:
- if !ok {
- streamClosed = true
- finishRunningSession(req.SessionID, running)
+ for {
+ select {
+ case event, ok := <-eventCh:
+ if !ok {
+ streamClosed = true
+ finishRunningSession(req.SessionID, running)
+ return
+ }
+ recordRunningEvent(req.SessionID, running, event)
+ if err := writeSSE(c, event); err != nil {
+ return
+ }
+ flusher.Flush()
+ case <-c.Request.Context().Done():
return
- }
- recordRunningEvent(req.SessionID, running, event)
- if err := writeSSE(c, event); err != nil {
+ case <-deadline:
+ writeSSEInterrupted(c, model.Conf.Language(379))
+ flusher.Flush()
return
}
- flusher.Flush()
- case <-c.Request.Context().Done():
- return
- case <-deadline:
- writeSSEInterrupted(c, model.Conf.Language(379))
- flusher.Flush()
- return
}
- }
+ })
}
// sessionDeadlineTimeoutSeconds 解析会话总超时秒数:小于等于 0 表示不限制,超过上限时按上限截断。
@@ -259,136 +248,71 @@ func finishRunningSession(sessionID string, running *runningSession) {
}
}
-type agentConfirmReq struct {
- ConfirmID string `json:"confirmID"`
- Approved bool `json:"approved"`
- Always bool `json:"always"`
-}
+var agentChatConfirm = contractHandler(apicontract.AIAgentConfirm, agentChatConfirmContract)
-func agentChatConfirm(c *gin.Context) {
- req := &agentConfirmReq{}
- if err := c.ShouldBindJSON(req); err != nil {
- ret := gulu.Ret.NewResult()
- ret.Code = -1
- ret.Msg = "invalid request: " + err.Error()
- c.JSON(http.StatusOK, ret)
- return
- }
+func agentChatConfirmContract(c *gin.Context, req apicontract.AIConfirmRequest) apicontract.Response[apicontract.Null] {
ret := gulu.Ret.NewResult()
accepted, err := agent.ConfirmSession(req.ConfirmID, req.Approved, req.Always)
if err != nil {
ret.Code = -1
ret.Msg = err.Error()
- c.JSON(http.StatusOK, ret)
- return
+ return contractFailure[apicontract.Null](ret)
}
if !accepted {
ret.Code = -1
ret.Msg = "agent confirmation expired"
- c.JSON(http.StatusConflict, ret)
- return
+ return apicontract.AIAgentConfirm.WithHTTPStatus(contractFailure[apicontract.Null](ret), http.StatusConflict)
}
- c.JSON(http.StatusOK, ret)
+ return contractFailure[apicontract.Null](ret)
}
-type agentPermissionReq struct {
- SessionID string `json:"sessionID"`
- PermissionMode string `json:"permissionMode"`
-}
+var setAgentSessionPermission = contractHandler(apicontract.AIAgentSetPermission, setAgentSessionPermissionContract)
-func setAgentSessionPermission(c *gin.Context) {
- req := &agentPermissionReq{}
- if err := c.ShouldBindJSON(req); err != nil {
- ret := gulu.Ret.NewResult()
- ret.Code = -1
- ret.Msg = "invalid request: " + err.Error()
- c.JSON(http.StatusOK, ret)
- return
- }
+func setAgentSessionPermissionContract(c *gin.Context, req apicontract.AIPermissionRequest) apicontract.Response[apicontract.AIPermissionData] {
ret := gulu.Ret.NewResult()
if err := agent.SetSessionPermissionMode(req.SessionID, req.PermissionMode); err != nil {
ret.Code = -1
ret.Msg = err.Error()
- c.JSON(http.StatusOK, ret)
- return
+ return contractFailure[apicontract.AIPermissionData](ret)
}
- ret.Data = map[string]string{"permissionMode": req.PermissionMode}
- c.JSON(http.StatusOK, ret)
- broadcastAgentSessionChanged(c.GetHeader("X-SiYuan-App-ID"), req.SessionID, "permission")
+ return apicontract.WithAfterWrite(apicontract.Success(apicontract.AIPermissionData{PermissionMode: req.PermissionMode}), func() {
+ broadcastAgentSessionChanged(c.GetHeader("X-SiYuan-App-ID"), req.SessionID, "permission")
+ })
}
-type agentQuestionReq struct {
- QuestionID string `json:"questionID"`
- Answers []string `json:"answers"`
-}
+var agentChatQuestion = contractHandler(apicontract.AIAgentQuestion, agentChatQuestionContract)
-func agentChatQuestion(c *gin.Context) {
- req := &agentQuestionReq{}
- if err := c.ShouldBindJSON(req); err != nil {
- ret := gulu.Ret.NewResult()
- ret.Code = -1
- ret.Msg = "invalid request: " + err.Error()
- c.JSON(http.StatusOK, ret)
- return
- }
+func agentChatQuestionContract(c *gin.Context, req apicontract.AIQuestionRequest) apicontract.Response[apicontract.Null] {
ret := gulu.Ret.NewResult()
if !agent.AnswerQuestion(req.QuestionID, req.Answers) {
ret.Code = -1
ret.Msg = "agent question expired"
- c.JSON(http.StatusConflict, ret)
- return
+ return apicontract.AIAgentQuestion.WithHTTPStatus(contractFailure[apicontract.Null](ret), http.StatusConflict)
}
- c.JSON(http.StatusOK, ret)
+ return contractFailure[apicontract.Null](ret)
}
-type agentBrowserCapabilityResultReq struct {
- CallID string `json:"callID"`
- Result string `json:"result"`
- StructuredContent any `json:"structuredContent"`
- StructuredContentSet bool `json:"structuredContentSet"`
- IsError bool `json:"isError"`
-}
+var agentChatBrowserCapabilityResult = contractHandler(apicontract.AIAgentBrowserCapabilityResult, agentChatBrowserCapabilityResultContract)
-func agentChatBrowserCapabilityResult(c *gin.Context) {
- req := &agentBrowserCapabilityResultReq{}
- if err := c.ShouldBindJSON(req); err != nil {
- ret := gulu.Ret.NewResult()
- ret.Code = -1
- ret.Msg = "invalid request: " + err.Error()
- c.JSON(http.StatusOK, ret)
- return
- }
+func agentChatBrowserCapabilityResultContract(c *gin.Context, req apicontract.AIBrowserCapabilityResultRequest) apicontract.Response[apicontract.Null] {
ret := gulu.Ret.NewResult()
if !agent.BrowserCapabilityResult(req.CallID, req.Result, req.StructuredContent, req.StructuredContentSet, req.IsError) {
ret.Code = -1
ret.Msg = "agent browser capability call expired"
- c.JSON(http.StatusConflict, ret)
- return
+ return apicontract.AIAgentBrowserCapabilityResult.WithHTTPStatus(contractFailure[apicontract.Null](ret), http.StatusConflict)
}
- c.JSON(http.StatusOK, ret)
+ return contractFailure[apicontract.Null](ret)
}
-func lsCapabilities(c *gin.Context) {
- ret := gulu.Ret.NewResult()
- ret.Data = tools.ListCapabilityManifests()
- c.JSON(http.StatusOK, ret)
-}
+var lsCapabilities = contractHandler(apicontract.AIListCapabilities, lsCapabilitiesContract)
-type agentTitleReq struct {
- Message string `json:"message"`
- Model string `json:"model"`
- Language string `json:"language"`
+func lsCapabilitiesContract(c *gin.Context, req apicontract.EmptyRequest) apicontract.Response[[]apicontract.AICapabilityManifest] {
+ return apicontract.Success(aiCapabilityManifestsContract(tools.ListCapabilityManifests()))
}
-func agentChatTitle(c *gin.Context) {
- req := &agentTitleReq{}
- if err := c.ShouldBindJSON(req); err != nil {
- ret := gulu.Ret.NewResult()
- ret.Code = -1
- ret.Msg = "invalid request: " + err.Error()
- c.JSON(http.StatusOK, ret)
- return
- }
+var agentChatTitle = contractHandler(apicontract.AIAgentTitle, agentChatTitleContract)
+
+func agentChatTitleContract(c *gin.Context, req apicontract.AITitleRequest) apicontract.Response[string] {
modelID := req.Model
var selectedProvider *conf.Provider
@@ -402,33 +326,18 @@ func agentChatTitle(c *gin.Context) {
ret := gulu.Ret.NewResult()
ret.Code = -1
ret.Msg = "no AI provider configured"
- c.JSON(http.StatusOK, ret)
- return
+ return contractFailure[string](ret)
}
client := util.NewOpenAIClientWithModel(selectedProvider.APIKey, selectedProvider.BaseURL, selectedModel.Name, model.ResolveAIProviderHeaders(selectedProvider))
title := agent.GenerateTitle(client, selectedProvider.BaseURL, selectedProvider.Protocol, selectedModel.Name,
req.Message, req.Language)
- ret := gulu.Ret.NewResult()
- ret.Data = title
- c.JSON(http.StatusOK, ret)
+ return apicontract.Success(title)
}
-type agentSessionsReq struct {
- Page int `json:"page"`
- PageSize int `json:"pageSize"`
- Keyword string `json:"keyword"`
-}
+var lsSessions = contractHandler(apicontract.AIListSessions, lsSessionsContract)
-func lsSessions(c *gin.Context) {
- req := &agentSessionsReq{}
- if err := c.ShouldBindJSON(req); err != nil {
- ret := gulu.Ret.NewResult()
- ret.Code = -1
- ret.Msg = "invalid request: " + err.Error()
- c.JSON(http.StatusOK, ret)
- return
- }
+func lsSessionsContract(c *gin.Context, req apicontract.AISessionsRequest) apicontract.Response[apicontract.AISessionList] {
result := agent.ListSessions(req.Page, req.PageSize, req.Keyword)
sessionsMu.Lock()
@@ -436,24 +345,12 @@ func lsSessions(c *gin.Context) {
_, session.AgentRunning = runningSessions[session.ID]
}
sessionsMu.Unlock()
- ret := gulu.Ret.NewResult()
- ret.Data = result
- c.JSON(http.StatusOK, ret)
+ return apicontract.Success(aiSessionListContract(result))
}
-type agentSessionGetReq struct {
- ID string `json:"id"`
-}
+var getSession = contractHandler(apicontract.AIGetSession, getSessionContract)
-func getSession(c *gin.Context) {
- req := &agentSessionGetReq{}
- if err := c.ShouldBindJSON(req); err != nil {
- ret := gulu.Ret.NewResult()
- ret.Code = -1
- ret.Msg = "invalid request: " + err.Error()
- c.JSON(http.StatusOK, ret)
- return
- }
+func getSessionContract(c *gin.Context, req apicontract.AISessionIDRequest) apicontract.Response[*apicontract.AISession] {
sessionsMu.Lock()
_, running := runningSessions[req.ID]
@@ -463,8 +360,7 @@ func getSession(c *gin.Context) {
ret := gulu.Ret.NewResult()
ret.Code = -1
ret.Msg = err.Error()
- c.JSON(http.StatusInternalServerError, ret)
- return
+ return apicontract.AIGetSession.WithHTTPStatus(contractFailure[*apicontract.AISession](ret), http.StatusInternalServerError)
}
}
session, err := agent.GetSessionState(req.ID, !running)
@@ -476,28 +372,19 @@ func getSession(c *gin.Context) {
ret := gulu.Ret.NewResult()
ret.Code = -1
ret.Msg = err.Error()
- c.JSON(http.StatusOK, ret)
- return
+ return contractFailure[*apicontract.AISession](ret)
}
- ret := gulu.Ret.NewResult()
- ret.Data = session
- c.JSON(http.StatusOK, ret)
+ payload, err := aiSessionContract(session)
+ if err != nil {
+ return apicontract.Failure[*apicontract.AISession](-1, err.Error())
+ }
+ return apicontract.Success(payload)
}
-type agentSessionDeleteReq struct {
- ID string `json:"id"`
-}
+var removeSession = contractHandler(apicontract.AIRemoveSession, removeSessionContract)
-func removeSession(c *gin.Context) {
- req := &agentSessionDeleteReq{}
- if err := c.ShouldBindJSON(req); err != nil {
- ret := gulu.Ret.NewResult()
- ret.Code = -1
- ret.Msg = "invalid request: " + err.Error()
- c.JSON(http.StatusOK, ret)
- return
- }
+func removeSessionContract(c *gin.Context, req apicontract.AISessionIDRequest) apicontract.Response[apicontract.Null] {
sessionsMu.Lock()
_, running := runningSessions[req.ID]
@@ -506,8 +393,7 @@ func removeSession(c *gin.Context) {
ret := gulu.Ret.NewResult()
ret.Code = -1
ret.Msg = "session is running"
- c.JSON(http.StatusConflict, ret)
- return
+ return apicontract.AIRemoveSession.WithHTTPStatus(contractFailure[apicontract.Null](ret), http.StatusConflict)
}
err := agent.DeleteSession(req.ID)
sessionsMu.Unlock()
@@ -515,31 +401,25 @@ func removeSession(c *gin.Context) {
ret := gulu.Ret.NewResult()
ret.Code = -1
ret.Msg = err.Error()
- c.JSON(http.StatusInternalServerError, ret)
- return
+ return apicontract.AIRemoveSession.WithHTTPStatus(contractFailure[apicontract.Null](ret), http.StatusInternalServerError)
}
// 通知其他实例:会话已删除,刷新列表;若为当前会话则清空视图。
broadcastAgentSessionChanged(c.GetHeader("X-SiYuan-App-ID"), req.ID, "delete")
ret := gulu.Ret.NewResult()
- c.JSON(http.StatusOK, ret)
+ return contractFailure[apicontract.Null](ret)
}
-func saveSession(c *gin.Context) {
- body, err := io.ReadAll(c.Request.Body)
- if err != nil {
- ret := gulu.Ret.NewResult()
- ret.Code = -1
- ret.Msg = "failed to read body: " + err.Error()
- c.JSON(http.StatusOK, ret)
- return
- }
+var saveSession = contractHandler(apicontract.AISaveSession, saveSessionContract)
+
+func saveSessionContract(c *gin.Context, req apicontract.AISession) apicontract.Response[apicontract.AISessionSaveData] {
+ body := req.Bytes()
+ var err error
var meta sessionMeta
if gulu.JSON.UnmarshalJSON(body, &meta) != nil || meta.ID == "" {
ret := gulu.Ret.NewResult()
ret.Code = -1
ret.Msg = "invalid session data"
- c.JSON(http.StatusBadRequest, ret)
- return
+ return apicontract.AISaveSession.WithHTTPStatus(contractFailure[apicontract.AISessionSaveData](ret), http.StatusBadRequest)
}
sessionsMu.Lock()
running := runningSessions[meta.ID]
@@ -548,8 +428,7 @@ func saveSession(c *gin.Context) {
ret := gulu.Ret.NewResult()
ret.Code = -1
ret.Msg = "session is running in another instance"
- c.JSON(http.StatusConflict, ret)
- return
+ return apicontract.AISaveSession.WithHTTPStatus(contractFailure[apicontract.AISessionSaveData](ret), http.StatusConflict)
}
commitTurnID := meta.CommitTurnID
if commitTurnID == "" {
@@ -562,8 +441,7 @@ func saveSession(c *gin.Context) {
ret := gulu.Ret.NewResult()
ret.Code = -1
ret.Msg = err.Error()
- c.JSON(http.StatusBadRequest, ret)
- return
+ return apicontract.AISaveSession.WithHTTPStatus(contractFailure[apicontract.AISessionSaveData](ret), http.StatusBadRequest)
}
payload["commitTurnID"] = running.turnID
body, err = gulu.JSON.MarshalJSON(payload)
@@ -572,8 +450,7 @@ func saveSession(c *gin.Context) {
ret := gulu.Ret.NewResult()
ret.Code = -1
ret.Msg = err.Error()
- c.JSON(http.StatusInternalServerError, ret)
- return
+ return apicontract.AISaveSession.WithHTTPStatus(contractFailure[apicontract.AISessionSaveData](ret), http.StatusInternalServerError)
}
commitTurnID = running.turnID
}
@@ -583,8 +460,7 @@ func saveSession(c *gin.Context) {
ret := gulu.Ret.NewResult()
ret.Code = -1
ret.Msg = runtimeErr.Error()
- c.JSON(http.StatusInternalServerError, ret)
- return
+ return apicontract.AISaveSession.WithHTTPStatus(contractFailure[apicontract.AISessionSaveData](ret), http.StatusInternalServerError)
}
// 旧前端没有 commitTurnID。流已真正结束后,从终止检查点补出提交标识;SaveSession 仍会
// 用 runtime 重建权威内容,因此不会信任旧前端可能不完整的流式快照。
@@ -595,8 +471,7 @@ func saveSession(c *gin.Context) {
ret := gulu.Ret.NewResult()
ret.Code = -1
ret.Msg = runtimeErr.Error()
- c.JSON(http.StatusInternalServerError, ret)
- return
+ return apicontract.AISaveSession.WithHTTPStatus(contractFailure[apicontract.AISessionSaveData](ret), http.StatusInternalServerError)
}
if recoverableTurnID != "" {
var payload map[string]any
@@ -605,8 +480,7 @@ func saveSession(c *gin.Context) {
ret := gulu.Ret.NewResult()
ret.Code = -1
ret.Msg = err.Error()
- c.JSON(http.StatusBadRequest, ret)
- return
+ return apicontract.AISaveSession.WithHTTPStatus(contractFailure[apicontract.AISessionSaveData](ret), http.StatusBadRequest)
}
payload["commitTurnID"] = recoverableTurnID
body, err = gulu.JSON.MarshalJSON(payload)
@@ -615,8 +489,7 @@ func saveSession(c *gin.Context) {
ret := gulu.Ret.NewResult()
ret.Code = -1
ret.Msg = err.Error()
- c.JSON(http.StatusInternalServerError, ret)
- return
+ return apicontract.AISaveSession.WithHTTPStatus(contractFailure[apicontract.AISessionSaveData](ret), http.StatusInternalServerError)
}
commitTurnID = recoverableTurnID
}
@@ -631,16 +504,14 @@ func saveSession(c *gin.Context) {
ret := gulu.Ret.NewResult()
ret.Code = -1
ret.Msg = runtimeErr.Error()
- c.JSON(http.StatusInternalServerError, ret)
- return
+ return apicontract.AISaveSession.WithHTTPStatus(contractFailure[apicontract.AISessionSaveData](ret), http.StatusInternalServerError)
}
if uncommitted {
sessionsMu.Unlock()
ret := gulu.Ret.NewResult()
ret.Code = -1
ret.Msg = "session has an uncommitted turn"
- c.JSON(http.StatusConflict, ret)
- return
+ return apicontract.AISaveSession.WithHTTPStatus(contractFailure[apicontract.AISessionSaveData](ret), http.StatusConflict)
}
}
@@ -659,23 +530,18 @@ func saveSession(c *gin.Context) {
ret.Code = -1
ret.Msg = err.Error()
if errors.Is(err, agent.ErrSessionConflict) || errors.Is(err, agent.ErrRuntimeNotFinalized) {
- ret.Data = map[string]int64{"revision": revision}
- c.JSON(http.StatusConflict, ret)
- return
+ return apicontract.AISaveSession.WithHTTPStatus(apicontract.AISaveSession.FailureWithData(-1, ret.Msg, apicontract.AISessionSaveData{Revision: revision}), http.StatusConflict)
}
- c.JSON(http.StatusInternalServerError, ret)
- return
+ return apicontract.AISaveSession.WithHTTPStatus(contractFailure[apicontract.AISessionSaveData](ret), http.StatusInternalServerError)
}
// 从 body 解出 sessionID 用于广播。update 仅触发其他实例刷新会话列表元数据,
// 不触发当前视图重绘(重绘由 streamEnd 负责),回避流式中途半截数据的时序问题。
broadcastAgentSessionChanged(c.GetHeader("X-SiYuan-App-ID"), meta.ID, "update")
- ret := gulu.Ret.NewResult()
- data := map[string]any{"revision": revision}
- if canonicalSession != nil {
- data["session"] = canonicalSession
+ payload, err := aiSessionContract(canonicalSession)
+ if err != nil {
+ return apicontract.AISaveSession.WithHTTPStatus(apicontract.Failure[apicontract.AISessionSaveData](-1, err.Error()), http.StatusInternalServerError)
}
- ret.Data = data
- c.JSON(http.StatusOK, ret)
+ return apicontract.Success(apicontract.AISessionSaveData{Revision: revision, Session: payload})
}
// broadcastAgentSessionChanged 向除发起者 app 外、所有打开了 agentChat dock 的实例推送会话变更通知。
@@ -697,86 +563,97 @@ type sessionMeta struct {
}
func writeSSE(c *gin.Context, event agent.AgentEvent) error {
+ var arguments map[string]apicontract.JSONValue
+ switch event.Type {
+ case "confirm", "tool_call", "question", "browser_capability_call":
+ encoded, err := json.Marshal(event.Arguments)
+ if err != nil {
+ return err
+ }
+ if err = json.Unmarshal(encoded, &arguments); err != nil {
+ return err
+ }
+ }
switch event.Type {
case "turn":
- return writeSSEEvent(c, "turn", map[string]string{"turnID": event.TurnID})
+ return writeSSEEvent(c, "turn", apicontract.AISSETurn{TurnID: event.TurnID})
case "content":
- return writeSSEEvent(c, "content", map[string]string{"token": event.Token})
+ return writeSSEEvent(c, "content", apicontract.AISSEToken{Token: event.Token})
case "thinking":
- return writeSSEEvent(c, "thinking", map[string]string{
- "reasoning": event.Reasoning,
- "roundID": event.RoundID,
+ return writeSSEEvent(c, "thinking", apicontract.AISSEThinking{
+ Reasoning: event.Reasoning,
+ RoundID: event.RoundID,
})
case "reasoning":
- return writeSSEEvent(c, "reasoning", map[string]string{"token": event.Token})
+ return writeSSEEvent(c, "reasoning", apicontract.AISSEToken{Token: event.Token})
case "confirm":
- return writeSSEEvent(c, "confirm", map[string]any{
- "name": event.Name,
- "arguments": event.Arguments,
- "confirmID": event.ConfirmID,
- "effects": event.Effects,
- "forced": event.ForcedConfirm,
+ return writeSSEEvent(c, "confirm", apicontract.AISSEConfirm{
+ Name: event.Name,
+ Arguments: arguments,
+ ConfirmID: event.ConfirmID,
+ Effects: apicontract.AIToolEffects(event.Effects),
+ Forced: event.ForcedConfirm,
})
case agent.AgentEventPermission:
- return writeSSEEvent(c, agent.AgentEventPermission, map[string]string{
- "permissionMode": event.PermissionMode,
+ return writeSSEEvent(c, agent.AgentEventPermission, apicontract.AIPermissionData{
+ PermissionMode: event.PermissionMode,
})
case "tool_call":
- return writeSSEEvent(c, "tool_call", map[string]any{
- "name": event.Name,
- "callID": event.ToolCallID,
- "roundID": event.RoundID,
- "arguments": event.Arguments,
+ return writeSSEEvent(c, "tool_call", apicontract.AISSEToolCall{
+ Name: event.Name,
+ CallID: event.ToolCallID,
+ RoundID: event.RoundID,
+ Arguments: arguments,
})
case "tool_result":
- return writeSSEEvent(c, "tool_result", map[string]string{
- "name": event.Name,
- "callID": event.ToolCallID,
- "roundID": event.RoundID,
- "result": event.Result,
+ return writeSSEEvent(c, "tool_result", apicontract.AISSEToolResult{
+ Name: event.Name,
+ CallID: event.ToolCallID,
+ RoundID: event.RoundID,
+ Result: event.Result,
})
case "error":
- return writeSSEEvent(c, "error", map[string]string{"message": event.Error})
+ return writeSSEEvent(c, "error", apicontract.AISSEMessage{Message: event.Error})
case "usage":
- return writeSSEEvent(c, "usage", map[string]any{
- "promptTokens": event.PromptTokens,
- "completionTokens": event.CompletionTokens,
- "lastPromptTokens": event.LastPromptTokens,
- "tokenBreakdown": event.TokenBreakdown,
- "cachedTokens": event.CachedTokens,
- "contextLimit": event.ContextLimit,
+ return writeSSEEvent(c, "usage", apicontract.AISSEUsage{
+ PromptTokens: event.PromptTokens,
+ CompletionTokens: event.CompletionTokens,
+ LastPromptTokens: event.LastPromptTokens,
+ TokenBreakdown: event.TokenBreakdown,
+ CachedTokens: event.CachedTokens,
+ ContextLimit: event.ContextLimit,
})
case "done":
- return writeSSEEvent(c, "done", map[string]string{"turnID": event.TurnID})
+ return writeSSEEvent(c, "done", apicontract.AISSETurn{TurnID: event.TurnID})
case "retry":
- return writeSSEEvent(c, "retry", map[string]any{
- "attempt": event.RetryAttempt,
- "maxRetries": event.RetryMax,
+ return writeSSEEvent(c, "retry", apicontract.AISSERetry{
+ Attempt: event.RetryAttempt,
+ MaxRetries: event.RetryMax,
})
case "question":
- return writeSSEEvent(c, "question", map[string]any{
- "questionID": event.QuestionID,
- "roundID": event.RoundID,
- "arguments": event.Arguments,
+ return writeSSEEvent(c, "question", apicontract.AISSEQuestion{
+ QuestionID: event.QuestionID,
+ RoundID: event.RoundID,
+ Arguments: arguments,
})
case "browser_capability_call":
- return writeSSEEvent(c, "browser_capability_call", map[string]any{
- "callID": event.CallID,
- "name": event.Name,
- "capabilityID": event.CapabilityID,
- "generation": event.Generation,
- "arguments": event.Arguments,
+ return writeSSEEvent(c, "browser_capability_call", apicontract.AISSEBrowserCapabilityCall{
+ CallID: event.CallID,
+ Name: event.Name,
+ CapabilityID: event.CapabilityID,
+ Generation: event.Generation,
+ Arguments: arguments,
})
case "snapshot":
- return writeSSEEvent(c, "snapshot", map[string]string{
- "snapshotID": event.SnapshotID,
- "roundID": event.RoundID,
+ return writeSSEEvent(c, "snapshot", apicontract.AISSESnapshot{
+ SnapshotID: event.SnapshotID,
+ RoundID: event.RoundID,
})
}
return nil
}
-func writeSSEEvent(c *gin.Context, eventType string, data any) error {
+func writeSSEEvent[Payload any](c *gin.Context, eventType string, data Payload) error {
b, err := json.Marshal(data)
if err != nil {
return err
@@ -786,118 +663,76 @@ func writeSSEEvent(c *gin.Context, eventType string, data any) error {
}
func writeSSEError(c *gin.Context, message string) error {
- return writeSSEEvent(c, "error", map[string]string{"message": message})
+ return writeSSEEvent(c, "error", apicontract.AISSEMessage{Message: message})
}
func writeSSEInterrupted(c *gin.Context, message string) error {
- return writeSSEEvent(c, "interrupted", map[string]string{"message": message})
+ return writeSSEEvent(c, "interrupted", apicontract.AISSEMessage{Message: message})
}
-func lsSkills(c *gin.Context) {
- ret := gulu.Ret.NewResult()
- defer c.JSON(http.StatusOK, ret)
+var lsSkills = contractHandler(apicontract.AIListSkills, lsSkillsContract)
+
+func lsSkillsContract(c *gin.Context, req apicontract.EmptyRequest) apicontract.Response[[]apicontract.AISkillInfo] {
skills := util.DiscoverSkills(model.EnabledUserSkills())
- ret.Data = skills
+ return apicontract.Success(aiSkillsContract(skills))
}
-func lsUserSkills(c *gin.Context) {
- ret := gulu.Ret.NewResult()
- defer c.JSON(http.StatusOK, ret)
- ret.Data = util.DiscoverUserSkills(model.EnabledUserSkills())
-}
+var lsUserSkills = contractHandler(apicontract.AIListUserSkills, lsUserSkillsContract)
-type skillGetReq struct {
- Name string `json:"name"`
+func lsUserSkillsContract(c *gin.Context, req apicontract.EmptyRequest) apicontract.Response[[]apicontract.AIUserSkillInfo] {
+ return apicontract.Success(aiUserSkillsContract(util.DiscoverUserSkills(model.EnabledUserSkills())))
}
-func getSkill(c *gin.Context) {
- ret := gulu.Ret.NewResult()
- defer c.JSON(http.StatusOK, ret)
+var getSkill = contractHandler(apicontract.AIGetSkill, getSkillContract)
- req := &skillGetReq{}
- if err := c.ShouldBindJSON(req); err != nil {
- ret.Code = -1
- ret.Msg = "invalid request: " + err.Error()
- return
- }
+func getSkillContract(c *gin.Context, req apicontract.AISkillNameRequest) apicontract.Response[apicontract.AISkillData] {
+ ret := gulu.Ret.NewResult()
content, err := util.ReadSkill(req.Name, model.EnabledUserSkills())
if err != nil {
ret.Code = -1
ret.Msg = err.Error()
- return
+ return contractFailure[apicontract.AISkillData](ret)
}
- ret.Data = map[string]string{
- "name": req.Name,
- "content": content,
- }
+ return apicontract.Success(apicontract.AISkillData{Name: req.Name, Content: content})
}
-type skillSaveReq struct {
- Name string `json:"name"`
- Content string `json:"content"`
-}
+var saveSkill = contractHandler(apicontract.AISaveSkill, saveSkillContract)
-func saveSkill(c *gin.Context) {
+func saveSkillContract(c *gin.Context, req apicontract.AISkillSaveRequest) apicontract.Response[apicontract.Null] {
ret := gulu.Ret.NewResult()
- defer c.JSON(http.StatusOK, ret)
-
- req := &skillSaveReq{}
- if err := c.ShouldBindJSON(req); err != nil {
- ret.Code = -1
- ret.Msg = "invalid request: " + err.Error()
- return
- }
if err := util.SaveSkill(req.Name, req.Content); err != nil {
ret.Code = -1
ret.Msg = err.Error()
- return
+ return contractFailure[apicontract.Null](ret)
}
+ return contractFailure[apicontract.Null](ret)
}
-type skillRemoveReq struct {
- Name string `json:"name"`
-}
+var removeSkill = contractHandler(apicontract.AIRemoveSkill, removeSkillContract)
-func removeSkill(c *gin.Context) {
+func removeSkillContract(c *gin.Context, req apicontract.AISkillNameRequest) apicontract.Response[apicontract.Null] {
ret := gulu.Ret.NewResult()
- defer c.JSON(http.StatusOK, ret)
-
- req := &skillRemoveReq{}
- if err := c.ShouldBindJSON(req); err != nil {
- ret.Code = -1
- ret.Msg = "invalid request: " + err.Error()
- return
- }
if err := util.RemoveSkill(req.Name); err != nil {
ret.Code = -1
ret.Msg = err.Error()
- return
+ return contractFailure[apicontract.Null](ret)
}
+ return contractFailure[apicontract.Null](ret)
}
-type skillRenameReq struct {
- OldName string `json:"oldName"`
- NewName string `json:"newName"`
-}
+var renameSkill = contractHandler(apicontract.AIRenameSkill, renameSkillContract)
-func renameSkill(c *gin.Context) {
+func renameSkillContract(c *gin.Context, req apicontract.AISkillRenameRequest) apicontract.Response[apicontract.Null] {
ret := gulu.Ret.NewResult()
- defer c.JSON(http.StatusOK, ret)
-
- req := &skillRenameReq{}
- if err := c.ShouldBindJSON(req); err != nil {
- ret.Code = -1
- ret.Msg = "invalid request: " + err.Error()
- return
- }
if err := util.RenameSkill(req.OldName, req.NewName); err != nil {
ret.Code = -1
ret.Msg = err.Error()
- return
+ return contractFailure[apicontract.Null](ret)
}
+ return contractFailure[apicontract.Null](ret)
}
diff --git a/kernel/api/ai.go b/kernel/api/ai.go
index f88da8ad67..2555985feb 100644
--- a/kernel/api/ai.go
+++ b/kernel/api/ai.go
@@ -24,6 +24,7 @@ import (
"github.com/88250/gulu"
"github.com/gin-gonic/gin"
"github.com/siyuan-note/logging"
+ "github.com/siyuan-note/siyuan/kernel/apicontract"
"github.com/siyuan-note/siyuan/kernel/conf"
mcpclient "github.com/siyuan-note/siyuan/kernel/mcp/client"
"github.com/siyuan-note/siyuan/kernel/model"
@@ -51,8 +52,11 @@ func validateAIProviderHeaders(ai *conf.AI) error {
return nil
}
-func resolveAIProvider(arg map[string]any) (*conf.Provider, error) {
- if providerConfig, ok := arg["providerConfig"]; ok && providerConfig != nil {
+func resolveAIProvider(request apicontract.AIProviderRequest) (*conf.Provider, error) {
+ if err := request.ProviderError(); err != nil {
+ return nil, err
+ }
+ if providerConfig := request.ProviderConfig; providerConfig != nil {
data, err := gulu.JSON.MarshalJSON(providerConfig)
if err != nil {
return nil, err
@@ -75,7 +79,7 @@ func resolveAIProvider(arg map[string]any) (*conf.Provider, error) {
return ai.Providers[0], nil
}
- providerID, _ := arg["provider"].(string)
+ providerID := request.Provider
for _, provider := range model.Conf.AI.Providers {
if provider != nil && provider.ID == providerID {
return provider, nil
@@ -84,281 +88,210 @@ func resolveAIProvider(arg map[string]any) (*conf.Provider, error) {
return nil, errors.New("provider not found")
}
-func chatGPT(c *gin.Context) {
- ret := gulu.Ret.NewResult()
- defer c.JSON(http.StatusOK, ret)
+var chatGPT = contractHandler(apicontract.AIChatGPT, chatGPTContract)
- arg, ok := util.JsonArg(c, ret)
- if !ok {
- return
- }
+func chatGPTContract(c *gin.Context, req apicontract.AIMessageRequest) apicontract.Response[string] {
- var msg string
- if !util.ParseJsonArgs(arg, ret, util.BindJsonArg("msg", &msg, true, true)) {
- return
- }
- ret.Data = model.ChatGPT(msg)
+ return apicontract.Success(model.ChatGPT(req.Msg))
}
-func chatGPTWithAction(c *gin.Context) {
- ret := gulu.Ret.NewResult()
- defer c.JSON(http.StatusOK, ret)
+var chatGPTWithAction = contractHandler(apicontract.AIChatGPTWithAction, chatGPTWithActionContract)
- arg, ok := util.JsonArg(c, ret)
- if !ok {
- return
- }
+func chatGPTWithActionContract(c *gin.Context, req apicontract.AIActionRequest) apicontract.Response[string] {
- idsArg := arg["ids"].([]any)
- var ids []string
- for _, id := range idsArg {
- ids = append(ids, id.(string))
- }
- action := arg["action"].(string)
- ret.Data = model.ChatGPTWithAction(ids, action)
+ return apicontract.Success(model.ChatGPTWithAction(req.IDs, req.Action))
}
-func aiEditorChat(c *gin.Context) {
- if !model.Conf.AI.HasAnyProvider() {
- ret := gulu.Ret.NewResult()
- ret.Code = -1
- ret.Msg = model.Conf.Language(193)
- c.JSON(http.StatusOK, ret)
- return
- }
+var aiEditorChat = contractHandler(apicontract.AIEditorChat, aiEditorChatContract, aiProviderAdmission)
- req := &aiEditorChatReq{}
- if err := c.ShouldBindJSON(req); nil != err {
- ret := gulu.Ret.NewResult()
- ret.Code = -1
- ret.Msg = "invalid request: " + err.Error()
- c.JSON(http.StatusOK, ret)
- return
- }
+func aiEditorChatContract(c *gin.Context, request apicontract.AIEditorChatRequest) apicontract.Response[apicontract.Null] {
+ req := aiEditorRequest(request)
stream, err := model.NewAIEditorChatStream(c.Request.Context(), req.IDs, req.Input, req.Action, req.History)
if nil != err {
ret := gulu.Ret.NewResult()
ret.Code = -1
ret.Msg = err.Error()
- c.JSON(http.StatusOK, ret)
- return
+ return contractFailure[apicontract.Null](ret)
}
- defer stream.Close()
+ return apicontract.StreamSSE[apicontract.Null](func(_ http.ResponseWriter, _ *http.Request) {
+ defer stream.Close()
- flusher, ok := c.Writer.(http.Flusher)
- if !ok {
- return
- }
- c.Header("Content-Type", "text/event-stream")
- c.Header("Cache-Control", "no-cache")
- c.Header("Connection", "keep-alive")
- c.Header("X-Accel-Buffering", "no")
- if err = writeSSEEvent(c, "start", map[string]string{"taskID": req.TaskID}); nil != err {
- return
- }
- flusher.Flush()
-
- finishReason := "stop"
- for {
- response, recvErr := stream.Recv()
- if nil != recvErr {
- if model.IsAIEditorStreamDone(recvErr) {
- writeSSEEvent(c, "done", map[string]string{"finishReason": finishReason})
- flusher.Flush()
- return
- }
- if nil != c.Request.Context().Err() {
- return
- }
- logging.LogErrorf("receive AI editor stream failed: %s", recvErr)
- writeSSEError(c, recvErr.Error())
- flusher.Flush()
+ flusher, ok := c.Writer.(http.Flusher)
+ if !ok {
return
}
- for _, choice := range response.Choices {
- if "" != choice.Delta.ReasoningContent {
- if err = writeSSEEvent(c, "reasoning", map[string]string{"token": choice.Delta.ReasoningContent}); nil != err {
+ c.Header("Content-Type", "text/event-stream")
+ c.Header("Cache-Control", "no-cache")
+ c.Header("Connection", "keep-alive")
+ c.Header("X-Accel-Buffering", "no")
+ if err = writeSSEEvent(c, "start", apicontract.AISSEStart{TaskID: req.TaskID}); nil != err {
+ return
+ }
+ flusher.Flush()
+
+ finishReason := "stop"
+ for {
+ response, recvErr := stream.Recv()
+ if nil != recvErr {
+ if model.IsAIEditorStreamDone(recvErr) {
+ writeSSEEvent(c, "done", apicontract.AISSEFinish{FinishReason: finishReason})
+ flusher.Flush()
return
}
- flusher.Flush()
- }
- if "" != choice.Delta.Content {
- if err = writeSSEEvent(c, "content", map[string]string{"token": choice.Delta.Content}); nil != err {
+ if nil != c.Request.Context().Err() {
return
}
+ logging.LogErrorf("receive AI editor stream failed: %s", recvErr)
+ writeSSEError(c, recvErr.Error())
flusher.Flush()
+ return
}
- if "" == choice.FinishReason {
- continue
- }
- finishReason = string(choice.FinishReason)
- if "length" == finishReason {
- writeSSEEvent(c, "truncated", map[string]string{"message": model.Conf.Language(297)})
+ for _, choice := range response.Choices {
+ if "" != choice.Delta.ReasoningContent {
+ if err = writeSSEEvent(c, "reasoning", apicontract.AISSEToken{Token: choice.Delta.ReasoningContent}); nil != err {
+ return
+ }
+ flusher.Flush()
+ }
+ if "" != choice.Delta.Content {
+ if err = writeSSEEvent(c, "content", apicontract.AISSEToken{Token: choice.Delta.Content}); nil != err {
+ return
+ }
+ flusher.Flush()
+ }
+ if "" == choice.FinishReason {
+ continue
+ }
+ finishReason = string(choice.FinishReason)
+ if "length" == finishReason {
+ writeSSEEvent(c, "truncated", apicontract.AISSEMessage{Message: model.Conf.Language(297)})
+ flusher.Flush()
+ }
+ writeSSEEvent(c, "done", apicontract.AISSEFinish{FinishReason: finishReason})
flusher.Flush()
+ return
}
- writeSSEEvent(c, "done", map[string]string{"finishReason": finishReason})
- flusher.Flush()
- return
}
- }
+ })
}
-func lsAIEditorActions(c *gin.Context) {
+var lsAIEditorActions = contractHandler(apicontract.AIListEditorActions, lsAIEditorActionsContract)
+
+func lsAIEditorActionsContract(c *gin.Context, req apicontract.EmptyRequest) apicontract.Response[[]*apicontract.AIEditorAction] {
ret := gulu.Ret.NewResult()
- defer c.JSON(http.StatusOK, ret)
actions, err := model.GetAIEditorActions()
if err != nil {
ret.Code = -1
ret.Msg = err.Error()
- return
+ return contractFailure[[]*apicontract.AIEditorAction](ret)
}
- ret.Data = actions
+ return apicontract.Success(aiEditorActionsContract(actions))
}
-func saveAIEditorAction(c *gin.Context) {
- ret := gulu.Ret.NewResult()
- defer c.JSON(http.StatusOK, ret)
-
- arg, ok := util.JsonArg(c, ret)
- if !ok {
- return
- }
+var saveAIEditorAction = contractHandler(apicontract.AISaveEditorAction, saveAIEditorActionContract)
- var id, name, action string
- if !util.ParseJsonArgs(arg, ret,
- util.BindJsonArg("id", &id, false, false),
- util.BindJsonArg("name", &name, true, false),
- util.BindJsonArg("action", &action, true, false),
- ) {
- return
- }
+func saveAIEditorActionContract(c *gin.Context, req apicontract.AIEditorActionSaveRequest) apicontract.Response[*apicontract.AIEditorAction] {
+ ret := gulu.Ret.NewResult()
saved, err := model.SaveAIEditorAction(&model.AIEditorAction{
- ID: id,
- Name: name,
- Action: action,
+ ID: req.ID,
+ Name: req.Name,
+ Action: req.Action,
})
if err != nil {
ret.Code = -1
ret.Msg = err.Error()
- return
+ return contractFailure[*apicontract.AIEditorAction](ret)
}
- ret.Data = saved
+ return apicontract.Success((*apicontract.AIEditorAction)(saved))
}
-func removeAIEditorAction(c *gin.Context) {
- ret := gulu.Ret.NewResult()
- defer c.JSON(http.StatusOK, ret)
+var removeAIEditorAction = contractHandler(apicontract.AIRemoveEditorAction, removeAIEditorActionContract)
- arg, ok := util.JsonArg(c, ret)
- if !ok {
- return
- }
+func removeAIEditorActionContract(c *gin.Context, req apicontract.AIEditorActionIDRequest) apicontract.Response[apicontract.Null] {
+ ret := gulu.Ret.NewResult()
- var id string
- if !util.ParseJsonArgs(arg, ret, util.BindJsonArg("id", &id, true, true)) {
- return
- }
- if err := model.RemoveAIEditorAction(id); err != nil {
+ if err := model.RemoveAIEditorAction(req.ID); err != nil {
ret.Code = -1
ret.Msg = err.Error()
}
+ return contractFailure[apicontract.Null](ret)
}
// testModel 测试 AI 模型可用性。使用已保存的 Provider 或详情页草稿中的 baseURL/APIKey/超时,
// 校验指定模型是否可用。先通过 ListModels 拉取可用模型清单,再按 Provider 协议发送极简生成请求。
-func testModel(c *gin.Context) {
- ret := gulu.Ret.NewResult()
- defer c.JSON(http.StatusOK, ret)
-
- arg, ok := util.JsonArg(c, ret)
- if !ok {
- return
- }
+var testModel = contractHandler(apicontract.AITestModel, testModelContract)
- var modelName string
- if !util.ParseJsonArgs(arg, ret,
- util.BindJsonArg("model", &modelName, true, true),
- ) {
- return
- }
+func testModelContract(c *gin.Context, req apicontract.AIModelRequest) apicontract.Response[apicontract.AIModelTestData] {
+ ret := gulu.Ret.NewResult()
// 支持已保存的 Provider ID 和详情页尚未保存的草稿配置。
- provider, err := resolveAIProvider(arg)
+ provider, err := resolveAIProvider(req.AIProviderRequest)
if err != nil {
ret.Code = -1
ret.Msg = err.Error()
- return
+ return contractFailure[apicontract.AIModelTestData](ret)
}
available, matched, err := util.TestModel(
- provider.APIKey, provider.BaseURL, provider.Protocol, modelName, provider.RequestTimeout, model.ResolveAIProviderHeaders(provider))
+ provider.APIKey, provider.BaseURL, provider.Protocol, req.Model, provider.RequestTimeout, model.ResolveAIProviderHeaders(provider))
// 可用模型清单裁剪到前 50 条,避免响应体过大
if 50 < len(available) {
available = available[:50]
}
// 测试结果统一以 code=0 返回,具体成败信息放在 data 中由前端控制展示,
// 避免触发统一的错误消息提示导致按钮状态无法恢复
- result := map[string]any{
- "available": available,
- "matched": matched,
- }
+ result := apicontract.AIModelTestData{Available: available, Matched: matched}
if nil != err {
- result["msg"] = err.Error()
- logging.LogErrorf("test model [%s] failed: %s", modelName, err)
+ message := err.Error()
+ result.Msg = &message
+ logging.LogErrorf("test model [%s] failed: %s", req.Model, err)
} else if !matched {
- result["msg"] = "model not in available list"
+ message := "model not in available list"
+ result.Msg = &message
}
- ret.Data = result
+ return apicontract.Success(result)
}
// testEmbeddingModel 测试嵌入模型可用性。直接读取已保存的 Embedding 配置,
// 发送极简文本 embedding 请求验证连通性与鉴权,并返回向量维度便于核对。
-func testEmbeddingModel(c *gin.Context) {
- ret := gulu.Ret.NewResult()
- defer c.JSON(http.StatusOK, ret)
+var testEmbeddingModel = contractHandler(apicontract.AITestEmbeddingModel, testEmbeddingModelContract)
+
+func testEmbeddingModelContract(c *gin.Context, req apicontract.EmptyRequest) apicontract.Response[apicontract.AIEmbeddingTestData] {
embedding := model.Conf.AI.Embedding
if nil == embedding || "" == embedding.APIKey || "" == embedding.BaseURL || "" == embedding.Name {
// 配置不完整时统一以 code=0 返回,把信息放在 data 中由前端控制展示,
// 避免返回 code=-1 触发统一错误提示且令前端按钮无法恢复
- ret.Data = map[string]any{
- "matched": false,
- "msg": "embedding model not configured",
- }
- return
+ message := "embedding model not configured"
+ return apicontract.Success(apicontract.AIEmbeddingTestData{Matched: false, Msg: &message})
}
matched, dims, err := util.TestEmbeddingModel(embedding.APIKey, embedding.BaseURL, embedding.Name, embedding.Dimensions, embedding.Timeout)
// 测试结果统一以 code=0 返回,具体成败信息放在 data 中由前端控制展示,
// 避免触发统一的错误消息提示导致按钮状态无法恢复
- result := map[string]any{
- "matched": matched,
- "dimensions": dims,
- }
+ result := apicontract.AIEmbeddingTestData{Matched: matched, Dimensions: &dims}
if nil != err {
- result["msg"] = err.Error()
+ message := err.Error()
+ result.Msg = &message
logging.LogErrorf("test embedding model [%s] failed: %s", embedding.Name, err)
}
- ret.Data = result
+ return apicontract.Success(result)
}
// testRerankModel 测试重排模型可用性。直接读取已保存的 Rerank 配置,
// 用极简 query+documents 发一次重排请求验证连通性与鉴权。
-func testRerankModel(c *gin.Context) {
- ret := gulu.Ret.NewResult()
- defer c.JSON(http.StatusOK, ret)
+var testRerankModel = contractHandler(apicontract.AITestRerankModel, testRerankModelContract)
+
+func testRerankModelContract(c *gin.Context, req apicontract.EmptyRequest) apicontract.Response[apicontract.AIRerankTestData] {
rerank := model.Conf.AI.Rerank
if nil == rerank || "" == rerank.APIKey || "" == rerank.Endpoint || "" == rerank.Name {
// 配置不完整时统一以 code=0 返回,把信息放在 data 中由前端控制展示,
// 避免返回 code=-1 触发统一错误提示且令前端按钮无法恢复
- ret.Data = map[string]any{
- "matched": false,
- "msg": "rerank model not configured",
- }
- return
+ message := "rerank model not configured"
+ return apicontract.Success(apicontract.AIRerankTestData{Matched: false, Msg: &message})
}
matched, err := util.TestRerankModel(util.RerankOptions{
@@ -369,32 +302,27 @@ func testRerankModel(c *gin.Context) {
Timeout: rerank.Timeout,
})
// 测试结果统一以 code=0 返回,具体成败信息放在 data 中由前端控制展示
- result := map[string]any{
- "matched": matched,
- }
+ result := apicontract.AIRerankTestData{Matched: matched}
if nil != err {
- result["msg"] = err.Error()
+ message := err.Error()
+ result.Msg = &message
logging.LogErrorf("test rerank model [%s] failed: %s", rerank.Name, err)
}
- ret.Data = result
+ return apicontract.Success(result)
}
// listModels 拉取指定 Provider 的可用模型清单(GET /v1/models),用于填充前端模型名称下拉框。
// 不支持该端点的服务会返回错误,由前端回退为手动输入。
-func listModels(c *gin.Context) {
- ret := gulu.Ret.NewResult()
- defer c.JSON(http.StatusOK, ret)
+var listModels = contractHandler(apicontract.AIListModels, listModelsContract)
- arg, ok := util.JsonArg(c, ret)
- if !ok {
- return
- }
+func listModelsContract(c *gin.Context, req apicontract.AIProviderRequest) apicontract.Response[apicontract.AIModelsData] {
+ ret := gulu.Ret.NewResult()
- provider, err := resolveAIProvider(arg)
+ provider, err := resolveAIProvider(req)
if err != nil {
ret.Code = -1
ret.Msg = err.Error()
- return
+ return contractFailure[apicontract.AIModelsData](ret)
}
metadata, err := util.ListAvailableModelsWithContext(provider.APIKey, provider.BaseURL, provider.RequestTimeout, model.ResolveAIProviderHeaders(provider))
@@ -408,74 +336,64 @@ func listModels(c *gin.Context) {
}
}
}
- result := map[string]any{
- "models": models,
- "contextLengths": contextLengths,
- }
+ result := apicontract.AIModelsData{Models: models, ContextLengths: contextLengths}
if nil != err {
- result["msg"] = err.Error()
+ message := err.Error()
+ result.Msg = &message
}
- ret.Data = result
+ return apicontract.Success(result)
}
// embeddingStat 返回嵌入索引进度统计,供设置页展示进度条与各项计数。
-func embeddingStat(c *gin.Context) {
- ret := gulu.Ret.NewResult()
- defer c.JSON(http.StatusOK, ret)
- ret.Data = model.GetEmbeddingStat()
+var embeddingStat = contractHandler(apicontract.AIGetEmbeddingStat, embeddingStatContract)
+
+func embeddingStatContract(c *gin.Context, req apicontract.EmptyRequest) apicontract.Response[*apicontract.AIEmbeddingStat] {
+ return apicontract.Success((*apicontract.AIEmbeddingStat)(model.GetEmbeddingStat()))
}
// mcpStatus 返回所有已配置 MCP server 的连接状态,供设置页轮询展示。
-func mcpStatus(c *gin.Context) {
- ret := gulu.Ret.NewResult()
- defer c.JSON(http.StatusOK, ret)
- ret.Data = mcpclient.MCPStatus()
+var mcpStatus = contractHandler(apicontract.AIGetMCPStatus, mcpStatusContract)
+
+func mcpStatusContract(c *gin.Context, req apicontract.EmptyRequest) apicontract.Response[[]apicontract.AIMCPStatus] {
+ return apicontract.Success(aiMCPStatusContract(mcpclient.MCPStatus()))
}
// mcpEnvironmentVariables 返回当前内核拥有的环境变量名称,供 stdio MCP 设置选择。
-func mcpEnvironmentVariables(c *gin.Context) {
- ret := gulu.Ret.NewResult()
- defer c.JSON(http.StatusOK, ret)
+var mcpEnvironmentVariables = contractHandler(apicontract.AIGetMCPEnvironment, mcpEnvironmentVariablesContract)
+
+func mcpEnvironmentVariablesContract(c *gin.Context, req apicontract.EmptyRequest) apicontract.Response[apicontract.AIMCPEnvironmentData] {
names, defaults := mcpclient.MCPEnvironmentVariables()
- ret.Data = map[string]any{
- "names": names,
- "defaults": defaults,
- }
+ return apicontract.Success(apicontract.AIMCPEnvironmentData{Names: names, Defaults: defaults})
}
-func mcpOAuthAuthorize(c *gin.Context) {
+var mcpOAuthAuthorize = contractHandler(apicontract.AIMCPOAuthAuthorize, mcpOAuthAuthorizeContract)
+
+func mcpOAuthAuthorizeContract(c *gin.Context, req apicontract.AIMCPIDRequest) apicontract.Response[apicontract.Null] {
ret := gulu.Ret.NewResult()
- defer c.JSON(http.StatusOK, ret)
- arg, ok := util.JsonArg(c, ret)
- if !ok {
- return
- }
- serverID, _ := arg["id"].(string)
+ serverID := req.ID
if model.Conf.AI == nil || model.Conf.AI.MCP == nil {
ret.Code = -1
ret.Msg = "MCP server not found"
- return
+ return contractFailure[apicontract.Null](ret)
}
for _, server := range model.Conf.AI.MCP.Servers {
if server.ID == serverID && server.Enabled && server.Type == "http" {
mcpclient.ReconnectMCPAsync(model.Conf.AI.MCP.Servers, []string{serverID}, []string{serverID})
- return
+ return contractFailure[apicontract.Null](ret)
}
}
ret.Code = -1
ret.Msg = "MCP server not found"
+ return contractFailure[apicontract.Null](ret)
}
-func mcpOAuthDisconnect(c *gin.Context) {
+var mcpOAuthDisconnect = contractHandler(apicontract.AIMCPOAuthDisconnect, mcpOAuthDisconnectContract)
+
+func mcpOAuthDisconnectContract(c *gin.Context, req apicontract.AIMCPIDRequest) apicontract.Response[apicontract.Null] {
ret := gulu.Ret.NewResult()
- defer c.JSON(http.StatusOK, ret)
- arg, ok := util.JsonArg(c, ret)
- if !ok {
- return
- }
- serverID, _ := arg["id"].(string)
+ serverID := req.ID
if err := mcpclient.DisconnectMCPOAuth(serverID); err != nil {
ret.Code = -1
ret.Msg = err.Error()
@@ -483,41 +401,45 @@ func mcpOAuthDisconnect(c *gin.Context) {
if model.Conf.AI != nil && model.Conf.AI.MCP != nil {
mcpclient.ReconnectMCPAsync(model.Conf.AI.MCP.Servers, []string{serverID}, nil)
}
+ return contractFailure[apicontract.Null](ret)
}
-func mcpOAuthCallback(c *gin.Context) {
+var mcpOAuthCallback = contractHandler(apicontract.AIMCPOAuthCallback, mcpOAuthCallbackContract)
+
+func mcpOAuthCallbackContract(c *gin.Context, request apicontract.EmptyRequest) apicontract.Response[apicontract.BinaryContent] {
if !model.IsLocalRequest(c) {
- c.String(http.StatusForbidden, "Forbidden")
- return
+ return apicontract.SuccessHTTPContent(http.StatusForbidden, "text/plain; charset=utf-8", []byte("Forbidden"))
}
c.Header("Cache-Control", "no-store")
c.Header("Referrer-Policy", "no-referrer")
c.Header("Content-Security-Policy", "default-src 'none'; style-src 'unsafe-inline'; base-uri 'none'; frame-ancestors 'none'")
callbackError := c.Query("error")
if err := mcpclient.CompleteMCPOAuth(c.Param("flowID"), c.Query("code"), c.Query("state"), callbackError, c.Query("iss")); err != nil {
- c.Data(http.StatusBadRequest, "text/html; charset=utf-8", util.RenderOAuthCallbackPage(
+ return apicontract.SuccessHTTPContent(http.StatusBadRequest, "text/html; charset=utf-8", util.RenderOAuthCallbackPage(
util.LangToBCP47(model.Conf.Lang), model.Conf.Language(327), model.Conf.Language(328), false))
- return
}
if callbackError != "" {
- c.Data(http.StatusOK, "text/html; charset=utf-8", util.RenderOAuthCallbackPage(
+ return apicontract.SuccessHTTPContent(http.StatusOK, "text/html; charset=utf-8", util.RenderOAuthCallbackPage(
util.LangToBCP47(model.Conf.Lang), model.Conf.Language(327), model.Conf.Language(328), false))
- return
}
- c.Data(http.StatusOK, "text/html; charset=utf-8", util.RenderOAuthCallbackPage(
+ return apicontract.SuccessHTTPContent(http.StatusOK, "text/html; charset=utf-8", util.RenderOAuthCallbackPage(
util.LangToBCP47(model.Conf.Lang), model.Conf.Language(325), model.Conf.Language(326), true))
}
// reindexEmbedding 清空嵌入向量表并触发后台索引器重新计算所有块,异步执行。
-func reindexEmbedding(c *gin.Context) {
+var reindexEmbedding = contractHandler(apicontract.AIReindexEmbedding, reindexEmbeddingContract)
+
+func reindexEmbeddingContract(c *gin.Context, req apicontract.EmptyRequest) apicontract.Response[apicontract.Null] {
ret := gulu.Ret.NewResult()
- defer c.JSON(http.StatusOK, ret)
model.ReindexEmbedding()
+ return contractFailure[apicontract.Null](ret)
}
// retryFailedEmbedding 删除失败块的行,使其立即回到主循环重嵌,已成功向量不动,异步执行。
-func retryFailedEmbedding(c *gin.Context) {
+var retryFailedEmbedding = contractHandler(apicontract.AIRetryFailedEmbedding, retryFailedEmbeddingContract)
+
+func retryFailedEmbeddingContract(c *gin.Context, req apicontract.EmptyRequest) apicontract.Response[apicontract.Null] {
ret := gulu.Ret.NewResult()
- defer c.JSON(http.StatusOK, ret)
model.RetryFailedEmbedding()
+ return contractFailure[apicontract.Null](ret)
}
diff --git a/kernel/api/ai_contract.go b/kernel/api/ai_contract.go
new file mode 100644
index 0000000000..fa296b9aae
--- /dev/null
+++ b/kernel/api/ai_contract.go
@@ -0,0 +1,120 @@
+package api
+
+import (
+ "encoding/json"
+ "github.com/gin-gonic/gin"
+ "github.com/siyuan-note/siyuan/kernel/agent"
+ "github.com/siyuan-note/siyuan/kernel/apicontract"
+ mcpclient "github.com/siyuan-note/siyuan/kernel/mcp/client"
+ "github.com/siyuan-note/siyuan/kernel/mcp/tools"
+ "github.com/siyuan-note/siyuan/kernel/model"
+ "github.com/siyuan-note/siyuan/kernel/util"
+)
+
+func aiProviderAdmission(c *gin.Context) *apicontract.Response[apicontract.Null] {
+ if model.Conf.AI.HasAnyProvider() {
+ return nil
+ }
+ response := apicontract.Failure[apicontract.Null](-1, model.Conf.Language(193))
+ return &response
+}
+
+func aiEditorRequest(request apicontract.AIEditorChatRequest) aiEditorChatReq {
+ result := aiEditorChatReq{TaskID: request.TaskID, IDs: request.IDs, Input: request.Input, Action: request.Action}
+ if request.History != nil {
+ result.History = make([]model.AIEditorMessage, len(request.History))
+ for i, item := range request.History {
+ result.History[i] = model.AIEditorMessage(item)
+ }
+ }
+ return result
+}
+
+func aiAgentRequest(request apicontract.AIAgentChatRequest) (result agentChatReq, err error) {
+ encoded, err := json.Marshal(request)
+ if err == nil {
+ err = json.Unmarshal(encoded, &result)
+ }
+ return
+}
+
+func aiSessionContract(fields map[string]any) (*apicontract.AISession, error) {
+ if fields == nil {
+ return nil, nil
+ }
+ encoded, err := json.Marshal(fields)
+ if err != nil {
+ return nil, err
+ }
+ result := &apicontract.AISession{}
+ err = json.Unmarshal(encoded, result)
+ return result, err
+}
+
+func aiEditorActionsContract(values []*model.AIEditorAction) []*apicontract.AIEditorAction {
+ if values == nil {
+ return nil
+ }
+ result := make([]*apicontract.AIEditorAction, len(values))
+ for i, value := range values {
+ result[i] = (*apicontract.AIEditorAction)(value)
+ }
+ return result
+}
+func aiMCPStatusContract(values []mcpclient.MCPStatusItem) []apicontract.AIMCPStatus {
+ if values == nil {
+ return nil
+ }
+ result := make([]apicontract.AIMCPStatus, len(values))
+ for i, value := range values {
+ result[i] = apicontract.AIMCPStatus(value)
+ }
+ return result
+}
+func aiSkillsContract(values []util.SkillInfo) []apicontract.AISkillInfo {
+ if values == nil {
+ return nil
+ }
+ result := make([]apicontract.AISkillInfo, len(values))
+ for i, value := range values {
+ result[i] = apicontract.AISkillInfo(value)
+ }
+ return result
+}
+func aiUserSkillsContract(values []util.UserSkillInfo) []apicontract.AIUserSkillInfo {
+ if values == nil {
+ return nil
+ }
+ result := make([]apicontract.AIUserSkillInfo, len(values))
+ for i, value := range values {
+ result[i] = apicontract.AIUserSkillInfo(value)
+ }
+ return result
+}
+func aiSessionListContract(value *agent.SessionListResult) apicontract.AISessionList {
+ result := apicontract.AISessionList{Total: value.Total, Page: value.Page, PageSize: value.PageSize}
+ if value.Sessions != nil {
+ result.Sessions = make([]*apicontract.AISessionIndex, len(value.Sessions))
+ for i, item := range value.Sessions {
+ result.Sessions[i] = (*apicontract.AISessionIndex)(item)
+ }
+ }
+ return result
+}
+func aiCapabilityManifestsContract(values []tools.CapabilityManifest) []apicontract.AICapabilityManifest {
+ if values == nil {
+ return nil
+ }
+ result := make([]apicontract.AICapabilityManifest, len(values))
+ for i, value := range values {
+ item := apicontract.AICapabilityManifest{ID: value.ID, Name: value.Name, Title: value.Title, Description: value.Description, Source: value.Source, OwnerID: value.OwnerID, OwnerName: value.OwnerName, Runtime: value.Runtime, AgentOnly: value.AgentOnly, Effects: apicontract.AIToolEffects(value.Effects), Available: value.Available}
+ if value.Actions != nil {
+ item.Actions = make([]apicontract.AICapabilityAction, len(value.Actions))
+ for j, action := range value.Actions {
+ item.Actions[j] = apicontract.AICapabilityAction{Name: action.Name, Effects: apicontract.AIToolEffects(action.Effects)}
+ }
+ }
+ result[i] = item
+ }
+ return result
+}
diff --git a/kernel/api/ai_provider_test.go b/kernel/api/ai_provider_test.go
index 3457dcf5b4..07d2fd5b03 100644
--- a/kernel/api/ai_provider_test.go
+++ b/kernel/api/ai_provider_test.go
@@ -8,15 +8,18 @@
package api
-import "testing"
+import (
+ "github.com/siyuan-note/siyuan/kernel/apicontract"
+ "testing"
+)
func TestResolveAIProviderDraft(t *testing.T) {
- provider, err := resolveAIProvider(map[string]any{
- "providerConfig": map[string]any{
- "baseURL": " http://127.0.0.1:8080/v1 ",
- "apiKey": " key ",
- "headers": map[string]string{"X-Api-Key": "header-key"},
- "requestTimeout": 700,
+ provider, err := resolveAIProvider(apicontract.AIProviderRequest{
+ ProviderConfig: &apicontract.SettingProvider{
+ BaseURL: " http://127.0.0.1:8080/v1 ",
+ APIKey: " key ",
+ Headers: map[string]string{"X-Api-Key": "header-key"},
+ RequestTimeout: 700,
},
})
if err != nil {
@@ -40,7 +43,7 @@ func TestResolveAIProviderDraft(t *testing.T) {
}
func TestResolveAIProviderDraftRequiresBaseURL(t *testing.T) {
- if _, err := resolveAIProvider(map[string]any{"providerConfig": map[string]any{}}); err == nil {
+ if _, err := resolveAIProvider(apicontract.AIProviderRequest{ProviderConfig: &apicontract.SettingProvider{}}); err == nil {
t.Fatal("empty draft provider should be rejected")
}
}
diff --git a/kernel/api/contract_ai_test.go b/kernel/api/contract_ai_test.go
new file mode 100644
index 0000000000..ababcefd05
--- /dev/null
+++ b/kernel/api/contract_ai_test.go
@@ -0,0 +1,306 @@
+package api
+
+import (
+ "bufio"
+ "context"
+ "encoding/json"
+ "fmt"
+ "github.com/88250/gulu"
+ "net/http"
+ "net/http/httptest"
+ "strings"
+ "testing"
+ "time"
+
+ "github.com/gin-gonic/gin"
+ "github.com/siyuan-note/siyuan/kernel/agent"
+ "github.com/siyuan-note/siyuan/kernel/apicontract"
+ "github.com/siyuan-note/siyuan/kernel/conf"
+ "github.com/siyuan-note/siyuan/kernel/model"
+ "github.com/siyuan-note/siyuan/kernel/util"
+)
+
+func aiContractConfiguration(t *testing.T) {
+ t.Helper()
+ previous, dir := model.Conf, util.DataDir
+ model.Conf = model.NewAppConf()
+ model.Conf.AI = conf.NewAI()
+ model.Conf.AI.Embedding = nil
+ model.Conf.AI.Rerank = nil
+ util.DataDir = t.TempDir()
+ t.Cleanup(func() { model.Conf = previous; util.DataDir = dir })
+}
+
+type aiUnreadBody struct{ t *testing.T }
+
+func (body aiUnreadBody) Read([]byte) (int, error) {
+ body.t.Fatal("AI request body read before provider admission")
+ return 0, nil
+}
+func (body aiUnreadBody) Close() error { return nil }
+
+func TestAPIContractAIProviderAdmissionBeforeBody(t *testing.T) {
+ aiContractConfiguration(t)
+ model.Conf.AI.Providers = nil
+ engine := gin.New()
+ engine.POST("/api/ai/editor/chat", aiEditorChat)
+ engine.POST("/api/ai/agent/chat", agentChat)
+ for _, path := range []string{"/api/ai/editor/chat", "/api/ai/agent/chat"} {
+ request := httptest.NewRequest("POST", path, nil)
+ request.Body = aiUnreadBody{t: t}
+ recorder := httptest.NewRecorder()
+ engine.ServeHTTP(recorder, request)
+ if recorder.Code != 200 || !strings.Contains(recorder.Body.String(), `"code":-1`) {
+ t.Fatalf("provider admission changed: %d %s", recorder.Code, recorder.Body.String())
+ }
+ }
+}
+
+func TestAPIContractAIScalarCompatibility(t *testing.T) {
+ compareSyncDecode(t, apicontract.AIChatGPT, "msg", true, true, []string{`{}`, `null`, `[]`, ``, `{"msg":null}`, `{"msg":1}`, `{"msg":" "}`, `{"msg":" hello "}`, `{"msg":"x","unused":1e400}`}, func(r apicontract.AIMessageRequest) string { return r.Msg })
+ compareSyncDecode(t, apicontract.AIRemoveEditorAction, "id", true, true, []string{`{}`, `{"id":null}`, `{"id":true}`, `{"id":" "}`, `{"id":" id "}`}, func(r apicontract.AIEditorActionIDRequest) string { return r.ID })
+}
+
+func TestAPIContractAIStructErrors(t *testing.T) {
+ type agentConfirmReq struct {
+ ConfirmID string `json:"confirmID"`
+ Approved bool `json:"approved"`
+ Always bool `json:"always"`
+ }
+ for _, body := range []string{``, `{`, `{"approved":1}`, `{"confirmID":[]}`, `{"Approved":null}`, `{"always":true} trailing`} {
+ context, _ := gin.CreateTestContext(httptest.NewRecorder())
+ context.Request = httptest.NewRequest("POST", "/api/ai/agent/confirm", strings.NewReader(body))
+ context.Request.Header.Set("Content-Type", "application/json")
+ var original agentConfirmReq
+ expected := context.ShouldBindJSON(&original)
+ _, err := apicontract.AIAgentConfirm.Decode(strings.NewReader(body))
+ if expected != nil {
+ if err == nil || err.Error() != "invalid request: "+expected.Error() {
+ t.Fatalf("struct error changed for %s: %v != %v", body, err, expected)
+ }
+ } else if err != nil {
+ t.Fatal(err)
+ }
+ }
+}
+
+func TestAPIContractAIProviderDraftCompatibility(t *testing.T) {
+ for _, raw := range []string{`{}`, `{"BASEURL":" url ","requestTimeout":1.0}`, `{"baseURL":false}`, `{"requestTimeout":1.5}`, `{"models":[null,{"name":"m"}]}`, `{"headers":{"test":null}}`} {
+ var object map[string]any
+ if err := json.Unmarshal([]byte(raw), &object); err != nil {
+ t.Fatal(err)
+ }
+ encoded, err := gulu.JSON.MarshalJSON(object)
+ if err != nil {
+ t.Fatal(err)
+ }
+ var want conf.Provider
+ expectedError := gulu.JSON.UnmarshalJSON(encoded, &want)
+ request, err := apicontract.AIListModels.Decode(strings.NewReader(`{"providerConfig":` + raw + `}`))
+ if err != nil {
+ t.Fatal(err)
+ }
+ if (request.ProviderError() != nil) != (expectedError != nil) {
+ t.Fatalf("provider draft acceptance changed for %s: %v != %v", raw, request.ProviderError(), expectedError)
+ }
+ if expectedError != nil && request.ProviderError().Error() != expectedError.Error() {
+ t.Fatalf("provider draft error changed: %v != %v", request.ProviderError(), expectedError)
+ }
+ if expectedError == nil {
+ got, _ := json.Marshal(request.ProviderConfig)
+ expected, _ := json.Marshal(want)
+ if string(got) != string(expected) {
+ t.Fatalf("provider fields changed: %s != %s", got, expected)
+ }
+ }
+ }
+}
+
+func TestAPIContractAIResponses(t *testing.T) {
+ aiContractConfiguration(t)
+ bundle, err := apicontract.BuildBundle()
+ if err != nil {
+ t.Fatal(err)
+ }
+ engine := gin.New()
+ engine.POST("/api/ai/testEmbeddingModel", testEmbeddingModel)
+ engine.POST("/api/ai/testRerankModel", testRerankModel)
+ engine.POST("/api/ai/agent/confirm", agentChatConfirm)
+ engine.POST("/api/ai/agent/question", agentChatQuestion)
+ engine.POST("/api/ai/agent/browserCapabilityResult", agentChatBrowserCapabilityResult)
+ engine.POST("/api/ai/agent/saveSession", saveSession)
+ for _, test := range []struct {
+ path, body string
+ status int
+ message string
+ }{
+ {"/api/ai/testEmbeddingModel", "ignored", 200, "embedding model not configured"},
+ {"/api/ai/testRerankModel", "ignored", 200, "rerank model not configured"},
+ {"/api/ai/agent/confirm", `{"confirmID":"expired"}`, 409, "agent confirmation expired"},
+ {"/api/ai/agent/question", `{"questionID":"expired"}`, 409, "agent question expired"},
+ {"/api/ai/agent/browserCapabilityResult", `{"callID":"expired","structuredContent":{"nested":[1,true,null]}}`, 409, "agent browser capability call expired"},
+ {"/api/ai/agent/confirm", `{"approved":1}`, 200, "invalid request:"},
+ {"/api/ai/agent/saveSession", `{`, 400, "invalid session data"},
+ } {
+ recorder := httptest.NewRecorder()
+ request := httptest.NewRequest("POST", test.path, strings.NewReader(test.body))
+ request.Header.Set("Content-Type", "application/json")
+ engine.ServeHTTP(recorder, request)
+ if recorder.Code != test.status || !strings.Contains(recorder.Body.String(), test.message) {
+ t.Fatalf("%s changed: %d %s", test.path, recorder.Code, recorder.Body.String())
+ }
+ if err = bundle.ValidateHTTPResponse("POST", test.path, recorder.Code, recorder.Header().Get("Content-Type"), recorder.Body.Bytes()); err != nil {
+ t.Fatalf("%s: %v", test.path, err)
+ }
+ }
+}
+
+func TestAPIContractAISessionExtensions(t *testing.T) {
+ aiContractConfiguration(t)
+ engine := gin.New()
+ engine.POST("/api/ai/agent/saveSession", saveSession)
+ engine.POST("/api/ai/agent/getSession", getSession)
+ body := `{"id":"20260913000000-abcdefg","title":"example","createdAt":1,"updatedAt":2,"entries":[{"type":"user","content":"hello","futureEntry":{"value":9007199254740993}}],"future":{"nested":[true,null,9007199254740993]}}`
+ request := httptest.NewRequest("POST", "/api/ai/agent/saveSession", strings.NewReader(body))
+ request.Header.Set("X-SiYuan-Agent-Checkpoint", "2")
+ recorder := httptest.NewRecorder()
+ engine.ServeHTTP(recorder, request)
+ if recorder.Code != 200 || !strings.Contains(recorder.Body.String(), `"revision":1`) {
+ t.Fatalf("save failed: %d %s", recorder.Code, recorder.Body.String())
+ }
+ expected, err := agent.GetSessionState("20260913000000-abcdefg", true)
+ if err != nil {
+ t.Fatal(err)
+ }
+ recorder = httptest.NewRecorder()
+ engine.ServeHTTP(recorder, httptest.NewRequest("POST", "/api/ai/agent/getSession", strings.NewReader(`{"id":"20260913000000-abcdefg"}`)))
+ var response struct {
+ Code int `json:"code"`
+ Data map[string]json.RawMessage `json:"data"`
+ }
+ if err = json.Unmarshal(recorder.Body.Bytes(), &response); err != nil {
+ t.Fatal(err)
+ }
+ if response.Code != 0 || response.Data["future"] == nil || strings.Contains(string(response.Data["entries"]), `"id"`) {
+ t.Fatalf("extension or omission changed: %s", recorder.Body.String())
+ }
+ want, _ := json.Marshal(expected)
+ got, _ := json.Marshal(response.Data)
+ if string(want) != string(got) {
+ t.Fatalf("stored session wire changed:\n%s\n%s", want, got)
+ }
+ bundle, err := apicontract.BuildBundle()
+ if err != nil {
+ t.Fatal(err)
+ }
+ if err = bundle.ValidateHTTPResponse("POST", "/api/ai/agent/getSession", 200, recorder.Header().Get("Content-Type"), recorder.Body.Bytes()); err != nil {
+ t.Fatal(err)
+ }
+}
+
+func TestAPIContractAIEditorSSE(t *testing.T) {
+ aiContractConfiguration(t)
+ upstream := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
+ w.Header().Set("Content-Type", "text/event-stream")
+ fmt.Fprint(w, "data: {\"choices\":[{\"index\":0,\"delta\":{\"content\":\"hello\",\"reasoning_content\":\"reason\"},\"finish_reason\":\"length\"}]}\n\ndata: [DONE]\n\n")
+ }))
+ defer upstream.Close()
+ model.Conf.AI.Providers = []*conf.Provider{{ID: "provider", Enabled: true, BaseURL: upstream.URL + "/v1", Protocol: "openai", APIKey: "test", Models: []*conf.Model{{ID: "model", Name: "model", Enabled: true}}}}
+ model.Conf.AI.Editing.ModelID = "model"
+ engine := gin.New()
+ engine.POST("/api/ai/editor/chat", aiEditorChat)
+ recorder := httptest.NewRecorder()
+ engine.ServeHTTP(recorder, httptest.NewRequest("POST", "/api/ai/editor/chat", strings.NewReader(`{"taskID":"task","input":"hello"}`)))
+ bundle, err := apicontract.BuildBundle()
+ if err != nil {
+ t.Fatal(err)
+ }
+ if err = bundle.ValidateHTTPResponse("POST", "/api/ai/editor/chat", recorder.Code, recorder.Header().Get("Content-Type"), recorder.Body.Bytes()); err != nil {
+ t.Fatalf("%v: %s", err, recorder.Body.String())
+ }
+ for _, frame := range strings.Split(strings.TrimSpace(recorder.Body.String()), "\n\n") {
+ lines := strings.SplitN(frame, "\n", 2)
+ if len(lines) != 2 {
+ t.Fatalf("invalid frame: %s", frame)
+ }
+ name := strings.TrimPrefix(lines[0], "event:")
+ payload := strings.TrimPrefix(lines[1], "data:")
+ if err = bundle.ValidateSSEEvent("POST", "/api/ai/editor/chat", name, []byte(payload)); err != nil {
+ t.Fatalf("%s: %v", name, err)
+ }
+ }
+ if !strings.Contains(recorder.Body.String(), "event:content") || !strings.Contains(recorder.Body.String(), "event:done") {
+ t.Fatalf("stream did not complete: %s", recorder.Body.String())
+ }
+}
+
+func TestAPIContractAIOAuthContent(t *testing.T) {
+ aiContractConfiguration(t)
+ engine := gin.New()
+ engine.GET("/api/ai/mcp/oauth/callback/:flowID", mcpOAuthCallback)
+ bundle, err := apicontract.BuildBundle()
+ if err != nil {
+ t.Fatal(err)
+ }
+ for _, remote := range []bool{false, true} {
+ request := httptest.NewRequest("GET", "/api/ai/mcp/oauth/callback/missing?code=unused&state=missing", nil)
+ request.RemoteAddr = "127.0.0.1:1234"
+ if remote {
+ request.RemoteAddr = "192.0.2.1:1234"
+ }
+ recorder := httptest.NewRecorder()
+ engine.ServeHTTP(recorder, request)
+ want := 400
+ if remote {
+ want = 403
+ }
+ if recorder.Code != want {
+ t.Fatalf("callback status changed: %d %s", recorder.Code, recorder.Body.String())
+ }
+ if err = bundle.ValidateHTTPResponse("GET", "/api/ai/mcp/oauth/callback/:flowID", recorder.Code, recorder.Header().Get("Content-Type"), recorder.Body.Bytes()); err != nil {
+ t.Fatal(err)
+ }
+ if !remote && (recorder.Header().Get("Cache-Control") != "no-store" || recorder.Header().Get("Referrer-Policy") != "no-referrer") {
+ t.Fatal("callback security headers changed")
+ }
+ }
+}
+
+func TestAPIContractAIEditorStreamCancellation(t *testing.T) {
+ aiContractConfiguration(t)
+ closed := make(chan struct{})
+ upstream := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
+ w.Header().Set("Content-Type", "text/event-stream")
+ fmt.Fprint(w, "data: {\"choices\":[{\"index\":0,\"delta\":{\"content\":\"hello\"}}]}\n\n")
+ w.(http.Flusher).Flush()
+ <-r.Context().Done()
+ close(closed)
+ }))
+ defer upstream.Close()
+ model.Conf.AI.Providers = []*conf.Provider{{ID: "provider", Enabled: true, BaseURL: upstream.URL + "/v1", Protocol: "openai", APIKey: "test", Models: []*conf.Model{{ID: "model", Name: "model", Enabled: true}}}}
+ model.Conf.AI.Editing.ModelID = "model"
+ engine := gin.New()
+ engine.POST("/api/ai/editor/chat", aiEditorChat)
+ server := httptest.NewServer(engine)
+ defer server.Close()
+ ctx, cancel := context.WithCancel(context.Background())
+ defer cancel()
+ request, err := http.NewRequestWithContext(ctx, "POST", server.URL+"/api/ai/editor/chat", strings.NewReader(`{"input":"hello"}`))
+ if err != nil {
+ t.Fatal(err)
+ }
+ response, err := http.DefaultClient.Do(request)
+ if err != nil {
+ t.Fatal(err)
+ }
+ if _, err = bufio.NewReader(response.Body).ReadString('\n'); err != nil {
+ t.Fatal(err)
+ }
+ cancel()
+ response.Body.Close()
+ select {
+ case <-closed:
+ case <-time.After(3 * time.Second):
+ t.Fatal("editor stream cancellation did not close upstream")
+ }
+}
diff --git a/kernel/apicontract/ai.go b/kernel/apicontract/ai.go
new file mode 100644
index 0000000000..827964fe6a
--- /dev/null
+++ b/kernel/apicontract/ai.go
@@ -0,0 +1,207 @@
+package apicontract
+
+type AIEditorChatRequest struct {
+ TaskID string `json:"taskID" api:"optional,nullable"`
+ IDs []string `json:"ids" api:"optional,nullable"`
+ Input string `json:"input" api:"optional,nullable"`
+ Action string `json:"action" api:"optional,nullable"`
+ History []AIEditorMessage `json:"history" api:"optional,nullable"`
+}
+
+type AIConfirmRequest struct {
+ ConfirmID string `json:"confirmID" api:"optional,nullable"`
+ Approved bool `json:"approved" api:"optional,nullable"`
+ Always bool `json:"always" api:"optional,nullable"`
+}
+
+type AIPermissionRequest struct {
+ SessionID string `json:"sessionID" api:"optional,nullable"`
+ PermissionMode string `json:"permissionMode" api:"optional,nullable"`
+}
+
+type AIQuestionRequest struct {
+ QuestionID string `json:"questionID" api:"optional,nullable"`
+ Answers []string `json:"answers" api:"optional,nullable"`
+}
+
+type AITitleRequest struct {
+ Message string `json:"message" api:"optional,nullable"`
+ Model string `json:"model" api:"optional,nullable"`
+ Language string `json:"language" api:"optional,nullable"`
+}
+
+type AISessionsRequest struct {
+ Page int `json:"page" api:"optional,nullable"`
+ PageSize int `json:"pageSize" api:"optional,nullable"`
+ Keyword string `json:"keyword" api:"optional,nullable"`
+}
+
+type AISessionIDRequest struct {
+ ID string `json:"id" api:"optional,nullable"`
+}
+
+type AISkillNameRequest struct {
+ Name string `json:"name" api:"optional,nullable"`
+}
+
+type AISkillSaveRequest struct {
+ Name string `json:"name" api:"optional,nullable"`
+ Content string `json:"content" api:"optional,nullable"`
+}
+
+type AISkillRenameRequest struct {
+ OldName string `json:"oldName" api:"optional,nullable"`
+ NewName string `json:"newName" api:"optional,nullable"`
+}
+
+type AIBrowserCapabilityResultRequest struct {
+ CallID string `json:"callID" api:"optional,nullable"`
+ Result string `json:"result" api:"optional,nullable"`
+ StructuredContent JSONValue `json:"structuredContent" api:"optional,nullable"`
+ StructuredContentSet bool `json:"structuredContentSet" api:"optional,nullable"`
+ IsError bool `json:"isError" api:"optional,nullable"`
+}
+
+type AIEditorMessage struct {
+ Role string `json:"role" api:"optional,nullable"`
+ Content string `json:"content" api:"optional,nullable"`
+}
+
+type AIEditorAction struct {
+ ID string `json:"id"`
+ Name string `json:"name"`
+ Action string `json:"action"`
+}
+
+type AIEmbeddingStat struct {
+ Total int `json:"total"`
+ Indexed int `json:"indexed"`
+ Pending int `json:"pending"`
+ Failed int `json:"failed"`
+ IgnoredByLen int `json:"ignoredByLen"`
+ IgnoredByConfig int `json:"ignoredByConfig"`
+ Enabled bool `json:"enabled"`
+}
+
+type AIMCPStatus struct {
+ ID string `json:"id"`
+ Name string `json:"name"`
+ Status string `json:"status"`
+ Tools int `json:"tools"`
+ Error string `json:"error,omitempty"`
+ AuthorizationURL string `json:"authorizationURL,omitempty"`
+ Authorized bool `json:"authorized"`
+}
+
+type AISkillInfo struct {
+ Name string `json:"name"`
+ Description string `json:"description"`
+}
+
+type AIUserSkillInfo struct {
+ ID string `json:"id"`
+ Name string `json:"name"`
+ Description string `json:"description"`
+ Enabled bool `json:"enabled"`
+ Shadowed bool `json:"shadowed"`
+}
+
+type AISessionIndex struct {
+ ID string `json:"id"`
+ Title string `json:"title"`
+ CreatedAt int64 `json:"createdAt"`
+ UpdatedAt int64 `json:"updatedAt"`
+ AgentRunning bool `json:"agentRunning,omitempty"`
+}
+
+type AISessionList struct {
+ Sessions []*AISessionIndex `json:"sessions"`
+ Total int `json:"total"`
+ Page int `json:"page"`
+ PageSize int `json:"pageSize"`
+}
+
+type AIToolEffects struct {
+ LocalRead bool `json:"localRead,omitempty" api:"optional,nullable"`
+ LocalWrite bool `json:"localWrite,omitempty" api:"optional,nullable"`
+ DataEgress bool `json:"dataEgress,omitempty" api:"optional,nullable"`
+ ExternalCost bool `json:"externalCost,omitempty" api:"optional,nullable"`
+}
+
+type AICapabilityManifest struct {
+ ID string `json:"id"`
+ Name string `json:"name"`
+ Title string `json:"title,omitempty"`
+ Description string `json:"description"`
+ Source string `json:"source"`
+ OwnerID string `json:"ownerId,omitempty"`
+ OwnerName string `json:"ownerName,omitempty"`
+ Runtime string `json:"runtime"`
+ AgentOnly bool `json:"agentOnly,omitempty"`
+ Effects AIToolEffects `json:"effects,omitempty"`
+ Available bool `json:"available"`
+ Actions []AICapabilityAction `json:"actions,omitempty"`
+}
+
+type AICapabilityAction struct {
+ Name string `json:"name"`
+ Effects AIToolEffects `json:"effects,omitempty"`
+}
+
+type AIMessageRequest struct {
+ Msg string `json:"msg" api:"trim"`
+}
+type AIActionRequest struct {
+ IDs []string `json:"ids"`
+ Action string `json:"action"`
+}
+type AIEditorActionSaveRequest struct {
+ ID string `json:"id" api:"optional,nullable"`
+ Name string `json:"name"`
+ Action string `json:"action"`
+}
+type AIEditorActionIDRequest struct {
+ ID string `json:"id" api:"trim"`
+}
+type AIProviderRequest struct {
+ Provider string `json:"provider" api:"optional,nullable,ignoretype"`
+ ProviderConfig *SettingProvider `json:"providerConfig" api:"optional,nullable,legacyobject"`
+ providerError error
+}
+type AIModelRequest struct {
+ Model string `json:"model" api:"trim"`
+ AIProviderRequest
+}
+type AIModelTestData struct {
+ Available []string `json:"available"`
+ Matched bool `json:"matched"`
+ Msg *string `json:"msg,omitempty"`
+}
+type AIEmbeddingTestData struct {
+ Matched bool `json:"matched"`
+ Dimensions *int `json:"dimensions,omitempty"`
+ Msg *string `json:"msg,omitempty"`
+}
+type AIRerankTestData struct {
+ Matched bool `json:"matched"`
+ Msg *string `json:"msg,omitempty"`
+}
+type AIModelsData struct {
+ Models []string `json:"models"`
+ ContextLengths map[string]int `json:"contextLengths"`
+ Msg *string `json:"msg,omitempty"`
+}
+type AIMCPEnvironmentData struct {
+ Names []string `json:"names"`
+ Defaults []string `json:"defaults"`
+}
+type AIMCPIDRequest struct {
+ ID string `json:"id" api:"optional,nullable,ignoretype"`
+}
+type AIPermissionData struct {
+ PermissionMode string `json:"permissionMode"`
+}
+type AISkillData struct {
+ Name string `json:"name"`
+ Content string `json:"content"`
+}
diff --git a/kernel/apicontract/ai_agent.go b/kernel/apicontract/ai_agent.go
new file mode 100644
index 0000000000..79261c57b9
--- /dev/null
+++ b/kernel/apicontract/ai_agent.go
@@ -0,0 +1,233 @@
+package apicontract
+
+type AIReference struct {
+ ID string `json:"id" api:"optional,nullable"`
+ Title string `json:"title" api:"optional,nullable"`
+}
+
+type AIEditorContext struct {
+ ActiveDocID string `json:"activeDocID,omitempty" api:"optional,nullable"`
+ ActiveDocTitle string `json:"activeDocTitle,omitempty" api:"optional,nullable"`
+ NotebookID string `json:"notebookID,omitempty" api:"optional,nullable"`
+ FocusedBlockID string `json:"focusedBlockID,omitempty" api:"optional,nullable"`
+ SelectedBlockIDs []string `json:"selectedBlockIDs,omitempty" api:"optional,nullable"`
+ VisibleBlockIDs []string `json:"visibleBlockIDs,omitempty" api:"optional,nullable"`
+}
+
+type AIAgentToolCallProviderData struct {
+ Google *AIAgentGoogleToolCallProviderData `json:"google,omitempty" api:"optional,nullable"`
+}
+
+type AIAgentGoogleToolCallProviderData struct {
+ ThoughtSignature string `json:"thoughtSignature,omitempty" api:"optional,nullable"`
+}
+
+type AIAgentAttachment struct {
+ Type string `json:"type" api:"optional,nullable"`
+ Data []byte `json:"-" api:"optional,nullable"`
+ MIMEType string `json:"mimeType,omitempty" api:"optional,nullable"`
+ Path string `json:"path" api:"optional,nullable"`
+ DocumentID string `json:"documentId" api:"optional,nullable"`
+ Detail string `json:"detail,omitempty" api:"optional,nullable"`
+ Width int `json:"width,omitempty" api:"optional,nullable"`
+ Height int `json:"height,omitempty" api:"optional,nullable"`
+}
+
+type AISessionEntryStep struct {
+ Reasoning string `json:"reasoning" api:"optional,nullable"`
+ ReasoningContent string `json:"reasoningContent,omitempty" api:"optional,nullable"`
+ ToolNames []string `json:"toolNames,omitempty" api:"optional,nullable"`
+ ToolCallIDs []string `json:"toolCallIDs,omitempty" api:"optional,nullable"`
+ Content string `json:"content,omitempty" api:"optional,nullable"`
+ RoundID string `json:"roundID,omitempty" api:"optional,nullable"`
+}
+
+type AIAgentToolCall struct {
+ ID string `json:"id,omitempty" api:"optional,nullable"`
+ Name string `json:"name" api:"optional,nullable"`
+ Arguments map[string]JSONValue `json:"arguments" api:"optional,nullable"`
+ ArgumentsJSON string `json:"argumentsJSON,omitempty" api:"optional,nullable"`
+ Result string `json:"result,omitempty" api:"optional,nullable"`
+ State string `json:"state,omitempty" api:"optional,nullable"`
+ Attachments []AIAgentAttachment `json:"attachments,omitempty" api:"optional,nullable"`
+ ProviderData *AIAgentToolCallProviderData `json:"providerData,omitempty" api:"optional,nullable"`
+}
+
+type AISessionEntry struct {
+ ID string `json:"id,omitempty" api:"optional,nullable"`
+ Type string `json:"type" api:"optional,nullable"`
+ Content string `json:"content,omitempty" api:"optional,nullable"`
+ References []AIReference `json:"references,omitempty" api:"optional,nullable"`
+ AIEditorContext *AIEditorContext `json:"editorContext,omitempty" api:"optional,nullable"`
+ BlockHTML string `json:"blockHTML,omitempty" api:"optional,nullable"`
+ Steps []AISessionEntryStep `json:"steps,omitempty" api:"optional,nullable"`
+ ToolCalls []AIAgentToolCall `json:"toolCalls,omitempty" api:"optional,nullable"`
+ Duration float64 `json:"duration,omitempty" api:"optional,nullable"`
+ PromptTokens int `json:"promptTokens,omitempty" api:"optional,nullable"`
+ CompletionTok int `json:"completionTokens,omitempty" api:"optional,nullable"`
+ Timestamp int64 `json:"timestamp,omitempty" api:"optional,nullable"`
+ ReasoningCont string `json:"reasoningContent,omitempty" api:"optional,nullable"`
+ ResponseOutput []JSONValue `json:"responseOutput,omitempty" api:"optional,nullable"`
+ ResponseOutputTokens int `json:"responseOutputTokens,omitempty" api:"optional,nullable"`
+ RoundID string `json:"roundID,omitempty" api:"optional,nullable"`
+ Name string `json:"name,omitempty" api:"optional,nullable"`
+ Args map[string]JSONValue `json:"args,omitempty" api:"optional,nullable"`
+ ConfirmID string `json:"confirmID,omitempty" api:"optional,nullable"`
+ Status string `json:"status,omitempty" api:"optional,nullable"`
+ QuestionID string `json:"questionID,omitempty" api:"optional,nullable"`
+ Questions []map[string]JSONValue `json:"questions,omitempty" api:"optional,nullable"`
+ Answers []string `json:"answers,omitempty" api:"optional,nullable"`
+ SnapshotID string `json:"snapshotID,omitempty" api:"optional,nullable"`
+}
+
+type AIAgentMessage struct {
+ Role string `json:"role" api:"optional,nullable"`
+ Content string `json:"content" api:"optional,nullable"`
+ ReasoningContent string `json:"reasoningContent,omitempty" api:"optional,nullable"`
+ ResponseOutput []JSONValue `json:"responseOutput,omitempty" api:"optional,nullable"`
+ ResponseOutputTokens int `json:"responseOutputTokens,omitempty" api:"optional,nullable"`
+ RoundID string `json:"roundID,omitempty" api:"optional,nullable"`
+ References []AIReference `json:"references,omitempty" api:"optional,nullable"`
+ AIEditorContext *AIEditorContext `json:"editorContext,omitempty" api:"optional,nullable"`
+ ToolCalls []AIAgentToolCall `json:"toolCalls,omitempty" api:"optional,nullable"`
+ EntryID string `json:"entryID,omitempty" api:"optional,nullable"`
+}
+
+type AIFrontendCapability struct {
+ ID string `json:"id" api:"optional,nullable"`
+ Title string `json:"title,omitempty" api:"optional,nullable"`
+ Description string `json:"description" api:"optional,nullable"`
+ InputSchema map[string]JSONValue `json:"inputSchema" api:"optional,nullable"`
+ OutputSchema map[string]JSONValue `json:"outputSchema,omitempty" api:"optional,nullable"`
+ Source string `json:"source" api:"optional,nullable"`
+ OwnerID string `json:"ownerId,omitempty" api:"optional,nullable"`
+ OwnerName string `json:"ownerName,omitempty" api:"optional,nullable"`
+ Effects *AIToolEffects `json:"effects,omitempty" api:"optional,nullable"`
+ ActionEffects map[string]AIToolEffects `json:"actionEffects,omitempty" api:"optional,nullable"`
+ Generation uint64 `json:"generation" api:"optional,nullable"`
+}
+
+type AIAgentChatRequest struct {
+ SessionID string `json:"sessionID" api:"optional,nullable"`
+ UserEntryID string `json:"userEntryID" api:"optional,nullable"`
+ ContentRevision *int64 `json:"contentRevision" api:"optional,nullable"`
+ Message string `json:"message" api:"optional,nullable"`
+ BlockHTML *string `json:"blockHTML" api:"optional,nullable"`
+ Language string `json:"language" api:"optional,nullable"`
+ References []AIReference `json:"references" api:"optional,nullable"`
+ AIEditorContext AIEditorContext `json:"editorContext" api:"optional,nullable"`
+ FrontendCapabilities []AIFrontendCapability `json:"frontendCapabilities" api:"optional,nullable"`
+ Model string `json:"model,omitempty" api:"optional,nullable"`
+ Regenerate bool `json:"regenerate" api:"optional,nullable"`
+ ReasoningEffort string `json:"reasoningEffort,omitempty" api:"optional,nullable"`
+}
+
+type AISessionFields struct {
+ ID string `json:"id"`
+ Title string `json:"title,omitempty" api:"optional,nullable"`
+ Titled bool `json:"titled,omitempty" api:"optional,nullable"`
+ Model string `json:"model,omitempty" api:"optional,nullable"`
+ PermissionMode string `json:"permissionMode,omitempty" api:"optional,nullable"`
+ AlwaysAllow bool `json:"alwaysAllow,omitempty" api:"optional,nullable"`
+ Messages []AIAgentMessage `json:"messages,omitempty" api:"optional,nullable"`
+ Entries []AISessionEntry `json:"entries,omitempty" api:"optional,nullable"`
+ Snapshots []string `json:"snapshots,omitempty" api:"optional,nullable"`
+ PromptTokens int `json:"promptTokens,omitempty" api:"optional,nullable"`
+ CompletionTokens int `json:"completionTokens,omitempty" api:"optional,nullable"`
+ TotalDuration float64 `json:"totalDuration,omitempty" api:"optional,nullable"`
+ ContextTokens int `json:"contextTokens,omitempty" api:"optional,nullable"`
+ ContextTokenBreakdown map[string]int `json:"contextTokenBreakdown,omitempty" api:"optional,nullable"`
+ ContextCachedTokens int `json:"contextCachedTokens,omitempty" api:"optional,nullable"`
+ ContextLimit int `json:"contextLimit,omitempty" api:"optional,nullable"`
+ MessageHistory []string `json:"messageHistory,omitempty" api:"optional,nullable"`
+ CreatedAt int64 `json:"createdAt,omitempty" api:"optional,nullable"`
+ UpdatedAt int64 `json:"updatedAt,omitempty" api:"optional,nullable"`
+ Revision int64 `json:"revision,omitempty" api:"optional,nullable"`
+ ExpectedRevision *int64 `json:"expectedRevision,omitempty" api:"optional,nullable"`
+ CommitTurnID string `json:"commitTurnID,omitempty" api:"optional,nullable"`
+ LastCommittedTurnID string `json:"lastCommittedTurnID,omitempty" api:"optional,nullable"`
+ RecoveryTurnID string `json:"recoveryTurnID,omitempty" api:"optional,nullable"`
+ RecoveryState string `json:"recoveryState,omitempty" api:"optional,nullable"`
+ RecoveryRevision int64 `json:"recoveryRevision,omitempty" api:"optional,nullable"`
+ AgentRunning bool `json:"agentRunning,omitempty" api:"optional,nullable"`
+}
+type AISessionSaveData struct {
+ Revision int64 `json:"revision"`
+ Session *AISession `json:"session,omitempty"`
+}
+
+type AISSEStart struct {
+ TaskID string `json:"taskID"`
+}
+type AISSEToken struct {
+ Token string `json:"token"`
+}
+type AISSEFinish struct {
+ FinishReason string `json:"finishReason"`
+}
+type AISSEMessage struct {
+ Message string `json:"message"`
+}
+type AISSETurn struct {
+ TurnID string `json:"turnID"`
+}
+type AISSEThinking struct {
+ Reasoning string `json:"reasoning"`
+ RoundID string `json:"roundID"`
+}
+type AISSEConfirm struct {
+ Name string `json:"name"`
+ Arguments map[string]JSONValue `json:"arguments"`
+ ConfirmID string `json:"confirmID"`
+ Effects AIToolEffects `json:"effects"`
+ Forced bool `json:"forced"`
+}
+type AISSEToolCall struct {
+ Name string `json:"name"`
+ Arguments map[string]JSONValue `json:"arguments"`
+ CallID string `json:"callID"`
+ RoundID string `json:"roundID"`
+}
+type AISSEToolResult struct {
+ Name string `json:"name"`
+ CallID string `json:"callID"`
+ RoundID string `json:"roundID"`
+ Result string `json:"result"`
+}
+type AISSEUsage struct {
+ PromptTokens int `json:"promptTokens"`
+ CompletionTokens int `json:"completionTokens"`
+ LastPromptTokens int `json:"lastPromptTokens"`
+ TokenBreakdown map[string]int `json:"tokenBreakdown"`
+ CachedTokens int `json:"cachedTokens"`
+ ContextLimit int `json:"contextLimit"`
+}
+type AISSERetry struct {
+ Attempt int `json:"attempt"`
+ MaxRetries int `json:"maxRetries"`
+}
+type AISSEQuestion struct {
+ QuestionID string `json:"questionID"`
+ RoundID string `json:"roundID"`
+ Arguments map[string]JSONValue `json:"arguments"`
+}
+type AISSEBrowserCapabilityCall struct {
+ CallID string `json:"callID"`
+ Name string `json:"name"`
+ CapabilityID string `json:"capabilityID"`
+ Generation uint64 `json:"generation"`
+ Arguments map[string]JSONValue `json:"arguments"`
+}
+type AISSESnapshot struct {
+ SnapshotID string `json:"snapshotID"`
+ RoundID string `json:"roundID"`
+}
+
+func aiEditorSSEOptions() ResponseOptions {
+ return SSEOptions(SSEEvent[AISSEStart]("start"), SSEEvent[AISSEToken]("reasoning"), SSEEvent[AISSEToken]("content"), SSEEvent[AISSEMessage]("error"), SSEEvent[AISSEMessage]("truncated"), SSEEvent[AISSEFinish]("done"))
+}
+func aiAgentSSEOptions() ResponseOptions {
+ options := SSEOptions(SSEEvent[AISSETurn]("turn"), SSEEvent[AISSEToken]("content"), SSEEvent[AISSEThinking]("thinking"), SSEEvent[AISSEToken]("reasoning"), SSEEvent[AISSEConfirm]("confirm"), SSEEvent[AIPermissionData]("permission"), SSEEvent[AISSEToolCall]("tool_call"), SSEEvent[AISSEToolResult]("tool_result"), SSEEvent[AISSEMessage]("error"), SSEEvent[AISSEMessage]("interrupted"), SSEEvent[AISSEUsage]("usage"), SSEEvent[AISSETurn]("done"), SSEEvent[AISSERetry]("retry"), SSEEvent[AISSEQuestion]("question"), SSEEvent[AISSEBrowserCapabilityCall]("browser_capability_call"), SSEEvent[AISSESnapshot]("snapshot"))
+ options.AdditionalErrorStatuses = []int{409}
+ return options
+}
diff --git a/kernel/apicontract/ai_input.go b/kernel/apicontract/ai_input.go
new file mode 100644
index 0000000000..4921185d1f
--- /dev/null
+++ b/kernel/apicontract/ai_input.go
@@ -0,0 +1,125 @@
+package apicontract
+
+import (
+ "bytes"
+ "encoding/json"
+ "fmt"
+ "io"
+ "reflect"
+ "strings"
+)
+
+func aiStructDecoder[Request, Data any](endpoint *Endpoint[Request, Data], legacyName string) {
+ endpoint.decodeRequest = func(reader io.Reader) (value Request, err error) {
+ err = json.NewDecoder(reader).Decode(&value)
+ if err != nil {
+ message := strings.ReplaceAll(err.Error(), reflect.TypeFor[Request]().Name()+".", legacyName+".")
+ for _, name := range []string{"Reference", "EditorContext", "FrontendCapability", "ToolEffects"} {
+ message = strings.ReplaceAll(message, "AI"+name+".", name+".")
+ }
+ err = fmt.Errorf("invalid request: %s", message)
+ }
+ return
+ }
+}
+
+func (r AIProviderRequest) ProviderError() error { return r.providerError }
+
+func aiLegacyString(fields fileTreeFields, key string, required, trim bool) (value string, err error) {
+ value, err = legacyField[string](fields, key, "String", required)
+ if err == nil && trim {
+ value = strings.TrimSpace(value)
+ if value == "" {
+ err = fmt.Errorf("Field [%s] must not be empty", key)
+ }
+ }
+ return
+}
+
+func aiJSONDecoder[Request, Data any](endpoint *Endpoint[Request, Data], bind func(fileTreeFields) (Request, error)) {
+ endpoint.decodeRequest = func(reader io.Reader) (value Request, err error) {
+ fields, err := fileTreeRequestFields(reader, endpoint.definition.Path)
+ if err == nil {
+ value, err = bind(fields)
+ }
+ return
+ }
+}
+
+func aiProviderFields(fields fileTreeFields) AIProviderRequest {
+ request := AIProviderRequest{}
+ _ = json.Unmarshal(fields["provider"], &request.Provider)
+ if raw := fields["providerConfig"]; len(raw) > 0 && !bytes.Equal(raw, []byte("null")) {
+ value, err := legacyJSONValue[SettingProvider](raw)
+ if err != nil {
+ err = fmt.Errorf("%s", strings.NewReplacer("SettingProvider.", "Provider.", "SettingModel.", "Model.", "apicontract.SettingProvider", "conf.Provider", "apicontract.SettingModel", "conf.Model").Replace(err.Error()))
+ }
+ request.ProviderConfig = &value
+ request.providerError = err
+ }
+ return request
+}
+
+func init() {
+ aiStructDecoder(&AIEditorChat, "aiEditorChatReq")
+ aiStructDecoder(&AIAgentChat, "agentChatReq")
+ aiStructDecoder(&AIGetSession, "agentSessionGetReq")
+ AISaveSession.decodeRequest = func(reader io.Reader) (value AISession, err error) {
+ value.raw, err = io.ReadAll(reader)
+ if err != nil {
+ err = fmt.Errorf("failed to read body: %s", err)
+ }
+ return
+ }
+ aiStructDecoder(&AIAgentConfirm, "agentConfirmReq")
+ aiStructDecoder(&AIAgentSetPermission, "agentPermissionReq")
+ aiStructDecoder(&AIAgentQuestion, "agentQuestionReq")
+ aiStructDecoder(&AIAgentBrowserCapabilityResult, "agentBrowserCapabilityResultReq")
+ aiStructDecoder(&AIAgentTitle, "agentTitleReq")
+ aiStructDecoder(&AIListSessions, "agentSessionsReq")
+ aiStructDecoder(&AIRemoveSession, "agentSessionDeleteReq")
+ aiStructDecoder(&AIGetSkill, "skillGetReq")
+ aiStructDecoder(&AISaveSkill, "skillSaveReq")
+ aiStructDecoder(&AIRemoveSkill, "skillRemoveReq")
+ aiStructDecoder(&AIRenameSkill, "skillRenameReq")
+ aiJSONDecoder(&AIChatGPT, func(fields fileTreeFields) (value AIMessageRequest, err error) {
+ value.Msg, err = aiLegacyString(fields, "msg", true, true)
+ return
+ })
+ fileTreeJSONDecoder(&AIChatGPTWithAction)
+ aiJSONDecoder(&AISaveEditorAction, func(fields fileTreeFields) (value AIEditorActionSaveRequest, err error) {
+ if value.ID, err = aiLegacyString(fields, "id", false, false); err != nil {
+ return
+ }
+ if value.Name, err = aiLegacyString(fields, "name", true, false); err != nil {
+ return
+ }
+ value.Action, err = aiLegacyString(fields, "action", true, false)
+ return
+ })
+ aiJSONDecoder(&AIRemoveEditorAction, func(fields fileTreeFields) (value AIEditorActionIDRequest, err error) {
+ value.ID, err = aiLegacyString(fields, "id", true, true)
+ return
+ })
+ fileTreeJSONDecoder(&AIMCPOAuthAuthorize)
+ fileTreeJSONDecoder(&AIMCPOAuthDisconnect)
+ AIListModels.decodeRequest = func(reader io.Reader) (value AIProviderRequest, err error) {
+ fields, err := fileTreeRequestFields(reader, AIListModels.definition.Path)
+ if err == nil {
+ value = aiProviderFields(fields)
+ }
+ return
+ }
+ AITestModel.decodeRequest = func(reader io.Reader) (value AIModelRequest, err error) {
+ fields, err := fileTreeRequestFields(reader, AITestModel.definition.Path)
+ if err != nil {
+ return
+ }
+ model, err := aiLegacyString(fields, "model", true, true)
+ if err == nil {
+ value.Model = model
+ value.AIProviderRequest = aiProviderFields(fields)
+ }
+ return
+ }
+}
diff --git a/kernel/apicontract/ai_session.go b/kernel/apicontract/ai_session.go
new file mode 100644
index 0000000000..6b7b845bf3
--- /dev/null
+++ b/kernel/apicontract/ai_session.go
@@ -0,0 +1,82 @@
+package apicontract
+
+import (
+ "encoding/json"
+ "reflect"
+ "strings"
+)
+
+// AISession 保留会话的扩展字段和已有字段的省略语义,格式由 AISessionFields 描述。
+type AISession struct{ raw json.RawMessage }
+
+func (s AISession) MarshalJSON() ([]byte, error) {
+ if len(s.raw) == 0 {
+ return []byte("null"), nil
+ }
+ return s.raw, nil
+}
+func (s *AISession) UnmarshalJSON(data []byte) error {
+ var fields map[string]json.RawMessage
+ if err := json.Unmarshal(data, &fields); err != nil {
+ return err
+ }
+ s.raw = append(s.raw[:0], data...)
+ return nil
+}
+func (s AISession) Bytes() []byte { return append([]byte(nil), s.raw...) }
+
+func aiSessionPayloadSchema(b *schemaBuilder, input bool) (*Schema, error) {
+ base, err := b.schema(reflect.TypeFor[AISessionFields](), input)
+ if err != nil {
+ return nil, err
+ }
+ additional, err := b.schema(reflect.TypeFor[JSONValue](), input)
+ if err != nil {
+ return nil, err
+ }
+ visited := map[string]bool{}
+ var extend func(*Schema) *Schema
+ extend = func(schema *Schema) *Schema {
+ if schema == nil {
+ return nil
+ }
+ copySchema := *schema
+ schema = &copySchema
+ if strings.HasPrefix(schema.Ref, "#/$defs/AI") {
+ name := strings.TrimPrefix(schema.Ref, "#/$defs/")
+ extendedName := "AISessionExtension" + name
+ if !visited[name] {
+ visited[name] = true
+ payload := extend(b.definitions[name])
+ if !strings.HasPrefix(name, "AISessionFields") {
+ payload.Required = nil
+ } else {
+ payload.Properties["id"] = b.definitions[name].Properties["id"]
+ }
+ b.definitions[extendedName] = payload
+ }
+ schema.Ref = "#/$defs/" + extendedName
+ return schema
+ }
+ if schema.Type == "object" && len(schema.Properties) > 0 {
+ schema.AdditionalProperties = additional
+ }
+ if schema.Properties != nil {
+ properties := make(map[string]*Schema, len(schema.Properties))
+ for key, field := range schema.Properties {
+ properties[key] = nullable(extend(field))
+ }
+ schema.Properties = properties
+ }
+ if schema.AnyOf != nil {
+ branches := make([]*Schema, len(schema.AnyOf))
+ for i, branch := range schema.AnyOf {
+ branches[i] = extend(branch)
+ }
+ schema.AnyOf = branches
+ }
+ schema.Items = extend(schema.Items)
+ return schema
+ }
+ return extend(base), nil
+}
diff --git a/kernel/apicontract/ai_test.go b/kernel/apicontract/ai_test.go
new file mode 100644
index 0000000000..38b4d66a13
--- /dev/null
+++ b/kernel/apicontract/ai_test.go
@@ -0,0 +1,50 @@
+package apicontract
+
+import (
+ "bytes"
+ "encoding/json"
+ "strings"
+ "testing"
+)
+
+func TestAIInputCompatibility(t *testing.T) {
+ request, err := AITestModel.Decode(strings.NewReader(`{"model":" example ","providerConfig":{"requestTimeout":1.5}}`))
+ if err != nil || request.Model != "example" || request.ProviderError() == nil {
+ t.Fatalf("provider validation was not deferred: %+v %v", request, err)
+ }
+ _, err = AITestModel.Decode(strings.NewReader(`{"model":" ","providerConfig":false}`))
+ if err == nil || !strings.Contains(err.Error(), "model") {
+ t.Fatalf("model validation order changed: %v", err)
+ }
+ provider, err := AIListModels.Decode(strings.NewReader(`{"provider":false,"providerConfig":{"BASEURL":"x","requestTimeout":1.0}}`))
+ if err != nil || provider.Provider != "" || provider.ProviderConfig.BaseURL != "x" || provider.ProviderConfig.RequestTimeout != 1 {
+ t.Fatalf("draft binding changed: %+v %v", provider, err)
+ }
+ chat, err := AIAgentChat.Decode(strings.NewReader(`{"SESSIONID":"session","contentRevision":null,"references":[null,{}],"frontendCapabilities":[{"inputSchema":{"type":"object","x-custom":[true,null]}}]}`))
+ if err != nil || chat.SessionID != "session" || len(chat.References) != 2 || chat.References[0].ID != "" {
+ t.Fatalf("Go struct request compatibility changed: %+v %v", chat, err)
+ }
+ for _, body := range []string{``, `{`, `{"page":1.5}`, `{"page":1.0}`} {
+ if _, err = AIListSessions.Decode(strings.NewReader(body)); err == nil || !strings.HasPrefix(err.Error(), "invalid request: ") {
+ t.Fatalf("struct parser error changed for %s: %v", body, err)
+ }
+ }
+}
+
+func TestAISessionRawCompatibility(t *testing.T) {
+ for _, body := range []string{`{"id":"session","future":9007199254740993,"entries":[{"type":"user","future":true}]}`, `{`, ``} {
+ request, err := AISaveSession.Decode(strings.NewReader(body))
+ if err != nil || !bytes.Equal(request.Bytes(), []byte(body)) {
+ t.Fatalf("raw session changed: %s %v", request.Bytes(), err)
+ }
+ }
+ var session AISession
+ body := []byte(`{"id":"session","future":9007199254740993}`)
+ if err := json.Unmarshal(body, &session); err != nil {
+ t.Fatal(err)
+ }
+ encoded, err := json.Marshal(session)
+ if err != nil || !bytes.Equal(body, encoded) {
+ t.Fatalf("session response changed: %s %v", encoded, err)
+ }
+}
diff --git a/kernel/apicontract/contracts.go b/kernel/apicontract/contracts.go
index f9158d07e2..db6aa06c7c 100644
--- a/kernel/apicontract/contracts.go
+++ b/kernel/apicontract/contracts.go
@@ -845,3 +845,39 @@ var GetCloudUser = define[SettingCloudUserRequest, *SettingUser]("getCloudUser",
var LogoutCloudUser = define[EmptyRequest, Null]("logoutCloudUser", "/api/setting/logoutCloudUser", NoBody, ResponseOptions{}, "POST")
var Login2faCloudUser = define[SettingLogin2faRequest, Login2faEnvelope]("login2faCloudUser", "/api/setting/login2faCloudUser", JSONBody, ResponseOptions{Output: DirectJSONOutput}, "POST")
var SetEmoji = define[SettingEmojiRequest, Null]("setEmoji", "/api/setting/setEmoji", JSONBody, ResponseOptions{}, "POST")
+
+var AIChatGPT = define[AIMessageRequest, string]("chatGPT", "/api/ai/chatGPT", JSONBody, ResponseOptions{}, "POST")
+var AIChatGPTWithAction = define[AIActionRequest, string]("chatGPTWithAction", "/api/ai/chatGPTWithAction", JSONBody, ResponseOptions{}, "POST")
+var AIListEditorActions = define[EmptyRequest, []*AIEditorAction]("lsAIEditorActions", "/api/ai/editor/lsActions", NoBody, ResponseOptions{}, "POST")
+var AISaveEditorAction = define[AIEditorActionSaveRequest, *AIEditorAction]("saveAIEditorAction", "/api/ai/editor/saveAction", JSONBody, ResponseOptions{}, "POST")
+var AIRemoveEditorAction = define[AIEditorActionIDRequest, Null]("removeAIEditorAction", "/api/ai/editor/removeAction", JSONBody, ResponseOptions{}, "POST")
+var AITestModel = define[AIModelRequest, AIModelTestData]("testModel", "/api/ai/testModel", JSONBody, ResponseOptions{}, "POST")
+var AITestEmbeddingModel = define[EmptyRequest, AIEmbeddingTestData]("testEmbeddingModel", "/api/ai/testEmbeddingModel", NoBody, ResponseOptions{}, "POST")
+var AITestRerankModel = define[EmptyRequest, AIRerankTestData]("testRerankModel", "/api/ai/testRerankModel", NoBody, ResponseOptions{}, "POST")
+var AIListModels = define[AIProviderRequest, AIModelsData]("listModels", "/api/ai/listModels", JSONBody, ResponseOptions{}, "POST")
+var AIGetEmbeddingStat = define[EmptyRequest, *AIEmbeddingStat]("embeddingStat", "/api/ai/embeddingStat", NoBody, ResponseOptions{}, "POST")
+var AIGetMCPStatus = define[EmptyRequest, []AIMCPStatus]("mcpStatus", "/api/ai/mcpStatus", NoBody, ResponseOptions{}, "POST")
+var AIGetMCPEnvironment = define[EmptyRequest, AIMCPEnvironmentData]("mcpEnvironmentVariables", "/api/ai/mcpEnvironmentVariables", NoBody, ResponseOptions{}, "POST")
+var AIMCPOAuthAuthorize = define[AIMCPIDRequest, Null]("mcpOAuthAuthorize", "/api/ai/mcpOAuthAuthorize", JSONBody, ResponseOptions{}, "POST")
+var AIMCPOAuthDisconnect = define[AIMCPIDRequest, Null]("mcpOAuthDisconnect", "/api/ai/mcpOAuthDisconnect", JSONBody, ResponseOptions{}, "POST")
+var AIReindexEmbedding = define[EmptyRequest, Null]("reindexEmbedding", "/api/ai/reindexEmbedding", NoBody, ResponseOptions{}, "POST")
+var AIRetryFailedEmbedding = define[EmptyRequest, Null]("retryFailedEmbedding", "/api/ai/retryFailedEmbedding", NoBody, ResponseOptions{}, "POST")
+var AIAgentConfirm = define[AIConfirmRequest, Null]("agentChatConfirm", "/api/ai/agent/confirm", StructJSONBody, ResponseOptions{AdditionalErrorStatuses: []int{409}}, "POST")
+var AIAgentSetPermission = define[AIPermissionRequest, AIPermissionData]("setAgentSessionPermission", "/api/ai/agent/setPermission", StructJSONBody, ResponseOptions{}, "POST")
+var AIAgentQuestion = define[AIQuestionRequest, Null]("agentChatQuestion", "/api/ai/agent/question", StructJSONBody, ResponseOptions{AdditionalErrorStatuses: []int{409}}, "POST")
+var AIAgentBrowserCapabilityResult = define[AIBrowserCapabilityResultRequest, Null]("agentChatBrowserCapabilityResult", "/api/ai/agent/browserCapabilityResult", StructJSONBody, ResponseOptions{AdditionalErrorStatuses: []int{409}}, "POST")
+var AIListCapabilities = define[EmptyRequest, []AICapabilityManifest]("lsCapabilities", "/api/ai/lsCapabilities", NoBody, ResponseOptions{}, "POST")
+var AIAgentTitle = define[AITitleRequest, string]("agentChatTitle", "/api/ai/agent/title", StructJSONBody, ResponseOptions{}, "POST")
+var AIListSessions = define[AISessionsRequest, AISessionList]("lsSessions", "/api/ai/agent/lsSessions", StructJSONBody, ResponseOptions{}, "POST")
+var AIRemoveSession = define[AISessionIDRequest, Null]("removeSession", "/api/ai/agent/removeSession", StructJSONBody, ResponseOptions{AdditionalErrorStatuses: []int{409, 500}}, "POST")
+var AIListSkills = define[EmptyRequest, []AISkillInfo]("lsSkills", "/api/ai/agent/lsSkills", NoBody, ResponseOptions{}, "POST")
+var AIListUserSkills = define[EmptyRequest, []AIUserSkillInfo]("lsUserSkills", "/api/ai/agent/lsUserSkills", NoBody, ResponseOptions{}, "POST")
+var AIGetSkill = define[AISkillNameRequest, AISkillData]("getSkill", "/api/ai/agent/getSkill", StructJSONBody, ResponseOptions{}, "POST")
+var AISaveSkill = define[AISkillSaveRequest, Null]("saveSkill", "/api/ai/agent/saveSkill", StructJSONBody, ResponseOptions{}, "POST")
+var AIRemoveSkill = define[AISkillNameRequest, Null]("removeSkill", "/api/ai/agent/removeSkill", StructJSONBody, ResponseOptions{}, "POST")
+var AIRenameSkill = define[AISkillRenameRequest, Null]("renameSkill", "/api/ai/agent/renameSkill", StructJSONBody, ResponseOptions{}, "POST")
+var AIEditorChat = define[AIEditorChatRequest, Null]("aiEditorChat", "/api/ai/editor/chat", StructJSONBody, aiEditorSSEOptions(), "POST")
+var AIAgentChat = define[AIAgentChatRequest, Null]("agentChat", "/api/ai/agent/chat", StructJSONBody, aiAgentSSEOptions(), "POST")
+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")
diff --git a/kernel/apicontract/legacy_routes.json b/kernel/apicontract/legacy_routes.json
index d348cbf3e2..56836dcfeb 100644
--- a/kernel/apicontract/legacy_routes.json
+++ b/kernel/apicontract/legacy_routes.json
@@ -3,7 +3,6 @@
{"method":"ANY","path":"/api/network/echo/*path","handler":"echo"},
{"method":"ANY","path":"/api/network/proxy","handler":"httpProxy"},
{"method":"ANY","path":"/plugin/private/:name/*path","handler":"pluginPrivateWebServer"},
- {"method":"GET","path":"/api/ai/mcp/oauth/callback/:flowID","handler":"mcpOAuthCallback"},
{"method":"GET","path":"/api/icon/getDynamicIcon","handler":"getDynamicIcon"},
{"method":"GET","path":"/api/system/bootProgressSSE","handler":"bootProgressSSE"},
{"method":"GET","path":"/api/system/getBootAppearance","handler":"getBootAppearance"},
@@ -13,40 +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/ai/agent/browserCapabilityResult","handler":"agentChatBrowserCapabilityResult"},
- {"method":"POST","path":"/api/ai/agent/chat","handler":"agentChat"},
- {"method":"POST","path":"/api/ai/agent/confirm","handler":"agentChatConfirm"},
- {"method":"POST","path":"/api/ai/agent/getSession","handler":"getSession"},
- {"method":"POST","path":"/api/ai/agent/getSkill","handler":"getSkill"},
- {"method":"POST","path":"/api/ai/agent/lsSessions","handler":"lsSessions"},
- {"method":"POST","path":"/api/ai/agent/lsSkills","handler":"lsSkills"},
- {"method":"POST","path":"/api/ai/agent/lsUserSkills","handler":"lsUserSkills"},
- {"method":"POST","path":"/api/ai/agent/question","handler":"agentChatQuestion"},
- {"method":"POST","path":"/api/ai/agent/removeSession","handler":"removeSession"},
- {"method":"POST","path":"/api/ai/agent/removeSkill","handler":"removeSkill"},
- {"method":"POST","path":"/api/ai/agent/renameSkill","handler":"renameSkill"},
- {"method":"POST","path":"/api/ai/agent/saveSession","handler":"saveSession"},
- {"method":"POST","path":"/api/ai/agent/saveSkill","handler":"saveSkill"},
- {"method":"POST","path":"/api/ai/agent/setPermission","handler":"setAgentSessionPermission"},
- {"method":"POST","path":"/api/ai/agent/title","handler":"agentChatTitle"},
- {"method":"POST","path":"/api/ai/chatGPT","handler":"chatGPT"},
- {"method":"POST","path":"/api/ai/chatGPTWithAction","handler":"chatGPTWithAction"},
- {"method":"POST","path":"/api/ai/editor/chat","handler":"aiEditorChat"},
- {"method":"POST","path":"/api/ai/editor/lsActions","handler":"lsAIEditorActions"},
- {"method":"POST","path":"/api/ai/editor/removeAction","handler":"removeAIEditorAction"},
- {"method":"POST","path":"/api/ai/editor/saveAction","handler":"saveAIEditorAction"},
- {"method":"POST","path":"/api/ai/embeddingStat","handler":"embeddingStat"},
- {"method":"POST","path":"/api/ai/listModels","handler":"listModels"},
- {"method":"POST","path":"/api/ai/lsCapabilities","handler":"lsCapabilities"},
- {"method":"POST","path":"/api/ai/mcpEnvironmentVariables","handler":"mcpEnvironmentVariables"},
- {"method":"POST","path":"/api/ai/mcpOAuthAuthorize","handler":"mcpOAuthAuthorize"},
- {"method":"POST","path":"/api/ai/mcpOAuthDisconnect","handler":"mcpOAuthDisconnect"},
- {"method":"POST","path":"/api/ai/mcpStatus","handler":"mcpStatus"},
- {"method":"POST","path":"/api/ai/reindexEmbedding","handler":"reindexEmbedding"},
- {"method":"POST","path":"/api/ai/retryFailedEmbedding","handler":"retryFailedEmbedding"},
- {"method":"POST","path":"/api/ai/testEmbeddingModel","handler":"testEmbeddingModel"},
- {"method":"POST","path":"/api/ai/testModel","handler":"testModel"},
- {"method":"POST","path":"/api/ai/testRerankModel","handler":"testRerankModel"},
{"method":"POST","path":"/api/av/addAttributeViewBlocks","handler":"addAttributeViewBlocks"},
{"method":"POST","path":"/api/av/addAttributeViewKey","handler":"addAttributeViewKey"},
{"method":"POST","path":"/api/av/appendAttributeViewDetachedBlocksWithValues","handler":"appendAttributeViewDetachedBlocksWithValues"},
diff --git a/kernel/apicontract/schema.go b/kernel/apicontract/schema.go
index e573440945..a2bc2a09b3 100644
--- a/kernel/apicontract/schema.go
+++ b/kernel/apicontract/schema.go
@@ -88,6 +88,16 @@ func nonnullable(schema *Schema) *Schema {
}
func (b *schemaBuilder) schema(t reflect.Type, input bool) (*Schema, error) {
+ if t == reflect.TypeFor[*AISession]() {
+ schema, err := aiSessionPayloadSchema(b, input)
+ if err != nil {
+ return nil, err
+ }
+ return nullable(schema), nil
+ }
+ if t == reflect.TypeFor[AISession]() {
+ return aiSessionPayloadSchema(b, input)
+ }
if schema, err := bazaarPayloadSchema(b, t, input); schema != nil || err != nil {
return schema, err
}
diff --git a/kernel/apicontract/schema.json b/kernel/apicontract/schema.json
index ceeb5c7de1..c91f720784 100644
--- a/kernel/apicontract/schema.json
+++ b/kernel/apicontract/schema.json
@@ -1,342 +1,137 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$defs": {
- "AccountLoginData": {
+ "AIActionRequestInput": {
"type": "object",
"properties": {
- "needCaptcha": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "token": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
+ "action": {
+ "type": "string"
},
- "userName": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
+ "ids": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
}
},
"required": [
- "needCaptcha",
- "token",
- "userName"
+ "action",
+ "ids"
],
"additionalProperties": false
},
- "AccountLoginRequestInput": {
+ "AIAgentAttachment": {
"type": "object",
"properties": {
- "captcha": {
+ "detail": {
"type": "string"
},
- "cloudRegion": {
- "type": "number"
- },
- "userName": {
+ "documentId": {
"type": "string"
},
- "userPassword": {
- "type": "string"
- }
- },
- "required": [
- "captcha",
- "cloudRegion",
- "userName",
- "userPassword"
- ],
- "additionalProperties": false
- },
- "ActivationCodeRequestInput": {
- "type": "object",
- "properties": {
- "data": {
- "type": "string"
- }
- },
- "required": [
- "data"
- ],
- "additionalProperties": false
- },
- "AppendBlockRequestInput": {
- "type": "object",
- "properties": {
- "data": {
- "type": "string"
+ "height": {
+ "type": "integer"
},
- "dataType": {
+ "mimeType": {
"type": "string"
},
- "parentID": {
- "type": "string"
- }
- },
- "required": [
- "data",
- "dataType",
- "parentID"
- ],
- "additionalProperties": false
- },
- "AppendHeadingChildrenRequestInput": {
- "type": "object",
- "properties": {
- "childrenDOM": {
+ "path": {
"type": "string"
},
- "id": {
- "type": "string"
- }
- },
- "required": [
- "childrenDOM",
- "id"
- ],
- "additionalProperties": false
- },
- "AssetAnnotationData": {
- "type": "object",
- "properties": {
- "data": {
+ "type": {
"type": "string"
+ },
+ "width": {
+ "type": "integer"
}
},
"required": [
- "data"
+ "documentId",
+ "path",
+ "type"
],
"additionalProperties": false
},
- "AssetCloudUploadRequestInput": {
+ "AIAgentAttachmentInput": {
"type": "object",
"properties": {
- "id": {
- "type": "string"
- },
- "ignorePushMsg": {
+ "detail": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
- }
- },
- "required": [
- "id"
- ],
- "additionalProperties": false
- },
- "AssetContent": {
- "type": "object",
- "properties": {
- "content": {
- "type": "string"
- },
- "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": {
+ "documentId": {
"anyOf": [
{
- "$ref": "#/$defs/AssetContent"
+ "type": "string"
},
{
"type": "null"
}
]
- }
- },
- "required": [
- "assetContent"
- ],
- "additionalProperties": false
- },
- "AssetContentRequestInput": {
- "type": "object",
- "properties": {
- "id": {
- "type": "string"
- },
- "query": {
- "type": "string"
},
- "queryMethod": {
- "type": "number"
- }
- },
- "required": [
- "id",
- "query",
- "queryMethod"
- ],
- "additionalProperties": false
- },
- "AssetDocumentAssetsRequestInput": {
- "type": "object",
- "properties": {
- "id": {
- "type": "string"
+ "height": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "retainQueryStr": {
+ "mimeType": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
- }
- },
- "required": [
- "id"
- ],
- "additionalProperties": false
- },
- "AssetDocumentRequestInput": {
- "type": "object",
- "properties": {
- "id": {
- "type": "string"
- }
- },
- "required": [
- "id"
- ],
- "additionalProperties": false
- },
- "AssetInsertCoverData": {
- "type": "object",
- "properties": {
- "succFiles": {
+ },
+ "path": {
"anyOf": [
{
- "type": "array",
- "items": {
- "$ref": "#/$defs/AssetUploadSuccess"
- }
+ "type": "string"
},
{
"type": "null"
}
]
},
- "succMap": {
+ "type": {
"anyOf": [
{
- "type": "object",
- "additionalProperties": {
- "type": "string"
- }
+ "type": "string"
},
{
"type": "null"
}
]
- }
- },
- "required": [
- "succFiles",
- "succMap"
- ],
- "additionalProperties": false
- },
- "AssetOCRData": {
- "type": "object",
- "properties": {
- "ocrJSON": {
+ },
+ "width": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "type": "object",
- "additionalProperties": {
- "type": "string"
- }
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "integer"
},
{
"type": "null"
}
]
- },
- "text": {
- "type": "string"
}
},
- "required": [
- "ocrJSON",
- "text"
- ],
"additionalProperties": false
},
- "AssetOCRTextRequestInput": {
+ "AIAgentChatRequestInput": {
"type": "object",
"properties": {
- "path": {
+ "blockHTML": {
"anyOf": [
{
"type": "string"
@@ -345,177 +140,86 @@
"type": "null"
}
]
- }
- },
- "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": {
+ },
+ "contentRevision": {
"anyOf": [
{
- "type": "boolean"
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "paths": {
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- },
- "required": [
- "paths"
- ],
- "additionalProperties": false
- },
- "AssetPathsData": {
- "type": "object",
- "properties": {
- "paths": {
+ "editorContext": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AIEditorContextInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "frontendCapabilities": {
"anyOf": [
{
"type": "array",
"items": {
- "type": "string"
+ "$ref": "#/$defs/AIFrontendCapabilityInput"
}
},
{
"type": "null"
}
]
- }
- },
- "required": [
- "paths"
- ],
- "additionalProperties": false
- },
- "AssetRenameData": {
- "type": "object",
- "properties": {
- "newPath": {
- "type": "string"
- }
- },
- "required": [
- "newPath"
- ],
- "additionalProperties": false
- },
- "AssetStatData": {
- "type": "object",
- "properties": {
- "created": {
- "type": "integer"
},
- "downloaded": {
- "type": "boolean",
- "enum": [
- false
+ "language": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
]
},
- "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"
- }
+ "message": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "item": {
- "type": "string"
+ "model": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "name": {
- "type": "string"
+ "reasoningEffort": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "path": {
- "type": "string"
- }
- },
- "required": [
- "item",
- "name"
- ],
- "additionalProperties": false
- },
- "AssetUploadData": {
- "type": "object",
- "properties": {
- "errFiles": {
+ "references": {
"anyOf": [
{
"type": "array",
"items": {
- "type": "string"
+ "$ref": "#/$defs/AIReferenceInput"
}
},
{
@@ -523,39 +227,30 @@
}
]
},
- "failedFiles": {
+ "regenerate": {
"anyOf": [
{
- "type": "array",
- "items": {
- "$ref": "#/$defs/AssetUploadFailure"
- }
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "succFiles": {
+ "sessionID": {
"anyOf": [
{
- "type": "array",
- "items": {
- "$ref": "#/$defs/AssetUploadSuccess"
- }
+ "type": "string"
},
{
"type": "null"
}
]
},
- "succMap": {
+ "userEntryID": {
"anyOf": [
{
- "type": "object",
- "additionalProperties": {
- "type": "string"
- }
+ "type": "string"
},
{
"type": "null"
@@ -563,74 +258,86 @@
]
}
},
- "required": [
- "errFiles",
- "failedFiles",
- "succFiles",
- "succMap"
- ],
"additionalProperties": false
},
- "AssetUploadFailure": {
+ "AIAgentGoogleToolCallProviderData": {
"type": "object",
"properties": {
- "error": {
- "type": "string"
- },
- "index": {
- "type": "integer"
- },
- "name": {
+ "thoughtSignature": {
"type": "string"
}
},
- "required": [
- "error",
- "index",
- "name"
- ],
"additionalProperties": false
},
- "AssetUploadSuccess": {
+ "AIAgentGoogleToolCallProviderDataInput": {
"type": "object",
"properties": {
- "index": {
- "type": "integer"
- },
- "name": {
- "type": "string"
- },
- "path": {
- "type": "string"
+ "thoughtSignature": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
- "required": [
- "index",
- "name",
- "path"
- ],
"additionalProperties": false
},
- "AttributeViewColorTheme": {
+ "AIAgentMessage": {
"type": "object",
"properties": {
- "backgroundColor": {
+ "content": {
"type": "string"
},
- "color": {
+ "editorContext": {
+ "$ref": "#/$defs/AIEditorContext"
+ },
+ "entryID": {
+ "type": "string"
+ },
+ "reasoningContent": {
+ "type": "string"
+ },
+ "references": {
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/AIReference"
+ }
+ },
+ "responseOutput": {
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/JSONValue"
+ }
+ },
+ "responseOutputTokens": {
+ "type": "integer"
+ },
+ "role": {
"type": "string"
+ },
+ "roundID": {
+ "type": "string"
+ },
+ "toolCalls": {
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/AIAgentToolCall"
+ }
}
},
"required": [
- "backgroundColor",
- "color"
+ "content",
+ "role"
],
"additionalProperties": false
},
- "AttributeViewColorThemeInput": {
+ "AIAgentMessageInput": {
"type": "object",
"properties": {
- "backgroundColor": {
+ "content": {
"anyOf": [
{
"type": "string"
@@ -640,66 +347,63 @@
}
]
},
- "color": {
+ "editorContext": {
"anyOf": [
{
- "type": "string"
+ "$ref": "#/$defs/AIEditorContextInput"
},
{
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "AttributeViewCustomColor": {
- "type": "object",
- "properties": {
- "dark": {
- "$ref": "#/$defs/AttributeViewColorTheme"
},
- "hidden": {
- "type": "boolean"
+ "entryID": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "index": {
- "type": "integer"
+ "reasoningContent": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "light": {
- "$ref": "#/$defs/AttributeViewColorTheme"
- }
- },
- "required": [
- "dark",
- "index",
- "light"
- ],
- "additionalProperties": false
- },
- "AttributeViewCustomColorInput": {
- "type": "object",
- "properties": {
- "dark": {
+ "references": {
"anyOf": [
{
- "$ref": "#/$defs/AttributeViewColorThemeInput"
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/AIReferenceInput"
+ }
},
{
"type": "null"
}
]
},
- "hidden": {
+ "responseOutput": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/JSONValue"
+ }
},
{
"type": "null"
}
]
},
- "index": {
+ "responseOutputTokens": {
"anyOf": [
{
"type": "integer"
@@ -709,92 +413,32 @@
}
]
},
- "light": {
+ "role": {
"anyOf": [
{
- "$ref": "#/$defs/AttributeViewColorThemeInput"
+ "type": "string"
},
{
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "AutoLaunchRequestInput": {
- "type": "object",
- "properties": {
- "autoLaunch": {
- "type": "number"
- }
- },
- "required": [
- "autoLaunch"
- ],
- "additionalProperties": false
- },
- "BacklinkAttributeViewMatch": {
- "type": "object",
- "properties": {
- "defIDs": {
+ },
+ "roundID": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "type": "string"
},
{
"type": "null"
}
]
},
- "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": {
+ "toolCalls": {
"anyOf": [
{
"type": "array",
"items": {
- "anyOf": [
- {
- "$ref": "#/$defs/BacklinkAttributeViewMatch"
- },
- {
- "type": "null"
- }
- ]
+ "$ref": "#/$defs/AIAgentToolCallInput"
}
},
{
@@ -803,41 +447,17 @@
]
}
},
- "required": [
- "blockID",
- "matches"
- ],
"additionalProperties": false
},
- "BacklinkContext": {
+ "AIAgentToolCall": {
"type": "object",
"properties": {
- "attributeViewTargets": {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/BacklinkAttributeViewTarget"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "blockPaths": {
+ "arguments": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/BlockPath"
- },
- {
- "type": "null"
- }
- ]
+ "type": "object",
+ "additionalProperties": {
+ "$ref": "#/$defs/JSONValue"
}
},
{
@@ -845,50 +465,46 @@
}
]
},
- "dom": {
+ "argumentsJSON": {
"type": "string"
},
- "expand": {
- "type": "boolean"
+ "attachments": {
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/AIAgentAttachment"
+ }
},
"id": {
"type": "string"
},
- "referenceBlockID": {
+ "name": {
"type": "string"
},
- "revision": {
+ "providerData": {
+ "$ref": "#/$defs/AIAgentToolCallProviderData"
+ },
+ "result": {
"type": "string"
},
- "type": {
+ "state": {
"type": "string"
}
},
"required": [
- "blockPaths",
- "dom",
- "expand",
- "id",
- "revision"
+ "arguments",
+ "name"
],
"additionalProperties": false
},
- "BacklinkContextData": {
+ "AIAgentToolCallInput": {
"type": "object",
"properties": {
- "backlinks": {
+ "arguments": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/BacklinkContext"
- },
- {
- "type": "null"
- }
- ]
+ "type": "object",
+ "additionalProperties": {
+ "$ref": "#/$defs/JSONValue"
}
},
{
@@ -896,32 +512,22 @@
}
]
},
- "backmentions": {
+ "argumentsJSON": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/BacklinkContext"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "string"
},
{
"type": "null"
}
]
},
- "keywords": {
+ "attachments": {
"anyOf": [
{
"type": "array",
"items": {
- "type": "string"
+ "$ref": "#/$defs/AIAgentAttachmentInput"
}
},
{
@@ -929,52 +535,17 @@
}
]
},
- "revision": {
- "type": "string"
- },
- "unchanged": {
- "type": "boolean"
- }
- },
- "required": [
- "backlinks",
- "backmentions",
- "keywords",
- "revision",
- "unchanged"
- ],
- "additionalProperties": false
- },
- "BacklinkDocumentRequestInput": {
- "type": "object",
- "properties": {
- "containChildren": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
- },
- "defID": {
- "type": "string"
- },
- "highlight": {
+ "id": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "keyword": {
- "type": "string"
- },
- "knownRevision": {
+ "name": {
"anyOf": [
{
"type": "string"
@@ -984,122 +555,68 @@
}
]
},
- "notebook": {
- "type": "string"
- },
- "refTreeID": {
- "type": "string"
- },
- "sourceFilter": {
+ "providerData": {
"anyOf": [
{
- "$ref": "#/$defs/BacklinkSourceFilterInput"
+ "$ref": "#/$defs/AIAgentToolCallProviderDataInput"
},
{
"type": "null"
}
]
- }
- },
- "required": [
- "defID",
- "keyword",
- "refTreeID"
- ],
- "additionalProperties": false
- },
- "BacklinkList": {
- "type": "object",
- "properties": {
- "backlinks": {
+ },
+ "result": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/BacklinkPath"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "string"
},
{
"type": "null"
}
]
},
- "backmentions": {
+ "state": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/BacklinkPath"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "string"
},
{
"type": "null"
}
]
- },
- "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": {
+ "AIAgentToolCallProviderData": {
"type": "object",
"properties": {
- "containChildren": {
+ "google": {
+ "$ref": "#/$defs/AIAgentGoogleToolCallProviderData"
+ }
+ },
+ "additionalProperties": false
+ },
+ "AIAgentToolCallProviderDataInput": {
+ "type": "object",
+ "properties": {
+ "google": {
"anyOf": [
{
- "type": "boolean"
+ "$ref": "#/$defs/AIAgentGoogleToolCallProviderDataInput"
},
{
"type": "null"
}
]
- },
- "id": {
+ }
+ },
+ "additionalProperties": false
+ },
+ "AIBrowserCapabilityResultRequestInput": {
+ "type": "object",
+ "properties": {
+ "callID": {
"anyOf": [
{
"type": "string"
@@ -1109,7 +626,7 @@
}
]
},
- "includeMentions": {
+ "isError": {
"anyOf": [
{
"type": "boolean"
@@ -1119,20 +636,7 @@
}
]
},
- "k": {
- "type": "string"
- },
- "knownRevision": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "mSort": {
+ "result": {
"anyOf": [
{
"type": "string"
@@ -1142,20 +646,17 @@
}
]
},
- "mk": {
- "type": "string"
- },
- "notebook": {
+ "structuredContent": {
"anyOf": [
{
- "type": "string"
+ "$ref": "#/$defs/JSONValue"
},
{
"type": "null"
}
]
},
- "refDefCandidates": {
+ "structuredContentSet": {
"anyOf": [
{
"type": "boolean"
@@ -1164,172 +665,176 @@
"type": "null"
}
]
- },
- "sort": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "sourceFilter": {
- "anyOf": [
- {
- "$ref": "#/$defs/BacklinkSourceFilterInput"
- },
- {
- "type": "null"
- }
- ]
}
},
"additionalProperties": false
},
- "BacklinkPath": {
+ "AICapabilityAction": {
"type": "object",
"properties": {
- "blocks": {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/SearchBlock"
- },
- {
- "type": "null"
- }
- ]
- }
+ "effects": {
+ "$ref": "#/$defs/AIToolEffects"
},
- "box": {
+ "name": {
"type": "string"
- },
- "children": {
+ }
+ },
+ "required": [
+ "name"
+ ],
+ "additionalProperties": false
+ },
+ "AICapabilityManifest": {
+ "type": "object",
+ "properties": {
+ "actions": {
"type": "array",
"items": {
- "anyOf": [
- {
- "$ref": "#/$defs/SearchPath"
- },
- {
- "type": "null"
- }
- ]
+ "$ref": "#/$defs/AICapabilityAction"
}
},
- "count": {
- "type": "integer"
- },
- "created": {
- "type": "string"
- },
- "depth": {
- "type": "integer"
+ "agentOnly": {
+ "type": "boolean"
},
- "folded": {
+ "available": {
"type": "boolean"
},
- "hPath": {
+ "description": {
"type": "string"
},
+ "effects": {
+ "$ref": "#/$defs/AIToolEffects"
+ },
"id": {
"type": "string"
},
"name": {
"type": "string"
},
- "nodeType": {
- "type": "string"
- },
- "number": {
+ "ownerId": {
"type": "string"
},
- "revision": {
+ "ownerName": {
"type": "string"
},
- "subType": {
+ "runtime": {
"type": "string"
},
- "type": {
+ "source": {
"type": "string"
},
- "updated": {
+ "title": {
"type": "string"
}
},
"required": [
- "box",
- "count",
- "created",
- "depth",
- "folded",
- "hPath",
- "id",
+ "available",
+ "description",
+ "id",
"name",
- "nodeType",
- "revision",
- "subType",
- "type",
- "updated"
+ "runtime",
+ "source"
],
"additionalProperties": false
},
- "BacklinkRefDef": {
+ "AIConfirmRequestInput": {
"type": "object",
"properties": {
- "id": {
+ "always": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "approved": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "confirmID": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "AIEditorAction": {
+ "type": "object",
+ "properties": {
+ "action": {
"type": "string"
},
- "path": {
+ "id": {
"type": "string"
},
- "text": {
+ "name": {
"type": "string"
}
},
"required": [
+ "action",
"id",
- "path",
- "text"
+ "name"
],
"additionalProperties": false
},
- "BacklinkRefDefs": {
+ "AIEditorActionIDRequestInput": {
"type": "object",
"properties": {
- "refDefs": {
+ "id": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id"
+ ],
+ "additionalProperties": false
+ },
+ "AIEditorActionSaveRequestInput": {
+ "type": "object",
+ "properties": {
+ "action": {
+ "type": "string"
+ },
+ "id": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/BacklinkRefDef"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "string"
},
{
"type": "null"
}
]
+ },
+ "name": {
+ "type": "string"
}
},
"required": [
- "refDefs"
+ "action",
+ "name"
],
"additionalProperties": false
},
- "BacklinkSourceFilterInput": {
+ "AIEditorChatRequestInput": {
"type": "object",
"properties": {
- "dailyNote": {
+ "action": {
"anyOf": [
{
"type": "string"
@@ -1339,17 +844,20 @@
}
]
},
- "excludeSelf": {
+ "history": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/AIEditorMessageInput"
+ }
},
{
"type": "null"
}
]
},
- "excludedNotebookIDs": {
+ "ids": {
"anyOf": [
{
"type": "array",
@@ -1362,13 +870,20 @@
}
]
},
- "excludedRefDefIDs": {
+ "input": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "taskID": {
+ "anyOf": [
+ {
+ "type": "string"
},
{
"type": "null"
@@ -1378,36 +893,70 @@
},
"additionalProperties": false
},
- "BackmentionDocumentRequestInput": {
+ "AIEditorContext": {
"type": "object",
"properties": {
- "containChildren": {
+ "activeDocID": {
+ "type": "string"
+ },
+ "activeDocTitle": {
+ "type": "string"
+ },
+ "focusedBlockID": {
+ "type": "string"
+ },
+ "notebookID": {
+ "type": "string"
+ },
+ "selectedBlockIDs": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "visibleBlockIDs": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ },
+ "additionalProperties": false
+ },
+ "AIEditorContextInput": {
+ "type": "object",
+ "properties": {
+ "activeDocID": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "defID": {
- "type": "string"
- },
- "highlight": {
+ "activeDocTitle": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "keyword": {
- "type": "string"
+ "focusedBlockID": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "knownRevision": {
+ "notebookID": {
"anyOf": [
{
"type": "string"
@@ -1417,204 +966,177 @@
}
]
},
- "notebook": {
- "type": "string"
+ "selectedBlockIDs": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "refTreeID": {
- "type": "string"
+ "visibleBlockIDs": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
- "required": [
- "defID",
- "keyword",
- "refTreeID"
- ],
"additionalProperties": false
},
- "BatchInsertBlockRequestInput": {
+ "AIEditorMessageInput": {
"type": "object",
"properties": {
- "blocks": {
- "type": "array",
- "items": {
- "$ref": "#/$defs/BlockInsertInputInput"
- }
+ "content": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "role": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
- "required": [
- "blocks"
- ],
"additionalProperties": false
},
- "BatchParentBlockRequestInput": {
+ "AIEmbeddingStat": {
"type": "object",
"properties": {
- "blocks": {
- "type": "array",
- "items": {
- "$ref": "#/$defs/PrependBlockRequestInput"
- }
+ "enabled": {
+ "type": "boolean"
+ },
+ "failed": {
+ "type": "integer"
+ },
+ "ignoredByConfig": {
+ "type": "integer"
+ },
+ "ignoredByLen": {
+ "type": "integer"
+ },
+ "indexed": {
+ "type": "integer"
+ },
+ "pending": {
+ "type": "integer"
+ },
+ "total": {
+ "type": "integer"
}
},
"required": [
- "blocks"
+ "enabled",
+ "failed",
+ "ignoredByConfig",
+ "ignoredByLen",
+ "indexed",
+ "pending",
+ "total"
],
"additionalProperties": false
},
- "BatchSetBlockAttrsRequestInput": {
+ "AIEmbeddingTestData": {
"type": "object",
"properties": {
- "blockAttrs": {
- "type": "array",
- "items": {
- "$ref": "#/$defs/SetBlockAttrsRequestInput"
- }
+ "dimensions": {
+ "type": "integer"
+ },
+ "matched": {
+ "type": "boolean"
+ },
+ "msg": {
+ "type": "string"
}
},
"required": [
- "blockAttrs"
+ "matched"
],
"additionalProperties": false
},
- "BatchTaskListMarkerRequestInput": {
+ "AIFrontendCapabilityInput": {
"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": {
+ "actionEffects": {
"anyOf": [
{
- "$ref": "#/$defs/BazaarBodyGradient"
+ "type": "object",
+ "additionalProperties": {
+ "$ref": "#/$defs/AIToolEffectsInput"
+ }
},
{
"type": "null"
}
]
},
- "closeButtonBehavior": {
- "type": "integer"
- },
- "codeBlockThemeDark": {
- "type": "string"
- },
- "codeBlockThemeLight": {
- "type": "string"
- },
- "darkThemes": {
+ "description": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/BazaarAppearanceTheme"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "string"
},
{
"type": "null"
}
]
},
- "entryVisibility": {
+ "effects": {
"anyOf": [
{
- "$ref": "#/$defs/BazaarEntryVisibility"
+ "$ref": "#/$defs/AIToolEffectsInput"
},
{
"type": "null"
}
]
},
- "globalFontFamilies": {
+ "generation": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/BazaarEditorFont"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "hideStatusBar": {
- "type": "boolean"
- },
- "hideToolbar": {
- "type": "boolean"
- },
- "icon": {
- "type": "string"
- },
- "iconVer": {
- "type": "string"
+ "id": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "icons": {
+ "inputSchema": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/BazaarAppearanceIcon"
- },
- {
- "type": "null"
- }
- ]
+ "type": "object",
+ "additionalProperties": {
+ "$ref": "#/$defs/JSONValue"
}
},
{
@@ -1622,22 +1144,12 @@
}
]
},
- "lang": {
- "type": "string"
- },
- "lightThemes": {
+ "outputSchema": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/BazaarAppearanceTheme"
- },
- {
- "type": "null"
- }
- ]
+ "type": "object",
+ "additionalProperties": {
+ "$ref": "#/$defs/JSONValue"
}
},
{
@@ -1645,113 +1157,71 @@
}
]
},
- "mode": {
- "type": "integer"
- },
- "modeOS": {
- "type": "boolean"
- },
- "notifications": {
+ "ownerId": {
"anyOf": [
{
- "$ref": "#/$defs/BazaarNotifications"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "statusBar": {
+ "ownerName": {
"anyOf": [
{
- "$ref": "#/$defs/BazaarStatusBar"
+ "type": "string"
},
{
"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
- },
- "BazaarAppearanceIcon": {
- "type": "object",
- "properties": {
- "label": {
- "type": "string"
+ "source": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "name": {
- "type": "string"
+ "title": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
- "required": [
- "label",
- "name"
- ],
"additionalProperties": false
},
- "BazaarAppearancePackagesData": {
+ "AIMCPEnvironmentData": {
"type": "object",
"properties": {
- "appearance": {
+ "defaults": {
"anyOf": [
{
- "$ref": "#/$defs/BazaarAppearance"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "packages": {
+ "names": {
"anyOf": [
{
"type": "array",
"items": {
- "anyOf": [
- {
- "$ref": "#/$defs/BazaarPackage"
- },
- {
- "type": "null"
- }
- ]
+ "type": "string"
}
},
{
@@ -1761,108 +1231,114 @@
}
},
"required": [
- "appearance",
- "packages"
+ "defaults",
+ "names"
],
"additionalProperties": false
},
- "BazaarAppearanceTheme": {
+ "AIMCPIDRequestInput": {
"type": "object",
"properties": {
- "frontends": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "label": {
- "type": "string"
- },
- "name": {
- "type": "string"
+ "id": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
- "required": [
- "label",
- "name"
- ],
"additionalProperties": false
},
- "BazaarBodyGradient": {
+ "AIMCPStatus": {
"type": "object",
"properties": {
- "dark": {
- "$ref": "#/$defs/BazaarBodyGradientColor"
+ "authorizationURL": {
+ "type": "string"
},
- "light": {
- "$ref": "#/$defs/BazaarBodyGradientColor"
+ "authorized": {
+ "type": "boolean"
},
- "mode": {
+ "error": {
+ "type": "string"
+ },
+ "id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "status": {
"type": "string"
+ },
+ "tools": {
+ "type": "integer"
}
},
"required": [
- "dark",
- "light",
- "mode"
+ "authorized",
+ "id",
+ "name",
+ "status",
+ "tools"
],
"additionalProperties": false
},
- "BazaarBodyGradientColor": {
+ "AIMessageRequestInput": {
"type": "object",
"properties": {
- "color": {
+ "msg": {
"type": "string"
- },
- "opacity": {
- "type": "number"
}
},
"required": [
- "color",
- "opacity"
+ "msg"
],
"additionalProperties": false
},
- "BazaarEditorFont": {
+ "AIModelRequestInput": {
"type": "object",
"properties": {
- "displayName": {
+ "model": {
"type": "string"
},
- "family": {
- "type": "string"
+ "provider": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "weight": {
- "type": "integer"
+ "providerConfig": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingProviderInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
"required": [
- "displayName",
- "family",
- "weight"
+ "model"
],
"additionalProperties": false
},
- "BazaarEntryVisibility": {
+ "AIModelTestData": {
"type": "object",
"properties": {
- "active": {
- "type": "string"
- },
- "profiles": {
+ "available": {
"anyOf": [
{
"type": "array",
"items": {
- "anyOf": [
- {
- "$ref": "#/$defs/BazaarEntryVisibilityProfile"
- },
- {
- "type": "null"
- }
- ]
+ "type": "string"
}
},
{
@@ -1870,26 +1346,28 @@
}
]
},
- "version": {
- "type": "integer"
+ "matched": {
+ "type": "boolean"
+ },
+ "msg": {
+ "type": "string"
}
},
"required": [
- "active",
- "profiles",
- "version"
+ "available",
+ "matched"
],
"additionalProperties": false
},
- "BazaarEntryVisibilityProfile": {
+ "AIModelsData": {
"type": "object",
"properties": {
- "entries": {
+ "contextLengths": {
"anyOf": [
{
"type": "object",
"additionalProperties": {
- "type": "boolean"
+ "type": "integer"
}
},
{
@@ -1897,48 +1375,97 @@
}
]
},
- "id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "orders": {
+ "models": {
"anyOf": [
{
- "type": "object",
- "additionalProperties": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- {
- "type": "null"
- }
- ]
+ "type": "array",
+ "items": {
+ "type": "string"
}
},
{
"type": "null"
}
]
+ },
+ "msg": {
+ "type": "string"
}
},
"required": [
- "entries",
- "id",
- "name",
- "orders"
+ "contextLengths",
+ "models"
],
"additionalProperties": false
},
- "BazaarFunding": {
+ "AIPermissionData": {
"type": "object",
"properties": {
- "custom": {
+ "permissionMode": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "permissionMode"
+ ],
+ "additionalProperties": false
+ },
+ "AIPermissionRequestInput": {
+ "type": "object",
+ "properties": {
+ "permissionMode": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "sessionID": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "AIProviderRequestInput": {
+ "type": "object",
+ "properties": {
+ "provider": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "providerConfig": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingProviderInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "AIQuestionRequestInput": {
+ "type": "object",
+ "properties": {
+ "answers": {
"anyOf": [
{
"type": "array",
@@ -1951,159 +1478,185 @@
}
]
},
- "github": {
- "type": "string"
- },
- "links": {
- "type": "array",
- "items": {
- "$ref": "#/$defs/BazaarFundingLink"
- }
- },
- "openCollective": {
- "type": "string"
- },
- "patreon": {
- "type": "string"
+ "questionID": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
- "required": [
- "custom",
- "github",
- "openCollective",
- "patreon"
- ],
"additionalProperties": false
},
- "BazaarFundingLink": {
+ "AIReference": {
"type": "object",
"properties": {
- "label": {
+ "id": {
"type": "string"
},
- "url": {
+ "title": {
"type": "string"
}
},
"required": [
- "label",
- "url"
+ "id",
+ "title"
],
"additionalProperties": false
},
- "BazaarLocalInstallData": {
+ "AIReferenceInput": {
"type": "object",
"properties": {
- "minAppVersion": {
- "type": "string"
+ "id": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "packageName": {
- "type": "string"
+ "title": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "AIRerankTestData": {
+ "type": "object",
+ "properties": {
+ "matched": {
+ "type": "boolean"
},
- "packageType": {
+ "msg": {
"type": "string"
- },
- "updated": {
- "type": "boolean"
}
},
"required": [
- "packageName",
- "packageType",
- "updated"
+ "matched"
],
"additionalProperties": false
},
- "BazaarLocalInstallError": {
+ "AISSEBrowserCapabilityCall": {
"type": "object",
"properties": {
- "minAppVersion": {
- "type": "string"
+ "arguments": {
+ "anyOf": [
+ {
+ "type": "object",
+ "additionalProperties": {
+ "$ref": "#/$defs/JSONValue"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "packageName": {
+ "callID": {
"type": "string"
},
- "packageType": {
+ "capabilityID": {
"type": "string"
},
- "reason": {
- "type": "string",
- "enum": [
- "install-failed",
- "package-exists",
- "package-incompatible"
- ]
+ "generation": {
+ "type": "integer"
+ },
+ "name": {
+ "type": "string"
}
},
"required": [
- "minAppVersion",
- "packageName",
- "packageType",
- "reason"
+ "arguments",
+ "callID",
+ "capabilityID",
+ "generation",
+ "name"
],
"additionalProperties": false
},
- "BazaarLocalInstallResult": {
- "anyOf": [
- {
- "$ref": "#/$defs/BazaarLocalInstallData"
- },
- {
- "$ref": "#/$defs/BazaarLocalInstallError"
- }
- ]
- },
- "BazaarNotifications": {
+ "AISSEConfirm": {
"type": "object",
"properties": {
- "browserCompatibility": {
- "type": "boolean"
- },
- "docTreeMaxList": {
- "type": "boolean"
- },
- "formatPainterTip": {
- "type": "boolean"
+ "arguments": {
+ "anyOf": [
+ {
+ "type": "object",
+ "additionalProperties": {
+ "$ref": "#/$defs/JSONValue"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "selectAllIncompleteTip": {
- "type": "boolean"
+ "confirmID": {
+ "type": "string"
},
- "selectAllTip": {
- "type": "boolean"
+ "effects": {
+ "$ref": "#/$defs/AIToolEffects"
},
- "tagMaxList": {
+ "forced": {
"type": "boolean"
},
- "workspaceNotSSD": {
- "type": "boolean"
+ "name": {
+ "type": "string"
}
},
"required": [
- "browserCompatibility",
- "docTreeMaxList",
- "tagMaxList",
- "workspaceNotSSD"
+ "arguments",
+ "confirmID",
+ "effects",
+ "forced",
+ "name"
],
"additionalProperties": false
},
- "BazaarPackage": {
+ "AISSEFinish": {
"type": "object",
"properties": {
- "alternatives": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "author": {
+ "finishReason": {
"type": "string"
- },
- "backends": {
+ }
+ },
+ "required": [
+ "finishReason"
+ ],
+ "additionalProperties": false
+ },
+ "AISSEMessage": {
+ "type": "object",
+ "properties": {
+ "message": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "message"
+ ],
+ "additionalProperties": false
+ },
+ "AISSEQuestion": {
+ "type": "object",
+ "properties": {
+ "arguments": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
+ "type": "object",
+ "additionalProperties": {
+ "$ref": "#/$defs/JSONValue"
}
},
{
@@ -2111,33 +1664,101 @@
}
]
},
- "bazaarIncompatible": {
- "type": "boolean"
- },
- "bootAppearances": {
- "type": "array",
- "items": {
- "type": "string"
- }
+ "questionID": {
+ "type": "string"
},
- "current": {
- "type": "boolean"
+ "roundID": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "arguments",
+ "questionID",
+ "roundID"
+ ],
+ "additionalProperties": false
+ },
+ "AISSERetry": {
+ "type": "object",
+ "properties": {
+ "attempt": {
+ "type": "integer"
},
- "deprecated": {
- "type": "boolean"
+ "maxRetries": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "attempt",
+ "maxRetries"
+ ],
+ "additionalProperties": false
+ },
+ "AISSESnapshot": {
+ "type": "object",
+ "properties": {
+ "roundID": {
+ "type": "string"
},
- "deprecatedReason": {
- "type": "object",
- "additionalProperties": {
- "type": "string"
- }
+ "snapshotID": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "roundID",
+ "snapshotID"
+ ],
+ "additionalProperties": false
+ },
+ "AISSEStart": {
+ "type": "object",
+ "properties": {
+ "taskID": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "taskID"
+ ],
+ "additionalProperties": false
+ },
+ "AISSEThinking": {
+ "type": "object",
+ "properties": {
+ "reasoning": {
+ "type": "string"
},
- "description": {
+ "roundID": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "reasoning",
+ "roundID"
+ ],
+ "additionalProperties": false
+ },
+ "AISSEToken": {
+ "type": "object",
+ "properties": {
+ "token": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "token"
+ ],
+ "additionalProperties": false
+ },
+ "AISSEToolCall": {
+ "type": "object",
+ "properties": {
+ "arguments": {
"anyOf": [
{
"type": "object",
"additionalProperties": {
- "type": "string"
+ "$ref": "#/$defs/JSONValue"
}
},
{
@@ -2145,99 +1766,218 @@
}
]
},
- "disabledInPublish": {
- "type": "boolean"
+ "callID": {
+ "type": "string"
},
- "disallowInstall": {
- "type": "boolean"
+ "name": {
+ "type": "string"
},
- "disallowUpdate": {
- "type": "boolean"
+ "roundID": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "arguments",
+ "callID",
+ "name",
+ "roundID"
+ ],
+ "additionalProperties": false
+ },
+ "AISSEToolResult": {
+ "type": "object",
+ "properties": {
+ "callID": {
+ "type": "string"
},
- "displayName": {
+ "name": {
+ "type": "string"
+ },
+ "result": {
+ "type": "string"
+ },
+ "roundID": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "callID",
+ "name",
+ "result",
+ "roundID"
+ ],
+ "additionalProperties": false
+ },
+ "AISSETurn": {
+ "type": "object",
+ "properties": {
+ "turnID": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "turnID"
+ ],
+ "additionalProperties": false
+ },
+ "AISSEUsage": {
+ "type": "object",
+ "properties": {
+ "cachedTokens": {
+ "type": "integer"
+ },
+ "completionTokens": {
+ "type": "integer"
+ },
+ "contextLimit": {
+ "type": "integer"
+ },
+ "lastPromptTokens": {
+ "type": "integer"
+ },
+ "promptTokens": {
+ "type": "integer"
+ },
+ "tokenBreakdown": {
"anyOf": [
{
"type": "object",
"additionalProperties": {
- "type": "string"
+ "type": "integer"
}
},
{
"type": "null"
}
]
+ }
+ },
+ "required": [
+ "cachedTokens",
+ "completionTokens",
+ "contextLimit",
+ "lastPromptTokens",
+ "promptTokens",
+ "tokenBreakdown"
+ ],
+ "additionalProperties": false
+ },
+ "AISessionEntry": {
+ "type": "object",
+ "properties": {
+ "answers": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
- "downloads": {
- "type": "integer"
- },
- "enabled": {
- "type": "boolean"
- },
- "frontends": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- {
- "type": "null"
- }
- ]
+ "args": {
+ "type": "object",
+ "additionalProperties": {
+ "$ref": "#/$defs/JSONValue"
+ }
},
- "funding": {
- "anyOf": [
- {
- "$ref": "#/$defs/BazaarFunding"
- },
- {
- "type": "null"
- }
- ]
+ "blockHTML": {
+ "type": "string"
},
- "hInstallDate": {
+ "completionTokens": {
+ "type": "integer"
+ },
+ "confirmID": {
"type": "string"
},
- "hInstallSize": {
+ "content": {
"type": "string"
},
- "hSize": {
+ "duration": {
+ "type": "number"
+ },
+ "editorContext": {
+ "$ref": "#/$defs/AIEditorContext"
+ },
+ "id": {
"type": "string"
},
- "hUpdated": {
+ "name": {
"type": "string"
},
- "hasStorageData": {
- "type": "boolean"
+ "promptTokens": {
+ "type": "integer"
},
- "icon": {
+ "questionID": {
"type": "string"
},
- "iconURL": {
+ "questions": {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "type": "object",
+ "additionalProperties": {
+ "$ref": "#/$defs/JSONValue"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "reasoningContent": {
"type": "string"
},
- "installSize": {
- "type": "integer"
+ "references": {
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/AIReference"
+ }
},
- "installTime": {
+ "responseOutput": {
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/JSONValue"
+ }
+ },
+ "responseOutputTokens": {
"type": "integer"
},
- "installed": {
- "type": "boolean"
+ "roundID": {
+ "type": "string"
},
- "installedIncompatible": {
- "type": "boolean"
+ "snapshotID": {
+ "type": "string"
},
- "invalidReason": {
- "type": "string",
- "enum": [
- "missing-manifest",
- "invalid-manifest",
- "name-mismatch"
- ]
+ "status": {
+ "type": "string"
},
- "kernels": {
+ "steps": {
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/AISessionEntryStep"
+ }
+ },
+ "timestamp": {
+ "type": "integer"
+ },
+ "toolCalls": {
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/AIAgentToolCall"
+ }
+ },
+ "type": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "type"
+ ],
+ "additionalProperties": false
+ },
+ "AISessionEntryInput": {
+ "type": "object",
+ "properties": {
+ "answers": {
"anyOf": [
{
"type": "array",
@@ -2250,12 +1990,12 @@
}
]
},
- "keywords": {
+ "args": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
+ "type": "object",
+ "additionalProperties": {
+ "$ref": "#/$defs/JSONValue"
}
},
{
@@ -2263,64 +2003,122 @@
}
]
},
- "minAppVersion": {
- "type": "string"
- },
- "modes": {
+ "blockHTML": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "type": "string"
},
{
"type": "null"
}
]
},
- "name": {
- "type": "string"
- },
- "openIssues": {
- "type": "integer"
- },
- "outdated": {
- "type": "boolean"
- },
- "preferredDeprecatedReason": {
- "type": "string"
+ "completionTokens": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "preferredDesc": {
- "type": "string"
+ "confirmID": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "preferredFunding": {
- "type": "string"
+ "content": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "preferredName": {
- "type": "string"
+ "duration": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "preferredReadme": {
- "type": "string"
+ "editorContext": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AIEditorContextInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "preview": {
- "type": "string"
+ "id": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "previewURL": {
- "type": "string"
+ "name": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "rating": {
- "$ref": "#/$defs/BazaarPackageRating"
+ "promptTokens": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "ratingAvailable": {
- "type": "boolean"
+ "questionID": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "readme": {
+ "questions": {
"anyOf": [
{
- "type": "object",
- "additionalProperties": {
- "type": "string"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "type": "object",
+ "additionalProperties": {
+ "$ref": "#/$defs/JSONValue"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
{
@@ -2328,101 +2126,122 @@
}
]
},
- "repoHash": {
- "type": "string"
- },
- "repoRef": {
- "type": "string"
+ "reasoningContent": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "repoURL": {
- "type": "string"
+ "references": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/AIReferenceInput"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "size": {
- "type": "integer"
+ "responseOutput": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/JSONValue"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "stars": {
- "type": "integer"
+ "responseOutputTokens": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "updateRequiredMinAppVer": {
- "type": "string"
+ "roundID": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "updateTime": {
- "type": "integer"
+ "snapshotID": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "updated": {
- "type": "string"
+ "status": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "url": {
- "type": "string"
+ "steps": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/AISessionEntryStepInput"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "userDisabledInPublish": {
- "type": "boolean"
+ "timestamp": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "version": {
- "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"
- ],
- "additionalProperties": false
- },
- "BazaarPackageDetail": {
- "type": "object",
- "properties": {
- "available": {
+ "toolCalls": {
"anyOf": [
{
- "$ref": "#/$defs/BazaarPackage"
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/AIAgentToolCallInput"
+ }
},
{
"type": "null"
}
]
},
- "installed": {
+ "type": {
"anyOf": [
{
- "$ref": "#/$defs/BazaarPackage"
+ "type": "string"
},
{
"type": "null"
@@ -2430,311 +2249,180 @@
]
}
},
- "required": [
- "available",
- "installed"
- ],
"additionalProperties": false
},
- "BazaarPackageRating": {
+ "AISessionEntryStep": {
"type": "object",
"properties": {
- "average": {
- "type": "number"
+ "content": {
+ "type": "string"
},
- "count": {
- "type": "integer"
+ "reasoning": {
+ "type": "string"
},
- "distribution": {
+ "reasoningContent": {
+ "type": "string"
+ },
+ "roundID": {
+ "type": "string"
+ },
+ "toolCallIDs": {
"type": "array",
"items": {
- "type": "integer"
- },
- "minItems": 5,
- "maxItems": 5
- }
- },
- "required": [
- "average",
- "count",
- "distribution"
- ],
- "additionalProperties": false
- },
- "BazaarPackageSizeData": {
- "type": "object",
- "properties": {
- "hInstallSize": {
- "type": "string"
+ "type": "string"
+ }
},
- "installSize": {
- "type": "integer"
+ "toolNames": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
}
},
"required": [
- "hInstallSize",
- "installSize"
+ "reasoning"
],
"additionalProperties": false
},
- "BazaarPackagesData": {
+ "AISessionEntryStepInput": {
"type": "object",
"properties": {
- "packages": {
+ "content": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "reasoning": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "reasoningContent": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "roundID": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "toolCallIDs": {
"anyOf": [
{
"type": "array",
"items": {
- "anyOf": [
- {
- "$ref": "#/$defs/BazaarPackage"
- },
- {
- "type": "null"
- }
- ]
+ "type": "string"
}
},
{
"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"
+ "toolNames": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
]
}
},
- "required": [
- "errorCode"
- ],
"additionalProperties": false
},
- "BazaarRatingResult": {
- "anyOf": [
- {
- "$ref": "#/$defs/BazaarRatingData"
- },
- {
- "$ref": "#/$defs/BazaarRatingError"
- }
- ]
- },
- "BazaarRatingsData": {
+ "AISessionExtensionAIAgentAttachment": {
"type": "object",
"properties": {
- "eligiblePackageNames": {
+ "detail": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "type": "string"
},
{
"type": "null"
}
]
},
- "ratings": {
+ "documentId": {
"anyOf": [
{
- "type": "object",
- "additionalProperties": {
- "anyOf": [
- {
- "$ref": "#/$defs/BazaarPackageRating"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "string"
},
{
"type": "null"
}
]
- }
- },
- "required": [
- "eligiblePackageNames",
- "ratings"
- ],
- "additionalProperties": false
- },
- "BazaarStatusBar": {
- "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
- },
- "BazaarUpdatedData": {
- "type": "object",
- "properties": {
- "icons": {
+ "height": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/BazaarPackageDetail"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "plugins": {
+ "mimeType": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/BazaarPackageDetail"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "string"
},
{
"type": "null"
}
]
},
- "templates": {
+ "path": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/BazaarPackageDetail"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "string"
},
{
"type": "null"
}
]
},
- "themes": {
+ "type": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/BazaarPackageDetail"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "string"
},
{
"type": "null"
}
]
},
- "widgets": {
+ "width": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/BazaarPackageDetail"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "integer"
},
{
"type": "null"
@@ -2742,137 +2430,92 @@
]
}
},
- "required": [
- "icons",
- "plugins",
- "templates",
- "themes",
- "widgets"
- ],
- "additionalProperties": false
+ "additionalProperties": {
+ "$ref": "#/$defs/JSONValue"
+ }
},
- "BazaarUserRatingsData": {
+ "AISessionExtensionAIAgentAttachmentInput": {
"type": "object",
"properties": {
- "eligiblePackageNames": {
+ "detail": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "type": "string"
},
{
"type": "null"
}
]
},
- "userRatings": {
+ "documentId": {
"anyOf": [
{
- "type": "object",
- "additionalProperties": {
- "type": "integer"
- }
+ "type": "string"
},
{
"type": "null"
}
]
- }
- },
- "required": [
- "eligiblePackageNames",
- "userRatings"
- ],
- "additionalProperties": false
- },
- "BazaarUserRatingsResult": {
- "anyOf": [
- {
- "$ref": "#/$defs/BazaarUserRatingsData"
- },
- {
- "$ref": "#/$defs/BazaarRatingError"
- }
- ]
- },
- "BlockBreadcrumbChildren": {
- "type": "object",
- "properties": {
- "hasMore": {
- "type": "boolean"
},
- "items": {
+ "height": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/BlockPath"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "integer"
},
{
"type": "null"
}
]
- }
- },
- "required": [
- "hasMore",
- "items"
- ],
- "additionalProperties": false
- },
- "BlockBreadcrumbChildrenRequestInput": {
- "type": "object",
- "properties": {
- "excludeTypes": {
+ },
+ "mimeType": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "type": "string"
},
{
"type": "null"
}
]
},
- "id": {
- "type": "string"
- },
- "ids": {
+ "path": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "type": "string"
},
{
"type": "null"
}
]
},
- "limit": {
+ "type": {
"anyOf": [
{
- "type": "number"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "notebook": {
+ "width": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "additionalProperties": {
+ "$ref": "#/$defs/JSONValue"
+ }
+ },
+ "AISessionExtensionAIAgentGoogleToolCallProviderData": {
+ "type": "object",
+ "properties": {
+ "thoughtSignature": {
"anyOf": [
{
"type": "string"
@@ -2881,11 +2524,19 @@
"type": "null"
}
]
- },
- "offset": {
+ }
+ },
+ "additionalProperties": {
+ "$ref": "#/$defs/JSONValue"
+ }
+ },
+ "AISessionExtensionAIAgentGoogleToolCallProviderDataInput": {
+ "type": "object",
+ "properties": {
+ "thoughtSignature": {
"anyOf": [
{
- "type": "number"
+ "type": "string"
},
{
"type": "null"
@@ -2893,44 +2544,34 @@
]
}
},
- "required": [
- "id"
- ],
- "additionalProperties": false
+ "additionalProperties": {
+ "$ref": "#/$defs/JSONValue"
+ }
},
- "BlockBreadcrumbRequestInput": {
+ "AISessionExtensionAIAgentMessage": {
"type": "object",
"properties": {
- "excludeTypes": {
+ "content": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "type": "string"
},
{
"type": "null"
}
]
},
- "id": {
- "type": "string"
- },
- "ids": {
+ "editorContext": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "$ref": "#/$defs/AISessionExtensionAIEditorContext"
},
{
"type": "null"
}
]
},
- "notebook": {
+ "entryID": {
"anyOf": [
{
"type": "string"
@@ -2939,106 +2580,23 @@
"type": "null"
}
]
- }
- },
- "required": [
- "id"
- ],
- "additionalProperties": false
- },
- "BlockDOMData": {
- "type": "object",
- "properties": {
- "dom": {
- "type": "string"
- },
- "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"
+ "reasoningContent": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "ids": {
+ "references": {
"anyOf": [
{
"type": "array",
"items": {
- "type": "string"
+ "$ref": "#/$defs/AISessionExtensionAIReference"
}
},
{
@@ -3046,42 +2604,30 @@
}
]
},
- "notebook": {
+ "responseOutput": {
"anyOf": [
{
- "type": "string"
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/JSONValue"
+ }
},
{
"type": "null"
}
]
- }
- },
- "required": [
- "id"
- ],
- "additionalProperties": false
- },
- "BlockInsertInputInput": {
- "type": "object",
- "properties": {
- "data": {
- "type": "string"
},
- "dataType": {
- "type": "string"
- },
- "nextID": {
+ "responseOutputTokens": {
"anyOf": [
{
- "type": "string"
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "parentID": {
+ "role": {
"anyOf": [
{
"type": "string"
@@ -3091,7 +2637,7 @@
}
]
},
- "previousID": {
+ "roundID": {
"anyOf": [
{
"type": "string"
@@ -3100,50 +2646,49 @@
"type": "null"
}
]
- }
- },
- "required": [
- "data",
- "dataType"
- ],
- "additionalProperties": false
- },
- "BlockKramdownData": {
- "type": "object",
- "properties": {
- "id": {
- "type": "string"
},
- "kramdown": {
- "type": "string"
+ "toolCalls": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/AISessionExtensionAIAgentToolCall"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
- "required": [
- "id",
- "kramdown"
- ],
- "additionalProperties": false
+ "additionalProperties": {
+ "$ref": "#/$defs/JSONValue"
+ }
},
- "BlockKramdownRequestInput": {
+ "AISessionExtensionAIAgentMessageInput": {
"type": "object",
"properties": {
- "id": {
- "type": "string"
+ "content": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "ids": {
+ "editorContext": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "$ref": "#/$defs/AISessionExtensionAIEditorContextInput"
},
{
"type": "null"
}
]
},
- "mode": {
+ "entryID": {
"anyOf": [
{
"type": "string"
@@ -3153,7 +2698,7 @@
}
]
},
- "notebook": {
+ "reasoningContent": {
"anyOf": [
{
"type": "string"
@@ -3162,45 +2707,13 @@
"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": {
+ "references": {
"anyOf": [
{
"type": "array",
"items": {
- "type": "string"
+ "$ref": "#/$defs/AISessionExtensionAIReferenceInput"
}
},
{
@@ -3208,12 +2721,12 @@
}
]
},
- "context": {
+ "responseOutput": {
"anyOf": [
{
- "type": "object",
- "additionalProperties": {
- "type": "string"
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/JSONValue"
}
},
{
@@ -3221,167 +2734,86 @@
}
]
},
- "data": {
+ "responseOutputTokens": {
"anyOf": [
{
- "type": "null"
+ "type": "integer"
},
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "role": {
+ "anyOf": [
{
"type": "string"
},
{
- "$ref": "#/$defs/BlockDeleteData"
+ "type": "null"
}
]
},
- "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": {
+ "roundID": {
"anyOf": [
- {
- "type": "null"
- },
{
"type": "string"
},
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "type": "null"
}
]
},
- "rootID": {
- "type": "string"
- },
- "rowID": {
- "type": "string"
- },
- "srcIDs": {
+ "toolCalls": {
"anyOf": [
{
"type": "array",
"items": {
- "type": "string"
+ "$ref": "#/$defs/AISessionExtensionAIAgentToolCallInput"
}
},
{
"type": "null"
}
]
- },
- "srcs": {
- "type": "null"
- },
- "targetGroupID": {
- "type": "string"
- },
- "type": {
- "type": "string",
- "enum": [
- ""
- ]
- },
- "viewID": {
- "type": "string"
- },
- "viewIDs": {
- "type": "array",
- "items": {
- "type": "string"
- }
}
},
- "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"
- ],
- "additionalProperties": false
+ "additionalProperties": {
+ "$ref": "#/$defs/JSONValue"
+ }
},
- "BlockPath": {
+ "AISessionExtensionAIAgentToolCall": {
"type": "object",
"properties": {
- "children": {
+ "arguments": {
+ "anyOf": [
+ {
+ "type": "object",
+ "additionalProperties": {
+ "$ref": "#/$defs/JSONValue"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "argumentsJSON": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "attachments": {
"anyOf": [
{
"type": "array",
"items": {
- "anyOf": [
- {
- "$ref": "#/$defs/BlockPath"
- },
- {
- "type": "null"
- }
- ]
+ "$ref": "#/$defs/AISessionExtensionAIAgentAttachment"
}
},
{
@@ -3389,51 +2821,47 @@
}
]
},
- "hasChildren": {
- "type": "boolean"
- },
"id": {
- "type": "string"
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
"name": {
- "type": "string"
- },
- "subType": {
- "type": "string"
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "type": {
- "type": "string"
- }
- },
- "required": [
- "children",
- "id",
- "name",
- "subType",
- "type"
- ],
- "additionalProperties": false
- },
- "BlockQueryRequestInput": {
- "type": "object",
- "properties": {
- "id": {
- "type": "string"
+ "providerData": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AISessionExtensionAIAgentToolCallProviderData"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "ids": {
+ "result": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "type": "string"
},
{
"type": "null"
}
]
},
- "notebook": {
+ "state": {
"anyOf": [
{
"type": "string"
@@ -3444,115 +2872,19 @@
]
}
},
- "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"
- },
- "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
+ "additionalProperties": {
+ "$ref": "#/$defs/JSONValue"
+ }
},
- "BlockTransaction": {
+ "AISessionExtensionAIAgentToolCallInput": {
"type": "object",
"properties": {
- "doOperations": {
+ "arguments": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/BlockOperation"
- },
- {
- "type": "null"
- }
- ]
+ "type": "object",
+ "additionalProperties": {
+ "$ref": "#/$defs/JSONValue"
}
},
{
@@ -3560,83 +2892,29 @@
}
]
},
- "templateDocTreePlanID": {
- "type": "string"
- },
- "timestamp": {
- "type": "integer"
+ "argumentsJSON": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "undoOperations": {
+ "attachments": {
"anyOf": [
{
"type": "array",
"items": {
- "anyOf": [
- {
- "$ref": "#/$defs/BlockOperation"
- },
- {
- "type": "null"
- }
- ]
+ "$ref": "#/$defs/AISessionExtensionAIAgentAttachmentInput"
}
},
{
"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": {
"anyOf": [
{
@@ -3647,13 +2925,27 @@
}
]
},
- "ids": {
- "type": "array",
- "items": {
- "type": "string"
- }
+ "name": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "mode": {
+ "providerData": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AISessionExtensionAIAgentToolCallProviderDataInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "result": {
"anyOf": [
{
"type": "string"
@@ -3663,7 +2955,7 @@
}
]
},
- "notebook": {
+ "state": {
"anyOf": [
{
"type": "string"
@@ -3674,34 +2966,35 @@
]
}
},
- "required": [
- "ids"
- ],
- "additionalProperties": false
+ "additionalProperties": {
+ "$ref": "#/$defs/JSONValue"
+ }
},
- "BlocksQueryRequestInput": {
+ "AISessionExtensionAIAgentToolCallProviderData": {
"type": "object",
"properties": {
- "id": {
+ "google": {
"anyOf": [
{
- "type": "string"
+ "$ref": "#/$defs/AISessionExtensionAIAgentGoogleToolCallProviderData"
},
{
"type": "null"
}
]
- },
- "ids": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "notebook": {
+ }
+ },
+ "additionalProperties": {
+ "$ref": "#/$defs/JSONValue"
+ }
+ },
+ "AISessionExtensionAIAgentToolCallProviderDataInput": {
+ "type": "object",
+ "properties": {
+ "google": {
"anyOf": [
{
- "type": "string"
+ "$ref": "#/$defs/AISessionExtensionAIAgentGoogleToolCallProviderDataInput"
},
{
"type": "null"
@@ -3709,15 +3002,14 @@
]
}
},
- "required": [
- "ids"
- ],
- "additionalProperties": false
+ "additionalProperties": {
+ "$ref": "#/$defs/JSONValue"
+ }
},
- "BlocksWordCountRequestInput": {
+ "AISessionExtensionAIEditorContext": {
"type": "object",
"properties": {
- "id": {
+ "activeDocID": {
"anyOf": [
{
"type": "string"
@@ -3727,13 +3019,7 @@
}
]
},
- "ids": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "notebook": {
+ "activeDocTitle": {
"anyOf": [
{
"type": "string"
@@ -3743,38 +3029,32 @@
}
]
},
- "reqId": {
+ "focusedBlockID": {
"anyOf": [
{
- "$ref": "#/$defs/JSONValue"
+ "type": "string"
},
{
"type": "null"
}
]
- }
- },
- "required": [
- "ids"
- ],
- "additionalProperties": false
- },
- "Bookmark": {
- "type": "object",
- "properties": {
- "blocks": {
+ },
+ "notebookID": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "selectedBlockIDs": {
"anyOf": [
{
"type": "array",
"items": {
- "anyOf": [
- {
- "$ref": "#/$defs/SearchBlock"
- },
- {
- "type": "null"
- }
- ]
+ "type": "string"
}
},
{
@@ -3782,258 +3062,204 @@
}
]
},
- "count": {
- "type": "integer"
- },
- "depth": {
- "type": "integer"
- },
- "name": {
- "type": "string"
- },
- "type": {
- "type": "string"
+ "visibleBlockIDs": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
- "required": [
- "blocks",
- "count",
- "depth",
- "name",
- "type"
- ],
- "additionalProperties": false
+ "additionalProperties": {
+ "$ref": "#/$defs/JSONValue"
+ }
},
- "BootProgressData": {
+ "AISessionExtensionAIEditorContextInput": {
"type": "object",
"properties": {
- "details": {
- "type": "string"
+ "activeDocID": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "progress": {
- "type": "integer"
- }
- },
- "required": [
- "details",
- "progress"
- ],
- "additionalProperties": false
- },
- "BroadcastChannel": {
- "type": "object",
- "properties": {
- "count": {
- "type": "integer"
+ "activeDocTitle": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "name": {
- "type": "string"
- }
- },
- "required": [
- "count",
- "name"
- ],
- "additionalProperties": false
- },
- "BroadcastChannelData": {
- "type": "object",
- "properties": {
- "channel": {
+ "focusedBlockID": {
"anyOf": [
{
- "$ref": "#/$defs/BroadcastChannel"
+ "type": "string"
},
{
"type": "null"
}
]
- }
- },
- "required": [
- "channel"
- ],
- "additionalProperties": false
- },
- "BroadcastChannelRequestInput": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
- }
- },
- "required": [
- "name"
- ],
- "additionalProperties": false
- },
- "BroadcastChannelsData": {
- "type": "object",
- "properties": {
- "channels": {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/BroadcastChannel"
- },
- {
- "type": "null"
+ },
+ "notebookID": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "selectedBlockIDs": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
}
- ]
- }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "visibleBlockIDs": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
- "required": [
- "channels"
- ],
- "additionalProperties": false
+ "additionalProperties": {
+ "$ref": "#/$defs/JSONValue"
+ }
},
- "BroadcastMessageRequestInput": {
+ "AISessionExtensionAIReference": {
"type": "object",
"properties": {
- "channel": {
- "type": "string"
+ "id": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "message": {
- "type": "string"
+ "title": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
- "required": [
- "channel",
- "message"
- ],
- "additionalProperties": false
+ "additionalProperties": {
+ "$ref": "#/$defs/JSONValue"
+ }
},
- "BroadcastPublishData": {
+ "AISessionExtensionAIReferenceInput": {
"type": "object",
"properties": {
- "results": {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/BroadcastPublishResult"
- },
- {
- "type": "null"
- }
- ]
- }
+ "id": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "title": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
- "required": [
- "results"
- ],
- "additionalProperties": false
+ "additionalProperties": {
+ "$ref": "#/$defs/JSONValue"
+ }
},
- "BroadcastPublishMessage": {
+ "AISessionExtensionAISessionEntry": {
"type": "object",
"properties": {
- "filename": {
- "type": "string"
- },
- "size": {
- "type": "integer"
+ "answers": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "type": {
- "type": "string",
- "enum": [
- "string",
- "binary"
+ "args": {
+ "anyOf": [
+ {
+ "type": "object",
+ "additionalProperties": {
+ "$ref": "#/$defs/JSONValue"
+ }
+ },
+ {
+ "type": "null"
+ }
]
- }
- },
- "required": [
- "filename",
- "size",
- "type"
- ],
- "additionalProperties": false
- },
- "BroadcastPublishResult": {
- "type": "object",
- "properties": {
- "channel": {
- "$ref": "#/$defs/BroadcastChannel"
- },
- "code": {
- "type": "integer"
- },
- "message": {
- "$ref": "#/$defs/BroadcastPublishMessage"
- },
- "msg": {
- "type": "string"
- }
- },
- "required": [
- "channel",
- "code",
- "message",
- "msg"
- ],
- "additionalProperties": false
- },
- "ChangeMasterPasswordRequestInput": {
- "type": "object",
- "properties": {
- "newPassword": {
- "type": "string"
},
- "oldPassword": {
- "type": "string"
- }
- },
- "required": [
- "newPassword",
- "oldPassword"
- ],
- "additionalProperties": false
- },
- "ChangeSortNotebookRequestInput": {
- "type": "object",
- "properties": {
- "notebooks": {
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- },
- "required": [
- "notebooks"
- ],
- "additionalProperties": false
- },
- "CheckActivationCodeRequestInput": {
- "type": "object",
- "properties": {
- "data": {
- "type": "string"
- }
- },
- "required": [
- "data"
- ],
- "additionalProperties": false
- },
- "CheckBlockRefRequestInput": {
- "type": "object",
- "properties": {
- "deletedIDs": {
- "type": "array",
- "items": {
- "type": "string"
- }
+ "blockHTML": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "exactIDs": {
- "type": "array",
- "items": {
- "type": "string"
- }
+ "completionTokens": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "id": {
+ "confirmID": {
"anyOf": [
{
"type": "string"
@@ -4043,13 +3269,7 @@
}
]
},
- "ids": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "notebook": {
+ "content": {
"anyOf": [
{
"type": "string"
@@ -4059,21 +3279,26 @@
}
]
},
- "paths": {
- "type": "array",
- "items": {
- "type": "string"
- }
+ "duration": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "editorContext": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AISessionExtensionAIEditorContext"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "scope": {
- "type": "string"
- }
- },
- "additionalProperties": false
- },
- "CheckBlocksExistRequestInput": {
- "type": "object",
- "properties": {
"id": {
"anyOf": [
{
@@ -4084,13 +3309,7 @@
}
]
},
- "ids": {
- "type": "array",
- "items": {
- "$ref": "#/$defs/JSONValue"
- }
- },
- "notebook": {
+ "name": {
"anyOf": [
{
"type": "string"
@@ -4099,32 +3318,18 @@
"type": "null"
}
]
- }
- },
- "required": [
- "ids"
- ],
- "additionalProperties": false
- },
- "CheckSnapshotData": {
- "type": "object",
- "properties": {
- "changed": {
- "type": "boolean"
- }
- },
- "required": [
- "changed"
- ],
- "additionalProperties": false
- },
- "CheckoutRepoRequestInput": {
- "type": "object",
- "properties": {
- "id": {
- "type": "string"
},
- "sessionID": {
+ "promptTokens": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "questionID": {
"anyOf": [
{
"type": "string"
@@ -4133,288 +3338,297 @@
"type": "null"
}
]
- }
- },
- "required": [
- "id"
- ],
- "additionalProperties": false
- },
- "ChildBlock": {
- "type": "object",
- "properties": {
- "content": {
- "type": "string"
},
- "id": {
- "type": "string"
+ "questions": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "type": "object",
+ "additionalProperties": {
+ "$ref": "#/$defs/JSONValue"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "markdown": {
- "type": "string"
+ "reasoningContent": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "subType": {
- "type": "string"
+ "references": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/AISessionExtensionAIReference"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "type": {
- "type": "string"
- }
- },
- "required": [
- "id",
- "type"
- ],
- "additionalProperties": false
- },
- "CleanupRichTextRequestInput": {
- "type": "object",
- "properties": {
- "batch": {
- "type": "string"
- },
- "groups": {
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- },
- "required": [
- "batch",
- "groups"
- ],
- "additionalProperties": false
- },
- "ClipboardFile": {
- "type": "object",
- "properties": {
- "isDir": {
- "type": "boolean"
- },
- "name": {
- "type": "string"
+ "responseOutput": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/JSONValue"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "path": {
- "type": "string"
+ "responseOutputTokens": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "size": {
- "type": "integer"
+ "roundID": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "updated": {
- "type": "integer"
- }
- },
- "required": [
- "isDir",
- "name",
- "path",
- "size",
- "updated"
- ],
- "additionalProperties": false
- },
- "ClipboardPathRequestInput": {
- "type": "object",
- "properties": {
- "path": {
- "type": "string"
- }
- },
- "required": [
- "path"
- ],
- "additionalProperties": false
- },
- "CloseNotebookRequestInput": {
- "type": "object",
- "properties": {
- "notebook": {
- "type": "string"
- }
- },
- "required": [
- "notebook"
- ],
- "additionalProperties": false
- },
- "CloudBackup": {
- "type": "object",
- "properties": {
- "hSize": {
- "type": "string"
+ "snapshotID": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "saveDir": {
- "type": "string"
+ "status": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "size": {
- "type": "integer"
+ "steps": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/AISessionExtensionAISessionEntryStep"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "updated": {
- "type": "string"
- }
- },
- "required": [
- "hSize",
- "saveDir",
- "size",
- "updated"
- ],
- "additionalProperties": false
- },
- "CloudReminderRequestInput": {
- "type": "object",
- "properties": {
- "content": {
- "type": "string"
+ "timestamp": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "id": {
- "type": "string"
+ "toolCalls": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/AISessionExtensionAIAgentToolCall"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "timed": {
- "type": "string"
+ "type": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
- "required": [
- "content",
- "id",
- "timed"
- ],
- "additionalProperties": false
+ "additionalProperties": {
+ "$ref": "#/$defs/JSONValue"
+ }
},
- "CloudSpaceData": {
+ "AISessionExtensionAISessionEntryInput": {
"type": "object",
"properties": {
- "backup": {
+ "answers": {
"anyOf": [
{
- "$ref": "#/$defs/CloudBackup"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "hAssetSize": {
- "type": "string"
- },
- "hExchangeSize": {
- "type": "string"
- },
- "hSize": {
- "type": "string"
- },
- "hTotalSize": {
- "type": "string"
- },
- "hTrafficAPIGet": {
- "type": "string"
- },
- "hTrafficAPIPut": {
- "type": "string"
+ "args": {
+ "anyOf": [
+ {
+ "type": "object",
+ "additionalProperties": {
+ "$ref": "#/$defs/JSONValue"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "hTrafficDownloadSize": {
- "type": "string"
+ "blockHTML": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "hTrafficUploadSize": {
- "type": "string"
+ "completionTokens": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "sync": {
+ "confirmID": {
"anyOf": [
{
- "$ref": "#/$defs/CloudSync"
+ "type": "string"
},
{
"type": "null"
}
]
- }
- },
- "required": [
- "backup",
- "hAssetSize",
- "hExchangeSize",
- "hSize",
- "hTotalSize",
- "hTrafficAPIGet",
- "hTrafficAPIPut",
- "hTrafficDownloadSize",
- "hTrafficUploadSize",
- "sync"
- ],
- "additionalProperties": false
- },
- "CloudSync": {
- "type": "object",
- "properties": {
- "cloudName": {
- "type": "string"
- },
- "hSize": {
- "type": "string"
- },
- "saveDir": {
- "type": "string"
},
- "size": {
- "type": "integer"
+ "content": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "updated": {
- "type": "string"
- }
- },
- "required": [
- "cloudName",
- "hSize",
- "saveDir",
- "size",
- "updated"
- ],
- "additionalProperties": false
- },
- "CloudSyncDir": {
- "type": "object",
- "properties": {
- "cloudName": {
- "type": "string"
+ "duration": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "hSize": {
- "type": "string"
+ "editorContext": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AISessionExtensionAIEditorContextInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "saveDir": {
- "type": "string"
+ "id": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "size": {
- "type": "integer"
+ "name": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "updated": {
- "type": "string"
- }
- },
- "required": [
- "cloudName",
- "hSize",
- "saveDir",
- "size",
- "updated"
- ],
- "additionalProperties": false
- },
- "CloudSyncDirsData": {
- "type": "object",
- "properties": {
- "checkedSyncDir": {
- "type": "string"
+ "promptTokens": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "hSize": {
- "type": "string"
+ "questionID": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "syncDirs": {
+ "questions": {
"anyOf": [
{
"type": "array",
"items": {
"anyOf": [
{
- "$ref": "#/$defs/CloudSyncDir"
+ "type": "object",
+ "additionalProperties": {
+ "$ref": "#/$defs/JSONValue"
+ }
},
{
"type": "null"
@@ -4426,282 +3640,89 @@
"type": "null"
}
]
- }
- },
- "required": [
- "checkedSyncDir",
- "hSize",
- "syncDirs"
- ],
- "additionalProperties": false
- },
- "ContentWordCountRequestInput": {
- "type": "object",
- "properties": {
- "content": {
- "type": "string"
},
- "reqId": {
+ "reasoningContent": {
"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": {
+ "references": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/AISessionExtensionAIReferenceInput"
+ }
},
{
"type": "null"
}
]
},
- "assetsDestSpace2Underscore": {
+ "responseOutput": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/JSONValue"
+ }
},
{
"type": "null"
}
]
},
- "fillCSSVar": {
+ "responseOutputTokens": {
"anyOf": [
{
- "type": "boolean"
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "id": {
- "type": "string"
+ "roundID": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "imgTag": {
+ "snapshotID": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"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": {
+ "status": {
"anyOf": [
{
- "$ref": "#/$defs/Notebook"
+ "type": "string"
},
{
"type": "null"
}
]
- }
- },
- "required": [
- "notebook"
- ],
- "additionalProperties": false
- },
- "CreateNotebookRequestInput": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
- }
- },
- "required": [
- "name"
- ],
- "additionalProperties": false
- },
- "CreateRiffDeckRequestInput": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
- }
- },
- "required": [
- "name"
- ],
- "additionalProperties": false
- },
- "CreateSnapshotData": {
- "type": "object",
- "properties": {
- "created": {
- "type": "boolean"
- },
- "id": {
- "type": "string"
- }
- },
- "required": [
- "created",
- "id"
- ],
- "additionalProperties": false
- },
- "CreateSnapshotRequestInput": {
- "type": "object",
- "properties": {
- "memo": {
- "type": "string"
- }
- },
- "additionalProperties": false
- },
- "Criterion": {
- "type": "object",
- "properties": {
- "group": {
- "type": "integer"
},
- "hPath": {
- "type": "string"
- },
- "hasReplace": {
- "type": "boolean"
- },
- "idPath": {
+ "steps": {
"anyOf": [
{
"type": "array",
"items": {
- "type": "string"
+ "$ref": "#/$defs/AISessionExtensionAISessionEntryStepInput"
}
},
{
@@ -4709,38 +3730,33 @@
}
]
},
- "k": {
- "type": "string"
- },
- "method": {
- "type": "integer"
- },
- "name": {
- "type": "string"
- },
- "r": {
- "type": "string"
- },
- "replaceTypes": {
+ "timestamp": {
"anyOf": [
{
- "$ref": "#/$defs/CriterionReplaceTypes"
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "sort": {
- "type": "integer"
- },
- "subTypes": {
- "$ref": "#/$defs/SearchSubTypes"
+ "toolCalls": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/AISessionExtensionAIAgentToolCallInput"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "types": {
+ "type": {
"anyOf": [
{
- "$ref": "#/$defs/CriterionTypes"
+ "type": "string"
},
{
"type": "null"
@@ -4748,36 +3764,24 @@
]
}
},
- "required": [
- "group",
- "hPath",
- "hasReplace",
- "idPath",
- "k",
- "method",
- "name",
- "r",
- "replaceTypes",
- "sort",
- "subTypes",
- "types"
- ],
- "additionalProperties": false
+ "additionalProperties": {
+ "$ref": "#/$defs/JSONValue"
+ }
},
- "CriterionInput": {
+ "AISessionExtensionAISessionEntryStep": {
"type": "object",
"properties": {
- "group": {
+ "content": {
"anyOf": [
{
- "type": "integer"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "hPath": {
+ "reasoning": {
"anyOf": [
{
"type": "string"
@@ -4787,50 +3791,61 @@
}
]
},
- "hasReplace": {
+ "reasoningContent": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "idPath": {
+ "roundID": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "type": "string"
},
{
"type": "null"
}
]
},
- "k": {
+ "toolCallIDs": {
"anyOf": [
{
- "type": "string"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "method": {
+ "toolNames": {
"anyOf": [
{
- "type": "integer"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
- },
- "name": {
+ }
+ },
+ "additionalProperties": {
+ "$ref": "#/$defs/JSONValue"
+ }
+ },
+ "AISessionExtensionAISessionEntryStepInput": {
+ "type": "object",
+ "properties": {
+ "content": {
"anyOf": [
{
"type": "string"
@@ -4840,7 +3855,7 @@
}
]
},
- "r": {
+ "reasoning": {
"anyOf": [
{
"type": "string"
@@ -4850,40 +3865,46 @@
}
]
},
- "replaceTypes": {
+ "reasoningContent": {
"anyOf": [
{
- "$ref": "#/$defs/CriterionReplaceTypesInput"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "sort": {
+ "roundID": {
"anyOf": [
{
- "type": "integer"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "subTypes": {
+ "toolCallIDs": {
"anyOf": [
{
- "$ref": "#/$defs/SearchSubTypesInput"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "types": {
+ "toolNames": {
"anyOf": [
{
- "$ref": "#/$defs/CriterionTypesInput"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
@@ -4891,270 +3912,262 @@
]
}
},
- "additionalProperties": false
+ "additionalProperties": {
+ "$ref": "#/$defs/JSONValue"
+ }
},
- "CriterionReplaceTypes": {
+ "AISessionExtensionAISessionFields": {
"type": "object",
"properties": {
- "aHref": {
- "type": "boolean"
- },
- "aText": {
- "type": "boolean"
- },
- "aTitle": {
- "type": "boolean"
+ "agentRunning": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "blockRef": {
- "type": "boolean"
+ "alwaysAllow": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "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"
+ "commitTurnID": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "strong": {
- "type": "boolean"
+ "completionTokens": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "sub": {
- "type": "boolean"
+ "contextCachedTokens": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "sup": {
- "type": "boolean"
+ "contextLimit": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "tag": {
- "type": "boolean"
+ "contextTokenBreakdown": {
+ "anyOf": [
+ {
+ "type": "object",
+ "additionalProperties": {
+ "type": "integer"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "text": {
- "type": "boolean"
+ "contextTokens": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "u": {
- "type": "boolean"
- }
- },
- "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"
- ],
- "additionalProperties": false
- },
- "CriterionReplaceTypesInput": {
- "type": "object",
- "properties": {
- "aHref": {
+ "createdAt": {
"anyOf": [
{
- "type": "boolean"
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "aText": {
+ "entries": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/AISessionExtensionAISessionEntry"
+ }
},
{
"type": "null"
}
]
},
- "aTitle": {
+ "expectedRevision": {
"anyOf": [
{
- "type": "boolean"
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "blockRef": {
+ "id": {
+ "type": "string"
+ },
+ "lastCommittedTurnID": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "code": {
+ "messageHistory": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "codeBlock": {
+ "messages": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/AISessionExtensionAIAgentMessage"
+ }
},
{
"type": "null"
}
]
},
- "docTitle": {
+ "model": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "em": {
+ "permissionMode": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "fileAnnotationRef": {
+ "promptTokens": {
"anyOf": [
{
- "type": "boolean"
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "htmlBlock": {
+ "recoveryRevision": {
"anyOf": [
{
- "type": "boolean"
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "imgSrc": {
+ "recoveryState": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "imgText": {
+ "recoveryTurnID": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "imgTitle": {
+ "revision": {
"anyOf": [
{
- "type": "boolean"
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "inlineMath": {
+ "snapshots": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "inlineMemo": {
+ "title": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "kbd": {
+ "titled": {
"anyOf": [
{
"type": "boolean"
@@ -5164,17 +4177,38 @@
}
]
},
- "mark": {
+ "totalDuration": {
"anyOf": [
{
- "type": "boolean"
+ "type": "number"
},
{
"type": "null"
}
]
},
- "mathBlock": {
+ "updatedAt": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "id"
+ ],
+ "additionalProperties": {
+ "$ref": "#/$defs/JSONValue"
+ }
+ },
+ "AISessionExtensionAISessionFieldsInput": {
+ "type": "object",
+ "properties": {
+ "agentRunning": {
"anyOf": [
{
"type": "boolean"
@@ -5184,7 +4218,7 @@
}
]
},
- "s": {
+ "alwaysAllow": {
"anyOf": [
{
"type": "boolean"
@@ -5194,301 +4228,235 @@
}
]
},
- "strong": {
+ "commitTurnID": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "sub": {
+ "completionTokens": {
"anyOf": [
{
- "type": "boolean"
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "sup": {
+ "contextCachedTokens": {
"anyOf": [
{
- "type": "boolean"
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "tag": {
+ "contextLimit": {
"anyOf": [
{
- "type": "boolean"
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "text": {
+ "contextTokenBreakdown": {
"anyOf": [
{
- "type": "boolean"
+ "type": "object",
+ "additionalProperties": {
+ "type": "integer"
+ }
},
{
"type": "null"
}
]
},
- "u": {
+ "contextTokens": {
"anyOf": [
{
- "type": "boolean"
+ "type": "integer"
},
{
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "CriterionTypes": {
- "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"
- },
- "paragraph": {
- "type": "boolean"
- },
- "superBlock": {
- "type": "boolean"
- },
- "tabItem": {
- "type": "boolean"
- },
- "table": {
- "type": "boolean"
- },
- "tabs": {
- "type": "boolean"
- },
- "videoBlock": {
- "type": "boolean"
+ "createdAt": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "widgetBlock": {
- "type": "boolean"
- }
- },
- "required": [
- "audioBlock",
- "blockquote",
- "callout",
- "codeBlock",
- "databaseBlock",
- "document",
- "embedBlock",
- "heading",
- "htmlBlock",
- "iframeBlock",
- "list",
- "listItem",
- "mathBlock",
- "paragraph",
- "superBlock",
- "tabItem",
- "table",
- "tabs",
- "videoBlock",
- "widgetBlock"
- ],
- "additionalProperties": false
- },
- "CriterionTypesInput": {
- "type": "object",
- "properties": {
- "audioBlock": {
+ "entries": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/AISessionExtensionAISessionEntryInput"
+ }
},
{
"type": "null"
}
]
},
- "blockquote": {
+ "expectedRevision": {
"anyOf": [
{
- "type": "boolean"
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "callout": {
+ "id": {
+ "type": "string"
+ },
+ "lastCommittedTurnID": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "codeBlock": {
+ "messageHistory": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "databaseBlock": {
+ "messages": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/AISessionExtensionAIAgentMessageInput"
+ }
},
{
"type": "null"
}
]
},
- "document": {
+ "model": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "embedBlock": {
+ "permissionMode": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "heading": {
+ "promptTokens": {
"anyOf": [
{
- "type": "boolean"
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "htmlBlock": {
+ "recoveryRevision": {
"anyOf": [
{
- "type": "boolean"
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "iframeBlock": {
+ "recoveryState": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "list": {
+ "recoveryTurnID": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "listItem": {
+ "revision": {
"anyOf": [
{
- "type": "boolean"
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "mathBlock": {
+ "snapshots": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "paragraph": {
+ "title": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "superBlock": {
+ "titled": {
"anyOf": [
{
"type": "boolean"
@@ -5498,27 +4466,143 @@
}
]
},
- "tabItem": {
+ "totalDuration": {
"anyOf": [
{
- "type": "boolean"
+ "type": "number"
},
{
"type": "null"
}
]
},
- "table": {
+ "updatedAt": {
"anyOf": [
{
- "type": "boolean"
+ "type": "integer"
},
{
"type": "null"
}
]
+ }
+ },
+ "required": [
+ "id"
+ ],
+ "additionalProperties": {
+ "$ref": "#/$defs/JSONValue"
+ }
+ },
+ "AISessionFields": {
+ "type": "object",
+ "properties": {
+ "agentRunning": {
+ "type": "boolean"
},
- "tabs": {
+ "alwaysAllow": {
+ "type": "boolean"
+ },
+ "commitTurnID": {
+ "type": "string"
+ },
+ "completionTokens": {
+ "type": "integer"
+ },
+ "contextCachedTokens": {
+ "type": "integer"
+ },
+ "contextLimit": {
+ "type": "integer"
+ },
+ "contextTokenBreakdown": {
+ "type": "object",
+ "additionalProperties": {
+ "type": "integer"
+ }
+ },
+ "contextTokens": {
+ "type": "integer"
+ },
+ "createdAt": {
+ "type": "integer"
+ },
+ "entries": {
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/AISessionEntry"
+ }
+ },
+ "expectedRevision": {
+ "type": "integer"
+ },
+ "id": {
+ "type": "string"
+ },
+ "lastCommittedTurnID": {
+ "type": "string"
+ },
+ "messageHistory": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "messages": {
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/AIAgentMessage"
+ }
+ },
+ "model": {
+ "type": "string"
+ },
+ "permissionMode": {
+ "type": "string"
+ },
+ "promptTokens": {
+ "type": "integer"
+ },
+ "recoveryRevision": {
+ "type": "integer"
+ },
+ "recoveryState": {
+ "type": "string"
+ },
+ "recoveryTurnID": {
+ "type": "string"
+ },
+ "revision": {
+ "type": "integer"
+ },
+ "snapshots": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "title": {
+ "type": "string"
+ },
+ "titled": {
+ "type": "boolean"
+ },
+ "totalDuration": {
+ "type": "number"
+ },
+ "updatedAt": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "id"
+ ],
+ "additionalProperties": false
+ },
+ "AISessionFieldsInput": {
+ "type": "object",
+ "properties": {
+ "agentRunning": {
"anyOf": [
{
"type": "boolean"
@@ -5528,7 +4612,7 @@
}
]
},
- "videoBlock": {
+ "alwaysAllow": {
"anyOf": [
{
"type": "boolean"
@@ -5538,208 +4622,60 @@
}
]
},
- "widgetBlock": {
+ "commitTurnID": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "DOMData": {
- "type": "object",
- "properties": {
- "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"
- },
- "dataType": {
- "type": "string"
- },
- "notebook": {
- "type": "string"
- }
- },
- "required": [
- "data",
- "dataType",
- "notebook"
- ],
- "additionalProperties": false
- },
- "DeleteBlockRequestInput": {
- "type": "object",
- "properties": {
- "id": {
- "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": {
- "type": "string"
- },
- "right": {
- "type": "string"
- }
- },
- "required": [
- "left",
- "right"
- ],
- "additionalProperties": false
- },
- "DirectoryEntry": {
- "type": "object",
- "properties": {
- "isDir": {
- "type": "boolean"
- },
- "isSymlink": {
- "type": "boolean"
- },
- "name": {
- "type": "string"
- },
- "updated": {
- "type": "integer"
- }
- },
- "required": [
- "isDir",
- "isSymlink",
- "name",
- "updated"
- ],
- "additionalProperties": false
- },
- "DocAttrView": {
- "type": "object",
- "properties": {
- "id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- }
- },
- "required": [
- "id",
- "name"
- ],
- "additionalProperties": false
- },
- "DocHeadingLevelData": {
- "type": "object",
- "properties": {
- "counts": {
- "type": "array",
- "items": {
- "type": "integer"
- }
},
- "title": {
- "type": "string"
+ "completionTokens": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "transaction": {
+ "contextCachedTokens": {
"anyOf": [
{
- "$ref": "#/$defs/BlockTransaction"
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "withSubheadingCounts": {
- "type": "array",
- "items": {
- "type": "integer"
- }
- }
- },
- "required": [
- "counts",
- "title",
- "transaction",
- "withSubheadingCounts"
- ],
- "additionalProperties": false
- },
- "DocHeadingLevelRequestInput": {
- "type": "object",
- "properties": {
- "id": {
+ "contextLimit": {
"anyOf": [
{
- "type": "string"
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "notebook": {
+ "contextTokenBreakdown": {
"anyOf": [
{
- "type": "string"
+ "type": "object",
+ "additionalProperties": {
+ "type": "integer"
+ }
},
{
"type": "null"
}
]
},
- "source": {
+ "contextTokens": {
"anyOf": [
{
"type": "integer"
@@ -5749,7 +4685,7 @@
}
]
},
- "target": {
+ "createdAt": {
"anyOf": [
{
"type": "integer"
@@ -5759,60 +4695,33 @@
}
]
},
- "withSubheadings": {
+ "entries": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/AISessionEntryInput"
+ }
},
{
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "DocHistoryContentData": {
- "type": "object",
- "properties": {
- "content": {
- "type": "string"
- },
- "id": {
- "type": "string"
- },
- "isLargeDoc": {
- "type": "boolean"
},
- "rootID": {
- "type": "string"
- }
- },
- "required": [
- "content",
- "id",
- "isLargeDoc",
- "rootID"
- ],
- "additionalProperties": false
- },
- "DocHistoryContentRequestInput": {
- "type": "object",
- "properties": {
- "highlight": {
+ "expectedRevision": {
"anyOf": [
{
- "type": "boolean"
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "historyPath": {
+ "id": {
"type": "string"
},
- "k": {
+ "lastCommittedTurnID": {
"anyOf": [
{
"type": "string"
@@ -5821,29 +4730,13 @@
"type": "null"
}
]
- }
- },
- "required": [
- "historyPath"
- ],
- "additionalProperties": false
- },
- "DocInfo": {
- "type": "object",
- "properties": {
- "attrViews": {
+ },
+ "messageHistory": {
"anyOf": [
{
"type": "array",
"items": {
- "anyOf": [
- {
- "$ref": "#/$defs/DocAttrView"
- },
- {
- "type": "null"
- }
- ]
+ "type": "string"
}
},
{
@@ -5851,12 +4744,12 @@
}
]
},
- "ial": {
+ "messages": {
"anyOf": [
{
- "type": "object",
- "additionalProperties": {
- "type": "string"
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/AIAgentMessageInput"
}
},
{
@@ -5864,19 +4757,77 @@
}
]
},
- "icon": {
- "type": "string"
- },
- "id": {
- "type": "string"
- },
- "name": {
- "type": "string"
+ "model": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "refCount": {
- "type": "integer"
+ "permissionMode": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "refIDs": {
+ "promptTokens": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "recoveryRevision": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "recoveryState": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "recoveryTurnID": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "revision": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "snapshots": {
"anyOf": [
{
"type": "array",
@@ -5889,73 +4840,112 @@
}
]
},
- "rootID": {
- "type": "string"
+ "title": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "subFileCount": {
- "type": "integer"
+ "titled": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "totalDuration": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "updatedAt": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
"required": [
- "attrViews",
- "ial",
- "icon",
- "id",
- "name",
- "refCount",
- "refIDs",
- "rootID",
- "subFileCount"
+ "id"
],
"additionalProperties": false
},
- "DocOrdersRequestInput": {
+ "AISessionIDRequestInput": {
"type": "object",
"properties": {
"id": {
- "type": "string"
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
- "required": [
- "id"
- ],
"additionalProperties": false
},
- "DocVersionDiffContent": {
+ "AISessionIndex": {
"type": "object",
"properties": {
- "content": {
- "type": "string"
+ "agentRunning": {
+ "type": "boolean"
},
- "id": {
- "type": "string"
+ "createdAt": {
+ "type": "integer"
},
- "rootID": {
+ "id": {
"type": "string"
},
"title": {
"type": "string"
+ },
+ "updatedAt": {
+ "type": "integer"
}
},
"required": [
- "content",
+ "createdAt",
"id",
- "rootID",
- "title"
+ "title",
+ "updatedAt"
],
"additionalProperties": false
},
- "DocVersionDiffResult": {
+ "AISessionList": {
"type": "object",
"properties": {
- "differences": {
+ "page": {
+ "type": "integer"
+ },
+ "pageSize": {
+ "type": "integer"
+ },
+ "sessions": {
"anyOf": [
{
"type": "array",
"items": {
"anyOf": [
{
- "$ref": "#/$defs/DocVersionDifference"
+ "$ref": "#/$defs/AISessionIndex"
},
{
"type": "null"
@@ -5968,80 +4958,105 @@
}
]
},
- "fallback": {
- "type": "boolean"
- },
- "large": {
- "type": "boolean"
+ "total": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "page",
+ "pageSize",
+ "sessions",
+ "total"
+ ],
+ "additionalProperties": false
+ },
+ "AISessionSaveData": {
+ "type": "object",
+ "properties": {
+ "revision": {
+ "type": "integer"
},
- "left": {
+ "session": {
+ "$ref": "#/$defs/AISessionExtensionAISessionFields"
+ }
+ },
+ "required": [
+ "revision"
+ ],
+ "additionalProperties": false
+ },
+ "AISessionsRequestInput": {
+ "type": "object",
+ "properties": {
+ "keyword": {
"anyOf": [
{
- "$ref": "#/$defs/DocVersionDiffContent"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "message": {
- "type": "string"
+ "page": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "right": {
+ "pageSize": {
"anyOf": [
{
- "$ref": "#/$defs/DocVersionDiffContent"
+ "type": "integer"
},
{
"type": "null"
}
]
+ }
+ },
+ "additionalProperties": false
+ },
+ "AISkillData": {
+ "type": "object",
+ "properties": {
+ "content": {
+ "type": "string"
},
- "titleModified": {
- "type": "boolean"
+ "name": {
+ "type": "string"
}
},
"required": [
- "differences",
- "fallback",
- "large",
- "left",
- "message",
- "right",
- "titleModified"
+ "content",
+ "name"
],
"additionalProperties": false
},
- "DocVersionDifference": {
+ "AISkillInfo": {
"type": "object",
"properties": {
- "id": {
+ "description": {
"type": "string"
},
- "statuses": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- {
- "type": "null"
- }
- ]
+ "name": {
+ "type": "string"
}
},
"required": [
- "id",
- "statuses"
+ "description",
+ "name"
],
"additionalProperties": false
},
- "DocVersionRefInput": {
+ "AISkillNameRequestInput": {
"type": "object",
"properties": {
- "id": {
+ "name": {
"anyOf": [
{
"type": "string"
@@ -6050,8 +5065,14 @@
"type": "null"
}
]
- },
- "path": {
+ }
+ },
+ "additionalProperties": false
+ },
+ "AISkillRenameRequestInput": {
+ "type": "object",
+ "properties": {
+ "newName": {
"anyOf": [
{
"type": "string"
@@ -6061,7 +5082,7 @@
}
]
},
- "snapshot": {
+ "oldName": {
"anyOf": [
{
"type": "string"
@@ -6070,140 +5091,127 @@
"type": "null"
}
]
- },
- "type": {
- "type": "string"
}
},
- "required": [
- "type"
- ],
"additionalProperties": false
},
- "DocsInfoRequestInput": {
+ "AISkillSaveRequestInput": {
"type": "object",
"properties": {
- "av": {
- "type": "boolean"
- },
- "ids": {
- "type": "array",
- "items": {
- "type": "string"
- }
+ "content": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "refCount": {
- "type": "boolean"
+ "name": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
- "required": [
- "av",
- "ids",
- "refCount"
- ],
"additionalProperties": false
},
- "DownloadCloudSnapshotRequestInput": {
+ "AITitleRequestInput": {
"type": "object",
"properties": {
- "id": {
- "type": "string"
+ "language": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "tag": {
- "type": "string"
+ "message": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "model": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
- "required": [
- "id",
- "tag"
- ],
"additionalProperties": false
},
- "DownloadInstallPkgRequestInput": {
+ "AIToolEffects": {
"type": "object",
"properties": {
- "downloadInstallPkg": {
+ "dataEgress": {
"type": "boolean"
- }
- },
- "required": [
- "downloadInstallPkg"
- ],
- "additionalProperties": false
- },
- "EditorReadOnlyRequestInput": {
- "type": "object",
- "properties": {
- "readonly": {
+ },
+ "externalCost": {
+ "type": "boolean"
+ },
+ "localRead": {
+ "type": "boolean"
+ },
+ "localWrite": {
"type": "boolean"
}
},
- "required": [
- "readonly"
- ],
"additionalProperties": false
},
- "EmbedBlock": {
+ "AIToolEffectsInput": {
"type": "object",
"properties": {
- "allowChildOperation": {
- "type": "boolean"
+ "dataEgress": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "block": {
+ "externalCost": {
"anyOf": [
{
- "$ref": "#/$defs/SearchBlock"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "blockPaths": {
+ "localRead": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/BlockPath"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "boolean"
},
{
"type": "null"
}
]
- }
- },
- "required": [
- "allowChildOperation",
- "block",
- "blockPaths"
- ],
- "additionalProperties": false
- },
- "EmbedBlocksData": {
- "type": "object",
- "properties": {
- "blocks": {
+ },
+ "localWrite": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/EmbedBlock"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "boolean"
},
{
"type": "null"
@@ -6211,201 +5219,168 @@
]
}
},
- "required": [
- "blocks"
- ],
"additionalProperties": false
},
- "EmbedStat": {
+ "AIUserSkillInfo": {
"type": "object",
"properties": {
- "complete": {
- "type": "boolean"
- },
- "cycleCount": {
- "type": "integer"
- },
- "depthLimitCount": {
- "type": "integer"
- },
- "failedQueryCount": {
- "type": "integer"
- },
- "failedResultCount": {
- "type": "integer"
- },
- "jsEmbedCount": {
- "type": "integer"
- },
- "queryEmbedCount": {
- "type": "integer"
+ "description": {
+ "type": "string"
},
- "resultCount": {
- "type": "integer"
+ "enabled": {
+ "type": "boolean"
},
- "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"
- ]
- },
- "unlocked": {
+ "shadowed": {
"type": "boolean"
}
},
"required": [
+ "description",
+ "enabled",
"id",
"name",
- "state",
- "unlocked"
+ "shadowed"
],
"additionalProperties": false
},
- "EncryptedNotebookStatusData": {
+ "AccountLoginData": {
"type": "object",
"properties": {
- "boxes": {
- "type": "array",
- "items": {
- "$ref": "#/$defs/EncryptedNotebookStatus"
- }
- },
- "count": {
- "type": "integer"
- },
- "enabled": {
- "type": "boolean"
- },
- "hasHistoryDependency": {
- "type": "boolean"
- },
- "migrationBoxes": {
+ "needCaptcha": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "type": "string"
},
{
"type": "null"
}
]
},
- "migrationPending": {
- "type": "boolean"
+ "token": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "state": {
- "type": "string",
- "enum": [
- "Disabled",
- "Enabled",
- "RecoveryRequired"
+ "userName": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
]
}
},
"required": [
- "boxes",
- "count",
- "enabled",
- "hasHistoryDependency",
- "migrationBoxes",
- "migrationPending",
- "state"
+ "needCaptcha",
+ "token",
+ "userName"
],
"additionalProperties": false
},
- "ExportAsFileRequestInput": {
+ "AccountLoginRequestInput": {
"type": "object",
"properties": {
- "file": {
- "type": "string",
- "format": "binary"
+ "captcha": {
+ "type": "string"
},
- "type": {
+ "cloudRegion": {
+ "type": "number"
+ },
+ "userName": {
+ "type": "string"
+ },
+ "userPassword": {
"type": "string"
}
},
"required": [
- "file",
- "type"
+ "captcha",
+ "cloudRegion",
+ "userName",
+ "userPassword"
],
"additionalProperties": false
},
- "ExportAttributeViewRequestInput": {
+ "ActivationCodeRequestInput": {
"type": "object",
"properties": {
- "blockID": {
+ "data": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "data"
+ ],
+ "additionalProperties": false
+ },
+ "AppendBlockRequestInput": {
+ "type": "object",
+ "properties": {
+ "data": {
"type": "string"
},
- "id": {
+ "dataType": {
+ "type": "string"
+ },
+ "parentID": {
"type": "string"
}
},
"required": [
- "blockID",
- "id"
+ "data",
+ "dataType",
+ "parentID"
],
"additionalProperties": false
},
- "ExportBrowserHTMLRequestInput": {
+ "AppendHeadingChildrenRequestInput": {
"type": "object",
"properties": {
- "folder": {
+ "childrenDOM": {
"type": "string"
},
- "html": {
+ "id": {
"type": "string"
- },
- "name": {
+ }
+ },
+ "required": [
+ "childrenDOM",
+ "id"
+ ],
+ "additionalProperties": false
+ },
+ "AssetAnnotationData": {
+ "type": "object",
+ "properties": {
+ "data": {
"type": "string"
}
},
"required": [
- "folder",
- "html",
- "name"
+ "data"
],
"additionalProperties": false
},
- "ExportDocumentsMarkdownRequestInput": {
+ "AssetCloudUploadRequestInput": {
"type": "object",
"properties": {
- "addTitle": {
+ "id": {
+ "type": "string"
+ },
+ "ignorePushMsg": {
"anyOf": [
{
"type": "boolean"
@@ -6414,124 +5389,202 @@
"type": "null"
}
]
+ }
+ },
+ "required": [
+ "id"
+ ],
+ "additionalProperties": false
+ },
+ "AssetContent": {
+ "type": "object",
+ "properties": {
+ "content": {
+ "type": "string"
},
- "blockEmbedMode": {
+ "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": "number"
+ "$ref": "#/$defs/AssetContent"
},
{
"type": "null"
}
]
+ }
+ },
+ "required": [
+ "assetContent"
+ ],
+ "additionalProperties": false
+ },
+ "AssetContentRequestInput": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
},
- "blockRefMode": {
+ "query": {
+ "type": "string"
+ },
+ "queryMethod": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "id",
+ "query",
+ "queryMethod"
+ ],
+ "additionalProperties": false
+ },
+ "AssetDocumentAssetsRequestInput": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "retainQueryStr": {
"anyOf": [
{
- "type": "number"
+ "type": "boolean"
},
{
"type": "null"
}
]
- },
- "blockRefTextLeft": {
+ }
+ },
+ "required": [
+ "id"
+ ],
+ "additionalProperties": false
+ },
+ "AssetDocumentRequestInput": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id"
+ ],
+ "additionalProperties": false
+ },
+ "AssetInsertCoverData": {
+ "type": "object",
+ "properties": {
+ "succFiles": {
"anyOf": [
{
- "type": "string"
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/AssetUploadSuccess"
+ }
},
{
"type": "null"
}
]
},
- "blockRefTextRight": {
+ "succMap": {
"anyOf": [
{
- "type": "string"
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
- },
- "fileAnnotationRefMode": {
+ }
+ },
+ "required": [
+ "succFiles",
+ "succMap"
+ ],
+ "additionalProperties": false
+ },
+ "AssetOCRData": {
+ "type": "object",
+ "properties": {
+ "ocrJSON": {
"anyOf": [
{
- "type": "number"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
},
- "ids": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "includeRelatedDocs": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
- },
- "includeSubDocs": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
- },
- "inlineMemo": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
- },
- "markdownYFM": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
- },
- "removeAssetsID": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
- },
- "tagCloseMarker": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "tagOpenMarker": {
+ "text": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "ocrJSON",
+ "text"
+ ],
+ "additionalProperties": false
+ },
+ "AssetOCRTextRequestInput": {
+ "type": "object",
+ "properties": {
+ "path": {
"anyOf": [
{
"type": "string"
@@ -6542,18 +5595,36 @@
]
}
},
+ "additionalProperties": false
+ },
+ "AssetPathData": {
+ "type": "object",
+ "properties": {
+ "path": {
+ "type": "string"
+ }
+ },
"required": [
- "ids"
+ "path"
],
"additionalProperties": false
},
- "ExportDocxRequestInput": {
+ "AssetPathRequestInput": {
"type": "object",
"properties": {
- "id": {
+ "path": {
"type": "string"
- },
- "merge": {
+ }
+ },
+ "required": [
+ "path"
+ ],
+ "additionalProperties": false
+ },
+ "AssetPathsCloudUploadRequestInput": {
+ "type": "object",
+ "properties": {
+ "ignorePushMsg": {
"anyOf": [
{
"type": "boolean"
@@ -6563,160 +5634,176 @@
}
]
},
- "mergeContentHeadingMode": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "mergeDocHeadingMode": {
+ "paths": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ },
+ "required": [
+ "paths"
+ ],
+ "additionalProperties": false
+ },
+ "AssetPathsData": {
+ "type": "object",
+ "properties": {
+ "paths": {
"anyOf": [
{
- "type": "string"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
- },
- "removeAssets": {
- "type": "boolean"
- },
- "savePath": {
- "type": "string"
}
},
"required": [
- "id",
- "removeAssets",
- "savePath"
+ "paths"
],
"additionalProperties": false
},
- "ExportFileData": {
+ "AssetRenameData": {
"type": "object",
"properties": {
- "file": {
+ "newPath": {
"type": "string"
}
},
"required": [
- "file"
+ "newPath"
],
"additionalProperties": false
},
- "ExportFolderRequestInput": {
+ "AssetStatData": {
"type": "object",
"properties": {
- "folder": {
+ "created": {
+ "type": "integer"
+ },
+ "downloaded": {
+ "type": "boolean",
+ "enum": [
+ false
+ ]
+ },
+ "hCreated": {
"type": "string"
+ },
+ "hSize": {
+ "type": "string"
+ },
+ "hUpdated": {
+ "type": "string"
+ },
+ "size": {
+ "type": "integer"
+ },
+ "updated": {
+ "type": "integer"
}
},
"required": [
- "folder"
+ "created",
+ "hCreated",
+ "hSize",
+ "hUpdated",
+ "size",
+ "updated"
],
"additionalProperties": false
},
- "ExportHTMLData": {
+ "AssetTextData": {
"type": "object",
"properties": {
- "content": {
+ "text": {
"type": "string"
+ }
+ },
+ "required": [
+ "text"
+ ],
+ "additionalProperties": false
+ },
+ "AssetUnusedItem": {
+ "type": "object",
+ "properties": {
+ "blockIDs": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
- "folder": {
+ "item": {
"type": "string"
},
- "id": {
+ "name": {
"type": "string"
},
- "name": {
+ "path": {
"type": "string"
}
},
"required": [
- "content",
- "id",
+ "item",
"name"
],
"additionalProperties": false
},
- "ExportHTMLRequestInput": {
+ "AssetUploadData": {
"type": "object",
"properties": {
- "addTitle": {
+ "errFiles": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "customTitle": {
+ "failedFiles": {
"anyOf": [
{
- "type": "string"
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/AssetUploadFailure"
+ }
},
{
"type": "null"
}
]
},
- "id": {
- "type": "string"
- },
- "keepFold": {
+ "succFiles": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/AssetUploadSuccess"
+ }
},
{
"type": "null"
}
]
},
- "merge": {
+ "succMap": {
"anyOf": [
{
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
- },
- "mergeContentHeadingMode": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "mergeDocHeadingMode": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "pdf": {
- "type": "boolean"
- },
- "savePath": {
- "anyOf": [
- {
- "type": "string"
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ }
},
{
"type": "null"
@@ -6725,88 +5812,132 @@
}
},
"required": [
- "id",
- "pdf"
+ "errFiles",
+ "failedFiles",
+ "succFiles",
+ "succMap"
],
"additionalProperties": false
},
- "ExportIDRequestInput": {
+ "AssetUploadFailure": {
"type": "object",
"properties": {
- "id": {
+ "error": {
+ "type": "string"
+ },
+ "index": {
+ "type": "integer"
+ },
+ "name": {
"type": "string"
}
},
"required": [
- "id"
+ "error",
+ "index",
+ "name"
],
"additionalProperties": false
},
- "ExportIDsRequestInput": {
+ "AssetUploadSuccess": {
"type": "object",
"properties": {
- "ids": {
- "type": "array",
- "items": {
- "type": "string"
- }
+ "index": {
+ "type": "integer"
+ },
+ "name": {
+ "type": "string"
+ },
+ "path": {
+ "type": "string"
}
},
"required": [
- "ids"
+ "index",
+ "name",
+ "path"
],
"additionalProperties": false
},
- "ExportMarkdownContentData": {
+ "AttributeViewColorTheme": {
"type": "object",
"properties": {
- "content": {
+ "backgroundColor": {
"type": "string"
},
- "hPath": {
+ "color": {
"type": "string"
}
},
"required": [
- "content",
- "hPath"
+ "backgroundColor",
+ "color"
],
"additionalProperties": false
},
- "ExportMarkdownContentRequestInput": {
+ "AttributeViewColorThemeInput": {
"type": "object",
"properties": {
- "addTitle": {
+ "backgroundColor": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "adjustHeadingLevel": {
+ "color": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
+ }
+ },
+ "additionalProperties": false
+ },
+ "AttributeViewCustomColor": {
+ "type": "object",
+ "properties": {
+ "dark": {
+ "$ref": "#/$defs/AttributeViewColorTheme"
},
- "embedMode": {
+ "hidden": {
+ "type": "boolean"
+ },
+ "index": {
+ "type": "integer"
+ },
+ "light": {
+ "$ref": "#/$defs/AttributeViewColorTheme"
+ }
+ },
+ "required": [
+ "dark",
+ "index",
+ "light"
+ ],
+ "additionalProperties": false
+ },
+ "AttributeViewCustomColorInput": {
+ "type": "object",
+ "properties": {
+ "dark": {
"anyOf": [
{
- "type": "number"
+ "$ref": "#/$defs/AttributeViewColorThemeInput"
},
{
"type": "null"
}
]
},
- "fillCSSVar": {
+ "hidden": {
"anyOf": [
{
"type": "boolean"
@@ -6816,55 +5947,103 @@
}
]
},
- "id": {
- "type": "string"
- },
- "imgTag": {
+ "index": {
"anyOf": [
{
- "type": "boolean"
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "refMode": {
+ "light": {
"anyOf": [
{
- "type": "number"
+ "$ref": "#/$defs/AttributeViewColorThemeInput"
},
{
"type": "null"
}
]
- },
- "yfm": {
+ }
+ },
+ "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"
}
]
+ },
+ "itemID": {
+ "type": "string"
+ },
+ "keyID": {
+ "type": "string"
+ },
+ "keyName": {
+ "type": "string"
+ },
+ "title": {
+ "type": "string"
+ },
+ "valueID": {
+ "type": "string"
}
},
"required": [
- "id"
+ "defIDs",
+ "itemID",
+ "keyID",
+ "keyName",
+ "title",
+ "valueID"
],
"additionalProperties": false
},
- "ExportMarkdownHTMLRequestInput": {
+ "BacklinkAttributeViewTarget": {
"type": "object",
"properties": {
- "id": {
+ "blockID": {
"type": "string"
},
- "savePath": {
+ "matches": {
"anyOf": [
{
- "type": "string"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/BacklinkAttributeViewMatch"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
@@ -6873,87 +6052,151 @@
}
},
"required": [
- "id"
+ "blockID",
+ "matches"
],
"additionalProperties": false
},
- "ExportMarkdownRequestInput": {
+ "BacklinkContext": {
"type": "object",
"properties": {
- "addTitle": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
+ "attributeViewTargets": {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/BacklinkAttributeViewTarget"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
- "blockEmbedMode": {
+ "blockPaths": {
"anyOf": [
{
- "type": "number"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/BlockPath"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
},
- "blockRefMode": {
- "anyOf": [
- {
- "type": "number"
- },
- {
- "type": "null"
- }
- ]
+ "dom": {
+ "type": "string"
},
- "blockRefTextLeft": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
+ "expand": {
+ "type": "boolean"
},
- "blockRefTextRight": {
+ "id": {
+ "type": "string"
+ },
+ "referenceBlockID": {
+ "type": "string"
+ },
+ "revision": {
+ "type": "string"
+ },
+ "type": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "blockPaths",
+ "dom",
+ "expand",
+ "id",
+ "revision"
+ ],
+ "additionalProperties": false
+ },
+ "BacklinkContextData": {
+ "type": "object",
+ "properties": {
+ "backlinks": {
"anyOf": [
{
- "type": "string"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/BacklinkContext"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
},
- "fileAnnotationRefMode": {
+ "backmentions": {
"anyOf": [
{
- "type": "number"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/BacklinkContext"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
},
- "id": {
- "type": "string"
- },
- "includeRelatedDocs": {
+ "keywords": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "includeSubDocs": {
+ "revision": {
+ "type": "string"
+ },
+ "unchanged": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "backlinks",
+ "backmentions",
+ "keywords",
+ "revision",
+ "unchanged"
+ ],
+ "additionalProperties": false
+ },
+ "BacklinkDocumentRequestInput": {
+ "type": "object",
+ "properties": {
+ "containChildren": {
"anyOf": [
{
"type": "boolean"
@@ -6963,7 +6206,10 @@
}
]
},
- "inlineMemo": {
+ "defID": {
+ "type": "string"
+ },
+ "highlight": {
"anyOf": [
{
"type": "boolean"
@@ -6973,84 +6219,125 @@
}
]
},
- "markdownYFM": {
+ "keyword": {
+ "type": "string"
+ },
+ "knownRevision": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "removeAssetsID": {
+ "notebook": {
+ "type": "string"
+ },
+ "refTreeID": {
+ "type": "string"
+ },
+ "sourceFilter": {
"anyOf": [
{
- "type": "boolean"
+ "$ref": "#/$defs/BacklinkSourceFilterInput"
},
{
"type": "null"
}
]
- },
- "tagCloseMarker": {
+ }
+ },
+ "required": [
+ "defID",
+ "keyword",
+ "refTreeID"
+ ],
+ "additionalProperties": false
+ },
+ "BacklinkList": {
+ "type": "object",
+ "properties": {
+ "backlinks": {
"anyOf": [
{
- "type": "string"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/BacklinkPath"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
},
- "tagOpenMarker": {
+ "backmentions": {
"anyOf": [
{
- "type": "string"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/BacklinkPath"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
- }
- },
- "required": [
- "id"
- ],
- "additionalProperties": false
- },
- "ExportNameData": {
- "type": "object",
- "properties": {
- "name": {
+ },
+ "box": {
"type": "string"
- }
- },
- "required": [
- "name"
- ],
- "additionalProperties": false
- },
- "ExportNamedZipData": {
- "type": "object",
- "properties": {
- "name": {
+ },
+ "k": {
"type": "string"
},
- "zip": {
+ "linkRefsCount": {
+ "type": "integer"
+ },
+ "mentionsCount": {
+ "type": "integer"
+ },
+ "mk": {
"type": "string"
+ },
+ "revision": {
+ "type": "string"
+ },
+ "unchanged": {
+ "type": "boolean"
}
},
"required": [
- "name",
- "zip"
+ "backlinks",
+ "backmentions",
+ "box",
+ "k",
+ "linkRefsCount",
+ "mentionsCount",
+ "mk",
+ "revision",
+ "unchanged"
],
"additionalProperties": false
},
- "ExportNotebookMarkdownRequestInput": {
+ "BacklinkListRequestInput": {
"type": "object",
"properties": {
- "addTitle": {
+ "containChildren": {
"anyOf": [
{
"type": "boolean"
@@ -7060,27 +6347,30 @@
}
]
},
- "blockEmbedMode": {
+ "id": {
"anyOf": [
{
- "type": "number"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "blockRefMode": {
+ "includeMentions": {
"anyOf": [
{
- "type": "number"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "blockRefTextLeft": {
+ "k": {
+ "type": "string"
+ },
+ "knownRevision": {
"anyOf": [
{
"type": "string"
@@ -7090,7 +6380,7 @@
}
]
},
- "blockRefTextRight": {
+ "mSort": {
"anyOf": [
{
"type": "string"
@@ -7100,27 +6390,20 @@
}
]
},
- "fileAnnotationRefMode": {
- "anyOf": [
- {
- "type": "number"
- },
- {
- "type": "null"
- }
- ]
+ "mk": {
+ "type": "string"
},
- "includeRelatedDocs": {
+ "notebook": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "includeSubDocs": {
+ "refDefCandidates": {
"anyOf": [
{
"type": "boolean"
@@ -7130,109 +6413,171 @@
}
]
},
- "inlineMemo": {
+ "sort": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "markdownYFM": {
+ "sourceFilter": {
"anyOf": [
{
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
- },
- "notebook": {
- "type": "string"
- },
- "removeAssetsID": {
- "anyOf": [
- {
- "type": "boolean"
+ "$ref": "#/$defs/BacklinkSourceFilterInput"
},
{
"type": "null"
}
]
+ }
+ },
+ "additionalProperties": false
+ },
+ "BacklinkPath": {
+ "type": "object",
+ "properties": {
+ "blocks": {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SearchBlock"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
- "tagCloseMarker": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
+ "box": {
+ "type": "string"
},
- "tagOpenMarker": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
+ "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": [
- "notebook"
+ "box",
+ "count",
+ "created",
+ "depth",
+ "folded",
+ "hPath",
+ "id",
+ "name",
+ "nodeType",
+ "revision",
+ "subType",
+ "type",
+ "updated"
],
"additionalProperties": false
},
- "ExportNotebooksMarkdownRequestInput": {
+ "BacklinkRefDef": {
"type": "object",
"properties": {
- "addTitle": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
- },
- "blockEmbedMode": {
- "anyOf": [
- {
- "type": "number"
- },
- {
- "type": "null"
- }
- ]
+ "id": {
+ "type": "string"
},
- "blockRefMode": {
- "anyOf": [
- {
- "type": "number"
- },
- {
- "type": "null"
- }
- ]
+ "path": {
+ "type": "string"
},
- "blockRefTextLeft": {
+ "text": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "path",
+ "text"
+ ],
+ "additionalProperties": false
+ },
+ "BacklinkRefDefs": {
+ "type": "object",
+ "properties": {
+ "refDefs": {
"anyOf": [
{
- "type": "string"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/BacklinkRefDef"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
- },
- "blockRefTextRight": {
+ }
+ },
+ "required": [
+ "refDefs"
+ ],
+ "additionalProperties": false
+ },
+ "BacklinkSourceFilterInput": {
+ "type": "object",
+ "properties": {
+ "dailyNote": {
"anyOf": [
{
"type": "string"
@@ -7242,37 +6587,7 @@
}
]
},
- "fileAnnotationRefMode": {
- "anyOf": [
- {
- "type": "number"
- },
- {
- "type": "null"
- }
- ]
- },
- "includeRelatedDocs": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
- },
- "includeSubDocs": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
- },
- "inlineMemo": {
+ "excludeSelf": {
"anyOf": [
{
"type": "boolean"
@@ -7282,17 +6597,20 @@
}
]
},
- "markdownYFM": {
+ "excludedNotebookIDs": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "notebooks": {
+ "excludedRefDefIDs": {
"anyOf": [
{
"type": "array",
@@ -7304,8 +6622,14 @@
"type": "null"
}
]
- },
- "removeAssetsID": {
+ }
+ },
+ "additionalProperties": false
+ },
+ "BackmentionDocumentRequestInput": {
+ "type": "object",
+ "properties": {
+ "containChildren": {
"anyOf": [
{
"type": "boolean"
@@ -7315,17 +6639,23 @@
}
]
},
- "tagCloseMarker": {
+ "defID": {
+ "type": "string"
+ },
+ "highlight": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "tagOpenMarker": {
+ "keyword": {
+ "type": "string"
+ },
+ "knownRevision": {
"anyOf": [
{
"type": "string"
@@ -7334,208 +6664,342 @@
"type": "null"
}
]
+ },
+ "notebook": {
+ "type": "string"
+ },
+ "refTreeID": {
+ "type": "string"
}
},
+ "required": [
+ "defID",
+ "keyword",
+ "refTreeID"
+ ],
"additionalProperties": false
},
- "ExportNotebooksRequestInput": {
+ "BatchInsertBlockRequestInput": {
"type": "object",
"properties": {
- "notebooks": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- {
- "type": "null"
- }
- ]
+ "blocks": {
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/BlockInsertInputInput"
+ }
}
},
+ "required": [
+ "blocks"
+ ],
"additionalProperties": false
},
- "ExportPathData": {
+ "BatchParentBlockRequestInput": {
"type": "object",
"properties": {
- "path": {
- "type": "string"
+ "blocks": {
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/PrependBlockRequestInput"
+ }
}
},
"required": [
- "path"
+ "blocks"
],
"additionalProperties": false
},
- "ExportPreviewData": {
+ "BatchSetBlockAttrsRequestInput": {
"type": "object",
"properties": {
- "fillCSSVar": {
- "type": "boolean"
- },
- "html": {
+ "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": [
- "fillCSSVar",
- "html"
+ "frontend"
],
"additionalProperties": false
},
- "ExportPreviewHTMLData": {
+ "BazaarAppearance": {
"type": "object",
"properties": {
- "attrs": {
+ "bodyGradient": {
"anyOf": [
{
- "type": "object",
- "additionalProperties": {
- "type": "string"
- }
+ "$ref": "#/$defs/BazaarBodyGradient"
},
{
"type": "null"
}
]
},
- "content": {
- "type": "string"
+ "closeButtonBehavior": {
+ "type": "integer"
},
- "id": {
+ "codeBlockThemeDark": {
"type": "string"
},
- "name": {
+ "codeBlockThemeLight": {
"type": "string"
},
- "type": {
- "type": "string"
- }
- },
- "required": [
- "attrs",
- "content",
- "id",
- "name",
- "type"
- ],
- "additionalProperties": false
- },
- "ExportPreviewHTMLRequestInput": {
- "type": "object",
- "properties": {
- "addTitle": {
+ "darkThemes": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/BazaarAppearanceTheme"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
},
- "customTitle": {
+ "entryVisibility": {
"anyOf": [
{
- "type": "string"
+ "$ref": "#/$defs/BazaarEntryVisibility"
},
{
"type": "null"
}
]
},
- "id": {
- "type": "string"
- },
- "image": {
+ "globalFontFamilies": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/BazaarEditorFont"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
},
- "keepFold": {
+ "hideStatusBar": {
+ "type": "boolean"
+ },
+ "hideToolbar": {
+ "type": "boolean"
+ },
+ "icon": {
+ "type": "string"
+ },
+ "iconVer": {
+ "type": "string"
+ },
+ "icons": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/BazaarAppearanceIcon"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
},
- "merge": {
+ "lang": {
+ "type": "string"
+ },
+ "lightThemes": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/BazaarAppearanceTheme"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
},
- "mergeContentHeadingMode": {
+ "mode": {
+ "type": "integer"
+ },
+ "modeOS": {
+ "type": "boolean"
+ },
+ "notifications": {
"anyOf": [
{
- "type": "string"
+ "$ref": "#/$defs/BazaarNotifications"
},
{
"type": "null"
}
]
},
- "mergeDocHeadingMode": {
+ "statusBar": {
"anyOf": [
{
- "type": "string"
+ "$ref": "#/$defs/BazaarStatusBar"
},
{
"type": "null"
}
]
+ },
+ "themeDark": {
+ "type": "string"
+ },
+ "themeJS": {
+ "type": "boolean"
+ },
+ "themeLight": {
+ "type": "string"
+ },
+ "themeVer": {
+ "type": "string"
}
},
"required": [
- "id"
+ "bodyGradient",
+ "closeButtonBehavior",
+ "codeBlockThemeDark",
+ "codeBlockThemeLight",
+ "darkThemes",
+ "entryVisibility",
+ "globalFontFamilies",
+ "hideStatusBar",
+ "hideToolbar",
+ "icon",
+ "iconVer",
+ "icons",
+ "lang",
+ "lightThemes",
+ "mode",
+ "modeOS",
+ "notifications",
+ "statusBar",
+ "themeDark",
+ "themeJS",
+ "themeLight",
+ "themeVer"
],
"additionalProperties": false
},
- "ExportRepoFileRequestInput": {
+ "BazaarAppearanceIcon": {
"type": "object",
"properties": {
- "id": {
+ "label": {
+ "type": "string"
+ },
+ "name": {
"type": "string"
}
},
"required": [
- "id"
- ],
+ "label",
+ "name"
+ ],
"additionalProperties": false
},
- "ExportResourcesRequestInput": {
+ "BazaarAppearancePackagesData": {
"type": "object",
"properties": {
- "name": {
+ "appearance": {
"anyOf": [
{
- "type": "string"
+ "$ref": "#/$defs/BazaarAppearance"
},
{
"type": "null"
}
]
},
- "paths": {
+ "packages": {
"anyOf": [
{
"type": "array",
"items": {
- "type": "string"
+ "anyOf": [
+ {
+ "$ref": "#/$defs/BazaarPackage"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
{
@@ -7544,313 +7008,513 @@
]
}
},
+ "required": [
+ "appearance",
+ "packages"
+ ],
"additionalProperties": false
},
- "ExportTempContentRequestInput": {
+ "BazaarAppearanceTheme": {
"type": "object",
"properties": {
- "content": {
+ "frontends": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "label": {
"type": "string"
},
- "id": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
+ "name": {
+ "type": "string"
}
},
"required": [
- "content"
+ "label",
+ "name"
],
"additionalProperties": false
},
- "ExportURLData": {
+ "BazaarBodyGradient": {
"type": "object",
"properties": {
- "url": {
+ "dark": {
+ "$ref": "#/$defs/BazaarBodyGradientColor"
+ },
+ "light": {
+ "$ref": "#/$defs/BazaarBodyGradientColor"
+ },
+ "mode": {
"type": "string"
}
},
"required": [
- "url"
+ "dark",
+ "light",
+ "mode"
],
"additionalProperties": false
},
- "ExportZipData": {
+ "BazaarBodyGradientColor": {
"type": "object",
"properties": {
- "zip": {
+ "color": {
"type": "string"
+ },
+ "opacity": {
+ "type": "number"
}
},
"required": [
- "zip"
+ "color",
+ "opacity"
],
"additionalProperties": false
},
- "FileAnnotationRefRequestInput": {
+ "BazaarEditorFont": {
"type": "object",
"properties": {
- "id": {
+ "displayName": {
"type": "string"
},
- "notebook": {
+ "family": {
+ "type": "string"
+ },
+ "weight": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "displayName",
+ "family",
+ "weight"
+ ],
+ "additionalProperties": false
+ },
+ "BazaarEntryVisibility": {
+ "type": "object",
+ "properties": {
+ "active": {
+ "type": "string"
+ },
+ "profiles": {
"anyOf": [
{
- "type": "string"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/BazaarEntryVisibilityProfile"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
+ },
+ "version": {
+ "type": "integer"
}
},
"required": [
- "id"
+ "active",
+ "profiles",
+ "version"
],
"additionalProperties": false
},
- "FilePathData": {
+ "BazaarEntryVisibilityProfile": {
"type": "object",
"properties": {
- "path": {
+ "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": [
- "path"
+ "entries",
+ "id",
+ "name",
+ "orders"
],
"additionalProperties": false
},
- "FilePathRequestInput": {
+ "BazaarFunding": {
"type": "object",
"properties": {
- "path": {
+ "custom": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "github": {
+ "type": "string"
+ },
+ "links": {
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/BazaarFundingLink"
+ }
+ },
+ "openCollective": {
+ "type": "string"
+ },
+ "patreon": {
"type": "string"
}
},
"required": [
- "path"
+ "custom",
+ "github",
+ "openCollective",
+ "patreon"
],
"additionalProperties": false
},
- "FileTreeAuthPublishRequestInput": {
+ "BazaarFundingLink": {
"type": "object",
"properties": {
- "id": {
+ "label": {
"type": "string"
},
- "password": {
+ "url": {
"type": "string"
}
},
"required": [
- "id",
- "password"
+ "label",
+ "url"
],
"additionalProperties": false
},
- "FileTreeChangeSortRequestInput": {
+ "BazaarLocalInstallData": {
"type": "object",
"properties": {
- "notebook": {
+ "minAppVersion": {
"type": "string"
},
- "paths": {
- "type": "array",
- "items": {
- "type": "string"
- }
+ "packageName": {
+ "type": "string"
+ },
+ "packageType": {
+ "type": "string"
+ },
+ "updated": {
+ "type": "boolean"
}
},
"required": [
- "notebook",
- "paths"
+ "packageName",
+ "packageType",
+ "updated"
],
"additionalProperties": false
},
- "FileTreeCreateData": {
+ "BazaarLocalInstallError": {
"type": "object",
"properties": {
- "id": {
+ "minAppVersion": {
+ "type": "string"
+ },
+ "packageName": {
+ "type": "string"
+ },
+ "packageType": {
"type": "string"
+ },
+ "reason": {
+ "type": "string",
+ "enum": [
+ "install-failed",
+ "package-exists",
+ "package-incompatible"
+ ]
}
},
"required": [
- "id"
+ "minAppVersion",
+ "packageName",
+ "packageType",
+ "reason"
],
"additionalProperties": false
},
- "FileTreeCreateMarkdownRequestInput": {
- "type": "object",
+ "BazaarLocalInstallResult": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/BazaarLocalInstallData"
+ },
+ {
+ "$ref": "#/$defs/BazaarLocalInstallError"
+ }
+ ]
+ },
+ "BazaarNotifications": {
+ "type": "object",
"properties": {
- "clippingHref": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
+ "browserCompatibility": {
+ "type": "boolean"
},
- "docCreateTemplatePath": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
+ "docTreeMaxList": {
+ "type": "boolean"
},
- "id": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
+ "formatPainterTip": {
+ "type": "boolean"
},
- "listDocTree": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
+ "selectAllIncompleteTip": {
+ "type": "boolean"
},
- "markdown": {
- "type": "string"
+ "selectAllTip": {
+ "type": "boolean"
},
- "notebook": {
- "type": "string"
+ "tagMaxList": {
+ "type": "boolean"
},
- "parentID": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
+ "workspaceNotSSD": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "browserCompatibility",
+ "docTreeMaxList",
+ "tagMaxList",
+ "workspaceNotSSD"
+ ],
+ "additionalProperties": false
+ },
+ "BazaarPackage": {
+ "type": "object",
+ "properties": {
+ "alternatives": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
- "path": {
+ "author": {
"type": "string"
},
- "sortPosition": {
+ "backends": {
"anyOf": [
{
- "type": "string"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "sortTargetID": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
+ "bazaarIncompatible": {
+ "type": "boolean"
},
- "tags": {
+ "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"
}
]
},
- "titleEmpty": {
+ "disabledInPublish": {
"type": "boolean"
},
- "withMath": {
+ "disallowInstall": {
+ "type": "boolean"
+ },
+ "disallowUpdate": {
+ "type": "boolean"
+ },
+ "displayName": {
"anyOf": [
{
- "type": "boolean"
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
- }
- },
- "required": [
- "markdown",
- "notebook",
- "path"
- ],
- "additionalProperties": false
- },
- "FileTreeCreateRequestInput": {
- "type": "object",
- "properties": {
- "docCreateTemplatePath": {
+ },
+ "downloads": {
+ "type": "integer"
+ },
+ "enabled": {
+ "type": "boolean"
+ },
+ "frontends": {
"anyOf": [
{
- "type": "string"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "listDocTree": {
+ "funding": {
"anyOf": [
{
- "type": "boolean"
+ "$ref": "#/$defs/BazaarFunding"
},
{
"type": "null"
}
]
},
- "md": {
+ "hInstallDate": {
"type": "string"
},
- "notebook": {
+ "hInstallSize": {
"type": "string"
},
- "path": {
+ "hSize": {
"type": "string"
},
- "sortPosition": {
+ "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"
+ ]
+ },
+ "kernels": {
"anyOf": [
{
- "type": "string"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "sortTargetID": {
+ "keywords": {
"anyOf": [
{
- "type": "string"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "sorts": {
+ "minAppVersion": {
+ "type": "string"
+ },
+ "modes": {
"anyOf": [
{
"type": "array",
@@ -7863,148 +7527,215 @@
}
]
},
- "title": {
+ "name": {
"type": "string"
- }
- },
- "required": [
- "md",
- "notebook",
- "path",
- "title"
- ],
- "additionalProperties": false
- },
- "FileTreeCreateSavePathData": {
- "type": "object",
- "properties": {
- "box": {
+ },
+ "openIssues": {
+ "type": "integer"
+ },
+ "outdated": {
+ "type": "boolean"
+ },
+ "preferredDeprecatedReason": {
"type": "string"
},
- "docCreateTemplatePath": {
+ "preferredDesc": {
"type": "string"
},
- "path": {
+ "preferredFunding": {
"type": "string"
- }
- },
- "required": [
- "box",
- "docCreateTemplatePath",
- "path"
- ],
- "additionalProperties": false
- },
- "FileTreeDailyNoteRequestInput": {
- "type": "object",
- "properties": {
- "app": {
+ },
+ "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"
}
]
},
- "notebook": {
+ "repoHash": {
"type": "string"
- }
- },
- "required": [
- "notebook"
- ],
- "additionalProperties": false
- },
- "FileTreeDocFile": {
- "type": "object",
- "properties": {
- "children": {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/FileTreeDocFile"
- },
- {
- "type": "null"
- }
- ]
- }
},
- "id": {
+ "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": [
- "id"
+ "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
},
- "FileTreeDocHeadingData": {
+ "BazaarPackageDetail": {
"type": "object",
"properties": {
- "srcTreeBox": {
- "type": "string"
+ "available": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/BazaarPackage"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "srcTreePath": {
- "type": "string"
+ "installed": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/BazaarPackage"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
"required": [
- "srcTreeBox",
- "srcTreePath"
+ "available",
+ "installed"
],
"additionalProperties": false
},
- "FileTreeDocHeadingRequestInput": {
+ "BazaarPackageRating": {
"type": "object",
"properties": {
- "after": {
- "type": "boolean"
+ "average": {
+ "type": "number"
},
- "srcID": {
- "type": "string"
+ "count": {
+ "type": "integer"
},
- "targetID": {
- "type": "string"
+ "distribution": {
+ "type": "array",
+ "items": {
+ "type": "integer"
+ },
+ "minItems": 5,
+ "maxItems": 5
}
},
"required": [
- "after",
- "srcID",
- "targetID"
+ "average",
+ "count",
+ "distribution"
],
"additionalProperties": false
},
- "FileTreeDocPathData": {
+ "BazaarPackageSizeData": {
"type": "object",
"properties": {
- "notebook": {
+ "hInstallSize": {
"type": "string"
},
- "path": {
- "type": "string"
+ "installSize": {
+ "type": "integer"
}
},
"required": [
- "notebook",
- "path"
+ "hInstallSize",
+ "installSize"
],
"additionalProperties": false
},
- "FileTreeDocTreeData": {
+ "BazaarPackagesData": {
"type": "object",
"properties": {
- "tree": {
+ "packages": {
"anyOf": [
{
"type": "array",
"items": {
"anyOf": [
{
- "$ref": "#/$defs/FileTreeDocFile"
+ "$ref": "#/$defs/BazaarPackage"
},
{
"type": "null"
@@ -8019,159 +7750,75 @@
}
},
"required": [
- "tree"
+ "packages"
],
"additionalProperties": false
},
- "FileTreeDuplicateData": {
+ "BazaarREADMEData": {
"type": "object",
"properties": {
- "hPath": {
- "type": "string"
- },
- "id": {
- "type": "string"
- },
- "notebook": {
- "type": "string"
- },
- "path": {
+ "html": {
"type": "string"
}
},
"required": [
- "hPath",
- "id",
- "notebook",
- "path"
+ "html"
],
"additionalProperties": false
},
- "FileTreeFile": {
+ "BazaarRatingData": {
"type": "object",
"properties": {
- "alias": {
- "type": "string"
- },
- "bookmark": {
- "type": "string"
+ "rating": {
+ "$ref": "#/$defs/BazaarPackageRating"
},
- "childrenSortMode": {
- "anyOf": [
- {
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
+ "ratingAvailable": {
+ "type": "boolean"
},
- "count": {
- "type": "integer"
- },
- "ctime": {
- "type": "integer"
- },
- "dueFlashcardCount": {
- "type": "integer"
- },
- "flashcardCount": {
- "type": "integer"
- },
- "hCtime": {
- "type": "string"
- },
- "hMtime": {
- "type": "string"
- },
- "hSize": {
- "type": "string"
- },
- "icon": {
- "type": "string"
- },
- "id": {
- "type": "string"
- },
- "memo": {
- "type": "string"
- },
- "mtime": {
- "type": "integer"
- },
- "name": {
- "type": "string"
- },
- "name1": {
- "type": "string"
- },
- "newFlashcardCount": {
- "type": "integer"
- },
- "path": {
- "type": "string"
- },
- "size": {
- "type": "integer"
- },
- "sort": {
- "type": "integer"
- },
- "subFileCount": {
+ "userRating": {
"type": "integer"
- },
- "titleEmpty": {
- "type": "boolean"
}
},
"required": [
- "alias",
- "bookmark",
- "childrenSortMode",
- "count",
- "ctime",
- "dueFlashcardCount",
- "flashcardCount",
- "hCtime",
- "hMtime",
- "hSize",
- "icon",
- "id",
- "memo",
- "mtime",
- "name",
- "name1",
- "newFlashcardCount",
- "path",
- "size",
- "sort",
- "subFileCount"
+ "ratingAvailable",
+ "userRating"
],
"additionalProperties": false
},
- "FileTreeGetDocData": {
+ "BazaarRatingError": {
"type": "object",
"properties": {
- "blockCount": {
- "type": "integer"
- },
- "box": {
- "type": "string"
- },
- "content": {
- "type": "string"
- },
- "docInfo": {
- "$ref": "#/$defs/DocInfo"
- },
- "eof": {
- "type": "boolean"
+ "errorCode": {
+ "type": "string",
+ "enum": [
+ "bazaarRatingRateLimited",
+ "bazaarPackagePending"
+ ]
+ }
+ },
+ "required": [
+ "errorCode"
+ ],
+ "additionalProperties": false
+ },
+ "BazaarRatingResult": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/BazaarRatingData"
},
- "headingNumbers": {
+ {
+ "$ref": "#/$defs/BazaarRatingError"
+ }
+ ]
+ },
+ "BazaarRatingsData": {
+ "type": "object",
+ "properties": {
+ "eligiblePackageNames": {
"anyOf": [
{
- "type": "object",
- "additionalProperties": {
+ "type": "array",
+ "items": {
"type": "string"
}
},
@@ -8180,203 +7827,282 @@
}
]
},
- "id": {
- "type": "string"
- },
- "isBacklinkExpand": {
- "type": "boolean"
- },
- "isSyncing": {
- "type": "boolean"
- },
- "keywords": {
+ "ratings": {
"anyOf": [
{
- "type": "array",
- "items": {
- "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"
},
- "mode": {
- "type": "integer"
- },
- "parent2ID": {
- "type": "string"
- },
- "parentID": {
- "type": "string"
- },
- "path": {
- "type": "string"
- },
- "publishAccessRequired": {
+ "msgTaskAssetDatabaseIndexCommitDisabled": {
"type": "boolean"
},
- "reqId": {
- "$ref": "#/$defs/JSONValue"
+ "msgTaskDatabaseIndexCommitDisabled": {
+ "type": "boolean"
},
- "rootID": {
- "type": "string"
+ "msgTaskHistoryDatabaseIndexCommitDisabled": {
+ "type": "boolean"
},
- "scroll": {
+ "msgTaskHistoryGenerateFileDisabled": {
"type": "boolean"
},
- "type": {
- "type": "string"
+ "version": {
+ "type": "integer"
}
},
"required": [
- "blockCount",
- "box",
- "content",
- "eof",
- "headingNumbers",
- "id",
- "isBacklinkExpand",
- "isSyncing",
- "keywords",
- "mode",
- "parent2ID",
- "parentID",
- "path",
- "publishAccessRequired",
- "reqId",
- "rootID",
- "scroll",
- "type"
+ "msgDataSyncDisabled",
+ "msgTaskAssetDatabaseIndexCommitDisabled",
+ "msgTaskDatabaseIndexCommitDisabled",
+ "msgTaskHistoryDatabaseIndexCommitDisabled",
+ "msgTaskHistoryGenerateFileDisabled",
+ "version"
],
"additionalProperties": false
},
- "FileTreeGetDocRequestInput": {
+ "BazaarUpdatedData": {
"type": "object",
"properties": {
- "endID": {
+ "icons": {
"anyOf": [
{
- "type": "string"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/BazaarPackageDetail"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
},
- "highlight": {
+ "plugins": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/BazaarPackageDetail"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
},
- "id": {
- "type": "string"
- },
- "includeDocInfo": {
+ "templates": {
"anyOf": [
{
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
- },
- "index": {
- "anyOf": [
- {
- "type": "number"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/BazaarPackageDetail"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
},
- "isBacklink": {
+ "themes": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/BazaarPackageDetail"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
},
- "mode": {
+ "widgets": {
"anyOf": [
{
- "type": "number"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/BazaarPackageDetail"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
- },
- "notebook": {
+ }
+ },
+ "required": [
+ "icons",
+ "plugins",
+ "templates",
+ "themes",
+ "widgets"
+ ],
+ "additionalProperties": false
+ },
+ "BazaarUserRatingsData": {
+ "type": "object",
+ "properties": {
+ "eligiblePackageNames": {
"anyOf": [
{
- "type": "string"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "originalRefBlockIDs": {
+ "userRatings": {
"anyOf": [
{
"type": "object",
"additionalProperties": {
- "type": "string"
+ "type": "integer"
}
},
{
"type": "null"
}
]
+ }
+ },
+ "required": [
+ "eligiblePackageNames",
+ "userRatings"
+ ],
+ "additionalProperties": false
+ },
+ "BazaarUserRatingsResult": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/BazaarUserRatingsData"
},
- "query": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
+ {
+ "$ref": "#/$defs/BazaarRatingError"
+ }
+ ]
+ },
+ "BlockBreadcrumbChildren": {
+ "type": "object",
+ "properties": {
+ "hasMore": {
+ "type": "boolean"
},
- "queryMethod": {
+ "items": {
"anyOf": [
{
- "type": "number"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/BlockPath"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
- },
- "querySubTypes": {
+ }
+ },
+ "required": [
+ "hasMore",
+ "items"
+ ],
+ "additionalProperties": false
+ },
+ "BlockBreadcrumbChildrenRequestInput": {
+ "type": "object",
+ "properties": {
+ "excludeTypes": {
"anyOf": [
{
- "$ref": "#/$defs/SearchSubtypeFilterInput"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "queryTypes": {
+ "id": {
+ "type": "string"
+ },
+ "ids": {
"anyOf": [
{
- "type": "object",
- "additionalProperties": {
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "type": "string"
}
},
{
@@ -8384,30 +8110,30 @@
}
]
},
- "reqId": {
+ "limit": {
"anyOf": [
{
- "$ref": "#/$defs/JSONValue"
+ "type": "number"
},
{
"type": "null"
}
]
},
- "size": {
+ "notebook": {
"anyOf": [
{
- "type": "number"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "startID": {
+ "offset": {
"anyOf": [
{
- "type": "string"
+ "type": "number"
},
{
"type": "null"
@@ -8420,39 +8146,42 @@
],
"additionalProperties": false
},
- "FileTreeHeadingDocRequestInput": {
+ "BlockBreadcrumbRequestInput": {
"type": "object",
"properties": {
- "previousPath": {
+ "excludeTypes": {
"anyOf": [
{
- "type": "string"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "srcHeadingID": {
- "type": "string"
- },
- "targetNoteBook": {
+ "id": {
"type": "string"
},
- "targetPath": {
+ "ids": {
"anyOf": [
{
- "type": "string"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "toTop": {
+ "notebook": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
@@ -8461,97 +8190,114 @@
}
},
"required": [
- "srcHeadingID",
- "targetNoteBook"
+ "id"
],
"additionalProperties": false
},
- "FileTreeIDRequestInput": {
+ "BlockDOMData": {
"type": "object",
"properties": {
+ "dom": {
+ "type": "string"
+ },
"id": {
"type": "string"
}
},
"required": [
+ "dom",
"id"
],
"additionalProperties": false
},
- "FileTreeListData": {
+ "BlockDeleteData": {
"type": "object",
"properties": {
- "box": {
- "type": "string"
- },
- "effectiveSortMode": {
- "type": "integer"
- },
- "files": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/FileTreeFile"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- {
- "type": "null"
- }
- ]
- },
- "path": {
- "type": "string"
+ "createEmptyParagraph": {
+ "type": "boolean"
}
},
"required": [
- "box",
- "effectiveSortMode",
- "files",
- "path"
+ "createEmptyParagraph"
],
"additionalProperties": false
},
- "FileTreeListItemDocRequestInput": {
+ "BlockFoldData": {
"type": "object",
"properties": {
- "previousPath": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
+ "isFolded": {
+ "type": "boolean"
},
- "srcListItemID": {
+ "isRoot": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "isFolded",
+ "isRoot"
+ ],
+ "additionalProperties": false
+ },
+ "BlockIDRequestInput": {
+ "type": "object",
+ "properties": {
+ "id": {
"type": "string"
- },
- "targetNoteBook": {
+ }
+ },
+ "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"
},
- "targetPath": {
+ "ids": {
"anyOf": [
{
- "type": "string"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "toTop": {
+ "notebook": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
@@ -8560,223 +8306,275 @@
}
},
"required": [
- "srcListItemID",
- "targetNoteBook"
+ "id"
],
"additionalProperties": false
},
- "FileTreeListRequestInput": {
+ "BlockInsertInputInput": {
"type": "object",
"properties": {
- "app": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
+ "data": {
+ "type": "string"
},
- "flashcard": {
+ "dataType": {
+ "type": "string"
+ },
+ "nextID": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "ignoreMaxListHint": {
+ "parentID": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "maxListCount": {
+ "previousID": {
"anyOf": [
{
- "type": "number"
+ "type": "string"
},
{
"type": "null"
}
]
- },
- "notebook": {
+ }
+ },
+ "required": [
+ "data",
+ "dataType"
+ ],
+ "additionalProperties": false
+ },
+ "BlockKramdownData": {
+ "type": "object",
+ "properties": {
+ "id": {
"type": "string"
},
- "path": {
+ "kramdown": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "kramdown"
+ ],
+ "additionalProperties": false
+ },
+ "BlockKramdownRequestInput": {
+ "type": "object",
+ "properties": {
+ "id": {
"type": "string"
},
- "showHidden": {
+ "ids": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "sort": {
+ "mode": {
"anyOf": [
{
- "type": "number"
+ "type": "string"
},
{
"type": "null"
}
]
- }
- },
- "required": [
- "notebook",
- "path"
- ],
- "additionalProperties": false
- },
- "FileTreeMoveIDsRequestInput": {
- "type": "object",
- "properties": {
- "callback": {
+ },
+ "notebook": {
"anyOf": [
{
- "$ref": "#/$defs/JSONValue"
+ "type": "string"
},
{
"type": "null"
}
]
- },
- "fromIDs": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "toID": {
- "type": "string"
}
},
"required": [
- "fromIDs",
- "toID"
+ "id"
],
"additionalProperties": false
},
- "FileTreeMoveRequestInput": {
+ "BlockOperation": {
"type": "object",
"properties": {
- "callback": {
- "anyOf": [
- {
- "$ref": "#/$defs/JSONValue"
- },
- {
- "type": "null"
- }
+ "action": {
+ "type": "string",
+ "enum": [
+ "delete",
+ "insert",
+ "update",
+ "foldHeading",
+ "unfoldHeading",
+ "setAttrs",
+ "moveOutlineHeading",
+ "appendInsert",
+ "prependInsert"
]
},
- "fromPaths": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "toNotebook": {
+ "avID": {
"type": "string"
},
- "toPath": {
+ "backRelationKeyID": {
"type": "string"
- }
- },
- "required": [
- "fromPaths",
- "toNotebook",
- "toPath"
- ],
- "additionalProperties": false
- },
- "FileTreeNotebookRequestInput": {
- "type": "object",
- "properties": {
- "notebook": {
+ },
+ "blockID": {
"type": "string"
- }
- },
- "required": [
- "notebook"
- ],
- "additionalProperties": false
- },
- "FileTreeOptionalIDRequestInput": {
- "type": "object",
- "properties": {
- "id": {
+ },
+ "blockIDs": {
"anyOf": [
{
- "type": "string"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "FileTreeOptionalPathRequestInput": {
- "type": "object",
- "properties": {
- "notebook": {
+ },
+ "context": {
"anyOf": [
{
- "type": "string"
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "path": {
+ "data": {
"anyOf": [
+ {
+ "type": "null"
+ },
{
"type": "string"
},
{
- "type": "null"
+ "$ref": "#/$defs/BlockDeleteData"
}
]
- }
- },
- "additionalProperties": false
- },
- "FileTreePathRequestInput": {
- "type": "object",
- "properties": {
- "notebook": {
+ },
+ "deckID": {
"type": "string"
},
- "path": {
+ "format": {
"type": "string"
- }
- },
- "required": [
- "notebook",
- "path"
- ],
- "additionalProperties": false
- },
- "FileTreePathsRequestInput": {
- "type": "object",
- "properties": {
- "paths": {
+ },
+ "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": {
+ "anyOf": [
+ {
+ "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"
@@ -8784,21 +8582,49 @@
}
},
"required": [
- "paths"
+ "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
},
- "FileTreePublishData": {
+ "BlockPath": {
"type": "object",
"properties": {
- "publishAccess": {
+ "children": {
"anyOf": [
{
"type": "array",
"items": {
"anyOf": [
{
- "$ref": "#/$defs/FileTreePublishItem"
+ "$ref": "#/$defs/BlockPath"
},
{
"type": "null"
@@ -8810,164 +8636,171 @@
"type": "null"
}
]
- }
- },
- "required": [
- "publishAccess"
- ],
- "additionalProperties": false
- },
- "FileTreePublishIDsRequestInput": {
- "type": "object",
- "properties": {
- "ids": {
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- },
- "required": [
- "ids"
- ],
- "additionalProperties": false
- },
- "FileTreePublishItem": {
- "type": "object",
- "properties": {
- "disable": {
+ },
+ "hasChildren": {
"type": "boolean"
},
"id": {
"type": "string"
},
- "password": {
+ "name": {
"type": "string"
},
- "visible": {
- "type": "boolean"
+ "subType": {
+ "type": "string"
+ },
+ "type": {
+ "type": "string"
}
},
"required": [
- "disable",
+ "children",
"id",
- "password",
- "visible"
+ "name",
+ "subType",
+ "type"
],
"additionalProperties": false
},
- "FileTreeRenameIDRequestInput": {
+ "BlockQueryRequestInput": {
"type": "object",
"properties": {
"id": {
+ "type": "string"
+ },
+ "ids": {
"anyOf": [
{
- "type": "string"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "title": {
- "type": "string"
+ "notebook": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
"required": [
- "title"
+ "id"
],
"additionalProperties": false
},
- "FileTreeRenameRequestInput": {
+ "BlockRelevantData": {
"type": "object",
"properties": {
- "notebook": {
+ "nextID": {
"type": "string"
},
- "path": {
+ "parentID": {
"type": "string"
},
- "title": {
+ "previousID": {
"type": "string"
}
},
"required": [
- "notebook",
- "path",
- "title"
+ "nextID",
+ "parentID",
+ "previousID"
],
"additionalProperties": false
},
- "FileTreeReorderData": {
+ "BlockReminderRequestInput": {
"type": "object",
"properties": {
- "changed": {
- "type": "boolean"
+ "id": {
+ "type": "string"
},
- "conflict": {
- "type": "boolean"
+ "timed": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "timed"
+ ],
+ "additionalProperties": false
+ },
+ "BlockSiblingData": {
+ "type": "object",
+ "properties": {
+ "next": {
+ "type": "string"
},
- "notebook": {
+ "parent": {
"type": "string"
},
- "parentPath": {
+ "previous": {
"type": "string"
}
},
"required": [
- "changed"
+ "next",
+ "parent",
+ "previous"
],
"additionalProperties": false
},
- "FileTreeReorderRequestInput": {
+ "BlockStat": {
"type": "object",
"properties": {
- "position": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
+ "blockCount": {
+ "type": "integer"
},
- "preview": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
+ "imageCount": {
+ "type": "integer"
},
- "removeSorts": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
+ "linkCount": {
+ "type": "integer"
},
- "respectSort": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
+ "refCount": {
+ "type": "integer"
},
- "sourceIDs": {
+ "runeCount": {
+ "type": "integer"
+ },
+ "wordCount": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "blockCount",
+ "imageCount",
+ "linkCount",
+ "refCount",
+ "runeCount",
+ "wordCount"
+ ],
+ "additionalProperties": false
+ },
+ "BlockTransaction": {
+ "type": "object",
+ "properties": {
+ "doOperations": {
"anyOf": [
{
"type": "array",
"items": {
- "type": "string"
+ "anyOf": [
+ {
+ "$ref": "#/$defs/BlockOperation"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
{
@@ -8975,10 +8808,26 @@
}
]
},
- "targetID": {
+ "templateDocTreePlanID": {
+ "type": "string"
+ },
+ "timestamp": {
+ "type": "integer"
+ },
+ "undoOperations": {
"anyOf": [
{
- "type": "string"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/BlockOperation"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
@@ -8986,145 +8835,166 @@
]
}
},
- "additionalProperties": false
- },
- "FileTreeSavePathData": {
- "type": "object",
- "properties": {
- "box": {
- "type": "string"
- },
- "path": {
- "type": "string"
- }
- },
"required": [
- "box",
- "path"
+ "doOperations",
+ "timestamp",
+ "undoOperations"
],
"additionalProperties": false
},
- "FileTreeSearchDoc": {
+ "BlockTreeInfo": {
"type": "object",
"properties": {
- "alias": {
- "type": "string"
- },
- "box": {
+ "id": {
"type": "string"
},
- "boxIcon": {
+ "nextID": {
"type": "string"
},
- "dueFlashcardCount": {
+ "nextType": {
"type": "string"
},
- "flashcardCount": {
+ "parentID": {
"type": "string"
},
- "hPath": {
+ "parentType": {
"type": "string"
},
- "name": {
+ "previousID": {
"type": "string"
},
- "newFlashcardCount": {
+ "previousType": {
"type": "string"
},
- "path": {
+ "type": {
"type": "string"
}
},
"required": [
- "box",
- "boxIcon",
- "hPath",
- "path"
+ "id",
+ "nextID",
+ "nextType",
+ "parentID",
+ "parentType",
+ "previousID",
+ "previousType",
+ "type"
],
"additionalProperties": false
},
- "FileTreeSearchRequestInput": {
+ "BlocksKramdownRequestInput": {
"type": "object",
"properties": {
- "excludeIDs": {
+ "id": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "type": "string"
},
{
"type": "null"
}
]
},
- "flashcard": {
+ "ids": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "mode": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "k": {
- "type": "string"
+ "notebook": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
"required": [
- "k"
+ "ids"
],
"additionalProperties": false
},
- "FileTreeSetPublishRequestInput": {
+ "BlocksQueryRequestInput": {
"type": "object",
"properties": {
- "disable": {
- "type": "boolean"
- },
"id": {
- "type": "string"
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "password": {
- "type": "string"
+ "ids": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
- "visible": {
- "type": "boolean"
+ "notebook": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
"required": [
- "disable",
- "id",
- "password",
- "visible"
+ "ids"
],
"additionalProperties": false
},
- "FileTreeSetSortData": {
+ "BlocksWordCountRequestInput": {
"type": "object",
"properties": {
- "docIDs": {
+ "id": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "type": "string"
},
{
"type": "null"
}
]
},
- "notebookIDs": {
+ "ids": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "notebook": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "reqId": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/JSONValue"
},
{
"type": "null"
@@ -9133,22 +9003,21 @@
}
},
"required": [
- "docIDs",
- "notebookIDs"
+ "ids"
],
"additionalProperties": false
},
- "FileTreeSetSortRequestInput": {
+ "Bookmark": {
"type": "object",
"properties": {
- "docSorts": {
+ "blocks": {
"anyOf": [
{
"type": "array",
"items": {
"anyOf": [
{
- "$ref": "#/$defs/FileTreeSortItemInput"
+ "$ref": "#/$defs/SearchBlock"
},
{
"type": "null"
@@ -9161,107 +9030,67 @@
}
]
},
- "notebookSorts": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/FileTreeSortItemInput"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- {
- "type": "null"
- }
- ]
+ "count": {
+ "type": "integer"
+ },
+ "depth": {
+ "type": "integer"
+ },
+ "name": {
+ "type": "string"
+ },
+ "type": {
+ "type": "string"
}
},
+ "required": [
+ "blocks",
+ "count",
+ "depth",
+ "name",
+ "type"
+ ],
"additionalProperties": false
},
- "FileTreeSortItemInput": {
+ "BootProgressData": {
"type": "object",
"properties": {
- "id": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
+ "details": {
+ "type": "string"
},
- "sort": {
- "anyOf": [
- {
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
+ "progress": {
+ "type": "integer"
}
},
+ "required": [
+ "details",
+ "progress"
+ ],
"additionalProperties": false
},
- "FileTreeSortModeData": {
+ "BroadcastChannel": {
"type": "object",
"properties": {
- "box": {
- "type": "string"
- },
- "effectiveSortMode": {
+ "count": {
"type": "integer"
},
- "id": {
- "type": "string"
- },
- "path": {
+ "name": {
"type": "string"
- },
- "sortMode": {
- "anyOf": [
- {
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
}
},
"required": [
- "box",
- "effectiveSortMode",
- "id",
- "path",
- "sortMode"
+ "count",
+ "name"
],
"additionalProperties": false
},
- "FileTreeSortModeRequestInput": {
+ "BroadcastChannelData": {
"type": "object",
"properties": {
- "id": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "sortMode": {
+ "channel": {
"anyOf": [
{
- "type": "integer"
+ "$ref": "#/$defs/BroadcastChannel"
},
{
"type": "null"
@@ -9270,258 +9099,204 @@
}
},
"required": [
- "sortMode"
+ "channel"
],
"additionalProperties": false
},
- "FileTreeTrimIDRequestInput": {
+ "BroadcastChannelRequestInput": {
"type": "object",
"properties": {
- "id": {
+ "name": {
"type": "string"
}
},
"required": [
- "id"
+ "name"
],
"additionalProperties": false
},
- "FindReplaceRequestInput": {
+ "BroadcastChannelsData": {
"type": "object",
"properties": {
- "groupBy": {
- "anyOf": [
- {
- "type": "number"
- },
- {
- "type": "null"
- }
- ]
- },
- "ids": {
+ "channels": {
"type": "array",
"items": {
- "type": "string"
- }
- },
- "k": {
- "type": "string"
- },
- "method": {
- "anyOf": [
- {
- "type": "number"
- },
- {
- "type": "null"
- }
- ]
- },
- "orderBy": {
- "anyOf": [
- {
- "type": "number"
- },
- {
- "type": "null"
- }
- ]
- },
- "page": {
- "anyOf": [
- {
- "type": "number"
- },
- {
- "type": "null"
- }
- ]
- },
- "pageSize": {
- "anyOf": [
- {
- "type": "number"
- },
- {
- "type": "null"
- }
- ]
- },
- "paths": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- {
- "type": "null"
- }
- ]
- },
- "query": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "r": {
- "type": "string"
- },
- "replaceTypes": {
- "anyOf": [
- {
- "type": "object",
- "additionalProperties": {
- "type": "boolean"
- }
- },
- {
- "type": "null"
- }
- ]
- },
- "subTypes": {
- "anyOf": [
- {
- "$ref": "#/$defs/SearchSubtypeFilterInput"
- },
- {
- "type": "null"
- }
- ]
- },
- "types": {
- "anyOf": [
- {
- "type": "object",
- "additionalProperties": {
- "type": "boolean"
+ "anyOf": [
+ {
+ "$ref": "#/$defs/BroadcastChannel"
+ },
+ {
+ "type": "null"
}
- },
- {
- "type": "null"
- }
- ]
+ ]
+ }
}
},
"required": [
- "ids",
- "k",
- "r"
+ "channels"
],
"additionalProperties": false
},
- "FullBlockInfo": {
+ "BroadcastMessageRequestInput": {
"type": "object",
"properties": {
- "box": {
- "type": "string"
- },
- "path": {
- "type": "string"
- },
- "rootChildID": {
- "type": "string"
- },
- "rootID": {
- "type": "string"
- },
- "rootIcon": {
+ "channel": {
"type": "string"
},
- "rootTitle": {
+ "message": {
"type": "string"
- },
- "rootTitleEmpty": {
- "type": "boolean"
}
},
"required": [
- "box",
- "path",
- "rootChildID",
- "rootID",
- "rootIcon",
- "rootTitle",
- "rootTitleEmpty"
+ "channel",
+ "message"
],
"additionalProperties": false
},
- "FullTextSearchBlockData": {
+ "BroadcastPublishData": {
"type": "object",
"properties": {
- "blocks": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/SearchBlock"
- },
- {
- "type": "null"
- }
- ]
+ "results": {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/BroadcastPublishResult"
+ },
+ {
+ "type": "null"
}
- },
- {
- "type": "null"
- }
- ]
- },
- "docMode": {
- "type": "boolean"
+ ]
+ }
+ }
+ },
+ "required": [
+ "results"
+ ],
+ "additionalProperties": false
+ },
+ "BroadcastPublishMessage": {
+ "type": "object",
+ "properties": {
+ "filename": {
+ "type": "string"
},
- "matchedBlockCount": {
+ "size": {
"type": "integer"
},
- "matchedRootCount": {
- "type": "integer"
+ "type": {
+ "type": "string",
+ "enum": [
+ "string",
+ "binary"
+ ]
+ }
+ },
+ "required": [
+ "filename",
+ "size",
+ "type"
+ ],
+ "additionalProperties": false
+ },
+ "BroadcastPublishResult": {
+ "type": "object",
+ "properties": {
+ "channel": {
+ "$ref": "#/$defs/BroadcastChannel"
},
- "pageCount": {
+ "code": {
"type": "integer"
+ },
+ "message": {
+ "$ref": "#/$defs/BroadcastPublishMessage"
+ },
+ "msg": {
+ "type": "string"
}
},
"required": [
- "blocks",
- "docMode",
- "matchedBlockCount",
- "matchedRootCount",
- "pageCount"
+ "channel",
+ "code",
+ "message",
+ "msg"
],
"additionalProperties": false
},
- "FullTextSearchBlockRequestInput": {
+ "ChangeMasterPasswordRequestInput": {
"type": "object",
"properties": {
- "groupBy": {
- "anyOf": [
- {
- "type": "number"
- },
- {
- "type": "null"
- }
- ]
+ "newPassword": {
+ "type": "string"
},
- "method": {
+ "oldPassword": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "newPassword",
+ "oldPassword"
+ ],
+ "additionalProperties": false
+ },
+ "ChangeSortNotebookRequestInput": {
+ "type": "object",
+ "properties": {
+ "notebooks": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ },
+ "required": [
+ "notebooks"
+ ],
+ "additionalProperties": false
+ },
+ "CheckActivationCodeRequestInput": {
+ "type": "object",
+ "properties": {
+ "data": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "data"
+ ],
+ "additionalProperties": false
+ },
+ "CheckBlockRefRequestInput": {
+ "type": "object",
+ "properties": {
+ "deletedIDs": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "exactIDs": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "id": {
"anyOf": [
{
- "type": "number"
+ "type": "string"
},
{
"type": "null"
}
]
},
+ "ids": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
"notebook": {
"anyOf": [
{
@@ -9532,50 +9307,72 @@
}
]
},
- "orderBy": {
- "anyOf": [
- {
- "type": "number"
- },
- {
- "type": "null"
- }
- ]
+ "paths": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
- "page": {
+ "scope": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false
+ },
+ "CheckBlocksExistRequestInput": {
+ "type": "object",
+ "properties": {
+ "id": {
"anyOf": [
{
- "type": "number"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "pageSize": {
- "anyOf": [
- {
- "type": "number"
- },
- {
- "type": "null"
- }
- ]
+ "ids": {
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/JSONValue"
+ }
},
- "paths": {
+ "notebook": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "type": "string"
},
{
"type": "null"
}
]
+ }
+ },
+ "required": [
+ "ids"
+ ],
+ "additionalProperties": false
+ },
+ "CheckSnapshotData": {
+ "type": "object",
+ "properties": {
+ "changed": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "changed"
+ ],
+ "additionalProperties": false
+ },
+ "CheckoutRepoRequestInput": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
},
- "query": {
+ "sessionID": {
"anyOf": [
{
"type": "string"
@@ -9584,169 +9381,194 @@
"type": "null"
}
]
+ }
+ },
+ "required": [
+ "id"
+ ],
+ "additionalProperties": false
+ },
+ "ChildBlock": {
+ "type": "object",
+ "properties": {
+ "content": {
+ "type": "string"
},
- "searchHPath": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
+ "id": {
+ "type": "string"
},
- "subTypes": {
- "anyOf": [
- {
- "$ref": "#/$defs/SearchSubtypeFilterInput"
- },
- {
- "type": "null"
- }
- ]
+ "markdown": {
+ "type": "string"
},
- "types": {
- "anyOf": [
- {
- "type": "object",
- "additionalProperties": {
- "type": "boolean"
- }
- },
- {
- "type": "null"
- }
- ]
+ "subType": {
+ "type": "string"
+ },
+ "type": {
+ "type": "string"
}
},
+ "required": [
+ "id",
+ "type"
+ ],
"additionalProperties": false
},
- "GetBazaarIconRequestInput": {
+ "CleanupRichTextRequestInput": {
"type": "object",
"properties": {
- "keyword": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
+ "batch": {
+ "type": "string"
+ },
+ "groups": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
}
},
+ "required": [
+ "batch",
+ "groups"
+ ],
"additionalProperties": false
},
- "GetBazaarPackageREADMERequestInput": {
+ "ClipboardFile": {
"type": "object",
"properties": {
- "packageType": {
- "type": "string"
+ "isDir": {
+ "type": "boolean"
},
- "repoHash": {
+ "name": {
"type": "string"
},
- "repoURL": {
+ "path": {
"type": "string"
+ },
+ "size": {
+ "type": "integer"
+ },
+ "updated": {
+ "type": "integer"
}
},
"required": [
- "packageType",
- "repoHash",
- "repoURL"
+ "isDir",
+ "name",
+ "path",
+ "size",
+ "updated"
],
"additionalProperties": false
},
- "GetBazaarPackageRatingRequestInput": {
+ "ClipboardPathRequestInput": {
"type": "object",
"properties": {
- "packageName": {
- "type": "string"
- },
- "packageType": {
+ "path": {
"type": "string"
}
},
"required": [
- "packageName",
- "packageType"
+ "path"
],
"additionalProperties": false
},
- "GetBazaarPackageRatingsRequestInput": {
+ "CloseNotebookRequestInput": {
"type": "object",
"properties": {
- "packageNames": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "packageType": {
+ "notebook": {
"type": "string"
}
},
"required": [
- "packageNames",
- "packageType"
+ "notebook"
],
"additionalProperties": false
},
- "GetBazaarPackageRequestInput": {
+ "CloudBackup": {
"type": "object",
"properties": {
- "frontend": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
+ "hSize": {
+ "type": "string"
},
- "packageName": {
+ "saveDir": {
"type": "string"
},
- "packageType": {
+ "size": {
+ "type": "integer"
+ },
+ "updated": {
"type": "string"
}
},
"required": [
- "packageName",
- "packageType"
+ "hSize",
+ "saveDir",
+ "size",
+ "updated"
],
"additionalProperties": false
},
- "GetBazaarPackageUserRatingsRequestInput": {
+ "CloudReminderRequestInput": {
"type": "object",
"properties": {
- "packageNames": {
- "type": "array",
- "items": {
- "type": "string"
- }
+ "content": {
+ "type": "string"
},
- "packageType": {
+ "id": {
+ "type": "string"
+ },
+ "timed": {
"type": "string"
}
},
"required": [
- "packageNames",
- "packageType"
+ "content",
+ "id",
+ "timed"
],
"additionalProperties": false
},
- "GetBazaarPluginRequestInput": {
+ "CloudSpaceData": {
"type": "object",
"properties": {
- "frontend": {
+ "backup": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/CloudBackup"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "hAssetSize": {
"type": "string"
},
- "keyword": {
+ "hExchangeSize": {
+ "type": "string"
+ },
+ "hSize": {
+ "type": "string"
+ },
+ "hTotalSize": {
+ "type": "string"
+ },
+ "hTrafficAPIGet": {
+ "type": "string"
+ },
+ "hTrafficAPIPut": {
+ "type": "string"
+ },
+ "hTrafficDownloadSize": {
+ "type": "string"
+ },
+ "hTrafficUploadSize": {
+ "type": "string"
+ },
+ "sync": {
"anyOf": [
{
- "type": "string"
+ "$ref": "#/$defs/CloudSync"
},
{
"type": "null"
@@ -9755,59 +9577,98 @@
}
},
"required": [
- "frontend"
+ "backup",
+ "hAssetSize",
+ "hExchangeSize",
+ "hSize",
+ "hTotalSize",
+ "hTrafficAPIGet",
+ "hTrafficAPIPut",
+ "hTrafficDownloadSize",
+ "hTrafficUploadSize",
+ "sync"
],
"additionalProperties": false
},
- "GetBazaarTemplateRequestInput": {
+ "CloudSync": {
"type": "object",
"properties": {
- "keyword": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
+ "cloudName": {
+ "type": "string"
+ },
+ "hSize": {
+ "type": "string"
+ },
+ "saveDir": {
+ "type": "string"
+ },
+ "size": {
+ "type": "integer"
+ },
+ "updated": {
+ "type": "string"
}
},
+ "required": [
+ "cloudName",
+ "hSize",
+ "saveDir",
+ "size",
+ "updated"
+ ],
"additionalProperties": false
},
- "GetBazaarThemeRequestInput": {
+ "CloudSyncDir": {
"type": "object",
"properties": {
- "frontend": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
+ "cloudName": {
+ "type": "string"
},
- "keyword": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
+ "hSize": {
+ "type": "string"
+ },
+ "saveDir": {
+ "type": "string"
+ },
+ "size": {
+ "type": "integer"
+ },
+ "updated": {
+ "type": "string"
}
},
+ "required": [
+ "cloudName",
+ "hSize",
+ "saveDir",
+ "size",
+ "updated"
+ ],
"additionalProperties": false
},
- "GetBazaarWidgetRequestInput": {
+ "CloudSyncDirsData": {
"type": "object",
"properties": {
- "keyword": {
+ "checkedSyncDir": {
+ "type": "string"
+ },
+ "hSize": {
+ "type": "string"
+ },
+ "syncDirs": {
"anyOf": [
{
- "type": "string"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/CloudSyncDir"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
@@ -9815,172 +9676,142 @@
]
}
},
- "additionalProperties": false
- },
- "GetCloudRepoSnapshotsRequestInput": {
- "type": "object",
- "properties": {
- "page": {
- "type": "number"
- }
- },
"required": [
- "page"
+ "checkedSyncDir",
+ "hSize",
+ "syncDirs"
],
"additionalProperties": false
},
- "GetEmbedBlockRequestInput": {
+ "ContentWordCountRequestInput": {
"type": "object",
"properties": {
- "breadcrumb": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
- },
- "embedBlockID": {
+ "content": {
"type": "string"
},
- "headingMode": {
+ "reqId": {
"anyOf": [
{
- "type": "number"
+ "$ref": "#/$defs/JSONValue"
},
{
"type": "null"
}
]
- },
- "includeIDs": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
+ }
+ },
+ "required": [
+ "content"
+ ],
+ "additionalProperties": false
+ },
+ "ContinueImportSYRequestInput": {
+ "type": "object",
+ "properties": {
"notebook": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
+ "type": "string"
+ },
+ "token": {
+ "type": "string"
}
},
"required": [
- "embedBlockID",
- "includeIDs"
+ "notebook",
+ "token"
],
"additionalProperties": false
},
- "GetInstalledIconRequestInput": {
+ "CopyExportFileRequestInput": {
"type": "object",
"properties": {
- "keyword": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
+ "dest": {
+ "type": "string"
+ },
+ "srcPath": {
+ "type": "string"
}
},
+ "required": [
+ "dest",
+ "srcPath"
+ ],
"additionalProperties": false
},
- "GetInstalledPackageSizeRequestInput": {
+ "CopyFileRequestInput": {
"type": "object",
"properties": {
- "packageName": {
+ "dest": {
"type": "string"
},
- "packageType": {
+ "src": {
"type": "string"
}
},
"required": [
- "packageName",
- "packageType"
+ "dest",
+ "src"
],
"additionalProperties": false
},
- "GetInstalledPluginRequestInput": {
+ "CopyFilesRequestInput": {
"type": "object",
"properties": {
- "frontend": {
+ "destDir": {
"type": "string"
},
- "keyword": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
+ "srcs": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
}
},
"required": [
- "frontend"
+ "destDir",
+ "srcs"
],
"additionalProperties": false
},
- "GetInstalledTemplateRequestInput": {
+ "CopyStdMarkdownRequestInput": {
"type": "object",
"properties": {
- "keyword": {
+ "adjustHeadingLevel": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "GetInstalledThemeRequestInput": {
- "type": "object",
- "properties": {
- "frontend": {
+ },
+ "assetsDestSpace2Underscore": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "keyword": {
+ "fillCSSVar": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "GetInstalledWidgetRequestInput": {
- "type": "object",
- "properties": {
- "keyword": {
+ },
+ "id": {
+ "type": "string"
+ },
+ "imgTag": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
@@ -9988,25 +9819,24 @@
]
}
},
+ "required": [
+ "id"
+ ],
"additionalProperties": false
},
- "GetRepoDocHistoryRequestInput": {
+ "CreateAssetHistoryRequestInput": {
"type": "object",
"properties": {
- "id": {
+ "path": {
"type": "string"
- },
- "page": {
- "type": "number"
}
},
"required": [
- "id",
- "page"
+ "path"
],
"additionalProperties": false
},
- "GetRepoFileRequestInput": {
+ "CreateDocHistoryRequestInput": {
"type": "object",
"properties": {
"id": {
@@ -10018,115 +9848,147 @@
],
"additionalProperties": false
},
- "GetRepoSnapshotsRequestInput": {
+ "CreateEncryptedNotebookRequestInput": {
"type": "object",
"properties": {
- "page": {
- "type": "number"
+ "name": {
+ "type": "string"
+ },
+ "password": {
+ "type": "string"
}
},
"required": [
- "page"
+ "name",
+ "password"
],
"additionalProperties": false
},
- "GetSnippetRequestInput": {
+ "CreateNotebookData": {
"type": "object",
"properties": {
- "enabled": {
- "type": "number"
- },
- "keyword": {
+ "notebook": {
"anyOf": [
{
- "type": "string"
+ "$ref": "#/$defs/Notebook"
},
{
"type": "null"
}
]
- },
- "type": {
+ }
+ },
+ "required": [
+ "notebook"
+ ],
+ "additionalProperties": false
+ },
+ "CreateNotebookRequestInput": {
+ "type": "object",
+ "properties": {
+ "name": {
"type": "string"
}
},
"required": [
- "enabled",
- "type"
+ "name"
],
"additionalProperties": false
},
- "GetTagRequestInput": {
+ "CreateRiffDeckRequestInput": {
"type": "object",
"properties": {
- "app": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "ignoreMaxListHint": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
- },
- "sort": {
- "anyOf": [
- {
- "type": "number"
- },
- {
- "type": "null"
- }
- ]
+ "name": {
+ "type": "string"
}
},
+ "required": [
+ "name"
+ ],
"additionalProperties": false
},
- "GetUpdatedPackageRequestInput": {
+ "CreateSnapshotData": {
"type": "object",
"properties": {
- "frontend": {
+ "created": {
+ "type": "boolean"
+ },
+ "id": {
"type": "string"
}
},
"required": [
- "frontend"
+ "created",
+ "id"
],
"additionalProperties": false
},
- "GlobalGraphConf": {
+ "CreateSnapshotRequestInput": {
"type": "object",
"properties": {
- "d3": {
+ "memo": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false
+ },
+ "Criterion": {
+ "type": "object",
+ "properties": {
+ "group": {
+ "type": "integer"
+ },
+ "hPath": {
+ "type": "string"
+ },
+ "hasReplace": {
+ "type": "boolean"
+ },
+ "idPath": {
"anyOf": [
{
- "$ref": "#/$defs/GraphD3"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "dailyNote": {
- "type": "boolean"
+ "k": {
+ "type": "string"
},
- "minRefs": {
+ "method": {
"type": "integer"
},
- "type": {
+ "name": {
+ "type": "string"
+ },
+ "r": {
+ "type": "string"
+ },
+ "replaceTypes": {
"anyOf": [
{
- "$ref": "#/$defs/GraphTypeFilter"
+ "$ref": "#/$defs/CriterionReplaceTypes"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "sort": {
+ "type": "integer"
+ },
+ "subTypes": {
+ "$ref": "#/$defs/SearchSubTypes"
+ },
+ "types": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/CriterionTypes"
},
{
"type": "null"
@@ -10135,20 +9997,35 @@
}
},
"required": [
- "d3",
- "dailyNote",
- "minRefs",
- "type"
+ "group",
+ "hPath",
+ "hasReplace",
+ "idPath",
+ "k",
+ "method",
+ "name",
+ "r",
+ "replaceTypes",
+ "sort",
+ "subTypes",
+ "types"
],
"additionalProperties": false
},
- "GlobalGraphRequestInput": {
+ "CriterionInput": {
"type": "object",
"properties": {
- "conf": {
- "$ref": "#/$defs/GraphConfigurationFieldsInput"
+ "group": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "k": {
+ "hPath": {
"anyOf": [
{
"type": "string"
@@ -10158,44 +10035,22 @@
}
]
},
- "reqId": {
+ "hasReplace": {
"anyOf": [
{
- "$ref": "#/$defs/JSONValue"
+ "type": "boolean"
},
{
"type": "null"
}
]
- }
- },
- "required": [
- "conf"
- ],
- "additionalProperties": false
- },
- "GlobalGraphResult": {
- "type": "object",
- "properties": {
- "box": {
- "type": "string"
- },
- "conf": {
- "$ref": "#/$defs/GlobalGraphConf"
},
- "links": {
+ "idPath": {
"anyOf": [
{
"type": "array",
"items": {
- "anyOf": [
- {
- "$ref": "#/$defs/GraphLink"
- },
- {
- "type": "null"
- }
- ]
+ "type": "string"
}
},
{
@@ -10203,94 +10058,57 @@
}
]
},
- "nodes": {
+ "k": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/GraphNode"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "string"
},
{
"type": "null"
}
]
},
- "reqId": {
- "$ref": "#/$defs/JSONValue"
- }
- },
- "required": [
- "box",
- "conf",
- "links",
- "nodes",
- "reqId"
- ],
- "additionalProperties": false
- },
- "GraphArrows": {
- "type": "object",
- "properties": {
- "to": {
+ "method": {
"anyOf": [
{
- "$ref": "#/$defs/GraphArrowsTo"
+ "type": "integer"
},
{
"type": "null"
}
]
- }
- },
- "required": [
- "to"
- ],
- "additionalProperties": false
- },
- "GraphArrowsTo": {
- "type": "object",
- "properties": {
- "enabled": {
- "type": "boolean"
- }
- },
- "required": [
- "enabled"
- ],
- "additionalProperties": false
- },
- "GraphConfigurationFieldsInput": {
- "type": "object",
- "properties": {
- "d3": {
+ },
+ "name": {
"anyOf": [
{
- "$ref": "#/$defs/GraphD3Input"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "dailyNote": {
+ "r": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "minRefs": {
+ "replaceTypes": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/CriterionReplaceTypesInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "sort": {
"anyOf": [
{
"type": "integer"
@@ -10300,10 +10118,20 @@
}
]
},
- "type": {
+ "subTypes": {
"anyOf": [
{
- "$ref": "#/$defs/GraphTypeFilterInput"
+ "$ref": "#/$defs/SearchSubTypesInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "types": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/CriterionTypesInput"
},
{
"type": "null"
@@ -10313,62 +10141,118 @@
},
"additionalProperties": false
},
- "GraphCorrelation": {
+ "CriterionReplaceTypes": {
"type": "object",
"properties": {
- "reqId": {
- "$ref": "#/$defs/JSONValue"
- }
- },
- "required": [
- "reqId"
- ],
- "additionalProperties": false
- },
- "GraphD3": {
- "type": "object",
- "properties": {
- "arrow": {
+ "aHref": {
"type": "boolean"
},
- "centerStrength": {
- "type": "number"
+ "aText": {
+ "type": "boolean"
},
- "collideRadius": {
- "type": "number"
+ "aTitle": {
+ "type": "boolean"
},
- "collideStrength": {
- "type": "number"
+ "blockRef": {
+ "type": "boolean"
},
- "lineOpacity": {
- "type": "number"
+ "code": {
+ "type": "boolean"
},
- "linkDistance": {
- "type": "integer"
+ "codeBlock": {
+ "type": "boolean"
},
- "linkWidth": {
- "type": "number"
+ "docTitle": {
+ "type": "boolean"
},
- "nodeSize": {
- "type": "number"
+ "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": [
- "arrow",
- "centerStrength",
- "collideRadius",
- "collideStrength",
- "lineOpacity",
- "linkDistance",
- "linkWidth",
- "nodeSize"
+ "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
},
- "GraphD3Input": {
+ "CriterionReplaceTypesInput": {
"type": "object",
"properties": {
- "arrow": {
+ "aHref": {
"anyOf": [
{
"type": "boolean"
@@ -10378,209 +10262,341 @@
}
]
},
- "centerStrength": {
+ "aText": {
"anyOf": [
{
- "type": "number"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "collideRadius": {
+ "aTitle": {
"anyOf": [
{
- "type": "number"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "collideStrength": {
+ "blockRef": {
"anyOf": [
{
- "type": "number"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "lineOpacity": {
+ "code": {
"anyOf": [
{
- "type": "number"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "linkDistance": {
+ "codeBlock": {
"anyOf": [
{
- "type": "integer"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "linkWidth": {
+ "docTitle": {
"anyOf": [
{
- "type": "number"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "nodeSize": {
+ "em": {
"anyOf": [
{
- "type": "number"
+ "type": "boolean"
},
{
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "GraphLink": {
- "type": "object",
- "properties": {
- "arrows": {
+ },
+ "fileAnnotationRef": {
"anyOf": [
{
- "$ref": "#/$defs/GraphArrows"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "from": {
- "type": "string"
- },
- "ref": {
- "type": "boolean"
- },
- "to": {
- "type": "string"
- }
- },
- "required": [
- "arrows",
- "from",
- "ref",
- "to"
- ],
- "additionalProperties": false
- },
- "GraphNode": {
- "type": "object",
- "properties": {
- "box": {
- "type": "string"
- },
- "defs": {
- "type": "integer"
+ "htmlBlock": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "id": {
- "type": "string"
+ "imgSrc": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "label": {
- "type": "string"
+ "imgText": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "path": {
- "type": "string"
+ "imgTitle": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "refs": {
- "type": "integer"
+ "inlineMath": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "size": {
- "type": "number"
+ "inlineMemo": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "title": {
- "type": "string"
+ "kbd": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "type": {
- "type": "string"
+ "mark": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "mathBlock": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "s": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "strong": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "sub": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "sup": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "tag": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "text": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "u": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
- "required": [
- "box",
- "defs",
- "id",
- "label",
- "path",
- "refs",
- "size",
- "type"
- ],
"additionalProperties": false
},
- "GraphTypeFilter": {
+ "CriterionTypes": {
"type": "object",
"properties": {
+ "audioBlock": {
+ "type": "boolean"
+ },
"blockquote": {
"type": "boolean"
},
"callout": {
"type": "boolean"
},
- "code": {
+ "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"
},
- "math": {
+ "mathBlock": {
"type": "boolean"
},
"paragraph": {
"type": "boolean"
},
- "super": {
+ "superBlock": {
+ "type": "boolean"
+ },
+ "tabItem": {
"type": "boolean"
},
"table": {
"type": "boolean"
},
- "tag": {
+ "tabs": {
+ "type": "boolean"
+ },
+ "videoBlock": {
+ "type": "boolean"
+ },
+ "widgetBlock": {
"type": "boolean"
}
},
"required": [
+ "audioBlock",
"blockquote",
"callout",
- "code",
+ "codeBlock",
+ "databaseBlock",
+ "document",
+ "embedBlock",
"heading",
+ "htmlBlock",
+ "iframeBlock",
"list",
"listItem",
- "math",
+ "mathBlock",
"paragraph",
- "super",
+ "superBlock",
+ "tabItem",
"table",
- "tag"
+ "tabs",
+ "videoBlock",
+ "widgetBlock"
],
"additionalProperties": false
},
- "GraphTypeFilterInput": {
+ "CriterionTypesInput": {
"type": "object",
"properties": {
- "blockquote": {
+ "audioBlock": {
"anyOf": [
{
"type": "boolean"
@@ -10590,7 +10606,7 @@
}
]
},
- "callout": {
+ "blockquote": {
"anyOf": [
{
"type": "boolean"
@@ -10600,7 +10616,7 @@
}
]
},
- "code": {
+ "callout": {
"anyOf": [
{
"type": "boolean"
@@ -10610,7 +10626,7 @@
}
]
},
- "heading": {
+ "codeBlock": {
"anyOf": [
{
"type": "boolean"
@@ -10620,7 +10636,7 @@
}
]
},
- "list": {
+ "databaseBlock": {
"anyOf": [
{
"type": "boolean"
@@ -10630,7 +10646,7 @@
}
]
},
- "listItem": {
+ "document": {
"anyOf": [
{
"type": "boolean"
@@ -10640,7 +10656,7 @@
}
]
},
- "math": {
+ "embedBlock": {
"anyOf": [
{
"type": "boolean"
@@ -10650,7 +10666,7 @@
}
]
},
- "paragraph": {
+ "heading": {
"anyOf": [
{
"type": "boolean"
@@ -10660,7 +10676,7 @@
}
]
},
- "super": {
+ "htmlBlock": {
"anyOf": [
{
"type": "boolean"
@@ -10670,7 +10686,7 @@
}
]
},
- "table": {
+ "iframeBlock": {
"anyOf": [
{
"type": "boolean"
@@ -10680,7 +10696,7 @@
}
]
},
- "tag": {
+ "list": {
"anyOf": [
{
"type": "boolean"
@@ -10689,79 +10705,38 @@
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "HTMLClipboardPreflight": {
- "type": "object",
- "properties": {
- "converted": {
- "type": "boolean"
- },
- "dom": {
- "type": "string"
- },
- "normalizedHTML": {
- "type": "string"
- },
- "useHTML": {
- "type": "boolean"
- }
- },
- "required": [
- "converted",
- "useHTML"
- ],
- "additionalProperties": false
- },
- "HTMLClipboardRequestInput": {
- "type": "object",
- "properties": {
- "dom": {
- "type": "string"
- },
- "mathML": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
},
- "notebook": {
+ "listItem": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "office": {
+ "mathBlock": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "officeMathHTML": {
+ "paragraph": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "preflight": {
+ "superBlock": {
"anyOf": [
{
"type": "boolean"
@@ -10771,7 +10746,7 @@
}
]
},
- "preparedHTML": {
+ "tabItem": {
"anyOf": [
{
"type": "boolean"
@@ -10781,7 +10756,7 @@
}
]
},
- "preserveSourceFormat": {
+ "table": {
"anyOf": [
{
"type": "boolean"
@@ -10791,7 +10766,7 @@
}
]
},
- "skipBase64Assets": {
+ "tabs": {
"anyOf": [
{
"type": "boolean"
@@ -10801,7 +10776,7 @@
}
]
},
- "skipInlineSVGAssets": {
+ "videoBlock": {
"anyOf": [
{
"type": "boolean"
@@ -10811,7 +10786,7 @@
}
]
},
- "skipLocalAssets": {
+ "widgetBlock": {
"anyOf": [
{
"type": "boolean"
@@ -10820,225 +10795,187 @@
"type": "null"
}
]
- },
- "text": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "wps": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
}
},
- "required": [
- "dom"
- ],
"additionalProperties": false
},
- "HTMLData": {
+ "DOMData": {
"type": "object",
"properties": {
- "html": {
+ "dom": {
"type": "string"
}
},
"required": [
- "html"
+ "dom"
],
"additionalProperties": false
},
- "HeadingChildrenRequestInput": {
+ "DOMTextRequestInput": {
"type": "object",
"properties": {
- "id": {
+ "dom": {
"type": "string"
- },
- "removeFoldAttr": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
}
},
"required": [
- "id"
+ "dom"
],
"additionalProperties": false
},
- "HeadingFoldRequestInput": {
+ "DailyNoteBlockRequestInput": {
"type": "object",
"properties": {
- "id": {
+ "data": {
"type": "string"
},
- "scope": {
+ "dataType": {
+ "type": "string"
+ },
+ "notebook": {
"type": "string"
}
},
"required": [
- "id",
- "scope"
+ "data",
+ "dataType",
+ "notebook"
],
"additionalProperties": false
},
- "HeadingLevelRequestInput": {
+ "DeleteBlockRequestInput": {
"type": "object",
"properties": {
"id": {
"type": "string"
- },
- "ids": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "level": {
- "type": "number"
}
},
"required": [
- "level"
+ "id"
],
"additionalProperties": false
},
- "HeadingNumbersRequestInput": {
+ "DiffDocVersionsRequestInput": {
"type": "object",
"properties": {
- "id": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
+ "left": {
+ "$ref": "#/$defs/DocVersionRefInput"
},
- "notebook": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
+ "right": {
+ "$ref": "#/$defs/DocVersionRefInput"
}
},
+ "required": [
+ "left",
+ "right"
+ ],
"additionalProperties": false
},
- "History": {
+ "DiffRepoSnapshotsRequestInput": {
"type": "object",
"properties": {
- "hCreated": {
+ "left": {
"type": "string"
},
- "items": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/HistoryItem"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- {
- "type": "null"
- }
- ]
+ "right": {
+ "type": "string"
}
},
"required": [
- "hCreated",
- "items"
+ "left",
+ "right"
],
"additionalProperties": false
},
- "HistoryItem": {
+ "DirectoryEntry": {
"type": "object",
"properties": {
- "id": {
- "type": "string"
+ "isDir": {
+ "type": "boolean"
},
- "notebook": {
- "type": "string"
+ "isSymlink": {
+ "type": "boolean"
},
- "op": {
+ "name": {
"type": "string"
},
- "path": {
+ "updated": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "isDir",
+ "isSymlink",
+ "name",
+ "updated"
+ ],
+ "additionalProperties": false
+ },
+ "DocAttrView": {
+ "type": "object",
+ "properties": {
+ "id": {
"type": "string"
},
- "title": {
+ "name": {
"type": "string"
}
},
"required": [
"id",
- "notebook",
- "op",
- "path",
- "title"
+ "name"
],
"additionalProperties": false
},
- "HistoryItemsData": {
+ "DocHeadingLevelData": {
"type": "object",
"properties": {
- "items": {
+ "counts": {
+ "type": "array",
+ "items": {
+ "type": "integer"
+ }
+ },
+ "title": {
+ "type": "string"
+ },
+ "transaction": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/HistoryItem"
- },
- {
- "type": "null"
- }
- ]
- }
+ "$ref": "#/$defs/BlockTransaction"
},
{
"type": "null"
}
]
+ },
+ "withSubheadingCounts": {
+ "type": "array",
+ "items": {
+ "type": "integer"
+ }
}
},
"required": [
- "items"
+ "counts",
+ "title",
+ "transaction",
+ "withSubheadingCounts"
],
"additionalProperties": false
},
- "HistoryItemsRequestInput": {
+ "DocHeadingLevelRequestInput": {
"type": "object",
"properties": {
- "created": {
- "type": "string"
+ "id": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
"notebook": {
"anyOf": [
@@ -11050,30 +10987,30 @@
}
]
},
- "op": {
+ "source": {
"anyOf": [
{
- "type": "string"
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "query": {
+ "target": {
"anyOf": [
{
- "type": "string"
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "type": {
+ "withSubheadings": {
"anyOf": [
{
- "type": "number"
+ "type": "boolean"
},
{
"type": "null"
@@ -11081,78 +11018,75 @@
]
}
},
- "required": [
- "created"
- ],
"additionalProperties": false
},
- "HistoryPathRequestInput": {
+ "DocHistoryContentData": {
"type": "object",
"properties": {
- "historyPath": {
+ "content": {
+ "type": "string"
+ },
+ "id": {
+ "type": "string"
+ },
+ "isLargeDoc": {
+ "type": "boolean"
+ },
+ "rootID": {
"type": "string"
}
},
"required": [
- "historyPath"
+ "content",
+ "id",
+ "isLargeDoc",
+ "rootID"
],
"additionalProperties": false
},
- "ImportAutoDocument": {
+ "DocHistoryContentRequestInput": {
"type": "object",
"properties": {
- "token": {
- "type": "string"
- },
- "type": {
- "type": "string",
- "enum": [
- "document"
- ]
- }
- },
- "required": [
- "type"
- ],
- "additionalProperties": false
- },
- "ImportAutoNotebook": {
- "type": "object",
- "properties": {
- "notebook": {
+ "highlight": {
"anyOf": [
{
- "$ref": "#/$defs/Notebook"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "type": {
- "type": "string",
- "enum": [
- "notebook"
+ "historyPath": {
+ "type": "string"
+ },
+ "k": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
]
}
},
"required": [
- "notebook",
- "type"
+ "historyPath"
],
"additionalProperties": false
},
- "ImportAutoNotebooks": {
+ "DocInfo": {
"type": "object",
"properties": {
- "notebooks": {
+ "attrViews": {
"anyOf": [
{
"type": "array",
"items": {
"anyOf": [
{
- "$ref": "#/$defs/Notebook"
+ "$ref": "#/$defs/DocAttrView"
},
{
"type": "null"
@@ -11165,179 +11099,111 @@
}
]
},
- "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"
+ "ial": {
+ "anyOf": [
+ {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
]
- }
- },
- "required": [
- "type"
- ],
- "additionalProperties": false
- },
- "ImportMarkdownRequestInput": {
- "type": "object",
- "properties": {
- "localPath": {
+ },
+ "icon": {
"type": "string"
},
- "notebook": {
+ "id": {
"type": "string"
},
- "skipRoot": {
+ "name": {
+ "type": "string"
+ },
+ "refCount": {
+ "type": "integer"
+ },
+ "refIDs": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "toPath": {
+ "rootID": {
"type": "string"
- }
- },
- "required": [
- "localPath",
- "notebook",
- "toPath"
- ],
- "additionalProperties": false
- },
- "ImportNotebookCryptoBackupRequestInput": {
- "type": "object",
- "properties": {
- "file": {
- "type": "string",
- "format": "binary"
},
- "password": {
- "type": "string"
+ "subFileCount": {
+ "type": "integer"
}
},
"required": [
- "file"
+ "attrViews",
+ "ial",
+ "icon",
+ "id",
+ "name",
+ "refCount",
+ "refIDs",
+ "rootID",
+ "subFileCount"
],
"additionalProperties": false
},
- "ImportRepoKeyRequestInput": {
+ "DocOrdersRequestInput": {
"type": "object",
"properties": {
- "key": {
+ "id": {
"type": "string"
}
},
"required": [
- "key"
+ "id"
],
"additionalProperties": false
},
- "ImportSYRequestInput": {
- "type": "object",
- "properties": {
- "file": {
- "type": "string",
- "format": "binary"
- },
- "notebook": {
- "type": "string"
- },
- "toPath": {
- "type": "string"
- }
- },
- "additionalProperties": false
- },
- "ImportTokenRequestInput": {
+ "DocVersionDiffContent": {
"type": "object",
"properties": {
- "token": {
+ "content": {
"type": "string"
- }
- },
- "required": [
- "token"
- ],
- "additionalProperties": false
- },
- "ImportZipMarkdownRequestInput": {
- "type": "object",
- "properties": {
- "file": {
- "type": "string",
- "format": "binary"
},
- "notebook": {
+ "id": {
"type": "string"
},
- "skipRoot": {
+ "rootID": {
"type": "string"
},
- "toPath": {
+ "title": {
"type": "string"
}
},
- "additionalProperties": false
- },
- "ImportedNotebook": {
- "type": "object",
- "properties": {
- "notebook": {
- "anyOf": [
- {
- "$ref": "#/$defs/Notebook"
- },
- {
- "type": "null"
- }
- ]
- }
- },
"required": [
- "notebook"
+ "content",
+ "id",
+ "rootID",
+ "title"
],
"additionalProperties": false
},
- "ImportedNotebooks": {
+ "DocVersionDiffResult": {
"type": "object",
"properties": {
- "notebooks": {
+ "differences": {
"anyOf": [
{
"type": "array",
"items": {
"anyOf": [
{
- "$ref": "#/$defs/Notebook"
+ "$ref": "#/$defs/DocVersionDifference"
},
{
"type": "null"
@@ -11349,90 +11215,58 @@
"type": "null"
}
]
- }
- },
- "required": [
- "notebooks"
- ],
- "additionalProperties": false
- },
- "InitRepoKeyFromPassphraseRequestInput": {
- "type": "object",
- "properties": {
- "pass": {
- "type": "string"
- }
- },
- "required": [
- "pass"
- ],
- "additionalProperties": false
- },
- "InlineStyle": {
- "type": "object",
- "properties": {
- "dark": {
+ },
+ "fallback": {
+ "type": "boolean"
+ },
+ "large": {
+ "type": "boolean"
+ },
+ "left": {
"anyOf": [
{
- "$ref": "#/$defs/InlineStyleTheme"
+ "$ref": "#/$defs/DocVersionDiffContent"
},
{
"type": "null"
}
]
},
- "hidden": {
- "type": "boolean"
- },
- "id": {
+ "message": {
"type": "string"
},
- "light": {
+ "right": {
"anyOf": [
{
- "$ref": "#/$defs/InlineStyleTheme"
+ "$ref": "#/$defs/DocVersionDiffContent"
},
{
"type": "null"
}
]
},
- "name": {
- "type": "string"
+ "titleModified": {
+ "type": "boolean"
}
},
"required": [
- "dark",
- "id",
- "light",
- "name"
+ "differences",
+ "fallback",
+ "large",
+ "left",
+ "message",
+ "right",
+ "titleModified"
],
"additionalProperties": false
},
- "InlineStyleAV": {
+ "DocVersionDifference": {
"type": "object",
"properties": {
- "colors": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/AttributeViewCustomColor"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- {
- "type": "null"
- }
- ]
+ "id": {
+ "type": "string"
},
- "order": {
+ "statuses": {
"anyOf": [
{
"type": "array",
@@ -11447,172 +11281,146 @@
}
},
"required": [
- "colors",
- "order"
+ "id",
+ "statuses"
],
"additionalProperties": false
},
- "InlineStyleAVInput": {
+ "DocVersionRefInput": {
"type": "object",
"properties": {
- "colors": {
+ "id": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/AttributeViewCustomColorInput"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "string"
},
{
"type": "null"
}
]
},
- "order": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "additionalProperties": false
- },
- "InlineStyleBuiltin": {
- "type": "object",
- "properties": {
- "colors": {
+ "path": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/InlineStyleBuiltinColor"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "string"
},
{
"type": "null"
}
]
},
- "hidden": {
+ "snapshot": {
"anyOf": [
{
- "$ref": "#/$defs/InlineStyleBuiltinHidden"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "styles": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/InlineStyleBuiltinStyle"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- {
- "type": "null"
- }
- ]
+ "type": {
+ "type": "string"
}
},
"required": [
- "colors",
- "hidden",
- "styles"
+ "type"
],
"additionalProperties": false
},
- "InlineStyleBuiltinColor": {
+ "DocsInfoRequestInput": {
"type": "object",
"properties": {
- "dark": {
- "anyOf": [
- {
- "$ref": "#/$defs/InlineStyleTheme"
- },
- {
- "type": "null"
- }
- ]
+ "av": {
+ "type": "boolean"
},
- "index": {
- "type": "integer"
+ "ids": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
- "light": {
- "anyOf": [
- {
- "$ref": "#/$defs/InlineStyleTheme"
- },
- {
- "type": "null"
- }
- ]
+ "refCount": {
+ "type": "boolean"
}
},
"required": [
- "dark",
- "index",
- "light"
+ "av",
+ "ids",
+ "refCount"
],
"additionalProperties": false
},
- "InlineStyleBuiltinColorInput": {
+ "DownloadCloudSnapshotRequestInput": {
"type": "object",
"properties": {
- "dark": {
- "anyOf": [
- {
- "$ref": "#/$defs/InlineStyleThemeInput"
- },
- {
- "type": "null"
- }
- ]
+ "id": {
+ "type": "string"
},
- "index": {
+ "tag": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "tag"
+ ],
+ "additionalProperties": false
+ },
+ "DownloadInstallPkgRequestInput": {
+ "type": "object",
+ "properties": {
+ "downloadInstallPkg": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "downloadInstallPkg"
+ ],
+ "additionalProperties": false
+ },
+ "EditorReadOnlyRequestInput": {
+ "type": "object",
+ "properties": {
+ "readonly": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "readonly"
+ ],
+ "additionalProperties": false
+ },
+ "EmbedBlock": {
+ "type": "object",
+ "properties": {
+ "allowChildOperation": {
+ "type": "boolean"
+ },
+ "block": {
"anyOf": [
{
- "type": "integer"
+ "$ref": "#/$defs/SearchBlock"
},
{
"type": "null"
}
]
},
- "light": {
+ "blockPaths": {
"anyOf": [
{
- "$ref": "#/$defs/InlineStyleThemeInput"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/BlockPath"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
@@ -11620,51 +11428,140 @@
]
}
},
+ "required": [
+ "allowChildOperation",
+ "block",
+ "blockPaths"
+ ],
"additionalProperties": false
},
- "InlineStyleBuiltinHidden": {
+ "EmbedBlocksData": {
"type": "object",
"properties": {
- "av": {
+ "blocks": {
"anyOf": [
{
"type": "array",
"items": {
- "type": "integer"
+ "anyOf": [
+ {
+ "$ref": "#/$defs/EmbedBlock"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
{
"type": "null"
}
]
+ }
+ },
+ "required": [
+ "blocks"
+ ],
+ "additionalProperties": false
+ },
+ "EmbedStat": {
+ "type": "object",
+ "properties": {
+ "complete": {
+ "type": "boolean"
},
- "backgroundColor": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "type": "integer"
- }
- },
- {
- "type": "null"
- }
- ]
+ "cycleCount": {
+ "type": "integer"
},
- "color": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "type": "integer"
- }
- },
- {
- "type": "null"
- }
+ "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"
]
},
- "style1": {
+ "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": "array",
@@ -11676,214 +11573,193 @@
"type": "null"
}
]
+ },
+ "migrationPending": {
+ "type": "boolean"
+ },
+ "state": {
+ "type": "string",
+ "enum": [
+ "Disabled",
+ "Enabled",
+ "RecoveryRequired"
+ ]
}
},
"required": [
- "av",
- "backgroundColor",
- "color",
- "style1"
+ "boxes",
+ "count",
+ "enabled",
+ "hasHistoryDependency",
+ "migrationBoxes",
+ "migrationPending",
+ "state"
],
"additionalProperties": false
},
- "InlineStyleBuiltinHiddenInput": {
+ "ExportAsFileRequestInput": {
"type": "object",
"properties": {
- "av": {
+ "file": {
+ "type": "string",
+ "format": "binary"
+ },
+ "type": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "file",
+ "type"
+ ],
+ "additionalProperties": false
+ },
+ "ExportAttributeViewRequestInput": {
+ "type": "object",
+ "properties": {
+ "blockID": {
+ "type": "string"
+ },
+ "id": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "blockID",
+ "id"
+ ],
+ "additionalProperties": false
+ },
+ "ExportBrowserHTMLRequestInput": {
+ "type": "object",
+ "properties": {
+ "folder": {
+ "type": "string"
+ },
+ "html": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "folder",
+ "html",
+ "name"
+ ],
+ "additionalProperties": false
+ },
+ "ExportDocumentsMarkdownRequestInput": {
+ "type": "object",
+ "properties": {
+ "addTitle": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "integer"
- }
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "backgroundColor": {
+ "blockEmbedMode": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "integer"
- }
+ "type": "number"
},
{
"type": "null"
}
]
},
- "color": {
+ "blockRefMode": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "integer"
- }
+ "type": "number"
},
{
"type": "null"
}
]
},
- "style1": {
+ "blockRefTextLeft": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "type": "string"
},
{
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "InlineStyleBuiltinInput": {
- "type": "object",
- "properties": {
- "colors": {
+ },
+ "blockRefTextRight": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/InlineStyleBuiltinColorInput"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "string"
},
{
"type": "null"
}
]
},
- "hidden": {
+ "fileAnnotationRefMode": {
"anyOf": [
{
- "$ref": "#/$defs/InlineStyleBuiltinHiddenInput"
+ "type": "number"
},
{
"type": "null"
}
]
},
- "styles": {
+ "ids": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "includeRelatedDocs": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/InlineStyleBuiltinStyleInput"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "additionalProperties": false
- },
- "InlineStyleBuiltinStyle": {
- "type": "object",
- "properties": {
- "dark": {
- "anyOf": [
- {
- "$ref": "#/$defs/InlineStyleTheme"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "id": {
- "type": "string"
- },
- "light": {
- "anyOf": [
- {
- "$ref": "#/$defs/InlineStyleTheme"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "dark",
- "id",
- "light"
- ],
- "additionalProperties": false
- },
- "InlineStyleBuiltinStyleInput": {
- "type": "object",
- "properties": {
- "dark": {
+ "includeSubDocs": {
"anyOf": [
{
- "$ref": "#/$defs/InlineStyleThemeInput"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "id": {
+ "inlineMemo": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "light": {
- "anyOf": [
- {
- "$ref": "#/$defs/InlineStyleThemeInput"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "additionalProperties": false
- },
- "InlineStyleInput": {
- "type": "object",
- "properties": {
- "dark": {
+ "markdownYFM": {
"anyOf": [
{
- "$ref": "#/$defs/InlineStyleThemeInput"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "hidden": {
+ "removeAssetsID": {
"anyOf": [
{
"type": "boolean"
@@ -11893,7 +11769,7 @@
}
]
},
- "id": {
+ "tagCloseMarker": {
"anyOf": [
{
"type": "string"
@@ -11903,17 +11779,7 @@
}
]
},
- "light": {
- "anyOf": [
- {
- "$ref": "#/$defs/InlineStyleThemeInput"
- },
- {
- "type": "null"
- }
- ]
- },
- "name": {
+ "tagOpenMarker": {
"anyOf": [
{
"type": "string"
@@ -11924,129 +11790,122 @@
]
}
},
+ "required": [
+ "ids"
+ ],
"additionalProperties": false
},
- "InlineStyleOrder": {
+ "ExportDocxRequestInput": {
"type": "object",
"properties": {
- "backgroundColor": {
+ "id": {
+ "type": "string"
+ },
+ "merge": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "color": {
+ "mergeContentHeadingMode": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "type": "string"
},
{
"type": "null"
}
]
},
- "style1": {
+ "mergeDocHeadingMode": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "type": "string"
},
{
"type": "null"
}
]
+ },
+ "removeAssets": {
+ "type": "boolean"
+ },
+ "savePath": {
+ "type": "string"
}
},
"required": [
- "backgroundColor",
- "color",
- "style1"
+ "id",
+ "removeAssets",
+ "savePath"
],
"additionalProperties": false
},
- "InlineStyleOrderInput": {
+ "ExportFileData": {
"type": "object",
"properties": {
- "backgroundColor": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- {
- "type": "null"
- }
- ]
- },
- "color": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- {
- "type": "null"
- }
- ]
- },
- "style1": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- {
- "type": "null"
- }
- ]
+ "file": {
+ "type": "string"
}
},
+ "required": [
+ "file"
+ ],
"additionalProperties": false
},
- "InlineStyleTheme": {
+ "ExportFolderRequestInput": {
"type": "object",
"properties": {
- "backgroundColor": {
+ "folder": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "folder"
+ ],
+ "additionalProperties": false
+ },
+ "ExportHTMLData": {
+ "type": "object",
+ "properties": {
+ "content": {
"type": "string"
},
- "color": {
+ "folder": {
+ "type": "string"
+ },
+ "id": {
+ "type": "string"
+ },
+ "name": {
"type": "string"
}
},
+ "required": [
+ "content",
+ "id",
+ "name"
+ ],
"additionalProperties": false
},
- "InlineStyleThemeInput": {
+ "ExportHTMLRequestInput": {
"type": "object",
"properties": {
- "backgroundColor": {
+ "addTitle": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "color": {
+ "customTitle": {
"anyOf": [
{
"type": "string"
@@ -12055,106 +11914,54 @@
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "InlineStyles": {
- "type": "object",
- "properties": {
- "av": {
+ },
+ "id": {
+ "type": "string"
+ },
+ "keepFold": {
"anyOf": [
{
- "$ref": "#/$defs/InlineStyleAV"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "builtin": {
+ "merge": {
"anyOf": [
{
- "$ref": "#/$defs/InlineStyleBuiltin"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "order": {
+ "mergeContentHeadingMode": {
"anyOf": [
{
- "$ref": "#/$defs/InlineStyleOrder"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "styles": {
+ "mergeDocHeadingMode": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/InlineStyle"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "string"
},
{
"type": "null"
}
]
},
- "version": {
- "type": "integer"
- }
- },
- "required": [
- "av",
- "builtin",
- "order",
- "styles",
- "version"
- ],
- "additionalProperties": false
- },
- "InsertBlockRequestInput": {
- "type": "object",
- "properties": {
- "data": {
- "type": "string"
- },
- "dataType": {
- "type": "string"
- },
- "nextID": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "parentID": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
+ "pdf": {
+ "type": "boolean"
},
- "previousID": {
+ "savePath": {
"anyOf": [
{
"type": "string"
@@ -12166,37 +11973,58 @@
}
},
"required": [
- "data",
- "dataType"
+ "id",
+ "pdf"
],
"additionalProperties": false
},
- "InsertCoverRequestInput": {
+ "ExportIDRequestInput": {
"type": "object",
"properties": {
"id": {
"type": "string"
- },
- "name": {
- "type": "string"
}
},
"required": [
- "id",
- "name"
+ "id"
],
"additionalProperties": false
},
- "InsertLocalAssetsRequestInput": {
+ "ExportIDsRequestInput": {
"type": "object",
"properties": {
- "assetPaths": {
+ "ids": {
"type": "array",
"items": {
"type": "string"
}
+ }
+ },
+ "required": [
+ "ids"
+ ],
+ "additionalProperties": false
+ },
+ "ExportMarkdownContentData": {
+ "type": "object",
+ "properties": {
+ "content": {
+ "type": "string"
},
- "fromHTMLPaste": {
+ "hPath": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "content",
+ "hPath"
+ ],
+ "additionalProperties": false
+ },
+ "ExportMarkdownContentRequestInput": {
+ "type": "object",
+ "properties": {
+ "addTitle": {
"anyOf": [
{
"type": "boolean"
@@ -12206,95 +12034,82 @@
}
]
},
- "id": {
+ "adjustHeadingLevel": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "isUpload": {
+ "embedMode": {
"anyOf": [
{
- "type": "boolean"
+ "type": "number"
},
{
"type": "null"
}
]
- }
- },
- "required": [
- "assetPaths"
- ],
- "additionalProperties": false
- },
- "InstallBazaarIconRequestInput": {
- "type": "object",
- "properties": {
- "keyword": {
+ },
+ "fillCSSVar": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "packageName": {
+ "id": {
"type": "string"
},
- "repoHash": {
- "type": "string"
+ "imgTag": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "repoRef": {
+ "refMode": {
"anyOf": [
{
- "type": "string"
+ "type": "number"
},
{
"type": "null"
}
]
},
- "repoURL": {
- "type": "string"
+ "yfm": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
"required": [
- "packageName",
- "repoHash",
- "repoURL"
+ "id"
],
"additionalProperties": false
},
- "InstallBazaarPluginRequestInput": {
+ "ExportMarkdownHTMLRequestInput": {
"type": "object",
"properties": {
- "frontend": {
- "type": "string"
- },
- "keyword": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "packageName": {
- "type": "string"
- },
- "repoHash": {
+ "id": {
"type": "string"
},
- "repoRef": {
+ "savePath": {
"anyOf": [
{
"type": "string"
@@ -12303,73 +12118,47 @@
"type": "null"
}
]
- },
- "repoURL": {
- "type": "string"
}
},
"required": [
- "frontend",
- "packageName",
- "repoHash",
- "repoURL"
+ "id"
],
"additionalProperties": false
},
- "InstallBazaarTemplateRequestInput": {
+ "ExportMarkdownRequestInput": {
"type": "object",
"properties": {
- "keyword": {
+ "addTitle": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "packageName": {
- "type": "string"
- },
- "repoHash": {
- "type": "string"
- },
- "repoRef": {
+ "blockEmbedMode": {
"anyOf": [
{
- "type": "string"
+ "type": "number"
},
{
"type": "null"
}
]
},
- "repoURL": {
- "type": "string"
- }
- },
- "required": [
- "packageName",
- "repoHash",
- "repoURL"
- ],
- "additionalProperties": false
- },
- "InstallBazaarThemeRequestInput": {
- "type": "object",
- "properties": {
- "frontend": {
+ "blockRefMode": {
"anyOf": [
{
- "type": "string"
+ "type": "number"
},
{
"type": "null"
}
]
},
- "keyword": {
+ "blockRefTextLeft": {
"anyOf": [
{
"type": "string"
@@ -12379,19 +12168,7 @@
}
]
},
- "mode": {
- "type": "number"
- },
- "modeOS": {
- "type": "boolean"
- },
- "packageName": {
- "type": "string"
- },
- "repoHash": {
- "type": "string"
- },
- "repoRef": {
+ "blockRefTextRight": {
"anyOf": [
{
"type": "string"
@@ -12401,161 +12178,83 @@
}
]
},
- "repoURL": {
- "type": "string"
- }
- },
- "required": [
- "packageName",
- "repoHash",
- "repoURL"
- ],
- "additionalProperties": false
- },
- "InstallBazaarWidgetRequestInput": {
- "type": "object",
- "properties": {
- "keyword": {
+ "fileAnnotationRefMode": {
"anyOf": [
{
- "type": "string"
+ "type": "number"
},
{
"type": "null"
}
]
},
- "packageName": {
+ "id": {
"type": "string"
},
- "repoHash": {
- "type": "string"
+ "includeRelatedDocs": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "repoRef": {
+ "includeSubDocs": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "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"
+ "inlineMemo": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "incompatible": {
- "type": "boolean"
+ "markdownYFM": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "js": {
- "type": "string"
- }
- },
- "required": [
- "existed",
- "incompatible",
- "js"
- ],
- "additionalProperties": false
- },
- "ListNotebooksData": {
- "type": "object",
- "properties": {
- "boxDocEnabled": {
- "type": "boolean"
+ "removeAssetsID": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "notebooks": {
+ "tagCloseMarker": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/Notebook"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "string"
},
{
"type": "null"
}
]
- }
- },
- "required": [
- "boxDocEnabled",
- "notebooks"
- ],
- "additionalProperties": false
- },
- "ListNotebooksRequestInput": {
- "type": "object",
- "properties": {
- "flashcard": {
+ },
+ "tagOpenMarker": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
@@ -12563,124 +12262,73 @@
]
}
},
- "additionalProperties": false
- },
- "LoadPetalsRequestInput": {
- "type": "object",
- "properties": {
- "frontend": {
- "type": "string"
- }
- },
"required": [
- "frontend"
+ "id"
],
"additionalProperties": false
},
- "LoadedPlugin": {
+ "ExportNameData": {
"type": "object",
"properties": {
- "methods": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/PluginRPCMethod"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- {
- "type": "null"
- }
- ]
- },
"name": {
"type": "string"
- },
- "state": {
- "type": "string"
- },
- "stateCode": {
- "type": "integer"
}
},
"required": [
- "methods",
- "name",
- "state",
- "stateCode"
+ "name"
],
"additionalProperties": false
},
- "LoadedPluginRequestInput": {
+ "ExportNamedZipData": {
"type": "object",
"properties": {
"name": {
"type": "string"
+ },
+ "zip": {
+ "type": "string"
}
},
"required": [
- "name"
+ "name",
+ "zip"
],
"additionalProperties": false
},
- "LocalGraphConf": {
+ "ExportNotebookMarkdownRequestInput": {
"type": "object",
"properties": {
- "d3": {
+ "addTitle": {
"anyOf": [
{
- "$ref": "#/$defs/GraphD3"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "dailyNote": {
- "type": "boolean"
- },
- "type": {
+ "blockEmbedMode": {
"anyOf": [
{
- "$ref": "#/$defs/GraphTypeFilter"
+ "type": "number"
},
{
"type": "null"
}
]
- }
- },
- "required": [
- "d3",
- "dailyNote",
- "type"
- ],
- "additionalProperties": false
- },
- "LocalGraphRequestInput": {
- "type": "object",
- "properties": {
- "conf": {
- "$ref": "#/$defs/GraphConfigurationFieldsInput"
},
- "id": {
+ "blockRefMode": {
"anyOf": [
{
- "type": "string"
+ "type": "number"
},
{
"type": "null"
}
]
},
- "k": {
+ "blockRefTextLeft": {
"anyOf": [
{
"type": "string"
@@ -12690,7 +12338,7 @@
}
]
},
- "notebook": {
+ "blockRefTextRight": {
"anyOf": [
{
"type": "string"
@@ -12700,156 +12348,80 @@
}
]
},
- "reqId": {
+ "fileAnnotationRefMode": {
"anyOf": [
{
- "$ref": "#/$defs/JSONValue"
+ "type": "number"
},
{
"type": "null"
}
]
},
- "type": {
+ "includeRelatedDocs": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "LocalGraphResult": {
- "type": "object",
- "properties": {
- "box": {
- "type": "string"
- },
- "conf": {
- "$ref": "#/$defs/LocalGraphConf"
},
- "id": {
- "type": "string"
+ "includeSubDocs": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "links": {
+ "inlineMemo": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/GraphLink"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "nodes": {
+ "markdownYFM": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/GraphNode"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "reqId": {
- "$ref": "#/$defs/JSONValue"
- }
- },
- "required": [
- "box",
- "conf",
- "id",
- "links",
- "nodes",
- "reqId"
- ],
- "additionalProperties": false
- },
- "LockScreenRequestInput": {
- "type": "object",
- "properties": {
- "lockScreenMode": {
- "type": "number"
- }
- },
- "required": [
- "lockScreenMode"
- ],
- "additionalProperties": false
- },
- "Login2faEnvelope": {
- "type": "object",
- "properties": {
- "code": {
- "type": "integer"
+ "notebook": {
+ "type": "string"
},
- "data": {
+ "removeAssetsID": {
"anyOf": [
{
- "type": "object",
- "properties": {
- "code": {
- "type": "number"
- },
- "msg": {
- "type": "string"
- }
- },
- "required": [
- "code",
- "msg"
- ],
- "additionalProperties": {
- "$ref": "#/$defs/JSONValue"
- }
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "msg": {
- "type": "string"
- }
- },
- "required": [
- "code",
- "data",
- "msg"
- ],
- "additionalProperties": false
- },
- "MarkdownHTMLRequestInput": {
- "type": "object",
- "properties": {
- "markdown": {
- "type": "string"
+ "tagCloseMarker": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "mode": {
+ "tagOpenMarker": {
"anyOf": [
{
"type": "string"
@@ -12861,17 +12433,44 @@
}
},
"required": [
- "markdown"
+ "notebook"
],
"additionalProperties": false
},
- "MoveBlockRequestInput": {
+ "ExportNotebooksMarkdownRequestInput": {
"type": "object",
"properties": {
- "id": {
- "type": "string"
+ "addTitle": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "parentID": {
+ "blockEmbedMode": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "blockRefMode": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "blockRefTextLeft": {
"anyOf": [
{
"type": "string"
@@ -12881,7 +12480,7 @@
}
]
},
- "previousID": {
+ "blockRefTextRight": {
"anyOf": [
{
"type": "string"
@@ -12890,20 +12489,91 @@
"type": "null"
}
]
- }
- },
- "required": [
- "id"
- ],
- "additionalProperties": false
- },
- "NetImageAssetsRequestInput": {
- "type": "object",
- "properties": {
- "id": {
- "type": "string"
},
- "url": {
+ "fileAnnotationRefMode": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "includeRelatedDocs": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "includeSubDocs": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "inlineMemo": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "markdownYFM": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "notebooks": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "removeAssetsID": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "tagCloseMarker": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "tagOpenMarker": {
"anyOf": [
{
"type": "string"
@@ -12914,18 +12584,18 @@
]
}
},
- "required": [
- "id"
- ],
"additionalProperties": false
},
- "NetworkData": {
+ "ExportNotebooksRequestInput": {
"type": "object",
"properties": {
- "proxy": {
+ "notebooks": {
"anyOf": [
{
- "$ref": "#/$defs/NetworkProxy"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
@@ -12933,253 +12603,101 @@
]
}
},
- "required": [
- "proxy"
- ],
"additionalProperties": false
},
- "NetworkProxy": {
+ "ExportPathData": {
"type": "object",
"properties": {
- "host": {
- "type": "string"
- },
- "port": {
- "type": "string"
- },
- "scheme": {
- "type": "string"
- }
- },
- "required": [
- "host",
- "port",
- "scheme"
- ],
- "additionalProperties": false
- },
- "NetworkProxyInput": {
- "type": "object",
- "properties": {
- "host": {
- "type": "string"
- },
- "port": {
- "type": "string"
- },
- "scheme": {
+ "path": {
"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"
+ "path"
],
"additionalProperties": false
},
- "Notebook": {
+ "ExportPreviewData": {
"type": "object",
"properties": {
- "closed": {
- "type": "boolean"
- },
- "dueFlashcardCount": {
- "type": "integer"
- },
- "encrypted": {
+ "fillCSSVar": {
"type": "boolean"
},
- "flashcardCount": {
- "type": "integer"
- },
- "icon": {
- "type": "string"
- },
- "id": {
- "type": "string"
- },
- "name": {
+ "html": {
"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"
+ "fillCSSVar",
+ "html"
],
"additionalProperties": false
},
- "NotebookConf": {
+ "ExportPreviewHTMLData": {
"type": "object",
"properties": {
- "boxCrypt": {
+ "attrs": {
"anyOf": [
{
- "$ref": "#/$defs/NotebookEncryption"
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "closed": {
- "type": "boolean"
- },
- "dailyNoteSavePath": {
- "type": "string"
- },
- "dailyNoteTemplatePath": {
- "type": "string"
- },
- "docCreateSaveBox": {
- "type": "string"
- },
- "docCreateSavePath": {
- "type": "string"
- },
- "docCreateTemplatePath": {
+ "content": {
"type": "string"
},
- "encrypted": {
- "type": "boolean"
- },
- "icon": {
+ "id": {
"type": "string"
},
"name": {
"type": "string"
},
- "refCreateSaveBox": {
- "type": "string"
- },
- "refCreateSavePath": {
+ "type": {
"type": "string"
- },
- "sort": {
- "type": "integer"
- },
- "sortMode": {
- "type": "integer"
}
},
"required": [
- "boxCrypt",
- "closed",
- "dailyNoteSavePath",
- "dailyNoteTemplatePath",
- "docCreateSaveBox",
- "docCreateSavePath",
- "docCreateTemplatePath",
- "encrypted",
- "icon",
+ "attrs",
+ "content",
+ "id",
"name",
- "refCreateSaveBox",
- "refCreateSavePath",
- "sort",
- "sortMode"
+ "type"
],
"additionalProperties": false
},
- "NotebookConfData": {
+ "ExportPreviewHTMLRequestInput": {
"type": "object",
"properties": {
- "box": {
- "type": "string"
- },
- "conf": {
+ "addTitle": {
"anyOf": [
{
- "$ref": "#/$defs/NotebookConf"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "name": {
- "type": "string"
- }
- },
- "required": [
- "box",
- "conf",
- "name"
- ],
- "additionalProperties": false
- },
- "NotebookConfPatchInput": {
- "type": "object",
- "properties": {
- "boxCrypt": {
+ "customTitle": {
"anyOf": [
{
- "$ref": "#/$defs/NotebookEncryptionPatchInput"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "closed": {
+ "id": {
+ "type": "string"
+ },
+ "image": {
"anyOf": [
{
"type": "boolean"
@@ -13189,27 +12707,27 @@
}
]
},
- "dailyNoteSavePath": {
+ "keepFold": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "dailyNoteTemplatePath": {
+ "merge": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "docCreateSaveBox": {
+ "mergeContentHeadingMode": {
"anyOf": [
{
"type": "string"
@@ -13219,7 +12737,7 @@
}
]
},
- "docCreateSavePath": {
+ "mergeDocHeadingMode": {
"anyOf": [
{
"type": "string"
@@ -13228,8 +12746,29 @@
"type": "null"
}
]
- },
- "docCreateTemplatePath": {
+ }
+ },
+ "required": [
+ "id"
+ ],
+ "additionalProperties": false
+ },
+ "ExportRepoFileRequestInput": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id"
+ ],
+ "additionalProperties": false
+ },
+ "ExportResourcesRequestInput": {
+ "type": "object",
+ "properties": {
+ "name": {
"anyOf": [
{
"type": "string"
@@ -13239,37 +12778,29 @@
}
]
},
- "encrypted": {
+ "paths": {
"anyOf": [
{
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
- },
- "icon": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "name": {
- "anyOf": [
- {
- "type": "string"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
+ }
+ },
+ "additionalProperties": false
+ },
+ "ExportTempContentRequestInput": {
+ "type": "object",
+ "properties": {
+ "content": {
+ "type": "string"
},
- "refCreateSaveBox": {
+ "id": {
"anyOf": [
{
"type": "string"
@@ -13278,8 +12809,44 @@
"type": "null"
}
]
+ }
+ },
+ "required": [
+ "content"
+ ],
+ "additionalProperties": false
+ },
+ "ExportURLData": {
+ "type": "object",
+ "properties": {
+ "url": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "url"
+ ],
+ "additionalProperties": false
+ },
+ "ExportZipData": {
+ "type": "object",
+ "properties": {
+ "zip": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "zip"
+ ],
+ "additionalProperties": false
+ },
+ "FileAnnotationRefRequestInput": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
},
- "refCreateSavePath": {
+ "notebook": {
"anyOf": [
{
"type": "string"
@@ -13288,67 +12855,88 @@
"type": "null"
}
]
- },
- "sort": {
- "anyOf": [
- {
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
- },
- "sortMode": {
- "anyOf": [
- {
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
}
},
+ "required": [
+ "id"
+ ],
"additionalProperties": false
},
- "NotebookCryptoAutoLockRequestInput": {
+ "FilePathData": {
"type": "object",
"properties": {
- "autoLockMinutes": {
- "type": "number"
+ "path": {
+ "type": "string"
}
},
"required": [
- "autoLockMinutes"
+ "path"
],
"additionalProperties": false
},
- "NotebookCryptoBackupData": {
+ "FilePathRequestInput": {
"type": "object",
"properties": {
- "file": {
+ "path": {
"type": "string"
}
},
"required": [
- "file"
+ "path"
],
"additionalProperties": false
},
- "NotebookEncryption": {
+ "FileTreeAuthPublishRequestInput": {
"type": "object",
"properties": {
- "createdAt": {
- "type": "integer"
- },
- "metadata": {
+ "id": {
"type": "string"
},
- "spec": {
- "type": "integer"
+ "password": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "password"
+ ],
+ "additionalProperties": false
+ },
+ "FileTreeChangeSortRequestInput": {
+ "type": "object",
+ "properties": {
+ "notebook": {
+ "type": "string"
},
- "wrapNonce": {
+ "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"
@@ -13358,7 +12946,7 @@
}
]
},
- "wrappedDEK": {
+ "docCreateTemplatePath": {
"anyOf": [
{
"type": "string"
@@ -13367,119 +12955,83 @@
"type": "null"
}
]
- }
- },
- "required": [
- "createdAt",
- "spec",
- "wrapNonce",
- "wrappedDEK"
- ],
- "additionalProperties": false
- },
- "NotebookEncryptionPatchInput": {
- "type": "object",
- "properties": {
- "createdAt": {
+ },
+ "id": {
"anyOf": [
{
- "type": "integer"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "metadata": {
+ "listDocTree": {
"anyOf": [
{
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "array",
- "items": {
- "type": "integer"
- }
- }
- ]
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "spec": {
+ "markdown": {
+ "type": "string"
+ },
+ "notebook": {
+ "type": "string"
+ },
+ "parentID": {
"anyOf": [
{
- "type": "integer"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "wrapNonce": {
+ "path": {
+ "type": "string"
+ },
+ "sortPosition": {
"anyOf": [
{
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "array",
- "items": {
- "type": "integer"
- }
- }
- ]
+ "type": "string"
},
{
"type": "null"
}
]
},
- "wrappedDEK": {
+ "sortTargetID": {
"anyOf": [
{
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "array",
- "items": {
- "type": "integer"
- }
- }
- ]
+ "type": "string"
},
{
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "NotebookHistoryData": {
- "type": "object",
- "properties": {
- "histories": {
+ },
+ "tags": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/History"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "titleEmpty": {
+ "type": "boolean"
+ },
+ "withMath": {
+ "anyOf": [
+ {
+ "type": "boolean"
},
{
"type": "null"
@@ -13488,448 +13040,470 @@
}
},
"required": [
- "histories"
- ],
- "additionalProperties": false
- },
- "NotebookIDRequestInput": {
- "type": "object",
- "properties": {
- "notebook": {
- "type": "string"
- }
- },
- "required": [
- "notebook"
+ "markdown",
+ "notebook",
+ "path"
],
"additionalProperties": false
},
- "NotebookInfo": {
+ "FileTreeCreateRequestInput": {
"type": "object",
"properties": {
- "ctime": {
- "type": "integer"
- },
- "docCount": {
- "type": "integer"
+ "docCreateTemplatePath": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "hCtime": {
- "type": "string"
+ "listDocTree": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "hMtime": {
+ "md": {
"type": "string"
},
- "hSize": {
+ "notebook": {
"type": "string"
},
- "id": {
+ "path": {
"type": "string"
},
- "mtime": {
- "type": "integer"
+ "sortPosition": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "name": {
- "type": "string"
+ "sortTargetID": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "size": {
- "type": "integer"
- }
- },
- "required": [
- "ctime",
- "docCount",
- "hCtime",
- "hMtime",
- "hSize",
- "id",
- "mtime",
- "name",
- "size"
- ],
- "additionalProperties": false
- },
- "NotebookInfoData": {
- "type": "object",
- "properties": {
- "boxInfo": {
+ "sorts": {
"anyOf": [
{
- "$ref": "#/$defs/NotebookInfo"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
+ },
+ "title": {
+ "type": "string"
}
},
"required": [
- "boxInfo"
+ "md",
+ "notebook",
+ "path",
+ "title"
],
"additionalProperties": false
},
- "NotebookPasswordRequestInput": {
+ "FileTreeCreateSavePathData": {
"type": "object",
"properties": {
- "password": {
+ "box": {
+ "type": "string"
+ },
+ "docCreateTemplatePath": {
+ "type": "string"
+ },
+ "path": {
"type": "string"
}
},
"required": [
- "password"
+ "box",
+ "docCreateTemplatePath",
+ "path"
],
"additionalProperties": false
},
- "NotificationData": {
+ "FileTreeDailyNoteRequestInput": {
"type": "object",
"properties": {
- "id": {
+ "app": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "notebook": {
"type": "string"
}
},
"required": [
- "id"
+ "notebook"
],
"additionalProperties": false
},
- "NotificationRequestInput": {
+ "FileTreeDocFile": {
"type": "object",
"properties": {
- "msg": {
- "type": "string"
+ "children": {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/FileTreeDocFile"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
- "timeout": {
- "anyOf": [
- {
- "type": "number"
- },
- {
- "type": "null"
- }
- ]
+ "id": {
+ "type": "string"
}
},
"required": [
- "msg"
+ "id"
],
"additionalProperties": false
},
- "ObsidianAnalysisRequestInput": {
+ "FileTreeDocHeadingData": {
"type": "object",
"properties": {
- "localPath": {
+ "srcTreeBox": {
+ "type": "string"
+ },
+ "srcTreePath": {
"type": "string"
}
},
"required": [
- "localPath"
+ "srcTreeBox",
+ "srcTreePath"
],
"additionalProperties": false
},
- "ObsidianImportRequestInput": {
+ "FileTreeDocHeadingRequestInput": {
"type": "object",
"properties": {
- "notebookName": {
+ "after": {
+ "type": "boolean"
+ },
+ "srcID": {
"type": "string"
},
- "taskID": {
+ "targetID": {
"type": "string"
}
},
"required": [
- "notebookName",
- "taskID"
+ "after",
+ "srcID",
+ "targetID"
],
"additionalProperties": false
},
- "ObsidianTaskRequestInput": {
+ "FileTreeDocPathData": {
"type": "object",
"properties": {
- "taskID": {
+ "notebook": {
+ "type": "string"
+ },
+ "path": {
"type": "string"
}
},
"required": [
- "taskID"
+ "notebook",
+ "path"
],
"additionalProperties": false
},
- "ObsidianVaultAnalysis": {
+ "FileTreeDocTreeData": {
"type": "object",
"properties": {
- "ambiguousCount": {
- "type": "integer"
- },
- "blockIDCount": {
- "type": "integer"
- },
- "blockingErrors": {
+ "tree": {
"anyOf": [
{
"type": "array",
"items": {
- "type": "string"
+ "anyOf": [
+ {
+ "$ref": "#/$defs/FileTreeDocFile"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
{
"type": "null"
}
]
+ }
+ },
+ "required": [
+ "tree"
+ ],
+ "additionalProperties": false
+ },
+ "FileTreeDuplicateData": {
+ "type": "object",
+ "properties": {
+ "hPath": {
+ "type": "string"
},
- "commentCount": {
- "type": "integer"
- },
- "embedCount": {
- "type": "integer"
- },
- "footnoteCount": {
- "type": "integer"
- },
- "importableAssetCount": {
- "type": "integer"
+ "id": {
+ "type": "string"
},
- "importableAssetSize": {
- "type": "integer"
+ "notebook": {
+ "type": "string"
},
- "markdownCount": {
- "type": "integer"
- },
- "missingCount": {
- "type": "integer"
- },
- "nameAdjustmentCount": {
- "type": "integer"
- },
- "notebookName": {
+ "path": {
"type": "string"
- },
- "skippedHiddenCount": {
- "type": "integer"
- },
- "skippedLinkCount": {
- "type": "integer"
- },
- "skippedNestedVaultCount": {
- "type": "integer"
- },
- "skippedSpecialCount": {
- "type": "integer"
- },
- "syntheticParentCount": {
- "type": "integer"
- },
- "unreferencedFileCount": {
- "type": "integer"
- },
- "unsupportedCount": {
- "type": "integer"
- },
- "vaultName": {
+ }
+ },
+ "required": [
+ "hPath",
+ "id",
+ "notebook",
+ "path"
+ ],
+ "additionalProperties": false
+ },
+ "FileTreeFile": {
+ "type": "object",
+ "properties": {
+ "alias": {
"type": "string"
},
- "vaultPath": {
+ "bookmark": {
"type": "string"
},
- "warnings": {
+ "childrenSortMode": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "wikiLinkCount": {
+ "count": {
"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": {
+ },
+ "ctime": {
"type": "integer"
},
- "convertedFootnoteCount": {
+ "dueFlashcardCount": {
"type": "integer"
},
- "convertedLinkCount": {
+ "flashcardCount": {
"type": "integer"
},
- "failedStage": {
+ "hCtime": {
"type": "string"
},
- "importedAttachmentCount": {
- "type": "integer"
+ "hMtime": {
+ "type": "string"
},
- "incomplete": {
- "type": "boolean"
+ "hSize": {
+ "type": "string"
},
- "markdownCount": {
- "type": "integer"
+ "icon": {
+ "type": "string"
},
- "nameAdjustmentCount": {
+ "id": {
+ "type": "string"
+ },
+ "memo": {
+ "type": "string"
+ },
+ "mtime": {
"type": "integer"
},
- "notebookID": {
+ "name": {
"type": "string"
},
- "notebookName": {
+ "name1": {
"type": "string"
},
- "preservedCommentCount": {
+ "newFlashcardCount": {
"type": "integer"
},
- "preservedUnresolvedCount": {
- "type": "integer"
+ "path": {
+ "type": "string"
},
- "skippedPathCount": {
+ "size": {
"type": "integer"
},
- "syntheticParentCount": {
+ "sort": {
"type": "integer"
},
- "unreferencedFileCount": {
+ "subFileCount": {
"type": "integer"
+ },
+ "titleEmpty": {
+ "type": "boolean"
}
},
"required": [
- "convertedEmbedCount",
- "convertedFootnoteCount",
- "convertedLinkCount",
- "importedAttachmentCount",
- "incomplete",
- "markdownCount",
- "nameAdjustmentCount",
- "notebookID",
- "notebookName",
- "preservedCommentCount",
- "preservedUnresolvedCount",
- "skippedPathCount",
- "syntheticParentCount",
- "unreferencedFileCount"
+ "alias",
+ "bookmark",
+ "childrenSortMode",
+ "count",
+ "ctime",
+ "dueFlashcardCount",
+ "flashcardCount",
+ "hCtime",
+ "hMtime",
+ "hSize",
+ "icon",
+ "id",
+ "memo",
+ "mtime",
+ "name",
+ "name1",
+ "newFlashcardCount",
+ "path",
+ "size",
+ "sort",
+ "subFileCount"
],
"additionalProperties": false
},
- "ObsidianVaultTask": {
+ "FileTreeGetDocData": {
"type": "object",
"properties": {
- "analysis": {
- "$ref": "#/$defs/ObsidianVaultAnalysis"
+ "blockCount": {
+ "type": "integer"
},
- "detail": {
+ "box": {
"type": "string"
},
- "error": {
+ "content": {
"type": "string"
},
- "message": {
- "type": "string"
+ "docInfo": {
+ "$ref": "#/$defs/DocInfo"
},
- "progress": {
- "type": "integer"
+ "eof": {
+ "type": "boolean"
},
- "result": {
- "$ref": "#/$defs/ObsidianVaultImportResult"
+ "headingNumbers": {
+ "anyOf": [
+ {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "state": {
+ "id": {
"type": "string"
},
- "taskID": {
- "type": "string"
- }
- },
- "required": [
- "message",
- "progress",
- "state",
- "taskID"
- ],
- "additionalProperties": false
- },
- "OpenNotebookRequestInput": {
- "type": "object",
- "properties": {
- "app": {
+ "isBacklinkExpand": {
+ "type": "boolean"
+ },
+ "isSyncing": {
+ "type": "boolean"
+ },
+ "keywords": {
"anyOf": [
{
- "type": "string"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "notebook": {
+ "mode": {
+ "type": "integer"
+ },
+ "parent2ID": {
"type": "string"
- }
- },
- "required": [
- "notebook"
- ],
- "additionalProperties": false
- },
- "OpenRepoSnapshotFileRequestInput": {
- "type": "object",
- "properties": {
- "id": {
+ },
+ "parentID": {
"type": "string"
- }
- },
- "required": [
- "id"
- ],
- "additionalProperties": false
- },
- "OrderedListStartData": {
- "type": "object",
- "properties": {
- "found": {
+ },
+ "path": {
+ "type": "string"
+ },
+ "publishAccessRequired": {
"type": "boolean"
},
- "start": {
- "type": "integer"
+ "reqId": {
+ "$ref": "#/$defs/JSONValue"
+ },
+ "rootID": {
+ "type": "string"
+ },
+ "scroll": {
+ "type": "boolean"
+ },
+ "type": {
+ "type": "string"
}
},
"required": [
- "found",
- "start"
+ "blockCount",
+ "box",
+ "content",
+ "eof",
+ "headingNumbers",
+ "id",
+ "isBacklinkExpand",
+ "isSyncing",
+ "keywords",
+ "mode",
+ "parent2ID",
+ "parentID",
+ "path",
+ "publishAccessRequired",
+ "reqId",
+ "rootID",
+ "scroll",
+ "type"
],
"additionalProperties": false
},
- "OutlineRequestInput": {
+ "FileTreeGetDocRequestInput": {
"type": "object",
"properties": {
- "id": {
+ "endID": {
"anyOf": [
{
"type": "string"
@@ -13939,17 +13513,20 @@
}
]
},
- "notebook": {
+ "highlight": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "preview": {
+ "id": {
+ "type": "string"
+ },
+ "includeDocInfo": {
"anyOf": [
{
"type": "boolean"
@@ -13958,82 +13535,18 @@
"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": {
+ "index": {
"anyOf": [
{
- "type": "string"
+ "type": "number"
},
{
"type": "null"
}
]
- }
- },
- "required": [
- "args"
- ],
- "additionalProperties": false
- },
- "PerformSyncRequestInput": {
- "type": "object",
- "properties": {
- "mobileSwitch": {
+ },
+ "isBacklink": {
"anyOf": [
{
"type": "boolean"
@@ -14043,36 +13556,32 @@
}
]
},
- "upload": {
- "type": "boolean"
- }
- },
- "additionalProperties": false
- },
- "Petal": {
- "type": "object",
- "properties": {
- "css": {
- "type": "string"
- },
- "disabledInPublish": {
- "type": "boolean"
- },
- "disallowInstall": {
- "type": "boolean"
- },
- "displayName": {
- "type": "string"
+ "mode": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "enabled": {
- "type": "boolean"
+ "notebook": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "i18n": {
+ "originalRefBlockIDs": {
"anyOf": [
{
"type": "object",
"additionalProperties": {
- "$ref": "#/$defs/JSONValue"
+ "type": "string"
}
},
{
@@ -14080,237 +13589,118 @@
}
]
},
- "incompatible": {
- "type": "boolean"
- },
- "js": {
- "type": "string"
- },
- "kernel": {
- "$ref": "#/$defs/KernelPetal"
+ "query": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "name": {
- "type": "string"
+ "queryMethod": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "userDisabledInPublish": {
- "type": "boolean"
+ "querySubTypes": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SearchSubtypeFilterInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "version": {
- "type": "string"
- }
- },
- "required": [
- "css",
- "disabledInPublish",
- "disallowInstall",
- "displayName",
- "enabled",
- "i18n",
- "incompatible",
- "js",
- "kernel",
- "name",
- "userDisabledInPublish",
- "version"
- ],
- "additionalProperties": false
- },
- "PinnedDoc": {
- "type": "object",
- "properties": {
- "childrenSortMode": {
+ "queryTypes": {
"anyOf": [
{
- "type": "integer"
+ "type": "object",
+ "additionalProperties": {
+ "type": "boolean"
+ }
},
{
"type": "null"
}
]
},
- "icon": {
- "type": "string"
+ "reqId": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/JSONValue"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "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": {
+ "size": {
"anyOf": [
{
- "$ref": "#/$defs/PluginRPCError"
+ "type": "number"
},
{
"type": "null"
}
]
},
- "id": {
+ "startID": {
"anyOf": [
{
"type": "string"
},
- {
- "type": "number"
- },
{
"type": "null"
}
]
- },
- "jsonrpc": {
- "type": "string",
- "enum": [
- "2.0"
- ]
}
},
"required": [
- "error",
- "id",
- "jsonrpc"
+ "id"
],
"additionalProperties": false
},
- "PluginRPCMethod": {
+ "FileTreeHeadingDocRequestInput": {
"type": "object",
"properties": {
- "descriptions": {
+ "previousPath": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "type": "string"
},
{
"type": "null"
}
]
},
- "name": {
+ "srcHeadingID": {
"type": "string"
- }
- },
- "required": [
- "descriptions",
- "name"
- ],
- "additionalProperties": false
- },
- "PluginRPCNotification": {
- "type": "object",
- "properties": {
- "jsonrpc": {
- "type": "string",
- "enum": [
- "2.0"
- ]
},
- "method": {
+ "targetNoteBook": {
"type": "string"
},
- "params": {
- "$ref": "#/$defs/JSONValue"
- }
- },
- "required": [
- "jsonrpc",
- "method"
- ],
- "additionalProperties": false
- },
- "PluginRPCRequestFieldsInput": {
- "type": "object",
- "properties": {
- "id": {
+ "targetPath": {
"anyOf": [
{
"type": "string"
},
- {
- "type": "number"
- },
{
"type": "null"
}
]
},
- "jsonrpc": {
- "type": "string",
- "enum": [
- "2.0"
- ]
- },
- "method": {
- "type": "string"
- },
- "params": {
+ "toTop": {
"anyOf": [
{
- "anyOf": [
- {
- "type": "array",
- "items": {
- "$ref": "#/$defs/JSONValue"
- }
- },
- {
- "type": "object",
- "additionalProperties": {
- "$ref": "#/$defs/JSONValue"
- }
- }
- ]
+ "type": "boolean"
},
{
"type": "null"
@@ -14319,96 +13709,84 @@
}
},
"required": [
- "jsonrpc",
- "method"
+ "srcHeadingID",
+ "targetNoteBook"
],
"additionalProperties": false
},
- "PluginRPCSuccess": {
+ "FileTreeIDRequestInput": {
"type": "object",
"properties": {
"id": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "number"
- },
- {
- "type": "null"
- }
- ]
- },
- "jsonrpc": {
- "type": "string",
- "enum": [
- "2.0"
- ]
- },
- "result": {
- "$ref": "#/$defs/JSONValue"
- }
- },
- "required": [
- "id",
- "jsonrpc",
- "result"
- ],
- "additionalProperties": false
- },
- "PrepareRichTextRequestInput": {
- "type": "object",
- "properties": {
- "assets": {
- "type": "array",
- "items": {
- "$ref": "#/$defs/RichClipboardAssetInput"
- }
+ "type": "string"
}
},
"required": [
- "assets"
+ "id"
],
"additionalProperties": false
},
- "PrependBlockRequestInput": {
+ "FileTreeListData": {
"type": "object",
"properties": {
- "data": {
+ "box": {
"type": "string"
},
- "dataType": {
- "type": "string"
+ "effectiveSortMode": {
+ "type": "integer"
},
- "parentID": {
+ "files": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/FileTreeFile"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "path": {
"type": "string"
}
},
"required": [
- "data",
- "dataType",
- "parentID"
+ "box",
+ "effectiveSortMode",
+ "files",
+ "path"
],
"additionalProperties": false
},
- "ProcessPDFRequestInput": {
+ "FileTreeListItemDocRequestInput": {
"type": "object",
"properties": {
- "id": {
- "type": "string"
- },
- "merge": {
+ "previousPath": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "mergeContentHeadingMode": {
+ "srcListItemID": {
+ "type": "string"
+ },
+ "targetNoteBook": {
+ "type": "string"
+ },
+ "targetPath": {
"anyOf": [
{
"type": "string"
@@ -14418,130 +13796,177 @@
}
]
},
- "mergeDocHeadingMode": {
+ "toTop": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
- },
- "path": {
- "type": "string"
- },
- "removeAssets": {
- "type": "boolean"
- },
- "watermark": {
- "type": "boolean"
}
},
"required": [
- "id",
- "path",
- "removeAssets",
- "watermark"
+ "srcListItemID",
+ "targetNoteBook"
],
"additionalProperties": false
},
- "PublishedBlockInfo": {
+ "FileTreeListRequestInput": {
"type": "object",
"properties": {
- "publishAccessRequired": {
- "type": "boolean",
- "enum": [
- true
+ "app": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
]
},
- "rootID": {
- "type": "string"
+ "flashcard": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "rootIcon": {
+ "ignoreMaxListHint": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "maxListCount": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "notebook": {
"type": "string"
},
- "rootTitle": {
+ "path": {
"type": "string"
},
- "rootTitleEmpty": {
- "type": "boolean"
+ "showHidden": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "sort": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
"required": [
- "publishAccessRequired",
- "rootID",
- "rootIcon",
- "rootTitle",
- "rootTitleEmpty"
+ "notebook",
+ "path"
],
"additionalProperties": false
},
- "PutFileRequestInput": {
+ "FileTreeMoveIDsRequestInput": {
"type": "object",
"properties": {
- "app": {
- "type": "string"
- },
- "file": {
- "type": "string",
- "format": "binary"
- },
- "isDir": {
- "type": "string"
+ "callback": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/JSONValue"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "modTime": {
- "type": "string"
+ "fromIDs": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
- "path": {
+ "toID": {
"type": "string"
}
},
+ "required": [
+ "fromIDs",
+ "toID"
+ ],
"additionalProperties": false
},
- "ReadDirectoryRequestInput": {
+ "FileTreeMoveRequestInput": {
"type": "object",
"properties": {
- "path": {
+ "callback": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/JSONValue"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "fromPaths": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "toNotebook": {
+ "type": "string"
+ },
+ "toPath": {
"type": "string"
}
},
"required": [
- "path"
+ "fromPaths",
+ "toNotebook",
+ "toPath"
],
"additionalProperties": false
},
- "RecentDoc": {
+ "FileTreeNotebookRequestInput": {
"type": "object",
"properties": {
- "closedAt": {
- "type": "integer"
- },
- "icon": {
- "type": "string"
- },
- "openAt": {
- "type": "integer"
- },
- "rootID": {
- "type": "string"
- },
- "title": {
+ "notebook": {
"type": "string"
- },
- "viewedAt": {
- "type": "integer"
}
},
"required": [
- "rootID"
+ "notebook"
],
"additionalProperties": false
},
- "RecentDocUpdateRequestInput": {
+ "FileTreeOptionalIDRequestInput": {
"type": "object",
"properties": {
- "rootID": {
+ "id": {
"anyOf": [
{
"type": "string"
@@ -14554,10 +13979,10 @@
},
"additionalProperties": false
},
- "RecentDocsRequestInput": {
+ "FileTreeOptionalPathRequestInput": {
"type": "object",
"properties": {
- "sortBy": {
+ "notebook": {
"anyOf": [
{
"type": "string"
@@ -14566,20 +13991,11 @@
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "RecentDocsUpdateRequestInput": {
- "type": "object",
- "properties": {
- "rootIDs": {
+ },
+ "path": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "type": "string"
},
{
"type": "null"
@@ -14589,71 +14005,48 @@
},
"additionalProperties": false
},
- "RefDefs": {
+ "FileTreePathRequestInput": {
"type": "object",
"properties": {
- "defIDs": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- {
- "type": "null"
- }
- ]
+ "notebook": {
+ "type": "string"
},
- "refID": {
+ "path": {
"type": "string"
}
},
"required": [
- "defIDs",
- "refID"
+ "notebook",
+ "path"
],
"additionalProperties": false
},
- "RefDefsData": {
+ "FileTreePathsRequestInput": {
"type": "object",
"properties": {
- "refDefs": {
+ "paths": {
"type": "array",
"items": {
- "$ref": "#/$defs/RefDefs"
+ "type": "string"
}
}
},
"required": [
- "refDefs"
+ "paths"
],
"additionalProperties": false
},
- "RefIDsData": {
+ "FileTreePublishData": {
"type": "object",
"properties": {
- "originalRefBlockIDs": {
- "anyOf": [
- {
- "type": "object",
- "additionalProperties": {
- "type": "string"
- }
- },
- {
- "type": "null"
- }
- ]
- },
- "refDefs": {
+ "publishAccess": {
"anyOf": [
{
"type": "array",
"items": {
"anyOf": [
{
- "$ref": "#/$defs/RefDefs"
+ "$ref": "#/$defs/FileTreePublishItem"
},
{
"type": "null"
@@ -14668,124 +14061,116 @@
}
},
"required": [
- "originalRefBlockIDs",
- "refDefs"
+ "publishAccess"
],
"additionalProperties": false
},
- "RefIDsRequestInput": {
+ "FileTreePublishIDsRequestInput": {
"type": "object",
"properties": {
- "id": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
"ids": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- {
- "type": "null"
- }
- ]
- },
- "notebook": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "additionalProperties": false
- },
- "RefTextQueryRequestInput": {
- "type": "object",
- "properties": {
- "anchor": {
- "type": "string"
- },
- "notebook": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
}
},
"required": [
- "anchor"
+ "ids"
],
"additionalProperties": false
},
- "RefreshBacklinkRequestInput": {
+ "FileTreePublishItem": {
"type": "object",
"properties": {
+ "disable": {
+ "type": "boolean"
+ },
"id": {
"type": "string"
+ },
+ "password": {
+ "type": "string"
+ },
+ "visible": {
+ "type": "boolean"
}
},
"required": [
- "id"
+ "disable",
+ "id",
+ "password",
+ "visible"
],
"additionalProperties": false
},
- "RemoveBookmarkRequestInput": {
+ "FileTreeRenameIDRequestInput": {
"type": "object",
"properties": {
- "bookmark": {
+ "id": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "title": {
"type": "string"
}
},
"required": [
- "bookmark"
+ "title"
],
"additionalProperties": false
},
- "RemoveCloudRepoTagSnapshotRequestInput": {
+ "FileTreeRenameRequestInput": {
"type": "object",
"properties": {
- "tag": {
+ "notebook": {
+ "type": "string"
+ },
+ "path": {
+ "type": "string"
+ },
+ "title": {
"type": "string"
}
},
"required": [
- "tag"
+ "notebook",
+ "path",
+ "title"
],
"additionalProperties": false
},
- "RemoveCriterionRequestInput": {
+ "FileTreeReorderData": {
"type": "object",
"properties": {
- "name": {
+ "changed": {
+ "type": "boolean"
+ },
+ "conflict": {
+ "type": "boolean"
+ },
+ "notebook": {
+ "type": "string"
+ },
+ "parentPath": {
"type": "string"
}
},
"required": [
- "name"
+ "changed"
],
"additionalProperties": false
},
- "RemoveFileRequestInput": {
+ "FileTreeReorderRequestInput": {
"type": "object",
"properties": {
- "app": {
+ "position": {
"anyOf": [
{
"type": "string"
@@ -14795,191 +14180,323 @@
}
]
},
- "path": {
- "type": "string"
+ "preview": {
+ "anyOf": [
+ {
+ "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"
+ }
+ ]
}
},
- "required": [
- "path"
- ],
"additionalProperties": false
},
- "RemoveRepoTagSnapshotRequestInput": {
+ "FileTreeSavePathData": {
"type": "object",
"properties": {
- "tag": {
+ "box": {
+ "type": "string"
+ },
+ "path": {
"type": "string"
}
},
"required": [
- "tag"
+ "box",
+ "path"
],
"additionalProperties": false
},
- "RemoveShorthandsRequestInput": {
+ "FileTreeSearchDoc": {
"type": "object",
"properties": {
- "ids": {
- "type": "array",
- "items": {
- "type": "string"
- }
+ "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": [
- "ids"
+ "box",
+ "boxIcon",
+ "hPath",
+ "path"
],
"additionalProperties": false
},
- "RemoveTagRequestInput": {
+ "FileTreeSearchRequestInput": {
"type": "object",
"properties": {
- "label": {
+ "excludeIDs": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "flashcard": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "k": {
"type": "string"
}
},
"required": [
- "label"
+ "k"
],
"additionalProperties": false
},
- "RenameAssetRequestInput": {
+ "FileTreeSetPublishRequestInput": {
"type": "object",
"properties": {
- "newName": {
+ "disable": {
+ "type": "boolean"
+ },
+ "id": {
"type": "string"
},
- "oldPath": {
+ "password": {
"type": "string"
+ },
+ "visible": {
+ "type": "boolean"
}
},
"required": [
- "newName",
- "oldPath"
- ],
- "additionalProperties": false
- },
- "RenameBookmarkRequestInput": {
- "type": "object",
- "properties": {
- "newBookmark": {
- "type": "string"
- },
- "oldBookmark": {
- "type": "string"
- }
- },
- "required": [
- "newBookmark",
- "oldBookmark"
+ "disable",
+ "id",
+ "password",
+ "visible"
],
"additionalProperties": false
},
- "RenameFileRequestInput": {
+ "FileTreeSetSortData": {
"type": "object",
"properties": {
- "newPath": {
- "type": "string"
+ "docIDs": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "path": {
- "type": "string"
+ "notebookIDs": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
"required": [
- "newPath",
- "path"
+ "docIDs",
+ "notebookIDs"
],
"additionalProperties": false
},
- "RenameNotebookRequestInput": {
+ "FileTreeSetSortRequestInput": {
"type": "object",
"properties": {
- "name": {
- "type": "string"
+ "docSorts": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/FileTreeSortItemInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "notebook": {
- "type": "string"
+ "notebookSorts": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/FileTreeSortItemInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
- "required": [
- "name",
- "notebook"
- ],
"additionalProperties": false
},
- "RenameRiffDeckRequestInput": {
+ "FileTreeSortItemInput": {
"type": "object",
"properties": {
- "deckID": {
- "type": "string"
+ "id": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "name": {
- "type": "string"
+ "sort": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
- "required": [
- "deckID",
- "name"
- ],
"additionalProperties": false
},
- "RenameTagRequestInput": {
+ "FileTreeSortModeData": {
"type": "object",
"properties": {
- "newLabel": {
+ "box": {
"type": "string"
},
- "oldLabel": {
- "type": "string"
- }
- },
- "required": [
- "newLabel",
- "oldLabel"
- ],
- "additionalProperties": false
- },
- "RenderSprigRequestInput": {
- "type": "object",
- "properties": {
- "template": {
- "type": "string"
- }
- },
- "required": [
- "template"
- ],
- "additionalProperties": false
- },
- "RenderTemplateData": {
- "type": "object",
- "properties": {
- "content": {
- "type": "string"
+ "effectiveSortMode": {
+ "type": "integer"
},
- "docTreePlan": {
- "$ref": "#/$defs/TemplatePlan"
+ "id": {
+ "type": "string"
},
"path": {
"type": "string"
+ },
+ "sortMode": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
"required": [
- "content",
- "path"
+ "box",
+ "effectiveSortMode",
+ "id",
+ "path",
+ "sortMode"
],
"additionalProperties": false
},
- "RenderTemplateRequestInput": {
+ "FileTreeSortModeRequestInput": {
"type": "object",
"properties": {
- "content": {
- "type": "string"
- },
"id": {
- "type": "string"
- },
- "mode": {
"anyOf": [
{
"type": "string"
@@ -14989,13 +14506,10 @@
}
]
},
- "path": {
- "type": "string"
- },
- "preview": {
+ "sortMode": {
"anyOf": [
{
- "type": "boolean"
+ "type": "integer"
},
{
"type": "null"
@@ -15004,150 +14518,90 @@
}
},
"required": [
- "id",
- "path"
+ "sortMode"
],
"additionalProperties": false
},
- "ReorderData": {
+ "FileTreeTrimIDRequestInput": {
"type": "object",
"properties": {
- "changed": {
- "type": "boolean"
- },
- "notebook": {
- "type": "string"
- },
- "parentPath": {
+ "id": {
"type": "string"
}
},
"required": [
- "changed"
+ "id"
],
"additionalProperties": false
},
- "ReorderNotebooksRequestInput": {
+ "FindReplaceRequestInput": {
"type": "object",
"properties": {
- "position": {
+ "groupBy": {
"anyOf": [
{
- "type": "string"
+ "type": "number"
},
{
"type": "null"
}
]
},
- "sourceIDs": {
+ "ids": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "k": {
+ "type": "string"
+ },
+ "method": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "type": "number"
},
{
"type": "null"
}
]
},
- "targetID": {
+ "orderBy": {
"anyOf": [
{
- "type": "string"
+ "type": "number"
},
{
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "RepoCloudSnapshotsData": {
- "type": "object",
- "properties": {
- "pageCount": {
- "type": "integer"
},
- "snapshots": {
+ "page": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/RepoLog"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "number"
},
{
"type": "null"
}
]
},
- "totalCount": {
- "type": "integer"
- }
- },
- "required": [
- "pageCount",
- "snapshots",
- "totalCount"
- ],
- "additionalProperties": false
- },
- "RepoCloudTagsData": {
- "type": "object",
- "properties": {
- "snapshots": {
+ "pageSize": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/RepoLog"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "number"
},
{
"type": "null"
}
]
- }
- },
- "required": [
- "snapshots"
- ],
- "additionalProperties": false
- },
- "RepoDiffData": {
- "type": "object",
- "properties": {
- "addsLeft": {
+ },
+ "paths": {
"anyOf": [
{
"type": "array",
"items": {
- "anyOf": [
- {
- "$ref": "#/$defs/RepoDiffFile"
- },
- {
- "type": "null"
- }
- ]
+ "type": "string"
}
},
{
@@ -15155,79 +14609,48 @@
}
]
},
- "left": {
+ "query": {
"anyOf": [
{
- "$ref": "#/$defs/RepoDiffIndex"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "removesRight": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/RepoDiffFile"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- {
- "type": "null"
- }
- ]
+ "r": {
+ "type": "string"
},
- "right": {
+ "replaceTypes": {
"anyOf": [
{
- "$ref": "#/$defs/RepoDiffIndex"
+ "type": "object",
+ "additionalProperties": {
+ "type": "boolean"
+ }
},
{
"type": "null"
}
]
},
- "updatesLeft": {
+ "subTypes": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/RepoDiffFile"
- },
- {
- "type": "null"
- }
- ]
- }
+ "$ref": "#/$defs/SearchSubtypeFilterInput"
},
{
"type": "null"
}
]
},
- "updatesRight": {
+ "types": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/RepoDiffFile"
- },
- {
- "type": "null"
- }
- ]
+ "type": "object",
+ "additionalProperties": {
+ "type": "boolean"
}
},
{
@@ -15237,105 +14660,59 @@
}
},
"required": [
- "addsLeft",
- "left",
- "removesRight",
- "right",
- "updatesLeft",
- "updatesRight"
+ "ids",
+ "k",
+ "r"
],
"additionalProperties": false
},
- "RepoDiffFile": {
+ "FullBlockInfo": {
"type": "object",
"properties": {
- "fileID": {
- "type": "string"
- },
- "hPath": {
- "type": "string"
- },
- "hSize": {
- "type": "string"
- },
- "indexID": {
+ "box": {
"type": "string"
},
"path": {
"type": "string"
},
- "title": {
- "type": "string"
- },
- "updated": {
- "type": "integer"
- }
- },
- "required": [
- "fileID",
- "hSize",
- "indexID",
- "path",
- "title",
- "updated"
- ],
- "additionalProperties": false
- },
- "RepoDiffIndex": {
- "type": "object",
- "properties": {
- "created": {
- "type": "integer"
- },
- "id": {
- "type": "string"
- }
- },
- "required": [
- "created",
- "id"
- ],
- "additionalProperties": false
- },
- "RepoDocHistory": {
- "type": "object",
- "properties": {
- "fileID": {
+ "rootChildID": {
"type": "string"
},
- "hSize": {
+ "rootID": {
"type": "string"
},
- "indexID": {
+ "rootIcon": {
"type": "string"
},
- "title": {
+ "rootTitle": {
"type": "string"
},
- "updated": {
- "type": "integer"
+ "rootTitleEmpty": {
+ "type": "boolean"
}
},
"required": [
- "fileID",
- "hSize",
- "indexID",
- "title",
- "updated"
+ "box",
+ "path",
+ "rootChildID",
+ "rootID",
+ "rootIcon",
+ "rootTitle",
+ "rootTitleEmpty"
],
"additionalProperties": false
},
- "RepoDocHistoryData": {
+ "FullTextSearchBlockData": {
"type": "object",
"properties": {
- "files": {
+ "blocks": {
"anyOf": [
{
"type": "array",
"items": {
"anyOf": [
{
- "$ref": "#/$defs/RepoDocHistory"
+ "$ref": "#/$defs/SearchBlock"
},
{
"type": "null"
@@ -15348,104 +14725,97 @@
}
]
},
- "pageCount": {
+ "docMode": {
+ "type": "boolean"
+ },
+ "matchedBlockCount": {
"type": "integer"
},
- "totalCount": {
+ "matchedRootCount": {
+ "type": "integer"
+ },
+ "pageCount": {
"type": "integer"
}
},
"required": [
- "files",
- "pageCount",
- "totalCount"
- ],
- "additionalProperties": false
- },
- "RepoExportData": {
- "type": "object",
- "properties": {
- "path": {
- "type": "string"
- }
- },
- "required": [
- "path"
+ "blocks",
+ "docMode",
+ "matchedBlockCount",
+ "matchedRootCount",
+ "pageCount"
],
"additionalProperties": false
},
- "RepoFile": {
+ "FullTextSearchBlockRequestInput": {
"type": "object",
"properties": {
- "chunks": {
+ "groupBy": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "type": "number"
},
{
"type": "null"
}
]
},
- "id": {
- "type": "string"
+ "method": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "path": {
- "type": "string"
+ "notebook": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "size": {
- "type": "integer"
+ "orderBy": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "updated": {
- "type": "integer"
- }
- },
- "required": [
- "chunks",
- "id",
- "path",
- "size",
- "updated"
- ],
- "additionalProperties": false
- },
- "RepoKeyData": {
- "type": "object",
- "properties": {
- "key": {
- "type": "string"
- }
- },
- "required": [
- "key"
- ],
- "additionalProperties": false
- },
- "RepoLog": {
- "type": "object",
- "properties": {
- "count": {
- "type": "integer"
+ "page": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "created": {
- "type": "integer"
+ "pageSize": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "files": {
+ "paths": {
"anyOf": [
{
"type": "array",
"items": {
- "anyOf": [
- {
- "$ref": "#/$defs/RepoFile"
- },
- {
- "type": "null"
- }
- ]
+ "type": "string"
}
},
{
@@ -15453,271 +14823,197 @@
}
]
},
- "hCreated": {
- "type": "string"
- },
- "hSize": {
- "type": "string"
+ "query": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "hTagUpdated": {
- "type": "string"
+ "searchHPath": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "id": {
- "type": "string"
+ "subTypes": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SearchSubtypeFilterInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "memo": {
+ "types": {
+ "anyOf": [
+ {
+ "type": "object",
+ "additionalProperties": {
+ "type": "boolean"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "GetBazaarIconRequestInput": {
+ "type": "object",
+ "properties": {
+ "keyword": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "GetBazaarPackageREADMERequestInput": {
+ "type": "object",
+ "properties": {
+ "packageType": {
"type": "string"
},
- "size": {
- "type": "integer"
- },
- "systemID": {
+ "repoHash": {
"type": "string"
},
- "systemName": {
+ "repoURL": {
"type": "string"
- },
- "systemOS": {
+ }
+ },
+ "required": [
+ "packageType",
+ "repoHash",
+ "repoURL"
+ ],
+ "additionalProperties": false
+ },
+ "GetBazaarPackageRatingRequestInput": {
+ "type": "object",
+ "properties": {
+ "packageName": {
"type": "string"
},
- "tag": {
+ "packageType": {
"type": "string"
}
},
"required": [
- "count",
- "created",
- "files",
- "hCreated",
- "hSize",
- "hTagUpdated",
- "id",
- "memo",
- "size",
- "systemID",
- "systemName",
- "systemOS",
- "tag"
+ "packageName",
+ "packageType"
],
"additionalProperties": false
},
- "RepoOpenFileData": {
+ "GetBazaarPackageRatingsRequestInput": {
"type": "object",
"properties": {
- "content": {
- "type": "string"
- },
- "displayInText": {
- "type": "boolean"
+ "packageNames": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
- "title": {
+ "packageType": {
"type": "string"
- },
- "updated": {
- "type": "integer"
}
},
"required": [
- "content",
- "displayInText",
- "title",
- "updated"
+ "packageNames",
+ "packageType"
],
"additionalProperties": false
},
- "RepoSearchData": {
+ "GetBazaarPackageRequestInput": {
"type": "object",
"properties": {
- "files": {
+ "frontend": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/RepoDiffFile"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "string"
},
{
"type": "null"
}
]
},
- "pageCount": {
- "type": "integer"
+ "packageName": {
+ "type": "string"
},
- "totalCount": {
- "type": "integer"
+ "packageType": {
+ "type": "string"
}
},
"required": [
- "files",
- "pageCount",
- "totalCount"
+ "packageName",
+ "packageType"
],
"additionalProperties": false
},
- "RepoSnapshot": {
+ "GetBazaarPackageUserRatingsRequestInput": {
"type": "object",
"properties": {
- "count": {
- "type": "integer"
+ "packageNames": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
- "created": {
- "type": "integer"
- },
- "files": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/RepoFile"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- {
- "type": "null"
- }
- ]
- },
- "hCreated": {
- "type": "string"
- },
- "hSize": {
- "type": "string"
- },
- "hTagUpdated": {
- "type": "string"
- },
- "id": {
- "type": "string"
- },
- "memo": {
- "type": "string"
- },
- "requiresDownload": {
- "type": "boolean"
- },
- "size": {
- "type": "integer"
- },
- "systemID": {
- "type": "string"
- },
- "systemName": {
- "type": "string"
- },
- "systemOS": {
- "type": "string"
- },
- "tag": {
+ "packageType": {
"type": "string"
- },
- "typesCount": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/RepoTypeCount"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- {
- "type": "null"
- }
- ]
}
},
"required": [
- "count",
- "created",
- "files",
- "hCreated",
- "hSize",
- "hTagUpdated",
- "id",
- "memo",
- "requiresDownload",
- "size",
- "systemID",
- "systemName",
- "systemOS",
- "tag",
- "typesCount"
+ "packageNames",
+ "packageType"
],
"additionalProperties": false
},
- "RepoSnapshotsData": {
+ "GetBazaarPluginRequestInput": {
"type": "object",
"properties": {
- "pageCount": {
- "type": "integer"
+ "frontend": {
+ "type": "string"
},
- "snapshots": {
+ "keyword": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/RepoSnapshot"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "string"
},
{
"type": "null"
}
]
- },
- "totalCount": {
- "type": "integer"
}
},
"required": [
- "pageCount",
- "snapshots",
- "totalCount"
+ "frontend"
],
"additionalProperties": false
},
- "RepoTagsData": {
+ "GetBazaarTemplateRequestInput": {
"type": "object",
"properties": {
- "snapshots": {
+ "keyword": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/RepoSnapshot"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "string"
},
{
"type": "null"
@@ -15725,103 +15021,118 @@
]
}
},
- "required": [
- "snapshots"
- ],
"additionalProperties": false
},
- "RepoTypeCount": {
+ "GetBazaarThemeRequestInput": {
"type": "object",
"properties": {
- "count": {
- "type": "integer"
+ "frontend": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "type": {
- "type": "string"
+ "keyword": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
- "required": [
- "count",
- "type"
- ],
"additionalProperties": false
},
- "ResetGraphData": {
+ "GetBazaarWidgetRequestInput": {
"type": "object",
"properties": {
- "conf": {
- "$ref": "#/$defs/GlobalGraphConf"
+ "keyword": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
- "required": [
- "conf"
- ],
"additionalProperties": false
},
- "ResetLocalGraphData": {
+ "GetCloudRepoSnapshotsRequestInput": {
"type": "object",
"properties": {
- "conf": {
- "$ref": "#/$defs/LocalGraphConf"
+ "page": {
+ "type": "number"
}
},
"required": [
- "conf"
+ "page"
],
"additionalProperties": false
},
- "ResetRiffCardsRequestInput": {
+ "GetEmbedBlockRequestInput": {
"type": "object",
"properties": {
- "blockIDs": {
+ "breadcrumb": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "deckID": {
+ "embedBlockID": {
"type": "string"
},
- "id": {
- "type": "string"
+ "headingMode": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "type": {
- "type": "string"
+ "includeIDs": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "notebook": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
"required": [
- "deckID",
- "id",
- "type"
+ "embedBlockID",
+ "includeIDs"
],
"additionalProperties": false
},
- "ReviewRiffCardRequestInput": {
+ "GetInstalledIconRequestInput": {
"type": "object",
"properties": {
- "cardID": {
- "type": "string"
- },
- "deckID": {
- "type": "string"
- },
- "rating": {
- "type": "number"
- },
- "reviewedCards": {
+ "keyword": {
"anyOf": [
{
- "type": "array",
- "items": {
- "$ref": "#/$defs/RiffReviewedCardInput"
- }
+ "type": "string"
},
{
"type": "null"
@@ -15829,58 +15140,34 @@
]
}
},
- "required": [
- "cardID",
- "deckID",
- "rating"
- ],
"additionalProperties": false
},
- "RichClipboardAssetInput": {
+ "GetInstalledPackageSizeRequestInput": {
"type": "object",
"properties": {
- "box": {
+ "packageName": {
"type": "string"
},
- "index": {
- "type": "integer"
- },
- "path": {
+ "packageType": {
"type": "string"
}
},
"required": [
- "index",
- "path"
+ "packageName",
+ "packageType"
],
"additionalProperties": false
},
- "RichClipboardPrepared": {
+ "GetInstalledPluginRequestInput": {
"type": "object",
"properties": {
- "assets": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "$ref": "#/$defs/RichClipboardPreparedAsset"
- }
- },
- {
- "type": "null"
- }
- ]
- },
- "batch": {
+ "frontend": {
"type": "string"
},
- "groups": {
+ "keyword": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "type": "string"
},
{
"type": "null"
@@ -15889,60 +15176,59 @@
}
},
"required": [
- "assets",
- "batch",
- "groups"
+ "frontend"
],
"additionalProperties": false
},
- "RichClipboardPreparedAsset": {
+ "GetInstalledTemplateRequestInput": {
"type": "object",
"properties": {
- "index": {
- "type": "integer"
- },
- "path": {
- "type": "string"
+ "keyword": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
- "required": [
- "index",
- "path"
- ],
"additionalProperties": false
},
- "RiffBlockIDsRequestInput": {
+ "GetInstalledThemeRequestInput": {
"type": "object",
"properties": {
- "blockIDs": {
- "type": "array",
- "items": {
- "type": "string"
- }
+ "frontend": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "keyword": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
- "required": [
- "blockIDs"
- ],
"additionalProperties": false
},
- "RiffBlocksData": {
+ "GetInstalledWidgetRequestInput": {
"type": "object",
"properties": {
- "blocks": {
+ "keyword": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/SearchBlock"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "string"
},
{
"type": "null"
@@ -15950,90 +15236,98 @@
]
}
},
- "required": [
- "blocks"
- ],
"additionalProperties": false
},
- "RiffCardDueInput": {
+ "GetRepoDocHistoryRequestInput": {
"type": "object",
"properties": {
- "due": {
+ "id": {
"type": "string"
},
+ "page": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "id",
+ "page"
+ ],
+ "additionalProperties": false
+ },
+ "GetRepoFileRequestInput": {
+ "type": "object",
+ "properties": {
"id": {
"type": "string"
}
},
"required": [
- "due",
"id"
],
"additionalProperties": false
},
- "RiffCardRequestInput": {
+ "GetRepoSnapshotsRequestInput": {
"type": "object",
"properties": {
- "cardID": {
- "type": "string"
- },
- "deckID": {
- "type": "string"
+ "page": {
+ "type": "number"
}
},
"required": [
- "cardID",
- "deckID"
+ "page"
],
"additionalProperties": false
},
- "RiffCardsData": {
+ "GetSnippetRequestInput": {
"type": "object",
"properties": {
- "blocks": {
+ "enabled": {
+ "type": "number"
+ },
+ "keyword": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/SearchBlock"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "string"
},
{
"type": "null"
}
]
},
- "pageCount": {
- "type": "integer"
- },
- "total": {
- "type": "integer"
+ "type": {
+ "type": "string"
}
},
"required": [
- "blocks",
- "pageCount",
- "total"
+ "enabled",
+ "type"
],
"additionalProperties": false
},
- "RiffCardsRequestInput": {
+ "GetTagRequestInput": {
"type": "object",
"properties": {
- "id": {
- "type": "string"
+ "app": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "page": {
- "type": "number"
+ "ignoreMaxListHint": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "pageSize": {
+ "sort": {
"anyOf": [
{
"type": "number"
@@ -16044,132 +15338,107 @@
]
}
},
+ "additionalProperties": false
+ },
+ "GetUpdatedPackageRequestInput": {
+ "type": "object",
+ "properties": {
+ "frontend": {
+ "type": "string"
+ }
+ },
"required": [
- "id",
- "page"
+ "frontend"
],
"additionalProperties": false
},
- "RiffDeck": {
+ "GlobalGraphConf": {
"type": "object",
"properties": {
- "created": {
- "type": "string"
- },
- "id": {
- "type": "string"
+ "d3": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/GraphD3"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "name": {
- "type": "string"
+ "dailyNote": {
+ "type": "boolean"
},
- "size": {
+ "minRefs": {
"type": "integer"
},
- "updated": {
- "type": "string"
+ "type": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/GraphTypeFilter"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
"required": [
- "created",
- "id",
- "name",
- "size",
- "updated"
+ "d3",
+ "dailyNote",
+ "minRefs",
+ "type"
],
"additionalProperties": false
},
- "RiffDeckCardsRequestInput": {
+ "GlobalGraphRequestInput": {
"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"
+ "conf": {
+ "$ref": "#/$defs/GraphConfigurationFieldsInput"
},
- "nextDues": {
+ "k": {
"anyOf": [
{
- "type": "object",
- "additionalProperties": {
- "type": "string"
- }
+ "type": "string"
},
{
"type": "null"
}
]
},
- "reps": {
- "type": "integer"
- },
- "state": {
- "type": "integer"
+ "reqId": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/JSONValue"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
"required": [
- "blockID",
- "cardID",
- "deckID",
- "lapses",
- "lastReview",
- "nextDues",
- "reps",
- "state"
+ "conf"
],
"additionalProperties": false
},
- "RiffDueCardsData": {
+ "GlobalGraphResult": {
"type": "object",
"properties": {
- "cards": {
+ "box": {
+ "type": "string"
+ },
+ "conf": {
+ "$ref": "#/$defs/GlobalGraphConf"
+ },
+ "links": {
"anyOf": [
{
"type": "array",
"items": {
"anyOf": [
{
- "$ref": "#/$defs/RiffDueCard"
+ "$ref": "#/$defs/GraphLink"
},
{
"type": "null"
@@ -16182,62 +15451,46 @@
}
]
},
- "unreviewedCount": {
- "type": "integer"
- },
- "unreviewedNewCardCount": {
- "type": "integer"
- },
- "unreviewedOldCardCount": {
- "type": "integer"
- }
- },
- "required": [
- "cards",
- "unreviewedCount",
- "unreviewedNewCardCount",
- "unreviewedOldCardCount"
- ],
- "additionalProperties": false
- },
- "RiffDueCardsRequestInput": {
- "type": "object",
- "properties": {
- "deckID": {
- "type": "string"
- },
- "reviewedCards": {
+ "nodes": {
"anyOf": [
{
"type": "array",
"items": {
- "$ref": "#/$defs/RiffReviewedCardInput"
+ "anyOf": [
+ {
+ "$ref": "#/$defs/GraphNode"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
{
"type": "null"
}
]
+ },
+ "reqId": {
+ "$ref": "#/$defs/JSONValue"
}
},
"required": [
- "deckID"
+ "box",
+ "conf",
+ "links",
+ "nodes",
+ "reqId"
],
"additionalProperties": false
},
- "RiffNotebookDueCardsRequestInput": {
+ "GraphArrows": {
"type": "object",
"properties": {
- "notebook": {
- "type": "string"
- },
- "reviewedCards": {
+ "to": {
"anyOf": [
{
- "type": "array",
- "items": {
- "$ref": "#/$defs/RiffReviewedCardInput"
- }
+ "$ref": "#/$defs/GraphArrowsTo"
},
{
"type": "null"
@@ -16246,168 +15499,134 @@
}
},
"required": [
- "notebook"
+ "to"
],
"additionalProperties": false
},
- "RiffReviewedCardInput": {
+ "GraphArrowsTo": {
"type": "object",
"properties": {
- "cardID": {
- "type": "string"
+ "enabled": {
+ "type": "boolean"
}
},
"required": [
- "cardID"
+ "enabled"
],
"additionalProperties": false
},
- "RiffTreeDueCardsRequestInput": {
+ "GraphConfigurationFieldsInput": {
"type": "object",
"properties": {
- "reviewedCards": {
+ "d3": {
"anyOf": [
{
- "type": "array",
- "items": {
- "$ref": "#/$defs/RiffReviewedCardInput"
- }
+ "$ref": "#/$defs/GraphD3Input"
},
{
"type": "null"
}
]
},
- "rootID": {
- "type": "string"
- }
- },
- "required": [
- "rootID"
- ],
- "additionalProperties": false
- },
- "RollbackRepoSnapshotFileRequestInput": {
- "type": "object",
- "properties": {
- "id": {
- "type": "string"
- }
- },
- "required": [
- "id"
- ],
- "additionalProperties": false
- },
- "SQLQueryRequestInput": {
- "type": "object",
- "properties": {
- "mode": {
+ "dailyNote": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "stmt": {
- "type": "string"
+ "minRefs": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "type": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/GraphTypeFilterInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
- "required": [
- "stmt"
- ],
"additionalProperties": false
},
- "SaveTemplateRequestInput": {
+ "GraphCorrelation": {
"type": "object",
"properties": {
- "databaseMode": {
- "type": "string"
- },
- "directory": {
- "type": "string"
- },
- "id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "overwrite": {
- "type": "boolean"
+ "reqId": {
+ "$ref": "#/$defs/JSONValue"
}
},
"required": [
- "id",
- "name",
- "overwrite"
+ "reqId"
],
"additionalProperties": false
},
- "SearchAsset": {
+ "GraphD3": {
"type": "object",
"properties": {
- "hName": {
- "type": "string"
+ "arrow": {
+ "type": "boolean"
},
- "path": {
- "type": "string"
+ "centerStrength": {
+ "type": "number"
},
- "updated": {
+ "collideRadius": {
+ "type": "number"
+ },
+ "collideStrength": {
+ "type": "number"
+ },
+ "lineOpacity": {
+ "type": "number"
+ },
+ "linkDistance": {
"type": "integer"
- }
+ },
+ "linkWidth": {
+ "type": "number"
+ },
+ "nodeSize": {
+ "type": "number"
+ }
},
"required": [
- "hName",
- "path",
- "updated"
+ "arrow",
+ "centerStrength",
+ "collideRadius",
+ "collideStrength",
+ "lineOpacity",
+ "linkDistance",
+ "linkWidth",
+ "nodeSize"
],
"additionalProperties": false
},
- "SearchAssetContentData": {
+ "GraphD3Input": {
"type": "object",
"properties": {
- "assetContents": {
+ "arrow": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/AssetContent"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "matchedAssetCount": {
- "type": "integer"
- },
- "pageCount": {
- "type": "integer"
- }
- },
- "required": [
- "assetContents",
- "matchedAssetCount",
- "pageCount"
- ],
- "additionalProperties": false
- },
- "SearchAssetContentRequestInput": {
- "type": "object",
- "properties": {
- "method": {
+ "centerStrength": {
"anyOf": [
{
"type": "number"
@@ -16417,7 +15636,7 @@
}
]
},
- "orderBy": {
+ "collideRadius": {
"anyOf": [
{
"type": "number"
@@ -16427,7 +15646,7 @@
}
]
},
- "page": {
+ "collideStrength": {
"anyOf": [
{
"type": "number"
@@ -16437,7 +15656,7 @@
}
]
},
- "pageSize": {
+ "lineOpacity": {
"anyOf": [
{
"type": "number"
@@ -16447,23 +15666,30 @@
}
]
},
- "query": {
+ "linkDistance": {
"anyOf": [
{
- "type": "string"
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "types": {
+ "linkWidth": {
"anyOf": [
{
- "type": "object",
- "additionalProperties": {
- "type": "boolean"
- }
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "nodeSize": {
+ "anyOf": [
+ {
+ "type": "number"
},
{
"type": "null"
@@ -16473,334 +15699,239 @@
},
"additionalProperties": false
},
- "SearchAssetRequestInput": {
+ "GraphLink": {
"type": "object",
"properties": {
- "exts": {
+ "arrows": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "$ref": "#/$defs/GraphArrows"
},
{
"type": "null"
}
]
},
- "k": {
+ "from": {
+ "type": "string"
+ },
+ "ref": {
+ "type": "boolean"
+ },
+ "to": {
"type": "string"
}
},
"required": [
- "k"
+ "arrows",
+ "from",
+ "ref",
+ "to"
],
"additionalProperties": false
},
- "SearchBlock": {
+ "GraphNode": {
"type": "object",
"properties": {
- "alias": {
- "type": "string"
- },
"box": {
"type": "string"
},
- "children": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/SearchBlock"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- {
- "type": "null"
- }
- ]
- },
- "content": {
- "type": "string"
- },
- "count": {
+ "defs": {
"type": "integer"
},
- "created": {
+ "id": {
"type": "string"
},
- "defID": {
+ "label": {
"type": "string"
},
- "defPath": {
+ "path": {
"type": "string"
},
- "depth": {
+ "refs": {
"type": "integer"
},
- "fcontent": {
- "type": "string"
- },
- "folded": {
- "type": "boolean"
+ "size": {
+ "type": "number"
},
- "hPath": {
+ "title": {
"type": "string"
},
- "ial": {
- "anyOf": [
- {
- "type": "object",
- "additionalProperties": {
- "type": "string"
- }
- },
- {
- "type": "null"
- }
- ]
- },
- "id": {
+ "type": {
"type": "string"
+ }
+ },
+ "required": [
+ "box",
+ "defs",
+ "id",
+ "label",
+ "path",
+ "refs",
+ "size",
+ "type"
+ ],
+ "additionalProperties": false
+ },
+ "GraphTypeFilter": {
+ "type": "object",
+ "properties": {
+ "blockquote": {
+ "type": "boolean"
},
- "markdown": {
- "type": "string"
+ "callout": {
+ "type": "boolean"
},
- "memo": {
- "type": "string"
+ "code": {
+ "type": "boolean"
},
- "name": {
- "type": "string"
+ "heading": {
+ "type": "boolean"
},
- "number": {
- "type": "string"
+ "list": {
+ "type": "boolean"
},
- "parentID": {
- "type": "string"
+ "listItem": {
+ "type": "boolean"
},
- "path": {
- "type": "string"
+ "math": {
+ "type": "boolean"
},
- "refCount": {
- "type": "integer"
+ "paragraph": {
+ "type": "boolean"
},
- "refText": {
- "type": "string"
+ "super": {
+ "type": "boolean"
},
- "refs": {
+ "table": {
+ "type": "boolean"
+ },
+ "tag": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "blockquote",
+ "callout",
+ "code",
+ "heading",
+ "list",
+ "listItem",
+ "math",
+ "paragraph",
+ "super",
+ "table",
+ "tag"
+ ],
+ "additionalProperties": false
+ },
+ "GraphTypeFilterInput": {
+ "type": "object",
+ "properties": {
+ "blockquote": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/SearchBlock"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "riffCard": {
+ "callout": {
"anyOf": [
{
- "$ref": "#/$defs/SearchBlockCard"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "riffCardID": {
- "type": "string"
- },
- "rootID": {
- "type": "string"
- },
- "sort": {
- "type": "integer"
- },
- "subType": {
- "type": "string"
- },
- "tag": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "updated": {
- "type": "string"
- }
- },
- "required": [
- "alias",
- "box",
- "children",
- "content",
- "count",
- "created",
- "defID",
- "defPath",
- "depth",
- "fcontent",
- "folded",
- "hPath",
- "ial",
- "id",
- "markdown",
- "memo",
- "name",
- "parentID",
- "path",
- "refCount",
- "refText",
- "refs",
- "riffCard",
- "riffCardID",
- "rootID",
- "sort",
- "subType",
- "tag",
- "type",
- "updated"
- ],
- "additionalProperties": false
- },
- "SearchBlockCard": {
- "type": "object",
- "properties": {
- "due": {
- "type": "string"
- },
- "lapses": {
- "type": "integer"
- },
- "lastReview": {
- "type": "string"
- },
- "reps": {
- "type": "integer"
- },
- "state": {
- "type": "integer"
- }
- },
- "required": [
- "due",
- "lapses",
- "lastReview",
- "reps",
- "state"
- ],
- "additionalProperties": false
- },
- "SearchBlockRequestInput": {
- "type": "object",
- "properties": {
- "groupBy": {
+ "code": {
"anyOf": [
{
- "type": "number"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "method": {
+ "heading": {
"anyOf": [
{
- "type": "number"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "orderBy": {
+ "list": {
"anyOf": [
{
- "type": "number"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "page": {
+ "listItem": {
"anyOf": [
{
- "type": "number"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "pageSize": {
+ "math": {
"anyOf": [
{
- "type": "number"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "paths": {
+ "paragraph": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "query": {
+ "super": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "subTypes": {
+ "table": {
"anyOf": [
{
- "$ref": "#/$defs/SearchSubtypeFilterInput"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "types": {
+ "tag": {
"anyOf": [
{
- "type": "object",
- "additionalProperties": {
- "type": "boolean"
- }
+ "type": "boolean"
},
{
"type": "null"
@@ -16810,87 +15941,65 @@
},
"additionalProperties": false
},
- "SearchBlocksData": {
+ "HTMLClipboardPreflight": {
"type": "object",
"properties": {
- "blocks": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/SearchBlock"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- {
- "type": "null"
- }
- ]
+ "converted": {
+ "type": "boolean"
},
- "matchedBlockCount": {
- "type": "integer"
+ "dom": {
+ "type": "string"
},
- "matchedRootCount": {
- "type": "integer"
+ "normalizedHTML": {
+ "type": "string"
},
- "pageCount": {
- "type": "integer"
+ "useHTML": {
+ "type": "boolean"
}
},
"required": [
- "blocks",
- "matchedBlockCount",
- "matchedRootCount",
- "pageCount"
+ "converted",
+ "useHTML"
],
"additionalProperties": false
},
- "SearchEmbedBlockRequestInput": {
+ "HTMLClipboardRequestInput": {
"type": "object",
"properties": {
- "breadcrumb": {
+ "dom": {
+ "type": "string"
+ },
+ "mathML": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "embedBlockID": {
- "type": "string"
- },
- "excludeIDs": {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- }
+ "notebook": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "headingMode": {
+ "office": {
"anyOf": [
{
- "type": "number"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "notebook": {
+ "officeMathHTML": {
"anyOf": [
{
"type": "string"
@@ -16900,21 +16009,7 @@
}
]
},
- "stmt": {
- "type": "string"
- }
- },
- "required": [
- "embedBlockID",
- "excludeIDs",
- "stmt"
- ],
- "additionalProperties": false
- },
- "SearchHeadingFilterInput": {
- "type": "object",
- "properties": {
- "h1": {
+ "preflight": {
"anyOf": [
{
"type": "boolean"
@@ -16924,7 +16019,7 @@
}
]
},
- "h2": {
+ "preparedHTML": {
"anyOf": [
{
"type": "boolean"
@@ -16934,7 +16029,7 @@
}
]
},
- "h3": {
+ "preserveSourceFormat": {
"anyOf": [
{
"type": "boolean"
@@ -16944,7 +16039,7 @@
}
]
},
- "h4": {
+ "skipBase64Assets": {
"anyOf": [
{
"type": "boolean"
@@ -16954,7 +16049,7 @@
}
]
},
- "h5": {
+ "skipInlineSVGAssets": {
"anyOf": [
{
"type": "boolean"
@@ -16964,7 +16059,7 @@
}
]
},
- "h6": {
+ "skipLocalAssets": {
"anyOf": [
{
"type": "boolean"
@@ -16973,44 +16068,18 @@
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "SearchHistoryData": {
- "type": "object",
- "properties": {
- "histories": {
+ },
+ "text": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "type": "string"
},
{
"type": "null"
}
]
},
- "pageCount": {
- "type": "integer"
- },
- "totalCount": {
- "type": "integer"
- }
- },
- "required": [
- "histories",
- "pageCount",
- "totalCount"
- ],
- "additionalProperties": false
- },
- "SearchHistoryRequestInput": {
- "type": "object",
- "properties": {
- "notebook": {
+ "wps": {
"anyOf": [
{
"type": "string"
@@ -17019,28 +16088,98 @@
"type": "null"
}
]
+ }
+ },
+ "required": [
+ "dom"
+ ],
+ "additionalProperties": false
+ },
+ "HTMLData": {
+ "type": "object",
+ "properties": {
+ "html": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "html"
+ ],
+ "additionalProperties": false
+ },
+ "HeadingChildrenRequestInput": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
},
- "op": {
+ "removeFoldAttr": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
+ }
+ },
+ "required": [
+ "id"
+ ],
+ "additionalProperties": false
+ },
+ "HeadingFoldRequestInput": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
},
- "page": {
+ "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": {
"anyOf": [
{
- "type": "number"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "query": {
+ "notebook": {
"anyOf": [
{
"type": "string"
@@ -17049,11 +16188,30 @@
"type": "null"
}
]
+ }
+ },
+ "additionalProperties": false
+ },
+ "History": {
+ "type": "object",
+ "properties": {
+ "hCreated": {
+ "type": "string"
},
- "type": {
+ "items": {
"anyOf": [
{
- "type": "number"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/HistoryItem"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
@@ -17061,70 +16219,106 @@
]
}
},
+ "required": [
+ "hCreated",
+ "items"
+ ],
"additionalProperties": false
},
- "SearchKeywordRequestInput": {
+ "HistoryItem": {
"type": "object",
"properties": {
- "k": {
+ "id": {
+ "type": "string"
+ },
+ "notebook": {
+ "type": "string"
+ },
+ "op": {
+ "type": "string"
+ },
+ "path": {
+ "type": "string"
+ },
+ "title": {
"type": "string"
}
},
"required": [
- "k"
+ "id",
+ "notebook",
+ "op",
+ "path",
+ "title"
],
"additionalProperties": false
},
- "SearchListFilterInput": {
+ "HistoryItemsData": {
"type": "object",
"properties": {
- "o": {
+ "items": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/HistoryItem"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
+ }
+ },
+ "required": [
+ "items"
+ ],
+ "additionalProperties": false
+ },
+ "HistoryItemsRequestInput": {
+ "type": "object",
+ "properties": {
+ "created": {
+ "type": "string"
},
- "t": {
+ "notebook": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "u": {
+ "op": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "SearchPageRequestInput": {
- "type": "object",
- "properties": {
- "page": {
+ },
+ "query": {
"anyOf": [
{
- "type": "number"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "pageSize": {
+ "type": {
"anyOf": [
{
"type": "number"
@@ -17135,193 +16329,78 @@
]
}
},
+ "required": [
+ "created"
+ ],
"additionalProperties": false
},
- "SearchPath": {
+ "HistoryPathRequestInput": {
"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": {
+ "historyPath": {
"type": "string"
- },
- "id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "nodeType": {
- "type": "string"
- },
- "number": {
- "type": "string"
- },
- "subType": {
+ }
+ },
+ "required": [
+ "historyPath"
+ ],
+ "additionalProperties": false
+ },
+ "ImportAutoDocument": {
+ "type": "object",
+ "properties": {
+ "token": {
"type": "string"
},
"type": {
- "type": "string"
- },
- "updated": {
- "type": "string"
- }
- },
- "required": [
- "box",
- "count",
- "created",
- "depth",
- "folded",
- "hPath",
- "id",
- "name",
- "nodeType",
- "subType",
- "type",
- "updated"
- ],
- "additionalProperties": false
- },
- "SearchPathRequestInput": {
- "type": "object",
- "properties": {
- "path": {
- "type": "string"
+ "type": "string",
+ "enum": [
+ "document"
+ ]
}
},
"required": [
- "path"
+ "type"
],
"additionalProperties": false
},
- "SearchRefBlockRequestInput": {
+ "ImportAutoNotebook": {
"type": "object",
"properties": {
- "beforeLen": {
- "type": "number"
- },
- "id": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "isDatabase": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
- },
- "isSquareBrackets": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
- },
- "k": {
- "type": "string"
- },
"notebook": {
"anyOf": [
{
- "type": "string"
+ "$ref": "#/$defs/Notebook"
},
{
"type": "null"
}
]
},
- "reqId": {
- "anyOf": [
- {
- "$ref": "#/$defs/JSONValue"
- },
- {
- "type": "null"
- }
+ "type": {
+ "type": "string",
+ "enum": [
+ "notebook"
]
- },
- "rootID": {
- "type": "string"
- }
- },
- "additionalProperties": false
- },
- "SearchRefCorrelation": {
- "type": "object",
- "properties": {
- "reqId": {
- "$ref": "#/$defs/JSONValue"
}
},
"required": [
- "reqId"
+ "notebook",
+ "type"
],
"additionalProperties": false
},
- "SearchRefResult": {
+ "ImportAutoNotebooks": {
"type": "object",
"properties": {
- "blocks": {
+ "notebooks": {
"anyOf": [
{
"type": "array",
"items": {
"anyOf": [
{
- "$ref": "#/$defs/SearchBlock"
+ "$ref": "#/$defs/Notebook"
},
{
"type": "null"
@@ -17334,222 +16413,156 @@
}
]
},
- "k": {
- "type": "string"
- },
- "newDoc": {
- "type": "boolean"
- },
- "reqId": {
- "$ref": "#/$defs/JSONValue"
+ "type": {
+ "type": "string",
+ "enum": [
+ "notebooks"
+ ]
}
},
"required": [
- "blocks",
- "k",
- "newDoc",
- "reqId"
+ "notebooks",
+ "type"
],
"additionalProperties": false
},
- "SearchRepoFileRequestInput": {
+ "ImportDataRequestInput": {
"type": "object",
"properties": {
- "keyword": {
- "type": "string"
- },
- "page": {
- "type": "number"
+ "file": {
+ "type": "string",
+ "format": "binary"
+ }
+ },
+ "additionalProperties": false
+ },
+ "ImportDocumentData": {
+ "type": "object",
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "document"
+ ]
}
},
"required": [
- "keyword",
- "page"
+ "type"
],
"additionalProperties": false
},
- "SearchSubTypes": {
+ "ImportMarkdownRequestInput": {
"type": "object",
"properties": {
- "heading": {
- "anyOf": [
- {
- "type": "object",
- "additionalProperties": {
- "type": "boolean"
- }
- },
- {
- "type": "null"
- }
- ]
+ "localPath": {
+ "type": "string"
},
- "list": {
- "anyOf": [
- {
- "type": "object",
- "additionalProperties": {
- "type": "boolean"
- }
- },
- {
- "type": "null"
- }
- ]
+ "notebook": {
+ "type": "string"
},
- "listItem": {
+ "skipRoot": {
"anyOf": [
{
- "type": "object",
- "additionalProperties": {
- "type": "boolean"
- }
+ "type": "boolean"
},
{
"type": "null"
}
]
+ },
+ "toPath": {
+ "type": "string"
}
},
"required": [
- "heading",
- "list",
- "listItem"
+ "localPath",
+ "notebook",
+ "toPath"
],
"additionalProperties": false
},
- "SearchSubTypesInput": {
+ "ImportNotebookCryptoBackupRequestInput": {
"type": "object",
"properties": {
- "heading": {
- "anyOf": [
- {
- "type": "object",
- "additionalProperties": {
- "type": "boolean"
- }
- },
- {
- "type": "null"
- }
- ]
- },
- "list": {
- "anyOf": [
- {
- "type": "object",
- "additionalProperties": {
- "type": "boolean"
- }
- },
- {
- "type": "null"
- }
- ]
+ "file": {
+ "type": "string",
+ "format": "binary"
},
- "listItem": {
- "anyOf": [
- {
- "type": "object",
- "additionalProperties": {
- "type": "boolean"
- }
- },
- {
- "type": "null"
- }
- ]
+ "password": {
+ "type": "string"
}
},
+ "required": [
+ "file"
+ ],
"additionalProperties": false
},
- "SearchSubtypeFilterInput": {
+ "ImportRepoKeyRequestInput": {
"type": "object",
"properties": {
- "heading": {
- "anyOf": [
- {
- "$ref": "#/$defs/SearchHeadingFilterInput"
- },
- {
- "type": "null"
- }
- ]
- },
- "list": {
- "anyOf": [
- {
- "$ref": "#/$defs/SearchListFilterInput"
- },
- {
- "type": "null"
- }
- ]
- },
- "listItem": {
- "anyOf": [
- {
- "$ref": "#/$defs/SearchListFilterInput"
- },
- {
- "type": "null"
- }
- ]
+ "key": {
+ "type": "string"
}
},
+ "required": [
+ "key"
+ ],
"additionalProperties": false
},
- "SearchTagData": {
+ "ImportSYRequestInput": {
"type": "object",
"properties": {
- "k": {
+ "file": {
+ "type": "string",
+ "format": "binary"
+ },
+ "notebook": {
"type": "string"
},
- "tags": {
- "type": "array",
- "items": {
- "type": "string"
- }
+ "toPath": {
+ "type": "string"
}
},
- "required": [
- "k",
- "tags"
- ],
"additionalProperties": false
},
- "SearchTagRequestInput": {
+ "ImportTokenRequestInput": {
"type": "object",
"properties": {
- "k": {
+ "token": {
"type": "string"
}
},
"required": [
- "k"
+ "token"
],
"additionalProperties": false
},
- "SearchTemplateData": {
+ "ImportZipMarkdownRequestInput": {
"type": "object",
"properties": {
- "k": {
+ "file": {
+ "type": "string",
+ "format": "binary"
+ },
+ "notebook": {
"type": "string"
},
- "templates": {
+ "skipRoot": {
+ "type": "string"
+ },
+ "toPath": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false
+ },
+ "ImportedNotebook": {
+ "type": "object",
+ "properties": {
+ "notebook": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/SearchTemplateResult"
- },
- {
- "type": "null"
- }
- ]
- }
+ "$ref": "#/$defs/Notebook"
},
{
"type": "null"
@@ -17558,45 +16571,21 @@
}
},
"required": [
- "k",
- "templates"
- ],
- "additionalProperties": false
- },
- "SearchTemplateResult": {
- "type": "object",
- "properties": {
- "content": {
- "type": "string"
- },
- "path": {
- "type": "string"
- },
- "relativePath": {
- "type": "string"
- }
- },
- "required": [
- "content",
- "path",
- "relativePath"
+ "notebook"
],
"additionalProperties": false
},
- "SearchWidgetData": {
+ "ImportedNotebooks": {
"type": "object",
"properties": {
- "k": {
- "type": "string"
- },
- "widgets": {
+ "notebooks": {
"anyOf": [
{
"type": "array",
"items": {
"anyOf": [
{
- "$ref": "#/$defs/SearchWidgetResult"
+ "$ref": "#/$defs/Notebook"
},
{
"type": "null"
@@ -17611,88 +16600,117 @@
}
},
"required": [
- "k",
- "widgets"
+ "notebooks"
],
"additionalProperties": false
},
- "SearchWidgetResult": {
+ "InitRepoKeyFromPassphraseRequestInput": {
"type": "object",
"properties": {
- "content": {
- "type": "string"
- },
- "name": {
+ "pass": {
"type": "string"
}
},
"required": [
- "content",
- "name"
+ "pass"
],
"additionalProperties": false
},
- "SetAIRequestInput": {
+ "InlineStyle": {
"type": "object",
"properties": {
- "agent": {
+ "dark": {
"anyOf": [
{
- "$ref": "#/$defs/SettingAgentInput"
+ "$ref": "#/$defs/InlineStyleTheme"
},
{
"type": "null"
}
]
},
- "editing": {
- "anyOf": [
- {
- "$ref": "#/$defs/SettingEditingInput"
- },
- {
- "type": "null"
- }
- ]
+ "hidden": {
+ "type": "boolean"
},
- "embedding": {
+ "id": {
+ "type": "string"
+ },
+ "light": {
"anyOf": [
{
- "$ref": "#/$defs/SettingEmbeddingInput"
+ "$ref": "#/$defs/InlineStyleTheme"
},
{
"type": "null"
}
]
},
- "imageGeneration": {
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "dark",
+ "id",
+ "light",
+ "name"
+ ],
+ "additionalProperties": false
+ },
+ "InlineStyleAV": {
+ "type": "object",
+ "properties": {
+ "colors": {
"anyOf": [
{
- "$ref": "#/$defs/SettingImageGenerationInput"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AttributeViewCustomColor"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
},
- "mcp": {
+ "order": {
"anyOf": [
{
- "$ref": "#/$defs/SettingMCPInput"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
- },
- "providers": {
+ }
+ },
+ "required": [
+ "colors",
+ "order"
+ ],
+ "additionalProperties": false
+ },
+ "InlineStyleAVInput": {
+ "type": "object",
+ "properties": {
+ "colors": {
"anyOf": [
{
"type": "array",
"items": {
"anyOf": [
{
- "$ref": "#/$defs/SettingProviderInput"
+ "$ref": "#/$defs/AttributeViewCustomColorInput"
},
{
"type": "null"
@@ -17705,10 +16723,13 @@
}
]
},
- "rerank": {
+ "order": {
"anyOf": [
{
- "$ref": "#/$defs/SettingRerankInput"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
@@ -17718,62 +16739,146 @@
},
"additionalProperties": false
},
- "SetAppearanceRequestInput": {
+ "InlineStyleBuiltin": {
"type": "object",
"properties": {
- "bodyGradient": {
+ "colors": {
"anyOf": [
{
- "$ref": "#/$defs/SettingBodyGradientInput"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/InlineStyleBuiltinColor"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
},
- "closeButtonBehavior": {
+ "hidden": {
"anyOf": [
{
- "type": "integer"
+ "$ref": "#/$defs/InlineStyleBuiltinHidden"
},
{
"type": "null"
}
]
},
- "codeBlockThemeDark": {
+ "styles": {
"anyOf": [
{
- "type": "string"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/InlineStyleBuiltinStyle"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
- },
- "codeBlockThemeLight": {
+ }
+ },
+ "required": [
+ "colors",
+ "hidden",
+ "styles"
+ ],
+ "additionalProperties": false
+ },
+ "InlineStyleBuiltinColor": {
+ "type": "object",
+ "properties": {
+ "dark": {
"anyOf": [
{
- "type": "string"
+ "$ref": "#/$defs/InlineStyleTheme"
},
{
"type": "null"
}
]
},
- "darkThemes": {
+ "index": {
+ "type": "integer"
+ },
+ "light": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/InlineStyleTheme"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "dark",
+ "index",
+ "light"
+ ],
+ "additionalProperties": false
+ },
+ "InlineStyleBuiltinColorInput": {
+ "type": "object",
+ "properties": {
+ "dark": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/InlineStyleThemeInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "index": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "light": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/InlineStyleThemeInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "InlineStyleBuiltinHidden": {
+ "type": "object",
+ "properties": {
+ "av": {
"anyOf": [
{
"type": "array",
"items": {
- "anyOf": [
- {
- "$ref": "#/$defs/SettingAppearanceThemeInput"
- },
- {
- "type": "null"
- }
- ]
+ "type": "integer"
}
},
{
@@ -17781,29 +16886,25 @@
}
]
},
- "entryVisibility": {
+ "backgroundColor": {
"anyOf": [
{
- "$ref": "#/$defs/SettingEntryVisibilityInput"
+ "type": "array",
+ "items": {
+ "type": "integer"
+ }
},
{
"type": "null"
}
]
},
- "globalFontFamilies": {
+ "color": {
"anyOf": [
{
"type": "array",
"items": {
- "anyOf": [
- {
- "$ref": "#/$defs/SettingEditorFontInput"
- },
- {
- "type": "null"
- }
- ]
+ "type": "integer"
}
},
{
@@ -17811,54 +16912,97 @@
}
]
},
- "hideStatusBar": {
+ "style1": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
- },
- "hideToolbar": {
+ }
+ },
+ "required": [
+ "av",
+ "backgroundColor",
+ "color",
+ "style1"
+ ],
+ "additionalProperties": false
+ },
+ "InlineStyleBuiltinHiddenInput": {
+ "type": "object",
+ "properties": {
+ "av": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "type": "integer"
+ }
},
{
"type": "null"
}
]
},
- "icon": {
+ "backgroundColor": {
"anyOf": [
{
- "type": "string"
+ "type": "array",
+ "items": {
+ "type": "integer"
+ }
},
{
"type": "null"
}
]
},
- "iconVer": {
+ "color": {
"anyOf": [
{
- "type": "string"
+ "type": "array",
+ "items": {
+ "type": "integer"
+ }
},
{
"type": "null"
}
]
},
- "icons": {
+ "style1": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "InlineStyleBuiltinInput": {
+ "type": "object",
+ "properties": {
+ "colors": {
"anyOf": [
{
"type": "array",
"items": {
"anyOf": [
{
- "$ref": "#/$defs/SettingAppearanceIconInput"
+ "$ref": "#/$defs/InlineStyleBuiltinColorInput"
},
{
"type": "null"
@@ -17871,24 +17015,24 @@
}
]
},
- "lang": {
+ "hidden": {
"anyOf": [
{
- "type": "string"
+ "$ref": "#/$defs/InlineStyleBuiltinHiddenInput"
},
{
"type": "null"
}
]
},
- "lightThemes": {
+ "styles": {
"anyOf": [
{
"type": "array",
"items": {
"anyOf": [
{
- "$ref": "#/$defs/SettingAppearanceThemeInput"
+ "$ref": "#/$defs/InlineStyleBuiltinStyleInput"
},
{
"type": "null"
@@ -17900,58 +17044,94 @@
"type": "null"
}
]
- },
- "mode": {
+ }
+ },
+ "additionalProperties": false
+ },
+ "InlineStyleBuiltinStyle": {
+ "type": "object",
+ "properties": {
+ "dark": {
"anyOf": [
{
- "type": "integer"
+ "$ref": "#/$defs/InlineStyleTheme"
},
{
"type": "null"
}
]
},
- "modeOS": {
+ "id": {
+ "type": "string"
+ },
+ "light": {
"anyOf": [
{
- "type": "boolean"
+ "$ref": "#/$defs/InlineStyleTheme"
},
{
"type": "null"
}
]
- },
- "notifications": {
+ }
+ },
+ "required": [
+ "dark",
+ "id",
+ "light"
+ ],
+ "additionalProperties": false
+ },
+ "InlineStyleBuiltinStyleInput": {
+ "type": "object",
+ "properties": {
+ "dark": {
"anyOf": [
{
- "$ref": "#/$defs/SettingNotificationsInput"
+ "$ref": "#/$defs/InlineStyleThemeInput"
},
{
"type": "null"
}
]
},
- "statusBar": {
+ "id": {
"anyOf": [
{
- "$ref": "#/$defs/SettingStatusBarInput"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "themeDark": {
+ "light": {
"anyOf": [
{
- "type": "string"
+ "$ref": "#/$defs/InlineStyleThemeInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "InlineStyleInput": {
+ "type": "object",
+ "properties": {
+ "dark": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/InlineStyleThemeInput"
},
{
"type": "null"
}
]
},
- "themeJS": {
+ "hidden": {
"anyOf": [
{
"type": "boolean"
@@ -17961,7 +17141,7 @@
}
]
},
- "themeLight": {
+ "id": {
"anyOf": [
{
"type": "string"
@@ -17971,7 +17151,17 @@
}
]
},
- "themeVer": {
+ "light": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/InlineStyleThemeInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "name": {
"anyOf": [
{
"type": "string"
@@ -17984,75 +17174,92 @@
},
"additionalProperties": false
},
- "SetAssetAnnotationRequestInput": {
+ "InlineStyleOrder": {
"type": "object",
"properties": {
- "data": {
- "type": "string"
+ "backgroundColor": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "path": {
- "type": "string"
- }
- },
- "required": [
- "data",
- "path"
- ],
- "additionalProperties": false
- },
- "SetAssetOCRTextRequestInput": {
- "type": "object",
- "properties": {
- "path": {
- "type": "string"
+ "color": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "text": {
- "type": "string"
+ "style1": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
"required": [
- "path",
- "text"
+ "backgroundColor",
+ "color",
+ "style1"
],
"additionalProperties": false
},
- "SetBazaarPackageRatingRequestInput": {
+ "InlineStyleOrderInput": {
"type": "object",
"properties": {
- "packageName": {
- "type": "string"
- },
- "packageType": {
- "type": "string"
+ "backgroundColor": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "rating": {
- "type": "number"
- }
- },
- "required": [
- "packageName",
- "packageType",
- "rating"
- ],
- "additionalProperties": false
- },
- "SetBazaarRequestInput": {
- "type": "object",
- "properties": {
- "petalDisabled": {
+ "color": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "trust": {
+ "style1": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
@@ -18062,49 +17269,35 @@
},
"additionalProperties": false
},
- "SetBlockAttrsRequestInput": {
+ "InlineStyleTheme": {
"type": "object",
"properties": {
- "attrs": {
- "type": "object",
- "additionalProperties": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- }
+ "backgroundColor": {
+ "type": "string"
},
- "id": {
+ "color": {
"type": "string"
}
},
- "required": [
- "attrs",
- "id"
- ],
"additionalProperties": false
},
- "SetConfSnippetRequestInput": {
+ "InlineStyleThemeInput": {
"type": "object",
"properties": {
- "enabledCSS": {
+ "backgroundColor": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "enabledJS": {
+ "color": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
@@ -18114,369 +17307,477 @@
},
"additionalProperties": false
},
- "SetCriterionRequestInput": {
+ "InlineStyles": {
"type": "object",
"properties": {
- "criterion": {
+ "av": {
"anyOf": [
{
- "$ref": "#/$defs/CriterionInput"
+ "$ref": "#/$defs/InlineStyleAV"
},
{
"type": "null"
}
]
- }
- },
- "required": [
- "criterion"
- ],
- "additionalProperties": false
- },
- "SetEditorRequestInput": {
- "type": "object",
- "properties": {
- "allowHTMLBLockScript": {
+ },
+ "builtin": {
"anyOf": [
{
- "type": "boolean"
+ "$ref": "#/$defs/InlineStyleBuiltin"
},
{
"type": "null"
}
]
},
- "allowSVGScript": {
+ "order": {
"anyOf": [
{
- "type": "boolean"
+ "$ref": "#/$defs/InlineStyleOrder"
},
{
"type": "null"
}
]
},
- "assetOpen": {
+ "styles": {
"anyOf": [
{
- "$ref": "#/$defs/SettingAssetOpenInput"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/InlineStyle"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
},
- "backlinkContainChildren": {
+ "version": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "av",
+ "builtin",
+ "order",
+ "styles",
+ "version"
+ ],
+ "additionalProperties": false
+ },
+ "InsertBlockRequestInput": {
+ "type": "object",
+ "properties": {
+ "data": {
+ "type": "string"
+ },
+ "dataType": {
+ "type": "string"
+ },
+ "nextID": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "backlinkExpandCount": {
+ "parentID": {
"anyOf": [
{
- "type": "integer"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "backlinkHideReference": {
+ "previousID": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
+ }
+ },
+ "required": [
+ "data",
+ "dataType"
+ ],
+ "additionalProperties": false
+ },
+ "InsertCoverRequestInput": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
},
- "backlinkMentionExclude": {
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "name"
+ ],
+ "additionalProperties": false
+ },
+ "InsertLocalAssetsRequestInput": {
+ "type": "object",
+ "properties": {
+ "assetPaths": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "fromHTMLPaste": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "backlinkShowBottom": {
+ "id": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "backlinkSort": {
+ "isUpload": {
"anyOf": [
{
- "type": "integer"
+ "type": "boolean"
},
{
"type": "null"
}
]
- },
- "backmentionExpandCount": {
+ }
+ },
+ "required": [
+ "assetPaths"
+ ],
+ "additionalProperties": false
+ },
+ "InstallBazaarIconRequestInput": {
+ "type": "object",
+ "properties": {
+ "keyword": {
"anyOf": [
{
- "type": "integer"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "backmentionSort": {
- "anyOf": [
- {
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
+ "packageName": {
+ "type": "string"
},
- "blockRefDynamicAnchorTextMaxLen": {
- "anyOf": [
- {
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
+ "repoHash": {
+ "type": "string"
},
- "checkBlockRef": {
+ "repoRef": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "codeFontFamilies": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/SettingEditorFontInput"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- {
- "type": "null"
- }
- ]
+ "repoURL": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "packageName",
+ "repoHash",
+ "repoURL"
+ ],
+ "additionalProperties": false
+ },
+ "InstallBazaarPluginRequestInput": {
+ "type": "object",
+ "properties": {
+ "frontend": {
+ "type": "string"
},
- "codeLigatures": {
+ "keyword": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "codeLineWrap": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
+ "packageName": {
+ "type": "string"
},
- "codeSyntaxHighlightLineNum": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
+ "repoHash": {
+ "type": "string"
},
- "codeTabSpaces": {
+ "repoRef": {
"anyOf": [
{
- "type": "integer"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "cursorSurroundingLines": {
+ "repoURL": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "frontend",
+ "packageName",
+ "repoHash",
+ "repoURL"
+ ],
+ "additionalProperties": false
+ },
+ "InstallBazaarTemplateRequestInput": {
+ "type": "object",
+ "properties": {
+ "keyword": {
"anyOf": [
{
- "type": "integer"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "databaseAttrClickMode": {
- "anyOf": [
- {
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
+ "packageName": {
+ "type": "string"
},
- "databaseAttrHideEmpty": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
+ "repoHash": {
+ "type": "string"
},
- "databaseAttrShow": {
+ "repoRef": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "databaseAttrUseTabs": {
+ "repoURL": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "packageName",
+ "repoHash",
+ "repoURL"
+ ],
+ "additionalProperties": false
+ },
+ "InstallBazaarThemeRequestInput": {
+ "type": "object",
+ "properties": {
+ "frontend": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "databaseAttrViewMode": {
+ "keyword": {
"anyOf": [
{
- "type": "integer"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "displayBookmarkIcon": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
+ "mode": {
+ "type": "number"
},
- "displayNetImgMark": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
+ "modeOS": {
+ "type": "boolean"
},
- "dragHTMLFileToIframe": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
+ "packageName": {
+ "type": "string"
},
- "dynamicLoadBlocks": {
- "anyOf": [
- {
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
+ "repoHash": {
+ "type": "string"
},
- "embedBlockBreadcrumb": {
+ "repoRef": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "emoji": {
+ "repoURL": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "packageName",
+ "repoHash",
+ "repoURL"
+ ],
+ "additionalProperties": false
+ },
+ "InstallBazaarWidgetRequestInput": {
+ "type": "object",
+ "properties": {
+ "keyword": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "type": "string"
},
{
"type": "null"
}
]
},
- "floatWindowDelay": {
+ "packageName": {
+ "type": "string"
+ },
+ "repoHash": {
+ "type": "string"
+ },
+ "repoRef": {
"anyOf": [
{
- "type": "integer"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "floatWindowMode": {
- "anyOf": [
- {
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
+ "repoURL": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "packageName",
+ "repoHash",
+ "repoURL"
+ ],
+ "additionalProperties": false
+ },
+ "InstallLocalBazaarPackageRequestInput": {
+ "type": "object",
+ "properties": {
+ "file": {
+ "type": "string",
+ "format": "binary"
},
- "fontFamilies": {
+ "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/SettingEditorFontInput"
+ "$ref": "#/$defs/Notebook"
},
{
"type": "null"
@@ -18488,208 +17789,315 @@
"type": "null"
}
]
- },
- "fontFamily": {
+ }
+ },
+ "required": [
+ "boxDocEnabled",
+ "notebooks"
+ ],
+ "additionalProperties": false
+ },
+ "ListNotebooksRequestInput": {
+ "type": "object",
+ "properties": {
+ "flashcard": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
- },
- "fontFamilyDisplay": {
+ }
+ },
+ "additionalProperties": false
+ },
+ "LoadPetalsRequestInput": {
+ "type": "object",
+ "properties": {
+ "frontend": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "frontend"
+ ],
+ "additionalProperties": false
+ },
+ "LoadedPlugin": {
+ "type": "object",
+ "properties": {
+ "methods": {
"anyOf": [
{
- "type": "string"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/PluginRPCMethod"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
},
- "fontSize": {
- "anyOf": [
- {
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
+ "name": {
+ "type": "string"
},
- "fontSizeScrollZoom": {
+ "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"
}
]
},
- "fontWeight": {
+ "dailyNote": {
+ "type": "boolean"
+ },
+ "type": {
"anyOf": [
{
- "type": "integer"
+ "$ref": "#/$defs/GraphTypeFilter"
},
{
"type": "null"
}
]
+ }
+ },
+ "required": [
+ "d3",
+ "dailyNote",
+ "type"
+ ],
+ "additionalProperties": false
+ },
+ "LocalGraphRequestInput": {
+ "type": "object",
+ "properties": {
+ "conf": {
+ "$ref": "#/$defs/GraphConfigurationFieldsInput"
},
- "fullWidth": {
+ "id": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "generateHistoryInterval": {
+ "k": {
"anyOf": [
{
- "type": "integer"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "hashTagSearch": {
+ "notebook": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "headingEmbedMode": {
+ "reqId": {
"anyOf": [
{
- "type": "integer"
+ "$ref": "#/$defs/JSONValue"
},
{
"type": "null"
}
]
},
- "headingNumber": {
+ "type": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
+ }
+ },
+ "additionalProperties": false
+ },
+ "LocalGraphResult": {
+ "type": "object",
+ "properties": {
+ "box": {
+ "type": "string"
},
- "headingNumberFormat": {
+ "conf": {
+ "$ref": "#/$defs/LocalGraphConf"
+ },
+ "id": {
+ "type": "string"
+ },
+ "links": {
"anyOf": [
{
- "type": "string"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/GraphLink"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
},
- "historyRetentionDays": {
+ "nodes": {
"anyOf": [
{
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
- },
- "justify": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
- },
- "katexMacros": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "keepLoadedContent": {
- "anyOf": [
- {
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/GraphNode"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
},
- "listItemDotNumberClickFocus": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
+ "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"
},
- "listLogicalOutdent": {
+ "data": {
"anyOf": [
{
- "type": "boolean"
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "number"
+ },
+ "msg": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "msg"
+ ],
+ "additionalProperties": {
+ "$ref": "#/$defs/JSONValue"
+ }
},
{
"type": "null"
}
]
},
+ "msg": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "data",
+ "msg"
+ ],
+ "additionalProperties": false
+ },
+ "MarkdownHTMLRequestInput": {
+ "type": "object",
+ "properties": {
"markdown": {
- "anyOf": [
- {
- "$ref": "#/$defs/SettingMarkdownInput"
- },
- {
- "type": "null"
- }
- ]
- },
- "onlySearchForDoc": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
- },
- "pasteURLAutoConvert": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
+ "type": "string"
},
- "plantUMLServePath": {
+ "mode": {
"anyOf": [
{
"type": "string"
@@ -18698,61 +18106,30 @@
"type": "null"
}
]
+ }
+ },
+ "required": [
+ "markdown"
+ ],
+ "additionalProperties": false
+ },
+ "MoveBlockRequestInput": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
},
- "readOnly": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
- },
- "rtl": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
- },
- "spellcheck": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
- },
- "spellcheckLanguages": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- {
- "type": "null"
- }
- ]
- },
- "virtualBlockRef": {
+ "parentID": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "virtualBlockRefExclude": {
+ "previousID": {
"anyOf": [
{
"type": "string"
@@ -18761,8 +18138,20 @@
"type": "null"
}
]
+ }
+ },
+ "required": [
+ "id"
+ ],
+ "additionalProperties": false
+ },
+ "NetImageAssetsRequestInput": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
},
- "virtualBlockRefInclude": {
+ "url": {
"anyOf": [
{
"type": "string"
@@ -18773,88 +18162,282 @@
]
}
},
+ "required": [
+ "id"
+ ],
"additionalProperties": false
},
- "SetEntryVisibilityRequestInput": {
+ "NetworkData": {
"type": "object",
"properties": {
- "active": {
+ "proxy": {
"anyOf": [
{
- "type": "string"
+ "$ref": "#/$defs/NetworkProxy"
},
{
"type": "null"
}
]
+ }
+ },
+ "required": [
+ "proxy"
+ ],
+ "additionalProperties": false
+ },
+ "NetworkProxy": {
+ "type": "object",
+ "properties": {
+ "host": {
+ "type": "string"
},
- "profiles": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/SettingEntryVisibilityProfileInput"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- {
- "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"
]
},
- "version": {
+ "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": [
{
- "type": "integer"
+ "$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": {
+ "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
},
- "SetExportRequestInput": {
+ "NotebookConfData": {
"type": "object",
"properties": {
- "addTitle": {
+ "box": {
+ "type": "string"
+ },
+ "conf": {
"anyOf": [
{
- "type": "boolean"
+ "$ref": "#/$defs/NotebookConf"
},
{
"type": "null"
}
]
},
- "blockEmbedMode": {
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "box",
+ "conf",
+ "name"
+ ],
+ "additionalProperties": false
+ },
+ "NotebookConfPatchInput": {
+ "type": "object",
+ "properties": {
+ "boxCrypt": {
"anyOf": [
{
- "type": "integer"
+ "$ref": "#/$defs/NotebookEncryptionPatchInput"
},
{
"type": "null"
}
]
},
- "blockRefMode": {
+ "closed": {
"anyOf": [
{
- "type": "integer"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "blockRefTextLeft": {
+ "dailyNoteSavePath": {
"anyOf": [
{
"type": "string"
@@ -18864,7 +18447,7 @@
}
]
},
- "blockRefTextRight": {
+ "dailyNoteTemplatePath": {
"anyOf": [
{
"type": "string"
@@ -18874,7 +18457,7 @@
}
]
},
- "docxTemplate": {
+ "docCreateSaveBox": {
"anyOf": [
{
"type": "string"
@@ -18884,17 +18467,17 @@
}
]
},
- "fileAnnotationRefMode": {
+ "docCreateSavePath": {
"anyOf": [
{
- "type": "integer"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "imageWatermarkDesc": {
+ "docCreateTemplatePath": {
"anyOf": [
{
"type": "string"
@@ -18904,87 +18487,126 @@
}
]
},
- "imageWatermarkStr": {
+ "encrypted": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "includeRelatedDocs": {
+ "icon": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "includeSubDocs": {
+ "name": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "inlineMemo": {
+ "refCreateSaveBox": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "markdownYFM": {
+ "refCreateSavePath": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "pandocBin": {
+ "sort": {
"anyOf": [
{
- "type": "string"
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "pandocParams": {
+ "sortMode": {
"anyOf": [
{
- "type": "string"
+ "type": "integer"
},
{
"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"
},
- "paragraphBeginningSpace": {
+ "metadata": {
+ "type": "string"
+ },
+ "spec": {
+ "type": "integer"
+ },
+ "wrapNonce": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "pdfFooter": {
+ "wrappedDEK": {
"anyOf": [
{
"type": "string"
@@ -18993,51 +18615,93 @@
"type": "null"
}
]
- },
- "pdfWatermarkDesc": {
+ }
+ },
+ "required": [
+ "createdAt",
+ "spec",
+ "wrapNonce",
+ "wrappedDEK"
+ ],
+ "additionalProperties": false
+ },
+ "NotebookEncryptionPatchInput": {
+ "type": "object",
+ "properties": {
+ "createdAt": {
"anyOf": [
{
- "type": "string"
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "pdfWatermarkStr": {
+ "metadata": {
"anyOf": [
{
- "type": "string"
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "array",
+ "items": {
+ "type": "integer"
+ }
+ }
+ ]
},
{
"type": "null"
}
]
},
- "removeAssetsID": {
+ "spec": {
"anyOf": [
{
- "type": "boolean"
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "tagCloseMarker": {
+ "wrapNonce": {
"anyOf": [
{
- "type": "string"
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "array",
+ "items": {
+ "type": "integer"
+ }
+ }
+ ]
},
{
"type": "null"
}
]
},
- "tagOpenMarker": {
+ "wrappedDEK": {
"anyOf": [
{
- "type": "string"
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "array",
+ "items": {
+ "type": "integer"
+ }
+ }
+ ]
},
{
"type": "null"
@@ -19047,296 +18711,493 @@
},
"additionalProperties": false
},
- "SetFiletreeRequestInput": {
+ "NotebookHistoryData": {
"type": "object",
"properties": {
- "allowCreateDeeper": {
+ "histories": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/History"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
+ }
+ },
+ "required": [
+ "histories"
+ ],
+ "additionalProperties": false
+ },
+ "NotebookIDRequestInput": {
+ "type": "object",
+ "properties": {
+ "notebook": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "notebook"
+ ],
+ "additionalProperties": false
+ },
+ "NotebookInfo": {
+ "type": "object",
+ "properties": {
+ "ctime": {
+ "type": "integer"
},
- "alwaysSelectOpenedFile": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
+ "docCount": {
+ "type": "integer"
},
- "boxDocEnabled": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
+ "hCtime": {
+ "type": "string"
},
- "closeTabOnDoubleClick": {
+ "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": "boolean"
+ "$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"
},
- "closeTabsOnStart": {
+ "timeout": {
"anyOf": [
{
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
- },
- "createDocAtTop": {
- "anyOf": [
- {
- "type": "boolean"
+ "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"
},
- "docCreateSaveBox": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
+ "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"
},
- "docCreateSavePath": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
+ "blockIDCount": {
+ "type": "integer"
},
- "docCreateTemplatePath": {
+ "blockingErrors": {
"anyOf": [
{
- "type": "string"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "docIconClickExpand": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
+ "commentCount": {
+ "type": "integer"
},
- "largeFileWarningSize": {
- "anyOf": [
- {
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
+ "embedCount": {
+ "type": "integer"
},
- "maxListCount": {
- "anyOf": [
- {
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
+ "footnoteCount": {
+ "type": "integer"
},
- "maxOpenTabCount": {
- "anyOf": [
- {
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
+ "importableAssetCount": {
+ "type": "integer"
},
- "noSplitScreenWhenOpenTab": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
+ "importableAssetSize": {
+ "type": "integer"
},
- "openFilesUseCurrentTab": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
+ "markdownCount": {
+ "type": "integer"
},
- "parentDocClickExpand": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
+ "missingCount": {
+ "type": "integer"
},
- "recentDocsMaxListCount": {
- "anyOf": [
- {
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
+ "nameAdjustmentCount": {
+ "type": "integer"
},
- "refCreateSaveBox": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
+ "notebookName": {
+ "type": "string"
},
- "refCreateSavePath": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
+ "skippedHiddenCount": {
+ "type": "integer"
},
- "removeDocWithoutConfirm": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
+ "skippedLinkCount": {
+ "type": "integer"
},
- "shorthandSaveBox": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
+ "skippedNestedVaultCount": {
+ "type": "integer"
},
- "shorthandSavePath": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
+ "skippedSpecialCount": {
+ "type": "integer"
},
- "sort": {
+ "syntheticParentCount": {
+ "type": "integer"
+ },
+ "unreferencedFileCount": {
+ "type": "integer"
+ },
+ "unsupportedCount": {
+ "type": "integer"
+ },
+ "vaultName": {
+ "type": "string"
+ },
+ "vaultPath": {
+ "type": "string"
+ },
+ "warnings": {
"anyOf": [
{
- "type": "integer"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "tabStartupMode": {
- "anyOf": [
- {
- "type": "integer"
- },
- {
- "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"
+ ],
+ "additionalProperties": false
+ },
+ "ObsidianVaultImportResult": {
+ "type": "object",
+ "properties": {
+ "convertedEmbedCount": {
+ "type": "integer"
},
- "useSVGDefaultIcon": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
+ "convertedFootnoteCount": {
+ "type": "integer"
},
- "useSingleLineSave": {
+ "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": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
+ },
+ "notebook": {
+ "type": "string"
}
},
+ "required": [
+ "notebook"
+ ],
"additionalProperties": false
},
- "SetFlashcardRequestInput": {
+ "OpenRepoSnapshotFileRequestInput": {
"type": "object",
"properties": {
- "blockquote": {
+ "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"
}
]
},
- "callout": {
+ "notebook": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "deck": {
+ "preview": {
"anyOf": [
{
"type": "boolean"
@@ -19345,18 +19206,82 @@
"type": "null"
}
]
+ }
+ },
+ "additionalProperties": false
+ },
+ "OutlineStorageRequestInput": {
+ "type": "object",
+ "properties": {
+ "docID": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "docID"
+ ],
+ "additionalProperties": false
+ },
+ "OutlineStorageSetRequestInput": {
+ "type": "object",
+ "properties": {
+ "docID": {
+ "type": "string"
},
- "heading": {
+ "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": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
- },
- "list": {
+ }
+ },
+ "required": [
+ "args"
+ ],
+ "additionalProperties": false
+ },
+ "PerformSyncRequestInput": {
+ "type": "object",
+ "properties": {
+ "mobileSwitch": {
"anyOf": [
{
"type": "boolean"
@@ -19366,57 +19291,82 @@
}
]
},
- "mark": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
+ "upload": {
+ "type": "boolean"
+ }
+ },
+ "additionalProperties": false
+ },
+ "Petal": {
+ "type": "object",
+ "properties": {
+ "css": {
+ "type": "string"
},
- "maximumInterval": {
- "anyOf": [
- {
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
+ "disabledInPublish": {
+ "type": "boolean"
},
- "newCardLimit": {
- "anyOf": [
- {
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
+ "disallowInstall": {
+ "type": "boolean"
},
- "requestRetention": {
- "anyOf": [
- {
- "type": "number"
- },
- {
- "type": "null"
- }
- ]
+ "displayName": {
+ "type": "string"
},
- "reviewCardLimit": {
+ "enabled": {
+ "type": "boolean"
+ },
+ "i18n": {
"anyOf": [
{
- "type": "integer"
+ "type": "object",
+ "additionalProperties": {
+ "$ref": "#/$defs/JSONValue"
+ }
},
{
"type": "null"
}
]
},
- "reviewMode": {
+ "incompatible": {
+ "type": "boolean"
+ },
+ "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": "integer"
@@ -19426,430 +19376,871 @@
}
]
},
- "superBlock": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
+ "icon": {
+ "type": "string"
},
- "weights": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
+ "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
},
- "SetGraphConfRequestInput": {
+ "PluginRPCError": {
"type": "object",
"properties": {
- "conf": {
- "$ref": "#/$defs/GraphConfigurationFieldsInput"
+ "code": {
+ "type": "integer"
},
- "type": {
+ "data": {
+ "$ref": "#/$defs/JSONValue"
+ },
+ "message": {
"type": "string"
}
},
"required": [
- "conf",
- "type"
+ "code",
+ "message"
],
"additionalProperties": false
},
- "SetInlineStylesRequestInput": {
+ "PluginRPCFailure": {
"type": "object",
"properties": {
- "app": {
+ "error": {
"anyOf": [
{
- "type": "string"
+ "$ref": "#/$defs/PluginRPCError"
},
{
"type": "null"
}
]
},
- "av": {
+ "id": {
"anyOf": [
{
- "$ref": "#/$defs/InlineStyleAVInput"
+ "type": "string"
},
{
- "type": "null"
- }
- ]
- },
- "builtin": {
- "anyOf": [
- {
- "$ref": "#/$defs/InlineStyleBuiltinInput"
+ "type": "number"
},
{
"type": "null"
}
]
},
- "order": {
- "anyOf": [
- {
- "$ref": "#/$defs/InlineStyleOrderInput"
- },
- {
- "type": "null"
- }
+ "jsonrpc": {
+ "type": "string",
+ "enum": [
+ "2.0"
]
- },
- "styles": {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/InlineStyleInput"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "version": {
- "type": "number"
}
},
"required": [
- "styles",
- "version"
+ "error",
+ "id",
+ "jsonrpc"
],
"additionalProperties": false
},
- "SetNotebookConfRequestInput": {
+ "PluginRPCMethod": {
"type": "object",
"properties": {
- "conf": {
+ "descriptions": {
"anyOf": [
{
- "$ref": "#/$defs/NotebookConfPatchInput"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "notebook": {
+ "name": {
"type": "string"
}
},
"required": [
- "notebook"
+ "descriptions",
+ "name"
],
"additionalProperties": false
},
- "SetNotebookIconRequestInput": {
+ "PluginRPCNotification": {
"type": "object",
"properties": {
- "icon": {
- "type": "string"
+ "jsonrpc": {
+ "type": "string",
+ "enum": [
+ "2.0"
+ ]
},
- "notebook": {
+ "method": {
"type": "string"
- }
+ },
+ "params": {
+ "$ref": "#/$defs/JSONValue"
+ }
},
"required": [
- "icon",
- "notebook"
+ "jsonrpc",
+ "method"
],
"additionalProperties": false
},
- "SetPetalEnabledRequestInput": {
+ "PluginRPCRequestFieldsInput": {
"type": "object",
"properties": {
- "app": {
+ "id": {
"anyOf": [
{
"type": "string"
},
+ {
+ "type": "number"
+ },
{
"type": "null"
}
]
},
- "enabled": {
- "type": "boolean"
+ "jsonrpc": {
+ "type": "string",
+ "enum": [
+ "2.0"
+ ]
},
- "packageName": {
+ "method": {
"type": "string"
+ },
+ "params": {
+ "anyOf": [
+ {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/JSONValue"
+ }
+ },
+ {
+ "type": "object",
+ "additionalProperties": {
+ "$ref": "#/$defs/JSONValue"
+ }
+ }
+ ]
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
"required": [
- "enabled",
- "packageName"
+ "jsonrpc",
+ "method"
],
"additionalProperties": false
},
- "SetPetalPublishEnabledRequestInput": {
+ "PluginRPCSuccess": {
"type": "object",
"properties": {
- "enabled": {
- "type": "boolean"
+ "id": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "packageName": {
+ "jsonrpc": {
+ "type": "string",
+ "enum": [
+ "2.0"
+ ]
+ },
+ "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": [
- "enabled",
- "packageName"
+ "data",
+ "dataType",
+ "parentID"
],
"additionalProperties": false
},
- "SetPublishRequestInput": {
+ "ProcessPDFRequestInput": {
"type": "object",
"properties": {
- "auth": {
+ "id": {
+ "type": "string"
+ },
+ "merge": {
"anyOf": [
{
- "$ref": "#/$defs/SettingBasicAuthInput"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "enable": {
+ "mergeContentHeadingMode": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "port": {
+ "mergeDocHeadingMode": {
"anyOf": [
{
- "type": "integer"
+ "type": "string"
},
{
"type": "null"
}
]
+ },
+ "path": {
+ "type": "string"
+ },
+ "removeAssets": {
+ "type": "boolean"
+ },
+ "watermark": {
+ "type": "boolean"
}
},
+ "required": [
+ "id",
+ "path",
+ "removeAssets",
+ "watermark"
+ ],
"additionalProperties": false
},
- "SetRepoIndexRetentionDaysRequestInput": {
+ "PublishedBlockInfo": {
"type": "object",
"properties": {
- "days": {
- "type": "number"
+ "publishAccessRequired": {
+ "type": "boolean",
+ "enum": [
+ true
+ ]
+ },
+ "rootID": {
+ "type": "string"
+ },
+ "rootIcon": {
+ "type": "string"
+ },
+ "rootTitle": {
+ "type": "string"
+ },
+ "rootTitleEmpty": {
+ "type": "boolean"
}
},
"required": [
- "days"
+ "publishAccessRequired",
+ "rootID",
+ "rootIcon",
+ "rootTitle",
+ "rootTitleEmpty"
],
"additionalProperties": false
},
- "SetRetentionIndexesDailyRequestInput": {
+ "PutFileRequestInput": {
"type": "object",
"properties": {
- "indexes": {
- "type": "number"
+ "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": [
- "indexes"
+ "path"
],
"additionalProperties": false
},
- "SetRiffCardsDueRequestInput": {
+ "RecentDoc": {
"type": "object",
"properties": {
- "cardDues": {
- "type": "array",
- "items": {
- "$ref": "#/$defs/RiffCardDueInput"
- }
+ "closedAt": {
+ "type": "integer"
+ },
+ "icon": {
+ "type": "string"
+ },
+ "openAt": {
+ "type": "integer"
+ },
+ "rootID": {
+ "type": "string"
+ },
+ "title": {
+ "type": "string"
+ },
+ "viewedAt": {
+ "type": "integer"
}
},
"required": [
- "cardDues"
+ "rootID"
],
"additionalProperties": false
},
- "SetSearchRequestInput": {
+ "RecentDocUpdateRequestInput": {
"type": "object",
"properties": {
- "alias": {
+ "rootID": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
- },
- "audioBlock": {
+ }
+ },
+ "additionalProperties": false
+ },
+ "RecentDocsRequestInput": {
+ "type": "object",
+ "properties": {
+ "sortBy": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
- },
- "backlinkMentionAlias": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
- },
- "backlinkMentionAnchor": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
- },
- "backlinkMentionDoc": {
+ }
+ },
+ "additionalProperties": false
+ },
+ "RecentDocsUpdateRequestInput": {
+ "type": "object",
+ "properties": {
+ "rootIDs": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
- },
- "backlinkMentionKeywordsLimit": {
+ }
+ },
+ "additionalProperties": false
+ },
+ "RefDefs": {
+ "type": "object",
+ "properties": {
+ "defIDs": {
"anyOf": [
{
- "type": "integer"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "backlinkMentionName": {
+ "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"
}
]
},
- "blockquote": {
+ "refDefs": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/RefDefs"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
- },
- "callout": {
+ }
+ },
+ "required": [
+ "originalRefBlockIDs",
+ "refDefs"
+ ],
+ "additionalProperties": false
+ },
+ "RefIDsRequestInput": {
+ "type": "object",
+ "properties": {
+ "id": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "caseSensitive": {
+ "ids": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "codeBlock": {
+ "notebook": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
+ }
+ },
+ "additionalProperties": false
+ },
+ "RefTextQueryRequestInput": {
+ "type": "object",
+ "properties": {
+ "anchor": {
+ "type": "string"
},
- "databaseBlock": {
+ "notebook": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
- },
- "document": {
+ }
+ },
+ "required": [
+ "anchor"
+ ],
+ "additionalProperties": false
+ },
+ "RefreshBacklinkRequestInput": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id"
+ ],
+ "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": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "embedBlock": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
+ "path": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "path"
+ ],
+ "additionalProperties": false
+ },
+ "RemoveRepoTagSnapshotRequestInput": {
+ "type": "object",
+ "properties": {
+ "tag": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "tag"
+ ],
+ "additionalProperties": false
+ },
+ "RemoveShorthandsRequestInput": {
+ "type": "object",
+ "properties": {
+ "ids": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ },
+ "required": [
+ "ids"
+ ],
+ "additionalProperties": false
+ },
+ "RemoveTagRequestInput": {
+ "type": "object",
+ "properties": {
+ "label": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "label"
+ ],
+ "additionalProperties": false
+ },
+ "RenameAssetRequestInput": {
+ "type": "object",
+ "properties": {
+ "newName": {
+ "type": "string"
},
- "hanSensitive": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
+ "oldPath": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "newName",
+ "oldPath"
+ ],
+ "additionalProperties": false
+ },
+ "RenameBookmarkRequestInput": {
+ "type": "object",
+ "properties": {
+ "newBookmark": {
+ "type": "string"
},
- "heading": {
+ "oldBookmark": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "newBookmark",
+ "oldBookmark"
+ ],
+ "additionalProperties": false
+ },
+ "RenameFileRequestInput": {
+ "type": "object",
+ "properties": {
+ "newPath": {
+ "type": "string"
+ },
+ "path": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "newPath",
+ "path"
+ ],
+ "additionalProperties": false
+ },
+ "RenameNotebookRequestInput": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string"
+ },
+ "notebook": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "name",
+ "notebook"
+ ],
+ "additionalProperties": false
+ },
+ "RenameRiffDeckRequestInput": {
+ "type": "object",
+ "properties": {
+ "deckID": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "deckID",
+ "name"
+ ],
+ "additionalProperties": false
+ },
+ "RenameTagRequestInput": {
+ "type": "object",
+ "properties": {
+ "newLabel": {
+ "type": "string"
+ },
+ "oldLabel": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "newLabel",
+ "oldLabel"
+ ],
+ "additionalProperties": false
+ },
+ "RenderSprigRequestInput": {
+ "type": "object",
+ "properties": {
+ "template": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "template"
+ ],
+ "additionalProperties": false
+ },
+ "RenderTemplateData": {
+ "type": "object",
+ "properties": {
+ "content": {
+ "type": "string"
+ },
+ "docTreePlan": {
+ "$ref": "#/$defs/TemplatePlan"
+ },
+ "path": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "content",
+ "path"
+ ],
+ "additionalProperties": false
+ },
+ "RenderTemplateRequestInput": {
+ "type": "object",
+ "properties": {
+ "content": {
+ "type": "string"
+ },
+ "id": {
+ "type": "string"
+ },
+ "mode": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "htmlBlock": {
+ "path": {
+ "type": "string"
+ },
+ "preview": {
"anyOf": [
{
"type": "boolean"
@@ -19858,221 +20249,341 @@
"type": "null"
}
]
+ }
+ },
+ "required": [
+ "id",
+ "path"
+ ],
+ "additionalProperties": false
+ },
+ "ReorderData": {
+ "type": "object",
+ "properties": {
+ "changed": {
+ "type": "boolean"
},
- "ial": {
+ "notebook": {
+ "type": "string"
+ },
+ "parentPath": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "changed"
+ ],
+ "additionalProperties": false
+ },
+ "ReorderNotebooksRequestInput": {
+ "type": "object",
+ "properties": {
+ "position": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "iframeBlock": {
+ "sourceIDs": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "indexAssetPath": {
+ "targetID": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
+ }
+ },
+ "additionalProperties": false
+ },
+ "RepoCloudSnapshotsData": {
+ "type": "object",
+ "properties": {
+ "pageCount": {
+ "type": "integer"
},
- "limit": {
+ "snapshots": {
"anyOf": [
{
- "type": "integer"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/RepoLog"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
},
- "list": {
+ "totalCount": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "pageCount",
+ "snapshots",
+ "totalCount"
+ ],
+ "additionalProperties": false
+ },
+ "RepoCloudTagsData": {
+ "type": "object",
+ "properties": {
+ "snapshots": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/RepoLog"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
- },
- "listItem": {
+ }
+ },
+ "required": [
+ "snapshots"
+ ],
+ "additionalProperties": false
+ },
+ "RepoDiffData": {
+ "type": "object",
+ "properties": {
+ "addsLeft": {
"anyOf": [
{
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
- },
- "mathBlock": {
- "anyOf": [
- {
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/RepoDiffFile"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
},
- "memo": {
+ "left": {
"anyOf": [
{
- "type": "boolean"
+ "$ref": "#/$defs/RepoDiffIndex"
},
{
"type": "null"
}
]
},
- "name": {
+ "removesRight": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/RepoDiffFile"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
},
- "paragraph": {
+ "right": {
"anyOf": [
{
- "type": "boolean"
+ "$ref": "#/$defs/RepoDiffIndex"
},
{
"type": "null"
}
]
},
- "superBlock": {
+ "updatesLeft": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/RepoDiffFile"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
},
- "tabItem": {
+ "updatesRight": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/RepoDiffFile"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
+ }
+ },
+ "required": [
+ "addsLeft",
+ "left",
+ "removesRight",
+ "right",
+ "updatesLeft",
+ "updatesRight"
+ ],
+ "additionalProperties": false
+ },
+ "RepoDiffFile": {
+ "type": "object",
+ "properties": {
+ "fileID": {
+ "type": "string"
},
- "table": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
+ "hPath": {
+ "type": "string"
},
- "tabs": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
+ "hSize": {
+ "type": "string"
},
- "videoBlock": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
+ "indexID": {
+ "type": "string"
},
- "virtualRefAlias": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
+ "path": {
+ "type": "string"
},
- "virtualRefAnchor": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
+ "title": {
+ "type": "string"
},
- "virtualRefDoc": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
+ "updated": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "fileID",
+ "hSize",
+ "indexID",
+ "path",
+ "title",
+ "updated"
+ ],
+ "additionalProperties": false
+ },
+ "RepoDiffIndex": {
+ "type": "object",
+ "properties": {
+ "created": {
+ "type": "integer"
},
- "virtualRefName": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
+ "id": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "created",
+ "id"
+ ],
+ "additionalProperties": false
+ },
+ "RepoDocHistory": {
+ "type": "object",
+ "properties": {
+ "fileID": {
+ "type": "string"
},
- "widgetBlock": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
+ "hSize": {
+ "type": "string"
+ },
+ "indexID": {
+ "type": "string"
+ },
+ "title": {
+ "type": "string"
+ },
+ "updated": {
+ "type": "integer"
}
},
+ "required": [
+ "fileID",
+ "hSize",
+ "indexID",
+ "title",
+ "updated"
+ ],
"additionalProperties": false
},
- "SetSecretsRequestInput": {
+ "RepoDocHistoryData": {
"type": "object",
"properties": {
- "items": {
+ "files": {
"anyOf": [
{
"type": "array",
"items": {
"anyOf": [
{
- "$ref": "#/$defs/SettingSecretInput"
+ "$ref": "#/$defs/RepoDocHistory"
},
{
"type": "null"
@@ -20084,88 +20595,195 @@
"type": "null"
}
]
+ },
+ "pageCount": {
+ "type": "integer"
+ },
+ "totalCount": {
+ "type": "integer"
}
},
+ "required": [
+ "files",
+ "pageCount",
+ "totalCount"
+ ],
"additionalProperties": false
},
- "SetSnapshotMemoRequestInput": {
+ "RepoExportData": {
"type": "object",
"properties": {
- "id": {
- "type": "string"
- },
- "memo": {
+ "path": {
"type": "string"
}
},
"required": [
- "id",
- "memo"
+ "path"
],
"additionalProperties": false
},
- "SetSnippetRequestInput": {
+ "RepoFile": {
"type": "object",
"properties": {
- "snippets": {
- "type": "array",
- "items": {
- "$ref": "#/$defs/SnippetInput"
- }
- }
+ "chunks": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "id": {
+ "type": "string"
+ },
+ "path": {
+ "type": "string"
+ },
+ "size": {
+ "type": "integer"
+ },
+ "updated": {
+ "type": "integer"
+ }
},
"required": [
- "snippets"
+ "chunks",
+ "id",
+ "path",
+ "size",
+ "updated"
],
"additionalProperties": false
},
- "SetSyncLocalRequestInput": {
+ "RepoKeyData": {
"type": "object",
"properties": {
- "local": {
- "$ref": "#/$defs/SyncLocalInput"
+ "key": {
+ "type": "string"
}
},
"required": [
- "local"
+ "key"
],
"additionalProperties": false
},
- "SetSyncS3RequestInput": {
+ "RepoLog": {
"type": "object",
"properties": {
- "s3": {
- "$ref": "#/$defs/SyncS3Input"
+ "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": [
- "s3"
+ "count",
+ "created",
+ "files",
+ "hCreated",
+ "hSize",
+ "hTagUpdated",
+ "id",
+ "memo",
+ "size",
+ "systemID",
+ "systemName",
+ "systemOS",
+ "tag"
],
"additionalProperties": false
},
- "SetSyncWebDAVRequestInput": {
+ "RepoOpenFileData": {
"type": "object",
"properties": {
- "webdav": {
- "$ref": "#/$defs/SyncWebDAVInput"
+ "content": {
+ "type": "string"
+ },
+ "displayInText": {
+ "type": "boolean"
+ },
+ "title": {
+ "type": "string"
+ },
+ "updated": {
+ "type": "integer"
}
},
"required": [
- "webdav"
+ "content",
+ "displayInText",
+ "title",
+ "updated"
],
"additionalProperties": false
},
- "SetVariablesRequestInput": {
+ "RepoSearchData": {
"type": "object",
"properties": {
- "items": {
+ "files": {
"anyOf": [
{
"type": "array",
"items": {
"anyOf": [
{
- "$ref": "#/$defs/SettingVariableInput"
+ "$ref": "#/$defs/RepoDiffFile"
},
{
"type": "null"
@@ -20177,71 +20795,91 @@
"type": "null"
}
]
+ },
+ "pageCount": {
+ "type": "integer"
+ },
+ "totalCount": {
+ "type": "integer"
}
},
+ "required": [
+ "files",
+ "pageCount",
+ "totalCount"
+ ],
"additionalProperties": false
},
- "SettingAI": {
+ "RepoSnapshot": {
"type": "object",
"properties": {
- "agent": {
- "anyOf": [
- {
- "$ref": "#/$defs/SettingAgent"
- },
- {
- "type": "null"
- }
- ]
+ "count": {
+ "type": "integer"
},
- "editing": {
- "anyOf": [
- {
- "$ref": "#/$defs/SettingEditing"
- },
- {
- "type": "null"
- }
- ]
+ "created": {
+ "type": "integer"
},
- "embedding": {
+ "files": {
"anyOf": [
{
- "$ref": "#/$defs/SettingEmbedding"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/RepoFile"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
},
- "imageGeneration": {
- "anyOf": [
- {
- "$ref": "#/$defs/SettingImageGeneration"
- },
- {
- "type": "null"
- }
- ]
+ "hCreated": {
+ "type": "string"
},
- "mcp": {
- "anyOf": [
- {
- "$ref": "#/$defs/SettingMCP"
- },
- {
- "type": "null"
- }
- ]
+ "hSize": {
+ "type": "string"
},
- "providers": {
+ "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": "array",
"items": {
"anyOf": [
{
- "$ref": "#/$defs/SettingProvider"
+ "$ref": "#/$defs/RepoTypeCount"
},
{
"type": "null"
@@ -20253,209 +20891,244 @@
"type": "null"
}
]
- },
- "rerank": {
- "anyOf": [
- {
- "$ref": "#/$defs/SettingRerank"
- },
- {
- "type": "null"
- }
- ]
}
},
"required": [
- "agent",
- "editing",
- "embedding",
- "imageGeneration",
- "mcp",
- "providers",
- "rerank"
+ "count",
+ "created",
+ "files",
+ "hCreated",
+ "hSize",
+ "hTagUpdated",
+ "id",
+ "memo",
+ "requiresDownload",
+ "size",
+ "systemID",
+ "systemName",
+ "systemOS",
+ "tag",
+ "typesCount"
],
"additionalProperties": false
},
- "SettingAgent": {
+ "RepoSnapshotsData": {
"type": "object",
"properties": {
- "approvalPolicy": {
+ "pageCount": {
+ "type": "integer"
+ },
+ "snapshots": {
"anyOf": [
{
- "$ref": "#/$defs/SettingApprovalPolicy"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/RepoSnapshot"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
},
- "capabilityPolicy": {
+ "totalCount": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "pageCount",
+ "snapshots",
+ "totalCount"
+ ],
+ "additionalProperties": false
+ },
+ "RepoTagsData": {
+ "type": "object",
+ "properties": {
+ "snapshots": {
"anyOf": [
{
- "$ref": "#/$defs/SettingCapabilityPolicy"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/RepoSnapshot"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
- },
- "confirmTimeout": {
- "type": "integer"
- },
- "maxCompletionTokens": {
- "type": "integer"
- },
- "maxRetries": {
- "type": "integer"
- },
- "maxToolCallRounds": {
+ }
+ },
+ "required": [
+ "snapshots"
+ ],
+ "additionalProperties": false
+ },
+ "RepoTypeCount": {
+ "type": "object",
+ "properties": {
+ "count": {
"type": "integer"
},
- "modelId": {
+ "type": {
"type": "string"
- },
- "sessionTimeout": {
- "type": "integer"
- },
- "skills": {
+ }
+ },
+ "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": [
{
- "$ref": "#/$defs/SettingAgentSkills"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "streamIdleTimeout": {
- "type": "integer"
+ "deckID": {
+ "type": "string"
},
- "temperature": {
- "type": "number"
+ "id": {
+ "type": "string"
+ },
+ "type": {
+ "type": "string"
}
},
"required": [
- "approvalPolicy",
- "capabilityPolicy",
- "confirmTimeout",
- "maxCompletionTokens",
- "maxRetries",
- "maxToolCallRounds",
- "modelId",
- "sessionTimeout",
- "skills",
- "streamIdleTimeout",
- "temperature"
+ "deckID",
+ "id",
+ "type"
],
"additionalProperties": false
},
- "SettingAgentInput": {
+ "ReviewRiffCardRequestInput": {
"type": "object",
"properties": {
- "approvalPolicy": {
- "anyOf": [
- {
- "$ref": "#/$defs/SettingApprovalPolicyInput"
- },
- {
- "type": "null"
- }
- ]
+ "cardID": {
+ "type": "string"
},
- "capabilityPolicy": {
- "anyOf": [
- {
- "$ref": "#/$defs/SettingCapabilityPolicyInput"
- },
- {
- "type": "null"
- }
- ]
+ "deckID": {
+ "type": "string"
},
- "confirmTimeout": {
- "anyOf": [
- {
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
+ "rating": {
+ "type": "number"
},
- "maxCompletionTokens": {
+ "reviewedCards": {
"anyOf": [
{
- "type": "integer"
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/RiffReviewedCardInput"
+ }
},
{
"type": "null"
}
]
+ }
+ },
+ "required": [
+ "cardID",
+ "deckID",
+ "rating"
+ ],
+ "additionalProperties": false
+ },
+ "RichClipboardAssetInput": {
+ "type": "object",
+ "properties": {
+ "box": {
+ "type": "string"
},
- "maxRetries": {
- "anyOf": [
- {
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
+ "index": {
+ "type": "integer"
},
- "maxToolCallRounds": {
+ "path": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "index",
+ "path"
+ ],
+ "additionalProperties": false
+ },
+ "RichClipboardPrepared": {
+ "type": "object",
+ "properties": {
+ "assets": {
"anyOf": [
{
- "type": "integer"
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/RichClipboardPreparedAsset"
+ }
},
{
"type": "null"
}
]
},
- "modelId": {
+ "batch": {
+ "type": "string"
+ },
+ "groups": {
"anyOf": [
{
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "sessionTimeout": {
- "anyOf": [
- {
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
- },
- "skills": {
- "anyOf": [
- {
- "$ref": "#/$defs/SettingAgentSkillsInput"
- },
- {
- "type": "null"
- }
- ]
- },
- "streamIdleTimeout": {
- "anyOf": [
- {
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
- },
- "temperature": {
- "anyOf": [
- {
- "type": "number"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
@@ -20463,79 +21136,55 @@
]
}
},
+ "required": [
+ "assets",
+ "batch",
+ "groups"
+ ],
"additionalProperties": false
},
- "SettingAgentSkills": {
+ "RichClipboardPreparedAsset": {
"type": "object",
"properties": {
- "userEnabled": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- {
- "type": "null"
- }
- ]
+ "index": {
+ "type": "integer"
+ },
+ "path": {
+ "type": "string"
}
},
"required": [
- "userEnabled"
+ "index",
+ "path"
],
"additionalProperties": false
},
- "SettingAgentSkillsInput": {
+ "RiffBlockIDsRequestInput": {
"type": "object",
"properties": {
- "userEnabled": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- {
- "type": "null"
- }
- ]
+ "blockIDs": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
}
},
+ "required": [
+ "blockIDs"
+ ],
"additionalProperties": false
},
- "SettingAppearance": {
+ "RiffBlocksData": {
"type": "object",
"properties": {
- "bodyGradient": {
- "anyOf": [
- {
- "$ref": "#/$defs/SettingBodyGradient"
- },
- {
- "type": "null"
- }
- ]
- },
- "closeButtonBehavior": {
- "type": "integer"
- },
- "codeBlockThemeDark": {
- "type": "string"
- },
- "codeBlockThemeLight": {
- "type": "string"
- },
- "darkThemes": {
+ "blocks": {
"anyOf": [
{
"type": "array",
"items": {
"anyOf": [
{
- "$ref": "#/$defs/SettingAppearanceTheme"
+ "$ref": "#/$defs/SearchBlock"
},
{
"type": "null"
@@ -20547,25 +21196,56 @@
"type": "null"
}
]
+ }
+ },
+ "required": [
+ "blocks"
+ ],
+ "additionalProperties": false
+ },
+ "RiffCardDueInput": {
+ "type": "object",
+ "properties": {
+ "due": {
+ "type": "string"
},
- "entryVisibility": {
- "anyOf": [
- {
- "$ref": "#/$defs/SettingEntryVisibility"
- },
- {
- "type": "null"
- }
- ]
+ "id": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "due",
+ "id"
+ ],
+ "additionalProperties": false
+ },
+ "RiffCardRequestInput": {
+ "type": "object",
+ "properties": {
+ "cardID": {
+ "type": "string"
},
- "globalFontFamilies": {
+ "deckID": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "cardID",
+ "deckID"
+ ],
+ "additionalProperties": false
+ },
+ "RiffCardsData": {
+ "type": "object",
+ "properties": {
+ "blocks": {
"anyOf": [
{
"type": "array",
"items": {
"anyOf": [
{
- "$ref": "#/$defs/SettingEditorFont"
+ "$ref": "#/$defs/SearchBlock"
},
{
"type": "null"
@@ -20578,198 +21258,128 @@
}
]
},
- "hideStatusBar": {
- "type": "boolean"
- },
- "hideToolbar": {
- "type": "boolean"
+ "pageCount": {
+ "type": "integer"
},
- "icon": {
+ "total": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "blocks",
+ "pageCount",
+ "total"
+ ],
+ "additionalProperties": false
+ },
+ "RiffCardsRequestInput": {
+ "type": "object",
+ "properties": {
+ "id": {
"type": "string"
},
- "iconVer": {
- "type": "string"
+ "page": {
+ "type": "number"
},
- "icons": {
+ "pageSize": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/SettingAppearanceIcon"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "number"
},
{
"type": "null"
}
]
+ }
+ },
+ "required": [
+ "id",
+ "page"
+ ],
+ "additionalProperties": false
+ },
+ "RiffDeck": {
+ "type": "object",
+ "properties": {
+ "created": {
+ "type": "string"
},
- "lang": {
+ "id": {
"type": "string"
},
- "lightThemes": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/SettingAppearanceTheme"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- {
- "type": "null"
- }
- ]
+ "name": {
+ "type": "string"
},
- "mode": {
+ "size": {
"type": "integer"
},
- "modeOS": {
- "type": "boolean"
- },
- "notifications": {
- "anyOf": [
- {
- "$ref": "#/$defs/SettingNotifications"
- },
- {
- "type": "null"
- }
- ]
- },
- "statusBar": {
- "anyOf": [
- {
- "$ref": "#/$defs/SettingStatusBar"
- },
- {
- "type": "null"
- }
- ]
- },
- "themeDark": {
- "type": "string"
- },
- "themeJS": {
- "type": "boolean"
- },
- "themeLight": {
- "type": "string"
- },
- "themeVer": {
+ "updated": {
"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"
+ "created",
+ "id",
+ "name",
+ "size",
+ "updated"
],
"additionalProperties": false
},
- "SettingAppearanceIcon": {
+ "RiffDeckCardsRequestInput": {
"type": "object",
"properties": {
- "label": {
- "type": "string"
+ "blockIDs": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
- "name": {
+ "deckID": {
"type": "string"
}
},
"required": [
- "label",
- "name"
+ "blockIDs",
+ "deckID"
],
"additionalProperties": false
},
- "SettingAppearanceIconInput": {
+ "RiffDeckRequestInput": {
"type": "object",
"properties": {
- "label": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "name": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
+ "deckID": {
+ "type": "string"
}
},
+ "required": [
+ "deckID"
+ ],
"additionalProperties": false
},
- "SettingAppearanceTheme": {
+ "RiffDueCard": {
"type": "object",
"properties": {
- "frontends": {
- "type": "array",
- "items": {
- "type": "string"
- }
+ "blockID": {
+ "type": "string"
},
- "label": {
+ "cardID": {
"type": "string"
},
- "name": {
+ "deckID": {
"type": "string"
- }
- },
- "required": [
- "label",
- "name"
- ],
- "additionalProperties": false
- },
- "SettingAppearanceThemeInput": {
- "type": "object",
- "properties": {
- "frontends": {
+ },
+ "lapses": {
+ "type": "integer"
+ },
+ "lastReview": {
+ "type": "integer"
+ },
+ "nextDues": {
"anyOf": [
{
- "type": "array",
- "items": {
+ "type": "object",
+ "additionalProperties": {
"type": "string"
}
},
@@ -20778,43 +21388,36 @@
}
]
},
- "label": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
+ "reps": {
+ "type": "integer"
},
- "name": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
+ "state": {
+ "type": "integer"
}
},
+ "required": [
+ "blockID",
+ "cardID",
+ "deckID",
+ "lapses",
+ "lastReview",
+ "nextDues",
+ "reps",
+ "state"
+ ],
"additionalProperties": false
},
- "SettingApprovalPolicy": {
+ "RiffDueCardsData": {
"type": "object",
"properties": {
- "default": {
- "type": "string"
- },
- "overrides": {
+ "cards": {
"anyOf": [
{
- "type": "object",
- "additionalProperties": {
+ "type": "array",
+ "items": {
"anyOf": [
{
- "$ref": "#/$defs/SettingCapabilityApproval"
+ "$ref": "#/$defs/RiffDueCard"
},
{
"type": "null"
@@ -20826,40 +21429,62 @@
"type": "null"
}
]
+ },
+ "unreviewedCount": {
+ "type": "integer"
+ },
+ "unreviewedNewCardCount": {
+ "type": "integer"
+ },
+ "unreviewedOldCardCount": {
+ "type": "integer"
}
},
"required": [
- "default",
- "overrides"
+ "cards",
+ "unreviewedCount",
+ "unreviewedNewCardCount",
+ "unreviewedOldCardCount"
],
"additionalProperties": false
},
- "SettingApprovalPolicyInput": {
+ "RiffDueCardsRequestInput": {
"type": "object",
"properties": {
- "default": {
+ "deckID": {
+ "type": "string"
+ },
+ "reviewedCards": {
"anyOf": [
{
- "type": "string"
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/RiffReviewedCardInput"
+ }
},
{
"type": "null"
}
]
+ }
+ },
+ "required": [
+ "deckID"
+ ],
+ "additionalProperties": false
+ },
+ "RiffNotebookDueCardsRequestInput": {
+ "type": "object",
+ "properties": {
+ "notebook": {
+ "type": "string"
},
- "overrides": {
+ "reviewedCards": {
"anyOf": [
{
- "type": "object",
- "additionalProperties": {
- "anyOf": [
- {
- "$ref": "#/$defs/SettingCapabilityApprovalInput"
- },
- {
- "type": "null"
- }
- ]
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/RiffReviewedCardInput"
}
},
{
@@ -20868,178 +21493,139 @@
]
}
},
+ "required": [
+ "notebook"
+ ],
"additionalProperties": false
},
- "SettingAssetOpen": {
+ "RiffReviewedCardInput": {
"type": "object",
"properties": {
- "altClick": {
- "type": "string"
- },
- "click": {
- "type": "string"
- },
- "ctrlClick": {
- "type": "string"
- },
- "shiftClick": {
+ "cardID": {
"type": "string"
}
},
"required": [
- "altClick",
- "click",
- "ctrlClick",
- "shiftClick"
+ "cardID"
],
"additionalProperties": false
},
- "SettingAssetOpenInput": {
+ "RiffTreeDueCardsRequestInput": {
"type": "object",
"properties": {
- "altClick": {
+ "reviewedCards": {
"anyOf": [
{
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "click": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "ctrlClick": {
- "anyOf": [
- {
- "type": "string"
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/RiffReviewedCardInput"
+ }
},
{
"type": "null"
}
]
},
- "shiftClick": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
+ "rootID": {
+ "type": "string"
}
},
+ "required": [
+ "rootID"
+ ],
"additionalProperties": false
},
- "SettingBasicAuth": {
+ "RollbackRepoSnapshotFileRequestInput": {
"type": "object",
"properties": {
- "accounts": {
+ "id": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id"
+ ],
+ "additionalProperties": false
+ },
+ "SQLQueryRequestInput": {
+ "type": "object",
+ "properties": {
+ "mode": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/SettingBasicAuthAccount"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "string"
},
{
"type": "null"
}
]
},
- "enable": {
- "type": "boolean"
+ "stmt": {
+ "type": "string"
}
},
"required": [
- "accounts",
- "enable"
+ "stmt"
],
"additionalProperties": false
},
- "SettingBasicAuthAccount": {
+ "SaveTemplateRequestInput": {
"type": "object",
"properties": {
- "memo": {
+ "databaseMode": {
"type": "string"
},
- "password": {
+ "directory": {
"type": "string"
},
- "username": {
+ "id": {
+ "type": "string"
+ },
+ "name": {
"type": "string"
+ },
+ "overwrite": {
+ "type": "boolean"
}
},
"required": [
- "memo",
- "password",
- "username"
+ "id",
+ "name",
+ "overwrite"
],
"additionalProperties": false
},
- "SettingBasicAuthAccountInput": {
+ "SearchAsset": {
"type": "object",
"properties": {
- "memo": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
+ "hName": {
+ "type": "string"
},
- "password": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
+ "path": {
+ "type": "string"
},
- "username": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
+ "updated": {
+ "type": "integer"
}
},
+ "required": [
+ "hName",
+ "path",
+ "updated"
+ ],
"additionalProperties": false
},
- "SettingBasicAuthInput": {
+ "SearchAssetContentData": {
"type": "object",
"properties": {
- "accounts": {
+ "assetContents": {
"anyOf": [
{
"type": "array",
"items": {
"anyOf": [
{
- "$ref": "#/$defs/SettingBasicAuthAccountInput"
+ "$ref": "#/$defs/AssetContent"
},
{
"type": "null"
@@ -21052,85 +21638,34 @@
}
]
},
- "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"
+ "matchedAssetCount": {
+ "type": "integer"
},
- "opacity": {
- "type": "number"
+ "pageCount": {
+ "type": "integer"
}
},
"required": [
- "color",
- "opacity"
+ "assetContents",
+ "matchedAssetCount",
+ "pageCount"
],
"additionalProperties": false
},
- "SettingBodyGradientColorInput": {
+ "SearchAssetContentRequestInput": {
"type": "object",
"properties": {
- "color": {
+ "method": {
"anyOf": [
{
- "type": "string"
+ "type": "number"
},
{
"type": "null"
}
]
},
- "opacity": {
+ "orderBy": {
"anyOf": [
{
"type": "number"
@@ -21139,34 +21674,28 @@
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "SettingBodyGradientInput": {
- "type": "object",
- "properties": {
- "dark": {
+ },
+ "page": {
"anyOf": [
{
- "$ref": "#/$defs/SettingBodyGradientColorInput"
+ "type": "number"
},
{
"type": "null"
}
]
},
- "light": {
+ "pageSize": {
"anyOf": [
{
- "$ref": "#/$defs/SettingBodyGradientColorInput"
+ "type": "number"
},
{
"type": "null"
}
]
},
- "mode": {
+ "query": {
"anyOf": [
{
"type": "string"
@@ -21175,186 +21704,152 @@
"type": "null"
}
]
+ },
+ "types": {
+ "anyOf": [
+ {
+ "type": "object",
+ "additionalProperties": {
+ "type": "boolean"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
"additionalProperties": false
},
- "SettingBootAppearance": {
+ "SearchAssetRequestInput": {
"type": "object",
"properties": {
- "appearance": {
- "type": "string"
+ "exts": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "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": {
+ "k": {
"type": "string"
}
},
"required": [
- "enabled"
+ "k"
],
"additionalProperties": false
},
- "SettingBootAppearanceCurrent": {
+ "SearchBlock": {
"type": "object",
"properties": {
- "appearance": {
+ "alias": {
"type": "string"
},
- "provider": {
- "type": "string"
- }
- },
- "required": [
- "appearance",
- "provider"
- ],
- "additionalProperties": false
- },
- "SettingBootAppearanceLayer": {
- "type": "object",
- "properties": {
- "fit": {
+ "box": {
"type": "string"
},
- "id": {
- "type": "string"
+ "children": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SearchBlock"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "position": {
+ "content": {
"type": "string"
},
- "poster": {
- "type": "string"
+ "count": {
+ "type": "integer"
},
- "src": {
+ "created": {
"type": "string"
},
- "type": {
+ "defID": {
"type": "string"
- }
- },
- "required": [
- "id",
- "src",
- "type"
- ],
- "additionalProperties": false
- },
- "SettingBootAppearanceOfficialUI": {
- "type": "object",
- "properties": {
- "progressColor": {
+ },
+ "defPath": {
"type": "string"
},
- "showDetails": {
- "type": "boolean"
+ "depth": {
+ "type": "integer"
},
- "showLogo": {
+ "fcontent": {
+ "type": "string"
+ },
+ "folded": {
"type": "boolean"
},
- "textColor": {
+ "hPath": {
"type": "string"
},
- "trackColor": {
- "type": "string"
- }
- },
- "required": [
- "showDetails",
- "showLogo"
- ],
- "additionalProperties": false
- },
- "SettingBootAppearanceRequestInput": {
- "type": "object",
- "properties": {
- "appearance": {
+ "ial": {
"anyOf": [
{
- "type": "string"
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "provider": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "additionalProperties": false
- },
- "SettingBootAppearanceSelection": {
- "type": "object",
- "properties": {
- "appearance": {
+ "id": {
"type": "string"
},
- "provider": {
+ "markdown": {
"type": "string"
},
- "schemaVersion": {
+ "memo": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "number": {
+ "type": "string"
+ },
+ "parentID": {
+ "type": "string"
+ },
+ "path": {
+ "type": "string"
+ },
+ "refCount": {
"type": "integer"
- }
- },
- "required": [
- "appearance",
- "provider",
- "schemaVersion"
- ],
- "additionalProperties": false
- },
- "SettingBootAppearancesData": {
- "type": "object",
- "properties": {
- "appearances": {
+ },
+ "refText": {
+ "type": "string"
+ },
+ "refs": {
"anyOf": [
{
"type": "array",
"items": {
"anyOf": [
{
- "$ref": "#/$defs/SettingBootAppearance"
+ "$ref": "#/$defs/SearchBlock"
},
{
"type": "null"
@@ -21367,200 +21862,144 @@
}
]
},
- "current": {
- "$ref": "#/$defs/SettingBootAppearanceCurrent"
- }
- },
- "required": [
- "appearances",
- "current"
- ],
- "additionalProperties": false
- },
- "SettingCapabilityApproval": {
- "type": "object",
- "properties": {
- "actions": {
+ "riffCard": {
"anyOf": [
{
- "type": "object",
- "additionalProperties": {
- "type": "string"
- }
+ "$ref": "#/$defs/SearchBlockCard"
},
{
"type": "null"
}
]
},
- "default": {
+ "riffCardID": {
"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": {
+ "rootID": {
"type": "string"
},
- "overrides": {
- "anyOf": [
- {
- "type": "object",
- "additionalProperties": {
- "type": "string"
- }
- },
- {
- "type": "null"
- }
- ]
+ "sort": {
+ "type": "integer"
+ },
+ "subType": {
+ "type": "string"
+ },
+ "tag": {
+ "type": "string"
+ },
+ "type": {
+ "type": "string"
+ },
+ "updated": {
+ "type": "string"
}
},
"required": [
- "default",
- "overrides"
+ "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
},
- "SettingCapabilityPolicyInput": {
+ "SearchBlockCard": {
"type": "object",
"properties": {
- "default": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
+ "due": {
+ "type": "string"
},
- "overrides": {
- "anyOf": [
- {
- "type": "object",
- "additionalProperties": {
- "type": "string"
- }
- },
- {
- "type": "null"
- }
- ]
+ "lapses": {
+ "type": "integer"
+ },
+ "lastReview": {
+ "type": "string"
+ },
+ "reps": {
+ "type": "integer"
+ },
+ "state": {
+ "type": "integer"
}
},
+ "required": [
+ "due",
+ "lapses",
+ "lastReview",
+ "reps",
+ "state"
+ ],
"additionalProperties": false
},
- "SettingCloudUserRequestInput": {
+ "SearchBlockRequestInput": {
"type": "object",
"properties": {
- "token": {
+ "groupBy": {
"anyOf": [
{
- "type": "string"
+ "type": "number"
},
{
"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": {
+ "method": {
"anyOf": [
{
- "type": "integer"
+ "type": "number"
},
{
"type": "null"
}
]
},
- "maxHistoryMessages": {
+ "orderBy": {
"anyOf": [
{
- "type": "integer"
+ "type": "number"
},
{
"type": "null"
}
]
},
- "modelId": {
+ "page": {
"anyOf": [
{
- "type": "string"
+ "type": "number"
},
{
"type": "null"
}
]
},
- "temperature": {
+ "pageSize": {
"anyOf": [
{
"type": "number"
@@ -21569,88 +22008,67 @@
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "SettingEditor": {
- "type": "object",
- "properties": {
- "allowHTMLBLockScript": {
- "type": "boolean"
- },
- "allowSVGScript": {
- "type": "boolean"
},
- "assetOpen": {
+ "paths": {
"anyOf": [
{
- "$ref": "#/$defs/SettingAssetOpen"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "backlinkContainChildren": {
- "type": "boolean"
- },
- "backlinkExpandCount": {
- "type": "integer"
- },
- "backlinkHideReference": {
- "type": "boolean"
- },
- "backlinkMentionExclude": {
- "type": "string"
- },
- "backlinkShowBottom": {
- "type": "boolean"
- },
- "backlinkSort": {
+ "query": {
"anyOf": [
{
- "type": "integer"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "backmentionExpandCount": {
- "type": "integer"
- },
- "backmentionSort": {
+ "subTypes": {
"anyOf": [
{
- "type": "integer"
+ "$ref": "#/$defs/SearchSubtypeFilterInput"
},
{
"type": "null"
}
]
},
- "blockRefDynamicAnchorTextMaxLen": {
- "type": "integer"
- },
- "checkBlockRef": {
+ "types": {
"anyOf": [
{
- "type": "boolean"
+ "type": "object",
+ "additionalProperties": {
+ "type": "boolean"
+ }
},
{
"type": "null"
}
]
- },
- "codeFontFamilies": {
+ }
+ },
+ "additionalProperties": false
+ },
+ "SearchBlocksData": {
+ "type": "object",
+ "properties": {
+ "blocks": {
"anyOf": [
{
"type": "array",
"items": {
"anyOf": [
{
- "$ref": "#/$defs/SettingEditorFont"
+ "$ref": "#/$defs/SearchBlock"
},
{
"type": "null"
@@ -21663,28 +22081,28 @@
}
]
},
- "codeLigatures": {
- "type": "boolean"
- },
- "codeLineWrap": {
- "type": "boolean"
- },
- "codeSyntaxHighlightLineNum": {
- "type": "boolean"
- },
- "codeTabSpaces": {
+ "matchedBlockCount": {
"type": "integer"
},
- "cursorSurroundingLines": {
+ "matchedRootCount": {
"type": "integer"
},
- "databaseAttrClickMode": {
+ "pageCount": {
"type": "integer"
- },
- "databaseAttrHideEmpty": {
- "type": "boolean"
- },
- "databaseAttrShow": {
+ }
+ },
+ "required": [
+ "blocks",
+ "matchedBlockCount",
+ "matchedRootCount",
+ "pageCount"
+ ],
+ "additionalProperties": false
+ },
+ "SearchEmbedBlockRequestInput": {
+ "type": "object",
+ "properties": {
+ "breadcrumb": {
"anyOf": [
{
"type": "boolean"
@@ -21694,73 +22112,128 @@
}
]
},
- "databaseAttrUseTabs": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
+ "embedBlockID": {
+ "type": "string"
+ },
+ "excludeIDs": {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "headingMode": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
"type": "null"
}
]
},
- "databaseAttrViewMode": {
- "type": "integer"
- },
- "displayBookmarkIcon": {
- "type": "boolean"
- },
- "displayNetImgMark": {
- "type": "boolean"
- },
- "dragHTMLFileToIframe": {
- "type": "boolean"
+ "notebook": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "dynamicLoadBlocks": {
- "type": "integer"
+ "stmt": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "embedBlockID",
+ "excludeIDs",
+ "stmt"
+ ],
+ "additionalProperties": false
+ },
+ "SearchHeadingFilterInput": {
+ "type": "object",
+ "properties": {
+ "h1": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "embedBlockBreadcrumb": {
- "type": "boolean"
+ "h2": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "emoji": {
+ "h3": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "floatWindowDelay": {
+ "h4": {
"anyOf": [
{
- "type": "integer"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "floatWindowMode": {
- "type": "integer"
+ "h5": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "fontFamilies": {
+ "h6": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "SearchHistoryData": {
+ "type": "object",
+ "properties": {
+ "histories": {
"anyOf": [
{
"type": "array",
"items": {
- "anyOf": [
- {
- "$ref": "#/$defs/SettingEditorFont"
- },
- {
- "type": "null"
- }
- ]
+ "type": "string"
}
},
{
@@ -21768,227 +22241,141 @@
}
]
},
- "fontFamily": {
- "type": "string"
- },
- "fontFamilyDisplay": {
- "type": "string"
- },
- "fontSize": {
- "type": "integer"
- },
- "fontSizeScrollZoom": {
- "type": "boolean"
- },
- "fontWeight": {
+ "pageCount": {
"type": "integer"
},
- "fullWidth": {
- "type": "boolean"
- },
- "generateHistoryInterval": {
+ "totalCount": {
"type": "integer"
- },
- "hashTagSearch": {
+ }
+ },
+ "required": [
+ "histories",
+ "pageCount",
+ "totalCount"
+ ],
+ "additionalProperties": false
+ },
+ "SearchHistoryRequestInput": {
+ "type": "object",
+ "properties": {
+ "notebook": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"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": {
+ "op": {
"anyOf": [
{
- "$ref": "#/$defs/SettingMarkdown"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "onlySearchForDoc": {
- "type": "boolean"
- },
- "pasteURLAutoConvert": {
- "type": "boolean"
- },
- "plantUMLServePath": {
- "type": "string"
- },
- "readOnly": {
- "type": "boolean"
- },
- "rtl": {
- "type": "boolean"
- },
- "spellcheck": {
- "type": "boolean"
- },
- "spellcheckLanguages": {
+ "page": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "type": "number"
},
{
"type": "null"
}
]
},
- "virtualBlockRef": {
- "type": "boolean"
- },
- "virtualBlockRefExclude": {
- "type": "string"
+ "query": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "virtualBlockRefInclude": {
+ "type": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "SearchKeywordRequestInput": {
+ "type": "object",
+ "properties": {
+ "k": {
"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"
+ "k"
],
"additionalProperties": false
},
- "SettingEditorFont": {
+ "SearchListFilterInput": {
"type": "object",
"properties": {
- "displayName": {
- "type": "string"
- },
- "family": {
- "type": "string"
+ "o": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "weight": {
- "type": "integer"
- }
- },
- "required": [
- "displayName",
- "family",
- "weight"
- ],
- "additionalProperties": false
- },
- "SettingEditorFontInput": {
- "type": "object",
- "properties": {
- "displayName": {
+ "t": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "family": {
+ "u": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "SearchPageRequestInput": {
+ "type": "object",
+ "properties": {
+ "page": {
+ "anyOf": [
+ {
+ "type": "number"
},
{
"type": "null"
}
]
},
- "weight": {
+ "pageSize": {
"anyOf": [
{
- "type": "integer"
+ "type": "number"
},
{
"type": "null"
@@ -21998,56 +22385,110 @@
},
"additionalProperties": false
},
- "SettingEmbedding": {
+ "SearchPath": {
"type": "object",
"properties": {
- "apiKey": {
+ "blocks": {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SearchBlock"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "box": {
"type": "string"
},
- "baseURL": {
+ "children": {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SearchPath"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "count": {
+ "type": "integer"
+ },
+ "created": {
"type": "string"
},
- "dimensions": {
+ "depth": {
"type": "integer"
},
- "enabled": {
+ "folded": {
"type": "boolean"
},
+ "hPath": {
+ "type": "string"
+ },
"id": {
"type": "string"
},
"name": {
"type": "string"
},
- "timeout": {
- "type": "integer"
+ "nodeType": {
+ "type": "string"
+ },
+ "number": {
+ "type": "string"
+ },
+ "subType": {
+ "type": "string"
+ },
+ "type": {
+ "type": "string"
+ },
+ "updated": {
+ "type": "string"
}
},
"required": [
- "apiKey",
- "baseURL",
- "dimensions",
- "enabled",
+ "box",
+ "count",
+ "created",
+ "depth",
+ "folded",
+ "hPath",
"id",
"name",
- "timeout"
+ "nodeType",
+ "subType",
+ "type",
+ "updated"
],
"additionalProperties": false
},
- "SettingEmbeddingInput": {
+ "SearchPathRequestInput": {
"type": "object",
"properties": {
- "apiKey": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
+ "path": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "path"
+ ],
+ "additionalProperties": false
+ },
+ "SearchRefBlockRequestInput": {
+ "type": "object",
+ "properties": {
+ "beforeLen": {
+ "type": "number"
},
- "baseURL": {
+ "id": {
"anyOf": [
{
"type": "string"
@@ -22057,17 +22498,17 @@
}
]
},
- "dimensions": {
+ "isDatabase": {
"anyOf": [
{
- "type": "integer"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "enabled": {
+ "isSquareBrackets": {
"anyOf": [
{
"type": "boolean"
@@ -22077,17 +22518,10 @@
}
]
},
- "id": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
+ "k": {
+ "type": "string"
},
- "name": {
+ "notebook": {
"anyOf": [
{
"type": "string"
@@ -22097,48 +22531,45 @@
}
]
},
- "timeout": {
+ "reqId": {
"anyOf": [
{
- "type": "integer"
+ "$ref": "#/$defs/JSONValue"
},
{
"type": "null"
}
]
+ },
+ "rootID": {
+ "type": "string"
}
},
"additionalProperties": false
},
- "SettingEmojiRequestInput": {
+ "SearchRefCorrelation": {
"type": "object",
"properties": {
- "emoji": {
- "type": "array",
- "items": {
- "type": "string"
- }
+ "reqId": {
+ "$ref": "#/$defs/JSONValue"
}
},
"required": [
- "emoji"
+ "reqId"
],
"additionalProperties": false
},
- "SettingEntryVisibility": {
+ "SearchRefResult": {
"type": "object",
"properties": {
- "active": {
- "type": "string"
- },
- "profiles": {
+ "blocks": {
"anyOf": [
{
"type": "array",
"items": {
"anyOf": [
{
- "$ref": "#/$defs/SettingEntryVisibilityProfile"
+ "$ref": "#/$defs/SearchBlock"
},
{
"type": "null"
@@ -22151,43 +22582,62 @@
}
]
},
- "version": {
- "type": "integer"
+ "k": {
+ "type": "string"
+ },
+ "newDoc": {
+ "type": "boolean"
+ },
+ "reqId": {
+ "$ref": "#/$defs/JSONValue"
}
},
"required": [
- "active",
- "profiles",
- "version"
+ "blocks",
+ "k",
+ "newDoc",
+ "reqId"
],
"additionalProperties": false
},
- "SettingEntryVisibilityInput": {
+ "SearchRepoFileRequestInput": {
"type": "object",
"properties": {
- "active": {
+ "keyword": {
+ "type": "string"
+ },
+ "page": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "keyword",
+ "page"
+ ],
+ "additionalProperties": false
+ },
+ "SearchSubTypes": {
+ "type": "object",
+ "properties": {
+ "heading": {
"anyOf": [
{
- "type": "string"
+ "type": "object",
+ "additionalProperties": {
+ "type": "boolean"
+ }
},
{
"type": "null"
}
]
},
- "profiles": {
+ "list": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/SettingEntryVisibilityProfileInput"
- },
- {
- "type": "null"
- }
- ]
+ "type": "object",
+ "additionalProperties": {
+ "type": "boolean"
}
},
{
@@ -22195,10 +22645,13 @@
}
]
},
- "version": {
+ "listItem": {
"anyOf": [
{
- "type": "integer"
+ "type": "object",
+ "additionalProperties": {
+ "type": "boolean"
+ }
},
{
"type": "null"
@@ -22206,12 +22659,17 @@
]
}
},
+ "required": [
+ "heading",
+ "list",
+ "listItem"
+ ],
"additionalProperties": false
},
- "SettingEntryVisibilityProfile": {
+ "SearchSubTypesInput": {
"type": "object",
"properties": {
- "entries": {
+ "heading": {
"anyOf": [
{
"type": "object",
@@ -22224,28 +22682,25 @@
}
]
},
- "id": {
- "type": "string"
- },
- "name": {
- "type": "string"
+ "list": {
+ "anyOf": [
+ {
+ "type": "object",
+ "additionalProperties": {
+ "type": "boolean"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "orders": {
+ "listItem": {
"anyOf": [
{
"type": "object",
"additionalProperties": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- {
- "type": "null"
- }
- ]
+ "type": "boolean"
}
},
{
@@ -22254,61 +22709,89 @@
]
}
},
- "required": [
- "entries",
- "id",
- "name",
- "orders"
- ],
"additionalProperties": false
},
- "SettingEntryVisibilityProfileInput": {
+ "SearchSubtypeFilterInput": {
"type": "object",
"properties": {
- "entries": {
+ "heading": {
"anyOf": [
{
- "type": "object",
- "additionalProperties": {
- "type": "boolean"
- }
+ "$ref": "#/$defs/SearchHeadingFilterInput"
},
{
"type": "null"
}
]
},
- "id": {
+ "list": {
"anyOf": [
{
- "type": "string"
+ "$ref": "#/$defs/SearchListFilterInput"
},
{
"type": "null"
}
]
},
- "name": {
+ "listItem": {
"anyOf": [
{
- "type": "string"
+ "$ref": "#/$defs/SearchListFilterInput"
},
{
"type": "null"
}
]
+ }
+ },
+ "additionalProperties": false
+ },
+ "SearchTagData": {
+ "type": "object",
+ "properties": {
+ "k": {
+ "type": "string"
},
- "orders": {
+ "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": {
"anyOf": [
{
- "type": "object",
- "additionalProperties": {
+ "type": "array",
+ "items": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "$ref": "#/$defs/SearchTemplateResult"
},
{
"type": "null"
@@ -22322,624 +22805,541 @@
]
}
},
+ "required": [
+ "k",
+ "templates"
+ ],
"additionalProperties": false
},
- "SettingExport": {
+ "SearchTemplateResult": {
"type": "object",
"properties": {
- "addTitle": {
- "type": "boolean"
- },
- "blockEmbedMode": {
- "type": "integer"
- },
- "blockRefMode": {
- "type": "integer"
- },
- "blockRefTextLeft": {
+ "content": {
"type": "string"
},
- "blockRefTextRight": {
+ "path": {
"type": "string"
},
- "docxTemplate": {
+ "relativePath": {
"type": "string"
- },
- "fileAnnotationRefMode": {
- "type": "integer"
- },
- "imageWatermarkDesc": {
+ }
+ },
+ "required": [
+ "content",
+ "path",
+ "relativePath"
+ ],
+ "additionalProperties": false
+ },
+ "SearchWidgetData": {
+ "type": "object",
+ "properties": {
+ "k": {
"type": "string"
},
- "imageWatermarkStr": {
+ "widgets": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SearchWidgetResult"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "k",
+ "widgets"
+ ],
+ "additionalProperties": false
+ },
+ "SearchWidgetResult": {
+ "type": "object",
+ "properties": {
+ "content": {
"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": {
+ "name": {
"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"
+ "content",
+ "name"
],
"additionalProperties": false
},
- "SettingFileTree": {
+ "SetAIRequestInput": {
"type": "object",
"properties": {
- "allowCreateDeeper": {
- "type": "boolean"
- },
- "alwaysSelectOpenedFile": {
- "type": "boolean"
- },
- "boxDocEnabled": {
+ "agent": {
"anyOf": [
{
- "type": "boolean"
+ "$ref": "#/$defs/SettingAgentInput"
},
{
"type": "null"
}
]
},
- "closeTabOnDoubleClick": {
- "type": "boolean"
- },
- "closeTabsOnStart": {
- "type": "boolean"
- },
- "createDocAtTop": {
+ "editing": {
"anyOf": [
{
- "type": "boolean"
+ "$ref": "#/$defs/SettingEditingInput"
},
{
"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"
+ "embedding": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingEmbeddingInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "sort": {
- "type": "integer"
+ "imageGeneration": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingImageGenerationInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "tabStartupMode": {
+ "mcp": {
"anyOf": [
{
- "type": "integer"
+ "$ref": "#/$defs/SettingMCPInput"
},
{
"type": "null"
}
]
},
- "useSVGDefaultIcon": {
+ "providers": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingProviderInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
},
- "useSingleLineSave": {
- "type": "boolean"
+ "rerank": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingRerankInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
- "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": {
+ "SetAppearanceRequestInput": {
"type": "object",
"properties": {
- "blockquote": {
- "type": "boolean"
- },
- "callout": {
- "type": "boolean"
+ "bodyGradient": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingBodyGradientInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "deck": {
- "type": "boolean"
+ "closeButtonBehavior": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "heading": {
- "type": "boolean"
+ "codeBlockThemeDark": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "list": {
- "type": "boolean"
+ "codeBlockThemeLight": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "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": {
+ "darkThemes": {
"anyOf": [
{
- "type": "string"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingAppearanceThemeInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
},
- "outputFormat": {
+ "entryVisibility": {
"anyOf": [
{
- "type": "string"
+ "$ref": "#/$defs/SettingEntryVisibilityInput"
},
{
"type": "null"
}
]
},
- "quality": {
+ "globalFontFamilies": {
"anyOf": [
{
- "type": "string"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingEditorFontInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
},
- "requestTimeout": {
+ "hideStatusBar": {
"anyOf": [
{
- "type": "integer"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "size": {
+ "hideToolbar": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "SettingKeymapRequestInput": {
- "type": "object",
- "properties": {
- "data": {
+ },
+ "icon": {
"anyOf": [
{
- "type": "object",
- "additionalProperties": {
- "$ref": "#/$defs/JSONValue"
- }
+ "type": "string"
},
{
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "SettingLogin2faRequestInput": {
- "type": "object",
- "properties": {
- "code": {
- "type": "string"
},
- "token": {
- "type": "string"
- }
- },
- "required": [
- "code",
- "token"
- ],
- "additionalProperties": false
- },
- "SettingMCP": {
- "type": "object",
- "properties": {
- "exposurePolicy": {
+ "iconVer": {
"anyOf": [
{
- "$ref": "#/$defs/SettingCapabilityPolicy"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "servers": {
+ "icons": {
"anyOf": [
{
"type": "array",
"items": {
- "$ref": "#/$defs/SettingMCPServer"
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingAppearanceIconInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
{
"type": "null"
}
]
- }
- },
- "required": [
- "exposurePolicy",
- "servers"
- ],
- "additionalProperties": false
- },
- "SettingMCPInput": {
- "type": "object",
- "properties": {
- "exposurePolicy": {
+ },
+ "lang": {
"anyOf": [
{
- "$ref": "#/$defs/SettingCapabilityPolicyInput"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "servers": {
+ "lightThemes": {
"anyOf": [
{
"type": "array",
"items": {
- "$ref": "#/$defs/SettingMCPServerInput"
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingAppearanceThemeInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
{
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "SettingMCPServer": {
- "type": "object",
- "properties": {
- "args": {
+ },
+ "mode": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "command": {
- "type": "string"
- },
- "disableStandaloneSSE": {
- "type": "boolean"
- },
- "enabled": {
- "type": "boolean"
- },
- "env": {
+ "modeOS": {
"anyOf": [
{
- "type": "object",
- "additionalProperties": {
- "type": "string"
- }
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "headers": {
+ "notifications": {
"anyOf": [
{
- "type": "object",
- "additionalProperties": {
- "type": "string"
- }
+ "$ref": "#/$defs/SettingNotificationsInput"
},
{
"type": "null"
}
]
},
- "id": {
- "type": "string"
- },
- "inheritEnv": {
+ "statusBar": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "$ref": "#/$defs/SettingStatusBarInput"
},
{
"type": "null"
}
]
},
- "name": {
- "type": "string"
- },
- "timeout": {
- "type": "integer"
+ "themeDark": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "trustToolAnnotations": {
- "type": "boolean"
+ "themeJS": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "type": {
+ "themeLight": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "themeVer": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "SetAssetAnnotationRequestInput": {
+ "type": "object",
+ "properties": {
+ "data": {
"type": "string"
},
- "url": {
+ "path": {
"type": "string"
}
},
"required": [
- "args",
- "command",
- "disableStandaloneSSE",
- "enabled",
- "env",
- "headers",
- "id",
- "inheritEnv",
- "name",
- "timeout",
- "trustToolAnnotations",
- "type",
- "url"
+ "data",
+ "path"
],
"additionalProperties": false
},
- "SettingMCPServerInput": {
+ "SetAssetOCRTextRequestInput": {
"type": "object",
"properties": {
- "args": {
+ "path": {
+ "type": "string"
+ },
+ "text": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "path",
+ "text"
+ ],
+ "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": "array",
- "items": {
- "type": "string"
- }
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "command": {
+ "trust": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
+ }
+ },
+ "additionalProperties": false
+ },
+ "SetBlockAttrsRequestInput": {
+ "type": "object",
+ "properties": {
+ "attrs": {
+ "type": "object",
+ "additionalProperties": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
- "disableStandaloneSSE": {
+ "id": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "attrs",
+ "id"
+ ],
+ "additionalProperties": false
+ },
+ "SetConfSnippetRequestInput": {
+ "type": "object",
+ "properties": {
+ "enabledCSS": {
"anyOf": [
{
"type": "boolean"
@@ -22949,7 +23349,7 @@
}
]
},
- "enabled": {
+ "enabledJS": {
"anyOf": [
{
"type": "boolean"
@@ -22958,67 +23358,73 @@
"type": "null"
}
]
- },
- "env": {
+ }
+ },
+ "additionalProperties": false
+ },
+ "SetCriterionRequestInput": {
+ "type": "object",
+ "properties": {
+ "criterion": {
"anyOf": [
{
- "type": "object",
- "additionalProperties": {
- "type": "string"
- }
+ "$ref": "#/$defs/CriterionInput"
},
{
"type": "null"
}
]
- },
- "headers": {
+ }
+ },
+ "required": [
+ "criterion"
+ ],
+ "additionalProperties": false
+ },
+ "SetEditorRequestInput": {
+ "type": "object",
+ "properties": {
+ "allowHTMLBLockScript": {
"anyOf": [
{
- "type": "object",
- "additionalProperties": {
- "type": "string"
- }
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "id": {
+ "allowSVGScript": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "inheritEnv": {
+ "assetOpen": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "$ref": "#/$defs/SettingAssetOpenInput"
},
{
"type": "null"
}
]
},
- "name": {
+ "backlinkContainChildren": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "timeout": {
+ "backlinkExpandCount": {
"anyOf": [
{
"type": "integer"
@@ -23028,7 +23434,7 @@
}
]
},
- "trustToolAnnotations": {
+ "backlinkHideReference": {
"anyOf": [
{
"type": "boolean"
@@ -23038,7 +23444,7 @@
}
]
},
- "type": {
+ "backlinkMentionExclude": {
"anyOf": [
{
"type": "string"
@@ -23048,89 +23454,57 @@
}
]
},
- "url": {
+ "backlinkShowBottom": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "SettingMarkdown": {
- "type": "object",
- "properties": {
- "blockFullWidthTaskList": {
+ },
+ "backlinkSort": {
"anyOf": [
{
- "type": "boolean"
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "codeBlockMiddleDot": {
+ "backmentionExpandCount": {
"anyOf": [
{
- "type": "boolean"
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "inlineAsterisk": {
- "type": "boolean"
- },
- "inlineFullWidthStrikethrough": {
- "type": "boolean"
- },
- "inlineMark": {
- "type": "boolean"
- },
- "inlineMath": {
- "type": "boolean"
+ "backmentionSort": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "inlineStrikethrough": {
- "type": "boolean"
+ "blockRefDynamicAnchorTextMaxLen": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "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": {
+ "checkBlockRef": {
"anyOf": [
{
"type": "boolean"
@@ -23140,17 +23514,27 @@
}
]
},
- "codeBlockMiddleDot": {
+ "codeFontFamilies": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingEditorFontInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
},
- "inlineAsterisk": {
+ "codeLigatures": {
"anyOf": [
{
"type": "boolean"
@@ -23160,7 +23544,7 @@
}
]
},
- "inlineFullWidthStrikethrough": {
+ "codeLineWrap": {
"anyOf": [
{
"type": "boolean"
@@ -23170,7 +23554,7 @@
}
]
},
- "inlineMark": {
+ "codeSyntaxHighlightLineNum": {
"anyOf": [
{
"type": "boolean"
@@ -23180,37 +23564,37 @@
}
]
},
- "inlineMath": {
+ "codeTabSpaces": {
"anyOf": [
{
- "type": "boolean"
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "inlineStrikethrough": {
+ "cursorSurroundingLines": {
"anyOf": [
{
- "type": "boolean"
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "inlineSub": {
+ "databaseAttrClickMode": {
"anyOf": [
{
- "type": "boolean"
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "inlineSup": {
+ "databaseAttrHideEmpty": {
"anyOf": [
{
"type": "boolean"
@@ -23220,7 +23604,7 @@
}
]
},
- "inlineTag": {
+ "databaseAttrShow": {
"anyOf": [
{
"type": "boolean"
@@ -23230,7 +23614,7 @@
}
]
},
- "inlineUnderscore": {
+ "databaseAttrUseTabs": {
"anyOf": [
{
"type": "boolean"
@@ -23239,40 +23623,8 @@
"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": {
+ "databaseAttrViewMode": {
"anyOf": [
{
"type": "integer"
@@ -23282,17 +23634,17 @@
}
]
},
- "displayName": {
+ "displayBookmarkIcon": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "enabled": {
+ "displayNetImgMark": {
"anyOf": [
{
"type": "boolean"
@@ -23302,66 +23654,27 @@
}
]
},
- "id": {
+ "dragHTMLFileToIframe": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "name": {
+ "dynamicLoadBlocks": {
"anyOf": [
{
- "type": "string"
+ "type": "integer"
},
{
"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": {
+ "embedBlockBreadcrumb": {
"anyOf": [
{
"type": "boolean"
@@ -23371,246 +23684,160 @@
}
]
},
- "docTreeMaxList": {
+ "emoji": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "formatPainterTip": {
+ "floatWindowDelay": {
"anyOf": [
{
- "type": "boolean"
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "selectAllIncompleteTip": {
+ "floatWindowMode": {
"anyOf": [
{
- "type": "boolean"
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "selectAllTip": {
+ "fontFamilies": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingEditorFontInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
},
- "tagMaxList": {
+ "fontFamily": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "workspaceNotSSD": {
+ "fontFamilyDisplay": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "SettingPetalDisabledData": {
- "type": "object",
- "properties": {
- "dataChangePlugins": {
+ },
+ "fontSize": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "globalPetalChanged": {
- "type": "boolean"
- },
- "globalPetalDisabled": {
- "type": "boolean"
- },
- "globalPetalEnabled": {
- "type": "boolean"
- },
- "globalPetalRevision": {
- "type": "integer"
+ "fontSizeScrollZoom": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "reloadPlugins": {
+ "fontWeight": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "uninstallPlugins": {
+ "fullWidth": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "unloadPlugins": {
+ "generateHistoryInterval": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "type": "integer"
},
{
"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": {
+ "hashTagSearch": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/SettingModel"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "protocol": {
- "type": "string"
- },
- "requestTimeout": {
- "type": "integer"
- }
- },
- "required": [
- "apiKey",
- "baseURL",
- "enabled",
- "id",
- "models",
- "requestTimeout"
- ],
- "additionalProperties": false
- },
- "SettingProviderInput": {
- "type": "object",
- "properties": {
- "apiKey": {
+ "headingEmbedMode": {
"anyOf": [
{
- "type": "string"
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "baseURL": {
+ "headingNumber": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "displayName": {
+ "headingNumberFormat": {
"anyOf": [
{
"type": "string"
@@ -23620,30 +23847,27 @@
}
]
},
- "enabled": {
+ "historyRetentionDays": {
"anyOf": [
{
- "type": "boolean"
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "headers": {
+ "justify": {
"anyOf": [
{
- "type": "object",
- "additionalProperties": {
- "type": "string"
- }
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "id": {
+ "katexMacros": {
"anyOf": [
{
"type": "string"
@@ -23653,143 +23877,67 @@
}
]
},
- "models": {
+ "keepLoadedContent": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/SettingModelInput"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "protocol": {
+ "listItemDotNumberClickFocus": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "requestTimeout": {
+ "listLogicalOutdent": {
"anyOf": [
{
- "type": "integer"
+ "type": "boolean"
},
{
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "SettingPublish": {
- "type": "object",
- "properties": {
- "auth": {
+ },
+ "markdown": {
"anyOf": [
{
- "$ref": "#/$defs/SettingBasicAuth"
+ "$ref": "#/$defs/SettingMarkdownInput"
},
{
"type": "null"
}
]
},
- "enable": {
- "type": "boolean"
- },
- "port": {
- "type": "integer"
- }
- },
- "required": [
- "auth",
- "enable",
- "port"
- ],
- "additionalProperties": false
- },
- "SettingPublishData": {
- "type": "object",
- "properties": {
- "port": {
- "type": "integer"
- },
- "publish": {
+ "onlySearchForDoc": {
"anyOf": [
{
- "$ref": "#/$defs/SettingPublish"
+ "type": "boolean"
},
{
"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"
+ "pasteURLAutoConvert": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "timeout": {
- "type": "integer"
- }
- },
- "required": [
- "apiKey",
- "candidateCount",
- "enabled",
- "endpoint",
- "id",
- "name",
- "requestFormat",
- "timeout"
- ],
- "additionalProperties": false
- },
- "SettingRerankInput": {
- "type": "object",
- "properties": {
- "apiKey": {
+ "plantUMLServePath": {
"anyOf": [
{
"type": "string"
@@ -23799,17 +23947,17 @@
}
]
},
- "candidateCount": {
+ "readOnly": {
"anyOf": [
{
- "type": "integer"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "enabled": {
+ "rtl": {
"anyOf": [
{
"type": "boolean"
@@ -23819,37 +23967,40 @@
}
]
},
- "endpoint": {
+ "spellcheck": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "id": {
+ "spellcheckLanguages": {
"anyOf": [
{
- "type": "string"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "name": {
+ "virtualBlockRef": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "requestFormat": {
+ "virtualBlockRefExclude": {
"anyOf": [
{
"type": "string"
@@ -23859,10 +24010,10 @@
}
]
},
- "timeout": {
+ "virtualBlockRefInclude": {
"anyOf": [
{
- "type": "integer"
+ "type": "string"
},
{
"type": "null"
@@ -23872,178 +24023,32 @@
},
"additionalProperties": false
},
- "SettingSearch": {
+ "SetEntryVisibilityRequestInput": {
"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": {
+ "active": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"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": {
+ "profiles": {
"anyOf": [
{
"type": "array",
"items": {
- "type": "string"
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingEntryVisibilityProfileInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
{
@@ -24051,37 +24056,53 @@
}
]
},
- "name": {
- "type": "string"
- },
- "value": {
- "type": "string"
+ "version": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
- "required": [
- "allowedHosts",
- "name",
- "value"
- ],
"additionalProperties": false
},
- "SettingSecretInput": {
+ "SetExportRequestInput": {
"type": "object",
"properties": {
- "allowedHosts": {
+ "addTitle": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "name": {
+ "blockEmbedMode": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "blockRefMode": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "blockRefTextLeft": {
"anyOf": [
{
"type": "string"
@@ -24091,7 +24112,7 @@
}
]
},
- "value": {
+ "blockRefTextRight": {
"anyOf": [
{
"type": "string"
@@ -24100,121 +24121,48 @@
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "SettingSecrets": {
- "type": "object",
- "properties": {
- "items": {
+ },
+ "docxTemplate": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/SettingSecret"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "string"
},
{
"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": {
+ "fileAnnotationRefMode": {
"anyOf": [
{
- "type": "boolean"
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "msgTaskAssetDatabaseIndexCommitDisabled": {
+ "imageWatermarkDesc": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "msgTaskDatabaseIndexCommitDisabled": {
+ "imageWatermarkStr": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "msgTaskHistoryDatabaseIndexCommitDisabled": {
+ "includeRelatedDocs": {
"anyOf": [
{
"type": "boolean"
@@ -24224,7 +24172,7 @@
}
]
},
- "msgTaskHistoryGenerateFileDisabled": {
+ "includeSubDocs": {
"anyOf": [
{
"type": "boolean"
@@ -24234,46 +24182,37 @@
}
]
},
- "version": {
+ "inlineMemo": {
"anyOf": [
{
- "type": "integer"
+ "type": "boolean"
},
{
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "SettingThemeRequestInput": {
- "type": "object",
- "properties": {
- "appearanceMode": {
+ },
+ "markdownYFM": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "modes": {
+ "pandocBin": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "number"
- }
+ "type": "string"
},
{
"type": "null"
}
]
},
- "theme": {
+ "pandocParams": {
"anyOf": [
{
"type": "string"
@@ -24282,167 +24221,18 @@
"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": {
+ "paragraphBeginningSpace": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/SettingUserTitle"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "boolean"
},
{
"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": {
+ "pdfFooter": {
"anyOf": [
{
"type": "string"
@@ -24452,7 +24242,7 @@
}
]
},
- "value": {
+ "pdfWatermarkDesc": {
"anyOf": [
{
"type": "string"
@@ -24461,206 +24251,144 @@
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "SettingVariables": {
- "type": "object",
- "properties": {
- "items": {
+ },
+ "pdfWatermarkStr": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/SettingVariable"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "string"
},
{
"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"
+ "removeAssetsID": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "shorthandURL": {
- "type": "string"
- }
- },
- "required": [
- "hCreated",
- "oId",
- "shorthandContent",
- "shorthandDesc",
- "shorthandFrom",
- "shorthandMd",
- "shorthandTitle",
- "shorthandURL"
- ],
- "additionalProperties": false
- },
- "ShorthandPage": {
- "type": "object",
- "properties": {
- "pagination": {
- "$ref": "#/$defs/ShorthandPagination"
+ "tagCloseMarker": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "shorthands": {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/Shorthand"
- },
- {
- "type": "null"
- }
- ]
- }
+ "tagOpenMarker": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
- "required": [
- "pagination",
- "shorthands"
- ],
"additionalProperties": false
},
- "ShorthandPagination": {
+ "SetFiletreeRequestInput": {
"type": "object",
"properties": {
- "paginationPageCount": {
- "type": "integer"
- },
- "paginationPageNums": {
+ "allowCreateDeeper": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "integer"
- }
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "paginationRecordCount": {
- "type": "integer"
- }
- },
- "required": [
- "paginationPageCount",
- "paginationPageNums",
- "paginationRecordCount"
- ],
- "additionalProperties": false
- },
- "ShorthandsData": {
- "type": "object",
- "properties": {
- "code": {
- "type": "integer"
+ "alwaysSelectOpenedFile": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "data": {
- "$ref": "#/$defs/ShorthandPage"
+ "boxDocEnabled": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "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"
+ "closeTabOnDoubleClick": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "disabledInPublish": {
- "type": "boolean"
+ "closeTabsOnStart": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "enabled": {
- "type": "boolean"
+ "createDocAtTop": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "id": {
- "type": "string"
+ "docCreateSaveBox": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "name": {
- "type": "string"
+ "docCreateSavePath": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "type": {
- "type": "string"
- }
- },
- "required": [
- "content",
- "disabledInPublish",
- "enabled",
- "id",
- "name",
- "type"
- ],
- "additionalProperties": false
- },
- "SnippetInput": {
- "type": "object",
- "properties": {
- "content": {
- "type": "string"
+ "docCreateTemplatePath": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "disabledInPublish": {
+ "docIconClickExpand": {
"anyOf": [
{
"type": "boolean"
@@ -24670,381 +24398,87 @@
}
]
},
- "enabled": {
- "type": "boolean"
- },
- "id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "type": {
- "type": "string"
- }
- },
- "required": [
- "content",
- "enabled",
- "id",
- "name",
- "type"
- ],
- "additionalProperties": false
- },
- "SnippetsData": {
- "type": "object",
- "properties": {
- "snippets": {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/Snippet"
- },
- {
- "type": "null"
- }
- ]
- }
- }
- },
- "required": [
- "snippets"
- ],
- "additionalProperties": false
- },
- "StorageKeyRequestInput": {
- "type": "object",
- "properties": {
- "key": {
- "type": "string"
- }
- },
- "required": [
- "key"
- ],
- "additionalProperties": false
- },
- "StorageKeysRequestInput": {
- "type": "object",
- "properties": {
- "keys": {
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- },
- "required": [
- "keys"
- ],
- "additionalProperties": false
- },
- "StorageRemoveKeysRequestInput": {
- "type": "object",
- "properties": {
- "app": {
+ "largeFileWarningSize": {
"anyOf": [
{
- "type": "string"
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "keys": {
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- },
- "required": [
- "keys"
- ],
- "additionalProperties": false
- },
- "StorageRemoveRequestInput": {
- "type": "object",
- "properties": {
- "app": {
+ "maxListCount": {
"anyOf": [
{
- "type": "string"
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "key": {
- "type": "string"
- }
- },
- "required": [
- "key"
- ],
- "additionalProperties": false
- },
- "StorageSetKeysRequestInput": {
- "type": "object",
- "properties": {
- "app": {
+ "maxOpenTabCount": {
"anyOf": [
{
- "type": "string"
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "keyVals": {
- "type": "object",
- "additionalProperties": {
- "$ref": "#/$defs/JSONValue"
- }
- }
- },
- "required": [
- "keyVals"
- ],
- "additionalProperties": false
- },
- "StorageSetRequestInput": {
- "type": "object",
- "properties": {
- "app": {
+ "noSplitScreenWhenOpenTab": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "key": {
- "type": "string"
- },
- "val": {
+ "openFilesUseCurrentTab": {
"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": {
+ "parentDocClickExpand": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/SyncOnlineKernel"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "stat": {
- "type": "string"
- },
- "synced": {
- "type": "integer"
- }
- },
- "required": [
- "kernel",
- "kernels",
- "stat",
- "synced"
- ],
- "additionalProperties": false
- },
- "SyncIntervalRequestInput": {
- "type": "object",
- "properties": {
- "interval": {
- "type": "number"
- }
- },
- "required": [
- "interval"
- ],
- "additionalProperties": false
- },
- "SyncLANRequestInput": {
- "type": "object",
- "properties": {
- "enabled": {
- "type": "boolean"
- },
- "maxConcurrentReqs": {
+ "recentDocsMaxListCount": {
"anyOf": [
{
- "type": "number"
+ "type": "integer"
},
{
"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": {
+ "refCreateSaveBox": {
"anyOf": [
{
- "type": "integer"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "endpoint": {
+ "refCreateSavePath": {
"anyOf": [
{
"type": "string"
@@ -25054,172 +24488,27 @@
}
]
},
- "timeout": {
+ "removeDocWithoutConfirm": {
"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": {
+ "shorthandSaveBox": {
"anyOf": [
{
- "$ref": "#/$defs/SyncS3"
+ "type": "string"
},
{
"type": "null"
}
]
- }
- },
- "required": [
- "s3"
- ],
- "additionalProperties": false
- },
- "SyncS3Input": {
- "type": "object",
- "properties": {
- "accessKey": {
+ },
+ "shorthandSavePath": {
"anyOf": [
{
"type": "string"
@@ -25229,17 +24518,17 @@
}
]
},
- "bucket": {
+ "sort": {
"anyOf": [
{
- "type": "string"
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "concurrentReqs": {
+ "tabStartupMode": {
"anyOf": [
{
"type": "integer"
@@ -25249,17 +24538,17 @@
}
]
},
- "endpoint": {
+ "useSVGDefaultIcon": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "pathStyle": {
+ "useSingleLineSave": {
"anyOf": [
{
"type": "boolean"
@@ -25268,28 +24557,34 @@
"type": "null"
}
]
- },
- "region": {
+ }
+ },
+ "additionalProperties": false
+ },
+ "SetFlashcardRequestInput": {
+ "type": "object",
+ "properties": {
+ "blockquote": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "secretKey": {
+ "callout": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "skipTlsVerify": {
+ "deck": {
"anyOf": [
{
"type": "boolean"
@@ -25299,74 +24594,37 @@
}
]
},
- "timeout": {
+ "heading": {
"anyOf": [
{
- "type": "integer"
+ "type": "boolean"
},
{
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "SyncWebDAV": {
- "type": "object",
- "properties": {
- "concurrentReqs": {
- "type": "integer"
- },
- "endpoint": {
- "type": "string"
- },
- "password": {
- "type": "string"
- },
- "skipTlsVerify": {
- "type": "boolean"
},
- "timeout": {
- "type": "integer"
+ "list": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "username": {
- "type": "string"
- }
- },
- "required": [
- "concurrentReqs",
- "endpoint",
- "password",
- "skipTlsVerify",
- "timeout",
- "username"
- ],
- "additionalProperties": false
- },
- "SyncWebDAVData": {
- "type": "object",
- "properties": {
- "webdav": {
+ "mark": {
"anyOf": [
{
- "$ref": "#/$defs/SyncWebDAV"
+ "type": "boolean"
},
{
"type": "null"
}
]
- }
- },
- "required": [
- "webdav"
- ],
- "additionalProperties": false
- },
- "SyncWebDAVInput": {
- "type": "object",
- "properties": {
- "concurrentReqs": {
+ },
+ "maximumInterval": {
"anyOf": [
{
"type": "integer"
@@ -25376,37 +24634,37 @@
}
]
},
- "endpoint": {
+ "newCardLimit": {
"anyOf": [
{
- "type": "string"
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "password": {
+ "requestRetention": {
"anyOf": [
{
- "type": "string"
+ "type": "number"
},
{
"type": "null"
}
]
},
- "skipTlsVerify": {
+ "reviewCardLimit": {
"anyOf": [
{
- "type": "boolean"
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "timeout": {
+ "reviewMode": {
"anyOf": [
{
"type": "integer"
@@ -25416,333 +24674,280 @@
}
]
},
- "username": {
+ "superBlock": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "TagData": {
- "type": "object",
- "properties": {
- "children": {
+ },
+ "weights": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/TagData"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "string"
},
{
"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": {
+ "SetGraphConfRequestInput": {
"type": "object",
"properties": {
- "id": {
- "type": "string"
+ "conf": {
+ "$ref": "#/$defs/GraphConfigurationFieldsInput"
},
- "name": {
+ "type": {
"type": "string"
}
},
"required": [
- "id",
- "name"
+ "conf",
+ "type"
],
"additionalProperties": false
},
- "TailChildBlocksRequestInput": {
+ "SetInlineStylesRequestInput": {
"type": "object",
"properties": {
- "id": {
- "type": "string"
+ "app": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "ids": {
+ "av": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "$ref": "#/$defs/InlineStyleAVInput"
},
{
"type": "null"
}
]
},
- "n": {
+ "builtin": {
"anyOf": [
{
- "type": "number"
+ "$ref": "#/$defs/InlineStyleBuiltinInput"
},
{
"type": "null"
}
]
},
- "notebook": {
+ "order": {
"anyOf": [
{
- "type": "string"
+ "$ref": "#/$defs/InlineStyleOrderInput"
},
{
"type": "null"
}
]
+ },
+ "styles": {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/InlineStyleInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "version": {
+ "type": "number"
}
},
"required": [
- "id"
+ "styles",
+ "version"
],
"additionalProperties": false
},
- "TaskListMarkerRequestInput": {
+ "SetNotebookConfRequestInput": {
"type": "object",
"properties": {
- "id": {
- "type": "string"
+ "conf": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/NotebookConfPatchInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "marker": {
+ "notebook": {
"type": "string"
}
},
"required": [
- "id",
- "marker"
+ "notebook"
],
"additionalProperties": false
},
- "TemplateDocumentInfo": {
+ "SetNotebookIconRequestInput": {
"type": "object",
"properties": {
- "directory": {
+ "icon": {
"type": "string"
},
- "hasDatabase": {
- "type": "boolean"
- },
- "name": {
+ "notebook": {
"type": "string"
}
},
"required": [
- "directory",
- "hasDatabase",
- "name"
+ "icon",
+ "notebook"
],
"additionalProperties": false
},
- "TemplateDocumentRequestInput": {
+ "SetPetalEnabledRequestInput": {
"type": "object",
"properties": {
- "id": {
+ "app": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "enabled": {
+ "type": "boolean"
+ },
+ "packageName": {
"type": "string"
}
},
"required": [
- "id"
+ "enabled",
+ "packageName"
],
"additionalProperties": false
},
- "TemplateFileEntry": {
+ "SetPetalPublishEnabledRequestInput": {
"type": "object",
"properties": {
- "isDir": {
- "type": "boolean"
- },
- "isPackage": {
+ "enabled": {
"type": "boolean"
},
- "path": {
+ "packageName": {
"type": "string"
}
},
"required": [
- "isDir",
- "path"
+ "enabled",
+ "packageName"
],
"additionalProperties": false
},
- "TemplateFileRequestInput": {
+ "SetPublishRequestInput": {
"type": "object",
"properties": {
- "action": {
- "type": "string"
- },
- "content": {
- "type": "string"
- },
- "path": {
- "type": "string"
+ "auth": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingBasicAuthInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "revision": {
- "type": "string"
+ "enable": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "target": {
- "type": "string"
- }
- },
- "additionalProperties": false
- },
- "TemplateFileRevision": {
- "type": "object",
- "properties": {
- "revision": {
- "type": "string"
+ "port": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
- "required": [
- "revision"
- ],
"additionalProperties": false
},
- "TemplateFileSource": {
+ "SetRepoIndexRetentionDaysRequestInput": {
"type": "object",
"properties": {
- "content": {
- "type": "string"
- },
- "path": {
- "type": "string"
- },
- "revision": {
- "type": "string"
+ "days": {
+ "type": "number"
}
},
"required": [
- "content",
- "revision"
+ "days"
],
"additionalProperties": false
},
- "TemplatePlan": {
+ "SetRetentionIndexesDailyRequestInput": {
"type": "object",
"properties": {
- "count": {
- "type": "integer"
- },
- "id": {
- "type": "string"
- },
- "nodes": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/TemplatePlanNode"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- {
- "type": "null"
- }
- ]
+ "indexes": {
+ "type": "number"
}
},
"required": [
- "count",
- "id",
- "nodes"
+ "indexes"
],
"additionalProperties": false
},
- "TemplatePlanNode": {
+ "SetRiffCardsDueRequestInput": {
"type": "object",
"properties": {
- "depth": {
- "type": "integer"
- },
- "hPath": {
- "type": "string"
- },
- "id": {
- "type": "string"
- },
- "parentID": {
- "type": "string"
- },
- "title": {
- "type": "string"
+ "cardDues": {
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/RiffCardDueInput"
+ }
}
},
"required": [
- "depth",
- "hPath",
- "id",
- "parentID",
- "title"
+ "cardDues"
],
"additionalProperties": false
},
- "TransferBlockRefRequestInput": {
+ "SetSearchRequestInput": {
"type": "object",
"properties": {
- "fromID": {
- "type": "string"
- },
- "refIDs": {
+ "alias": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "reloadUI": {
+ "audioBlock": {
"anyOf": [
{
"type": "boolean"
@@ -25752,82 +24957,47 @@
}
]
},
- "toID": {
- "type": "string"
- }
- },
- "required": [
- "fromID",
- "toID"
- ],
- "additionalProperties": false
- },
- "TreeStatData": {
- "type": "object",
- "properties": {
- "containsEmbed": {
- "type": "boolean"
- },
- "embedStat": {
+ "backlinkMentionAlias": {
"anyOf": [
{
- "$ref": "#/$defs/EmbedStat"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "reqId": {
- "$ref": "#/$defs/JSONValue"
- },
- "stat": {
+ "backlinkMentionAnchor": {
"anyOf": [
{
- "$ref": "#/$defs/BlockStat"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "statWithEmbed": {
+ "backlinkMentionDoc": {
"anyOf": [
{
- "$ref": "#/$defs/BlockStat"
+ "type": "boolean"
},
{
"type": "null"
}
]
- }
- },
- "required": [
- "reqId",
- "stat"
- ],
- "additionalProperties": false
- },
- "TreeStatRequestInput": {
- "type": "object",
- "properties": {
- "id": {
- "type": "string"
},
- "ids": {
+ "backlinkMentionKeywordsLimit": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "includeEmbed": {
+ "backlinkMentionName": {
"anyOf": [
{
"type": "boolean"
@@ -25837,261 +25007,107 @@
}
]
},
- "notebook": {
+ "blockquote": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "reqId": {
+ "callout": {
"anyOf": [
{
- "$ref": "#/$defs/JSONValue"
+ "type": "boolean"
},
{
"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": {
+ },
+ "caseSensitive": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "packageName": {
- "type": "string"
- }
- },
- "required": [
- "packageName"
- ],
- "additionalProperties": false
- },
- "UninstallBazaarPluginRequestInput": {
- "type": "object",
- "properties": {
- "frontend": {
+ "codeBlock": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "keyword": {
+ "databaseBlock": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "packageName": {
- "type": "string"
- }
- },
- "required": [
- "packageName"
- ],
- "additionalProperties": false
- },
- "UninstallBazaarTemplateRequestInput": {
- "type": "object",
- "properties": {
- "keyword": {
+ "document": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "packageName": {
- "type": "string"
- }
- },
- "required": [
- "packageName"
- ],
- "additionalProperties": false
- },
- "UninstallBazaarThemeRequestInput": {
- "type": "object",
- "properties": {
- "frontend": {
+ "embedBlock": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "keyword": {
+ "hanSensitive": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "packageName": {
- "type": "string"
- }
- },
- "required": [
- "packageName"
- ],
- "additionalProperties": false
- },
- "UninstallBazaarWidgetRequestInput": {
- "type": "object",
- "properties": {
- "keyword": {
+ "heading": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"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": {
+ "htmlBlock": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"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": {
+ "ial": {
"anyOf": [
{
"type": "boolean"
@@ -26100,218 +25116,78 @@
"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"
+ "iframeBlock": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "removeKeys": {
+ "indexAssetPath": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "type": "boolean"
},
{
"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"
+ "limit": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "dom": {
- "type": "string"
- }
- },
- "required": [
- "converted",
- "dom"
- ],
- "additionalProperties": false
- },
- "WPSPresentationRequestInput": {
- "type": "object",
- "properties": {
- "data": {
- "type": "string"
+ "list": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "text": {
+ "listItem": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "type": {
- "type": "string"
- }
- },
- "required": [
- "data",
- "type"
- ],
- "additionalProperties": false
- },
- "WordCountData": {
- "type": "object",
- "properties": {
- "reqId": {
- "$ref": "#/$defs/JSONValue"
+ "mathBlock": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "stat": {
+ "memo": {
"anyOf": [
{
- "$ref": "#/$defs/BlockStat"
+ "type": "boolean"
},
{
"type": "null"
}
]
- }
- },
- "required": [
- "reqId",
- "stat"
- ],
- "additionalProperties": false
- },
- "WorkspaceAVBuiltinColorUpdateInput": {
- "type": "object",
- "properties": {
- "customized": {
+ },
+ "name": {
"anyOf": [
{
"type": "boolean"
@@ -26321,17 +25197,17 @@
}
]
},
- "dark": {
+ "paragraph": {
"anyOf": [
{
- "$ref": "#/$defs/InlineStyleThemeInput"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "hidden": {
+ "superBlock": {
"anyOf": [
{
"type": "boolean"
@@ -26341,126 +25217,9346 @@
}
]
},
- "index": {
+ "tabItem": {
"anyOf": [
{
- "type": "integer"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "light": {
+ "table": {
"anyOf": [
{
- "$ref": "#/$defs/InlineStyleThemeInput"
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "tabs": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "videoBlock": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "virtualRefAlias": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "virtualRefAnchor": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "virtualRefDoc": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "virtualRefName": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "widgetBlock": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "SetSecretsRequestInput": {
+ "type": "object",
+ "properties": {
+ "items": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingSecretInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "SetSnapshotMemoRequestInput": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "memo": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "memo"
+ ],
+ "additionalProperties": false
+ },
+ "SetSnippetRequestInput": {
+ "type": "object",
+ "properties": {
+ "snippets": {
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/SnippetInput"
+ }
+ }
+ },
+ "required": [
+ "snippets"
+ ],
+ "additionalProperties": false
+ },
+ "SetSyncLocalRequestInput": {
+ "type": "object",
+ "properties": {
+ "local": {
+ "$ref": "#/$defs/SyncLocalInput"
+ }
+ },
+ "required": [
+ "local"
+ ],
+ "additionalProperties": false
+ },
+ "SetSyncS3RequestInput": {
+ "type": "object",
+ "properties": {
+ "s3": {
+ "$ref": "#/$defs/SyncS3Input"
+ }
+ },
+ "required": [
+ "s3"
+ ],
+ "additionalProperties": false
+ },
+ "SetSyncWebDAVRequestInput": {
+ "type": "object",
+ "properties": {
+ "webdav": {
+ "$ref": "#/$defs/SyncWebDAVInput"
+ }
+ },
+ "required": [
+ "webdav"
+ ],
+ "additionalProperties": false
+ },
+ "SetVariablesRequestInput": {
+ "type": "object",
+ "properties": {
+ "items": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingVariableInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "SettingAI": {
+ "type": "object",
+ "properties": {
+ "agent": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingAgent"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "editing": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingEditing"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "embedding": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingEmbedding"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "imageGeneration": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingImageGeneration"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "mcp": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingMCP"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "providers": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingProvider"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "rerank": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingRerank"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "agent",
+ "editing",
+ "embedding",
+ "imageGeneration",
+ "mcp",
+ "providers",
+ "rerank"
+ ],
+ "additionalProperties": false
+ },
+ "SettingAgent": {
+ "type": "object",
+ "properties": {
+ "approvalPolicy": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingApprovalPolicy"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "capabilityPolicy": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingCapabilityPolicy"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "confirmTimeout": {
+ "type": "integer"
+ },
+ "maxCompletionTokens": {
+ "type": "integer"
+ },
+ "maxRetries": {
+ "type": "integer"
+ },
+ "maxToolCallRounds": {
+ "type": "integer"
+ },
+ "modelId": {
+ "type": "string"
+ },
+ "sessionTimeout": {
+ "type": "integer"
+ },
+ "skills": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingAgentSkills"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "streamIdleTimeout": {
+ "type": "integer"
+ },
+ "temperature": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "approvalPolicy",
+ "capabilityPolicy",
+ "confirmTimeout",
+ "maxCompletionTokens",
+ "maxRetries",
+ "maxToolCallRounds",
+ "modelId",
+ "sessionTimeout",
+ "skills",
+ "streamIdleTimeout",
+ "temperature"
+ ],
+ "additionalProperties": false
+ },
+ "SettingAgentInput": {
+ "type": "object",
+ "properties": {
+ "approvalPolicy": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingApprovalPolicyInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "capabilityPolicy": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingCapabilityPolicyInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "confirmTimeout": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "maxCompletionTokens": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "maxRetries": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "maxToolCallRounds": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "modelId": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "sessionTimeout": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "skills": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingAgentSkillsInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "streamIdleTimeout": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "temperature": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "SettingAgentSkills": {
+ "type": "object",
+ "properties": {
+ "userEnabled": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "userEnabled"
+ ],
+ "additionalProperties": false
+ },
+ "SettingAgentSkillsInput": {
+ "type": "object",
+ "properties": {
+ "userEnabled": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "SettingAppearance": {
+ "type": "object",
+ "properties": {
+ "bodyGradient": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingBodyGradient"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "closeButtonBehavior": {
+ "type": "integer"
+ },
+ "codeBlockThemeDark": {
+ "type": "string"
+ },
+ "codeBlockThemeLight": {
+ "type": "string"
+ },
+ "darkThemes": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingAppearanceTheme"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "entryVisibility": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingEntryVisibility"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "globalFontFamilies": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingEditorFont"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "hideStatusBar": {
+ "type": "boolean"
+ },
+ "hideToolbar": {
+ "type": "boolean"
+ },
+ "icon": {
+ "type": "string"
+ },
+ "iconVer": {
+ "type": "string"
+ },
+ "icons": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingAppearanceIcon"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "lang": {
+ "type": "string"
+ },
+ "lightThemes": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingAppearanceTheme"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "mode": {
+ "type": "integer"
+ },
+ "modeOS": {
+ "type": "boolean"
+ },
+ "notifications": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingNotifications"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "statusBar": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingStatusBar"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "themeDark": {
+ "type": "string"
+ },
+ "themeJS": {
+ "type": "boolean"
+ },
+ "themeLight": {
+ "type": "string"
+ },
+ "themeVer": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "bodyGradient",
+ "closeButtonBehavior",
+ "codeBlockThemeDark",
+ "codeBlockThemeLight",
+ "darkThemes",
+ "entryVisibility",
+ "globalFontFamilies",
+ "hideStatusBar",
+ "hideToolbar",
+ "icon",
+ "iconVer",
+ "icons",
+ "lang",
+ "lightThemes",
+ "mode",
+ "modeOS",
+ "notifications",
+ "statusBar",
+ "themeDark",
+ "themeJS",
+ "themeLight",
+ "themeVer"
+ ],
+ "additionalProperties": false
+ },
+ "SettingAppearanceIcon": {
+ "type": "object",
+ "properties": {
+ "label": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "label",
+ "name"
+ ],
+ "additionalProperties": false
+ },
+ "SettingAppearanceIconInput": {
+ "type": "object",
+ "properties": {
+ "label": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "name": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "SettingAppearanceTheme": {
+ "type": "object",
+ "properties": {
+ "frontends": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "label": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "label",
+ "name"
+ ],
+ "additionalProperties": false
+ },
+ "SettingAppearanceThemeInput": {
+ "type": "object",
+ "properties": {
+ "frontends": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "label": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "name": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "SettingApprovalPolicy": {
+ "type": "object",
+ "properties": {
+ "default": {
+ "type": "string"
+ },
+ "overrides": {
+ "anyOf": [
+ {
+ "type": "object",
+ "additionalProperties": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingCapabilityApproval"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "default",
+ "overrides"
+ ],
+ "additionalProperties": false
+ },
+ "SettingApprovalPolicyInput": {
+ "type": "object",
+ "properties": {
+ "default": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "overrides": {
+ "anyOf": [
+ {
+ "type": "object",
+ "additionalProperties": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingCapabilityApprovalInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "SettingAssetOpen": {
+ "type": "object",
+ "properties": {
+ "altClick": {
+ "type": "string"
+ },
+ "click": {
+ "type": "string"
+ },
+ "ctrlClick": {
+ "type": "string"
+ },
+ "shiftClick": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "altClick",
+ "click",
+ "ctrlClick",
+ "shiftClick"
+ ],
+ "additionalProperties": false
+ },
+ "SettingAssetOpenInput": {
+ "type": "object",
+ "properties": {
+ "altClick": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "click": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "ctrlClick": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "shiftClick": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "SettingBasicAuth": {
+ "type": "object",
+ "properties": {
+ "accounts": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingBasicAuthAccount"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "enable": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "accounts",
+ "enable"
+ ],
+ "additionalProperties": false
+ },
+ "SettingBasicAuthAccount": {
+ "type": "object",
+ "properties": {
+ "memo": {
+ "type": "string"
+ },
+ "password": {
+ "type": "string"
+ },
+ "username": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "memo",
+ "password",
+ "username"
+ ],
+ "additionalProperties": false
+ },
+ "SettingBasicAuthAccountInput": {
+ "type": "object",
+ "properties": {
+ "memo": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "password": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "username": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "SettingBasicAuthInput": {
+ "type": "object",
+ "properties": {
+ "accounts": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingBasicAuthAccountInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "enable": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "SettingBazaar": {
+ "type": "object",
+ "properties": {
+ "petalDisabled": {
+ "type": "boolean"
+ },
+ "trust": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "petalDisabled",
+ "trust"
+ ],
+ "additionalProperties": false
+ },
+ "SettingBodyGradient": {
+ "type": "object",
+ "properties": {
+ "dark": {
+ "$ref": "#/$defs/SettingBodyGradientColor"
+ },
+ "light": {
+ "$ref": "#/$defs/SettingBodyGradientColor"
+ },
+ "mode": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "dark",
+ "light",
+ "mode"
+ ],
+ "additionalProperties": false
+ },
+ "SettingBodyGradientColor": {
+ "type": "object",
+ "properties": {
+ "color": {
+ "type": "string"
+ },
+ "opacity": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "color",
+ "opacity"
+ ],
+ "additionalProperties": false
+ },
+ "SettingBodyGradientColorInput": {
+ "type": "object",
+ "properties": {
+ "color": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "opacity": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "SettingBodyGradientInput": {
+ "type": "object",
+ "properties": {
+ "dark": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingBodyGradientColorInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "light": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingBodyGradientColorInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "mode": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "SettingBootAppearance": {
+ "type": "object",
+ "properties": {
+ "appearance": {
+ "type": "string"
+ },
+ "backgroundColor": {
+ "type": "string"
+ },
+ "displayName": {
+ "type": "string"
+ },
+ "enabled": {
+ "type": "boolean"
+ },
+ "frontends": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "layers": {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingBootAppearanceLayer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "officialUI": {
+ "$ref": "#/$defs/SettingBootAppearanceOfficialUI"
+ },
+ "provider": {
+ "type": "string"
+ },
+ "style": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "enabled"
+ ],
+ "additionalProperties": false
+ },
+ "SettingBootAppearanceCurrent": {
+ "type": "object",
+ "properties": {
+ "appearance": {
+ "type": "string"
+ },
+ "provider": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "appearance",
+ "provider"
+ ],
+ "additionalProperties": false
+ },
+ "SettingBootAppearanceLayer": {
+ "type": "object",
+ "properties": {
+ "fit": {
+ "type": "string"
+ },
+ "id": {
+ "type": "string"
+ },
+ "position": {
+ "type": "string"
+ },
+ "poster": {
+ "type": "string"
+ },
+ "src": {
+ "type": "string"
+ },
+ "type": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "src",
+ "type"
+ ],
+ "additionalProperties": false
+ },
+ "SettingBootAppearanceOfficialUI": {
+ "type": "object",
+ "properties": {
+ "progressColor": {
+ "type": "string"
+ },
+ "showDetails": {
+ "type": "boolean"
+ },
+ "showLogo": {
+ "type": "boolean"
+ },
+ "textColor": {
+ "type": "string"
+ },
+ "trackColor": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "showDetails",
+ "showLogo"
+ ],
+ "additionalProperties": false
+ },
+ "SettingBootAppearanceRequestInput": {
+ "type": "object",
+ "properties": {
+ "appearance": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "provider": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "SettingBootAppearanceSelection": {
+ "type": "object",
+ "properties": {
+ "appearance": {
+ "type": "string"
+ },
+ "provider": {
+ "type": "string"
+ },
+ "schemaVersion": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "appearance",
+ "provider",
+ "schemaVersion"
+ ],
+ "additionalProperties": false
+ },
+ "SettingBootAppearancesData": {
+ "type": "object",
+ "properties": {
+ "appearances": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingBootAppearance"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "current": {
+ "$ref": "#/$defs/SettingBootAppearanceCurrent"
+ }
+ },
+ "required": [
+ "appearances",
+ "current"
+ ],
+ "additionalProperties": false
+ },
+ "SettingCapabilityApproval": {
+ "type": "object",
+ "properties": {
+ "actions": {
+ "anyOf": [
+ {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "default": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "actions",
+ "default"
+ ],
+ "additionalProperties": false
+ },
+ "SettingCapabilityApprovalInput": {
+ "type": "object",
+ "properties": {
+ "actions": {
+ "anyOf": [
+ {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "default": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "SettingCapabilityPolicy": {
+ "type": "object",
+ "properties": {
+ "default": {
+ "type": "string"
+ },
+ "overrides": {
+ "anyOf": [
+ {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "default",
+ "overrides"
+ ],
+ "additionalProperties": false
+ },
+ "SettingCapabilityPolicyInput": {
+ "type": "object",
+ "properties": {
+ "default": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "overrides": {
+ "anyOf": [
+ {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "SettingCloudUserRequestInput": {
+ "type": "object",
+ "properties": {
+ "token": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "SettingEditing": {
+ "type": "object",
+ "properties": {
+ "maxCompletionTokens": {
+ "type": "integer"
+ },
+ "maxHistoryMessages": {
+ "type": "integer"
+ },
+ "modelId": {
+ "type": "string"
+ },
+ "temperature": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "maxCompletionTokens",
+ "maxHistoryMessages",
+ "modelId",
+ "temperature"
+ ],
+ "additionalProperties": false
+ },
+ "SettingEditingInput": {
+ "type": "object",
+ "properties": {
+ "maxCompletionTokens": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "maxHistoryMessages": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "modelId": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "temperature": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "SettingEditor": {
+ "type": "object",
+ "properties": {
+ "allowHTMLBLockScript": {
+ "type": "boolean"
+ },
+ "allowSVGScript": {
+ "type": "boolean"
+ },
+ "assetOpen": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingAssetOpen"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "backlinkContainChildren": {
+ "type": "boolean"
+ },
+ "backlinkExpandCount": {
+ "type": "integer"
+ },
+ "backlinkHideReference": {
+ "type": "boolean"
+ },
+ "backlinkMentionExclude": {
+ "type": "string"
+ },
+ "backlinkShowBottom": {
+ "type": "boolean"
+ },
+ "backlinkSort": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "backmentionExpandCount": {
+ "type": "integer"
+ },
+ "backmentionSort": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "blockRefDynamicAnchorTextMaxLen": {
+ "type": "integer"
+ },
+ "checkBlockRef": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "codeFontFamilies": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingEditorFont"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "codeLigatures": {
+ "type": "boolean"
+ },
+ "codeLineWrap": {
+ "type": "boolean"
+ },
+ "codeSyntaxHighlightLineNum": {
+ "type": "boolean"
+ },
+ "codeTabSpaces": {
+ "type": "integer"
+ },
+ "cursorSurroundingLines": {
+ "type": "integer"
+ },
+ "databaseAttrClickMode": {
+ "type": "integer"
+ },
+ "databaseAttrHideEmpty": {
+ "type": "boolean"
+ },
+ "databaseAttrShow": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "databaseAttrUseTabs": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "databaseAttrViewMode": {
+ "type": "integer"
+ },
+ "displayBookmarkIcon": {
+ "type": "boolean"
+ },
+ "displayNetImgMark": {
+ "type": "boolean"
+ },
+ "dragHTMLFileToIframe": {
+ "type": "boolean"
+ },
+ "dynamicLoadBlocks": {
+ "type": "integer"
+ },
+ "embedBlockBreadcrumb": {
+ "type": "boolean"
+ },
+ "emoji": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "floatWindowDelay": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "floatWindowMode": {
+ "type": "integer"
+ },
+ "fontFamilies": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingEditorFont"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "fontFamily": {
+ "type": "string"
+ },
+ "fontFamilyDisplay": {
+ "type": "string"
+ },
+ "fontSize": {
+ "type": "integer"
+ },
+ "fontSizeScrollZoom": {
+ "type": "boolean"
+ },
+ "fontWeight": {
+ "type": "integer"
+ },
+ "fullWidth": {
+ "type": "boolean"
+ },
+ "generateHistoryInterval": {
+ "type": "integer"
+ },
+ "hashTagSearch": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "headingEmbedMode": {
+ "type": "integer"
+ },
+ "headingNumber": {
+ "type": "boolean"
+ },
+ "headingNumberFormat": {
+ "type": "string"
+ },
+ "historyRetentionDays": {
+ "type": "integer"
+ },
+ "justify": {
+ "type": "boolean"
+ },
+ "katexMacros": {
+ "type": "string"
+ },
+ "keepLoadedContent": {
+ "type": "boolean"
+ },
+ "listItemDotNumberClickFocus": {
+ "type": "boolean"
+ },
+ "listLogicalOutdent": {
+ "type": "boolean"
+ },
+ "markdown": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingMarkdown"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "onlySearchForDoc": {
+ "type": "boolean"
+ },
+ "pasteURLAutoConvert": {
+ "type": "boolean"
+ },
+ "plantUMLServePath": {
+ "type": "string"
+ },
+ "readOnly": {
+ "type": "boolean"
+ },
+ "rtl": {
+ "type": "boolean"
+ },
+ "spellcheck": {
+ "type": "boolean"
+ },
+ "spellcheckLanguages": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "virtualBlockRef": {
+ "type": "boolean"
+ },
+ "virtualBlockRefExclude": {
+ "type": "string"
+ },
+ "virtualBlockRefInclude": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "allowHTMLBLockScript",
+ "allowSVGScript",
+ "assetOpen",
+ "backlinkContainChildren",
+ "backlinkExpandCount",
+ "backlinkHideReference",
+ "backlinkMentionExclude",
+ "backlinkShowBottom",
+ "backlinkSort",
+ "backmentionExpandCount",
+ "backmentionSort",
+ "blockRefDynamicAnchorTextMaxLen",
+ "checkBlockRef",
+ "codeFontFamilies",
+ "codeLigatures",
+ "codeLineWrap",
+ "codeSyntaxHighlightLineNum",
+ "codeTabSpaces",
+ "cursorSurroundingLines",
+ "databaseAttrClickMode",
+ "databaseAttrHideEmpty",
+ "databaseAttrShow",
+ "databaseAttrUseTabs",
+ "databaseAttrViewMode",
+ "displayBookmarkIcon",
+ "displayNetImgMark",
+ "dragHTMLFileToIframe",
+ "dynamicLoadBlocks",
+ "embedBlockBreadcrumb",
+ "emoji",
+ "floatWindowDelay",
+ "floatWindowMode",
+ "fontFamilies",
+ "fontFamily",
+ "fontFamilyDisplay",
+ "fontSize",
+ "fontSizeScrollZoom",
+ "fontWeight",
+ "fullWidth",
+ "generateHistoryInterval",
+ "hashTagSearch",
+ "headingEmbedMode",
+ "headingNumber",
+ "headingNumberFormat",
+ "historyRetentionDays",
+ "justify",
+ "katexMacros",
+ "keepLoadedContent",
+ "listItemDotNumberClickFocus",
+ "listLogicalOutdent",
+ "markdown",
+ "onlySearchForDoc",
+ "pasteURLAutoConvert",
+ "plantUMLServePath",
+ "readOnly",
+ "rtl",
+ "spellcheck",
+ "spellcheckLanguages",
+ "virtualBlockRef",
+ "virtualBlockRefExclude",
+ "virtualBlockRefInclude"
+ ],
+ "additionalProperties": false
+ },
+ "SettingEditorFont": {
+ "type": "object",
+ "properties": {
+ "displayName": {
+ "type": "string"
+ },
+ "family": {
+ "type": "string"
+ },
+ "weight": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "displayName",
+ "family",
+ "weight"
+ ],
+ "additionalProperties": false
+ },
+ "SettingEditorFontInput": {
+ "type": "object",
+ "properties": {
+ "displayName": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "family": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "weight": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "SettingEmbedding": {
+ "type": "object",
+ "properties": {
+ "apiKey": {
+ "type": "string"
+ },
+ "baseURL": {
+ "type": "string"
+ },
+ "dimensions": {
+ "type": "integer"
+ },
+ "enabled": {
+ "type": "boolean"
+ },
+ "id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "timeout": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "apiKey",
+ "baseURL",
+ "dimensions",
+ "enabled",
+ "id",
+ "name",
+ "timeout"
+ ],
+ "additionalProperties": false
+ },
+ "SettingEmbeddingInput": {
+ "type": "object",
+ "properties": {
+ "apiKey": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "baseURL": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "dimensions": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "enabled": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "id": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "name": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "timeout": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "SettingEmojiRequestInput": {
+ "type": "object",
+ "properties": {
+ "emoji": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ },
+ "required": [
+ "emoji"
+ ],
+ "additionalProperties": false
+ },
+ "SettingEntryVisibility": {
+ "type": "object",
+ "properties": {
+ "active": {
+ "type": "string"
+ },
+ "profiles": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingEntryVisibilityProfile"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "version": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "active",
+ "profiles",
+ "version"
+ ],
+ "additionalProperties": false
+ },
+ "SettingEntryVisibilityInput": {
+ "type": "object",
+ "properties": {
+ "active": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "profiles": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingEntryVisibilityProfileInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "version": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "SettingEntryVisibilityProfile": {
+ "type": "object",
+ "properties": {
+ "entries": {
+ "anyOf": [
+ {
+ "type": "object",
+ "additionalProperties": {
+ "type": "boolean"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "orders": {
+ "anyOf": [
+ {
+ "type": "object",
+ "additionalProperties": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "entries",
+ "id",
+ "name",
+ "orders"
+ ],
+ "additionalProperties": false
+ },
+ "SettingEntryVisibilityProfileInput": {
+ "type": "object",
+ "properties": {
+ "entries": {
+ "anyOf": [
+ {
+ "type": "object",
+ "additionalProperties": {
+ "type": "boolean"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "id": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "name": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "orders": {
+ "anyOf": [
+ {
+ "type": "object",
+ "additionalProperties": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "SettingExport": {
+ "type": "object",
+ "properties": {
+ "addTitle": {
+ "type": "boolean"
+ },
+ "blockEmbedMode": {
+ "type": "integer"
+ },
+ "blockRefMode": {
+ "type": "integer"
+ },
+ "blockRefTextLeft": {
+ "type": "string"
+ },
+ "blockRefTextRight": {
+ "type": "string"
+ },
+ "docxTemplate": {
+ "type": "string"
+ },
+ "fileAnnotationRefMode": {
+ "type": "integer"
+ },
+ "imageWatermarkDesc": {
+ "type": "string"
+ },
+ "imageWatermarkStr": {
+ "type": "string"
+ },
+ "includeRelatedDocs": {
+ "type": "boolean"
+ },
+ "includeSubDocs": {
+ "type": "boolean"
+ },
+ "inlineMemo": {
+ "type": "boolean"
+ },
+ "markdownYFM": {
+ "type": "boolean"
+ },
+ "pandocBin": {
+ "type": "string"
+ },
+ "pandocParams": {
+ "type": "string"
+ },
+ "paragraphBeginningSpace": {
+ "type": "boolean"
+ },
+ "pdfFooter": {
+ "type": "string"
+ },
+ "pdfWatermarkDesc": {
+ "type": "string"
+ },
+ "pdfWatermarkStr": {
+ "type": "string"
+ },
+ "removeAssetsID": {
+ "type": "boolean"
+ },
+ "tagCloseMarker": {
+ "type": "string"
+ },
+ "tagOpenMarker": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "addTitle",
+ "blockEmbedMode",
+ "blockRefMode",
+ "blockRefTextLeft",
+ "blockRefTextRight",
+ "docxTemplate",
+ "fileAnnotationRefMode",
+ "imageWatermarkDesc",
+ "imageWatermarkStr",
+ "includeRelatedDocs",
+ "includeSubDocs",
+ "inlineMemo",
+ "markdownYFM",
+ "pandocBin",
+ "pandocParams",
+ "paragraphBeginningSpace",
+ "pdfFooter",
+ "pdfWatermarkDesc",
+ "pdfWatermarkStr",
+ "removeAssetsID",
+ "tagCloseMarker",
+ "tagOpenMarker"
+ ],
+ "additionalProperties": false
+ },
+ "SettingFileTree": {
+ "type": "object",
+ "properties": {
+ "allowCreateDeeper": {
+ "type": "boolean"
+ },
+ "alwaysSelectOpenedFile": {
+ "type": "boolean"
+ },
+ "boxDocEnabled": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "closeTabOnDoubleClick": {
+ "type": "boolean"
+ },
+ "closeTabsOnStart": {
+ "type": "boolean"
+ },
+ "createDocAtTop": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "docCreateSaveBox": {
+ "type": "string"
+ },
+ "docCreateSavePath": {
+ "type": "string"
+ },
+ "docCreateTemplatePath": {
+ "type": "string"
+ },
+ "docIconClickExpand": {
+ "type": "boolean"
+ },
+ "largeFileWarningSize": {
+ "type": "integer"
+ },
+ "maxListCount": {
+ "type": "integer"
+ },
+ "maxOpenTabCount": {
+ "type": "integer"
+ },
+ "noSplitScreenWhenOpenTab": {
+ "type": "boolean"
+ },
+ "openFilesUseCurrentTab": {
+ "type": "boolean"
+ },
+ "parentDocClickExpand": {
+ "type": "boolean"
+ },
+ "recentDocsMaxListCount": {
+ "type": "integer"
+ },
+ "refCreateSaveBox": {
+ "type": "string"
+ },
+ "refCreateSavePath": {
+ "type": "string"
+ },
+ "removeDocWithoutConfirm": {
+ "type": "boolean"
+ },
+ "shorthandSaveBox": {
+ "type": "string"
+ },
+ "shorthandSavePath": {
+ "type": "string"
+ },
+ "sort": {
+ "type": "integer"
+ },
+ "tabStartupMode": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "useSVGDefaultIcon": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "useSingleLineSave": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "allowCreateDeeper",
+ "alwaysSelectOpenedFile",
+ "boxDocEnabled",
+ "closeTabOnDoubleClick",
+ "closeTabsOnStart",
+ "createDocAtTop",
+ "docCreateSaveBox",
+ "docCreateSavePath",
+ "docCreateTemplatePath",
+ "docIconClickExpand",
+ "largeFileWarningSize",
+ "maxListCount",
+ "maxOpenTabCount",
+ "noSplitScreenWhenOpenTab",
+ "openFilesUseCurrentTab",
+ "parentDocClickExpand",
+ "recentDocsMaxListCount",
+ "refCreateSaveBox",
+ "refCreateSavePath",
+ "removeDocWithoutConfirm",
+ "shorthandSaveBox",
+ "shorthandSavePath",
+ "sort",
+ "tabStartupMode",
+ "useSVGDefaultIcon",
+ "useSingleLineSave"
+ ],
+ "additionalProperties": false
+ },
+ "SettingFlashcard": {
+ "type": "object",
+ "properties": {
+ "blockquote": {
+ "type": "boolean"
+ },
+ "callout": {
+ "type": "boolean"
+ },
+ "deck": {
+ "type": "boolean"
+ },
+ "heading": {
+ "type": "boolean"
+ },
+ "list": {
+ "type": "boolean"
+ },
+ "mark": {
+ "type": "boolean"
+ },
+ "maximumInterval": {
+ "type": "integer"
+ },
+ "newCardLimit": {
+ "type": "integer"
+ },
+ "requestRetention": {
+ "type": "number"
+ },
+ "reviewCardLimit": {
+ "type": "integer"
+ },
+ "reviewMode": {
+ "type": "integer"
+ },
+ "superBlock": {
+ "type": "boolean"
+ },
+ "weights": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "blockquote",
+ "callout",
+ "deck",
+ "heading",
+ "list",
+ "mark",
+ "maximumInterval",
+ "newCardLimit",
+ "requestRetention",
+ "reviewCardLimit",
+ "reviewMode",
+ "superBlock",
+ "weights"
+ ],
+ "additionalProperties": false
+ },
+ "SettingIconRequestInput": {
+ "type": "object",
+ "properties": {
+ "icon": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "icon"
+ ],
+ "additionalProperties": false
+ },
+ "SettingImageGeneration": {
+ "type": "object",
+ "properties": {
+ "modelId": {
+ "type": "string"
+ },
+ "outputFormat": {
+ "type": "string"
+ },
+ "quality": {
+ "type": "string"
+ },
+ "requestTimeout": {
+ "type": "integer"
+ },
+ "size": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "modelId",
+ "outputFormat",
+ "quality",
+ "requestTimeout",
+ "size"
+ ],
+ "additionalProperties": false
+ },
+ "SettingImageGenerationInput": {
+ "type": "object",
+ "properties": {
+ "modelId": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "outputFormat": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "quality": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "requestTimeout": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "size": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "SettingKeymapRequestInput": {
+ "type": "object",
+ "properties": {
+ "data": {
+ "anyOf": [
+ {
+ "type": "object",
+ "additionalProperties": {
+ "$ref": "#/$defs/JSONValue"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "SettingLogin2faRequestInput": {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "string"
+ },
+ "token": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "token"
+ ],
+ "additionalProperties": false
+ },
+ "SettingMCP": {
+ "type": "object",
+ "properties": {
+ "exposurePolicy": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingCapabilityPolicy"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "servers": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/SettingMCPServer"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "exposurePolicy",
+ "servers"
+ ],
+ "additionalProperties": false
+ },
+ "SettingMCPInput": {
+ "type": "object",
+ "properties": {
+ "exposurePolicy": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingCapabilityPolicyInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "servers": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/SettingMCPServerInput"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "SettingMCPServer": {
+ "type": "object",
+ "properties": {
+ "args": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "command": {
+ "type": "string"
+ },
+ "disableStandaloneSSE": {
+ "type": "boolean"
+ },
+ "enabled": {
+ "type": "boolean"
+ },
+ "env": {
+ "anyOf": [
+ {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "headers": {
+ "anyOf": [
+ {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "id": {
+ "type": "string"
+ },
+ "inheritEnv": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "name": {
+ "type": "string"
+ },
+ "timeout": {
+ "type": "integer"
+ },
+ "trustToolAnnotations": {
+ "type": "boolean"
+ },
+ "type": {
+ "type": "string"
+ },
+ "url": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "args",
+ "command",
+ "disableStandaloneSSE",
+ "enabled",
+ "env",
+ "headers",
+ "id",
+ "inheritEnv",
+ "name",
+ "timeout",
+ "trustToolAnnotations",
+ "type",
+ "url"
+ ],
+ "additionalProperties": false
+ },
+ "SettingMCPServerInput": {
+ "type": "object",
+ "properties": {
+ "args": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "command": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "disableStandaloneSSE": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "enabled": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "env": {
+ "anyOf": [
+ {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "headers": {
+ "anyOf": [
+ {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "id": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "inheritEnv": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "name": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "timeout": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "trustToolAnnotations": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "type": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "url": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "SettingMarkdown": {
+ "type": "object",
+ "properties": {
+ "blockFullWidthTaskList": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "codeBlockMiddleDot": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "inlineAsterisk": {
+ "type": "boolean"
+ },
+ "inlineFullWidthStrikethrough": {
+ "type": "boolean"
+ },
+ "inlineMark": {
+ "type": "boolean"
+ },
+ "inlineMath": {
+ "type": "boolean"
+ },
+ "inlineStrikethrough": {
+ "type": "boolean"
+ },
+ "inlineSub": {
+ "type": "boolean"
+ },
+ "inlineSup": {
+ "type": "boolean"
+ },
+ "inlineTag": {
+ "type": "boolean"
+ },
+ "inlineUnderscore": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "blockFullWidthTaskList",
+ "codeBlockMiddleDot",
+ "inlineAsterisk",
+ "inlineFullWidthStrikethrough",
+ "inlineMark",
+ "inlineMath",
+ "inlineStrikethrough",
+ "inlineSub",
+ "inlineSup",
+ "inlineTag",
+ "inlineUnderscore"
+ ],
+ "additionalProperties": false
+ },
+ "SettingMarkdownInput": {
+ "type": "object",
+ "properties": {
+ "blockFullWidthTaskList": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "codeBlockMiddleDot": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "inlineAsterisk": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "inlineFullWidthStrikethrough": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "inlineMark": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "inlineMath": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "inlineStrikethrough": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "inlineSub": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "inlineSup": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "inlineTag": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "inlineUnderscore": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "SettingModel": {
+ "type": "object",
+ "properties": {
+ "contextLength": {
+ "type": "integer"
+ },
+ "displayName": {
+ "type": "string"
+ },
+ "enabled": {
+ "type": "boolean"
+ },
+ "id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "enabled",
+ "id",
+ "name"
+ ],
+ "additionalProperties": false
+ },
+ "SettingModelInput": {
+ "type": "object",
+ "properties": {
+ "contextLength": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "displayName": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "enabled": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "id": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "name": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "SettingNotifications": {
+ "type": "object",
+ "properties": {
+ "browserCompatibility": {
+ "type": "boolean"
+ },
+ "docTreeMaxList": {
+ "type": "boolean"
+ },
+ "formatPainterTip": {
+ "type": "boolean"
+ },
+ "selectAllIncompleteTip": {
+ "type": "boolean"
+ },
+ "selectAllTip": {
+ "type": "boolean"
+ },
+ "tagMaxList": {
+ "type": "boolean"
+ },
+ "workspaceNotSSD": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "browserCompatibility",
+ "docTreeMaxList",
+ "tagMaxList",
+ "workspaceNotSSD"
+ ],
+ "additionalProperties": false
+ },
+ "SettingNotificationsInput": {
+ "type": "object",
+ "properties": {
+ "browserCompatibility": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "docTreeMaxList": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "formatPainterTip": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "selectAllIncompleteTip": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "selectAllTip": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "tagMaxList": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "workspaceNotSSD": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "SettingPetalDisabledData": {
+ "type": "object",
+ "properties": {
+ "dataChangePlugins": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "globalPetalChanged": {
+ "type": "boolean"
+ },
+ "globalPetalDisabled": {
+ "type": "boolean"
+ },
+ "globalPetalEnabled": {
+ "type": "boolean"
+ },
+ "globalPetalRevision": {
+ "type": "integer"
+ },
+ "reloadPlugins": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "uninstallPlugins": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "unloadPlugins": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "dataChangePlugins",
+ "globalPetalChanged",
+ "globalPetalDisabled",
+ "globalPetalEnabled",
+ "globalPetalRevision",
+ "reloadPlugins",
+ "uninstallPlugins",
+ "unloadPlugins"
+ ],
+ "additionalProperties": false
+ },
+ "SettingPetalDisabledRequestInput": {
+ "type": "object",
+ "properties": {
+ "petalDisabled": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "petalDisabled"
+ ],
+ "additionalProperties": false
+ },
+ "SettingProvider": {
+ "type": "object",
+ "properties": {
+ "apiKey": {
+ "type": "string"
+ },
+ "baseURL": {
+ "type": "string"
+ },
+ "displayName": {
+ "type": "string"
+ },
+ "enabled": {
+ "type": "boolean"
+ },
+ "headers": {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ }
+ },
+ "id": {
+ "type": "string"
+ },
+ "models": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingModel"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "protocol": {
+ "type": "string"
+ },
+ "requestTimeout": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "apiKey",
+ "baseURL",
+ "enabled",
+ "id",
+ "models",
+ "requestTimeout"
+ ],
+ "additionalProperties": false
+ },
+ "SettingProviderInput": {
+ "type": "object",
+ "properties": {
+ "apiKey": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "baseURL": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "displayName": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "enabled": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "headers": {
+ "anyOf": [
+ {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "id": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "models": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingModelInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "protocol": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "requestTimeout": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "SettingPublish": {
+ "type": "object",
+ "properties": {
+ "auth": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingBasicAuth"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "enable": {
+ "type": "boolean"
+ },
+ "port": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "auth",
+ "enable",
+ "port"
+ ],
+ "additionalProperties": false
+ },
+ "SettingPublishData": {
+ "type": "object",
+ "properties": {
+ "port": {
+ "type": "integer"
+ },
+ "publish": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingPublish"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "port",
+ "publish"
+ ],
+ "additionalProperties": false
+ },
+ "SettingRerank": {
+ "type": "object",
+ "properties": {
+ "apiKey": {
+ "type": "string"
+ },
+ "candidateCount": {
+ "type": "integer"
+ },
+ "enabled": {
+ "type": "boolean"
+ },
+ "endpoint": {
+ "type": "string"
+ },
+ "id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "requestFormat": {
+ "type": "string"
+ },
+ "timeout": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "apiKey",
+ "candidateCount",
+ "enabled",
+ "endpoint",
+ "id",
+ "name",
+ "requestFormat",
+ "timeout"
+ ],
+ "additionalProperties": false
+ },
+ "SettingRerankInput": {
+ "type": "object",
+ "properties": {
+ "apiKey": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "candidateCount": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "enabled": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "endpoint": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "id": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "name": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "requestFormat": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "timeout": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "SettingSearch": {
+ "type": "object",
+ "properties": {
+ "alias": {
+ "type": "boolean"
+ },
+ "audioBlock": {
+ "type": "boolean"
+ },
+ "backlinkMentionAlias": {
+ "type": "boolean"
+ },
+ "backlinkMentionAnchor": {
+ "type": "boolean"
+ },
+ "backlinkMentionDoc": {
+ "type": "boolean"
+ },
+ "backlinkMentionKeywordsLimit": {
+ "type": "integer"
+ },
+ "backlinkMentionName": {
+ "type": "boolean"
+ },
+ "blockquote": {
+ "type": "boolean"
+ },
+ "callout": {
+ "type": "boolean"
+ },
+ "caseSensitive": {
+ "type": "boolean"
+ },
+ "codeBlock": {
+ "type": "boolean"
+ },
+ "databaseBlock": {
+ "type": "boolean"
+ },
+ "document": {
+ "type": "boolean"
+ },
+ "embedBlock": {
+ "type": "boolean"
+ },
+ "hanSensitive": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "heading": {
+ "type": "boolean"
+ },
+ "htmlBlock": {
+ "type": "boolean"
+ },
+ "ial": {
+ "type": "boolean"
+ },
+ "iframeBlock": {
+ "type": "boolean"
+ },
+ "indexAssetPath": {
+ "type": "boolean"
+ },
+ "limit": {
+ "type": "integer"
+ },
+ "list": {
+ "type": "boolean"
+ },
+ "listItem": {
+ "type": "boolean"
+ },
+ "mathBlock": {
+ "type": "boolean"
+ },
+ "memo": {
+ "type": "boolean"
+ },
+ "name": {
+ "type": "boolean"
+ },
+ "paragraph": {
+ "type": "boolean"
+ },
+ "superBlock": {
+ "type": "boolean"
+ },
+ "tabItem": {
+ "type": "boolean"
+ },
+ "table": {
+ "type": "boolean"
+ },
+ "tabs": {
+ "type": "boolean"
+ },
+ "videoBlock": {
+ "type": "boolean"
+ },
+ "virtualRefAlias": {
+ "type": "boolean"
+ },
+ "virtualRefAnchor": {
+ "type": "boolean"
+ },
+ "virtualRefDoc": {
+ "type": "boolean"
+ },
+ "virtualRefName": {
+ "type": "boolean"
+ },
+ "widgetBlock": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "alias",
+ "audioBlock",
+ "backlinkMentionAlias",
+ "backlinkMentionAnchor",
+ "backlinkMentionDoc",
+ "backlinkMentionKeywordsLimit",
+ "backlinkMentionName",
+ "blockquote",
+ "callout",
+ "caseSensitive",
+ "codeBlock",
+ "databaseBlock",
+ "document",
+ "embedBlock",
+ "hanSensitive",
+ "heading",
+ "htmlBlock",
+ "ial",
+ "iframeBlock",
+ "indexAssetPath",
+ "limit",
+ "list",
+ "listItem",
+ "mathBlock",
+ "memo",
+ "name",
+ "paragraph",
+ "superBlock",
+ "tabItem",
+ "table",
+ "tabs",
+ "videoBlock",
+ "virtualRefAlias",
+ "virtualRefAnchor",
+ "virtualRefDoc",
+ "virtualRefName",
+ "widgetBlock"
+ ],
+ "additionalProperties": false
+ },
+ "SettingSecret": {
+ "type": "object",
+ "properties": {
+ "allowedHosts": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "name": {
+ "type": "string"
+ },
+ "value": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "allowedHosts",
+ "name",
+ "value"
+ ],
+ "additionalProperties": false
+ },
+ "SettingSecretInput": {
+ "type": "object",
+ "properties": {
+ "allowedHosts": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "name": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "value": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "SettingSecrets": {
+ "type": "object",
+ "properties": {
+ "items": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingSecret"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "items"
+ ],
+ "additionalProperties": false
+ },
+ "SettingSnpt": {
+ "type": "object",
+ "properties": {
+ "enabledCSS": {
+ "type": "boolean"
+ },
+ "enabledJS": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "enabledCSS",
+ "enabledJS"
+ ],
+ "additionalProperties": false
+ },
+ "SettingStatusBar": {
+ "type": "object",
+ "properties": {
+ "msgDataSyncDisabled": {
+ "type": "boolean"
+ },
+ "msgTaskAssetDatabaseIndexCommitDisabled": {
+ "type": "boolean"
+ },
+ "msgTaskDatabaseIndexCommitDisabled": {
+ "type": "boolean"
+ },
+ "msgTaskHistoryDatabaseIndexCommitDisabled": {
+ "type": "boolean"
+ },
+ "msgTaskHistoryGenerateFileDisabled": {
+ "type": "boolean"
+ },
+ "version": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "msgDataSyncDisabled",
+ "msgTaskAssetDatabaseIndexCommitDisabled",
+ "msgTaskDatabaseIndexCommitDisabled",
+ "msgTaskHistoryDatabaseIndexCommitDisabled",
+ "msgTaskHistoryGenerateFileDisabled",
+ "version"
+ ],
+ "additionalProperties": false
+ },
+ "SettingStatusBarInput": {
+ "type": "object",
+ "properties": {
+ "msgDataSyncDisabled": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "msgTaskAssetDatabaseIndexCommitDisabled": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "msgTaskDatabaseIndexCommitDisabled": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "msgTaskHistoryDatabaseIndexCommitDisabled": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "msgTaskHistoryGenerateFileDisabled": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "version": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "SettingThemeRequestInput": {
+ "type": "object",
+ "properties": {
+ "appearanceMode": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "modes": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "number"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "theme": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "SettingUser": {
+ "type": "object",
+ "properties": {
+ "userAvatarURL": {
+ "type": "string"
+ },
+ "userCreateTime": {
+ "type": "string"
+ },
+ "userHomeBImgURL": {
+ "type": "string"
+ },
+ "userId": {
+ "type": "string"
+ },
+ "userIntro": {
+ "type": "string"
+ },
+ "userName": {
+ "type": "string"
+ },
+ "userNickname": {
+ "type": "string"
+ },
+ "userSiYuanAssetSize": {
+ "type": "number"
+ },
+ "userSiYuanOneTimePayStatus": {
+ "type": "number"
+ },
+ "userSiYuanPointExchangeRepoSize": {
+ "type": "number"
+ },
+ "userSiYuanProExpireTime": {
+ "type": "number"
+ },
+ "userSiYuanRepoSize": {
+ "type": "number"
+ },
+ "userSiYuanSubscriptionPlan": {
+ "type": "number"
+ },
+ "userSiYuanSubscriptionStatus": {
+ "type": "number"
+ },
+ "userSiYuanSubscriptionType": {
+ "type": "number"
+ },
+ "userTitles": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingUserTitle"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "userToken": {
+ "type": "string"
+ },
+ "userTokenExpireTime": {
+ "type": "string"
+ },
+ "userTrafficAPIGet": {
+ "type": "number"
+ },
+ "userTrafficAPIPut": {
+ "type": "number"
+ },
+ "userTrafficDownload": {
+ "type": "number"
+ },
+ "userTrafficTime": {
+ "type": "number"
+ },
+ "userTrafficUpload": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "userAvatarURL",
+ "userCreateTime",
+ "userHomeBImgURL",
+ "userId",
+ "userIntro",
+ "userName",
+ "userNickname",
+ "userSiYuanAssetSize",
+ "userSiYuanOneTimePayStatus",
+ "userSiYuanPointExchangeRepoSize",
+ "userSiYuanProExpireTime",
+ "userSiYuanRepoSize",
+ "userSiYuanSubscriptionPlan",
+ "userSiYuanSubscriptionStatus",
+ "userSiYuanSubscriptionType",
+ "userTitles",
+ "userToken",
+ "userTokenExpireTime",
+ "userTrafficAPIGet",
+ "userTrafficAPIPut",
+ "userTrafficDownload",
+ "userTrafficTime",
+ "userTrafficUpload"
+ ],
+ "additionalProperties": false
+ },
+ "SettingUserTitle": {
+ "type": "object",
+ "properties": {
+ "desc": {
+ "type": "string"
+ },
+ "icon": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "desc",
+ "icon",
+ "name"
+ ],
+ "additionalProperties": false
+ },
+ "SettingVariable": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string"
+ },
+ "value": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "name",
+ "value"
+ ],
+ "additionalProperties": false
+ },
+ "SettingVariableInput": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "value": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "SettingVariables": {
+ "type": "object",
+ "properties": {
+ "items": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingVariable"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "items"
+ ],
+ "additionalProperties": false
+ },
+ "Shorthand": {
+ "type": "object",
+ "properties": {
+ "hCreated": {
+ "type": "string"
+ },
+ "oId": {
+ "type": "string"
+ },
+ "shorthandContent": {
+ "type": "string"
+ },
+ "shorthandDesc": {
+ "type": "string"
+ },
+ "shorthandFrom": {
+ "type": "integer"
+ },
+ "shorthandMd": {
+ "type": "string"
+ },
+ "shorthandTitle": {
+ "type": "string"
+ },
+ "shorthandURL": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "hCreated",
+ "oId",
+ "shorthandContent",
+ "shorthandDesc",
+ "shorthandFrom",
+ "shorthandMd",
+ "shorthandTitle",
+ "shorthandURL"
+ ],
+ "additionalProperties": false
+ },
+ "ShorthandPage": {
+ "type": "object",
+ "properties": {
+ "pagination": {
+ "$ref": "#/$defs/ShorthandPagination"
+ },
+ "shorthands": {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/Shorthand"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ }
+ },
+ "required": [
+ "pagination",
+ "shorthands"
+ ],
+ "additionalProperties": false
+ },
+ "ShorthandPagination": {
+ "type": "object",
+ "properties": {
+ "paginationPageCount": {
+ "type": "integer"
+ },
+ "paginationPageNums": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "integer"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "paginationRecordCount": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "paginationPageCount",
+ "paginationPageNums",
+ "paginationRecordCount"
+ ],
+ "additionalProperties": false
+ },
+ "ShorthandsData": {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer"
+ },
+ "data": {
+ "$ref": "#/$defs/ShorthandPage"
+ },
+ "msg": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "data",
+ "msg"
+ ],
+ "additionalProperties": false
+ },
+ "ShorthandsRequestInput": {
+ "type": "object",
+ "properties": {
+ "page": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "page"
+ ],
+ "additionalProperties": false
+ },
+ "Snippet": {
+ "type": "object",
+ "properties": {
+ "content": {
+ "type": "string"
+ },
+ "disabledInPublish": {
+ "type": "boolean"
+ },
+ "enabled": {
+ "type": "boolean"
+ },
+ "id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "type": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "content",
+ "disabledInPublish",
+ "enabled",
+ "id",
+ "name",
+ "type"
+ ],
+ "additionalProperties": false
+ },
+ "SnippetInput": {
+ "type": "object",
+ "properties": {
+ "content": {
+ "type": "string"
+ },
+ "disabledInPublish": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "enabled": {
+ "type": "boolean"
+ },
+ "id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "type": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "content",
+ "enabled",
+ "id",
+ "name",
+ "type"
+ ],
+ "additionalProperties": false
+ },
+ "SnippetsData": {
+ "type": "object",
+ "properties": {
+ "snippets": {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/Snippet"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ }
+ },
+ "required": [
+ "snippets"
+ ],
+ "additionalProperties": false
+ },
+ "StorageKeyRequestInput": {
+ "type": "object",
+ "properties": {
+ "key": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "key"
+ ],
+ "additionalProperties": false
+ },
+ "StorageKeysRequestInput": {
+ "type": "object",
+ "properties": {
+ "keys": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ },
+ "required": [
+ "keys"
+ ],
+ "additionalProperties": false
+ },
+ "StorageRemoveKeysRequestInput": {
+ "type": "object",
+ "properties": {
+ "app": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "keys": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ },
+ "required": [
+ "keys"
+ ],
+ "additionalProperties": false
+ },
+ "StorageRemoveRequestInput": {
+ "type": "object",
+ "properties": {
+ "app": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "key": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "key"
+ ],
+ "additionalProperties": false
+ },
+ "StorageSetKeysRequestInput": {
+ "type": "object",
+ "properties": {
+ "app": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "keyVals": {
+ "type": "object",
+ "additionalProperties": {
+ "$ref": "#/$defs/JSONValue"
+ }
+ }
+ },
+ "required": [
+ "keyVals"
+ ],
+ "additionalProperties": false
+ },
+ "StorageSetRequestInput": {
+ "type": "object",
+ "properties": {
+ "app": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "key": {
+ "type": "string"
+ },
+ "val": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/JSONValue"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "key"
+ ],
+ "additionalProperties": false
+ },
+ "SwapBlockRefRequestInput": {
+ "type": "object",
+ "properties": {
+ "defID": {
+ "type": "string"
+ },
+ "includeChildren": {
+ "type": "boolean"
+ },
+ "refID": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "defID",
+ "includeChildren",
+ "refID"
+ ],
+ "additionalProperties": false
+ },
+ "SyncAssetDownloadModeData": {
+ "type": "object",
+ "properties": {
+ "assetDownloadMode": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "assetDownloadMode"
+ ],
+ "additionalProperties": false
+ },
+ "SyncEnabledRequestInput": {
+ "type": "object",
+ "properties": {
+ "enabled": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "enabled"
+ ],
+ "additionalProperties": false
+ },
+ "SyncInfoData": {
+ "type": "object",
+ "properties": {
+ "kernel": {
+ "type": "string"
+ },
+ "kernels": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SyncOnlineKernel"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "stat": {
+ "type": "string"
+ },
+ "synced": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "kernel",
+ "kernels",
+ "stat",
+ "synced"
+ ],
+ "additionalProperties": false
+ },
+ "SyncIntervalRequestInput": {
+ "type": "object",
+ "properties": {
+ "interval": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "interval"
+ ],
+ "additionalProperties": false
+ },
+ "SyncLANRequestInput": {
+ "type": "object",
+ "properties": {
+ "enabled": {
+ "type": "boolean"
+ },
+ "maxConcurrentReqs": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "enabled"
+ ],
+ "additionalProperties": false
+ },
+ "SyncLANStatus": {
+ "type": "object",
+ "properties": {
+ "active": {
+ "type": "boolean"
+ },
+ "connectedPeers": {
+ "type": "integer"
+ },
+ "discoveredPeers": {
+ "type": "integer"
+ },
+ "enabled": {
+ "type": "boolean"
+ },
+ "maxConcurrentReqs": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "active",
+ "connectedPeers",
+ "discoveredPeers",
+ "enabled",
+ "maxConcurrentReqs"
+ ],
+ "additionalProperties": false
+ },
+ "SyncLocal": {
+ "type": "object",
+ "properties": {
+ "concurrentReqs": {
+ "type": "integer"
+ },
+ "endpoint": {
+ "type": "string"
+ },
+ "timeout": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "concurrentReqs",
+ "endpoint",
+ "timeout"
+ ],
+ "additionalProperties": false
+ },
+ "SyncLocalData": {
+ "type": "object",
+ "properties": {
+ "local": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SyncLocal"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "local"
+ ],
+ "additionalProperties": false
+ },
+ "SyncLocalInput": {
+ "type": "object",
+ "properties": {
+ "concurrentReqs": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "endpoint": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "timeout": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "SyncModeRequestInput": {
+ "type": "object",
+ "properties": {
+ "mode": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "mode"
+ ],
+ "additionalProperties": false
+ },
+ "SyncNameRequestInput": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "name"
+ ],
+ "additionalProperties": false
+ },
+ "SyncOnlineKernel": {
+ "type": "object",
+ "properties": {
+ "hostname": {
+ "type": "string"
+ },
+ "id": {
+ "type": "string"
+ },
+ "os": {
+ "type": "string"
+ },
+ "ver": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "hostname",
+ "id",
+ "os",
+ "ver"
+ ],
+ "additionalProperties": false
+ },
+ "SyncProviderExportData": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string"
+ },
+ "zip": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "name",
+ "zip"
+ ],
+ "additionalProperties": false
+ },
+ "SyncProviderImportRequestInput": {
+ "type": "object",
+ "properties": {
+ "file": {
+ "type": "string",
+ "format": "binary"
+ }
+ },
+ "additionalProperties": false
+ },
+ "SyncProviderRequestInput": {
+ "type": "object",
+ "properties": {
+ "provider": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "provider"
+ ],
+ "additionalProperties": false
+ },
+ "SyncS3": {
+ "type": "object",
+ "properties": {
+ "accessKey": {
+ "type": "string"
+ },
+ "bucket": {
+ "type": "string"
+ },
+ "concurrentReqs": {
+ "type": "integer"
+ },
+ "endpoint": {
+ "type": "string"
+ },
+ "pathStyle": {
+ "type": "boolean"
+ },
+ "region": {
+ "type": "string"
+ },
+ "secretKey": {
+ "type": "string"
+ },
+ "skipTlsVerify": {
+ "type": "boolean"
+ },
+ "timeout": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "accessKey",
+ "bucket",
+ "concurrentReqs",
+ "endpoint",
+ "pathStyle",
+ "region",
+ "secretKey",
+ "skipTlsVerify",
+ "timeout"
+ ],
+ "additionalProperties": false
+ },
+ "SyncS3Data": {
+ "type": "object",
+ "properties": {
+ "s3": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SyncS3"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "s3"
+ ],
+ "additionalProperties": false
+ },
+ "SyncS3Input": {
+ "type": "object",
+ "properties": {
+ "accessKey": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "bucket": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "concurrentReqs": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "endpoint": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "pathStyle": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "region": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "secretKey": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "skipTlsVerify": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "timeout": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "SyncWebDAV": {
+ "type": "object",
+ "properties": {
+ "concurrentReqs": {
+ "type": "integer"
+ },
+ "endpoint": {
+ "type": "string"
+ },
+ "password": {
+ "type": "string"
+ },
+ "skipTlsVerify": {
+ "type": "boolean"
+ },
+ "timeout": {
+ "type": "integer"
+ },
+ "username": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "concurrentReqs",
+ "endpoint",
+ "password",
+ "skipTlsVerify",
+ "timeout",
+ "username"
+ ],
+ "additionalProperties": false
+ },
+ "SyncWebDAVData": {
+ "type": "object",
+ "properties": {
+ "webdav": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SyncWebDAV"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "webdav"
+ ],
+ "additionalProperties": false
+ },
+ "SyncWebDAVInput": {
+ "type": "object",
+ "properties": {
+ "concurrentReqs": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "endpoint": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "password": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "skipTlsVerify": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "timeout": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "username": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "TagData": {
+ "type": "object",
+ "properties": {
+ "children": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/TagData"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "count": {
+ "type": "integer"
+ },
+ "depth": {
+ "type": "integer"
+ },
+ "label": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "type": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "children",
+ "count",
+ "depth",
+ "label",
+ "name",
+ "type"
+ ],
+ "additionalProperties": false
+ },
+ "TagSnapshotRequestInput": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "name"
+ ],
+ "additionalProperties": false
+ },
+ "TailChildBlocksRequestInput": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "ids": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "n": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "notebook": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "id"
+ ],
+ "additionalProperties": false
+ },
+ "TaskListMarkerRequestInput": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "marker": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "marker"
+ ],
+ "additionalProperties": false
+ },
+ "TemplateDocumentInfo": {
+ "type": "object",
+ "properties": {
+ "directory": {
+ "type": "string"
+ },
+ "hasDatabase": {
+ "type": "boolean"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "directory",
+ "hasDatabase",
+ "name"
+ ],
+ "additionalProperties": false
+ },
+ "TemplateDocumentRequestInput": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id"
+ ],
+ "additionalProperties": false
+ },
+ "TemplateFileEntry": {
+ "type": "object",
+ "properties": {
+ "isDir": {
+ "type": "boolean"
+ },
+ "isPackage": {
+ "type": "boolean"
+ },
+ "path": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "isDir",
+ "path"
+ ],
+ "additionalProperties": false
+ },
+ "TemplateFileRequestInput": {
+ "type": "object",
+ "properties": {
+ "action": {
+ "type": "string"
+ },
+ "content": {
+ "type": "string"
+ },
+ "path": {
+ "type": "string"
+ },
+ "revision": {
+ "type": "string"
+ },
+ "target": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false
+ },
+ "TemplateFileRevision": {
+ "type": "object",
+ "properties": {
+ "revision": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "revision"
+ ],
+ "additionalProperties": false
+ },
+ "TemplateFileSource": {
+ "type": "object",
+ "properties": {
+ "content": {
+ "type": "string"
+ },
+ "path": {
+ "type": "string"
+ },
+ "revision": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "content",
+ "revision"
+ ],
+ "additionalProperties": false
+ },
+ "TemplatePlan": {
+ "type": "object",
+ "properties": {
+ "count": {
+ "type": "integer"
+ },
+ "id": {
+ "type": "string"
+ },
+ "nodes": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/TemplatePlanNode"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "count",
+ "id",
+ "nodes"
+ ],
+ "additionalProperties": false
+ },
+ "TemplatePlanNode": {
+ "type": "object",
+ "properties": {
+ "depth": {
+ "type": "integer"
+ },
+ "hPath": {
+ "type": "string"
+ },
+ "id": {
+ "type": "string"
+ },
+ "parentID": {
+ "type": "string"
+ },
+ "title": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "depth",
+ "hPath",
+ "id",
+ "parentID",
+ "title"
+ ],
+ "additionalProperties": false
+ },
+ "TransferBlockRefRequestInput": {
+ "type": "object",
+ "properties": {
+ "fromID": {
+ "type": "string"
+ },
+ "refIDs": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "reloadUI": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "toID": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "fromID",
+ "toID"
+ ],
+ "additionalProperties": false
+ },
+ "TreeStatData": {
+ "type": "object",
+ "properties": {
+ "containsEmbed": {
+ "type": "boolean"
+ },
+ "embedStat": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/EmbedStat"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "reqId": {
+ "$ref": "#/$defs/JSONValue"
+ },
+ "stat": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/BlockStat"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "statWithEmbed": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/BlockStat"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "reqId",
+ "stat"
+ ],
+ "additionalProperties": false
+ },
+ "TreeStatRequestInput": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "ids": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "includeEmbed": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "notebook": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "reqId": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/JSONValue"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "id"
+ ],
+ "additionalProperties": false
+ },
+ "TrimmedIDRequestInput": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id"
+ ],
+ "additionalProperties": false
+ },
+ "UnfoldedParentData": {
+ "type": "object",
+ "properties": {
+ "parentID": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "parentID"
+ ],
+ "additionalProperties": false
+ },
+ "UninstallBazaarIconRequestInput": {
+ "type": "object",
+ "properties": {
+ "keyword": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "packageName": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "packageName"
+ ],
+ "additionalProperties": false
+ },
+ "UninstallBazaarPluginRequestInput": {
+ "type": "object",
+ "properties": {
+ "frontend": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "keyword": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "packageName": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "packageName"
+ ],
+ "additionalProperties": false
+ },
+ "UninstallBazaarTemplateRequestInput": {
+ "type": "object",
+ "properties": {
+ "keyword": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "packageName": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "packageName"
+ ],
+ "additionalProperties": false
+ },
+ "UninstallBazaarThemeRequestInput": {
+ "type": "object",
+ "properties": {
+ "frontend": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "keyword": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "packageName": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "packageName"
+ ],
+ "additionalProperties": false
+ },
+ "UninstallBazaarWidgetRequestInput": {
+ "type": "object",
+ "properties": {
+ "keyword": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "packageName": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "packageName"
+ ],
+ "additionalProperties": false
+ },
+ "UnlockNotebookRequestInput": {
+ "type": "object",
+ "properties": {
+ "notebook": {
+ "type": "string"
+ },
+ "password": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "notebook",
+ "password"
+ ],
+ "additionalProperties": false
+ },
+ "UnzipRequestInput": {
+ "type": "object",
+ "properties": {
+ "path": {
+ "type": "string"
+ },
+ "zipPath": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "path",
+ "zipPath"
+ ],
+ "additionalProperties": false
+ },
+ "UpdateBazaarPackageRequestInput": {
+ "type": "object",
+ "properties": {
+ "frontend": {
+ "type": "string"
+ },
+ "keyword": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "packageName": {
+ "type": "string"
+ },
+ "packageType": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "frontend",
+ "packageName",
+ "packageType"
+ ],
+ "additionalProperties": false
+ },
+ "UpdateBlockRequestInput": {
+ "type": "object",
+ "properties": {
+ "data": {
+ "type": "string"
+ },
+ "dataType": {
+ "type": "string"
+ },
+ "id": {
+ "type": "string"
+ },
+ "lockType": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "data",
+ "dataType",
+ "id"
+ ],
+ "additionalProperties": false
+ },
+ "UpdateChannelRequestInput": {
+ "type": "object",
+ "properties": {
+ "updateChannel": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "updateChannel"
+ ],
+ "additionalProperties": false
+ },
+ "UpdateEmbedBlockRequestInput": {
+ "type": "object",
+ "properties": {
+ "content": {
+ "type": "string"
+ },
+ "id": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "content",
+ "id"
+ ],
+ "additionalProperties": false
+ },
+ "UpdatePinnedDocsRequestInput": {
+ "type": "object",
+ "properties": {
+ "action": {
+ "type": "string"
+ },
+ "after": {
+ "type": "boolean"
+ },
+ "ids": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "targetID": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "action",
+ "ids"
+ ],
+ "additionalProperties": false
+ },
+ "UploadAssetRequestInput": {
+ "type": "object",
+ "properties": {
+ "assetsDirPath": {
+ "type": "string"
+ },
+ "file[]": {
+ "type": "array",
+ "items": {
+ "type": "string",
+ "format": "binary"
+ }
+ },
+ "id": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false
+ },
+ "UploadCloudSnapshotRequestInput": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "tag": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "tag"
+ ],
+ "additionalProperties": false
+ },
+ "ViewStatePatchRequestInput": {
+ "type": "object",
+ "properties": {
+ "key": {
+ "type": "string"
+ },
+ "removeKeys": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "values": {
+ "type": "object",
+ "additionalProperties": {
+ "$ref": "#/$defs/JSONValue"
+ }
+ }
+ },
+ "required": [
+ "key"
+ ],
+ "additionalProperties": false
+ },
+ "VirtualBlockRefRequestInput": {
+ "type": "object",
+ "properties": {
+ "keywords": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ },
+ "required": [
+ "keywords"
+ ],
+ "additionalProperties": false
+ },
+ "WPSPresentationData": {
+ "type": "object",
+ "properties": {
+ "converted": {
+ "type": "boolean"
+ },
+ "dom": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "converted",
+ "dom"
+ ],
+ "additionalProperties": false
+ },
+ "WPSPresentationRequestInput": {
+ "type": "object",
+ "properties": {
+ "data": {
+ "type": "string"
+ },
+ "text": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "type": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "data",
+ "type"
+ ],
+ "additionalProperties": false
+ },
+ "WordCountData": {
+ "type": "object",
+ "properties": {
+ "reqId": {
+ "$ref": "#/$defs/JSONValue"
+ },
+ "stat": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/BlockStat"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "reqId",
+ "stat"
+ ],
+ "additionalProperties": false
+ },
+ "WorkspaceAVBuiltinColorUpdateInput": {
+ "type": "object",
+ "properties": {
+ "customized": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "dark": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/InlineStyleThemeInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "hidden": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "index": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "light": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/InlineStyleThemeInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "WorkspaceAVPaletteRequestInput": {
+ "type": "object",
+ "properties": {
+ "app": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "builtinColors": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/WorkspaceAVBuiltinColorUpdateInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "colors": {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AttributeViewCustomColorInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "order": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ },
+ "required": [
+ "colors",
+ "order"
+ ],
+ "additionalProperties": false
+ },
+ "WorkspaceInfoData": {
+ "type": "object",
+ "properties": {
+ "siyuanVer": {
+ "type": "string"
+ },
+ "workspaceDir": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "siyuanVer",
+ "workspaceDir"
+ ],
+ "additionalProperties": false
+ },
+ "ZipRequestInput": {
+ "type": "object",
+ "properties": {
+ "path": {
+ "type": "string"
+ },
+ "zipPath": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "path",
+ "zipPath"
+ ],
+ "additionalProperties": false
+ }
+ },
+ "endpoints": [
+ {
+ "method": "GET",
+ "path": "/api/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"
+ }
},
- {
- "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/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/WorkspaceAVBuiltinColorUpdateInput"
+ "$ref": "#/$defs/AIEditorAction"
},
{
"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"
- }
- },
- "required": [
- "siyuanVer",
- "workspaceDir"
- ],
- "additionalProperties": false
+ ]
+ }
},
- "ZipRequestInput": {
- "type": "object",
- "properties": {
- "path": {
- "type": "string"
- },
- "zipPath": {
- "type": "string"
- }
- },
- "required": [
- "path",
- "zipPath"
- ],
- "additionalProperties": false
- }
- },
- "endpoints": [
{
- "method": "GET",
- "path": "/api/plugin",
- "handler": "listLoadedPluginsGET",
+ "method": "POST",
+ "path": "/api/ai/embeddingStat",
+ "handler": "embeddingStat",
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -26479,17 +34575,46 @@
"data": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/LoadedPlugin"
- },
- {
- "type": "null"
- }
- ]
- }
+ "$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"
@@ -26505,6 +34630,42 @@
"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
},
{
@@ -26550,12 +34711,12 @@
}
},
{
- "method": "GET",
- "path": "/api/plugin/rpc",
- "handler": "getLoadedPluginRPC",
- "body": "json",
+ "method": "POST",
+ "path": "/api/ai/lsCapabilities",
+ "handler": "lsCapabilities",
+ "body": "none",
"request": {
- "$ref": "#/$defs/LoadedPluginRequestInput"
+ "$ref": "#/$defs/EmptyRequestInput"
},
"response": {
"anyOf": [
@@ -26571,7 +34732,10 @@
"data": {
"anyOf": [
{
- "$ref": "#/$defs/LoadedPlugin"
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/AICapabilityManifest"
+ }
},
{
"type": "null"
@@ -26595,11 +34759,7 @@
"code": {
"type": "integer",
"enum": [
- -1,
- 1,
- 2,
- 3,
- 4
+ -1
]
},
"data": {
@@ -26636,12 +34796,12 @@
}
},
{
- "method": "GET",
- "path": "/api/plugin/rpc/:name",
- "handler": "getLoadedPluginRPCByName",
- "body": "json",
+ "method": "POST",
+ "path": "/api/ai/mcpEnvironmentVariables",
+ "handler": "mcpEnvironmentVariables",
+ "body": "none",
"request": {
- "$ref": "#/$defs/LoadedPluginRequestInput"
+ "$ref": "#/$defs/EmptyRequestInput"
},
"response": {
"anyOf": [
@@ -26655,14 +34815,7 @@
]
},
"data": {
- "anyOf": [
- {
- "$ref": "#/$defs/LoadedPlugin"
- },
- {
- "type": "null"
- }
- ]
+ "$ref": "#/$defs/AIMCPEnvironmentData"
},
"msg": {
"type": "string"
@@ -26681,11 +34834,7 @@
"code": {
"type": "integer",
"enum": [
- -1,
- 1,
- 2,
- 3,
- 4
+ -1
]
},
"data": {
@@ -26722,12 +34871,12 @@
}
},
{
- "method": "GET",
- "path": "/api/system/bootProgress",
- "handler": "bootProgress",
- "body": "none",
+ "method": "POST",
+ "path": "/api/ai/mcpOAuthAuthorize",
+ "handler": "mcpOAuthAuthorize",
+ "body": "json",
"request": {
- "$ref": "#/$defs/EmptyRequestInput"
+ "$ref": "#/$defs/AIMCPIDRequestInput"
},
"response": {
"anyOf": [
@@ -26741,7 +34890,7 @@
]
},
"data": {
- "$ref": "#/$defs/BootProgressData"
+ "type": "null"
},
"msg": {
"type": "string"
@@ -26797,12 +34946,12 @@
}
},
{
- "method": "GET",
- "path": "/api/system/version",
- "handler": "version",
- "body": "none",
+ "method": "POST",
+ "path": "/api/ai/mcpOAuthDisconnect",
+ "handler": "mcpOAuthDisconnect",
+ "body": "json",
"request": {
- "$ref": "#/$defs/EmptyRequestInput"
+ "$ref": "#/$defs/AIMCPIDRequestInput"
},
"response": {
"anyOf": [
@@ -26816,7 +34965,7 @@
]
},
"data": {
- "type": "string"
+ "type": "null"
},
"msg": {
"type": "string"
@@ -26872,40 +35021,31 @@
}
},
{
- "method": "GET",
- "path": "/ws/plugin/rpc",
- "handler": "pluginJsonRpcWebSocket",
+ "method": "POST",
+ "path": "/api/ai/mcpStatus",
+ "handler": "mcpStatus",
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
},
"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": "array",
+ "items": {
+ "$ref": "#/$defs/AIMCPStatus"
+ }
},
{
"type": "null"
@@ -26921,68 +35061,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",
@@ -27024,60 +35103,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/ai/reindexEmbedding",
+ "handler": "reindexEmbedding",
+ "body": "none",
"request": {
- "$ref": "#/$defs/CheckActivationCodeRequestInput"
+ "$ref": "#/$defs/EmptyRequestInput"
},
"response": {
"anyOf": [
@@ -27110,8 +35144,7 @@
"code": {
"type": "integer",
"enum": [
- -1,
- 1
+ -1
]
},
"data": {
@@ -27128,9 +35161,6 @@
],
"additionalProperties": false
},
- {
- "type": "null"
- },
{
"type": "null"
}
@@ -27152,8 +35182,8 @@
},
{
"method": "POST",
- "path": "/api/account/deactivate",
- "handler": "deactivateUser",
+ "path": "/api/ai/retryFailedEmbedding",
+ "handler": "retryFailedEmbedding",
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -27227,11 +35257,11 @@
},
{
"method": "POST",
- "path": "/api/account/login",
- "handler": "login",
- "body": "json",
+ "path": "/api/ai/testEmbeddingModel",
+ "handler": "testEmbeddingModel",
+ "body": "none",
"request": {
- "$ref": "#/$defs/AccountLoginRequestInput"
+ "$ref": "#/$defs/EmptyRequestInput"
},
"response": {
"anyOf": [
@@ -27245,14 +35275,7 @@
]
},
"data": {
- "anyOf": [
- {
- "$ref": "#/$defs/AccountLoginData"
- },
- {
- "type": "null"
- }
- ]
+ "$ref": "#/$defs/AIEmbeddingTestData"
},
"msg": {
"type": "string"
@@ -27271,9 +35294,7 @@
"code": {
"type": "integer",
"enum": [
- -1,
- 1,
- 10
+ -1
]
},
"data": {
@@ -27292,16 +35313,6 @@
},
{
"type": "null"
- },
- {
- "anyOf": [
- {
- "$ref": "#/$defs/AccountLoginData"
- },
- {
- "type": "null"
- }
- ]
}
]
},
@@ -27321,11 +35332,11 @@
},
{
"method": "POST",
- "path": "/api/account/startFreeTrial",
- "handler": "startFreeTrial",
- "body": "none",
+ "path": "/api/ai/testModel",
+ "handler": "testModel",
+ "body": "json",
"request": {
- "$ref": "#/$defs/EmptyRequestInput"
+ "$ref": "#/$defs/AIModelRequestInput"
},
"response": {
"anyOf": [
@@ -27339,7 +35350,7 @@
]
},
"data": {
- "type": "null"
+ "$ref": "#/$defs/AIModelTestData"
},
"msg": {
"type": "string"
@@ -27396,11 +35407,11 @@
},
{
"method": "POST",
- "path": "/api/account/useActivationcode",
- "handler": "useActivationcode",
- "body": "json",
+ "path": "/api/ai/testRerankModel",
+ "handler": "testRerankModel",
+ "body": "none",
"request": {
- "$ref": "#/$defs/ActivationCodeRequestInput"
+ "$ref": "#/$defs/EmptyRequestInput"
},
"response": {
"anyOf": [
@@ -27414,7 +35425,7 @@
]
},
"data": {
- "type": "null"
+ "$ref": "#/$defs/AIRerankTestData"
},
"msg": {
"type": "string"