Skip to content

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

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

Daniel8fc1df589486
diff --git a/app/src/types/api/index.d.ts b/app/src/types/api/index.d.ts
index 0f4585d5c8..48620e972a 100644
--- a/app/src/types/api/index.d.ts
+++ b/app/src/types/api/index.d.ts
@@ -1230,6 +1230,60 @@ export type NetImageAssetsRequestInput = { "id": string; "url"?: string | null;
export type NetworkData = { "proxy": NetworkProxy | null; };
+export type NetworkEchoAttributeTypeAndValue = { "Type": Array<number> | null; "Value": null | string | number | boolean | Array<number> | (NetworkEchoRawValue & { "BitLength"?: never; }) | (NetworkEchoBitString & { "Class"?: never; "FullBytes"?: never; "IsCompound"?: never; "Tag"?: never; }); };
+
+export type NetworkEchoBitString = { "BitLength": number; "Bytes": string | null; };
+
+export type NetworkEchoCertificate = { "AuthorityKeyId": string | null; "BasicConstraintsValid": boolean; "CRLDistributionPoints": Array<string> | null; "DNSNames": Array<string> | null; "EmailAddresses": Array<string> | null; "ExcludedDNSDomains": Array<string> | null; "ExcludedEmailAddresses": Array<string> | null; "ExcludedIPRanges": Array<NetworkEchoIPNet | null> | null; "ExcludedURIDomains": Array<string> | null; "ExtKeyUsage": Array<number> | null; "Extensions": Array<NetworkEchoExtension> | null; "ExtraExtensions": Array<NetworkEchoExtension> | null; "IPAddresses": Array<string> | null; "InhibitAnyPolicy": number; "InhibitAnyPolicyZero": boolean; "InhibitPolicyMapping": number; "InhibitPolicyMappingZero": boolean; "IsCA": boolean; "Issuer": NetworkEchoName; "IssuingCertificateURL": Array<string> | null; "KeyUsage": number; "MaxPathLen": number; "MaxPathLenZero": boolean; "NotAfter": string; "NotBefore": string; "OCSPServer": Array<string> | null; "PermittedDNSDomains": Array<string> | null; "PermittedDNSDomainsCritical": boolean; "PermittedEmailAddresses": Array<string> | null; "PermittedIPRanges": Array<NetworkEchoIPNet | null> | null; "PermittedURIDomains": Array<string> | null; "Policies": Array<string> | null; "PolicyIdentifiers": Array<Array<number> | null> | null; "PolicyMappings": Array<NetworkEchoPolicyMapping> | null; "PublicKey": null | string | (NetworkEchoRSAPublicKey & { "Curve"?: never; "G"?: never; "P"?: never; "Q"?: never; "X"?: never; "Y"?: never; }) | (NetworkEchoECDSAPublicKey & { "E"?: never; "G"?: never; "N"?: never; "P"?: never; "Q"?: never; }) | (NetworkEchoDSAPublicKey & { "Curve"?: never; "E"?: never; "N"?: never; "X"?: never; }); "PublicKeyAlgorithm": number; "Raw": string | null; "RawIssuer": string | null; "RawSubject": string | null; "RawSubjectPublicKeyInfo": string | null; "RawTBSCertificate": string | null; "RequireExplicitPolicy": number; "RequireExplicitPolicyZero": boolean; "SerialNumber": number | null; "Signature": string | null; "SignatureAlgorithm": number; "Subject": NetworkEchoName; "SubjectKeyId": string | null; "URIs": Array<NetworkEchoURL | null> | null; "UnhandledCriticalExtensions": Array<Array<number> | null> | null; "UnknownExtKeyUsage": Array<Array<number> | null> | null; "Version": number; };
+
+export type NetworkEchoConnectionState = { "CipherSuite": number; "CurveID": number; "DidResume": boolean; "ECHAccepted": boolean; "HandshakeComplete": boolean; "HelloRetryRequest": boolean; "NegotiatedProtocol": string; "NegotiatedProtocolIsMutual": boolean; "OCSPResponse": string | null; "PeerCertificates": Array<NetworkEchoCertificate | null> | null; "ServerName": string; "SignedCertificateTimestamps": Array<string | null> | null; "TLSUnique": string | null; "VerifiedChains": Array<Array<NetworkEchoCertificate | null> | null> | null; "Version": number; };
+
+export type NetworkEchoContext = { "ClientIP": string; "ContentType": string; "FullPath": string; "HandlerNames": Array<string> | null; "IsWebsocket": boolean; "Params": Array<NetworkEchoParam> | null; "RawData": string | null; "RemoteIP": string; };
+
+export type NetworkEchoCookie = { "Domain": string; "Expires": string; "HttpOnly": boolean; "MaxAge": number; "Name": string; "Partitioned": boolean; "Path": string; "Quoted": boolean; "Raw": string; "RawExpires": string; "SameSite": number; "Secure": boolean; "Unparsed": Array<string> | null; "Value": string; };
+
+export type NetworkEchoCurveParams = { "B": number | null; "BitSize": number; "Gx": number | null; "Gy": number | null; "N": number | null; "Name": string; "P": number | null; };
+
+export type NetworkEchoDSAPublicKey = { "G": number | null; "P": number | null; "Q": number | null; "Y": number | null; };
+
+export type NetworkEchoData = { "Context": NetworkEchoContext; "Request": NetworkEchoRequest; "URL": NetworkEchoURLInfo; "User": NetworkEchoUser; };
+
+export type NetworkEchoECDSAPublicKey = { "Curve": (Record<string, never> & { "B"?: never; "BitSize"?: never; "Gx"?: never; "Gy"?: never; "N"?: never; "Name"?: never; "P"?: never; }) | NetworkEchoCurveParams | null; "X": number | null; "Y": number | null; };
+
+export type NetworkEchoExtension = { "Critical": boolean; "Id": Array<number> | null; "Value": string | null; };
+
+export type NetworkEchoFile = { "Content": string; "Filename": string; "Header": Record<string, Array<string> | null> | null; "Size": number; };
+
+export type NetworkEchoIPNet = { "IP": string; "Mask": string | null; };
+
+export type NetworkEchoMultipart = { "File": Record<string, Array<NetworkEchoFile> | null> | null; "Value": Record<string, Array<string> | null> | null; };
+
+export type NetworkEchoName = { "CommonName": string; "Country": Array<string> | null; "ExtraNames": Array<NetworkEchoAttributeTypeAndValue> | null; "Locality": Array<string> | null; "Names": Array<NetworkEchoAttributeTypeAndValue> | null; "Organization": Array<string> | null; "OrganizationalUnit": Array<string> | null; "PostalCode": Array<string> | null; "Province": Array<string> | null; "SerialNumber": string; "StreetAddress": Array<string> | null; };
+
+export type NetworkEchoParam = { "Key": string; "Value": string; };
+
+export type NetworkEchoParameters = { "G": number | null; "P": number | null; "Q": number | null; };
+
+export type NetworkEchoPolicyMapping = { "IssuerDomainPolicy": string; "SubjectDomainPolicy": string; };
+
+export type NetworkEchoRSAPublicKey = { "E": number; "N": number | null; };
+
+export type NetworkEchoRawValue = { "Bytes": string | null; "Class": number; "FullBytes": string | null; "IsCompound": boolean; "Tag": number; };
+
+export type NetworkEchoRequest = { "Close": boolean; "ContentLength": number; "Cookies": Array<NetworkEchoCookie | null> | null; "Form": Record<string, Array<string> | null> | null; "Header": Record<string, Array<string> | null> | null; "Host": string; "Method": string; "MultipartForm": NetworkEchoMultipart | null; "PostForm": Record<string, Array<string> | null> | null; "Proto": string; "ProtoMajor": number; "ProtoMinor": number; "Referer": string; "RemoteAddr": string; "TLS": NetworkEchoConnectionState | null; "Trailer": Record<string, Array<string> | null> | null; "TransferEncoding": Array<string> | null; "URL": NetworkEchoURL | null; "UserAgent": string; };
+
+export type NetworkEchoURL = { "ForceQuery": boolean; "Fragment": string; "Host": string; "OmitHost": boolean; "Opaque": string; "Path": string; "RawFragment": string; "RawPath": string; "RawQuery": string; "Scheme": string; "User": NetworkEchoUserinfo | null; };
+
+export type NetworkEchoURLInfo = { "EscapedFragment": string; "EscapedPath": string; "Hostname": string; "IsAbs": boolean; "Port": string; "Query": Record<string, Array<string> | null> | null; "Redacted": string; "RequestURI": string; "String": string; };
+
+export type NetworkEchoUser = { "Exists": boolean; "Password": string; "Username": string; };
+
+export type NetworkEchoUserinfo = Record<string, never>;
+
+export type NetworkForwardData = { "body": string; "bodyEncoding": string; "contentType": string; "elapsed": number; "headers": Record<string, Array<string> | null> | null; "status": number; "url": string; };
+
+export type NetworkForwardRequestInput = { "contentType"?: string | null; "headers"?: Array<{ [key: string]: JSONValue } | null> | null; "method"?: string | null; "payload"?: JSONValue | null; "payloadEncoding"?: string | null; "redirect"?: boolean | null; "responseEncoding"?: string | null; "timeout"?: number | null; "url": string; };
+
export type NetworkProxy = { "host": string; "port": string; "scheme": string; };
export type NetworkProxyInput = { "host": string; "port": string; "scheme": string; };
@@ -1320,6 +1374,8 @@ export type PrependBlockRequestInput = { "data": string; "dataType": string; "pa
export type ProcessPDFRequestInput = { "id": string; "merge"?: boolean | null; "mergeContentHeadingMode"?: string | null; "mergeDocHeadingMode"?: string | null; "path": string; "removeAssets": boolean; "watermark": boolean; };
+export type ProxyFailure = { "code": number; "msg": string; };
+
export type PublishedBlockInfo = { "publishAccessRequired": true; "rootID": string; "rootIcon": string; "rootTitle": string; "rootTitleEmpty": boolean; };
export type PutFileRequestInput = { "app"?: string; "file"?: Blob; "isDir"?: string; "modTime"?: string; "path"?: string; };
@@ -1950,18 +2006,13 @@ export type ZipRequestInput = { "path": string; "zipPath": string; };
export type APILegacyGETPath =
"/api/icon/getDynamicIcon" |
- "/api/network/echo" |
- "/api/network/echo/*path" |
- "/api/network/proxy" |
"/api/system/bootProgressSSE" |
"/api/system/getBootAppearance" |
"/api/system/getCaptcha" |
"/api/system/oidc/callback" |
"/es/broadcast/subscribe" |
- "/es/network/proxy" |
"/plugin/private/:name/*path" |
- "/ws/broadcast" |
- "/ws/network/proxy";
+ "/ws/broadcast";
export interface APIGETRoutes {
"/api/ai/mcp/oauth/callback/:flowID": {
@@ -1971,6 +2022,23 @@ export interface APIGETRoutes {
output: "binary";
contentVariants: [{"status":200,"contentType":"text/html"},{"status":400,"contentType":"text/html"},{"status":403,"contentType":"text/plain"}];
};
+ "/api/network/echo": {
+ request: Blob;
+ response: { "code": 0; "data": NetworkEchoData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "raw";
+ };
+ "/api/network/echo/*path": {
+ request: Blob;
+ response: { "code": 0; "data": NetworkEchoData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "raw";
+ };
+ "/api/network/proxy": {
+ request: Blob;
+ response: Blob | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "raw";
+ output: "proxy";
+ proxy: {"kind":"http","contentType":"application/octet-stream","upstreamStatuses":true};
+ };
"/api/plugin": {
request: EmptyRequestInput;
response: { "code": 0; "data": Array<LoadedPlugin | null> | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
@@ -1996,6 +2064,20 @@ export interface APIGETRoutes {
response: { "code": 0; "data": string; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
};
+ "/es/network/proxy": {
+ request: EmptyRequestInput;
+ response: Blob | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "none";
+ output: "proxy";
+ proxy: {"kind":"eventSource","contentType":"text/event-stream","upstreamStatuses":true};
+ };
+ "/ws/network/proxy": {
+ request: EmptyRequestInput;
+ response: Blob | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "none";
+ output: "proxy";
+ proxy: {"kind":"websocket","upstreamStatuses":false,"frames":["text","binary","close"]};
+ };
"/ws/plugin/rpc": {
request: EmptyRequestInput;
response: (PluginRPCFailure & { "code"?: never; "data"?: never; "msg"?: never; }) | ({ "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; } & { "error"?: never; "id"?: never; "jsonrpc"?: never; });
@@ -2014,10 +2096,6 @@ export interface APIGETRoutes {
export type APILegacyPOSTPath =
"/api/extension/copy" |
- "/api/network/echo" |
- "/api/network/echo/*path" |
- "/api/network/forwardProxy" |
- "/api/network/proxy" |
"/api/system/addCustomEmoji" |
"/api/system/checkUpdate" |
"/api/system/checkWorkspaceDir" |
@@ -3804,6 +3882,28 @@ export interface APIPOSTRoutes {
response: { "code": 0; "data": WPSPresentationData; "msg": string; } | { "code": -1; "data": ({ "closeTimeout": number; } & { "converted"?: never; "dom"?: never; }) | null | (WPSPresentationData & { "closeTimeout"?: never; }); "msg": string; };
body: "json";
};
+ "/api/network/echo": {
+ request: Blob;
+ response: { "code": 0; "data": NetworkEchoData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "raw";
+ };
+ "/api/network/echo/*path": {
+ request: Blob;
+ response: { "code": 0; "data": NetworkEchoData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "raw";
+ };
+ "/api/network/forwardProxy": {
+ request: NetworkForwardRequestInput;
+ response: { "code": 0; "data": NetworkForwardData; "msg": string; } | { "code": -1 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 10; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "json";
+ };
+ "/api/network/proxy": {
+ request: Blob;
+ response: Blob | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "raw";
+ output: "proxy";
+ proxy: {"kind":"http","contentType":"application/octet-stream","upstreamStatuses":true};
+ };
"/api/notebook/changeMasterPassword": {
request: ChangeMasterPasswordRequestInput;
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 2e3f8087a2..a3fac5e5ca 100644
--- a/app/tests/api-contract.types.ts
+++ b/app/tests/api-contract.types.ts
@@ -449,3 +449,27 @@ fetchPost("/api/av/getAttributeViewPrimaryKeyValues", {id: "av", page: "2"});
fetchPost("/api/av/renderSnapshotAttributeView", {id: "av"});
// @ts-expect-error 条目 ID 数组只接受字符串。
fetchPost("/api/av/createAttributeViewItemDocs", {avID: "av", blockID: "block", saveMode: "subDoc", itemIDs: [1]});
+
+fetchPost("/api/network/forwardProxy", {url: "https://example.com", payload: {nested: [null, true, 1]}, headers: [{"X-Value": [1, true]}]}, response => {
+ if (response.code === 0) {
+ const upstreamStatus: number = response.data.status;
+ const body: string = response.data.body;
+ void [upstreamStatus, body];
+ }
+});
+// @ts-expect-error 转发目标地址不可缺失。
+fetchPost("/api/network/forwardProxy", {payload: "body"});
+// @ts-expect-error 超时参数必须是数字。
+fetchPost("/api/network/forwardProxy", {url: "https://example.com", timeout: "1000"});
+fetchPost("/api/network/echo", {arbitrary: [1, true]}, response => {
+ if (response.code === 0) {
+ const raw: string | null = response.data.Context.RawData;
+ const version: number | undefined = response.data.Request.TLS?.Version;
+ void [raw, version];
+ // @ts-expect-error 回显字段具有确定的结构。
+ const invalid: string = response.data.Request.ContentLength;
+ void invalid;
+ }
+});
+const networkRawBody: APIPOSTRoutes["/api/network/proxy"]["request"] = new Blob(["raw"]);
+void networkRawBody;
diff --git a/docs/API-CONTRACTS.md b/docs/API-CONTRACTS.md
index 208f92b90d..2c2cf839ab 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
+Network contracts retain request bytes, multipart fields, headers, URL and TLS diagnostics, including complete certificate public-key structures and large integers. Forward proxy options preserve validation order, numeric truncation, response encodings, and protocol-defined JSON payloads. HTTP, EventSource, and WebSocket proxies retain upstream statuses and bytes, repeated-header behavior, security headers, stream cancellation, and connection cleanup. Echo wildcard paths bind their own adapter while sharing the same handler behavior.
+
Attribute-view contracts declare table, gallery, and kanban results separately and retain missing base fields, cell patches, and null values. Known patch fields retain their supplied presence without filling omitted fields with zero values. Current, history, and snapshot rendering use their corresponding request types; callers handle error payloads before updating views. Row sorting, publish admission, encrypted-notebook leases, and fast JSON rendering preserve their existing behavior. Shared frontend and plugin declarations reflect the fields actually present in each view and cell.
AI contracts retain provider configuration, model discovery and matching, confirmation decisions, session extensions, and numeric and omission semantics. Editor and agent streams declare their actual SSE events; disconnection closes upstream requests, and stream lifetimes remain within the request. OAuth pages retain their media types, HTTP statuses, and security headers. Session permission notifications use `WithAfterWrite` to preserve response-before-broadcast ordering. Arbitrary JSON remains limited to protocol extension fields and tool results.
diff --git a/docs/API-CONTRACTS.zh-CN.md b/docs/API-CONTRACTS.zh-CN.md
index 901a55a9c0..c0bbf91f2d 100644
--- a/docs/API-CONTRACTS.zh-CN.md
+++ b/docs/API-CONTRACTS.zh-CN.md
@@ -24,6 +24,8 @@
## 兼容要求
+网络契约保留请求字节、表单字段、请求头、URL 和 TLS 诊断信息,包括完整证书公钥结构与大整数。转发代理选项保留校验顺序、数字截断、响应编码及协议定义的 JSON 载荷。HTTP、EventSource 和 WebSocket 代理保留上游状态与字节、重复请求头行为、安全响应头、流取消和连接清理。回显通配路径绑定独立适配器,并共用相同业务处理。
+
数据库契约分别声明表格、画廊和看板结果,保留基础字段缺失、单元格局部修改及 null 值。已知修改字段保留传入状态,不以零值补齐未提供的字段。当前、历史和快照渲染使用对应请求类型,调用端先处理错误载荷再更新视图。行排序、发布准入、加密笔记本租约和快速 JSON 渲染保留既有行为。前端和插件的共享声明按视图及单元格实际提供的字段同步。
AI 契约保留供应商配置、模型发现与匹配、确认结果、会话扩展字段,以及数值和省略语义。编辑器和智能体流声明实际 SSE 事件,断开连接时关闭上游请求,流生命周期仍位于请求内部。OAuth 页面保留媒体类型、HTTP 状态和安全响应头。会话权限通知使用 `WithAfterWrite`,保留先响应再广播的顺序。任意 JSON 仅用于协议扩展字段和工具结果。
diff --git a/kernel/api/contract_network_test.go b/kernel/api/contract_network_test.go
new file mode 100644
index 0000000000..5ad48c3763
--- /dev/null
+++ b/kernel/api/contract_network_test.go
@@ -0,0 +1,315 @@
+package api
+
+import (
+ "bytes"
+ "context"
+ "encoding/base64"
+ "encoding/json"
+ "io"
+ "mime/multipart"
+ "net/http"
+ "net/http/httptest"
+ "strconv"
+ "strings"
+ "testing"
+ "time"
+
+ "github.com/gin-gonic/gin"
+ "github.com/gorilla/websocket"
+ "github.com/siyuan-note/siyuan/kernel/apicontract"
+)
+
+func TestAPIContractNetworkEventSourceLifecycle(t *testing.T) {
+ bundle := networkTestBundle(t)
+ finished := make(chan struct{})
+ payload := ": keepalive\nevent: upstream-custom\nid: 7\ndata: not JSON\n\n"
+ upstream := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
+ defer close(finished)
+ w.Header().Set("Content-Type", "text/event-stream")
+ w.WriteHeader(409)
+ _, _ = io.WriteString(w, payload)
+ _ = http.NewResponseController(w).Flush()
+ <-r.Context().Done()
+ }))
+ defer upstream.Close()
+ engine := gin.New()
+ engine.GET("/es/network/proxy", esProxy)
+ server := httptest.NewServer(engine)
+ defer server.Close()
+ ctx, cancel := context.WithCancel(context.Background())
+ defer cancel()
+ request, _ := http.NewRequestWithContext(ctx, "GET", server.URL+"/es/network/proxy?u="+base64.RawURLEncoding.EncodeToString([]byte(upstream.URL)), nil)
+ response, err := http.DefaultClient.Do(request)
+ if err != nil {
+ t.Fatal(err)
+ }
+ defer response.Body.Close()
+ actual := make([]byte, len(payload))
+ if _, err = io.ReadFull(response.Body, actual); err != nil || string(actual) != payload {
+ t.Fatalf("event bytes changed: %q %v", actual, err)
+ }
+ if response.StatusCode != 409 {
+ t.Fatal("upstream event status changed")
+ }
+ if err = bundle.ValidateHTTPResponse("GET", "/es/network/proxy", response.StatusCode, response.Header.Get("Content-Type"), actual); err != nil {
+ t.Fatal(err)
+ }
+ cancel()
+ select {
+ case <-finished:
+ case <-time.After(5 * time.Second):
+ t.Fatal("upstream stream survived request cancellation")
+ }
+}
+
+func networkTestBundle(t *testing.T) *apicontract.Bundle {
+ t.Helper()
+ b, err := apicontract.BuildBundle()
+ if err != nil {
+ t.Fatal(err)
+ }
+ return b
+}
+
+func TestAPIContractNetworkEcho(t *testing.T) {
+ bundle := networkTestBundle(t)
+ engine := gin.New()
+ engine.Any("/api/network/echo", echo)
+ engine.Any("/api/network/echo/*path", echoPath)
+ raw := []byte{0, 1, 255}
+ for _, method := range []string{"GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS", "CONNECT", "TRACE"} {
+ request := httptest.NewRequest(method, "/api/network/echo/a?q=1&q=2", bytes.NewReader(raw))
+ request.SetBasicAuth("user", "pass")
+ request.AddCookie(&http.Cookie{Name: "x", Value: "y"})
+ recorder := httptest.NewRecorder()
+ engine.ServeHTTP(recorder, request)
+ if err := bundle.ValidateHTTPResponse(method, "/api/network/echo/*path", recorder.Code, recorder.Header().Get("Content-Type"), recorder.Body.Bytes()); err != nil {
+ t.Fatal(err)
+ }
+ var response struct {
+ Data struct {
+ Context struct {
+ RawData string
+ Params []apicontract.NetworkEchoParam
+ }
+ User apicontract.NetworkEchoUser
+ Request struct {
+ Method string
+ TLS json.RawMessage
+ Cookies []http.Cookie
+ }
+ }
+ }
+ if err := json.Unmarshal(recorder.Body.Bytes(), &response); err != nil {
+ t.Fatal(err)
+ }
+ if response.Data.Context.RawData != base64.StdEncoding.EncodeToString(raw) || response.Data.Request.Method != method || response.Data.User.Password != "pass" || response.Data.Context.Params[0].Value != "/a" || string(response.Data.Request.TLS) != "null" {
+ t.Fatalf("echo changed: %s", recorder.Body.String())
+ }
+ }
+ var body bytes.Buffer
+ writer := multipart.NewWriter(&body)
+ _ = writer.WriteField("field", "value")
+ part, _ := writer.CreateFormFile("file", "raw.bin")
+ _, _ = part.Write(raw)
+ _ = writer.Close()
+ request := httptest.NewRequest("POST", "/api/network/echo", &body)
+ request.Header.Set("Content-Type", writer.FormDataContentType())
+ recorder := httptest.NewRecorder()
+ engine.ServeHTTP(recorder, request)
+ if err := bundle.ValidateHTTPResponse("POST", "/api/network/echo", recorder.Code, recorder.Header().Get("Content-Type"), recorder.Body.Bytes()); err != nil {
+ t.Fatal(err)
+ }
+ var response struct {
+ Data struct {
+ Context struct{ RawData string }
+ Request struct {
+ MultipartForm apicontract.NetworkEchoMultipart
+ }
+ }
+ }
+ _ = json.Unmarshal(recorder.Body.Bytes(), &response)
+ if response.Data.Context.RawData != "" || response.Data.Request.MultipartForm.File["file"][0].Content != base64.StdEncoding.EncodeToString(raw) {
+ t.Fatalf("multipart changed: %s", recorder.Body.String())
+ }
+}
+
+func TestAPIContractNetworkForwardPayload(t *testing.T) {
+ bundle := networkTestBundle(t)
+ upstream := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
+ data, _ := io.ReadAll(r.Body)
+ w.Header().Set("X-Seen-Method", r.Method)
+ w.Header().Set("X-Seen-Header", r.Header.Get("X-Value"))
+ w.WriteHeader(418)
+ _, _ = w.Write(data)
+ }))
+ defer upstream.Close()
+ engine := gin.New()
+ engine.POST("/api/network/forwardProxy", forwardProxy)
+ for _, tt := range []struct{ payload, encoding, want string }{
+ {`"raw string"`, "json", "raw string"}, {`123`, "json", "123"}, {`{"a":true}`, "json", `{"a":true}`}, {`null`, "json", ""}, {`"ignored"`, "text", ""}, {`"AAH/"`, "base64", string([]byte{0, 1, 255})}, {`"6162"`, "hex", "ab"},
+ } {
+ body := `{"url":` + strconv.Quote(upstream.URL) + `,"method":"put","payload":` + tt.payload + `,"payloadEncoding":` + strconv.Quote(tt.encoding) + `,"responseEncoding":"base64","headers":[null,1,{"X-Value":[1,true]}]}`
+ recorder := httptest.NewRecorder()
+ engine.ServeHTTP(recorder, httptest.NewRequest("POST", "/api/network/forwardProxy", strings.NewReader(body)))
+ if err := bundle.ValidateHTTPResponse("POST", "/api/network/forwardProxy", recorder.Code, recorder.Header().Get("Content-Type"), recorder.Body.Bytes()); err != nil {
+ t.Fatal(err)
+ }
+ var result struct {
+ Code int
+ Data apicontract.NetworkForwardData
+ }
+ _ = json.Unmarshal(recorder.Body.Bytes(), &result)
+ if result.Code != 0 || result.Data.Status != 418 || result.Data.Body != base64.StdEncoding.EncodeToString([]byte(tt.want)) || result.Data.Headers["X-Seen-Method"][0] != "PUT" || result.Data.Headers["X-Seen-Header"][0] != "[1 true]" {
+ t.Fatalf("payload %s changed: %s", tt.payload, recorder.Body.String())
+ }
+ }
+ for _, tt := range []struct {
+ body string
+ code int
+ }{{`{"url":"invalid","method":3}`, 1}, {`{"url":"ftp://example.com","timeout":"bad"}`, 2}, {`{"url":` + strconv.Quote(upstream.URL) + `,"payloadEncoding":"hex","payload":"x"}`, 7}} {
+ recorder := httptest.NewRecorder()
+ engine.ServeHTTP(recorder, httptest.NewRequest("POST", "/api/network/forwardProxy", strings.NewReader(tt.body)))
+ var result struct{ Code int }
+ _ = json.Unmarshal(recorder.Body.Bytes(), &result)
+ if result.Code != tt.code {
+ t.Fatalf("validation order changed: %s", recorder.Body.String())
+ }
+ }
+}
+
+func TestAPIContractNetworkProxyWire(t *testing.T) {
+ bundle := networkTestBundle(t)
+ upstream := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
+ status, _ := strconv.Atoi(r.URL.Query().Get("status"))
+ w.Header().Set("Content-Type", "text/html")
+ w.Header().Add("X-Multi", "a")
+ w.Header().Add("X-Multi", "b")
+ w.WriteHeader(status)
+ if status != 204 && status != 304 {
+ _, _ = w.Write([]byte{0, 1, 255})
+ }
+ }))
+ defer upstream.Close()
+ engine := gin.New()
+ engine.Any("/api/network/proxy", httpProxy)
+ engine.GET("/es/network/proxy", esProxy)
+ server := httptest.NewServer(engine)
+ defer server.Close()
+ for _, method := range []string{"GET", "HEAD"} {
+ for _, status := range []int{200, 204, 304, 404, 502} {
+ path := "/api/network/proxy"
+ target := upstream.URL + "?status=" + strconv.Itoa(status)
+ request, _ := http.NewRequest(method, server.URL+path+"?u="+base64.RawURLEncoding.EncodeToString([]byte(target)), nil)
+ response, err := http.DefaultClient.Do(request)
+ if err != nil {
+ t.Fatal(err)
+ }
+ body, _ := io.ReadAll(response.Body)
+ response.Body.Close()
+ if response.StatusCode != status {
+ t.Fatalf("status changed: %d", response.StatusCode)
+ }
+ if err = bundle.ValidateHTTPResponse(method, path, status, response.Header.Get("Content-Type"), body); err != nil {
+ t.Fatal(err)
+ }
+ if method == "HEAD" || status == 204 || status == 304 {
+ if len(body) != 0 {
+ t.Fatal("bodyless response has body")
+ }
+ } else if !bytes.Equal(body, []byte{0, 1, 255}) {
+ t.Fatal("proxy bytes changed")
+ }
+ if response.Header.Get("X-Content-Type-Options") != "nosniff" || len(response.Header.Values("Siyuan-Proxy-X-Multi")) != 2 {
+ t.Fatal("security or duplicate headers changed")
+ }
+ }
+ }
+ for _, path := range []string{"/api/network/proxy", "/es/network/proxy"} {
+ response, err := http.Get(server.URL + path)
+ if err != nil {
+ t.Fatal(err)
+ }
+ body, _ := io.ReadAll(response.Body)
+ response.Body.Close()
+ if err = bundle.ValidateHTTPResponse("GET", path, response.StatusCode, response.Header.Get("Content-Type"), body); err != nil {
+ t.Fatal(err)
+ }
+ if string(body) != `{"code":-1,"msg":"missing query param [u]"}` {
+ t.Fatalf("rejection changed: %s", body)
+ }
+ }
+}
+
+func TestAPIContractNetworkWebSocketProxy(t *testing.T) {
+ bundle := networkTestBundle(t)
+ upstream := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
+ upgrader := websocket.Upgrader{}
+ conn, err := upgrader.Upgrade(w, r, http.Header{"X-Upstream": []string{"yes"}})
+ if err != nil {
+ return
+ }
+ defer conn.Close()
+ for {
+ kind, data, err := conn.ReadMessage()
+ if err != nil {
+ return
+ }
+ if err = conn.WriteMessage(kind, data); err != nil {
+ return
+ }
+ }
+ }))
+ defer upstream.Close()
+ engine := gin.New()
+ engine.GET("/ws/network/proxy", wsProxy)
+ server := httptest.NewServer(engine)
+ defer server.Close()
+ target := "ws" + strings.TrimPrefix(upstream.URL, "http")
+ proxyURL := "ws" + strings.TrimPrefix(server.URL, "http") + "/ws/network/proxy?u=" + base64.RawURLEncoding.EncodeToString([]byte(target))
+ conn, response, err := websocket.DefaultDialer.Dial(proxyURL, nil)
+ if err != nil {
+ t.Fatal(err)
+ }
+ defer conn.Close()
+ _ = conn.SetReadDeadline(time.Now().Add(5 * time.Second))
+ if response.Header.Get("Siyuan-Proxy-X-Upstream") != "yes" {
+ t.Fatal("upgrade headers changed")
+ }
+ if err = bundle.ValidateHTTPResponse("GET", "/ws/network/proxy", response.StatusCode, response.Header.Get("Content-Type"), nil); err != nil {
+ t.Fatal(err)
+ }
+ for _, kind := range []int{websocket.TextMessage, websocket.BinaryMessage} {
+ data := []byte("text")
+ if kind == websocket.BinaryMessage {
+ data = []byte{0, 255}
+ }
+ if err = conn.WriteMessage(kind, data); err != nil {
+ t.Fatal(err)
+ }
+ actualKind, actual, err := conn.ReadMessage()
+ if err != nil || actualKind != kind || !bytes.Equal(actual, data) {
+ t.Fatalf("frame changed: %d %x %v", actualKind, actual, err)
+ }
+ }
+ _ = conn.WriteMessage(websocket.CloseMessage, websocket.FormatCloseMessage(1000, "done"))
+ _, _, err = conn.ReadMessage()
+ if !websocket.IsCloseError(err, 1000) {
+ t.Fatalf("close changed: %v", err)
+ }
+ _, response, err = websocket.DefaultDialer.Dial(proxyURL, http.Header{"Origin": []string{"https://foreign.example"}})
+ if err == nil {
+ t.Fatal("cross-origin upgrade accepted")
+ }
+ if response == nil {
+ t.Fatal("missing upgrade error")
+ }
+ body, _ := io.ReadAll(response.Body)
+ response.Body.Close()
+ if response.StatusCode != 403 {
+ t.Fatalf("origin status changed: %d", response.StatusCode)
+ }
+ if err = bundle.ValidateHTTPResponse("GET", "/ws/network/proxy", response.StatusCode, response.Header.Get("Content-Type"), body); err != nil {
+ t.Fatal(err)
+ }
+}
diff --git a/kernel/api/network.go b/kernel/api/network.go
index 811f5e3642..ede5ac9fdc 100644
--- a/kernel/api/network.go
+++ b/kernel/api/network.go
@@ -25,52 +25,36 @@ import (
"fmt"
"io"
"net/http"
- "net/textproto"
"net/url"
"strings"
"time"
- "github.com/88250/gulu"
"github.com/gin-gonic/gin"
"github.com/gorilla/websocket"
"github.com/imroc/req/v3"
"github.com/siyuan-note/logging"
+ "github.com/siyuan-note/siyuan/kernel/apicontract"
"github.com/siyuan-note/siyuan/kernel/util"
)
const maxForwardProxyResponseSize int64 = 32 * 1024 * 1024
-type File struct {
- Filename string
- Header textproto.MIMEHeader
- Size int64
- Content string
-}
-
-type MultipartForm struct {
- Value map[string][]string
- File map[string][]File
-}
+var echo = contractHandler(apicontract.NetworkEcho, echoContract)
+var echoPath = contractHandler(apicontract.NetworkEchoPath, echoContract)
-func echo(c *gin.Context) {
- ret := gulu.Ret.NewResult()
- defer c.JSON(http.StatusOK, ret)
-
- var (
- password string
- multipartForm *MultipartForm
- rawData any
- )
+func echoContract(c *gin.Context, _ apicontract.EmptyRequest) apicontract.Response[apicontract.NetworkEchoData] {
+ var multipartForm *apicontract.NetworkEchoMultipart
+ var rawData *string
if form, err := c.MultipartForm(); err != nil || nil == form {
multipartForm = nil
} else {
- multipartForm = &MultipartForm{
+ multipartForm = &apicontract.NetworkEchoMultipart{
Value: form.Value,
- File: map[string][]File{},
+ File: map[string][]apicontract.NetworkEchoFile{},
}
for k, handlers := range form.File {
- files := make([]File, len(handlers))
+ files := make([]apicontract.NetworkEchoFile, len(handlers))
multipartForm.File[k] = files
for i, handler := range handlers {
files[i].Filename = handler.Filename
@@ -91,7 +75,8 @@ func echo(c *gin.Context) {
}
if data, err := c.GetRawData(); err == nil {
- rawData = base64.StdEncoding.EncodeToString(data)
+ encoded := base64.StdEncoding.EncodeToString(data)
+ rawData = &encoded
} else {
logging.LogWarnf("echo get raw data error: %s", err.Error())
rawData = nil
@@ -99,183 +84,168 @@ func echo(c *gin.Context) {
username, password, ok := c.Request.BasicAuth()
- ret.Data = map[string]any{
- "Context": map[string]any{
- "Params": c.Params,
- "HandlerNames": c.HandlerNames(),
- "FullPath": c.FullPath(),
- "ClientIP": c.ClientIP(),
- "RemoteIP": c.RemoteIP(),
- "ContentType": c.ContentType(),
- "IsWebsocket": c.IsWebsocket(),
- "RawData": rawData,
+ var params []apicontract.NetworkEchoParam
+ if c.Params != nil {
+ params = make([]apicontract.NetworkEchoParam, len(c.Params))
+ for i, param := range c.Params {
+ params[i] = apicontract.NetworkEchoParam{Key: param.Key, Value: param.Value}
+ }
+ }
+ return apicontract.Success(apicontract.NetworkEchoData{
+ Context: apicontract.NetworkEchoContext{
+ Params: params,
+ HandlerNames: c.HandlerNames(),
+ FullPath: c.FullPath(),
+ ClientIP: c.ClientIP(),
+ RemoteIP: c.RemoteIP(),
+ ContentType: c.ContentType(),
+ IsWebsocket: c.IsWebsocket(),
+ RawData: rawData,
},
- "Request": map[string]any{
- "Method": c.Request.Method,
- "URL": c.Request.URL,
- "Proto": c.Request.Proto,
- "ProtoMajor": c.Request.ProtoMajor,
- "ProtoMinor": c.Request.ProtoMinor,
- "Header": c.Request.Header,
- "ContentLength": c.Request.ContentLength,
- "TransferEncoding": c.Request.TransferEncoding,
- "Close": c.Request.Close,
- "Host": c.Request.Host,
- "Form": c.Request.Form,
- "PostForm": c.Request.PostForm,
- "MultipartForm": multipartForm,
- "Trailer": c.Request.Trailer,
- "RemoteAddr": c.Request.RemoteAddr,
- "TLS": c.Request.TLS,
- "UserAgent": c.Request.UserAgent(),
- "Cookies": c.Request.Cookies(),
- "Referer": c.Request.Referer(),
+ Request: apicontract.NetworkEchoRequest{
+ Method: c.Request.Method,
+ URL: apicontract.EchoURL(c.Request.URL),
+ Proto: c.Request.Proto,
+ ProtoMajor: c.Request.ProtoMajor,
+ ProtoMinor: c.Request.ProtoMinor,
+ Header: c.Request.Header,
+ ContentLength: c.Request.ContentLength,
+ TransferEncoding: c.Request.TransferEncoding,
+ Close: c.Request.Close,
+ Host: c.Request.Host,
+ Form: c.Request.Form,
+ PostForm: c.Request.PostForm,
+ MultipartForm: multipartForm,
+ Trailer: c.Request.Trailer,
+ RemoteAddr: c.Request.RemoteAddr,
+ TLS: apicontract.EchoTLS(c.Request.TLS),
+ UserAgent: c.Request.UserAgent(),
+ Cookies: apicontract.EchoCookies(c.Request.Cookies()),
+ Referer: c.Request.Referer(),
},
- "URL": map[string]any{
- "EscapedPath": c.Request.URL.EscapedPath(),
- "EscapedFragment": c.Request.URL.EscapedFragment(),
- "String": c.Request.URL.String(),
- "Redacted": c.Request.URL.Redacted(),
- "IsAbs": c.Request.URL.IsAbs(),
- "Query": c.Request.URL.Query(),
- "RequestURI": c.Request.URL.RequestURI(),
- "Hostname": c.Request.URL.Hostname(),
- "Port": c.Request.URL.Port(),
+ URL: apicontract.NetworkEchoURLInfo{
+ EscapedPath: c.Request.URL.EscapedPath(),
+ EscapedFragment: c.Request.URL.EscapedFragment(),
+ String: c.Request.URL.String(),
+ Redacted: c.Request.URL.Redacted(),
+ IsAbs: c.Request.URL.IsAbs(),
+ Query: c.Request.URL.Query(),
+ RequestURI: c.Request.URL.RequestURI(),
+ Hostname: c.Request.URL.Hostname(),
+ Port: c.Request.URL.Port(),
},
- "User": map[string]any{
- "Exists": ok,
- "Username": username,
- "Password": password,
+ User: apicontract.NetworkEchoUser{
+ Exists: ok,
+ Username: username,
+ Password: password,
},
- }
+ })
}
-func forwardProxy(c *gin.Context) {
- ret := gulu.Ret.NewResult()
- defer c.JSON(http.StatusOK, ret)
-
- arg, ok := util.JsonArg(c, ret)
- if !ok {
- return
- }
-
- var destURL string
- if !util.ParseJsonArgs(arg, ret, util.BindJsonArg("url", &destURL, true, true)) {
- return
- }
+var forwardProxy = contractHandler(apicontract.NetworkForwardProxy, func(c *gin.Context, input apicontract.NetworkForwardRequest) apicontract.Response[apicontract.NetworkForwardData] {
+ destURL := input.URL
u, e := url.ParseRequestURI(destURL)
if nil != e {
- ret.Code = 1
- ret.Msg = "invalid [url]"
- return
+ return apicontract.Failure[apicontract.NetworkForwardData](1, "invalid [url]")
}
if u.Scheme != "http" && u.Scheme != "https" {
- ret.Code = 2
- ret.Msg = "only http/https is allowed"
- return
+ return apicontract.Failure[apicontract.NetworkForwardData](2, "only http/https is allowed")
}
+ options, err := input.Options()
+ if err != nil {
+ return apicontract.NetworkForwardProxy.DecodeFailure(err)
+ }
method := "POST"
- if methodArg := arg["method"]; nil != methodArg {
- method = strings.ToUpper(methodArg.(string))
+ if methodArg := options.Method; nil != methodArg {
+ method = strings.ToUpper(*methodArg)
}
timeout := 7000
- if timeoutArg := arg["timeout"]; nil != timeoutArg {
- timeout = int(timeoutArg.(float64))
+ if timeoutArg := options.Timeout; nil != timeoutArg {
+ timeout = int(*timeoutArg)
if 1 > timeout {
timeout = 7000
}
}
client := getSafeClient(time.Duration(timeout) * time.Millisecond)
- responseEncoding := configureForwardProxyClient(client, maxForwardProxyResponseSize, arg["responseEncoding"])
- if redirectArg, ok := arg["redirect"].(bool); ok && !redirectArg {
+ responseEncoding := configureForwardProxyClient(client, maxForwardProxyResponseSize, options.ResponseEncoding)
+ if options.Redirect != nil && !*options.Redirect {
client.SetRedirectPolicy(req.NoRedirectPolicy())
}
request := client.R()
- if headers, ok := arg["headers"].([]any); ok {
- for _, pair := range headers {
- if m, ok := pair.(map[string]any); ok {
- for k, v := range m {
- request.SetHeader(k, fmt.Sprintf("%v", v))
- }
- }
+ for _, pair := range options.Headers {
+ for key, value := range pair {
+ request.SetHeader(key, fmt.Sprint(networkJSONPayload(value)))
}
}
contentType := "application/json"
- if contentTypeArg := arg["contentType"]; nil != contentTypeArg {
- contentType = contentTypeArg.(string)
+ if contentTypeArg := options.ContentType; nil != contentTypeArg {
+ contentType = *contentTypeArg
}
request.SetHeader("Content-Type", contentType)
payloadEncoding := "json"
- if payloadEncodingArg := arg["payloadEncoding"]; nil != payloadEncodingArg {
- payloadEncoding = payloadEncodingArg.(string)
+ if payloadEncodingArg := options.PayloadEncoding; nil != payloadEncodingArg {
+ payloadEncoding = *payloadEncodingArg
}
+ payloadText, payloadIsText := options.Payload.StringValue()
+ switch payloadEncoding {
+ case "base64", "base64-std", "base64-url", "base32", "base32-std", "base32-hex", "hex":
+ if !payloadIsText {
+ return apicontract.Failure[apicontract.NetworkForwardData](-1, "[payload] must be a string")
+ }
+ }
switch payloadEncoding {
case "base64":
fallthrough
case "base64-std":
- if payload, err := base64.StdEncoding.DecodeString(arg["payload"].(string)); err != nil {
- ret.Code = 3
- ret.Msg = "decode base64-std payload failed: " + err.Error()
- return
+ if payload, err := base64.StdEncoding.DecodeString(payloadText); err != nil {
+ return apicontract.Failure[apicontract.NetworkForwardData](3, "decode base64-std payload failed: "+err.Error())
} else {
request.SetBody(payload)
}
case "base64-url":
- if payload, err := base64.URLEncoding.DecodeString(arg["payload"].(string)); err != nil {
- ret.Code = 4
- ret.Msg = "decode base64-url payload failed: " + err.Error()
- return
+ if payload, err := base64.URLEncoding.DecodeString(payloadText); err != nil {
+ return apicontract.Failure[apicontract.NetworkForwardData](4, "decode base64-url payload failed: "+err.Error())
} else {
request.SetBody(payload)
}
case "base32":
fallthrough
case "base32-std":
- if payload, err := base32.StdEncoding.DecodeString(arg["payload"].(string)); err != nil {
- ret.Code = 5
- ret.Msg = "decode base32-std payload failed: " + err.Error()
- return
+ if payload, err := base32.StdEncoding.DecodeString(payloadText); err != nil {
+ return apicontract.Failure[apicontract.NetworkForwardData](5, "decode base32-std payload failed: "+err.Error())
} else {
request.SetBody(payload)
}
case "base32-hex":
- if payload, err := base32.HexEncoding.DecodeString(arg["payload"].(string)); err != nil {
- ret.Code = 6
- ret.Msg = "decode base32-hex payload failed: " + err.Error()
- return
+ if payload, err := base32.HexEncoding.DecodeString(payloadText); err != nil {
+ return apicontract.Failure[apicontract.NetworkForwardData](6, "decode base32-hex payload failed: "+err.Error())
} else {
request.SetBody(payload)
}
case "hex":
- if payload, err := hex.DecodeString(arg["payload"].(string)); err != nil {
- ret.Code = 7
- ret.Msg = "decode hex payload failed: " + err.Error()
- return
+ if payload, err := hex.DecodeString(payloadText); err != nil {
+ return apicontract.Failure[apicontract.NetworkForwardData](7, "decode hex payload failed: "+err.Error())
} else {
request.SetBody(payload)
}
case "text":
default:
- request.SetBody(arg["payload"])
+ request.SetBody(networkJSONPayload(options.Payload))
}
started := time.Now()
resp, bodyData, err := sendForwardProxyRequest(request, method, destURL)
if errors.Is(err, req.ErrResponseBodyTooLarge) {
- ret.Code = 10
- ret.Msg = fmt.Sprintf("response body too large: limit is %d bytes", maxForwardProxyResponseSize)
- return
+ return apicontract.Failure[apicontract.NetworkForwardData](10, fmt.Sprintf("response body too large: limit is %d bytes", maxForwardProxyResponseSize))
}
if err != nil {
- ret.Code = 8
- ret.Msg = "forward request failed: " + err.Error()
- return
+ return apicontract.Failure[apicontract.NetworkForwardData](8, "forward request failed: "+err.Error())
}
elapsed := time.Since(started)
@@ -303,26 +273,20 @@ func forwardProxy(c *gin.Context) {
body = string(bodyData)
}
- data := map[string]any{
- "url": destURL,
- "status": resp.StatusCode,
- "contentType": resp.GetHeader("content-type"),
- "body": body,
- "bodyEncoding": responseEncoding,
- "headers": resp.Header,
- "elapsed": elapsed.Milliseconds(),
- }
- ret.Data = data
-
- //shortBody := ""
- //if 64 > len(body) {
- // shortBody = body
- //} else {
- // shortBody = body[:64]
- //}
- //
- //logging.LogInfof("elapsed [%.1fs], length [%d], request [url=%s, headers=%s, content-type=%s, body=%s], status [%d], body [%s]",
- // elapsed.Seconds(), len(bodyData), data["url"], headers, contentType, arg["payload"], data["status"], shortBody)
+ return apicontract.Success(apicontract.NetworkForwardData{URL: destURL, Status: resp.StatusCode, ContentType: resp.GetHeader("content-type"), Body: body, BodyEncoding: responseEncoding, Headers: resp.Header, Elapsed: elapsed.Milliseconds()})
+})
+
+// 任意 JSON 载荷按代理客户端的字符串、标量与复合值规则传输。
+func networkJSONPayload(value apicontract.JSONValue) any {
+ encoded, err := value.MarshalJSON()
+ if err != nil {
+ panic(err)
+ }
+ var payload any
+ if err := json.Unmarshal(encoded, &payload); err != nil {
+ panic(err)
+ }
+ return payload
}
func configureForwardProxyClient(client *req.Client, maxResponseSize int64, value any) string {
@@ -449,16 +413,14 @@ func secureProxyResponseHeaders(w gin.ResponseWriter, contentType string, attach
//
// The request method and body are taken from the incoming request.
// Target response headers are forwarded with a "Siyuan-Proxy-" prefix.
-func httpProxy(c *gin.Context) {
+var httpProxy = contractHandler(apicontract.NetworkHTTPProxy, func(c *gin.Context, _ apicontract.EmptyRequest) apicontract.Response[apicontract.ProxyFailure] {
targetURL, targetHeaders, timeout, err := parseForwardProxyParams(c)
if err != nil {
- c.JSON(http.StatusBadRequest, gin.H{"code": -1, "msg": err.Error()})
- return
+ return apicontract.RejectProxy(http.StatusBadRequest, err.Error())
}
if targetURL.Scheme != "http" && targetURL.Scheme != "https" {
- c.JSON(http.StatusBadRequest, gin.H{"code": -1, "msg": "only http/https is allowed"})
- return
+ return apicontract.RejectProxy(http.StatusBadRequest, "only http/https is allowed")
}
transport := &http.Transport{
@@ -468,8 +430,7 @@ func httpProxy(c *gin.Context) {
proxyReq, reqErr := http.NewRequestWithContext(c.Request.Context(), c.Request.Method, targetURL.String(), c.Request.Body)
if reqErr != nil {
- c.JSON(http.StatusBadRequest, gin.H{"code": -1, "msg": "create request failed: " + reqErr.Error()})
- return
+ return apicontract.RejectProxy(http.StatusBadRequest, "create request failed: "+reqErr.Error())
}
proxyReq.ContentLength = c.Request.ContentLength
@@ -487,18 +448,19 @@ func httpProxy(c *gin.Context) {
resp, respErr := httpClient.Do(proxyReq)
if respErr != nil {
- c.JSON(http.StatusBadGateway, gin.H{"code": -1, "msg": "connect target failed: " + respErr.Error()})
- return
+ return apicontract.RejectProxy(http.StatusBadGateway, "connect target failed: "+respErr.Error())
}
- defer resp.Body.Close()
+ return apicontract.StreamProxy(resp.StatusCode, func(_ http.ResponseWriter, _ *http.Request) {
+ defer resp.Body.Close()
- secureProxyResponseHeaders(c.Writer, "application/octet-stream", true)
- forwardResponseHeaders(c.Writer.Header(), resp.Header)
- c.Writer.WriteHeader(resp.StatusCode)
- if _, err := io.Copy(c.Writer, resp.Body); err != nil {
- logging.LogWarnf("http proxy copy response failed: %s", err.Error())
- }
-}
+ secureProxyResponseHeaders(c.Writer, "application/octet-stream", true)
+ forwardResponseHeaders(c.Writer.Header(), resp.Header)
+ c.Writer.WriteHeader(resp.StatusCode)
+ if _, err := io.Copy(c.Writer, resp.Body); err != nil {
+ logging.LogWarnf("http proxy copy response failed: %s", err.Error())
+ }
+ })
+})
// wsProxy proxies a WebSocket connection to a remote WebSocket endpoint.
//
@@ -507,16 +469,14 @@ func httpProxy(c *gin.Context) {
// - h: RawURLEncoding base64 of JSON map[string][]string forwarded as handshake headers
//
// Target response headers are forwarded with a "Siyuan-Proxy-" prefix.
-func wsProxy(c *gin.Context) {
+var wsProxy = contractHandler(apicontract.NetworkWebSocketProxy, func(c *gin.Context, _ apicontract.EmptyRequest) apicontract.Response[apicontract.ProxyFailure] {
targetURL, targetHeaders, timeout, err := parseForwardProxyParams(c)
if err != nil {
- c.JSON(http.StatusBadRequest, gin.H{"code": -1, "msg": err.Error()})
- return
+ return apicontract.RejectProxy(http.StatusBadRequest, err.Error())
}
if targetURL.Scheme != "ws" && targetURL.Scheme != "wss" {
- c.JSON(http.StatusBadRequest, gin.H{"code": -1, "msg": "only ws/wss is allowed"})
- return
+ return apicontract.RejectProxy(http.StatusBadRequest, "only ws/wss is allowed")
}
wsDialer := &websocket.Dialer{
@@ -526,75 +486,76 @@ func wsProxy(c *gin.Context) {
targetConn, targetResp, dialErr := wsDialer.DialContext(c.Request.Context(), targetURL.String(), *targetHeaders)
if dialErr != nil {
- c.JSON(http.StatusBadGateway, gin.H{"code": -1, "msg": "dial target failed: " + dialErr.Error()})
- return
+ return apicontract.RejectProxy(http.StatusBadGateway, "dial target failed: "+dialErr.Error())
}
- defer targetConn.Close()
+ return apicontract.StreamProxy(http.StatusSwitchingProtocols, func(_ http.ResponseWriter, _ *http.Request) {
+ defer targetConn.Close()
- upgradeHeaders := http.Header{}
- if targetResp != nil {
- forwardResponseHeaders(upgradeHeaders, targetResp.Header)
- }
- upgrader := websocket.Upgrader{
- // 校验 Origin,防止跨站 WebSocket 劫持(CSWSH) https://github.com/siyuan-note/siyuan/security/advisories/GHSA-3cc2-h3v6-rqpq
- CheckOrigin: func(r *http.Request) bool {
- return util.IsSessionOriginAllowedRequest(r)
- },
- }
- clientConn, upgradeErr := upgrader.Upgrade(c.Writer, c.Request, upgradeHeaders)
- if upgradeErr != nil {
- logging.LogErrorf("ws forward proxy upgrade failed: %s", upgradeErr.Error())
- return
- }
- defer clientConn.Close()
-
- errChan := make(chan error, 2)
- go func() {
- for {
- msgType, msg, readErr := targetConn.ReadMessage()
- if readErr != nil {
- if closeError, ok := readErr.(*websocket.CloseError); ok {
- clientConn.WriteMessage(
- websocket.CloseMessage,
- websocket.FormatCloseMessage(
- closeError.Code,
- closeError.Text,
- ),
- )
- }
- errChan <- readErr
- return
- }
- if writeErr := clientConn.WriteMessage(msgType, msg); writeErr != nil {
- errChan <- writeErr
- return
- }
+ upgradeHeaders := http.Header{}
+ if targetResp != nil {
+ forwardResponseHeaders(upgradeHeaders, targetResp.Header)
}
- }()
- go func() {
- for {
- msgType, msg, readErr := clientConn.ReadMessage()
- if readErr != nil {
- if closeError, ok := readErr.(*websocket.CloseError); ok {
- targetConn.WriteMessage(
- websocket.CloseMessage,
- websocket.FormatCloseMessage(
- closeError.Code,
- closeError.Text,
- ),
- )
+ upgrader := websocket.Upgrader{
+ // 校验 Origin,防止跨站 WebSocket 劫持(CSWSH) https://github.com/siyuan-note/siyuan/security/advisories/GHSA-3cc2-h3v6-rqpq
+ CheckOrigin: func(r *http.Request) bool {
+ return util.IsSessionOriginAllowedRequest(r)
+ },
+ }
+ clientConn, upgradeErr := upgrader.Upgrade(c.Writer, c.Request, upgradeHeaders)
+ if upgradeErr != nil {
+ logging.LogErrorf("ws forward proxy upgrade failed: %s", upgradeErr.Error())
+ return
+ }
+ defer clientConn.Close()
+
+ errChan := make(chan error, 2)
+ go func() {
+ for {
+ msgType, msg, readErr := targetConn.ReadMessage()
+ if readErr != nil {
+ if closeError, ok := readErr.(*websocket.CloseError); ok {
+ clientConn.WriteMessage(
+ websocket.CloseMessage,
+ websocket.FormatCloseMessage(
+ closeError.Code,
+ closeError.Text,
+ ),
+ )
+ }
+ errChan <- readErr
+ return
+ }
+ if writeErr := clientConn.WriteMessage(msgType, msg); writeErr != nil {
+ errChan <- writeErr
+ return
}
- errChan <- readErr
- return
}
- if writeErr := targetConn.WriteMessage(msgType, msg); writeErr != nil {
- errChan <- writeErr
- return
+ }()
+ go func() {
+ for {
+ msgType, msg, readErr := clientConn.ReadMessage()
+ if readErr != nil {
+ if closeError, ok := readErr.(*websocket.CloseError); ok {
+ targetConn.WriteMessage(
+ websocket.CloseMessage,
+ websocket.FormatCloseMessage(
+ closeError.Code,
+ closeError.Text,
+ ),
+ )
+ }
+ errChan <- readErr
+ return
+ }
+ if writeErr := targetConn.WriteMessage(msgType, msg); writeErr != nil {
+ errChan <- writeErr
+ return
+ }
}
- }
- }()
- <-errChan
-}
+ }()
+ <-errChan
+ })
+})
// esProxy proxies an EventSource (SSE) stream from a remote HTTP endpoint.
//
@@ -603,16 +564,14 @@ func wsProxy(c *gin.Context) {
// - h: RawURLEncoding base64 of JSON map[string][]string forwarded as request headers
//
// Target response headers are forwarded with a "Siyuan-Proxy-" prefix.
-func esProxy(c *gin.Context) {
+var esProxy = contractHandler(apicontract.NetworkEventSourceProxy, func(c *gin.Context, _ apicontract.EmptyRequest) apicontract.Response[apicontract.ProxyFailure] {
targetURL, targetHeaders, timeout, err := parseForwardProxyParams(c)
if err != nil {
- c.JSON(http.StatusBadRequest, gin.H{"code": -1, "msg": err.Error()})
- return
+ return apicontract.RejectProxy(http.StatusBadRequest, err.Error())
}
if targetURL.Scheme != "http" && targetURL.Scheme != "https" {
- c.JSON(http.StatusBadRequest, gin.H{"code": -1, "msg": "only http/https is allowed"})
- return
+ return apicontract.RejectProxy(http.StatusBadRequest, "only http/https is allowed")
}
transport := &http.Transport{
@@ -622,8 +581,7 @@ func esProxy(c *gin.Context) {
proxyReq, reqErr := http.NewRequestWithContext(c.Request.Context(), http.MethodGet, targetURL.String(), nil)
if reqErr != nil {
- c.JSON(http.StatusBadRequest, gin.H{"code": -1, "msg": "create request failed: " + reqErr.Error()})
- return
+ return apicontract.RejectProxy(http.StatusBadRequest, "create request failed: "+reqErr.Error())
}
for k, vs := range *targetHeaders {
for _, v := range vs {
@@ -636,26 +594,27 @@ func esProxy(c *gin.Context) {
resp, respErr := httpClient.Do(proxyReq)
if respErr != nil {
- c.JSON(http.StatusBadGateway, gin.H{"code": -1, "msg": "connect target failed: " + respErr.Error()})
- return
+ return apicontract.RejectProxy(http.StatusBadGateway, "connect target failed: "+respErr.Error())
}
- defer resp.Body.Close()
+ return apicontract.StreamProxy(resp.StatusCode, func(_ http.ResponseWriter, _ *http.Request) {
+ defer resp.Body.Close()
- secureProxyResponseHeaders(c.Writer, "text/event-stream; charset=utf-8", false)
- forwardResponseHeaders(c.Writer.Header(), resp.Header)
- c.Writer.WriteHeader(resp.StatusCode)
+ secureProxyResponseHeaders(c.Writer, "text/event-stream; charset=utf-8", false)
+ forwardResponseHeaders(c.Writer.Header(), resp.Header)
+ c.Writer.WriteHeader(resp.StatusCode)
- buf := make([]byte, 4096)
- for {
- n, readErr := resp.Body.Read(buf)
- if n > 0 {
- if _, writeErr := c.Writer.Write(buf[:n]); writeErr != nil {
+ buf := make([]byte, 4096)
+ for {
+ n, readErr := resp.Body.Read(buf)
+ if n > 0 {
+ if _, writeErr := c.Writer.Write(buf[:n]); writeErr != nil {
+ return
+ }
+ c.Writer.Flush()
+ }
+ if readErr != nil {
return
}
- c.Writer.Flush()
- }
- if readErr != nil {
- return
}
- }
-}
+ })
+})
diff --git a/kernel/api/router.go b/kernel/api/router.go
index 534f1a96b7..142b7f27f7 100644
--- a/kernel/api/router.go
+++ b/kernel/api/router.go
@@ -687,7 +687,7 @@ func ServeAPI(ginServer *gin.Engine) {
ginServer.Any("/plugin/private/:name/*path", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, pluginPrivateWebServer)
ginServer.Any("/api/network/echo", model.CheckAuth, model.CheckAdminRole, echo)
- ginServer.Any("/api/network/echo/*path", model.CheckAuth, model.CheckAdminRole, echo)
+ ginServer.Any("/api/network/echo/*path", model.CheckAuth, model.CheckAdminRole, echoPath)
ginServer.Handle("POST", "/api/network/forwardProxy", model.CheckAuth, model.CheckAdminRole, forwardProxy)
ginServer.Any("/api/network/proxy", model.CheckAuth, model.CheckAdminRole, httpProxy)
diff --git a/kernel/apicontract/contracts.go b/kernel/apicontract/contracts.go
index 0ad9b9b957..39b911dd84 100644
--- a/kernel/apicontract/contracts.go
+++ b/kernel/apicontract/contracts.go
@@ -935,3 +935,10 @@ var AIAgentChat = define[AIAgentChatRequest, Null]("agentChat", "/api/ai/agent/c
var AIMCPOAuthCallback = define[EmptyRequest, BinaryContent]("mcpOAuthCallback", "/api/ai/mcp/oauth/callback/:flowID", NoBody, HTTPContentOptions(HTTPContentVariant{Status: 200, ContentType: "text/html"}, HTTPContentVariant{Status: 400, ContentType: "text/html"}, HTTPContentVariant{Status: 403, ContentType: "text/plain"}), "GET")
var AIGetSession = define[AISessionIDRequest, *AISession]("getSession", "/api/ai/agent/getSession", StructJSONBody, ResponseOptions{AdditionalErrorStatuses: []int{500}}, "POST")
var AISaveSession = define[AISession, AISessionSaveData]("saveSession", "/api/ai/agent/saveSession", StructJSONBody, ResponseOptions{DataOnError: true, AdditionalErrorStatuses: []int{400, 409, 500}}, "POST")
+
+var NetworkEcho = define[EmptyRequest, NetworkEchoData]("echo", "/api/network/echo", RawBody, ResponseOptions{}, "ANY")
+var NetworkEchoPath = define[EmptyRequest, NetworkEchoData]("echoPath", "/api/network/echo/*path", RawBody, ResponseOptions{}, "ANY")
+var NetworkForwardProxy = define[NetworkForwardRequest, NetworkForwardData]("forwardProxy", "/api/network/forwardProxy", JSONBody, ResponseOptions{AdditionalCodes: []int{1, 2, 3, 4, 5, 6, 7, 8, 10}}, "POST")
+var NetworkHTTPProxy = define[EmptyRequest, ProxyFailure]("httpProxy", "/api/network/proxy", RawBody, ProxyOptions(HTTPProxy), "ANY")
+var NetworkEventSourceProxy = define[EmptyRequest, ProxyFailure]("esProxy", "/es/network/proxy", NoBody, ProxyOptions(EventSourceProxy), "GET")
+var NetworkWebSocketProxy = define[EmptyRequest, ProxyFailure]("wsProxy", "/ws/network/proxy", NoBody, ProxyOptions(WebSocketProxy), "GET")
diff --git a/kernel/apicontract/legacy_routes.json b/kernel/apicontract/legacy_routes.json
index 29adb2ec8b..46499fd179 100644
--- a/kernel/apicontract/legacy_routes.json
+++ b/kernel/apicontract/legacy_routes.json
@@ -1,7 +1,4 @@
[
- {"method":"ANY","path":"/api/network/echo","handler":"echo"},
- {"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/icon/getDynamicIcon","handler":"getDynamicIcon"},
{"method":"GET","path":"/api/system/bootProgressSSE","handler":"bootProgressSSE"},
@@ -9,11 +6,8 @@
{"method":"GET","path":"/api/system/getCaptcha","handler":"model.GetCaptcha"},
{"method":"GET","path":"/api/system/oidc/callback","handler":"model.OIDCCallback"},
{"method":"GET","path":"/es/broadcast/subscribe","handler":"broadcastSubscribe"},
- {"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/extension/copy","handler":"extensionCopy"},
- {"method":"POST","path":"/api/network/forwardProxy","handler":"forwardProxy"},
{"method":"POST","path":"/api/system/addCustomEmoji","handler":"addCustomEmoji"},
{"method":"POST","path":"/api/system/checkUpdate","handler":"checkUpdate"},
{"method":"POST","path":"/api/system/checkWorkspaceDir","handler":"checkWorkspaceDir"},
diff --git a/kernel/apicontract/network.go b/kernel/apicontract/network.go
new file mode 100644
index 0000000000..aa69c12da6
--- /dev/null
+++ b/kernel/apicontract/network.go
@@ -0,0 +1,94 @@
+package apicontract
+
+type NetworkEchoData struct {
+ Context NetworkEchoContext `json:"Context"`
+ Request NetworkEchoRequest `json:"Request"`
+ URL NetworkEchoURLInfo `json:"URL"`
+ User NetworkEchoUser `json:"User"`
+}
+type NetworkEchoParam struct {
+ Key string `json:"Key"`
+ Value string `json:"Value"`
+}
+type NetworkEchoContext struct {
+ Params []NetworkEchoParam `json:"Params"`
+ HandlerNames []string `json:"HandlerNames"`
+ FullPath string `json:"FullPath"`
+ ClientIP string `json:"ClientIP"`
+ RemoteIP string `json:"RemoteIP"`
+ ContentType string `json:"ContentType"`
+ IsWebsocket bool `json:"IsWebsocket"`
+ RawData *string `json:"RawData"`
+}
+type NetworkEchoRequest struct {
+ Method string `json:"Method"`
+ URL *NetworkEchoURL `json:"URL"`
+ Proto string `json:"Proto"`
+ ProtoMajor int `json:"ProtoMajor"`
+ ProtoMinor int `json:"ProtoMinor"`
+ Header map[string][]string `json:"Header"`
+ ContentLength int64 `json:"ContentLength"`
+ TransferEncoding []string `json:"TransferEncoding"`
+ Close bool `json:"Close"`
+ Host string `json:"Host"`
+ Form map[string][]string `json:"Form"`
+ PostForm map[string][]string `json:"PostForm"`
+ MultipartForm *NetworkEchoMultipart `json:"MultipartForm"`
+ Trailer map[string][]string `json:"Trailer"`
+ RemoteAddr string `json:"RemoteAddr"`
+ TLS *NetworkEchoTLS `json:"TLS"`
+ UserAgent string `json:"UserAgent"`
+ Cookies NetworkEchoCookies `json:"Cookies"`
+ Referer string `json:"Referer"`
+}
+type NetworkEchoMultipart struct {
+ Value map[string][]string `json:"Value"`
+ File map[string][]NetworkEchoFile `json:"File"`
+}
+type NetworkEchoFile struct {
+ Filename string `json:"Filename"`
+ Header map[string][]string `json:"Header"`
+ Size int64 `json:"Size"`
+ Content string `json:"Content"`
+}
+type NetworkEchoURLInfo struct {
+ EscapedPath string `json:"EscapedPath"`
+ EscapedFragment string `json:"EscapedFragment"`
+ String string `json:"String"`
+ Redacted string `json:"Redacted"`
+ IsAbs bool `json:"IsAbs"`
+ Query map[string][]string `json:"Query"`
+ RequestURI string `json:"RequestURI"`
+ Hostname string `json:"Hostname"`
+ Port string `json:"Port"`
+}
+type NetworkEchoUser struct {
+ Exists bool `json:"Exists"`
+ Username string `json:"Username"`
+ Password string `json:"Password"`
+}
+
+type NetworkForwardRequest struct {
+ URL string `json:"url" api:"trim"`
+ NetworkForwardOptions
+ fields fileTreeFields
+}
+type NetworkForwardOptions struct {
+ Method *string `json:"method" api:"optional"`
+ Timeout *float64 `json:"timeout" api:"optional"`
+ ResponseEncoding string `json:"responseEncoding" api:"optional,nullable,ignoretype"`
+ Redirect *bool `json:"redirect" api:"optional"`
+ Headers []map[string]JSONValue `json:"headers" api:"optional,nullable"`
+ ContentType *string `json:"contentType" api:"optional"`
+ PayloadEncoding *string `json:"payloadEncoding" api:"optional"`
+ Payload JSONValue `json:"payload" api:"optional,nullable"`
+}
+type NetworkForwardData struct {
+ URL string `json:"url"`
+ Status int `json:"status"`
+ ContentType string `json:"contentType"`
+ Body string `json:"body"`
+ BodyEncoding string `json:"bodyEncoding"`
+ Headers map[string][]string `json:"headers"`
+ Elapsed int64 `json:"elapsed"`
+}
diff --git a/kernel/apicontract/network_echo.go b/kernel/apicontract/network_echo.go
new file mode 100644
index 0000000000..efdcf90199
--- /dev/null
+++ b/kernel/apicontract/network_echo.go
@@ -0,0 +1,168 @@
+package apicontract
+
+import (
+ "crypto/dsa"
+ "crypto/ecdsa"
+ "crypto/elliptic"
+ "crypto/rsa"
+ "crypto/tls"
+ "crypto/x509"
+ "crypto/x509/pkix"
+ "encoding/asn1"
+ "encoding/json"
+ "fmt"
+ "math/big"
+ "net"
+ "net/http"
+ "net/url"
+ "reflect"
+ "sort"
+ "strings"
+ "time"
+)
+
+// 标准库诊断对象保持其原始 JSON 编码;专用 schema 完整描述它们的字段和有限多态值。
+type NetworkEchoTLS struct{ value *tls.ConnectionState }
+type NetworkEchoURL struct{ value *url.URL }
+type NetworkEchoCookies struct{ value []*http.Cookie }
+
+func EchoTLS(value *tls.ConnectionState) *NetworkEchoTLS {
+ if value == nil {
+ return nil
+ }
+ return &NetworkEchoTLS{value: value}
+}
+func EchoURL(value *url.URL) *NetworkEchoURL {
+ if value == nil {
+ return nil
+ }
+ return &NetworkEchoURL{value: value}
+}
+func EchoCookies(value []*http.Cookie) NetworkEchoCookies { return NetworkEchoCookies{value: value} }
+func (value NetworkEchoTLS) MarshalJSON() ([]byte, error) { return json.Marshal(value.value) }
+func (value NetworkEchoURL) MarshalJSON() ([]byte, error) { return json.Marshal(value.value) }
+func (value NetworkEchoCookies) MarshalJSON() ([]byte, error) { return json.Marshal(value.value) }
+
+func networkEchoSchema(b *schemaBuilder, t reflect.Type) (*Schema, error) {
+ switch t {
+ case reflect.TypeFor[NetworkEchoTLS]():
+ return networkEchoStandardSchema(b, reflect.TypeFor[tls.ConnectionState]())
+ case reflect.TypeFor[NetworkEchoURL]():
+ return networkEchoStandardSchema(b, reflect.TypeFor[url.URL]())
+ case reflect.TypeFor[NetworkEchoCookies]():
+ return networkEchoStandardSchema(b, reflect.TypeFor[[]*http.Cookie]())
+ }
+ return nil, fmt.Errorf("unsupported network echo wrapper: %s", t)
+}
+
+func networkEchoStandardSchema(b *schemaBuilder, t reflect.Type) (*Schema, error) {
+ if t.Kind() == reflect.Pointer {
+ child, err := networkEchoStandardSchema(b, t.Elem())
+ if err != nil {
+ return nil, err
+ }
+ return nullable(child), nil
+ }
+ switch t {
+ case reflect.TypeFor[time.Time](), reflect.TypeFor[net.IP](), reflect.TypeFor[x509.OID]():
+ return &Schema{Type: "string"}, nil
+ case reflect.TypeFor[big.Int]():
+ return &Schema{Type: "integer"}, nil
+ }
+ switch t.Kind() {
+ case reflect.Bool:
+ return &Schema{Type: "boolean"}, nil
+ case reflect.String:
+ return &Schema{Type: "string"}, nil
+ case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64, reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64:
+ return &Schema{Type: "integer"}, nil
+ case reflect.Slice:
+ if t.Elem().Kind() == reflect.Uint8 {
+ return nullable(&Schema{Type: "string"}), nil
+ }
+ child, err := networkEchoStandardSchema(b, t.Elem())
+ if err != nil {
+ return nil, err
+ }
+ return nullable(&Schema{Type: "array", Items: child}), nil
+ case reflect.Struct:
+ name := "NetworkEcho" + t.Name()
+ if t.Name() == "PublicKey" {
+ name = "NetworkEcho" + strings.ToUpper(strings.TrimPrefix(t.PkgPath(), "crypto/")) + t.Name()
+ }
+ if owner, exists := b.owners[name]; exists {
+ if owner != t {
+ return nil, fmt.Errorf("conflicting echo type: %s", name)
+ }
+ return &Schema{Ref: "#/$defs/" + name}, nil
+ }
+ b.owners[name] = t
+ result := object(map[string]*Schema{})
+ b.definitions[name] = result
+ for i := 0; i < t.NumField(); i++ {
+ field := t.Field(i)
+ if !field.IsExported() {
+ continue
+ }
+ var child *Schema
+ var err error
+ switch {
+ case t == reflect.TypeFor[x509.Certificate]() && field.Name == "PublicKey":
+ child, err = networkEchoPublicKeySchema(b)
+ case t == reflect.TypeFor[pkix.AttributeTypeAndValue]() && field.Name == "Value":
+ child, err = networkEchoASN1Schema(b)
+ case t == reflect.TypeFor[ecdsa.PublicKey]() && field.Name == "Curve":
+ var parameters *Schema
+ parameters, err = networkEchoStandardSchema(b, reflect.TypeFor[elliptic.CurveParams]())
+ child = nullable(&Schema{AnyOf: []*Schema{object(map[string]*Schema{}), parameters}})
+ default:
+ child, err = networkEchoStandardSchema(b, field.Type)
+ }
+ if err != nil {
+ return nil, fmt.Errorf("%s.%s: %w", t, field.Name, err)
+ }
+ if field.Anonymous && field.Type.Kind() == reflect.Struct {
+ // DSA 的嵌入参数是标准结构体,JSON 展平其导出字段。
+ embedded := b.definitions["NetworkEcho"+field.Type.Name()]
+ if embedded == nil {
+ return nil, fmt.Errorf("unsupported embedded echo type: %s", field.Type)
+ }
+ for key, value := range embedded.Properties {
+ result.Properties[key] = value
+ }
+ result.Required = append(result.Required, embedded.Required...)
+ } else {
+ result.Properties[field.Name] = child
+ result.Required = append(result.Required, field.Name)
+ }
+ }
+ sort.Strings(result.Required)
+ return &Schema{Ref: "#/$defs/" + name}, nil
+ default:
+ return nil, fmt.Errorf("unsupported network echo standard type: %s", t)
+ }
+}
+
+func networkEchoPublicKeySchema(b *schemaBuilder) (*Schema, error) {
+ variants := []*Schema{{Type: "null"}, {Type: "string"}}
+ for _, t := range []reflect.Type{reflect.TypeFor[rsa.PublicKey](), reflect.TypeFor[ecdsa.PublicKey](), reflect.TypeFor[dsa.PublicKey]()} {
+ variant, err := networkEchoStandardSchema(b, t)
+ if err != nil {
+ return nil, err
+ }
+ variants = append(variants, variant)
+ }
+ return &Schema{AnyOf: variants}, nil
+}
+
+func networkEchoASN1Schema(b *schemaBuilder) (*Schema, error) {
+ raw, err := networkEchoStandardSchema(b, reflect.TypeFor[asn1.RawValue]())
+ if err != nil {
+ return nil, err
+ }
+ bitString, err := networkEchoStandardSchema(b, reflect.TypeFor[asn1.BitString]())
+ if err != nil {
+ return nil, err
+ }
+ return &Schema{AnyOf: []*Schema{{Type: "null"}, {Type: "string"}, {Type: "integer"}, {Type: "boolean"}, {Type: "array", Items: &Schema{Type: "integer"}}, raw, bitString}}, nil
+}
diff --git a/kernel/apicontract/network_input.go b/kernel/apicontract/network_input.go
new file mode 100644
index 0000000000..722c08d2d4
--- /dev/null
+++ b/kernel/apicontract/network_input.go
@@ -0,0 +1,62 @@
+package apicontract
+
+import (
+ "bytes"
+ "encoding/json"
+ "io"
+)
+
+func (request NetworkForwardRequest) Options() (options NetworkForwardOptions, err error) {
+ fields := request.fields
+ if options.Method, err = networkOptionalField[string](fields, "method", "String"); err != nil {
+ return
+ }
+ if options.Timeout, err = networkOptionalField[float64](fields, "timeout", "Number"); err != nil {
+ return
+ }
+ _ = json.Unmarshal(fields["responseEncoding"], &options.ResponseEncoding)
+ var redirect bool
+ if raw := fields["redirect"]; len(raw) > 0 && !bytes.Equal(raw, []byte("null")) && json.Unmarshal(raw, &redirect) == nil {
+ options.Redirect = &redirect
+ }
+ var headers []json.RawMessage
+ if json.Unmarshal(fields["headers"], &headers) == nil {
+ for _, raw := range headers {
+ var header map[string]JSONValue
+ if json.Unmarshal(raw, &header) == nil && header != nil {
+ options.Headers = append(options.Headers, header)
+ }
+ }
+ }
+ if options.ContentType, err = networkOptionalField[string](fields, "contentType", "String"); err != nil {
+ return
+ }
+ if options.PayloadEncoding, err = networkOptionalField[string](fields, "payloadEncoding", "String"); err != nil {
+ return
+ }
+ if raw := fields["payload"]; len(raw) > 0 {
+ err = json.Unmarshal(raw, &options.Payload)
+ }
+ return
+}
+
+func networkOptionalField[T any](fields fileTreeFields, key, kind string) (*T, error) {
+ if raw := fields[key]; len(raw) == 0 || bytes.Equal(raw, []byte("null")) {
+ return nil, nil
+ }
+ value, err := legacyField[T](fields, key, kind, false)
+ if err != nil {
+ return nil, err
+ }
+ return &value, nil
+}
+
+func init() {
+ NetworkForwardProxy.decodeRequest = func(reader io.Reader) (request NetworkForwardRequest, err error) {
+ request.fields, err = fileTreeRequestFields(reader, NetworkForwardProxy.definition.Path)
+ if err == nil {
+ request.URL, err = aiLegacyString(request.fields, "url", true, true)
+ }
+ return
+ }
+}
diff --git a/kernel/apicontract/network_test.go b/kernel/apicontract/network_test.go
new file mode 100644
index 0000000000..060c9c4cc4
--- /dev/null
+++ b/kernel/apicontract/network_test.go
@@ -0,0 +1,101 @@
+package apicontract
+
+import (
+ "crypto/dsa"
+ "crypto/ecdsa"
+ "crypto/ed25519"
+ "crypto/elliptic"
+ "crypto/rsa"
+ "crypto/tls"
+ "crypto/x509"
+ "crypto/x509/pkix"
+ "encoding/asn1"
+ "encoding/json"
+ "math/big"
+ "net"
+ "net/http"
+ "net/url"
+ "reflect"
+ "strings"
+ "testing"
+ "time"
+)
+
+func TestNetworkEchoStandardJSON(t *testing.T) {
+ builder := &schemaBuilder{definitions: map[string]*Schema{}, owners: map[string]reflect.Type{}}
+ parsed, _ := url.Parse("https://name:[email protected]:443/a%20b?q=1#fragment")
+ cases := []struct {
+ original, wrapped any
+ typ reflect.Type
+ }{
+ {parsed, EchoURL(parsed), reflect.TypeFor[NetworkEchoURL]()},
+ {[]*http.Cookie(nil), EchoCookies(nil), reflect.TypeFor[NetworkEchoCookies]()},
+ {[]*http.Cookie{{Name: "session", Value: "x", Expires: time.Unix(0, 0).UTC(), SameSite: http.SameSiteStrictMode}}, EchoCookies([]*http.Cookie{{Name: "session", Value: "x", Expires: time.Unix(0, 0).UTC(), SameSite: http.SameSiteStrictMode}}), reflect.TypeFor[NetworkEchoCookies]()},
+ }
+ for _, key := range []any{nil, &rsa.PublicKey{N: new(big.Int).Lsh(big.NewInt(1), 2048), E: 65537}, &ecdsa.PublicKey{Curve: elliptic.P256(), X: big.NewInt(1), Y: big.NewInt(2)}, ed25519.PublicKey{0, 1, 255}, &dsa.PublicKey{Parameters: dsa.Parameters{P: big.NewInt(1), Q: big.NewInt(2), G: big.NewInt(3)}, Y: big.NewInt(4)}} {
+ cert := &x509.Certificate{SerialNumber: big.NewInt(123), PublicKey: key, IPAddresses: []net.IP{net.ParseIP("127.0.0.1")}, Subject: pkix.Name{Names: []pkix.AttributeTypeAndValue{{Type: asn1.ObjectIdentifier{2, 5, 4, 3}, Value: "name"}}}}
+ state := &tls.ConnectionState{Version: tls.VersionTLS13, HandshakeComplete: true, PeerCertificates: []*x509.Certificate{cert}, VerifiedChains: [][]*x509.Certificate{{cert}}}
+ cases = append(cases, struct {
+ original, wrapped any
+ typ reflect.Type
+ }{state, EchoTLS(state), reflect.TypeFor[NetworkEchoTLS]()})
+ }
+ for _, tt := range cases {
+ expected, err := json.Marshal(tt.original)
+ if err != nil {
+ t.Fatal(err)
+ }
+ actual, err := json.Marshal(tt.wrapped)
+ if err != nil || string(actual) != string(expected) {
+ t.Fatalf("standard JSON changed: %s %v", actual, err)
+ }
+ schema, err := networkEchoSchema(builder, tt.typ)
+ if err != nil {
+ t.Fatal(err)
+ }
+ var value any
+ decoder := json.NewDecoder(strings.NewReader(string(actual)))
+ decoder.UseNumber()
+ if err = decoder.Decode(&value); err != nil {
+ t.Fatal(err)
+ }
+ if err = (&Bundle{Definitions: builder.definitions}).validate(schema, value, "$"); err != nil {
+ t.Fatalf("%s: %v", tt.typ, err)
+ }
+ }
+}
+
+func TestNetworkForwardCompatibility(t *testing.T) {
+ for _, body := range []string{`{"url":" https://example.com ","method":null,"timeout":null,"responseEncoding":12,"redirect":"false","headers":[null,1,{"X-A":null},{"X-B":[1,true]}],"payload":{"n":9007199254740993}}`, `{"url":"https://example.com","headers":{},"redirect":null}`} {
+ request, err := NetworkForwardProxy.Decode(strings.NewReader(body))
+ if err != nil {
+ t.Fatal(err)
+ }
+ if request.URL != "https://example.com" {
+ t.Fatal("URL trim changed")
+ }
+ options, err := request.Options()
+ if err != nil {
+ t.Fatal(err)
+ }
+ if options.Redirect != nil || options.ResponseEncoding != "" {
+ t.Fatal("ignored option compatibility changed")
+ }
+ if strings.Contains(body, "9007199254740993") {
+ if len(options.Headers) != 2 {
+ t.Fatal("heterogeneous headers changed")
+ }
+ encoded, _ := options.Payload.MarshalJSON()
+ if string(encoded) != `{"n":9007199254740992}` {
+ t.Fatalf("legacy float normalization changed: %s", encoded)
+ }
+ }
+ }
+ request, err := NetworkForwardProxy.Decode(strings.NewReader(`{"url":"invalid","method":3}`))
+ if err != nil {
+ t.Fatal("options decoded before URL validation", err)
+ }
+ if _, err = request.Options(); err == nil {
+ t.Fatal("invalid method accepted")
+ }
+}
diff --git a/kernel/apicontract/schema.go b/kernel/apicontract/schema.go
index 59745db385..94959599b5 100644
--- a/kernel/apicontract/schema.go
+++ b/kernel/apicontract/schema.go
@@ -90,6 +90,16 @@ func nonnullable(schema *Schema) *Schema {
}
func (b *schemaBuilder) schema(t reflect.Type, input bool) (*Schema, error) {
+ if t == reflect.TypeFor[*NetworkEchoTLS]() || t == reflect.TypeFor[*NetworkEchoURL]() || t == reflect.TypeFor[*NetworkEchoCookies]() {
+ schema, err := networkEchoSchema(b, t.Elem())
+ if err != nil {
+ return nil, err
+ }
+ return nullable(schema), nil
+ }
+ if t == reflect.TypeFor[NetworkEchoTLS]() || t == reflect.TypeFor[NetworkEchoURL]() || t == reflect.TypeFor[NetworkEchoCookies]() {
+ return networkEchoSchema(b, t)
+ }
if t == reflect.TypeFor[*AISession]() {
schema, err := aiSessionPayloadSchema(b, input)
if err != nil {
diff --git a/kernel/apicontract/schema.json b/kernel/apicontract/schema.json
index 0f75822423..36b1a4b433 100644
--- a/kernel/apicontract/schema.json
+++ b/kernel/apicontract/schema.json
@@ -26240,736 +26240,543 @@
],
"additionalProperties": false
},
- "NetworkProxy": {
- "type": "object",
- "properties": {
- "host": {
- "type": "string"
- },
- "port": {
- "type": "string"
- },
- "scheme": {
- "type": "string"
- }
- },
- "required": [
- "host",
- "port",
- "scheme"
- ],
- "additionalProperties": false
- },
- "NetworkProxyInput": {
+ "NetworkEchoAttributeTypeAndValue": {
"type": "object",
"properties": {
- "host": {
- "type": "string"
- },
- "port": {
- "type": "string"
+ "Type": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "integer"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "scheme": {
- "type": "string"
- }
- },
- "required": [
- "host",
- "port",
- "scheme"
- ],
- "additionalProperties": false
- },
- "NetworkServeRequestInput": {
- "type": "object",
- "properties": {
- "networkServe": {
- "type": "boolean"
- }
- },
- "required": [
- "networkServe"
- ],
- "additionalProperties": false
- },
- "NetworkServeTLSRequestInput": {
- "type": "object",
- "properties": {
- "networkServeTLS": {
- "type": "boolean"
+ "Value": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "type": "string"
+ },
+ {
+ "type": "integer"
+ },
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "array",
+ "items": {
+ "type": "integer"
+ }
+ },
+ {
+ "$ref": "#/$defs/NetworkEchoRawValue"
+ },
+ {
+ "$ref": "#/$defs/NetworkEchoBitString"
+ }
+ ]
}
},
"required": [
- "networkServeTLS"
+ "Type",
+ "Value"
],
"additionalProperties": false
},
- "Notebook": {
+ "NetworkEchoBitString": {
"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": {
+ "BitLength": {
"type": "integer"
},
- "sortMode": {
- "type": "integer"
- },
- "state": {
- "type": "string",
- "enum": [
- "Locked",
- "Unlocking",
- "Unlocked",
- "Locking",
- "Error"
+ "Bytes": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
]
- },
- "subFileCount": {
- "type": "integer"
- },
- "unlocked": {
- "type": "boolean"
}
},
"required": [
- "closed",
- "dueFlashcardCount",
- "encrypted",
- "flashcardCount",
- "icon",
- "id",
- "name",
- "newFlashcardCount",
- "sort",
- "sortMode",
- "subFileCount",
- "unlocked"
+ "BitLength",
+ "Bytes"
],
"additionalProperties": false
},
- "NotebookConf": {
+ "NetworkEchoCertificate": {
"type": "object",
"properties": {
- "boxCrypt": {
+ "AuthorityKeyId": {
"anyOf": [
{
- "$ref": "#/$defs/NotebookEncryption"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "closed": {
- "type": "boolean"
- },
- "dailyNoteSavePath": {
- "type": "string"
- },
- "dailyNoteTemplatePath": {
- "type": "string"
- },
- "docCreateSaveBox": {
- "type": "string"
- },
- "docCreateSavePath": {
- "type": "string"
- },
- "docCreateTemplatePath": {
- "type": "string"
- },
- "encrypted": {
+ "BasicConstraintsValid": {
"type": "boolean"
},
- "icon": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "refCreateSaveBox": {
- "type": "string"
- },
- "refCreateSavePath": {
- "type": "string"
- },
- "sort": {
- "type": "integer"
- },
- "sortMode": {
- "type": "integer"
- }
- },
- "required": [
- "boxCrypt",
- "closed",
- "dailyNoteSavePath",
- "dailyNoteTemplatePath",
- "docCreateSaveBox",
- "docCreateSavePath",
- "docCreateTemplatePath",
- "encrypted",
- "icon",
- "name",
- "refCreateSaveBox",
- "refCreateSavePath",
- "sort",
- "sortMode"
- ],
- "additionalProperties": false
- },
- "NotebookConfData": {
- "type": "object",
- "properties": {
- "box": {
- "type": "string"
- },
- "conf": {
+ "CRLDistributionPoints": {
"anyOf": [
{
- "$ref": "#/$defs/NotebookConf"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "name": {
- "type": "string"
- }
- },
- "required": [
- "box",
- "conf",
- "name"
- ],
- "additionalProperties": false
- },
- "NotebookConfPatchInput": {
- "type": "object",
- "properties": {
- "boxCrypt": {
+ "DNSNames": {
"anyOf": [
{
- "$ref": "#/$defs/NotebookEncryptionPatchInput"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "closed": {
+ "EmailAddresses": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "dailyNoteSavePath": {
+ "ExcludedDNSDomains": {
"anyOf": [
{
- "type": "string"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "dailyNoteTemplatePath": {
+ "ExcludedEmailAddresses": {
"anyOf": [
{
- "type": "string"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "docCreateSaveBox": {
+ "ExcludedIPRanges": {
"anyOf": [
{
- "type": "string"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/NetworkEchoIPNet"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
},
- "docCreateSavePath": {
+ "ExcludedURIDomains": {
"anyOf": [
{
- "type": "string"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "docCreateTemplatePath": {
+ "ExtKeyUsage": {
"anyOf": [
{
- "type": "string"
+ "type": "array",
+ "items": {
+ "type": "integer"
+ }
},
{
"type": "null"
}
]
},
- "encrypted": {
+ "Extensions": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/NetworkEchoExtension"
+ }
},
{
"type": "null"
}
]
},
- "icon": {
+ "ExtraExtensions": {
"anyOf": [
{
- "type": "string"
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/NetworkEchoExtension"
+ }
},
{
"type": "null"
}
]
},
- "name": {
+ "IPAddresses": {
"anyOf": [
{
- "type": "string"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "refCreateSaveBox": {
+ "InhibitAnyPolicy": {
+ "type": "integer"
+ },
+ "InhibitAnyPolicyZero": {
+ "type": "boolean"
+ },
+ "InhibitPolicyMapping": {
+ "type": "integer"
+ },
+ "InhibitPolicyMappingZero": {
+ "type": "boolean"
+ },
+ "IsCA": {
+ "type": "boolean"
+ },
+ "Issuer": {
+ "$ref": "#/$defs/NetworkEchoName"
+ },
+ "IssuingCertificateURL": {
"anyOf": [
{
- "type": "string"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "refCreateSavePath": {
+ "KeyUsage": {
+ "type": "integer"
+ },
+ "MaxPathLen": {
+ "type": "integer"
+ },
+ "MaxPathLenZero": {
+ "type": "boolean"
+ },
+ "NotAfter": {
+ "type": "string"
+ },
+ "NotBefore": {
+ "type": "string"
+ },
+ "OCSPServer": {
"anyOf": [
{
- "type": "string"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "sort": {
+ "PermittedDNSDomains": {
"anyOf": [
{
- "type": "integer"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "sortMode": {
+ "PermittedDNSDomainsCritical": {
+ "type": "boolean"
+ },
+ "PermittedEmailAddresses": {
"anyOf": [
{
- "type": "integer"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"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"
- },
- "metadata": {
- "type": "string"
- },
- "spec": {
- "type": "integer"
},
- "wrapNonce": {
+ "PermittedIPRanges": {
"anyOf": [
{
- "type": "string"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/NetworkEchoIPNet"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
},
- "wrappedDEK": {
+ "PermittedURIDomains": {
"anyOf": [
{
- "type": "string"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
- }
- },
- "required": [
- "createdAt",
- "spec",
- "wrapNonce",
- "wrappedDEK"
- ],
- "additionalProperties": false
- },
- "NotebookEncryptionPatchInput": {
- "type": "object",
- "properties": {
- "createdAt": {
+ },
+ "Policies": {
"anyOf": [
{
- "type": "integer"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "metadata": {
+ "PolicyIdentifiers": {
"anyOf": [
{
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "array",
- "items": {
- "type": "integer"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "integer"
+ }
+ },
+ {
+ "type": "null"
}
- }
- ]
+ ]
+ }
},
{
"type": "null"
}
]
},
- "spec": {
+ "PolicyMappings": {
"anyOf": [
{
- "type": "integer"
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/NetworkEchoPolicyMapping"
+ }
},
{
"type": "null"
}
]
},
- "wrapNonce": {
+ "PublicKey": {
"anyOf": [
{
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "array",
- "items": {
- "type": "integer"
- }
- }
- ]
+ "type": "null"
},
{
- "type": "null"
+ "type": "string"
+ },
+ {
+ "$ref": "#/$defs/NetworkEchoRSAPublicKey"
+ },
+ {
+ "$ref": "#/$defs/NetworkEchoECDSAPublicKey"
+ },
+ {
+ "$ref": "#/$defs/NetworkEchoDSAPublicKey"
}
]
},
- "wrappedDEK": {
+ "PublicKeyAlgorithm": {
+ "type": "integer"
+ },
+ "Raw": {
"anyOf": [
{
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "array",
- "items": {
- "type": "integer"
- }
- }
- ]
+ "type": "string"
},
{
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "NotebookHistoryData": {
- "type": "object",
- "properties": {
- "histories": {
+ },
+ "RawIssuer": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/History"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "string"
},
{
"type": "null"
}
]
- }
- },
- "required": [
- "histories"
- ],
- "additionalProperties": false
- },
- "NotebookIDRequestInput": {
- "type": "object",
- "properties": {
- "notebook": {
- "type": "string"
- }
- },
- "required": [
- "notebook"
- ],
- "additionalProperties": false
- },
- "NotebookInfo": {
- "type": "object",
- "properties": {
- "ctime": {
- "type": "integer"
},
- "docCount": {
- "type": "integer"
- },
- "hCtime": {
- "type": "string"
- },
- "hMtime": {
- "type": "string"
+ "RawSubject": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "hSize": {
- "type": "string"
+ "RawSubjectPublicKeyInfo": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "id": {
- "type": "string"
+ "RawTBSCertificate": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "mtime": {
+ "RequireExplicitPolicy": {
"type": "integer"
},
- "name": {
- "type": "string"
+ "RequireExplicitPolicyZero": {
+ "type": "boolean"
},
- "size": {
- "type": "integer"
- }
- },
- "required": [
- "ctime",
- "docCount",
- "hCtime",
- "hMtime",
- "hSize",
- "id",
- "mtime",
- "name",
- "size"
- ],
- "additionalProperties": false
- },
- "NotebookInfoData": {
- "type": "object",
- "properties": {
- "boxInfo": {
+ "SerialNumber": {
"anyOf": [
{
- "$ref": "#/$defs/NotebookInfo"
+ "type": "integer"
},
{
"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"
},
- "timeout": {
+ "Signature": {
"anyOf": [
{
- "type": "number"
+ "type": "string"
},
{
"type": "null"
}
]
- }
- },
- "required": [
- "msg"
- ],
- "additionalProperties": false
- },
- "ObsidianAnalysisRequestInput": {
- "type": "object",
- "properties": {
- "localPath": {
- "type": "string"
- }
- },
- "required": [
- "localPath"
- ],
- "additionalProperties": false
- },
- "ObsidianImportRequestInput": {
- "type": "object",
- "properties": {
- "notebookName": {
- "type": "string"
},
- "taskID": {
- "type": "string"
- }
- },
- "required": [
- "notebookName",
- "taskID"
- ],
- "additionalProperties": false
- },
- "ObsidianTaskRequestInput": {
- "type": "object",
- "properties": {
- "taskID": {
- "type": "string"
- }
- },
- "required": [
- "taskID"
- ],
- "additionalProperties": false
- },
- "ObsidianVaultAnalysis": {
- "type": "object",
- "properties": {
- "ambiguousCount": {
+ "SignatureAlgorithm": {
"type": "integer"
},
- "blockIDCount": {
- "type": "integer"
+ "Subject": {
+ "$ref": "#/$defs/NetworkEchoName"
},
- "blockingErrors": {
+ "SubjectKeyId": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "URIs": {
"anyOf": [
{
"type": "array",
"items": {
- "type": "string"
+ "anyOf": [
+ {
+ "$ref": "#/$defs/NetworkEchoURL"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
{
@@ -26977,66 +26784,225 @@
}
]
},
- "commentCount": {
- "type": "integer"
- },
- "embedCount": {
- "type": "integer"
- },
- "footnoteCount": {
- "type": "integer"
- },
- "importableAssetCount": {
- "type": "integer"
+ "UnhandledCriticalExtensions": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "integer"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "importableAssetSize": {
- "type": "integer"
+ "UnknownExtKeyUsage": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "integer"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "markdownCount": {
+ "Version": {
"type": "integer"
- },
- "missingCount": {
+ }
+ },
+ "required": [
+ "AuthorityKeyId",
+ "BasicConstraintsValid",
+ "CRLDistributionPoints",
+ "DNSNames",
+ "EmailAddresses",
+ "ExcludedDNSDomains",
+ "ExcludedEmailAddresses",
+ "ExcludedIPRanges",
+ "ExcludedURIDomains",
+ "ExtKeyUsage",
+ "Extensions",
+ "ExtraExtensions",
+ "IPAddresses",
+ "InhibitAnyPolicy",
+ "InhibitAnyPolicyZero",
+ "InhibitPolicyMapping",
+ "InhibitPolicyMappingZero",
+ "IsCA",
+ "Issuer",
+ "IssuingCertificateURL",
+ "KeyUsage",
+ "MaxPathLen",
+ "MaxPathLenZero",
+ "NotAfter",
+ "NotBefore",
+ "OCSPServer",
+ "PermittedDNSDomains",
+ "PermittedDNSDomainsCritical",
+ "PermittedEmailAddresses",
+ "PermittedIPRanges",
+ "PermittedURIDomains",
+ "Policies",
+ "PolicyIdentifiers",
+ "PolicyMappings",
+ "PublicKey",
+ "PublicKeyAlgorithm",
+ "Raw",
+ "RawIssuer",
+ "RawSubject",
+ "RawSubjectPublicKeyInfo",
+ "RawTBSCertificate",
+ "RequireExplicitPolicy",
+ "RequireExplicitPolicyZero",
+ "SerialNumber",
+ "Signature",
+ "SignatureAlgorithm",
+ "Subject",
+ "SubjectKeyId",
+ "URIs",
+ "UnhandledCriticalExtensions",
+ "UnknownExtKeyUsage",
+ "Version"
+ ],
+ "additionalProperties": false
+ },
+ "NetworkEchoConnectionState": {
+ "type": "object",
+ "properties": {
+ "CipherSuite": {
"type": "integer"
},
- "nameAdjustmentCount": {
+ "CurveID": {
"type": "integer"
},
- "notebookName": {
- "type": "string"
+ "DidResume": {
+ "type": "boolean"
},
- "skippedHiddenCount": {
- "type": "integer"
+ "ECHAccepted": {
+ "type": "boolean"
},
- "skippedLinkCount": {
- "type": "integer"
+ "HandshakeComplete": {
+ "type": "boolean"
},
- "skippedNestedVaultCount": {
- "type": "integer"
+ "HelloRetryRequest": {
+ "type": "boolean"
},
- "skippedSpecialCount": {
- "type": "integer"
+ "NegotiatedProtocol": {
+ "type": "string"
},
- "syntheticParentCount": {
- "type": "integer"
+ "NegotiatedProtocolIsMutual": {
+ "type": "boolean"
},
- "unreferencedFileCount": {
- "type": "integer"
+ "OCSPResponse": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "unsupportedCount": {
- "type": "integer"
+ "PeerCertificates": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/NetworkEchoCertificate"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "vaultName": {
+ "ServerName": {
"type": "string"
},
- "vaultPath": {
- "type": "string"
+ "SignedCertificateTimestamps": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "warnings": {
+ "TLSUnique": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "VerifiedChains": {
"anyOf": [
{
"type": "array",
"items": {
- "type": "string"
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/NetworkEchoCertificate"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
{
@@ -27044,282 +27010,352 @@
}
]
},
- "wikiLinkCount": {
+ "Version": {
"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"
+ "CipherSuite",
+ "CurveID",
+ "DidResume",
+ "ECHAccepted",
+ "HandshakeComplete",
+ "HelloRetryRequest",
+ "NegotiatedProtocol",
+ "NegotiatedProtocolIsMutual",
+ "OCSPResponse",
+ "PeerCertificates",
+ "ServerName",
+ "SignedCertificateTimestamps",
+ "TLSUnique",
+ "VerifiedChains",
+ "Version"
],
"additionalProperties": false
},
- "ObsidianVaultImportResult": {
+ "NetworkEchoContext": {
"type": "object",
"properties": {
- "convertedEmbedCount": {
- "type": "integer"
- },
- "convertedFootnoteCount": {
- "type": "integer"
- },
- "convertedLinkCount": {
- "type": "integer"
- },
- "failedStage": {
+ "ClientIP": {
"type": "string"
},
- "importedAttachmentCount": {
- "type": "integer"
- },
- "incomplete": {
- "type": "boolean"
- },
- "markdownCount": {
- "type": "integer"
- },
- "nameAdjustmentCount": {
- "type": "integer"
- },
- "notebookID": {
+ "ContentType": {
"type": "string"
},
- "notebookName": {
+ "FullPath": {
"type": "string"
},
- "preservedCommentCount": {
- "type": "integer"
+ "HandlerNames": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "preservedUnresolvedCount": {
- "type": "integer"
+ "IsWebsocket": {
+ "type": "boolean"
},
- "skippedPathCount": {
- "type": "integer"
+ "Params": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/NetworkEchoParam"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "syntheticParentCount": {
- "type": "integer"
+ "RawData": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "unreferencedFileCount": {
- "type": "integer"
+ "RemoteIP": {
+ "type": "string"
}
},
"required": [
- "convertedEmbedCount",
- "convertedFootnoteCount",
- "convertedLinkCount",
- "importedAttachmentCount",
- "incomplete",
- "markdownCount",
- "nameAdjustmentCount",
- "notebookID",
- "notebookName",
- "preservedCommentCount",
- "preservedUnresolvedCount",
- "skippedPathCount",
- "syntheticParentCount",
- "unreferencedFileCount"
+ "ClientIP",
+ "ContentType",
+ "FullPath",
+ "HandlerNames",
+ "IsWebsocket",
+ "Params",
+ "RawData",
+ "RemoteIP"
],
"additionalProperties": false
},
- "ObsidianVaultTask": {
+ "NetworkEchoCookie": {
"type": "object",
"properties": {
- "analysis": {
- "$ref": "#/$defs/ObsidianVaultAnalysis"
- },
- "detail": {
+ "Domain": {
"type": "string"
},
- "error": {
+ "Expires": {
"type": "string"
},
- "message": {
- "type": "string"
+ "HttpOnly": {
+ "type": "boolean"
},
- "progress": {
+ "MaxAge": {
"type": "integer"
},
- "result": {
- "$ref": "#/$defs/ObsidianVaultImportResult"
+ "Name": {
+ "type": "string"
},
- "state": {
+ "Partitioned": {
+ "type": "boolean"
+ },
+ "Path": {
"type": "string"
},
- "taskID": {
+ "Quoted": {
+ "type": "boolean"
+ },
+ "Raw": {
"type": "string"
- }
- },
- "required": [
- "message",
- "progress",
- "state",
- "taskID"
- ],
- "additionalProperties": false
- },
- "OpenNotebookRequestInput": {
- "type": "object",
- "properties": {
- "app": {
+ },
+ "RawExpires": {
+ "type": "string"
+ },
+ "SameSite": {
+ "type": "integer"
+ },
+ "Secure": {
+ "type": "boolean"
+ },
+ "Unparsed": {
"anyOf": [
{
- "type": "string"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "notebook": {
+ "Value": {
"type": "string"
}
},
"required": [
- "notebook"
+ "Domain",
+ "Expires",
+ "HttpOnly",
+ "MaxAge",
+ "Name",
+ "Partitioned",
+ "Path",
+ "Quoted",
+ "Raw",
+ "RawExpires",
+ "SameSite",
+ "Secure",
+ "Unparsed",
+ "Value"
],
"additionalProperties": false
},
- "OpenRepoSnapshotFileRequestInput": {
+ "NetworkEchoCurveParams": {
"type": "object",
"properties": {
- "id": {
- "type": "string"
- }
- },
- "required": [
- "id"
- ],
- "additionalProperties": false
- },
- "OrderedListStartData": {
- "type": "object",
- "properties": {
- "found": {
- "type": "boolean"
+ "B": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "start": {
+ "BitSize": {
"type": "integer"
- }
- },
- "required": [
- "found",
- "start"
- ],
- "additionalProperties": false
- },
- "OutlineRequestInput": {
- "type": "object",
- "properties": {
- "id": {
+ },
+ "Gx": {
"anyOf": [
{
- "type": "string"
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "notebook": {
+ "Gy": {
"anyOf": [
{
- "type": "string"
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "preview": {
+ "N": {
"anyOf": [
{
- "type": "boolean"
+ "type": "integer"
},
{
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "OutlineStorageRequestInput": {
- "type": "object",
- "properties": {
- "docID": {
+ },
+ "Name": {
"type": "string"
+ },
+ "P": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
"required": [
- "docID"
+ "B",
+ "BitSize",
+ "Gx",
+ "Gy",
+ "N",
+ "Name",
+ "P"
],
"additionalProperties": false
},
- "OutlineStorageSetRequestInput": {
+ "NetworkEchoDSAPublicKey": {
"type": "object",
"properties": {
- "docID": {
- "type": "string"
+ "G": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "val": {
- "type": "object",
- "additionalProperties": {
- "$ref": "#/$defs/JSONValue"
- }
+ "P": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "Q": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "Y": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
"required": [
- "docID",
- "val"
+ "G",
+ "P",
+ "Q",
+ "Y"
],
"additionalProperties": false
},
- "PandocData": {
+ "NetworkEchoData": {
"type": "object",
"properties": {
- "path": {
- "type": "string"
+ "Context": {
+ "$ref": "#/$defs/NetworkEchoContext"
+ },
+ "Request": {
+ "$ref": "#/$defs/NetworkEchoRequest"
+ },
+ "URL": {
+ "$ref": "#/$defs/NetworkEchoURLInfo"
+ },
+ "User": {
+ "$ref": "#/$defs/NetworkEchoUser"
}
},
"required": [
- "path"
+ "Context",
+ "Request",
+ "URL",
+ "User"
],
"additionalProperties": false
},
- "PandocRequestInput": {
+ "NetworkEchoECDSAPublicKey": {
"type": "object",
"properties": {
- "args": {
- "type": "array",
- "items": {
- "type": "string"
- }
+ "Curve": {
+ "anyOf": [
+ {
+ "anyOf": [
+ {
+ "type": "object",
+ "additionalProperties": false
+ },
+ {
+ "$ref": "#/$defs/NetworkEchoCurveParams"
+ }
+ ]
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "dir": {
+ "X": {
"anyOf": [
{
- "type": "string"
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "Y": {
+ "anyOf": [
+ {
+ "type": "integer"
},
{
"type": "null"
@@ -27328,53 +27364,74 @@
}
},
"required": [
- "args"
+ "Curve",
+ "X",
+ "Y"
],
"additionalProperties": false
},
- "PerformSyncRequestInput": {
+ "NetworkEchoExtension": {
"type": "object",
"properties": {
- "mobileSwitch": {
+ "Critical": {
+ "type": "boolean"
+ },
+ "Id": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "type": "integer"
+ }
},
{
"type": "null"
}
]
},
- "upload": {
- "type": "boolean"
+ "Value": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
+ "required": [
+ "Critical",
+ "Id",
+ "Value"
+ ],
"additionalProperties": false
},
- "Petal": {
+ "NetworkEchoFile": {
"type": "object",
"properties": {
- "css": {
+ "Content": {
"type": "string"
},
- "disabledInPublish": {
- "type": "boolean"
- },
- "disallowInstall": {
- "type": "boolean"
- },
- "displayName": {
+ "Filename": {
"type": "string"
},
- "enabled": {
- "type": "boolean"
- },
- "i18n": {
+ "Header": {
"anyOf": [
{
"type": "object",
"additionalProperties": {
- "$ref": "#/$defs/JSONValue"
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
{
@@ -27382,151 +27439,104 @@
}
]
},
- "incompatible": {
- "type": "boolean"
- },
- "js": {
- "type": "string"
- },
- "kernel": {
- "$ref": "#/$defs/KernelPetal"
- },
- "name": {
- "type": "string"
- },
- "userDisabledInPublish": {
- "type": "boolean"
- },
- "version": {
- "type": "string"
+ "Size": {
+ "type": "integer"
}
},
"required": [
- "css",
- "disabledInPublish",
- "disallowInstall",
- "displayName",
- "enabled",
- "i18n",
- "incompatible",
- "js",
- "kernel",
- "name",
- "userDisabledInPublish",
- "version"
+ "Content",
+ "Filename",
+ "Header",
+ "Size"
],
"additionalProperties": false
},
- "PinnedDoc": {
+ "NetworkEchoIPNet": {
"type": "object",
"properties": {
- "childrenSortMode": {
+ "IP": {
+ "type": "string"
+ },
+ "Mask": {
"anyOf": [
{
- "type": "integer"
+ "type": "string"
},
{
"type": "null"
}
]
- },
- "icon": {
- "type": "string"
- },
- "id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "notebook": {
- "type": "string"
- },
- "path": {
- "type": "string"
- },
- "subFileCount": {
- "type": "integer"
- },
- "unavailable": {
- "type": "boolean"
- }
- },
- "required": [
- "childrenSortMode",
- "icon",
- "id",
- "name",
- "notebook",
- "path",
- "subFileCount",
- "unavailable"
- ],
- "additionalProperties": false
- },
- "PluginRPCError": {
- "type": "object",
- "properties": {
- "code": {
- "type": "integer"
- },
- "data": {
- "$ref": "#/$defs/JSONValue"
- },
- "message": {
- "type": "string"
}
},
"required": [
- "code",
- "message"
+ "IP",
+ "Mask"
],
"additionalProperties": false
},
- "PluginRPCFailure": {
+ "NetworkEchoMultipart": {
"type": "object",
"properties": {
- "error": {
+ "File": {
"anyOf": [
{
- "$ref": "#/$defs/PluginRPCError"
+ "type": "object",
+ "additionalProperties": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/NetworkEchoFile"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
},
- "id": {
+ "Value": {
"anyOf": [
{
- "type": "string"
- },
- {
- "type": "number"
+ "type": "object",
+ "additionalProperties": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
- },
- "jsonrpc": {
- "type": "string",
- "enum": [
- "2.0"
- ]
}
},
"required": [
- "error",
- "id",
- "jsonrpc"
+ "File",
+ "Value"
],
"additionalProperties": false
},
- "PluginRPCMethod": {
+ "NetworkEchoName": {
"type": "object",
"properties": {
- "descriptions": {
+ "CommonName": {
+ "type": "string"
+ },
+ "Country": {
"anyOf": [
{
"type": "array",
@@ -27539,311 +27549,229 @@
}
]
},
- "name": {
- "type": "string"
- }
- },
- "required": [
- "descriptions",
- "name"
- ],
- "additionalProperties": false
- },
- "PluginRPCNotification": {
- "type": "object",
- "properties": {
- "jsonrpc": {
- "type": "string",
- "enum": [
- "2.0"
+ "ExtraNames": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/NetworkEchoAttributeTypeAndValue"
+ }
+ },
+ {
+ "type": "null"
+ }
]
},
- "method": {
- "type": "string"
- },
- "params": {
- "$ref": "#/$defs/JSONValue"
- }
- },
- "required": [
- "jsonrpc",
- "method"
- ],
- "additionalProperties": false
- },
- "PluginRPCRequestFieldsInput": {
- "type": "object",
- "properties": {
- "id": {
+ "Locality": {
"anyOf": [
{
- "type": "string"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
- "type": "number"
+ "type": "null"
+ }
+ ]
+ },
+ "Names": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/NetworkEchoAttributeTypeAndValue"
+ }
},
{
"type": "null"
}
]
},
- "jsonrpc": {
- "type": "string",
- "enum": [
- "2.0"
+ "Organization": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
]
},
- "method": {
- "type": "string"
- },
- "params": {
+ "OrganizationalUnit": {
"anyOf": [
{
- "anyOf": [
- {
- "type": "array",
- "items": {
- "$ref": "#/$defs/JSONValue"
- }
- },
- {
- "type": "object",
- "additionalProperties": {
- "$ref": "#/$defs/JSONValue"
- }
- }
- ]
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
- }
- },
- "required": [
- "jsonrpc",
- "method"
- ],
- "additionalProperties": false
- },
- "PluginRPCSuccess": {
- "type": "object",
- "properties": {
- "id": {
+ },
+ "PostalCode": {
"anyOf": [
{
- "type": "string"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
- "type": "number"
+ "type": "null"
+ }
+ ]
+ },
+ "Province": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "jsonrpc": {
- "type": "string",
- "enum": [
- "2.0"
- ]
+ "SerialNumber": {
+ "type": "string"
},
- "result": {
- "$ref": "#/$defs/JSONValue"
- }
- },
- "required": [
- "id",
- "jsonrpc",
- "result"
- ],
- "additionalProperties": false
- },
- "PrepareRichTextRequestInput": {
- "type": "object",
- "properties": {
- "assets": {
- "type": "array",
- "items": {
- "$ref": "#/$defs/RichClipboardAssetInput"
- }
+ "StreetAddress": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
"required": [
- "assets"
+ "CommonName",
+ "Country",
+ "ExtraNames",
+ "Locality",
+ "Names",
+ "Organization",
+ "OrganizationalUnit",
+ "PostalCode",
+ "Province",
+ "SerialNumber",
+ "StreetAddress"
],
"additionalProperties": false
},
- "PrependBlockRequestInput": {
+ "NetworkEchoParam": {
"type": "object",
"properties": {
- "data": {
- "type": "string"
- },
- "dataType": {
+ "Key": {
"type": "string"
},
- "parentID": {
+ "Value": {
"type": "string"
}
},
"required": [
- "data",
- "dataType",
- "parentID"
+ "Key",
+ "Value"
],
"additionalProperties": false
},
- "ProcessPDFRequestInput": {
+ "NetworkEchoParameters": {
"type": "object",
"properties": {
- "id": {
- "type": "string"
- },
- "merge": {
+ "G": {
"anyOf": [
{
- "type": "boolean"
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "mergeContentHeadingMode": {
+ "P": {
"anyOf": [
{
- "type": "string"
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "mergeDocHeadingMode": {
+ "Q": {
"anyOf": [
{
- "type": "string"
+ "type": "integer"
},
{
"type": "null"
}
]
- },
- "path": {
- "type": "string"
- },
- "removeAssets": {
- "type": "boolean"
- },
- "watermark": {
- "type": "boolean"
}
},
"required": [
- "id",
- "path",
- "removeAssets",
- "watermark"
- ],
- "additionalProperties": false
- },
- "PublishedBlockInfo": {
- "type": "object",
- "properties": {
- "publishAccessRequired": {
- "type": "boolean",
- "enum": [
- true
- ]
- },
- "rootID": {
- "type": "string"
- },
- "rootIcon": {
- "type": "string"
- },
- "rootTitle": {
- "type": "string"
- },
- "rootTitleEmpty": {
- "type": "boolean"
- }
- },
- "required": [
- "publishAccessRequired",
- "rootID",
- "rootIcon",
- "rootTitle",
- "rootTitleEmpty"
+ "G",
+ "P",
+ "Q"
],
"additionalProperties": false
},
- "PutFileRequestInput": {
+ "NetworkEchoPolicyMapping": {
"type": "object",
"properties": {
- "app": {
- "type": "string"
- },
- "file": {
- "type": "string",
- "format": "binary"
- },
- "isDir": {
- "type": "string"
- },
- "modTime": {
+ "IssuerDomainPolicy": {
"type": "string"
},
- "path": {
- "type": "string"
- }
- },
- "additionalProperties": false
- },
- "ReadDirectoryRequestInput": {
- "type": "object",
- "properties": {
- "path": {
+ "SubjectDomainPolicy": {
"type": "string"
}
},
"required": [
- "path"
+ "IssuerDomainPolicy",
+ "SubjectDomainPolicy"
],
"additionalProperties": false
},
- "RecentDoc": {
+ "NetworkEchoRSAPublicKey": {
"type": "object",
"properties": {
- "closedAt": {
- "type": "integer"
- },
- "icon": {
- "type": "string"
- },
- "openAt": {
+ "E": {
"type": "integer"
},
- "rootID": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "viewedAt": {
- "type": "integer"
+ "N": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
"required": [
- "rootID"
+ "E",
+ "N"
],
"additionalProperties": false
},
- "RecentDocUpdateRequestInput": {
+ "NetworkEchoRawValue": {
"type": "object",
"properties": {
- "rootID": {
+ "Bytes": {
"anyOf": [
{
"type": "string"
@@ -27852,14 +27780,11 @@
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "RecentDocsRequestInput": {
- "type": "object",
- "properties": {
- "sortBy": {
+ },
+ "Class": {
+ "type": "integer"
+ },
+ "FullBytes": {
"anyOf": [
{
"type": "string"
@@ -27868,38 +27793,68 @@
"type": "null"
}
]
+ },
+ "IsCompound": {
+ "type": "boolean"
+ },
+ "Tag": {
+ "type": "integer"
}
},
+ "required": [
+ "Bytes",
+ "Class",
+ "FullBytes",
+ "IsCompound",
+ "Tag"
+ ],
"additionalProperties": false
},
- "RecentDocsUpdateRequestInput": {
+ "NetworkEchoRequest": {
"type": "object",
"properties": {
- "rootIDs": {
+ "Close": {
+ "type": "boolean"
+ },
+ "ContentLength": {
+ "type": "integer"
+ },
+ "Cookies": {
"anyOf": [
{
"type": "array",
"items": {
- "type": "string"
+ "anyOf": [
+ {
+ "$ref": "#/$defs/NetworkEchoCookie"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
{
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "RefDefs": {
- "type": "object",
- "properties": {
- "defIDs": {
+ },
+ "Form": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
+ "type": "object",
+ "additionalProperties": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
{
@@ -27907,40 +27862,22 @@
}
]
},
- "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": {
+ "Header": {
"anyOf": [
{
"type": "object",
"additionalProperties": {
- "type": "string"
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
{
@@ -27948,14 +27885,33 @@
}
]
},
- "refDefs": {
+ "Host": {
+ "type": "string"
+ },
+ "Method": {
+ "type": "string"
+ },
+ "MultipartForm": {
"anyOf": [
{
- "type": "array",
- "items": {
+ "$ref": "#/$defs/NetworkEchoMultipart"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "PostForm": {
+ "anyOf": [
+ {
+ "type": "object",
+ "additionalProperties": {
"anyOf": [
{
- "$ref": "#/$defs/RefDefs"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
@@ -27967,28 +27923,56 @@
"type": "null"
}
]
- }
- },
- "required": [
- "originalRefBlockIDs",
- "refDefs"
- ],
- "additionalProperties": false
- },
- "RefIDsRequestInput": {
- "type": "object",
- "properties": {
- "id": {
+ },
+ "Proto": {
+ "type": "string"
+ },
+ "ProtoMajor": {
+ "type": "integer"
+ },
+ "ProtoMinor": {
+ "type": "integer"
+ },
+ "Referer": {
+ "type": "string"
+ },
+ "RemoteAddr": {
+ "type": "string"
+ },
+ "TLS": {
"anyOf": [
{
- "type": "string"
+ "$ref": "#/$defs/NetworkEchoConnectionState"
},
{
"type": "null"
}
]
},
- "ids": {
+ "Trailer": {
+ "anyOf": [
+ {
+ "type": "object",
+ "additionalProperties": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "TransferEncoding": {
"anyOf": [
{
"type": "array",
@@ -28001,29 +27985,80 @@
}
]
},
- "notebook": {
+ "URL": {
"anyOf": [
{
- "type": "string"
+ "$ref": "#/$defs/NetworkEchoURL"
},
{
"type": "null"
}
]
+ },
+ "UserAgent": {
+ "type": "string"
}
},
+ "required": [
+ "Close",
+ "ContentLength",
+ "Cookies",
+ "Form",
+ "Header",
+ "Host",
+ "Method",
+ "MultipartForm",
+ "PostForm",
+ "Proto",
+ "ProtoMajor",
+ "ProtoMinor",
+ "Referer",
+ "RemoteAddr",
+ "TLS",
+ "Trailer",
+ "TransferEncoding",
+ "URL",
+ "UserAgent"
+ ],
"additionalProperties": false
},
- "RefTextQueryRequestInput": {
+ "NetworkEchoURL": {
"type": "object",
"properties": {
- "anchor": {
+ "ForceQuery": {
+ "type": "boolean"
+ },
+ "Fragment": {
"type": "string"
},
- "notebook": {
+ "Host": {
+ "type": "string"
+ },
+ "OmitHost": {
+ "type": "boolean"
+ },
+ "Opaque": {
+ "type": "string"
+ },
+ "Path": {
+ "type": "string"
+ },
+ "RawFragment": {
+ "type": "string"
+ },
+ "RawPath": {
+ "type": "string"
+ },
+ "RawQuery": {
+ "type": "string"
+ },
+ "Scheme": {
+ "type": "string"
+ },
+ "User": {
"anyOf": [
{
- "type": "string"
+ "$ref": "#/$defs/NetworkEchoUserinfo"
},
{
"type": "null"
@@ -28032,107 +28067,168 @@
}
},
"required": [
- "anchor"
+ "ForceQuery",
+ "Fragment",
+ "Host",
+ "OmitHost",
+ "Opaque",
+ "Path",
+ "RawFragment",
+ "RawPath",
+ "RawQuery",
+ "Scheme",
+ "User"
],
"additionalProperties": false
},
- "RefreshBacklinkRequestInput": {
+ "NetworkEchoURLInfo": {
"type": "object",
"properties": {
- "id": {
+ "EscapedFragment": {
"type": "string"
- }
- },
- "required": [
- "id"
- ],
- "additionalProperties": false
- },
- "RemoveAttributeViewBlocksRequestInput": {
- "type": "object",
- "properties": {
- "avID": {
+ },
+ "EscapedPath": {
"type": "string"
},
- "srcIDs": {
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- },
- "required": [
- "avID",
- "srcIDs"
- ],
- "additionalProperties": false
- },
- "RemoveAttributeViewKeyRequestInput": {
- "type": "object",
- "properties": {
- "avID": {
+ "Hostname": {
"type": "string"
},
- "keyID": {
+ "IsAbs": {
+ "type": "boolean"
+ },
+ "Port": {
"type": "string"
},
- "removeRelationDest": {
+ "Query": {
"anyOf": [
{
- "type": "boolean"
+ "type": "object",
+ "additionalProperties": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
+ },
+ "Redacted": {
+ "type": "string"
+ },
+ "RequestURI": {
+ "type": "string"
+ },
+ "String": {
+ "type": "string"
}
},
"required": [
- "avID",
- "keyID"
+ "EscapedFragment",
+ "EscapedPath",
+ "Hostname",
+ "IsAbs",
+ "Port",
+ "Query",
+ "Redacted",
+ "RequestURI",
+ "String"
],
"additionalProperties": false
},
- "RemoveBookmarkRequestInput": {
+ "NetworkEchoUser": {
"type": "object",
"properties": {
- "bookmark": {
+ "Exists": {
+ "type": "boolean"
+ },
+ "Password": {
+ "type": "string"
+ },
+ "Username": {
"type": "string"
}
},
"required": [
- "bookmark"
+ "Exists",
+ "Password",
+ "Username"
],
"additionalProperties": false
},
- "RemoveCloudRepoTagSnapshotRequestInput": {
+ "NetworkEchoUserinfo": {
"type": "object",
- "properties": {
- "tag": {
- "type": "string"
- }
- },
- "required": [
- "tag"
- ],
"additionalProperties": false
},
- "RemoveCriterionRequestInput": {
+ "NetworkForwardData": {
"type": "object",
"properties": {
- "name": {
+ "body": {
+ "type": "string"
+ },
+ "bodyEncoding": {
+ "type": "string"
+ },
+ "contentType": {
+ "type": "string"
+ },
+ "elapsed": {
+ "type": "integer"
+ },
+ "headers": {
+ "anyOf": [
+ {
+ "type": "object",
+ "additionalProperties": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "status": {
+ "type": "integer"
+ },
+ "url": {
"type": "string"
}
},
"required": [
- "name"
+ "body",
+ "bodyEncoding",
+ "contentType",
+ "elapsed",
+ "headers",
+ "status",
+ "url"
],
"additionalProperties": false
},
- "RemoveFileRequestInput": {
+ "NetworkForwardRequestInput": {
"type": "object",
"properties": {
- "app": {
+ "contentType": {
"anyOf": [
{
"type": "string"
@@ -28142,176 +28238,340 @@
}
]
},
- "path": {
+ "headers": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "type": "object",
+ "additionalProperties": {
+ "$ref": "#/$defs/JSONValue"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "method": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "payload": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/JSONValue"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "payloadEncoding": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "redirect": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "responseEncoding": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "timeout": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "url": {
"type": "string"
}
},
"required": [
- "path"
+ "url"
],
"additionalProperties": false
},
- "RemoveRepoTagSnapshotRequestInput": {
+ "NetworkProxy": {
"type": "object",
"properties": {
- "tag": {
+ "host": {
+ "type": "string"
+ },
+ "port": {
+ "type": "string"
+ },
+ "scheme": {
"type": "string"
}
},
"required": [
- "tag"
+ "host",
+ "port",
+ "scheme"
],
"additionalProperties": false
},
- "RemoveShorthandsRequestInput": {
+ "NetworkProxyInput": {
"type": "object",
"properties": {
- "ids": {
- "type": "array",
- "items": {
- "type": "string"
- }
+ "host": {
+ "type": "string"
+ },
+ "port": {
+ "type": "string"
+ },
+ "scheme": {
+ "type": "string"
}
},
"required": [
- "ids"
+ "host",
+ "port",
+ "scheme"
],
"additionalProperties": false
},
- "RemoveTagRequestInput": {
+ "NetworkServeRequestInput": {
"type": "object",
"properties": {
- "label": {
- "type": "string"
+ "networkServe": {
+ "type": "boolean"
}
},
"required": [
- "label"
+ "networkServe"
],
"additionalProperties": false
},
- "RemoveUnusedAttributeViewRequestInput": {
+ "NetworkServeTLSRequestInput": {
"type": "object",
"properties": {
- "id": {
- "type": "string"
+ "networkServeTLS": {
+ "type": "boolean"
}
},
"required": [
- "id"
+ "networkServeTLS"
],
"additionalProperties": false
},
- "RenameAssetRequestInput": {
+ "Notebook": {
"type": "object",
"properties": {
- "newName": {
+ "closed": {
+ "type": "boolean"
+ },
+ "dueFlashcardCount": {
+ "type": "integer"
+ },
+ "encrypted": {
+ "type": "boolean"
+ },
+ "flashcardCount": {
+ "type": "integer"
+ },
+ "icon": {
"type": "string"
},
- "oldPath": {
+ "id": {
+ "type": "string"
+ },
+ "name": {
"type": "string"
+ },
+ "newFlashcardCount": {
+ "type": "integer"
+ },
+ "sort": {
+ "type": "integer"
+ },
+ "sortMode": {
+ "type": "integer"
+ },
+ "state": {
+ "type": "string",
+ "enum": [
+ "Locked",
+ "Unlocking",
+ "Unlocked",
+ "Locking",
+ "Error"
+ ]
+ },
+ "subFileCount": {
+ "type": "integer"
+ },
+ "unlocked": {
+ "type": "boolean"
}
},
"required": [
- "newName",
- "oldPath"
+ "closed",
+ "dueFlashcardCount",
+ "encrypted",
+ "flashcardCount",
+ "icon",
+ "id",
+ "name",
+ "newFlashcardCount",
+ "sort",
+ "sortMode",
+ "subFileCount",
+ "unlocked"
],
"additionalProperties": false
},
- "RenameBookmarkRequestInput": {
+ "NotebookConf": {
"type": "object",
"properties": {
- "newBookmark": {
+ "boxCrypt": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/NotebookEncryption"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "closed": {
+ "type": "boolean"
+ },
+ "dailyNoteSavePath": {
"type": "string"
},
- "oldBookmark": {
+ "dailyNoteTemplatePath": {
"type": "string"
- }
- },
- "required": [
- "newBookmark",
- "oldBookmark"
- ],
- "additionalProperties": false
- },
- "RenameFileRequestInput": {
- "type": "object",
- "properties": {
- "newPath": {
+ },
+ "docCreateSaveBox": {
"type": "string"
},
- "path": {
+ "docCreateSavePath": {
"type": "string"
- }
- },
- "required": [
- "newPath",
- "path"
- ],
- "additionalProperties": false
- },
- "RenameNotebookRequestInput": {
- "type": "object",
- "properties": {
+ },
+ "docCreateTemplatePath": {
+ "type": "string"
+ },
+ "encrypted": {
+ "type": "boolean"
+ },
+ "icon": {
+ "type": "string"
+ },
"name": {
"type": "string"
},
- "notebook": {
+ "refCreateSaveBox": {
+ "type": "string"
+ },
+ "refCreateSavePath": {
"type": "string"
+ },
+ "sort": {
+ "type": "integer"
+ },
+ "sortMode": {
+ "type": "integer"
}
},
"required": [
+ "boxCrypt",
+ "closed",
+ "dailyNoteSavePath",
+ "dailyNoteTemplatePath",
+ "docCreateSaveBox",
+ "docCreateSavePath",
+ "docCreateTemplatePath",
+ "encrypted",
+ "icon",
"name",
- "notebook"
+ "refCreateSaveBox",
+ "refCreateSavePath",
+ "sort",
+ "sortMode"
],
"additionalProperties": false
},
- "RenameRiffDeckRequestInput": {
+ "NotebookConfData": {
"type": "object",
"properties": {
- "deckID": {
+ "box": {
"type": "string"
},
+ "conf": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/NotebookConf"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
"name": {
"type": "string"
}
},
"required": [
- "deckID",
+ "box",
+ "conf",
"name"
],
"additionalProperties": false
},
- "RenameTagRequestInput": {
- "type": "object",
- "properties": {
- "newLabel": {
- "type": "string"
- },
- "oldLabel": {
- "type": "string"
- }
- },
- "required": [
- "newLabel",
- "oldLabel"
- ],
- "additionalProperties": false
- },
- "RenderAttributeViewRequestInput": {
+ "NotebookConfPatchInput": {
"type": "object",
"properties": {
- "blockID": {
+ "boxCrypt": {
"anyOf": [
{
- "type": "string"
+ "$ref": "#/$defs/NotebookEncryptionPatchInput"
},
{
"type": "null"
}
]
},
- "createIfNotExist": {
+ "closed": {
"anyOf": [
{
"type": "boolean"
@@ -28321,40 +28581,27 @@
}
]
},
- "groupPaging": {
+ "dailyNoteSavePath": {
"anyOf": [
{
- "type": "object",
- "additionalProperties": {
- "anyOf": [
- {
- "$ref": "#/$defs/AVGroupPagingInput"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "string"
},
{
"type": "null"
}
]
},
- "id": {
- "type": "string"
- },
- "ignoreRows": {
+ "dailyNoteTemplatePath": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "initialLayout": {
+ "docCreateSaveBox": {
"anyOf": [
{
"type": "string"
@@ -28364,37 +28611,37 @@
}
]
},
- "page": {
+ "docCreateSavePath": {
"anyOf": [
{
- "type": "number"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "pageSize": {
+ "docCreateTemplatePath": {
"anyOf": [
{
- "type": "number"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "query": {
+ "encrypted": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "targetGroupID": {
+ "icon": {
"anyOf": [
{
"type": "string"
@@ -28404,7 +28651,7 @@
}
]
},
- "targetItemID": {
+ "name": {
"anyOf": [
{
"type": "string"
@@ -28414,7 +28661,7 @@
}
]
},
- "viewID": {
+ "refCreateSaveBox": {
"anyOf": [
{
"type": "string"
@@ -28423,17 +28670,8 @@
"type": "null"
}
]
- }
- },
- "required": [
- "id"
- ],
- "additionalProperties": false
- },
- "RenderHistoryAttributeViewRequestInput": {
- "type": "object",
- "properties": {
- "blockID": {
+ },
+ "refCreateSavePath": {
"anyOf": [
{
"type": "string"
@@ -28443,122 +28681,171 @@
}
]
},
- "carrierViewID": {
+ "sort": {
"anyOf": [
{
- "type": "string"
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "created": {
- "type": "string"
- },
- "groupPaging": {
+ "sortMode": {
"anyOf": [
{
- "type": "object",
- "additionalProperties": {
- "anyOf": [
- {
- "$ref": "#/$defs/AVGroupPagingInput"
- },
- {
- "type": "null"
- }
- ]
- }
+ "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"
},
- "id": {
+ "metadata": {
"type": "string"
},
- "page": {
+ "spec": {
+ "type": "integer"
+ },
+ "wrapNonce": {
"anyOf": [
{
- "type": "number"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "pageSize": {
+ "wrappedDEK": {
"anyOf": [
{
- "type": "number"
+ "type": "string"
},
{
"type": "null"
}
]
- },
- "query": {
+ }
+ },
+ "required": [
+ "createdAt",
+ "spec",
+ "wrapNonce",
+ "wrappedDEK"
+ ],
+ "additionalProperties": false
+ },
+ "NotebookEncryptionPatchInput": {
+ "type": "object",
+ "properties": {
+ "createdAt": {
"anyOf": [
{
- "type": "string"
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "viewID": {
+ "metadata": {
"anyOf": [
{
- "type": "string"
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "array",
+ "items": {
+ "type": "integer"
+ }
+ }
+ ]
},
{
"type": "null"
}
]
- }
- },
- "required": [
- "created",
- "id"
- ],
- "additionalProperties": false
- },
- "RenderSnapshotAttributeViewRequestInput": {
- "type": "object",
- "properties": {
- "blockID": {
+ },
+ "spec": {
"anyOf": [
{
- "type": "string"
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "carrierViewID": {
+ "wrapNonce": {
"anyOf": [
{
- "type": "string"
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "array",
+ "items": {
+ "type": "integer"
+ }
+ }
+ ]
},
{
"type": "null"
}
]
},
- "id": {
- "type": "string"
- },
- "snapshot": {
- "type": "string"
- },
- "viewID": {
+ "wrappedDEK": {
"anyOf": [
{
- "type": "string"
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "array",
+ "items": {
+ "type": "integer"
+ }
+ }
+ ]
},
{
"type": "null"
@@ -28566,69 +28853,100 @@
]
}
},
- "required": [
- "id",
- "snapshot"
- ],
"additionalProperties": false
},
- "RenderSprigRequestInput": {
+ "NotebookHistoryData": {
"type": "object",
"properties": {
- "template": {
- "type": "string"
+ "histories": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/History"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
"required": [
- "template"
+ "histories"
],
"additionalProperties": false
},
- "RenderTemplateData": {
+ "NotebookIDRequestInput": {
"type": "object",
"properties": {
- "content": {
- "type": "string"
- },
- "docTreePlan": {
- "$ref": "#/$defs/TemplatePlan"
- },
- "path": {
+ "notebook": {
"type": "string"
}
},
"required": [
- "content",
- "path"
+ "notebook"
],
"additionalProperties": false
},
- "RenderTemplateRequestInput": {
+ "NotebookInfo": {
"type": "object",
"properties": {
- "content": {
+ "ctime": {
+ "type": "integer"
+ },
+ "docCount": {
+ "type": "integer"
+ },
+ "hCtime": {
+ "type": "string"
+ },
+ "hMtime": {
+ "type": "string"
+ },
+ "hSize": {
"type": "string"
},
"id": {
"type": "string"
},
- "mode": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
+ "mtime": {
+ "type": "integer"
},
- "path": {
+ "name": {
"type": "string"
},
- "preview": {
+ "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"
@@ -28637,180 +28955,111 @@
}
},
"required": [
- "id",
- "path"
+ "boxInfo"
],
"additionalProperties": false
},
- "ReorderData": {
+ "NotebookPasswordRequestInput": {
"type": "object",
"properties": {
- "changed": {
- "type": "boolean"
- },
- "notebook": {
- "type": "string"
- },
- "parentPath": {
+ "password": {
"type": "string"
}
},
"required": [
- "changed"
+ "password"
],
"additionalProperties": false
},
- "ReorderNotebooksRequestInput": {
+ "NotificationData": {
"type": "object",
"properties": {
- "position": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "sourceIDs": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- {
- "type": "null"
- }
- ]
- },
- "targetID": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
+ "id": {
+ "type": "string"
}
},
+ "required": [
+ "id"
+ ],
"additionalProperties": false
},
- "RepoCloudSnapshotsData": {
+ "NotificationRequestInput": {
"type": "object",
"properties": {
- "pageCount": {
- "type": "integer"
+ "msg": {
+ "type": "string"
},
- "snapshots": {
+ "timeout": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/RepoLog"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "number"
},
{
"type": "null"
}
]
+ }
+ },
+ "required": [
+ "msg"
+ ],
+ "additionalProperties": false
+ },
+ "ObsidianAnalysisRequestInput": {
+ "type": "object",
+ "properties": {
+ "localPath": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "localPath"
+ ],
+ "additionalProperties": false
+ },
+ "ObsidianImportRequestInput": {
+ "type": "object",
+ "properties": {
+ "notebookName": {
+ "type": "string"
},
- "totalCount": {
- "type": "integer"
+ "taskID": {
+ "type": "string"
}
},
"required": [
- "pageCount",
- "snapshots",
- "totalCount"
+ "notebookName",
+ "taskID"
],
"additionalProperties": false
},
- "RepoCloudTagsData": {
+ "ObsidianTaskRequestInput": {
"type": "object",
"properties": {
- "snapshots": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/RepoLog"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- {
- "type": "null"
- }
- ]
+ "taskID": {
+ "type": "string"
}
},
"required": [
- "snapshots"
+ "taskID"
],
"additionalProperties": false
},
- "RepoDiffData": {
+ "ObsidianVaultAnalysis": {
"type": "object",
"properties": {
- "addsLeft": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/RepoDiffFile"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- {
- "type": "null"
- }
- ]
+ "ambiguousCount": {
+ "type": "integer"
},
- "left": {
- "anyOf": [
- {
- "$ref": "#/$defs/RepoDiffIndex"
- },
- {
- "type": "null"
- }
- ]
+ "blockIDCount": {
+ "type": "integer"
},
- "removesRight": {
+ "blockingErrors": {
"anyOf": [
{
"type": "array",
"items": {
- "anyOf": [
- {
- "$ref": "#/$defs/RepoDiffFile"
- },
- {
- "type": "null"
- }
- ]
+ "type": "string"
}
},
{
@@ -28818,405 +29067,404 @@
}
]
},
- "right": {
- "anyOf": [
- {
- "$ref": "#/$defs/RepoDiffIndex"
- },
- {
- "type": "null"
- }
- ]
+ "commentCount": {
+ "type": "integer"
},
- "updatesLeft": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/RepoDiffFile"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- {
- "type": "null"
- }
- ]
+ "embedCount": {
+ "type": "integer"
},
- "updatesRight": {
+ "footnoteCount": {
+ "type": "integer"
+ },
+ "importableAssetCount": {
+ "type": "integer"
+ },
+ "importableAssetSize": {
+ "type": "integer"
+ },
+ "markdownCount": {
+ "type": "integer"
+ },
+ "missingCount": {
+ "type": "integer"
+ },
+ "nameAdjustmentCount": {
+ "type": "integer"
+ },
+ "notebookName": {
+ "type": "string"
+ },
+ "skippedHiddenCount": {
+ "type": "integer"
+ },
+ "skippedLinkCount": {
+ "type": "integer"
+ },
+ "skippedNestedVaultCount": {
+ "type": "integer"
+ },
+ "skippedSpecialCount": {
+ "type": "integer"
+ },
+ "syntheticParentCount": {
+ "type": "integer"
+ },
+ "unreferencedFileCount": {
+ "type": "integer"
+ },
+ "unsupportedCount": {
+ "type": "integer"
+ },
+ "vaultName": {
+ "type": "string"
+ },
+ "vaultPath": {
+ "type": "string"
+ },
+ "warnings": {
"anyOf": [
{
"type": "array",
"items": {
- "anyOf": [
- {
- "$ref": "#/$defs/RepoDiffFile"
- },
- {
- "type": "null"
- }
- ]
+ "type": "string"
}
},
{
"type": "null"
}
]
+ },
+ "wikiLinkCount": {
+ "type": "integer"
}
},
"required": [
- "addsLeft",
- "left",
- "removesRight",
- "right",
- "updatesLeft",
- "updatesRight"
+ "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
},
- "RepoDiffFile": {
+ "ObsidianVaultImportResult": {
"type": "object",
"properties": {
- "fileID": {
- "type": "string"
+ "convertedEmbedCount": {
+ "type": "integer"
},
- "hPath": {
- "type": "string"
+ "convertedFootnoteCount": {
+ "type": "integer"
},
- "hSize": {
- "type": "string"
+ "convertedLinkCount": {
+ "type": "integer"
},
- "indexID": {
+ "failedStage": {
"type": "string"
},
- "path": {
+ "importedAttachmentCount": {
+ "type": "integer"
+ },
+ "incomplete": {
+ "type": "boolean"
+ },
+ "markdownCount": {
+ "type": "integer"
+ },
+ "nameAdjustmentCount": {
+ "type": "integer"
+ },
+ "notebookID": {
"type": "string"
},
- "title": {
+ "notebookName": {
"type": "string"
},
- "updated": {
+ "preservedCommentCount": {
"type": "integer"
- }
- },
- "required": [
- "fileID",
- "hSize",
- "indexID",
- "path",
- "title",
- "updated"
- ],
- "additionalProperties": false
- },
- "RepoDiffIndex": {
- "type": "object",
- "properties": {
- "created": {
+ },
+ "preservedUnresolvedCount": {
"type": "integer"
},
- "id": {
- "type": "string"
+ "skippedPathCount": {
+ "type": "integer"
+ },
+ "syntheticParentCount": {
+ "type": "integer"
+ },
+ "unreferencedFileCount": {
+ "type": "integer"
}
},
"required": [
- "created",
- "id"
+ "convertedEmbedCount",
+ "convertedFootnoteCount",
+ "convertedLinkCount",
+ "importedAttachmentCount",
+ "incomplete",
+ "markdownCount",
+ "nameAdjustmentCount",
+ "notebookID",
+ "notebookName",
+ "preservedCommentCount",
+ "preservedUnresolvedCount",
+ "skippedPathCount",
+ "syntheticParentCount",
+ "unreferencedFileCount"
],
"additionalProperties": false
},
- "RepoDocHistory": {
+ "ObsidianVaultTask": {
"type": "object",
"properties": {
- "fileID": {
- "type": "string"
+ "analysis": {
+ "$ref": "#/$defs/ObsidianVaultAnalysis"
},
- "hSize": {
+ "detail": {
"type": "string"
},
- "indexID": {
+ "error": {
"type": "string"
},
- "title": {
+ "message": {
"type": "string"
},
- "updated": {
+ "progress": {
"type": "integer"
+ },
+ "result": {
+ "$ref": "#/$defs/ObsidianVaultImportResult"
+ },
+ "state": {
+ "type": "string"
+ },
+ "taskID": {
+ "type": "string"
}
},
"required": [
- "fileID",
- "hSize",
- "indexID",
- "title",
- "updated"
+ "message",
+ "progress",
+ "state",
+ "taskID"
],
"additionalProperties": false
},
- "RepoDocHistoryData": {
+ "OpenNotebookRequestInput": {
"type": "object",
"properties": {
- "files": {
+ "app": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/RepoDocHistory"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "string"
},
{
"type": "null"
}
]
},
- "pageCount": {
- "type": "integer"
- },
- "totalCount": {
- "type": "integer"
+ "notebook": {
+ "type": "string"
}
},
"required": [
- "files",
- "pageCount",
- "totalCount"
+ "notebook"
],
"additionalProperties": false
},
- "RepoExportData": {
+ "OpenRepoSnapshotFileRequestInput": {
"type": "object",
"properties": {
- "path": {
+ "id": {
"type": "string"
}
},
"required": [
- "path"
+ "id"
],
"additionalProperties": false
},
- "RepoFile": {
+ "OrderedListStartData": {
"type": "object",
"properties": {
- "chunks": {
+ "found": {
+ "type": "boolean"
+ },
+ "start": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "found",
+ "start"
+ ],
+ "additionalProperties": false
+ },
+ "OutlineRequestInput": {
+ "type": "object",
+ "properties": {
+ "id": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "type": "string"
},
{
"type": "null"
}
]
},
- "id": {
- "type": "string"
+ "notebook": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "path": {
+ "preview": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "OutlineStorageRequestInput": {
+ "type": "object",
+ "properties": {
+ "docID": {
"type": "string"
- },
- "size": {
- "type": "integer"
- },
- "updated": {
- "type": "integer"
}
},
"required": [
- "chunks",
- "id",
- "path",
- "size",
- "updated"
+ "docID"
],
"additionalProperties": false
},
- "RepoKeyData": {
+ "OutlineStorageSetRequestInput": {
"type": "object",
"properties": {
- "key": {
+ "docID": {
"type": "string"
+ },
+ "val": {
+ "type": "object",
+ "additionalProperties": {
+ "$ref": "#/$defs/JSONValue"
+ }
}
},
"required": [
- "key"
+ "docID",
+ "val"
],
"additionalProperties": false
},
- "RepoLog": {
+ "PandocData": {
"type": "object",
"properties": {
- "count": {
- "type": "integer"
- },
- "created": {
- "type": "integer"
- },
- "files": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/RepoFile"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- {
- "type": "null"
- }
- ]
- },
- "hCreated": {
- "type": "string"
- },
- "hSize": {
- "type": "string"
- },
- "hTagUpdated": {
- "type": "string"
- },
- "id": {
- "type": "string"
- },
- "memo": {
- "type": "string"
- },
- "size": {
- "type": "integer"
- },
- "systemID": {
- "type": "string"
- },
- "systemName": {
- "type": "string"
- },
- "systemOS": {
- "type": "string"
- },
- "tag": {
+ "path": {
"type": "string"
}
},
"required": [
- "count",
- "created",
- "files",
- "hCreated",
- "hSize",
- "hTagUpdated",
- "id",
- "memo",
- "size",
- "systemID",
- "systemName",
- "systemOS",
- "tag"
+ "path"
],
"additionalProperties": false
},
- "RepoOpenFileData": {
+ "PandocRequestInput": {
"type": "object",
"properties": {
- "content": {
- "type": "string"
- },
- "displayInText": {
- "type": "boolean"
- },
- "title": {
- "type": "string"
+ "args": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
- "updated": {
- "type": "integer"
+ "dir": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
"required": [
- "content",
- "displayInText",
- "title",
- "updated"
+ "args"
],
"additionalProperties": false
},
- "RepoSearchData": {
+ "PerformSyncRequestInput": {
"type": "object",
"properties": {
- "files": {
+ "mobileSwitch": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/RepoDiffFile"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "pageCount": {
- "type": "integer"
- },
- "totalCount": {
- "type": "integer"
+ "upload": {
+ "type": "boolean"
}
},
- "required": [
- "files",
- "pageCount",
- "totalCount"
- ],
"additionalProperties": false
},
- "RepoSnapshot": {
+ "Petal": {
"type": "object",
"properties": {
- "count": {
- "type": "integer"
+ "css": {
+ "type": "string"
},
- "created": {
- "type": "integer"
+ "disabledInPublish": {
+ "type": "boolean"
},
- "files": {
+ "disallowInstall": {
+ "type": "boolean"
+ },
+ "displayName": {
+ "type": "string"
+ },
+ "enabled": {
+ "type": "boolean"
+ },
+ "i18n": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/RepoFile"
- },
- {
- "type": "null"
- }
- ]
+ "type": "object",
+ "additionalProperties": {
+ "$ref": "#/$defs/JSONValue"
}
},
{
@@ -29224,296 +29472,237 @@
}
]
},
- "hCreated": {
- "type": "string"
- },
- "hSize": {
- "type": "string"
+ "incompatible": {
+ "type": "boolean"
},
- "hTagUpdated": {
+ "js": {
"type": "string"
},
- "id": {
- "type": "string"
+ "kernel": {
+ "$ref": "#/$defs/KernelPetal"
},
- "memo": {
+ "name": {
"type": "string"
},
- "requiresDownload": {
+ "userDisabledInPublish": {
"type": "boolean"
},
- "size": {
- "type": "integer"
- },
- "systemID": {
- "type": "string"
- },
- "systemName": {
- "type": "string"
- },
- "systemOS": {
- "type": "string"
- },
- "tag": {
+ "version": {
"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"
+ "css",
+ "disabledInPublish",
+ "disallowInstall",
+ "displayName",
+ "enabled",
+ "i18n",
+ "incompatible",
+ "js",
+ "kernel",
+ "name",
+ "userDisabledInPublish",
+ "version"
],
"additionalProperties": false
},
- "RepoSnapshotsData": {
+ "PinnedDoc": {
"type": "object",
"properties": {
- "pageCount": {
- "type": "integer"
- },
- "snapshots": {
+ "childrenSortMode": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/RepoSnapshot"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "totalCount": {
+ "icon": {
+ "type": "string"
+ },
+ "id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "notebook": {
+ "type": "string"
+ },
+ "path": {
+ "type": "string"
+ },
+ "subFileCount": {
"type": "integer"
+ },
+ "unavailable": {
+ "type": "boolean"
}
},
"required": [
- "pageCount",
- "snapshots",
- "totalCount"
- ],
- "additionalProperties": false
- },
- "RepoTagsData": {
- "type": "object",
- "properties": {
- "snapshots": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/RepoSnapshot"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "snapshots"
+ "childrenSortMode",
+ "icon",
+ "id",
+ "name",
+ "notebook",
+ "path",
+ "subFileCount",
+ "unavailable"
],
"additionalProperties": false
},
- "RepoTypeCount": {
+ "PluginRPCError": {
"type": "object",
"properties": {
- "count": {
+ "code": {
"type": "integer"
},
- "type": {
+ "data": {
+ "$ref": "#/$defs/JSONValue"
+ },
+ "message": {
"type": "string"
}
},
"required": [
- "count",
- "type"
- ],
- "additionalProperties": false
- },
- "ResetGraphData": {
- "type": "object",
- "properties": {
- "conf": {
- "$ref": "#/$defs/GlobalGraphConf"
- }
- },
- "required": [
- "conf"
- ],
- "additionalProperties": false
- },
- "ResetLocalGraphData": {
- "type": "object",
- "properties": {
- "conf": {
- "$ref": "#/$defs/LocalGraphConf"
- }
- },
- "required": [
- "conf"
+ "code",
+ "message"
],
"additionalProperties": false
},
- "ResetRiffCardsRequestInput": {
+ "PluginRPCFailure": {
"type": "object",
"properties": {
- "blockIDs": {
+ "error": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "$ref": "#/$defs/PluginRPCError"
},
{
"type": "null"
}
]
},
- "deckID": {
- "type": "string"
- },
"id": {
- "type": "string"
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "type": {
- "type": "string"
+ "jsonrpc": {
+ "type": "string",
+ "enum": [
+ "2.0"
+ ]
}
},
"required": [
- "deckID",
+ "error",
"id",
- "type"
+ "jsonrpc"
],
"additionalProperties": false
},
- "ReviewRiffCardRequestInput": {
+ "PluginRPCMethod": {
"type": "object",
"properties": {
- "cardID": {
- "type": "string"
- },
- "deckID": {
- "type": "string"
- },
- "rating": {
- "type": "number"
- },
- "reviewedCards": {
+ "descriptions": {
"anyOf": [
{
"type": "array",
"items": {
- "$ref": "#/$defs/RiffReviewedCardInput"
+ "type": "string"
}
},
{
"type": "null"
}
]
+ },
+ "name": {
+ "type": "string"
}
},
"required": [
- "cardID",
- "deckID",
- "rating"
+ "descriptions",
+ "name"
],
"additionalProperties": false
},
- "RichClipboardAssetInput": {
+ "PluginRPCNotification": {
"type": "object",
"properties": {
- "box": {
- "type": "string"
- },
- "index": {
- "type": "integer"
+ "jsonrpc": {
+ "type": "string",
+ "enum": [
+ "2.0"
+ ]
},
- "path": {
+ "method": {
"type": "string"
+ },
+ "params": {
+ "$ref": "#/$defs/JSONValue"
}
},
"required": [
- "index",
- "path"
+ "jsonrpc",
+ "method"
],
"additionalProperties": false
},
- "RichClipboardPrepared": {
+ "PluginRPCRequestFieldsInput": {
"type": "object",
"properties": {
- "assets": {
+ "id": {
"anyOf": [
{
- "type": "array",
- "items": {
- "$ref": "#/$defs/RichClipboardPreparedAsset"
- }
+ "type": "string"
+ },
+ {
+ "type": "number"
},
{
"type": "null"
}
]
},
- "batch": {
+ "jsonrpc": {
+ "type": "string",
+ "enum": [
+ "2.0"
+ ]
+ },
+ "method": {
"type": "string"
},
- "groups": {
+ "params": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/JSONValue"
+ }
+ },
+ {
+ "type": "object",
+ "additionalProperties": {
+ "$ref": "#/$defs/JSONValue"
+ }
+ }
+ ]
},
{
"type": "null"
@@ -29522,330 +29711,264 @@
}
},
"required": [
- "assets",
- "batch",
- "groups"
+ "jsonrpc",
+ "method"
],
"additionalProperties": false
},
- "RichClipboardPreparedAsset": {
+ "PluginRPCSuccess": {
"type": "object",
"properties": {
- "index": {
- "type": "integer"
+ "id": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "path": {
- "type": "string"
+ "jsonrpc": {
+ "type": "string",
+ "enum": [
+ "2.0"
+ ]
+ },
+ "result": {
+ "$ref": "#/$defs/JSONValue"
}
},
"required": [
- "index",
- "path"
+ "id",
+ "jsonrpc",
+ "result"
],
"additionalProperties": false
},
- "RiffBlockIDsRequestInput": {
+ "PrepareRichTextRequestInput": {
"type": "object",
"properties": {
- "blockIDs": {
+ "assets": {
"type": "array",
"items": {
- "type": "string"
+ "$ref": "#/$defs/RichClipboardAssetInput"
}
}
},
"required": [
- "blockIDs"
- ],
- "additionalProperties": false
- },
- "RiffBlocksData": {
- "type": "object",
- "properties": {
- "blocks": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/SearchBlock"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "blocks"
+ "assets"
],
"additionalProperties": false
},
- "RiffCardDueInput": {
+ "PrependBlockRequestInput": {
"type": "object",
"properties": {
- "due": {
+ "data": {
"type": "string"
},
- "id": {
- "type": "string"
- }
- },
- "required": [
- "due",
- "id"
- ],
- "additionalProperties": false
- },
- "RiffCardRequestInput": {
- "type": "object",
- "properties": {
- "cardID": {
+ "dataType": {
"type": "string"
},
- "deckID": {
+ "parentID": {
"type": "string"
}
},
"required": [
- "cardID",
- "deckID"
+ "data",
+ "dataType",
+ "parentID"
],
"additionalProperties": false
},
- "RiffCardsData": {
+ "ProcessPDFRequestInput": {
"type": "object",
"properties": {
- "blocks": {
+ "id": {
+ "type": "string"
+ },
+ "merge": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/SearchBlock"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "pageCount": {
- "type": "integer"
- },
- "total": {
- "type": "integer"
- }
- },
- "required": [
- "blocks",
- "pageCount",
- "total"
- ],
- "additionalProperties": false
- },
- "RiffCardsRequestInput": {
- "type": "object",
- "properties": {
- "id": {
- "type": "string"
- },
- "page": {
- "type": "number"
+ "mergeContentHeadingMode": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "pageSize": {
+ "mergeDocHeadingMode": {
"anyOf": [
{
- "type": "number"
+ "type": "string"
},
{
"type": "null"
}
]
+ },
+ "path": {
+ "type": "string"
+ },
+ "removeAssets": {
+ "type": "boolean"
+ },
+ "watermark": {
+ "type": "boolean"
}
},
"required": [
"id",
- "page"
+ "path",
+ "removeAssets",
+ "watermark"
],
"additionalProperties": false
},
- "RiffDeck": {
+ "ProxyFailure": {
"type": "object",
"properties": {
- "created": {
- "type": "string"
+ "code": {
+ "type": "integer"
},
- "id": {
+ "msg": {
"type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "msg"
+ ],
+ "additionalProperties": false
+ },
+ "PublishedBlockInfo": {
+ "type": "object",
+ "properties": {
+ "publishAccessRequired": {
+ "type": "boolean",
+ "enum": [
+ true
+ ]
},
- "name": {
+ "rootID": {
"type": "string"
},
- "size": {
- "type": "integer"
+ "rootIcon": {
+ "type": "string"
},
- "updated": {
+ "rootTitle": {
"type": "string"
+ },
+ "rootTitleEmpty": {
+ "type": "boolean"
}
},
"required": [
- "created",
- "id",
- "name",
- "size",
- "updated"
+ "publishAccessRequired",
+ "rootID",
+ "rootIcon",
+ "rootTitle",
+ "rootTitleEmpty"
],
"additionalProperties": false
},
- "RiffDeckCardsRequestInput": {
+ "PutFileRequestInput": {
"type": "object",
"properties": {
- "blockIDs": {
- "type": "array",
- "items": {
- "type": "string"
- }
+ "app": {
+ "type": "string"
},
- "deckID": {
+ "file": {
+ "type": "string",
+ "format": "binary"
+ },
+ "isDir": {
+ "type": "string"
+ },
+ "modTime": {
+ "type": "string"
+ },
+ "path": {
"type": "string"
}
},
- "required": [
- "blockIDs",
- "deckID"
- ],
"additionalProperties": false
},
- "RiffDeckRequestInput": {
+ "ReadDirectoryRequestInput": {
"type": "object",
"properties": {
- "deckID": {
+ "path": {
"type": "string"
}
},
"required": [
- "deckID"
+ "path"
],
"additionalProperties": false
},
- "RiffDueCard": {
+ "RecentDoc": {
"type": "object",
"properties": {
- "blockID": {
- "type": "string"
- },
- "cardID": {
- "type": "string"
+ "closedAt": {
+ "type": "integer"
},
- "deckID": {
+ "icon": {
"type": "string"
},
- "lapses": {
- "type": "integer"
- },
- "lastReview": {
+ "openAt": {
"type": "integer"
},
- "nextDues": {
- "anyOf": [
- {
- "type": "object",
- "additionalProperties": {
- "type": "string"
- }
- },
- {
- "type": "null"
- }
- ]
+ "rootID": {
+ "type": "string"
},
- "reps": {
- "type": "integer"
+ "title": {
+ "type": "string"
},
- "state": {
+ "viewedAt": {
"type": "integer"
}
},
"required": [
- "blockID",
- "cardID",
- "deckID",
- "lapses",
- "lastReview",
- "nextDues",
- "reps",
- "state"
+ "rootID"
],
"additionalProperties": false
},
- "RiffDueCardsData": {
+ "RecentDocUpdateRequestInput": {
"type": "object",
"properties": {
- "cards": {
+ "rootID": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/RiffDueCard"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "string"
},
{
"type": "null"
}
]
- },
- "unreviewedCount": {
- "type": "integer"
- },
- "unreviewedNewCardCount": {
- "type": "integer"
- },
- "unreviewedOldCardCount": {
- "type": "integer"
}
},
- "required": [
- "cards",
- "unreviewedCount",
- "unreviewedNewCardCount",
- "unreviewedOldCardCount"
- ],
"additionalProperties": false
},
- "RiffDueCardsRequestInput": {
+ "RecentDocsRequestInput": {
"type": "object",
"properties": {
- "deckID": {
- "type": "string"
- },
- "reviewedCards": {
+ "sortBy": {
"anyOf": [
{
- "type": "array",
- "items": {
- "$ref": "#/$defs/RiffReviewedCardInput"
- }
+ "type": "string"
},
{
"type": "null"
@@ -29853,23 +29976,17 @@
]
}
},
- "required": [
- "deckID"
- ],
"additionalProperties": false
},
- "RiffNotebookDueCardsRequestInput": {
+ "RecentDocsUpdateRequestInput": {
"type": "object",
"properties": {
- "notebook": {
- "type": "string"
- },
- "reviewedCards": {
+ "rootIDs": {
"anyOf": [
{
"type": "array",
"items": {
- "$ref": "#/$defs/RiffReviewedCardInput"
+ "type": "string"
}
},
{
@@ -29878,32 +29995,17 @@
]
}
},
- "required": [
- "notebook"
- ],
- "additionalProperties": false
- },
- "RiffReviewedCardInput": {
- "type": "object",
- "properties": {
- "cardID": {
- "type": "string"
- }
- },
- "required": [
- "cardID"
- ],
"additionalProperties": false
},
- "RiffTreeDueCardsRequestInput": {
+ "RefDefs": {
"type": "object",
"properties": {
- "reviewedCards": {
+ "defIDs": {
"anyOf": [
{
"type": "array",
"items": {
- "$ref": "#/$defs/RiffReviewedCardInput"
+ "type": "string"
}
},
{
@@ -29911,106 +30013,55 @@
}
]
},
- "rootID": {
+ "refID": {
"type": "string"
}
},
"required": [
- "rootID"
+ "defIDs",
+ "refID"
],
"additionalProperties": false
},
- "RollbackRepoSnapshotFileRequestInput": {
+ "RefDefsData": {
"type": "object",
"properties": {
- "id": {
- "type": "string"
+ "refDefs": {
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/RefDefs"
+ }
}
},
"required": [
- "id"
+ "refDefs"
],
"additionalProperties": false
},
- "SQLQueryRequestInput": {
+ "RefIDsData": {
"type": "object",
"properties": {
- "mode": {
+ "originalRefBlockIDs": {
"anyOf": [
{
- "type": "string"
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "stmt": {
- "type": "string"
- }
- },
- "required": [
- "stmt"
- ],
- "additionalProperties": false
- },
- "SaveTemplateRequestInput": {
- "type": "object",
- "properties": {
- "databaseMode": {
- "type": "string"
- },
- "directory": {
- "type": "string"
- },
- "id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "overwrite": {
- "type": "boolean"
- }
- },
- "required": [
- "id",
- "name",
- "overwrite"
- ],
- "additionalProperties": false
- },
- "SearchAsset": {
- "type": "object",
- "properties": {
- "hName": {
- "type": "string"
- },
- "path": {
- "type": "string"
- },
- "updated": {
- "type": "integer"
- }
- },
- "required": [
- "hName",
- "path",
- "updated"
- ],
- "additionalProperties": false
- },
- "SearchAssetContentData": {
- "type": "object",
- "properties": {
- "assetContents": {
+ "refDefs": {
"anyOf": [
{
"type": "array",
"items": {
"anyOf": [
{
- "$ref": "#/$defs/AssetContent"
+ "$ref": "#/$defs/RefDefs"
},
{
"type": "null"
@@ -30022,65 +30073,41 @@
"type": "null"
}
]
- },
- "matchedAssetCount": {
- "type": "integer"
- },
- "pageCount": {
- "type": "integer"
}
},
"required": [
- "assetContents",
- "matchedAssetCount",
- "pageCount"
+ "originalRefBlockIDs",
+ "refDefs"
],
"additionalProperties": false
},
- "SearchAssetContentRequestInput": {
+ "RefIDsRequestInput": {
"type": "object",
"properties": {
- "method": {
- "anyOf": [
- {
- "type": "number"
- },
- {
- "type": "null"
- }
- ]
- },
- "orderBy": {
- "anyOf": [
- {
- "type": "number"
- },
- {
- "type": "null"
- }
- ]
- },
- "page": {
+ "id": {
"anyOf": [
{
- "type": "number"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "pageSize": {
+ "ids": {
"anyOf": [
{
- "type": "number"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "query": {
+ "notebook": {
"anyOf": [
{
"type": "string"
@@ -30089,14 +30116,20 @@
"type": "null"
}
]
+ }
+ },
+ "additionalProperties": false
+ },
+ "RefTextQueryRequestInput": {
+ "type": "object",
+ "properties": {
+ "anchor": {
+ "type": "string"
},
- "types": {
+ "notebook": {
"anyOf": [
{
- "type": "object",
- "additionalProperties": {
- "type": "boolean"
- }
+ "type": "string"
},
{
"type": "null"
@@ -30104,357 +30137,333 @@
]
}
},
+ "required": [
+ "anchor"
+ ],
"additionalProperties": false
},
- "SearchAssetRequestInput": {
+ "RefreshBacklinkRequestInput": {
"type": "object",
"properties": {
- "exts": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- {
- "type": "null"
- }
- ]
- },
- "k": {
+ "id": {
"type": "string"
}
},
"required": [
- "k"
+ "id"
],
"additionalProperties": false
},
- "SearchAttributeViewRelationKeyRequestInput": {
+ "RemoveAttributeViewBlocksRequestInput": {
"type": "object",
"properties": {
"avID": {
"type": "string"
},
- "keyword": {
- "type": "string"
+ "srcIDs": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
}
},
"required": [
"avID",
- "keyword"
+ "srcIDs"
],
"additionalProperties": false
},
- "SearchAttributeViewRequestInput": {
+ "RemoveAttributeViewKeyRequestInput": {
"type": "object",
"properties": {
"avID": {
+ "type": "string"
+ },
+ "keyID": {
+ "type": "string"
+ },
+ "removeRelationDest": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
- },
- "blockID": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "excludes": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- {
- "type": "null"
- }
- ]
- },
- "includeViewMatches": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
- },
- "keyword": {
- "type": "string"
}
},
"required": [
- "keyword"
+ "avID",
+ "keyID"
],
"additionalProperties": false
},
- "SearchAttributeViewRollupDestKeysRequestInput": {
+ "RemoveBookmarkRequestInput": {
"type": "object",
"properties": {
- "avID": {
- "type": "string"
- },
- "keyword": {
+ "bookmark": {
"type": "string"
}
},
"required": [
- "avID",
- "keyword"
+ "bookmark"
],
"additionalProperties": false
},
- "SearchBlock": {
+ "RemoveCloudRepoTagSnapshotRequestInput": {
"type": "object",
"properties": {
- "alias": {
+ "tag": {
"type": "string"
- },
- "box": {
+ }
+ },
+ "required": [
+ "tag"
+ ],
+ "additionalProperties": false
+ },
+ "RemoveCriterionRequestInput": {
+ "type": "object",
+ "properties": {
+ "name": {
"type": "string"
- },
- "children": {
+ }
+ },
+ "required": [
+ "name"
+ ],
+ "additionalProperties": false
+ },
+ "RemoveFileRequestInput": {
+ "type": "object",
+ "properties": {
+ "app": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/SearchBlock"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "string"
},
{
"type": "null"
}
]
},
- "content": {
- "type": "string"
- },
- "count": {
- "type": "integer"
- },
- "created": {
- "type": "string"
- },
- "defID": {
- "type": "string"
- },
- "defPath": {
+ "path": {
"type": "string"
- },
- "depth": {
- "type": "integer"
- },
- "fcontent": {
+ }
+ },
+ "required": [
+ "path"
+ ],
+ "additionalProperties": false
+ },
+ "RemoveRepoTagSnapshotRequestInput": {
+ "type": "object",
+ "properties": {
+ "tag": {
"type": "string"
- },
- "folded": {
- "type": "boolean"
- },
- "hPath": {
+ }
+ },
+ "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"
- },
- "ial": {
- "anyOf": [
- {
- "type": "object",
- "additionalProperties": {
- "type": "string"
- }
- },
- {
- "type": "null"
- }
- ]
- },
+ }
+ },
+ "required": [
+ "label"
+ ],
+ "additionalProperties": false
+ },
+ "RemoveUnusedAttributeViewRequestInput": {
+ "type": "object",
+ "properties": {
"id": {
"type": "string"
- },
- "markdown": {
+ }
+ },
+ "required": [
+ "id"
+ ],
+ "additionalProperties": false
+ },
+ "RenameAssetRequestInput": {
+ "type": "object",
+ "properties": {
+ "newName": {
"type": "string"
},
- "memo": {
+ "oldPath": {
"type": "string"
- },
- "name": {
+ }
+ },
+ "required": [
+ "newName",
+ "oldPath"
+ ],
+ "additionalProperties": false
+ },
+ "RenameBookmarkRequestInput": {
+ "type": "object",
+ "properties": {
+ "newBookmark": {
"type": "string"
},
- "number": {
+ "oldBookmark": {
"type": "string"
- },
- "parentID": {
+ }
+ },
+ "required": [
+ "newBookmark",
+ "oldBookmark"
+ ],
+ "additionalProperties": false
+ },
+ "RenameFileRequestInput": {
+ "type": "object",
+ "properties": {
+ "newPath": {
"type": "string"
},
"path": {
"type": "string"
- },
- "refCount": {
- "type": "integer"
- },
- "refText": {
- "type": "string"
- },
- "refs": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/SearchBlock"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- {
- "type": "null"
- }
- ]
- },
- "riffCard": {
- "anyOf": [
- {
- "$ref": "#/$defs/SearchBlockCard"
- },
- {
- "type": "null"
- }
- ]
- },
- "riffCardID": {
- "type": "string"
- },
- "rootID": {
- "type": "string"
- },
- "sort": {
- "type": "integer"
- },
- "subType": {
+ }
+ },
+ "required": [
+ "newPath",
+ "path"
+ ],
+ "additionalProperties": false
+ },
+ "RenameNotebookRequestInput": {
+ "type": "object",
+ "properties": {
+ "name": {
"type": "string"
},
- "tag": {
+ "notebook": {
"type": "string"
- },
- "type": {
+ }
+ },
+ "required": [
+ "name",
+ "notebook"
+ ],
+ "additionalProperties": false
+ },
+ "RenameRiffDeckRequestInput": {
+ "type": "object",
+ "properties": {
+ "deckID": {
"type": "string"
},
- "updated": {
+ "name": {
"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"
+ "deckID",
+ "name"
],
"additionalProperties": false
},
- "SearchBlockCard": {
+ "RenameTagRequestInput": {
"type": "object",
"properties": {
- "due": {
+ "newLabel": {
"type": "string"
},
- "lapses": {
- "type": "integer"
- },
- "lastReview": {
+ "oldLabel": {
"type": "string"
- },
- "reps": {
- "type": "integer"
- },
- "state": {
- "type": "integer"
}
},
"required": [
- "due",
- "lapses",
- "lastReview",
- "reps",
- "state"
+ "newLabel",
+ "oldLabel"
],
"additionalProperties": false
},
- "SearchBlockRequestInput": {
+ "RenderAttributeViewRequestInput": {
"type": "object",
"properties": {
- "groupBy": {
+ "blockID": {
"anyOf": [
{
- "type": "number"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "method": {
+ "createIfNotExist": {
"anyOf": [
{
- "type": "number"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "orderBy": {
+ "groupPaging": {
"anyOf": [
{
- "type": "number"
+ "type": "object",
+ "additionalProperties": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVGroupPagingInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "id": {
+ "type": "string"
+ },
+ "ignoreRows": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "initialLayout": {
+ "anyOf": [
+ {
+ "type": "string"
},
{
"type": "null"
@@ -30481,20 +30490,17 @@
}
]
},
- "paths": {
+ "query": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "type": "string"
},
{
"type": "null"
}
]
},
- "query": {
+ "targetGroupID": {
"anyOf": [
{
"type": "string"
@@ -30504,23 +30510,20 @@
}
]
},
- "subTypes": {
+ "targetItemID": {
"anyOf": [
{
- "$ref": "#/$defs/SearchSubtypeFilterInput"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "types": {
+ "viewID": {
"anyOf": [
{
- "type": "object",
- "additionalProperties": {
- "type": "boolean"
- }
+ "type": "string"
},
{
"type": "null"
@@ -30528,19 +30531,45 @@
]
}
},
+ "required": [
+ "id"
+ ],
"additionalProperties": false
},
- "SearchBlocksData": {
+ "RenderHistoryAttributeViewRequestInput": {
"type": "object",
"properties": {
- "blocks": {
+ "blockID": {
"anyOf": [
{
- "type": "array",
- "items": {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "carrierViewID": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "created": {
+ "type": "string"
+ },
+ "groupPaging": {
+ "anyOf": [
+ {
+ "type": "object",
+ "additionalProperties": {
"anyOf": [
{
- "$ref": "#/$defs/SearchBlock"
+ "$ref": "#/$defs/AVGroupPagingInput"
},
{
"type": "null"
@@ -30553,54 +30582,20 @@
}
]
},
- "matchedBlockCount": {
- "type": "integer"
- },
- "matchedRootCount": {
- "type": "integer"
+ "id": {
+ "type": "string"
},
- "pageCount": {
- "type": "integer"
- }
- },
- "required": [
- "blocks",
- "matchedBlockCount",
- "matchedRootCount",
- "pageCount"
- ],
- "additionalProperties": false
- },
- "SearchEmbedBlockRequestInput": {
- "type": "object",
- "properties": {
- "breadcrumb": {
+ "page": {
"anyOf": [
{
- "type": "boolean"
+ "type": "number"
},
{
"type": "null"
}
]
},
- "embedBlockID": {
- "type": "string"
- },
- "excludeIDs": {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "headingMode": {
+ "pageSize": {
"anyOf": [
{
"type": "number"
@@ -30610,7 +30605,7 @@
}
]
},
- "notebook": {
+ "query": {
"anyOf": [
{
"type": "string"
@@ -30620,71 +30615,123 @@
}
]
},
- "stmt": {
- "type": "string"
+ "viewID": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
"required": [
- "embedBlockID",
- "excludeIDs",
- "stmt"
+ "created",
+ "id"
],
"additionalProperties": false
},
- "SearchHeadingFilterInput": {
+ "RenderSnapshotAttributeViewRequestInput": {
"type": "object",
"properties": {
- "h1": {
+ "blockID": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "h2": {
+ "carrierViewID": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "h3": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
+ "id": {
+ "type": "string"
},
- "h4": {
+ "snapshot": {
+ "type": "string"
+ },
+ "viewID": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
+ }
+ },
+ "required": [
+ "id",
+ "snapshot"
+ ],
+ "additionalProperties": false
+ },
+ "RenderSprigRequestInput": {
+ "type": "object",
+ "properties": {
+ "template": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "template"
+ ],
+ "additionalProperties": false
+ },
+ "RenderTemplateData": {
+ "type": "object",
+ "properties": {
+ "content": {
+ "type": "string"
},
- "h5": {
+ "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"
}
]
},
- "h6": {
+ "path": {
+ "type": "string"
+ },
+ "preview": {
"anyOf": [
{
"type": "boolean"
@@ -30695,42 +30742,34 @@
]
}
},
+ "required": [
+ "id",
+ "path"
+ ],
"additionalProperties": false
},
- "SearchHistoryData": {
+ "ReorderData": {
"type": "object",
"properties": {
- "histories": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- {
- "type": "null"
- }
- ]
+ "changed": {
+ "type": "boolean"
},
- "pageCount": {
- "type": "integer"
+ "notebook": {
+ "type": "string"
},
- "totalCount": {
- "type": "integer"
+ "parentPath": {
+ "type": "string"
}
},
"required": [
- "histories",
- "pageCount",
- "totalCount"
+ "changed"
],
"additionalProperties": false
},
- "SearchHistoryRequestInput": {
+ "ReorderNotebooksRequestInput": {
"type": "object",
"properties": {
- "notebook": {
+ "position": {
"anyOf": [
{
"type": "string"
@@ -30740,40 +30779,86 @@
}
]
},
- "op": {
+ "sourceIDs": {
"anyOf": [
{
- "type": "string"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "page": {
+ "targetID": {
"anyOf": [
{
- "type": "number"
+ "type": "string"
},
{
"type": "null"
}
]
+ }
+ },
+ "additionalProperties": false
+ },
+ "RepoCloudSnapshotsData": {
+ "type": "object",
+ "properties": {
+ "pageCount": {
+ "type": "integer"
},
- "query": {
+ "snapshots": {
"anyOf": [
{
- "type": "string"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/RepoLog"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
},
- "type": {
+ "totalCount": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "pageCount",
+ "snapshots",
+ "totalCount"
+ ],
+ "additionalProperties": false
+ },
+ "RepoCloudTagsData": {
+ "type": "object",
+ "properties": {
+ "snapshots": {
"anyOf": [
{
- "type": "number"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/RepoLog"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
@@ -30781,73 +30866,108 @@
]
}
},
- "additionalProperties": false
- },
- "SearchKeywordRequestInput": {
- "type": "object",
- "properties": {
- "k": {
- "type": "string"
- }
- },
"required": [
- "k"
+ "snapshots"
],
"additionalProperties": false
},
- "SearchListFilterInput": {
+ "RepoDiffData": {
"type": "object",
"properties": {
- "o": {
+ "addsLeft": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/RepoDiffFile"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
},
- "t": {
+ "left": {
"anyOf": [
{
- "type": "boolean"
+ "$ref": "#/$defs/RepoDiffIndex"
},
{
"type": "null"
}
]
},
- "u": {
+ "removesRight": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/RepoDiffFile"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "SearchPageRequestInput": {
- "type": "object",
- "properties": {
- "page": {
+ },
+ "right": {
"anyOf": [
{
- "type": "number"
+ "$ref": "#/$defs/RepoDiffIndex"
},
{
"type": "null"
}
]
},
- "pageSize": {
+ "updatesLeft": {
"anyOf": [
{
- "type": "number"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/RepoDiffFile"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "updatesRight": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/RepoDiffFile"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
@@ -30855,193 +30975,106 @@
]
}
},
+ "required": [
+ "addsLeft",
+ "left",
+ "removesRight",
+ "right",
+ "updatesLeft",
+ "updatesRight"
+ ],
"additionalProperties": false
},
- "SearchPath": {
+ "RepoDiffFile": {
"type": "object",
"properties": {
- "blocks": {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/SearchBlock"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "box": {
- "type": "string"
- },
- "children": {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/SearchPath"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "count": {
- "type": "integer"
- },
- "created": {
+ "fileID": {
"type": "string"
},
- "depth": {
- "type": "integer"
- },
- "folded": {
- "type": "boolean"
- },
"hPath": {
"type": "string"
},
- "id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "nodeType": {
+ "hSize": {
"type": "string"
},
- "number": {
+ "indexID": {
"type": "string"
},
- "subType": {
+ "path": {
"type": "string"
},
- "type": {
+ "title": {
"type": "string"
},
"updated": {
- "type": "string"
+ "type": "integer"
}
},
"required": [
- "box",
- "count",
- "created",
- "depth",
- "folded",
- "hPath",
- "id",
- "name",
- "nodeType",
- "subType",
- "type",
+ "fileID",
+ "hSize",
+ "indexID",
+ "path",
+ "title",
"updated"
],
"additionalProperties": false
},
- "SearchPathRequestInput": {
+ "RepoDiffIndex": {
"type": "object",
"properties": {
- "path": {
+ "created": {
+ "type": "integer"
+ },
+ "id": {
"type": "string"
}
},
"required": [
- "path"
+ "created",
+ "id"
],
"additionalProperties": false
},
- "SearchRefBlockRequestInput": {
+ "RepoDocHistory": {
"type": "object",
"properties": {
- "beforeLen": {
- "type": "number"
- },
- "id": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "isDatabase": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
- },
- "isSquareBrackets": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
- },
- "k": {
+ "fileID": {
"type": "string"
},
- "notebook": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
+ "hSize": {
+ "type": "string"
},
- "reqId": {
- "anyOf": [
- {
- "$ref": "#/$defs/JSONValue"
- },
- {
- "type": "null"
- }
- ]
+ "indexID": {
+ "type": "string"
},
- "rootID": {
+ "title": {
"type": "string"
- }
- },
- "additionalProperties": false
- },
- "SearchRefCorrelation": {
- "type": "object",
- "properties": {
- "reqId": {
- "$ref": "#/$defs/JSONValue"
+ },
+ "updated": {
+ "type": "integer"
}
},
"required": [
- "reqId"
+ "fileID",
+ "hSize",
+ "indexID",
+ "title",
+ "updated"
],
"additionalProperties": false
},
- "SearchRefResult": {
+ "RepoDocHistoryData": {
"type": "object",
"properties": {
- "blocks": {
+ "files": {
"anyOf": [
{
"type": "array",
"items": {
"anyOf": [
{
- "$ref": "#/$defs/SearchBlock"
+ "$ref": "#/$defs/RepoDocHistory"
},
{
"type": "null"
@@ -31054,49 +31087,41 @@
}
]
},
- "k": {
- "type": "string"
- },
- "newDoc": {
- "type": "boolean"
+ "pageCount": {
+ "type": "integer"
},
- "reqId": {
- "$ref": "#/$defs/JSONValue"
+ "totalCount": {
+ "type": "integer"
}
},
"required": [
- "blocks",
- "k",
- "newDoc",
- "reqId"
+ "files",
+ "pageCount",
+ "totalCount"
],
"additionalProperties": false
},
- "SearchRepoFileRequestInput": {
+ "RepoExportData": {
"type": "object",
"properties": {
- "keyword": {
+ "path": {
"type": "string"
- },
- "page": {
- "type": "number"
}
},
"required": [
- "keyword",
- "page"
+ "path"
],
"additionalProperties": false
},
- "SearchSubTypes": {
+ "RepoFile": {
"type": "object",
"properties": {
- "heading": {
+ "chunks": {
"anyOf": [
{
- "type": "object",
- "additionalProperties": {
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "type": "string"
}
},
{
@@ -31104,49 +31129,157 @@
}
]
},
- "list": {
- "anyOf": [
- {
- "type": "object",
- "additionalProperties": {
- "type": "boolean"
- }
- },
- {
- "type": "null"
- }
- ]
+ "id": {
+ "type": "string"
},
- "listItem": {
- "anyOf": [
- {
- "type": "object",
- "additionalProperties": {
- "type": "boolean"
+ "path": {
+ "type": "string"
+ },
+ "size": {
+ "type": "integer"
+ },
+ "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"
+ },
+ "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": [
- "heading",
- "list",
- "listItem"
+ "count",
+ "created",
+ "files",
+ "hCreated",
+ "hSize",
+ "hTagUpdated",
+ "id",
+ "memo",
+ "size",
+ "systemID",
+ "systemName",
+ "systemOS",
+ "tag"
],
"additionalProperties": false
},
- "SearchSubTypesInput": {
+ "RepoOpenFileData": {
"type": "object",
"properties": {
- "heading": {
+ "content": {
+ "type": "string"
+ },
+ "displayInText": {
+ "type": "boolean"
+ },
+ "title": {
+ "type": "string"
+ },
+ "updated": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "content",
+ "displayInText",
+ "title",
+ "updated"
+ ],
+ "additionalProperties": false
+ },
+ "RepoSearchData": {
+ "type": "object",
+ "properties": {
+ "files": {
"anyOf": [
{
- "type": "object",
- "additionalProperties": {
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/RepoDiffFile"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
{
@@ -31154,12 +31287,42 @@
}
]
},
- "list": {
+ "pageCount": {
+ "type": "integer"
+ },
+ "totalCount": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "files",
+ "pageCount",
+ "totalCount"
+ ],
+ "additionalProperties": false
+ },
+ "RepoSnapshot": {
+ "type": "object",
+ "properties": {
+ "count": {
+ "type": "integer"
+ },
+ "created": {
+ "type": "integer"
+ },
+ "files": {
"anyOf": [
{
- "type": "object",
- "additionalProperties": {
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/RepoFile"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
{
@@ -31167,12 +31330,52 @@
}
]
},
- "listItem": {
+ "hCreated": {
+ "type": "string"
+ },
+ "hSize": {
+ "type": "string"
+ },
+ "hTagUpdated": {
+ "type": "string"
+ },
+ "id": {
+ "type": "string"
+ },
+ "memo": {
+ "type": "string"
+ },
+ "requiresDownload": {
+ "type": "boolean"
+ },
+ "size": {
+ "type": "integer"
+ },
+ "systemID": {
+ "type": "string"
+ },
+ "systemName": {
+ "type": "string"
+ },
+ "systemOS": {
+ "type": "string"
+ },
+ "tag": {
+ "type": "string"
+ },
+ "typesCount": {
"anyOf": [
{
- "type": "object",
- "additionalProperties": {
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/RepoTypeCount"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
{
@@ -31181,35 +31384,79 @@
]
}
},
+ "required": [
+ "count",
+ "created",
+ "files",
+ "hCreated",
+ "hSize",
+ "hTagUpdated",
+ "id",
+ "memo",
+ "requiresDownload",
+ "size",
+ "systemID",
+ "systemName",
+ "systemOS",
+ "tag",
+ "typesCount"
+ ],
"additionalProperties": false
},
- "SearchSubtypeFilterInput": {
+ "RepoSnapshotsData": {
"type": "object",
"properties": {
- "heading": {
- "anyOf": [
- {
- "$ref": "#/$defs/SearchHeadingFilterInput"
- },
- {
- "type": "null"
- }
- ]
+ "pageCount": {
+ "type": "integer"
},
- "list": {
+ "snapshots": {
"anyOf": [
{
- "$ref": "#/$defs/SearchListFilterInput"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/RepoSnapshot"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
},
- "listItem": {
+ "totalCount": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "pageCount",
+ "snapshots",
+ "totalCount"
+ ],
+ "additionalProperties": false
+ },
+ "RepoTagsData": {
+ "type": "object",
+ "properties": {
+ "snapshots": {
"anyOf": [
{
- "$ref": "#/$defs/SearchListFilterInput"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/RepoSnapshot"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
@@ -31217,111 +31464,102 @@
]
}
},
+ "required": [
+ "snapshots"
+ ],
"additionalProperties": false
},
- "SearchTagData": {
+ "RepoTypeCount": {
"type": "object",
"properties": {
- "k": {
- "type": "string"
+ "count": {
+ "type": "integer"
},
- "tags": {
- "type": "array",
- "items": {
- "type": "string"
- }
+ "type": {
+ "type": "string"
}
},
"required": [
- "k",
- "tags"
+ "count",
+ "type"
],
"additionalProperties": false
},
- "SearchTagRequestInput": {
+ "ResetGraphData": {
"type": "object",
"properties": {
- "k": {
- "type": "string"
+ "conf": {
+ "$ref": "#/$defs/GlobalGraphConf"
}
},
"required": [
- "k"
+ "conf"
],
"additionalProperties": false
},
- "SearchTemplateData": {
+ "ResetLocalGraphData": {
"type": "object",
"properties": {
- "k": {
- "type": "string"
- },
- "templates": {
+ "conf": {
+ "$ref": "#/$defs/LocalGraphConf"
+ }
+ },
+ "required": [
+ "conf"
+ ],
+ "additionalProperties": false
+ },
+ "ResetRiffCardsRequestInput": {
+ "type": "object",
+ "properties": {
+ "blockIDs": {
"anyOf": [
{
"type": "array",
"items": {
- "anyOf": [
- {
- "$ref": "#/$defs/SearchTemplateResult"
- },
- {
- "type": "null"
- }
- ]
+ "type": "string"
}
},
{
"type": "null"
}
]
- }
- },
- "required": [
- "k",
- "templates"
- ],
- "additionalProperties": false
- },
- "SearchTemplateResult": {
- "type": "object",
- "properties": {
- "content": {
+ },
+ "deckID": {
"type": "string"
},
- "path": {
+ "id": {
"type": "string"
},
- "relativePath": {
+ "type": {
"type": "string"
}
},
"required": [
- "content",
- "path",
- "relativePath"
+ "deckID",
+ "id",
+ "type"
],
"additionalProperties": false
},
- "SearchWidgetData": {
+ "ReviewRiffCardRequestInput": {
"type": "object",
"properties": {
- "k": {
+ "cardID": {
"type": "string"
},
- "widgets": {
+ "deckID": {
+ "type": "string"
+ },
+ "rating": {
+ "type": "number"
+ },
+ "reviewedCards": {
"anyOf": [
{
"type": "array",
"items": {
- "anyOf": [
- {
- "$ref": "#/$defs/SearchWidgetResult"
- },
- {
- "type": "null"
- }
- ]
+ "$ref": "#/$defs/RiffReviewedCardInput"
}
},
{
@@ -31331,88 +31569,113 @@
}
},
"required": [
- "k",
- "widgets"
+ "cardID",
+ "deckID",
+ "rating"
],
"additionalProperties": false
},
- "SearchWidgetResult": {
+ "RichClipboardAssetInput": {
"type": "object",
"properties": {
- "content": {
+ "box": {
"type": "string"
},
- "name": {
+ "index": {
+ "type": "integer"
+ },
+ "path": {
"type": "string"
}
},
"required": [
- "content",
- "name"
+ "index",
+ "path"
],
"additionalProperties": false
},
- "SetAIRequestInput": {
+ "RichClipboardPrepared": {
"type": "object",
"properties": {
- "agent": {
- "anyOf": [
- {
- "$ref": "#/$defs/SettingAgentInput"
- },
- {
- "type": "null"
- }
- ]
- },
- "editing": {
- "anyOf": [
- {
- "$ref": "#/$defs/SettingEditingInput"
- },
- {
- "type": "null"
- }
- ]
- },
- "embedding": {
+ "assets": {
"anyOf": [
{
- "$ref": "#/$defs/SettingEmbeddingInput"
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/RichClipboardPreparedAsset"
+ }
},
{
"type": "null"
}
]
},
- "imageGeneration": {
- "anyOf": [
- {
- "$ref": "#/$defs/SettingImageGenerationInput"
- },
- {
- "type": "null"
- }
- ]
+ "batch": {
+ "type": "string"
},
- "mcp": {
+ "groups": {
"anyOf": [
{
- "$ref": "#/$defs/SettingMCPInput"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
+ }
+ },
+ "required": [
+ "assets",
+ "batch",
+ "groups"
+ ],
+ "additionalProperties": false
+ },
+ "RichClipboardPreparedAsset": {
+ "type": "object",
+ "properties": {
+ "index": {
+ "type": "integer"
},
- "providers": {
+ "path": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "index",
+ "path"
+ ],
+ "additionalProperties": false
+ },
+ "RiffBlockIDsRequestInput": {
+ "type": "object",
+ "properties": {
+ "blockIDs": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ },
+ "required": [
+ "blockIDs"
+ ],
+ "additionalProperties": false
+ },
+ "RiffBlocksData": {
+ "type": "object",
+ "properties": {
+ "blocks": {
"anyOf": [
{
"type": "array",
"items": {
"anyOf": [
{
- "$ref": "#/$defs/SettingProviderInput"
+ "$ref": "#/$defs/SearchBlock"
},
{
"type": "null"
@@ -31424,71 +31687,228 @@
"type": "null"
}
]
- },
- "rerank": {
- "anyOf": [
- {
- "$ref": "#/$defs/SettingRerankInput"
- },
- {
- "type": "null"
- }
- ]
}
},
+ "required": [
+ "blocks"
+ ],
"additionalProperties": false
},
- "SetAppearanceRequestInput": {
+ "RiffCardDueInput": {
"type": "object",
"properties": {
- "bodyGradient": {
- "anyOf": [
- {
- "$ref": "#/$defs/SettingBodyGradientInput"
- },
- {
- "type": "null"
- }
- ]
+ "due": {
+ "type": "string"
},
- "closeButtonBehavior": {
+ "id": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "due",
+ "id"
+ ],
+ "additionalProperties": false
+ },
+ "RiffCardRequestInput": {
+ "type": "object",
+ "properties": {
+ "cardID": {
+ "type": "string"
+ },
+ "deckID": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "cardID",
+ "deckID"
+ ],
+ "additionalProperties": false
+ },
+ "RiffCardsData": {
+ "type": "object",
+ "properties": {
+ "blocks": {
"anyOf": [
{
- "type": "integer"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SearchBlock"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
},
- "codeBlockThemeDark": {
+ "pageCount": {
+ "type": "integer"
+ },
+ "total": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "blocks",
+ "pageCount",
+ "total"
+ ],
+ "additionalProperties": false
+ },
+ "RiffCardsRequestInput": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "page": {
+ "type": "number"
+ },
+ "pageSize": {
"anyOf": [
{
- "type": "string"
+ "type": "number"
},
{
"type": "null"
}
]
+ }
+ },
+ "required": [
+ "id",
+ "page"
+ ],
+ "additionalProperties": false
+ },
+ "RiffDeck": {
+ "type": "object",
+ "properties": {
+ "created": {
+ "type": "string"
},
- "codeBlockThemeLight": {
+ "id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "size": {
+ "type": "integer"
+ },
+ "updated": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "created",
+ "id",
+ "name",
+ "size",
+ "updated"
+ ],
+ "additionalProperties": false
+ },
+ "RiffDeckCardsRequestInput": {
+ "type": "object",
+ "properties": {
+ "blockIDs": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "deckID": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "blockIDs",
+ "deckID"
+ ],
+ "additionalProperties": false
+ },
+ "RiffDeckRequestInput": {
+ "type": "object",
+ "properties": {
+ "deckID": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "deckID"
+ ],
+ "additionalProperties": false
+ },
+ "RiffDueCard": {
+ "type": "object",
+ "properties": {
+ "blockID": {
+ "type": "string"
+ },
+ "cardID": {
+ "type": "string"
+ },
+ "deckID": {
+ "type": "string"
+ },
+ "lapses": {
+ "type": "integer"
+ },
+ "lastReview": {
+ "type": "integer"
+ },
+ "nextDues": {
"anyOf": [
{
- "type": "string"
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "darkThemes": {
+ "reps": {
+ "type": "integer"
+ },
+ "state": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "blockID",
+ "cardID",
+ "deckID",
+ "lapses",
+ "lastReview",
+ "nextDues",
+ "reps",
+ "state"
+ ],
+ "additionalProperties": false
+ },
+ "RiffDueCardsData": {
+ "type": "object",
+ "properties": {
+ "cards": {
"anyOf": [
{
"type": "array",
"items": {
"anyOf": [
{
- "$ref": "#/$defs/SettingAppearanceThemeInput"
+ "$ref": "#/$defs/RiffDueCard"
},
{
"type": "null"
@@ -31501,57 +31921,127 @@
}
]
},
- "entryVisibility": {
- "anyOf": [
- {
- "$ref": "#/$defs/SettingEntryVisibilityInput"
- },
- {
- "type": "null"
- }
- ]
+ "unreviewedCount": {
+ "type": "integer"
},
- "globalFontFamilies": {
+ "unreviewedNewCardCount": {
+ "type": "integer"
+ },
+ "unreviewedOldCardCount": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "cards",
+ "unreviewedCount",
+ "unreviewedNewCardCount",
+ "unreviewedOldCardCount"
+ ],
+ "additionalProperties": false
+ },
+ "RiffDueCardsRequestInput": {
+ "type": "object",
+ "properties": {
+ "deckID": {
+ "type": "string"
+ },
+ "reviewedCards": {
"anyOf": [
{
"type": "array",
"items": {
- "anyOf": [
- {
- "$ref": "#/$defs/SettingEditorFontInput"
- },
- {
- "type": "null"
- }
- ]
+ "$ref": "#/$defs/RiffReviewedCardInput"
}
},
{
"type": "null"
}
]
+ }
+ },
+ "required": [
+ "deckID"
+ ],
+ "additionalProperties": false
+ },
+ "RiffNotebookDueCardsRequestInput": {
+ "type": "object",
+ "properties": {
+ "notebook": {
+ "type": "string"
},
- "hideStatusBar": {
+ "reviewedCards": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/RiffReviewedCardInput"
+ }
},
{
"type": "null"
}
]
- },
- "hideToolbar": {
+ }
+ },
+ "required": [
+ "notebook"
+ ],
+ "additionalProperties": false
+ },
+ "RiffReviewedCardInput": {
+ "type": "object",
+ "properties": {
+ "cardID": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "cardID"
+ ],
+ "additionalProperties": false
+ },
+ "RiffTreeDueCardsRequestInput": {
+ "type": "object",
+ "properties": {
+ "reviewedCards": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/RiffReviewedCardInput"
+ }
},
{
"type": "null"
}
]
},
- "icon": {
+ "rootID": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "rootID"
+ ],
+ "additionalProperties": false
+ },
+ "RollbackRepoSnapshotFileRequestInput": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id"
+ ],
+ "additionalProperties": false
+ },
+ "SQLQueryRequestInput": {
+ "type": "object",
+ "properties": {
+ "mode": {
"anyOf": [
{
"type": "string"
@@ -31561,24 +32051,72 @@
}
]
},
- "iconVer": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
+ "stmt": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "stmt"
+ ],
+ "additionalProperties": false
+ },
+ "SaveTemplateRequestInput": {
+ "type": "object",
+ "properties": {
+ "databaseMode": {
+ "type": "string"
},
- "icons": {
+ "directory": {
+ "type": "string"
+ },
+ "id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "overwrite": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "id",
+ "name",
+ "overwrite"
+ ],
+ "additionalProperties": false
+ },
+ "SearchAsset": {
+ "type": "object",
+ "properties": {
+ "hName": {
+ "type": "string"
+ },
+ "path": {
+ "type": "string"
+ },
+ "updated": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "hName",
+ "path",
+ "updated"
+ ],
+ "additionalProperties": false
+ },
+ "SearchAssetContentData": {
+ "type": "object",
+ "properties": {
+ "assetContents": {
"anyOf": [
{
"type": "array",
"items": {
"anyOf": [
{
- "$ref": "#/$defs/SettingAppearanceIconInput"
+ "$ref": "#/$defs/AssetContent"
},
{
"type": "null"
@@ -31591,97 +32129,144 @@
}
]
},
- "lang": {
+ "matchedAssetCount": {
+ "type": "integer"
+ },
+ "pageCount": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "assetContents",
+ "matchedAssetCount",
+ "pageCount"
+ ],
+ "additionalProperties": false
+ },
+ "SearchAssetContentRequestInput": {
+ "type": "object",
+ "properties": {
+ "method": {
"anyOf": [
{
- "type": "string"
+ "type": "number"
},
{
"type": "null"
}
]
},
- "lightThemes": {
+ "orderBy": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/SettingAppearanceThemeInput"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "number"
},
{
"type": "null"
}
]
},
- "mode": {
+ "page": {
"anyOf": [
{
- "type": "integer"
+ "type": "number"
},
{
"type": "null"
}
]
},
- "modeOS": {
+ "pageSize": {
"anyOf": [
{
- "type": "boolean"
+ "type": "number"
},
{
"type": "null"
}
]
},
- "notifications": {
+ "query": {
"anyOf": [
{
- "$ref": "#/$defs/SettingNotificationsInput"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "statusBar": {
+ "types": {
"anyOf": [
{
- "$ref": "#/$defs/SettingStatusBarInput"
+ "type": "object",
+ "additionalProperties": {
+ "type": "boolean"
+ }
},
{
"type": "null"
}
]
- },
- "themeDark": {
+ }
+ },
+ "additionalProperties": false
+ },
+ "SearchAssetRequestInput": {
+ "type": "object",
+ "properties": {
+ "exts": {
"anyOf": [
{
- "type": "string"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "themeJS": {
+ "k": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "k"
+ ],
+ "additionalProperties": false
+ },
+ "SearchAttributeViewRelationKeyRequestInput": {
+ "type": "object",
+ "properties": {
+ "avID": {
+ "type": "string"
+ },
+ "keyword": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "avID",
+ "keyword"
+ ],
+ "additionalProperties": false
+ },
+ "SearchAttributeViewRequestInput": {
+ "type": "object",
+ "properties": {
+ "avID": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "themeLight": {
+ "blockID": {
"anyOf": [
{
"type": "string"
@@ -31691,398 +32276,411 @@
}
]
},
- "themeVer": {
+ "excludes": {
"anyOf": [
{
- "type": "string"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "SetAssetAnnotationRequestInput": {
- "type": "object",
- "properties": {
- "data": {
- "type": "string"
},
- "path": {
+ "includeViewMatches": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "keyword": {
"type": "string"
}
},
"required": [
- "data",
- "path"
+ "keyword"
],
"additionalProperties": false
},
- "SetAssetOCRTextRequestInput": {
+ "SearchAttributeViewRollupDestKeysRequestInput": {
"type": "object",
"properties": {
- "path": {
+ "avID": {
"type": "string"
},
- "text": {
+ "keyword": {
"type": "string"
}
},
"required": [
- "path",
- "text"
+ "avID",
+ "keyword"
],
"additionalProperties": false
},
- "SetAttrViewContextFilterRequestInput": {
+ "SearchBlock": {
"type": "object",
"properties": {
- "avID": {
+ "alias": {
"type": "string"
},
- "blockID": {
+ "box": {
"type": "string"
},
- "keyID": {
+ "children": {
"anyOf": [
{
- "type": "string"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SearchBlock"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
- }
- },
- "required": [
- "avID",
- "blockID"
- ],
- "additionalProperties": false
- },
- "SetAttrViewFiltersRequestInput": {
- "type": "object",
- "properties": {
- "avID": {
+ },
+ "content": {
"type": "string"
},
- "blockID": {
+ "count": {
+ "type": "integer"
+ },
+ "created": {
"type": "string"
},
- "data": {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/AVViewFilterInput"
- },
- {
- "type": "null"
- }
- ]
- }
- }
- },
- "required": [
- "avID",
- "blockID",
- "data"
- ],
- "additionalProperties": false
- },
- "SetAttrViewGroupRequestInput": {
- "type": "object",
- "properties": {
- "avID": {
+ "defID": {
"type": "string"
},
- "blockID": {
+ "defPath": {
"type": "string"
},
- "group": {
- "$ref": "#/$defs/AVViewGroupInput"
+ "depth": {
+ "type": "integer"
},
- "ignoreRows": {
+ "fcontent": {
+ "type": "string"
+ },
+ "folded": {
+ "type": "boolean"
+ },
+ "hPath": {
+ "type": "string"
+ },
+ "ial": {
"anyOf": [
{
- "type": "boolean"
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
- }
- },
- "required": [
- "avID",
- "blockID",
- "group"
- ],
- "additionalProperties": false
- },
- "SetAttrViewSortsRequestInput": {
- "type": "object",
- "properties": {
- "avID": {
+ },
+ "id": {
"type": "string"
},
- "blockID": {
+ "markdown": {
"type": "string"
},
- "data": {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/AVViewSortInput"
- },
- {
- "type": "null"
- }
- ]
- }
- }
- },
- "required": [
- "avID",
- "blockID",
- "data"
- ],
- "additionalProperties": false
- },
- "SetAttributeViewBlockAttrRequestInput": {
- "type": "object",
- "properties": {
- "avID": {
+ "memo": {
"type": "string"
},
- "itemID": {
+ "name": {
+ "type": "string"
+ },
+ "number": {
+ "type": "string"
+ },
+ "parentID": {
+ "type": "string"
+ },
+ "path": {
+ "type": "string"
+ },
+ "refCount": {
+ "type": "integer"
+ },
+ "refText": {
+ "type": "string"
+ },
+ "refs": {
"anyOf": [
{
- "type": "string"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SearchBlock"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
},
- "keyID": {
- "type": "string"
- },
- "rowID": {
+ "riffCard": {
"anyOf": [
{
- "type": "string"
+ "$ref": "#/$defs/SearchBlockCard"
},
{
"type": "null"
}
]
},
- "value": {
- "$ref": "#/$defs/AVValueInput"
+ "riffCardID": {
+ "type": "string"
+ },
+ "rootID": {
+ "type": "string"
+ },
+ "sort": {
+ "type": "integer"
+ },
+ "subType": {
+ "type": "string"
+ },
+ "tag": {
+ "type": "string"
+ },
+ "type": {
+ "type": "string"
+ },
+ "updated": {
+ "type": "string"
}
},
"required": [
- "avID",
- "keyID",
- "value"
+ "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
},
- "SetBazaarPackageRatingRequestInput": {
+ "SearchBlockCard": {
"type": "object",
"properties": {
- "packageName": {
+ "due": {
"type": "string"
},
- "packageType": {
+ "lapses": {
+ "type": "integer"
+ },
+ "lastReview": {
"type": "string"
},
- "rating": {
- "type": "number"
+ "reps": {
+ "type": "integer"
+ },
+ "state": {
+ "type": "integer"
}
},
"required": [
- "packageName",
- "packageType",
- "rating"
+ "due",
+ "lapses",
+ "lastReview",
+ "reps",
+ "state"
],
"additionalProperties": false
},
- "SetBazaarRequestInput": {
+ "SearchBlockRequestInput": {
"type": "object",
"properties": {
- "petalDisabled": {
+ "groupBy": {
"anyOf": [
{
- "type": "boolean"
+ "type": "number"
},
{
"type": "null"
}
]
},
- "trust": {
+ "method": {
"anyOf": [
{
- "type": "boolean"
+ "type": "number"
},
{
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "SetBlockAttrsRequestInput": {
- "type": "object",
- "properties": {
- "attrs": {
- "type": "object",
- "additionalProperties": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- }
},
- "id": {
- "type": "string"
- }
- },
- "required": [
- "attrs",
- "id"
- ],
- "additionalProperties": false
- },
- "SetConfSnippetRequestInput": {
- "type": "object",
- "properties": {
- "enabledCSS": {
+ "orderBy": {
"anyOf": [
{
- "type": "boolean"
+ "type": "number"
},
{
"type": "null"
}
]
},
- "enabledJS": {
+ "page": {
"anyOf": [
{
- "type": "boolean"
+ "type": "number"
},
{
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "SetCriterionRequestInput": {
- "type": "object",
- "properties": {
- "criterion": {
+ },
+ "pageSize": {
"anyOf": [
{
- "$ref": "#/$defs/CriterionInput"
+ "type": "number"
},
{
"type": "null"
}
]
- }
- },
- "required": [
- "criterion"
- ],
- "additionalProperties": false
- },
- "SetDatabaseBlockViewRequestInput": {
- "type": "object",
- "properties": {
- "avID": {
- "type": "string"
- },
- "id": {
- "type": "string"
},
- "viewID": {
- "type": "string"
- }
- },
- "required": [
- "avID",
- "id",
- "viewID"
- ],
- "additionalProperties": false
- },
- "SetEditorRequestInput": {
- "type": "object",
- "properties": {
- "allowHTMLBLockScript": {
+ "paths": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "allowSVGScript": {
+ "query": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "assetOpen": {
+ "subTypes": {
"anyOf": [
{
- "$ref": "#/$defs/SettingAssetOpenInput"
+ "$ref": "#/$defs/SearchSubtypeFilterInput"
},
{
"type": "null"
}
]
},
- "backlinkContainChildren": {
+ "types": {
"anyOf": [
{
- "type": "boolean"
+ "type": "object",
+ "additionalProperties": {
+ "type": "boolean"
+ }
},
{
"type": "null"
}
]
- },
- "backlinkExpandCount": {
+ }
+ },
+ "additionalProperties": false
+ },
+ "SearchBlocksData": {
+ "type": "object",
+ "properties": {
+ "blocks": {
"anyOf": [
{
- "type": "integer"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SearchBlock"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
},
- "backlinkHideReference": {
+ "matchedBlockCount": {
+ "type": "integer"
+ },
+ "matchedRootCount": {
+ "type": "integer"
+ },
+ "pageCount": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "blocks",
+ "matchedBlockCount",
+ "matchedRootCount",
+ "pageCount"
+ ],
+ "additionalProperties": false
+ },
+ "SearchEmbedBlockRequestInput": {
+ "type": "object",
+ "properties": {
+ "breadcrumb": {
"anyOf": [
{
"type": "boolean"
@@ -32092,67 +32690,97 @@
}
]
},
- "backlinkMentionExclude": {
+ "embedBlockID": {
+ "type": "string"
+ },
+ "excludeIDs": {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "headingMode": {
"anyOf": [
{
- "type": "string"
+ "type": "number"
},
{
"type": "null"
}
]
},
- "backlinkShowBottom": {
+ "notebook": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "backlinkSort": {
+ "stmt": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "embedBlockID",
+ "excludeIDs",
+ "stmt"
+ ],
+ "additionalProperties": false
+ },
+ "SearchHeadingFilterInput": {
+ "type": "object",
+ "properties": {
+ "h1": {
"anyOf": [
{
- "type": "integer"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "backmentionExpandCount": {
+ "h2": {
"anyOf": [
{
- "type": "integer"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "backmentionSort": {
+ "h3": {
"anyOf": [
{
- "type": "integer"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "blockRefDynamicAnchorTextMaxLen": {
+ "h4": {
"anyOf": [
{
- "type": "integer"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "checkBlockRef": {
+ "h5": {
"anyOf": [
{
"type": "boolean"
@@ -32162,107 +32790,121 @@
}
]
},
- "codeFontFamilies": {
+ "h6": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/SettingEditorFontInput"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "boolean"
},
{
"type": "null"
}
]
- },
- "codeLigatures": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
- },
- "codeLineWrap": {
+ }
+ },
+ "additionalProperties": false
+ },
+ "SearchHistoryData": {
+ "type": "object",
+ "properties": {
+ "histories": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "codeSyntaxHighlightLineNum": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
+ "pageCount": {
+ "type": "integer"
},
- "codeTabSpaces": {
+ "totalCount": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "histories",
+ "pageCount",
+ "totalCount"
+ ],
+ "additionalProperties": false
+ },
+ "SearchHistoryRequestInput": {
+ "type": "object",
+ "properties": {
+ "notebook": {
"anyOf": [
{
- "type": "integer"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "cursorSurroundingLines": {
+ "op": {
"anyOf": [
{
- "type": "integer"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "databaseAttrClickMode": {
+ "page": {
"anyOf": [
{
- "type": "integer"
+ "type": "number"
},
{
"type": "null"
}
]
},
- "databaseAttrHideEmpty": {
+ "query": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "databaseAttrShow": {
+ "type": {
"anyOf": [
{
- "type": "boolean"
+ "type": "number"
},
{
"type": "null"
}
]
- },
- "databaseAttrUseTabs": {
+ }
+ },
+ "additionalProperties": false
+ },
+ "SearchKeywordRequestInput": {
+ "type": "object",
+ "properties": {
+ "k": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "k"
+ ],
+ "additionalProperties": false
+ },
+ "SearchListFilterInput": {
+ "type": "object",
+ "properties": {
+ "o": {
"anyOf": [
{
"type": "boolean"
@@ -32272,17 +32914,17 @@
}
]
},
- "databaseAttrViewMode": {
+ "t": {
"anyOf": [
{
- "type": "integer"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "displayBookmarkIcon": {
+ "u": {
"anyOf": [
{
"type": "boolean"
@@ -32291,38 +32933,150 @@
"type": "null"
}
]
- },
- "displayNetImgMark": {
+ }
+ },
+ "additionalProperties": false
+ },
+ "SearchPageRequestInput": {
+ "type": "object",
+ "properties": {
+ "page": {
"anyOf": [
{
- "type": "boolean"
+ "type": "number"
},
{
"type": "null"
}
]
},
- "dragHTMLFileToIframe": {
+ "pageSize": {
"anyOf": [
{
- "type": "boolean"
+ "type": "number"
},
{
"type": "null"
}
]
+ }
+ },
+ "additionalProperties": false
+ },
+ "SearchPath": {
+ "type": "object",
+ "properties": {
+ "blocks": {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SearchBlock"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
- "dynamicLoadBlocks": {
+ "box": {
+ "type": "string"
+ },
+ "children": {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SearchPath"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "count": {
+ "type": "integer"
+ },
+ "created": {
+ "type": "string"
+ },
+ "depth": {
+ "type": "integer"
+ },
+ "folded": {
+ "type": "boolean"
+ },
+ "hPath": {
+ "type": "string"
+ },
+ "id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "nodeType": {
+ "type": "string"
+ },
+ "number": {
+ "type": "string"
+ },
+ "subType": {
+ "type": "string"
+ },
+ "type": {
+ "type": "string"
+ },
+ "updated": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "box",
+ "count",
+ "created",
+ "depth",
+ "folded",
+ "hPath",
+ "id",
+ "name",
+ "nodeType",
+ "subType",
+ "type",
+ "updated"
+ ],
+ "additionalProperties": false
+ },
+ "SearchPathRequestInput": {
+ "type": "object",
+ "properties": {
+ "path": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "path"
+ ],
+ "additionalProperties": false
+ },
+ "SearchRefBlockRequestInput": {
+ "type": "object",
+ "properties": {
+ "beforeLen": {
+ "type": "number"
+ },
+ "id": {
"anyOf": [
{
- "type": "integer"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "embedBlockBreadcrumb": {
+ "isDatabase": {
"anyOf": [
{
"type": "boolean"
@@ -32332,47 +33086,68 @@
}
]
},
- "emoji": {
+ "isSquareBrackets": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "floatWindowDelay": {
+ "k": {
+ "type": "string"
+ },
+ "notebook": {
"anyOf": [
{
- "type": "integer"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "floatWindowMode": {
+ "reqId": {
"anyOf": [
{
- "type": "integer"
+ "$ref": "#/$defs/JSONValue"
},
{
"type": "null"
}
]
},
- "fontFamilies": {
+ "rootID": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false
+ },
+ "SearchRefCorrelation": {
+ "type": "object",
+ "properties": {
+ "reqId": {
+ "$ref": "#/$defs/JSONValue"
+ }
+ },
+ "required": [
+ "reqId"
+ ],
+ "additionalProperties": false
+ },
+ "SearchRefResult": {
+ "type": "object",
+ "properties": {
+ "blocks": {
"anyOf": [
{
"type": "array",
"items": {
"anyOf": [
{
- "$ref": "#/$defs/SettingEditorFontInput"
+ "$ref": "#/$defs/SearchBlock"
},
{
"type": "null"
@@ -32385,207 +33160,414 @@
}
]
},
- "fontFamily": {
+ "k": {
+ "type": "string"
+ },
+ "newDoc": {
+ "type": "boolean"
+ },
+ "reqId": {
+ "$ref": "#/$defs/JSONValue"
+ }
+ },
+ "required": [
+ "blocks",
+ "k",
+ "newDoc",
+ "reqId"
+ ],
+ "additionalProperties": false
+ },
+ "SearchRepoFileRequestInput": {
+ "type": "object",
+ "properties": {
+ "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"
}
]
},
- "fontFamilyDisplay": {
+ "list": {
"anyOf": [
{
- "type": "string"
+ "type": "object",
+ "additionalProperties": {
+ "type": "boolean"
+ }
},
{
"type": "null"
}
]
},
- "fontSize": {
+ "listItem": {
"anyOf": [
{
- "type": "integer"
+ "type": "object",
+ "additionalProperties": {
+ "type": "boolean"
+ }
},
{
"type": "null"
}
]
- },
- "fontSizeScrollZoom": {
+ }
+ },
+ "required": [
+ "heading",
+ "list",
+ "listItem"
+ ],
+ "additionalProperties": false
+ },
+ "SearchSubTypesInput": {
+ "type": "object",
+ "properties": {
+ "heading": {
"anyOf": [
{
- "type": "boolean"
+ "type": "object",
+ "additionalProperties": {
+ "type": "boolean"
+ }
},
{
"type": "null"
}
]
},
- "fontWeight": {
+ "list": {
"anyOf": [
{
- "type": "integer"
+ "type": "object",
+ "additionalProperties": {
+ "type": "boolean"
+ }
},
{
"type": "null"
}
]
},
- "fullWidth": {
+ "listItem": {
"anyOf": [
{
- "type": "boolean"
+ "type": "object",
+ "additionalProperties": {
+ "type": "boolean"
+ }
},
{
"type": "null"
}
]
- },
- "generateHistoryInterval": {
+ }
+ },
+ "additionalProperties": false
+ },
+ "SearchSubtypeFilterInput": {
+ "type": "object",
+ "properties": {
+ "heading": {
"anyOf": [
{
- "type": "integer"
+ "$ref": "#/$defs/SearchHeadingFilterInput"
},
{
"type": "null"
}
]
},
- "hashTagSearch": {
+ "list": {
"anyOf": [
{
- "type": "boolean"
+ "$ref": "#/$defs/SearchListFilterInput"
},
{
"type": "null"
}
]
},
- "headingEmbedMode": {
+ "listItem": {
"anyOf": [
{
- "type": "integer"
+ "$ref": "#/$defs/SearchListFilterInput"
},
{
"type": "null"
}
]
+ }
+ },
+ "additionalProperties": false
+ },
+ "SearchTagData": {
+ "type": "object",
+ "properties": {
+ "k": {
+ "type": "string"
},
- "headingNumber": {
+ "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": "boolean"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SearchTemplateResult"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
+ }
+ },
+ "required": [
+ "k",
+ "templates"
+ ],
+ "additionalProperties": false
+ },
+ "SearchTemplateResult": {
+ "type": "object",
+ "properties": {
+ "content": {
+ "type": "string"
},
- "headingNumberFormat": {
+ "path": {
+ "type": "string"
+ },
+ "relativePath": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "content",
+ "path",
+ "relativePath"
+ ],
+ "additionalProperties": false
+ },
+ "SearchWidgetData": {
+ "type": "object",
+ "properties": {
+ "k": {
+ "type": "string"
+ },
+ "widgets": {
"anyOf": [
{
- "type": "string"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SearchWidgetResult"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
+ }
+ },
+ "required": [
+ "k",
+ "widgets"
+ ],
+ "additionalProperties": false
+ },
+ "SearchWidgetResult": {
+ "type": "object",
+ "properties": {
+ "content": {
+ "type": "string"
},
- "historyRetentionDays": {
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "content",
+ "name"
+ ],
+ "additionalProperties": false
+ },
+ "SetAIRequestInput": {
+ "type": "object",
+ "properties": {
+ "agent": {
"anyOf": [
{
- "type": "integer"
+ "$ref": "#/$defs/SettingAgentInput"
},
{
"type": "null"
}
]
},
- "justify": {
+ "editing": {
"anyOf": [
{
- "type": "boolean"
+ "$ref": "#/$defs/SettingEditingInput"
},
{
"type": "null"
}
]
},
- "katexMacros": {
+ "embedding": {
"anyOf": [
{
- "type": "string"
+ "$ref": "#/$defs/SettingEmbeddingInput"
},
{
"type": "null"
}
]
},
- "keepLoadedContent": {
+ "imageGeneration": {
"anyOf": [
{
- "type": "boolean"
+ "$ref": "#/$defs/SettingImageGenerationInput"
},
{
"type": "null"
}
]
},
- "listItemDotNumberClickFocus": {
+ "mcp": {
"anyOf": [
{
- "type": "boolean"
+ "$ref": "#/$defs/SettingMCPInput"
},
{
"type": "null"
}
]
},
- "listLogicalOutdent": {
+ "providers": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingProviderInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
},
- "markdown": {
+ "rerank": {
"anyOf": [
{
- "$ref": "#/$defs/SettingMarkdownInput"
+ "$ref": "#/$defs/SettingRerankInput"
},
{
"type": "null"
}
]
- },
- "onlySearchForDoc": {
+ }
+ },
+ "additionalProperties": false
+ },
+ "SetAppearanceRequestInput": {
+ "type": "object",
+ "properties": {
+ "bodyGradient": {
"anyOf": [
{
- "type": "boolean"
+ "$ref": "#/$defs/SettingBodyGradientInput"
},
{
"type": "null"
}
]
},
- "pasteURLAutoConvert": {
+ "closeButtonBehavior": {
"anyOf": [
{
- "type": "boolean"
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "plantUMLServePath": {
+ "codeBlockThemeDark": {
"anyOf": [
{
"type": "string"
@@ -32595,42 +33577,59 @@
}
]
},
- "readOnly": {
+ "codeBlockThemeLight": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "rtl": {
+ "darkThemes": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingAppearanceThemeInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
},
- "spellcheck": {
+ "entryVisibility": {
"anyOf": [
{
- "type": "boolean"
+ "$ref": "#/$defs/SettingEntryVisibilityInput"
},
{
"type": "null"
}
]
},
- "spellcheckLanguages": {
+ "globalFontFamilies": {
"anyOf": [
{
"type": "array",
"items": {
- "type": "string"
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingEditorFontInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
{
@@ -32638,7 +33637,7 @@
}
]
},
- "virtualBlockRef": {
+ "hideStatusBar": {
"anyOf": [
{
"type": "boolean"
@@ -32648,17 +33647,17 @@
}
]
},
- "virtualBlockRefExclude": {
+ "hideToolbar": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "virtualBlockRefInclude": {
+ "icon": {
"anyOf": [
{
"type": "string"
@@ -32667,14 +33666,8 @@
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "SetEntryVisibilityRequestInput": {
- "type": "object",
- "properties": {
- "active": {
+ },
+ "iconVer": {
"anyOf": [
{
"type": "string"
@@ -32684,14 +33677,14 @@
}
]
},
- "profiles": {
+ "icons": {
"anyOf": [
{
"type": "array",
"items": {
"anyOf": [
{
- "$ref": "#/$defs/SettingEntryVisibilityProfileInput"
+ "$ref": "#/$defs/SettingAppearanceIconInput"
},
{
"type": "null"
@@ -32704,33 +33697,37 @@
}
]
},
- "version": {
+ "lang": {
"anyOf": [
{
- "type": "integer"
+ "type": "string"
},
{
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "SetExportRequestInput": {
- "type": "object",
- "properties": {
- "addTitle": {
+ },
+ "lightThemes": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingAppearanceThemeInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
},
- "blockEmbedMode": {
+ "mode": {
"anyOf": [
{
"type": "integer"
@@ -32740,37 +33737,37 @@
}
]
},
- "blockRefMode": {
+ "modeOS": {
"anyOf": [
{
- "type": "integer"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "blockRefTextLeft": {
+ "notifications": {
"anyOf": [
{
- "type": "string"
+ "$ref": "#/$defs/SettingNotificationsInput"
},
{
"type": "null"
}
]
},
- "blockRefTextRight": {
+ "statusBar": {
"anyOf": [
{
- "type": "string"
+ "$ref": "#/$defs/SettingStatusBarInput"
},
{
"type": "null"
}
]
},
- "docxTemplate": {
+ "themeDark": {
"anyOf": [
{
"type": "string"
@@ -32780,17 +33777,17 @@
}
]
},
- "fileAnnotationRefMode": {
+ "themeJS": {
"anyOf": [
{
- "type": "integer"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "imageWatermarkDesc": {
+ "themeLight": {
"anyOf": [
{
"type": "string"
@@ -32800,7 +33797,7 @@
}
]
},
- "imageWatermarkStr": {
+ "themeVer": {
"anyOf": [
{
"type": "string"
@@ -32809,38 +33806,111 @@
"type": "null"
}
]
+ }
+ },
+ "additionalProperties": false
+ },
+ "SetAssetAnnotationRequestInput": {
+ "type": "object",
+ "properties": {
+ "data": {
+ "type": "string"
},
- "includeRelatedDocs": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
+ "path": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "data",
+ "path"
+ ],
+ "additionalProperties": false
+ },
+ "SetAssetOCRTextRequestInput": {
+ "type": "object",
+ "properties": {
+ "path": {
+ "type": "string"
},
- "includeSubDocs": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
+ "text": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "path",
+ "text"
+ ],
+ "additionalProperties": false
+ },
+ "SetAttrViewContextFilterRequestInput": {
+ "type": "object",
+ "properties": {
+ "avID": {
+ "type": "string"
},
- "inlineMemo": {
+ "blockID": {
+ "type": "string"
+ },
+ "keyID": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
+ }
+ },
+ "required": [
+ "avID",
+ "blockID"
+ ],
+ "additionalProperties": false
+ },
+ "SetAttrViewFiltersRequestInput": {
+ "type": "object",
+ "properties": {
+ "avID": {
+ "type": "string"
},
- "markdownYFM": {
+ "blockID": {
+ "type": "string"
+ },
+ "data": {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVViewFilterInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ }
+ },
+ "required": [
+ "avID",
+ "blockID",
+ "data"
+ ],
+ "additionalProperties": false
+ },
+ "SetAttrViewGroupRequestInput": {
+ "type": "object",
+ "properties": {
+ "avID": {
+ "type": "string"
+ },
+ "blockID": {
+ "type": "string"
+ },
+ "group": {
+ "$ref": "#/$defs/AVViewGroupInput"
+ },
+ "ignoreRows": {
"anyOf": [
{
"type": "boolean"
@@ -32849,18 +33919,52 @@
"type": "null"
}
]
+ }
+ },
+ "required": [
+ "avID",
+ "blockID",
+ "group"
+ ],
+ "additionalProperties": false
+ },
+ "SetAttrViewSortsRequestInput": {
+ "type": "object",
+ "properties": {
+ "avID": {
+ "type": "string"
},
- "pandocBin": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
+ "blockID": {
+ "type": "string"
},
- "pandocParams": {
+ "data": {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AVViewSortInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ }
+ },
+ "required": [
+ "avID",
+ "blockID",
+ "data"
+ ],
+ "additionalProperties": false
+ },
+ "SetAttributeViewBlockAttrRequestInput": {
+ "type": "object",
+ "properties": {
+ "avID": {
+ "type": "string"
+ },
+ "itemID": {
"anyOf": [
{
"type": "string"
@@ -32870,17 +33974,10 @@
}
]
},
- "paragraphBeginningSpace": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
+ "keyID": {
+ "type": "string"
},
- "pdfFooter": {
+ "rowID": {
"anyOf": [
{
"type": "string"
@@ -32890,27 +33987,93 @@
}
]
},
- "pdfWatermarkDesc": {
+ "value": {
+ "$ref": "#/$defs/AVValueInput"
+ }
+ },
+ "required": [
+ "avID",
+ "keyID",
+ "value"
+ ],
+ "additionalProperties": false
+ },
+ "SetBazaarPackageRatingRequestInput": {
+ "type": "object",
+ "properties": {
+ "packageName": {
+ "type": "string"
+ },
+ "packageType": {
+ "type": "string"
+ },
+ "rating": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "packageName",
+ "packageType",
+ "rating"
+ ],
+ "additionalProperties": false
+ },
+ "SetBazaarRequestInput": {
+ "type": "object",
+ "properties": {
+ "petalDisabled": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "pdfWatermarkStr": {
+ "trust": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
+ }
+ },
+ "additionalProperties": false
+ },
+ "SetBlockAttrsRequestInput": {
+ "type": "object",
+ "properties": {
+ "attrs": {
+ "type": "object",
+ "additionalProperties": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
- "removeAssetsID": {
+ "id": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "attrs",
+ "id"
+ ],
+ "additionalProperties": false
+ },
+ "SetConfSnippetRequestInput": {
+ "type": "object",
+ "properties": {
+ "enabledCSS": {
"anyOf": [
{
"type": "boolean"
@@ -32920,20 +34083,26 @@
}
]
},
- "tagCloseMarker": {
+ "enabledJS": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
- },
- "tagOpenMarker": {
+ }
+ },
+ "additionalProperties": false
+ },
+ "SetCriterionRequestInput": {
+ "type": "object",
+ "properties": {
+ "criterion": {
"anyOf": [
{
- "type": "string"
+ "$ref": "#/$defs/CriterionInput"
},
{
"type": "null"
@@ -32941,12 +34110,35 @@
]
}
},
+ "required": [
+ "criterion"
+ ],
"additionalProperties": false
},
- "SetFiletreeRequestInput": {
+ "SetDatabaseBlockViewRequestInput": {
"type": "object",
"properties": {
- "allowCreateDeeper": {
+ "avID": {
+ "type": "string"
+ },
+ "id": {
+ "type": "string"
+ },
+ "viewID": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "avID",
+ "id",
+ "viewID"
+ ],
+ "additionalProperties": false
+ },
+ "SetEditorRequestInput": {
+ "type": "object",
+ "properties": {
+ "allowHTMLBLockScript": {
"anyOf": [
{
"type": "boolean"
@@ -32956,7 +34148,7 @@
}
]
},
- "alwaysSelectOpenedFile": {
+ "allowSVGScript": {
"anyOf": [
{
"type": "boolean"
@@ -32966,17 +34158,17 @@
}
]
},
- "boxDocEnabled": {
+ "assetOpen": {
"anyOf": [
{
- "type": "boolean"
+ "$ref": "#/$defs/SettingAssetOpenInput"
},
{
"type": "null"
}
]
},
- "closeTabOnDoubleClick": {
+ "backlinkContainChildren": {
"anyOf": [
{
"type": "boolean"
@@ -32986,17 +34178,17 @@
}
]
},
- "closeTabsOnStart": {
+ "backlinkExpandCount": {
"anyOf": [
{
- "type": "boolean"
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "createDocAtTop": {
+ "backlinkHideReference": {
"anyOf": [
{
"type": "boolean"
@@ -33006,7 +34198,7 @@
}
]
},
- "docCreateSaveBox": {
+ "backlinkMentionExclude": {
"anyOf": [
{
"type": "string"
@@ -33016,37 +34208,37 @@
}
]
},
- "docCreateSavePath": {
+ "backlinkShowBottom": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "docCreateTemplatePath": {
+ "backlinkSort": {
"anyOf": [
{
- "type": "string"
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "docIconClickExpand": {
+ "backmentionExpandCount": {
"anyOf": [
{
- "type": "boolean"
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "largeFileWarningSize": {
+ "backmentionSort": {
"anyOf": [
{
"type": "integer"
@@ -33056,7 +34248,7 @@
}
]
},
- "maxListCount": {
+ "blockRefDynamicAnchorTextMaxLen": {
"anyOf": [
{
"type": "integer"
@@ -33066,27 +34258,37 @@
}
]
},
- "maxOpenTabCount": {
+ "checkBlockRef": {
"anyOf": [
{
- "type": "integer"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "noSplitScreenWhenOpenTab": {
+ "codeFontFamilies": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingEditorFontInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
},
- "openFilesUseCurrentTab": {
+ "codeLigatures": {
"anyOf": [
{
"type": "boolean"
@@ -33096,7 +34298,7 @@
}
]
},
- "parentDocClickExpand": {
+ "codeLineWrap": {
"anyOf": [
{
"type": "boolean"
@@ -33106,77 +34308,77 @@
}
]
},
- "recentDocsMaxListCount": {
+ "codeSyntaxHighlightLineNum": {
"anyOf": [
{
- "type": "integer"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "refCreateSaveBox": {
+ "codeTabSpaces": {
"anyOf": [
{
- "type": "string"
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "refCreateSavePath": {
+ "cursorSurroundingLines": {
"anyOf": [
{
- "type": "string"
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "removeDocWithoutConfirm": {
+ "databaseAttrClickMode": {
"anyOf": [
{
- "type": "boolean"
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "shorthandSaveBox": {
+ "databaseAttrHideEmpty": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "shorthandSavePath": {
+ "databaseAttrShow": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "sort": {
+ "databaseAttrUseTabs": {
"anyOf": [
{
- "type": "integer"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "tabStartupMode": {
+ "databaseAttrViewMode": {
"anyOf": [
{
"type": "integer"
@@ -33186,7 +34388,7 @@
}
]
},
- "useSVGDefaultIcon": {
+ "displayBookmarkIcon": {
"anyOf": [
{
"type": "boolean"
@@ -33196,7 +34398,7 @@
}
]
},
- "useSingleLineSave": {
+ "displayNetImgMark": {
"anyOf": [
{
"type": "boolean"
@@ -33205,14 +34407,8 @@
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "SetFlashcardRequestInput": {
- "type": "object",
- "properties": {
- "blockquote": {
+ },
+ "dragHTMLFileToIframe": {
"anyOf": [
{
"type": "boolean"
@@ -33222,17 +34418,17 @@
}
]
},
- "callout": {
+ "dynamicLoadBlocks": {
"anyOf": [
{
- "type": "boolean"
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "deck": {
+ "embedBlockBreadcrumb": {
"anyOf": [
{
"type": "boolean"
@@ -33242,67 +34438,80 @@
}
]
},
- "heading": {
+ "emoji": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "list": {
+ "floatWindowDelay": {
"anyOf": [
{
- "type": "boolean"
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "mark": {
+ "floatWindowMode": {
"anyOf": [
{
- "type": "boolean"
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "maximumInterval": {
+ "fontFamilies": {
"anyOf": [
{
- "type": "integer"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingEditorFontInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
},
- "newCardLimit": {
+ "fontFamily": {
"anyOf": [
{
- "type": "integer"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "requestRetention": {
+ "fontFamilyDisplay": {
"anyOf": [
{
- "type": "number"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "reviewCardLimit": {
+ "fontSize": {
"anyOf": [
{
"type": "integer"
@@ -33312,7 +34521,17 @@
}
]
},
- "reviewMode": {
+ "fontSizeScrollZoom": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "fontWeight": {
"anyOf": [
{
"type": "integer"
@@ -33322,7 +34541,7 @@
}
]
},
- "superBlock": {
+ "fullWidth": {
"anyOf": [
{
"type": "boolean"
@@ -33332,143 +34551,77 @@
}
]
},
- "weights": {
+ "generateHistoryInterval": {
"anyOf": [
{
- "type": "string"
+ "type": "integer"
},
{
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "SetGraphConfRequestInput": {
- "type": "object",
- "properties": {
- "conf": {
- "$ref": "#/$defs/GraphConfigurationFieldsInput"
},
- "type": {
- "type": "string"
- }
- },
- "required": [
- "conf",
- "type"
- ],
- "additionalProperties": false
- },
- "SetInlineStylesRequestInput": {
- "type": "object",
- "properties": {
- "app": {
+ "hashTagSearch": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "av": {
+ "headingEmbedMode": {
"anyOf": [
{
- "$ref": "#/$defs/InlineStyleAVInput"
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "builtin": {
+ "headingNumber": {
"anyOf": [
{
- "$ref": "#/$defs/InlineStyleBuiltinInput"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "order": {
+ "headingNumberFormat": {
"anyOf": [
{
- "$ref": "#/$defs/InlineStyleOrderInput"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "styles": {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/InlineStyleInput"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "version": {
- "type": "number"
- }
- },
- "required": [
- "styles",
- "version"
- ],
- "additionalProperties": false
- },
- "SetNotebookConfRequestInput": {
- "type": "object",
- "properties": {
- "conf": {
+ "historyRetentionDays": {
"anyOf": [
{
- "$ref": "#/$defs/NotebookConfPatchInput"
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "notebook": {
- "type": "string"
- }
- },
- "required": [
- "notebook"
- ],
- "additionalProperties": false
- },
- "SetNotebookIconRequestInput": {
- "type": "object",
- "properties": {
- "icon": {
- "type": "string"
+ "justify": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "notebook": {
- "type": "string"
- }
- },
- "required": [
- "icon",
- "notebook"
- ],
- "additionalProperties": false
- },
- "SetPetalEnabledRequestInput": {
- "type": "object",
- "properties": {
- "app": {
+ "katexMacros": {
"anyOf": [
{
"type": "string"
@@ -33478,49 +34631,27 @@
}
]
},
- "enabled": {
- "type": "boolean"
- },
- "packageName": {
- "type": "string"
- }
- },
- "required": [
- "enabled",
- "packageName"
- ],
- "additionalProperties": false
- },
- "SetPetalPublishEnabledRequestInput": {
- "type": "object",
- "properties": {
- "enabled": {
- "type": "boolean"
+ "keepLoadedContent": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "packageName": {
- "type": "string"
- }
- },
- "required": [
- "enabled",
- "packageName"
- ],
- "additionalProperties": false
- },
- "SetPublishRequestInput": {
- "type": "object",
- "properties": {
- "auth": {
+ "listItemDotNumberClickFocus": {
"anyOf": [
{
- "$ref": "#/$defs/SettingBasicAuthInput"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "enable": {
+ "listLogicalOutdent": {
"anyOf": [
{
"type": "boolean"
@@ -33530,62 +34661,17 @@
}
]
},
- "port": {
+ "markdown": {
"anyOf": [
{
- "type": "integer"
+ "$ref": "#/$defs/SettingMarkdownInput"
},
{
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "SetRepoIndexRetentionDaysRequestInput": {
- "type": "object",
- "properties": {
- "days": {
- "type": "number"
- }
- },
- "required": [
- "days"
- ],
- "additionalProperties": false
- },
- "SetRetentionIndexesDailyRequestInput": {
- "type": "object",
- "properties": {
- "indexes": {
- "type": "number"
- }
- },
- "required": [
- "indexes"
- ],
- "additionalProperties": false
- },
- "SetRiffCardsDueRequestInput": {
- "type": "object",
- "properties": {
- "cardDues": {
- "type": "array",
- "items": {
- "$ref": "#/$defs/RiffCardDueInput"
- }
- }
- },
- "required": [
- "cardDues"
- ],
- "additionalProperties": false
- },
- "SetSearchRequestInput": {
- "type": "object",
- "properties": {
- "alias": {
+ },
+ "onlySearchForDoc": {
"anyOf": [
{
"type": "boolean"
@@ -33595,7 +34681,7 @@
}
]
},
- "audioBlock": {
+ "pasteURLAutoConvert": {
"anyOf": [
{
"type": "boolean"
@@ -33605,7 +34691,17 @@
}
]
},
- "backlinkMentionAlias": {
+ "plantUMLServePath": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "readOnly": {
"anyOf": [
{
"type": "boolean"
@@ -33615,7 +34711,7 @@
}
]
},
- "backlinkMentionAnchor": {
+ "rtl": {
"anyOf": [
{
"type": "boolean"
@@ -33625,7 +34721,7 @@
}
]
},
- "backlinkMentionDoc": {
+ "spellcheck": {
"anyOf": [
{
"type": "boolean"
@@ -33635,17 +34731,20 @@
}
]
},
- "backlinkMentionKeywordsLimit": {
+ "spellcheckLanguages": {
"anyOf": [
{
- "type": "integer"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "backlinkMentionName": {
+ "virtualBlockRef": {
"anyOf": [
{
"type": "boolean"
@@ -33655,37 +34754,79 @@
}
]
},
- "blockquote": {
+ "virtualBlockRefExclude": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "callout": {
+ "virtualBlockRefInclude": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "SetEntryVisibilityRequestInput": {
+ "type": "object",
+ "properties": {
+ "active": {
+ "anyOf": [
+ {
+ "type": "string"
},
{
"type": "null"
}
]
},
- "caseSensitive": {
+ "profiles": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingEntryVisibilityProfileInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
},
- "codeBlock": {
+ "version": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "SetExportRequestInput": {
+ "type": "object",
+ "properties": {
+ "addTitle": {
"anyOf": [
{
"type": "boolean"
@@ -33695,87 +34836,87 @@
}
]
},
- "databaseBlock": {
+ "blockEmbedMode": {
"anyOf": [
{
- "type": "boolean"
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "document": {
+ "blockRefMode": {
"anyOf": [
{
- "type": "boolean"
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "embedBlock": {
+ "blockRefTextLeft": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "hanSensitive": {
+ "blockRefTextRight": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "heading": {
+ "docxTemplate": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "htmlBlock": {
+ "fileAnnotationRefMode": {
"anyOf": [
{
- "type": "boolean"
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "ial": {
+ "imageWatermarkDesc": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "iframeBlock": {
+ "imageWatermarkStr": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "indexAssetPath": {
+ "includeRelatedDocs": {
"anyOf": [
{
"type": "boolean"
@@ -33785,17 +34926,17 @@
}
]
},
- "limit": {
+ "includeSubDocs": {
"anyOf": [
{
- "type": "integer"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "list": {
+ "inlineMemo": {
"anyOf": [
{
"type": "boolean"
@@ -33805,7 +34946,7 @@
}
]
},
- "listItem": {
+ "markdownYFM": {
"anyOf": [
{
"type": "boolean"
@@ -33815,27 +34956,27 @@
}
]
},
- "mathBlock": {
+ "pandocBin": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "memo": {
+ "pandocParams": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "name": {
+ "paragraphBeginningSpace": {
"anyOf": [
{
"type": "boolean"
@@ -33845,37 +34986,37 @@
}
]
},
- "paragraph": {
+ "pdfFooter": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "superBlock": {
+ "pdfWatermarkDesc": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "tabItem": {
+ "pdfWatermarkStr": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "table": {
+ "removeAssetsID": {
"anyOf": [
{
"type": "boolean"
@@ -33885,17 +35026,33 @@
}
]
},
- "tabs": {
+ "tagCloseMarker": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "videoBlock": {
+ "tagOpenMarker": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "SetFiletreeRequestInput": {
+ "type": "object",
+ "properties": {
+ "allowCreateDeeper": {
"anyOf": [
{
"type": "boolean"
@@ -33905,7 +35062,7 @@
}
]
},
- "virtualRefAlias": {
+ "alwaysSelectOpenedFile": {
"anyOf": [
{
"type": "boolean"
@@ -33915,7 +35072,7 @@
}
]
},
- "virtualRefAnchor": {
+ "boxDocEnabled": {
"anyOf": [
{
"type": "boolean"
@@ -33925,7 +35082,7 @@
}
]
},
- "virtualRefDoc": {
+ "closeTabOnDoubleClick": {
"anyOf": [
{
"type": "boolean"
@@ -33935,7 +35092,7 @@
}
]
},
- "virtualRefName": {
+ "closeTabsOnStart": {
"anyOf": [
{
"type": "boolean"
@@ -33945,7 +35102,7 @@
}
]
},
- "widgetBlock": {
+ "createDocAtTop": {
"anyOf": [
{
"type": "boolean"
@@ -33954,341 +35111,168 @@
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "SetSecretsRequestInput": {
- "type": "object",
- "properties": {
- "items": {
+ },
+ "docCreateSaveBox": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/SettingSecretInput"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "string"
},
{
"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": {
+ "docCreateSavePath": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/SettingVariableInput"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "string"
},
{
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "SettingAI": {
- "type": "object",
- "properties": {
- "agent": {
+ },
+ "docCreateTemplatePath": {
"anyOf": [
{
- "$ref": "#/$defs/SettingAgent"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "editing": {
+ "docIconClickExpand": {
"anyOf": [
{
- "$ref": "#/$defs/SettingEditing"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "embedding": {
+ "largeFileWarningSize": {
"anyOf": [
{
- "$ref": "#/$defs/SettingEmbedding"
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "imageGeneration": {
+ "maxListCount": {
"anyOf": [
{
- "$ref": "#/$defs/SettingImageGeneration"
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "mcp": {
+ "maxOpenTabCount": {
"anyOf": [
{
- "$ref": "#/$defs/SettingMCP"
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "providers": {
+ "noSplitScreenWhenOpenTab": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/SettingProvider"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "rerank": {
+ "openFilesUseCurrentTab": {
"anyOf": [
{
- "$ref": "#/$defs/SettingRerank"
+ "type": "boolean"
},
{
"type": "null"
}
]
- }
- },
- "required": [
- "agent",
- "editing",
- "embedding",
- "imageGeneration",
- "mcp",
- "providers",
- "rerank"
- ],
- "additionalProperties": false
- },
- "SettingAgent": {
- "type": "object",
- "properties": {
- "approvalPolicy": {
+ },
+ "parentDocClickExpand": {
"anyOf": [
{
- "$ref": "#/$defs/SettingApprovalPolicy"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "capabilityPolicy": {
+ "recentDocsMaxListCount": {
"anyOf": [
{
- "$ref": "#/$defs/SettingCapabilityPolicy"
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "confirmTimeout": {
- "type": "integer"
- },
- "maxCompletionTokens": {
- "type": "integer"
- },
- "maxRetries": {
- "type": "integer"
- },
- "maxToolCallRounds": {
- "type": "integer"
- },
- "modelId": {
- "type": "string"
- },
- "sessionTimeout": {
- "type": "integer"
- },
- "skills": {
+ "refCreateSaveBox": {
"anyOf": [
{
- "$ref": "#/$defs/SettingAgentSkills"
+ "type": "string"
},
{
"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": {
+ "refCreateSavePath": {
"anyOf": [
{
- "$ref": "#/$defs/SettingApprovalPolicyInput"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "capabilityPolicy": {
+ "removeDocWithoutConfirm": {
"anyOf": [
{
- "$ref": "#/$defs/SettingCapabilityPolicyInput"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "confirmTimeout": {
+ "shorthandSaveBox": {
"anyOf": [
{
- "type": "integer"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "maxCompletionTokens": {
+ "shorthandSavePath": {
"anyOf": [
{
- "type": "integer"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "maxRetries": {
+ "sort": {
"anyOf": [
{
"type": "integer"
@@ -34298,7 +35282,7 @@
}
]
},
- "maxToolCallRounds": {
+ "tabStartupMode": {
"anyOf": [
{
"type": "integer"
@@ -34308,312 +35292,185 @@
}
]
},
- "modelId": {
+ "useSVGDefaultIcon": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "sessionTimeout": {
+ "useSingleLineSave": {
"anyOf": [
{
- "type": "integer"
+ "type": "boolean"
},
{
"type": "null"
}
]
- },
- "skills": {
+ }
+ },
+ "additionalProperties": false
+ },
+ "SetFlashcardRequestInput": {
+ "type": "object",
+ "properties": {
+ "blockquote": {
"anyOf": [
{
- "$ref": "#/$defs/SettingAgentSkillsInput"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "streamIdleTimeout": {
+ "callout": {
"anyOf": [
{
- "type": "integer"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "temperature": {
+ "deck": {
"anyOf": [
{
- "type": "number"
+ "type": "boolean"
},
{
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "SettingAgentSkills": {
- "type": "object",
- "properties": {
- "userEnabled": {
+ },
+ "heading": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "type": "boolean"
},
{
"type": "null"
}
]
- }
- },
- "required": [
- "userEnabled"
- ],
- "additionalProperties": false
- },
- "SettingAgentSkillsInput": {
- "type": "object",
- "properties": {
- "userEnabled": {
+ },
+ "list": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "type": "boolean"
},
{
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "SettingAppearance": {
- "type": "object",
- "properties": {
- "bodyGradient": {
+ },
+ "mark": {
"anyOf": [
{
- "$ref": "#/$defs/SettingBodyGradient"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "closeButtonBehavior": {
- "type": "integer"
- },
- "codeBlockThemeDark": {
- "type": "string"
- },
- "codeBlockThemeLight": {
- "type": "string"
- },
- "darkThemes": {
+ "maximumInterval": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/SettingAppearanceTheme"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "entryVisibility": {
+ "newCardLimit": {
"anyOf": [
{
- "$ref": "#/$defs/SettingEntryVisibility"
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "globalFontFamilies": {
+ "requestRetention": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/SettingEditorFont"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "number"
},
{
"type": "null"
}
]
},
- "hideStatusBar": {
- "type": "boolean"
- },
- "hideToolbar": {
- "type": "boolean"
- },
- "icon": {
- "type": "string"
- },
- "iconVer": {
- "type": "string"
- },
- "icons": {
+ "reviewCardLimit": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/SettingAppearanceIcon"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "lang": {
- "type": "string"
- },
- "lightThemes": {
+ "reviewMode": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/SettingAppearanceTheme"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "mode": {
- "type": "integer"
- },
- "modeOS": {
- "type": "boolean"
- },
- "notifications": {
+ "superBlock": {
"anyOf": [
{
- "$ref": "#/$defs/SettingNotifications"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "statusBar": {
+ "weights": {
"anyOf": [
{
- "$ref": "#/$defs/SettingStatusBar"
+ "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
},
- "SettingAppearanceIcon": {
+ "SetGraphConfRequestInput": {
"type": "object",
"properties": {
- "label": {
- "type": "string"
+ "conf": {
+ "$ref": "#/$defs/GraphConfigurationFieldsInput"
},
- "name": {
+ "type": {
"type": "string"
}
},
"required": [
- "label",
- "name"
+ "conf",
+ "type"
],
"additionalProperties": false
},
- "SettingAppearanceIconInput": {
+ "SetInlineStylesRequestInput": {
"type": "object",
"properties": {
- "label": {
+ "app": {
"anyOf": [
{
"type": "string"
@@ -34623,117 +35480,101 @@
}
]
},
- "name": {
+ "av": {
"anyOf": [
{
- "type": "string"
+ "$ref": "#/$defs/InlineStyleAVInput"
},
{
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "SettingAppearanceTheme": {
- "type": "object",
- "properties": {
- "frontends": {
+ },
+ "builtin": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/InlineStyleBuiltinInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "order": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/InlineStyleOrderInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "styles": {
"type": "array",
"items": {
- "type": "string"
+ "anyOf": [
+ {
+ "$ref": "#/$defs/InlineStyleInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
- "label": {
- "type": "string"
- },
- "name": {
- "type": "string"
+ "version": {
+ "type": "number"
}
},
"required": [
- "label",
- "name"
+ "styles",
+ "version"
],
"additionalProperties": false
},
- "SettingAppearanceThemeInput": {
+ "SetNotebookConfRequestInput": {
"type": "object",
"properties": {
- "frontends": {
+ "conf": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "$ref": "#/$defs/NotebookConfPatchInput"
},
{
"type": "null"
}
]
},
- "label": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "name": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
+ "notebook": {
+ "type": "string"
}
},
+ "required": [
+ "notebook"
+ ],
"additionalProperties": false
},
- "SettingApprovalPolicy": {
+ "SetNotebookIconRequestInput": {
"type": "object",
"properties": {
- "default": {
+ "icon": {
"type": "string"
},
- "overrides": {
- "anyOf": [
- {
- "type": "object",
- "additionalProperties": {
- "anyOf": [
- {
- "$ref": "#/$defs/SettingCapabilityApproval"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- {
- "type": "null"
- }
- ]
+ "notebook": {
+ "type": "string"
}
},
"required": [
- "default",
- "overrides"
+ "icon",
+ "notebook"
],
"additionalProperties": false
},
- "SettingApprovalPolicyInput": {
+ "SetPetalEnabledRequestInput": {
"type": "object",
"properties": {
- "default": {
+ "app": {
"anyOf": [
{
"type": "string"
@@ -34743,90 +35584,62 @@
}
]
},
- "overrides": {
- "anyOf": [
- {
- "type": "object",
- "additionalProperties": {
- "anyOf": [
- {
- "$ref": "#/$defs/SettingCapabilityApprovalInput"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- {
- "type": "null"
- }
- ]
+ "enabled": {
+ "type": "boolean"
+ },
+ "packageName": {
+ "type": "string"
}
},
+ "required": [
+ "enabled",
+ "packageName"
+ ],
"additionalProperties": false
},
- "SettingAssetOpen": {
+ "SetPetalPublishEnabledRequestInput": {
"type": "object",
"properties": {
- "altClick": {
- "type": "string"
- },
- "click": {
- "type": "string"
- },
- "ctrlClick": {
- "type": "string"
+ "enabled": {
+ "type": "boolean"
},
- "shiftClick": {
+ "packageName": {
"type": "string"
}
},
"required": [
- "altClick",
- "click",
- "ctrlClick",
- "shiftClick"
+ "enabled",
+ "packageName"
],
"additionalProperties": false
},
- "SettingAssetOpenInput": {
+ "SetPublishRequestInput": {
"type": "object",
"properties": {
- "altClick": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "click": {
+ "auth": {
"anyOf": [
{
- "type": "string"
+ "$ref": "#/$defs/SettingBasicAuthInput"
},
{
"type": "null"
}
]
},
- "ctrlClick": {
+ "enable": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "shiftClick": {
+ "port": {
"anyOf": [
{
- "type": "string"
+ "type": "integer"
},
{
"type": "null"
@@ -34836,119 +35649,89 @@
},
"additionalProperties": false
},
- "SettingBasicAuth": {
+ "SetRepoIndexRetentionDaysRequestInput": {
"type": "object",
"properties": {
- "accounts": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/SettingBasicAuthAccount"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- {
- "type": "null"
- }
- ]
- },
- "enable": {
- "type": "boolean"
+ "days": {
+ "type": "number"
}
},
"required": [
- "accounts",
- "enable"
+ "days"
],
"additionalProperties": false
},
- "SettingBasicAuthAccount": {
+ "SetRetentionIndexesDailyRequestInput": {
"type": "object",
"properties": {
- "memo": {
- "type": "string"
- },
- "password": {
- "type": "string"
- },
- "username": {
- "type": "string"
+ "indexes": {
+ "type": "number"
}
},
"required": [
- "memo",
- "password",
- "username"
+ "indexes"
],
"additionalProperties": false
},
- "SettingBasicAuthAccountInput": {
+ "SetRiffCardsDueRequestInput": {
"type": "object",
"properties": {
- "memo": {
+ "cardDues": {
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/RiffCardDueInput"
+ }
+ }
+ },
+ "required": [
+ "cardDues"
+ ],
+ "additionalProperties": false
+ },
+ "SetSearchRequestInput": {
+ "type": "object",
+ "properties": {
+ "alias": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "password": {
+ "audioBlock": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "username": {
+ "backlinkMentionAlias": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "SettingBasicAuthInput": {
- "type": "object",
- "properties": {
- "accounts": {
+ },
+ "backlinkMentionAnchor": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/SettingBasicAuthAccountInput"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "enable": {
+ "backlinkMentionDoc": {
"anyOf": [
{
"type": "boolean"
@@ -34957,579 +35740,238 @@
"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": {
+ "backlinkMentionKeywordsLimit": {
"anyOf": [
{
- "type": "string"
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "opacity": {
+ "backlinkMentionName": {
"anyOf": [
{
- "type": "number"
+ "type": "boolean"
},
{
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "SettingBodyGradientInput": {
- "type": "object",
- "properties": {
- "dark": {
+ },
+ "blockquote": {
"anyOf": [
{
- "$ref": "#/$defs/SettingBodyGradientColorInput"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "light": {
+ "callout": {
"anyOf": [
{
- "$ref": "#/$defs/SettingBodyGradientColorInput"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "mode": {
+ "caseSensitive": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"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": {
+ "codeBlock": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "provider": {
+ "databaseBlock": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "SettingBootAppearanceSelection": {
- "type": "object",
- "properties": {
- "appearance": {
- "type": "string"
},
- "provider": {
- "type": "string"
+ "document": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "schemaVersion": {
- "type": "integer"
- }
- },
- "required": [
- "appearance",
- "provider",
- "schemaVersion"
- ],
- "additionalProperties": false
- },
- "SettingBootAppearancesData": {
- "type": "object",
- "properties": {
- "appearances": {
+ "embedBlock": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/SettingBootAppearance"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "current": {
- "$ref": "#/$defs/SettingBootAppearanceCurrent"
- }
- },
- "required": [
- "appearances",
- "current"
- ],
- "additionalProperties": false
- },
- "SettingCapabilityApproval": {
- "type": "object",
- "properties": {
- "actions": {
+ "hanSensitive": {
"anyOf": [
{
- "type": "object",
- "additionalProperties": {
- "type": "string"
- }
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "default": {
- "type": "string"
- }
- },
- "required": [
- "actions",
- "default"
- ],
- "additionalProperties": false
- },
- "SettingCapabilityApprovalInput": {
- "type": "object",
- "properties": {
- "actions": {
+ "heading": {
"anyOf": [
{
- "type": "object",
- "additionalProperties": {
- "type": "string"
- }
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "default": {
+ "htmlBlock": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "SettingCapabilityPolicy": {
- "type": "object",
- "properties": {
- "default": {
- "type": "string"
},
- "overrides": {
+ "ial": {
"anyOf": [
{
- "type": "object",
- "additionalProperties": {
- "type": "string"
- }
+ "type": "boolean"
},
{
"type": "null"
}
]
- }
- },
- "required": [
- "default",
- "overrides"
- ],
- "additionalProperties": false
- },
- "SettingCapabilityPolicyInput": {
- "type": "object",
- "properties": {
- "default": {
+ },
+ "iframeBlock": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "overrides": {
+ "indexAssetPath": {
"anyOf": [
{
- "type": "object",
- "additionalProperties": {
- "type": "string"
- }
+ "type": "boolean"
},
{
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "SettingCloudUserRequestInput": {
- "type": "object",
- "properties": {
- "token": {
+ },
+ "limit": {
"anyOf": [
{
- "type": "string"
+ "type": "integer"
},
{
"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": {
+ "list": {
"anyOf": [
{
- "type": "integer"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "maxHistoryMessages": {
+ "listItem": {
"anyOf": [
{
- "type": "integer"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "modelId": {
+ "mathBlock": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "temperature": {
+ "memo": {
"anyOf": [
{
- "type": "number"
+ "type": "boolean"
},
{
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "SettingEditor": {
- "type": "object",
- "properties": {
- "allowHTMLBLockScript": {
- "type": "boolean"
- },
- "allowSVGScript": {
- "type": "boolean"
},
- "assetOpen": {
+ "name": {
"anyOf": [
{
- "$ref": "#/$defs/SettingAssetOpen"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "backlinkContainChildren": {
- "type": "boolean"
- },
- "backlinkExpandCount": {
- "type": "integer"
- },
- "backlinkHideReference": {
- "type": "boolean"
- },
- "backlinkMentionExclude": {
- "type": "string"
- },
- "backlinkShowBottom": {
- "type": "boolean"
- },
- "backlinkSort": {
+ "paragraph": {
"anyOf": [
{
- "type": "integer"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "backmentionExpandCount": {
- "type": "integer"
- },
- "backmentionSort": {
+ "superBlock": {
"anyOf": [
{
- "type": "integer"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "blockRefDynamicAnchorTextMaxLen": {
- "type": "integer"
- },
- "checkBlockRef": {
+ "tabItem": {
"anyOf": [
{
"type": "boolean"
@@ -35539,48 +35981,17 @@
}
]
},
- "codeFontFamilies": {
+ "table": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/SettingEditorFont"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "codeLigatures": {
- "type": "boolean"
- },
- "codeLineWrap": {
- "type": "boolean"
- },
- "codeSyntaxHighlightLineNum": {
- "type": "boolean"
- },
- "codeTabSpaces": {
- "type": "integer"
- },
- "cursorSurroundingLines": {
- "type": "integer"
- },
- "databaseAttrClickMode": {
- "type": "integer"
- },
- "databaseAttrHideEmpty": {
- "type": "boolean"
- },
- "databaseAttrShow": {
+ "tabs": {
"anyOf": [
{
"type": "boolean"
@@ -35590,7 +36001,7 @@
}
]
},
- "databaseAttrUseTabs": {
+ "videoBlock": {
"anyOf": [
{
"type": "boolean"
@@ -35600,92 +36011,37 @@
}
]
},
- "databaseAttrViewMode": {
- "type": "integer"
- },
- "displayBookmarkIcon": {
- "type": "boolean"
- },
- "displayNetImgMark": {
- "type": "boolean"
- },
- "dragHTMLFileToIframe": {
- "type": "boolean"
- },
- "dynamicLoadBlocks": {
- "type": "integer"
- },
- "embedBlockBreadcrumb": {
- "type": "boolean"
- },
- "emoji": {
+ "virtualRefAlias": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "floatWindowDelay": {
+ "virtualRefAnchor": {
"anyOf": [
{
- "type": "integer"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "floatWindowMode": {
- "type": "integer"
- },
- "fontFamilies": {
+ "virtualRefDoc": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/SettingEditorFont"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "fontFamily": {
- "type": "string"
- },
- "fontFamilyDisplay": {
- "type": "string"
- },
- "fontSize": {
- "type": "integer"
- },
- "fontSizeScrollZoom": {
- "type": "boolean"
- },
- "fontWeight": {
- "type": "integer"
- },
- "fullWidth": {
- "type": "boolean"
- },
- "generateHistoryInterval": {
- "type": "integer"
- },
- "hashTagSearch": {
+ "virtualRefName": {
"anyOf": [
{
"type": "boolean"
@@ -35695,265 +36051,330 @@
}
]
},
- "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": {
+ "widgetBlock": {
"anyOf": [
{
- "$ref": "#/$defs/SettingMarkdown"
+ "type": "boolean"
},
{
"type": "null"
}
]
- },
- "onlySearchForDoc": {
- "type": "boolean"
- },
- "pasteURLAutoConvert": {
- "type": "boolean"
- },
- "plantUMLServePath": {
- "type": "string"
- },
- "readOnly": {
- "type": "boolean"
- },
- "rtl": {
- "type": "boolean"
- },
- "spellcheck": {
- "type": "boolean"
- },
- "spellcheckLanguages": {
+ }
+ },
+ "additionalProperties": false
+ },
+ "SetSecretsRequestInput": {
+ "type": "object",
+ "properties": {
+ "items": {
"anyOf": [
{
"type": "array",
"items": {
- "type": "string"
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingSecretInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
{
"type": "null"
}
]
- },
- "virtualBlockRef": {
- "type": "boolean"
- },
- "virtualBlockRefExclude": {
+ }
+ },
+ "additionalProperties": false
+ },
+ "SetSnapshotMemoRequestInput": {
+ "type": "object",
+ "properties": {
+ "id": {
"type": "string"
},
- "virtualBlockRefInclude": {
+ "memo": {
"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"
+ "id",
+ "memo"
],
"additionalProperties": false
},
- "SettingEditorFont": {
+ "SetSnippetRequestInput": {
"type": "object",
"properties": {
- "displayName": {
- "type": "string"
- },
- "family": {
- "type": "string"
- },
- "weight": {
- "type": "integer"
+ "snippets": {
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/SnippetInput"
+ }
}
},
"required": [
- "displayName",
- "family",
- "weight"
+ "snippets"
],
"additionalProperties": false
},
- "SettingEditorFontInput": {
+ "SetSyncLocalRequestInput": {
"type": "object",
"properties": {
- "displayName": {
+ "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": "string"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingVariableInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
- },
- "family": {
+ }
+ },
+ "additionalProperties": false
+ },
+ "SettingAI": {
+ "type": "object",
+ "properties": {
+ "agent": {
"anyOf": [
{
- "type": "string"
+ "$ref": "#/$defs/SettingAgent"
},
{
"type": "null"
}
]
},
- "weight": {
+ "editing": {
"anyOf": [
{
- "type": "integer"
+ "$ref": "#/$defs/SettingEditing"
},
{
"type": "null"
}
]
- }
- },
- "additionalProperties": false
+ },
+ "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
},
- "SettingEmbedding": {
+ "SettingAgent": {
"type": "object",
"properties": {
- "apiKey": {
- "type": "string"
+ "approvalPolicy": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingApprovalPolicy"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "baseURL": {
- "type": "string"
+ "capabilityPolicy": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingCapabilityPolicy"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "dimensions": {
+ "confirmTimeout": {
"type": "integer"
},
- "enabled": {
- "type": "boolean"
+ "maxCompletionTokens": {
+ "type": "integer"
},
- "id": {
- "type": "string"
+ "maxRetries": {
+ "type": "integer"
},
- "name": {
+ "maxToolCallRounds": {
+ "type": "integer"
+ },
+ "modelId": {
"type": "string"
},
- "timeout": {
+ "sessionTimeout": {
+ "type": "integer"
+ },
+ "skills": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingAgentSkills"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "streamIdleTimeout": {
"type": "integer"
+ },
+ "temperature": {
+ "type": "number"
}
},
"required": [
- "apiKey",
- "baseURL",
- "dimensions",
- "enabled",
- "id",
- "name",
- "timeout"
+ "approvalPolicy",
+ "capabilityPolicy",
+ "confirmTimeout",
+ "maxCompletionTokens",
+ "maxRetries",
+ "maxToolCallRounds",
+ "modelId",
+ "sessionTimeout",
+ "skills",
+ "streamIdleTimeout",
+ "temperature"
],
"additionalProperties": false
},
- "SettingEmbeddingInput": {
+ "SettingAgentInput": {
"type": "object",
"properties": {
- "apiKey": {
+ "approvalPolicy": {
"anyOf": [
{
- "type": "string"
+ "$ref": "#/$defs/SettingApprovalPolicyInput"
},
{
"type": "null"
}
]
},
- "baseURL": {
+ "capabilityPolicy": {
"anyOf": [
{
- "type": "string"
+ "$ref": "#/$defs/SettingCapabilityPolicyInput"
},
{
"type": "null"
}
]
},
- "dimensions": {
+ "confirmTimeout": {
"anyOf": [
{
"type": "integer"
@@ -35963,27 +36384,37 @@
}
]
},
- "enabled": {
+ "maxCompletionTokens": {
"anyOf": [
{
- "type": "boolean"
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "id": {
+ "maxRetries": {
"anyOf": [
{
- "type": "string"
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "name": {
+ "maxToolCallRounds": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "modelId": {
"anyOf": [
{
"type": "string"
@@ -35993,7 +36424,27 @@
}
]
},
- "timeout": {
+ "sessionTimeout": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "skills": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingAgentSkillsInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "streamIdleTimeout": {
"anyOf": [
{
"type": "integer"
@@ -36002,83 +36453,91 @@
"type": "null"
}
]
+ },
+ "temperature": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
"additionalProperties": false
},
- "SettingEmojiRequestInput": {
+ "SettingAgentSkills": {
"type": "object",
"properties": {
- "emoji": {
- "type": "array",
- "items": {
- "type": "string"
- }
+ "userEnabled": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
"required": [
- "emoji"
+ "userEnabled"
],
"additionalProperties": false
},
- "SettingEntryVisibility": {
+ "SettingAgentSkillsInput": {
"type": "object",
"properties": {
- "active": {
- "type": "string"
- },
- "profiles": {
+ "userEnabled": {
"anyOf": [
{
"type": "array",
"items": {
- "anyOf": [
- {
- "$ref": "#/$defs/SettingEntryVisibilityProfile"
- },
- {
- "type": "null"
- }
- ]
+ "type": "string"
}
},
{
"type": "null"
}
]
- },
- "version": {
- "type": "integer"
}
},
- "required": [
- "active",
- "profiles",
- "version"
- ],
"additionalProperties": false
},
- "SettingEntryVisibilityInput": {
+ "SettingAppearance": {
"type": "object",
"properties": {
- "active": {
+ "bodyGradient": {
"anyOf": [
{
- "type": "string"
+ "$ref": "#/$defs/SettingBodyGradient"
},
{
"type": "null"
}
]
},
- "profiles": {
+ "closeButtonBehavior": {
+ "type": "integer"
+ },
+ "codeBlockThemeDark": {
+ "type": "string"
+ },
+ "codeBlockThemeLight": {
+ "type": "string"
+ },
+ "darkThemes": {
"anyOf": [
{
"type": "array",
"items": {
"anyOf": [
{
- "$ref": "#/$defs/SettingEntryVisibilityProfileInput"
+ "$ref": "#/$defs/SettingAppearanceTheme"
},
{
"type": "null"
@@ -36091,28 +36550,29 @@
}
]
},
- "version": {
+ "entryVisibility": {
"anyOf": [
{
- "type": "integer"
+ "$ref": "#/$defs/SettingEntryVisibility"
},
{
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "SettingEntryVisibilityProfile": {
- "type": "object",
- "properties": {
- "entries": {
+ },
+ "globalFontFamilies": {
"anyOf": [
{
- "type": "object",
- "additionalProperties": {
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingEditorFont"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
{
@@ -36120,23 +36580,49 @@
}
]
},
- "id": {
+ "hideStatusBar": {
+ "type": "boolean"
+ },
+ "hideToolbar": {
+ "type": "boolean"
+ },
+ "icon": {
"type": "string"
},
- "name": {
+ "iconVer": {
"type": "string"
},
- "orders": {
+ "icons": {
"anyOf": [
{
- "type": "object",
- "additionalProperties": {
+ "type": "array",
+ "items": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "$ref": "#/$defs/SettingAppearanceIcon"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "lang": {
+ "type": "string"
+ },
+ "lightThemes": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingAppearanceTheme"
},
{
"type": "null"
@@ -36148,25 +36634,145 @@
"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": [
- "entries",
- "id",
- "name",
- "orders"
+ "label",
+ "name"
],
"additionalProperties": false
},
- "SettingEntryVisibilityProfileInput": {
+ "SettingAppearanceThemeInput": {
"type": "object",
"properties": {
- "entries": {
+ "frontends": {
"anyOf": [
{
- "type": "object",
- "additionalProperties": {
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "type": "string"
}
},
{
@@ -36174,7 +36780,7 @@
}
]
},
- "id": {
+ "label": {
"anyOf": [
{
"type": "string"
@@ -36193,18 +36799,24 @@
"type": "null"
}
]
+ }
+ },
+ "additionalProperties": false
+ },
+ "SettingApprovalPolicy": {
+ "type": "object",
+ "properties": {
+ "default": {
+ "type": "string"
},
- "orders": {
+ "overrides": {
"anyOf": [
{
"type": "object",
"additionalProperties": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "$ref": "#/$defs/SettingCapabilityApproval"
},
{
"type": "null"
@@ -36218,348 +36830,175 @@
]
}
},
+ "required": [
+ "default",
+ "overrides"
+ ],
"additionalProperties": false
},
- "SettingExport": {
+ "SettingApprovalPolicyInput": {
"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"
+ "default": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "pdfWatermarkDesc": {
+ "overrides": {
+ "anyOf": [
+ {
+ "type": "object",
+ "additionalProperties": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingCapabilityApprovalInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "SettingAssetOpen": {
+ "type": "object",
+ "properties": {
+ "altClick": {
"type": "string"
},
- "pdfWatermarkStr": {
+ "click": {
"type": "string"
},
- "removeAssetsID": {
- "type": "boolean"
- },
- "tagCloseMarker": {
+ "ctrlClick": {
"type": "string"
},
- "tagOpenMarker": {
+ "shiftClick": {
"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"
+ "altClick",
+ "click",
+ "ctrlClick",
+ "shiftClick"
],
"additionalProperties": false
},
- "SettingFileTree": {
+ "SettingAssetOpenInput": {
"type": "object",
"properties": {
- "allowCreateDeeper": {
- "type": "boolean"
- },
- "alwaysSelectOpenedFile": {
- "type": "boolean"
- },
- "boxDocEnabled": {
+ "altClick": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "closeTabOnDoubleClick": {
- "type": "boolean"
- },
- "closeTabsOnStart": {
- "type": "boolean"
- },
- "createDocAtTop": {
+ "click": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"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": {
+ "ctrlClick": {
"anyOf": [
{
- "type": "integer"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "useSVGDefaultIcon": {
+ "shiftClick": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"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": {
+ "SettingBasicAuth": {
"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"
+ "accounts": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingBasicAuthAccount"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "superBlock": {
+ "enable": {
"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"
+ "accounts",
+ "enable"
],
"additionalProperties": false
},
- "SettingImageGeneration": {
+ "SettingBasicAuthAccount": {
"type": "object",
"properties": {
- "modelId": {
- "type": "string"
- },
- "outputFormat": {
+ "memo": {
"type": "string"
},
- "quality": {
+ "password": {
"type": "string"
},
- "requestTimeout": {
- "type": "integer"
- },
- "size": {
+ "username": {
"type": "string"
}
},
"required": [
- "modelId",
- "outputFormat",
- "quality",
- "requestTimeout",
- "size"
+ "memo",
+ "password",
+ "username"
],
"additionalProperties": false
},
- "SettingImageGenerationInput": {
+ "SettingBasicAuthAccountInput": {
"type": "object",
"properties": {
- "modelId": {
+ "memo": {
"anyOf": [
{
"type": "string"
@@ -36569,7 +37008,7 @@
}
]
},
- "outputFormat": {
+ "password": {
"anyOf": [
{
"type": "string"
@@ -36579,7 +37018,7 @@
}
]
},
- "quality": {
+ "username": {
"anyOf": [
{
"type": "string"
@@ -36588,21 +37027,37 @@
"type": "null"
}
]
- },
- "requestTimeout": {
+ }
+ },
+ "additionalProperties": false
+ },
+ "SettingBasicAuthInput": {
+ "type": "object",
+ "properties": {
+ "accounts": {
"anyOf": [
{
- "type": "integer"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingBasicAuthAccountInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
},
- "size": {
+ "enable": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
@@ -36612,94 +37067,75 @@
},
"additionalProperties": false
},
- "SettingKeymapRequestInput": {
+ "SettingBazaar": {
"type": "object",
"properties": {
- "data": {
- "anyOf": [
- {
- "type": "object",
- "additionalProperties": {
- "$ref": "#/$defs/JSONValue"
- }
- },
- {
- "type": "null"
- }
- ]
+ "petalDisabled": {
+ "type": "boolean"
+ },
+ "trust": {
+ "type": "boolean"
}
},
+ "required": [
+ "petalDisabled",
+ "trust"
+ ],
"additionalProperties": false
},
- "SettingLogin2faRequestInput": {
+ "SettingBodyGradient": {
"type": "object",
"properties": {
- "code": {
- "type": "string"
+ "dark": {
+ "$ref": "#/$defs/SettingBodyGradientColor"
},
- "token": {
+ "light": {
+ "$ref": "#/$defs/SettingBodyGradientColor"
+ },
+ "mode": {
"type": "string"
}
},
"required": [
- "code",
- "token"
+ "dark",
+ "light",
+ "mode"
],
"additionalProperties": false
},
- "SettingMCP": {
+ "SettingBodyGradientColor": {
"type": "object",
"properties": {
- "exposurePolicy": {
- "anyOf": [
- {
- "$ref": "#/$defs/SettingCapabilityPolicy"
- },
- {
- "type": "null"
- }
- ]
+ "color": {
+ "type": "string"
},
- "servers": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "$ref": "#/$defs/SettingMCPServer"
- }
- },
- {
- "type": "null"
- }
- ]
+ "opacity": {
+ "type": "number"
}
},
"required": [
- "exposurePolicy",
- "servers"
+ "color",
+ "opacity"
],
"additionalProperties": false
},
- "SettingMCPInput": {
+ "SettingBodyGradientColorInput": {
"type": "object",
"properties": {
- "exposurePolicy": {
+ "color": {
"anyOf": [
{
- "$ref": "#/$defs/SettingCapabilityPolicyInput"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "servers": {
+ "opacity": {
"anyOf": [
{
- "type": "array",
- "items": {
- "$ref": "#/$defs/SettingMCPServerInput"
- }
+ "type": "number"
},
{
"type": "null"
@@ -36709,123 +37145,175 @@
},
"additionalProperties": false
},
- "SettingMCPServer": {
+ "SettingBodyGradientInput": {
"type": "object",
"properties": {
- "args": {
+ "dark": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "$ref": "#/$defs/SettingBodyGradientColorInput"
},
{
"type": "null"
}
]
},
- "command": {
- "type": "string"
- },
- "disableStandaloneSSE": {
- "type": "boolean"
- },
- "enabled": {
- "type": "boolean"
- },
- "env": {
+ "light": {
"anyOf": [
{
- "type": "object",
- "additionalProperties": {
- "type": "string"
- }
+ "$ref": "#/$defs/SettingBodyGradientColorInput"
},
{
"type": "null"
}
]
},
- "headers": {
+ "mode": {
"anyOf": [
{
- "type": "object",
- "additionalProperties": {
- "type": "string"
- }
+ "type": "string"
},
{
"type": "null"
}
]
- },
- "id": {
+ }
+ },
+ "additionalProperties": false
+ },
+ "SettingBootAppearance": {
+ "type": "object",
+ "properties": {
+ "appearance": {
"type": "string"
},
- "inheritEnv": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- {
- "type": "null"
- }
- ]
+ "backgroundColor": {
+ "type": "string"
},
- "name": {
+ "displayName": {
"type": "string"
},
- "timeout": {
- "type": "integer"
- },
- "trustToolAnnotations": {
+ "enabled": {
"type": "boolean"
},
- "type": {
+ "frontends": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "layers": {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingBootAppearanceLayer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "officialUI": {
+ "$ref": "#/$defs/SettingBootAppearanceOfficialUI"
+ },
+ "provider": {
"type": "string"
},
- "url": {
+ "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": [
- "args",
- "command",
- "disableStandaloneSSE",
- "enabled",
- "env",
- "headers",
"id",
- "inheritEnv",
- "name",
- "timeout",
- "trustToolAnnotations",
- "type",
- "url"
+ "src",
+ "type"
],
"additionalProperties": false
},
- "SettingMCPServerInput": {
+ "SettingBootAppearanceOfficialUI": {
"type": "object",
"properties": {
- "args": {
+ "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": "array",
- "items": {
- "type": "string"
- }
+ "type": "string"
},
{
"type": "null"
}
]
},
- "command": {
+ "provider": {
"anyOf": [
{
"type": "string"
@@ -36834,28 +37322,93 @@
"type": "null"
}
]
+ }
+ },
+ "additionalProperties": false
+ },
+ "SettingBootAppearanceSelection": {
+ "type": "object",
+ "properties": {
+ "appearance": {
+ "type": "string"
},
- "disableStandaloneSSE": {
+ "provider": {
+ "type": "string"
+ },
+ "schemaVersion": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "appearance",
+ "provider",
+ "schemaVersion"
+ ],
+ "additionalProperties": false
+ },
+ "SettingBootAppearancesData": {
+ "type": "object",
+ "properties": {
+ "appearances": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingBootAppearance"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
},
- "enabled": {
+ "current": {
+ "$ref": "#/$defs/SettingBootAppearanceCurrent"
+ }
+ },
+ "required": [
+ "appearances",
+ "current"
+ ],
+ "additionalProperties": false
+ },
+ "SettingCapabilityApproval": {
+ "type": "object",
+ "properties": {
+ "actions": {
"anyOf": [
{
- "type": "boolean"
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "env": {
+ "default": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "actions",
+ "default"
+ ],
+ "additionalProperties": false
+ },
+ "SettingCapabilityApprovalInput": {
+ "type": "object",
+ "properties": {
+ "actions": {
"anyOf": [
{
"type": "object",
@@ -36868,7 +37421,26 @@
}
]
},
- "headers": {
+ "default": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "SettingCapabilityPolicy": {
+ "type": "object",
+ "properties": {
+ "default": {
+ "type": "string"
+ },
+ "overrides": {
"anyOf": [
{
"type": "object",
@@ -36880,8 +37452,18 @@
"type": "null"
}
]
- },
- "id": {
+ }
+ },
+ "required": [
+ "default",
+ "overrides"
+ ],
+ "additionalProperties": false
+ },
+ "SettingCapabilityPolicyInput": {
+ "type": "object",
+ "properties": {
+ "default": {
"anyOf": [
{
"type": "string"
@@ -36891,11 +37473,11 @@
}
]
},
- "inheritEnv": {
+ "overrides": {
"anyOf": [
{
- "type": "array",
- "items": {
+ "type": "object",
+ "additionalProperties": {
"type": "string"
}
},
@@ -36903,8 +37485,14 @@
"type": "null"
}
]
- },
- "name": {
+ }
+ },
+ "additionalProperties": false
+ },
+ "SettingCloudUserRequestInput": {
+ "type": "object",
+ "properties": {
+ "token": {
"anyOf": [
{
"type": "string"
@@ -36913,8 +37501,38 @@
"type": "null"
}
]
+ }
+ },
+ "additionalProperties": false
+ },
+ "SettingEditing": {
+ "type": "object",
+ "properties": {
+ "maxCompletionTokens": {
+ "type": "integer"
},
- "timeout": {
+ "maxHistoryMessages": {
+ "type": "integer"
+ },
+ "modelId": {
+ "type": "string"
+ },
+ "temperature": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "maxCompletionTokens",
+ "maxHistoryMessages",
+ "modelId",
+ "temperature"
+ ],
+ "additionalProperties": false
+ },
+ "SettingEditingInput": {
+ "type": "object",
+ "properties": {
+ "maxCompletionTokens": {
"anyOf": [
{
"type": "integer"
@@ -36924,17 +37542,17 @@
}
]
},
- "trustToolAnnotations": {
+ "maxHistoryMessages": {
"anyOf": [
{
- "type": "boolean"
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "type": {
+ "modelId": {
"anyOf": [
{
"type": "string"
@@ -36944,10 +37562,10 @@
}
]
},
- "url": {
+ "temperature": {
"anyOf": [
{
- "type": "string"
+ "type": "number"
},
{
"type": "null"
@@ -36957,106 +37575,67 @@
},
"additionalProperties": false
},
- "SettingMarkdown": {
+ "SettingEditor": {
"type": "object",
"properties": {
- "blockFullWidthTaskList": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
+ "allowHTMLBLockScript": {
+ "type": "boolean"
},
- "codeBlockMiddleDot": {
+ "allowSVGScript": {
+ "type": "boolean"
+ },
+ "assetOpen": {
"anyOf": [
{
- "type": "boolean"
+ "$ref": "#/$defs/SettingAssetOpen"
},
{
"type": "null"
}
]
},
- "inlineAsterisk": {
- "type": "boolean"
- },
- "inlineFullWidthStrikethrough": {
- "type": "boolean"
- },
- "inlineMark": {
- "type": "boolean"
- },
- "inlineMath": {
+ "backlinkContainChildren": {
"type": "boolean"
},
- "inlineStrikethrough": {
- "type": "boolean"
+ "backlinkExpandCount": {
+ "type": "integer"
},
- "inlineSub": {
+ "backlinkHideReference": {
"type": "boolean"
},
- "inlineSup": {
- "type": "boolean"
+ "backlinkMentionExclude": {
+ "type": "string"
},
- "inlineTag": {
+ "backlinkShowBottom": {
"type": "boolean"
},
- "inlineUnderscore": {
- "type": "boolean"
- }
- },
- "required": [
- "blockFullWidthTaskList",
- "codeBlockMiddleDot",
- "inlineAsterisk",
- "inlineFullWidthStrikethrough",
- "inlineMark",
- "inlineMath",
- "inlineStrikethrough",
- "inlineSub",
- "inlineSup",
- "inlineTag",
- "inlineUnderscore"
- ],
- "additionalProperties": false
- },
- "SettingMarkdownInput": {
- "type": "object",
- "properties": {
- "blockFullWidthTaskList": {
+ "backlinkSort": {
"anyOf": [
{
- "type": "boolean"
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "codeBlockMiddleDot": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
+ "backmentionExpandCount": {
+ "type": "integer"
},
- "inlineAsterisk": {
+ "backmentionSort": {
"anyOf": [
{
- "type": "boolean"
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "inlineFullWidthStrikethrough": {
+ "blockRefDynamicAnchorTextMaxLen": {
+ "type": "integer"
+ },
+ "checkBlockRef": {
"anyOf": [
{
"type": "boolean"
@@ -37066,17 +37645,48 @@
}
]
},
- "inlineMark": {
+ "codeFontFamilies": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingEditorFont"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
},
- "inlineMath": {
+ "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"
@@ -37086,7 +37696,7 @@
}
]
},
- "inlineStrikethrough": {
+ "databaseAttrUseTabs": {
"anyOf": [
{
"type": "boolean"
@@ -37096,37 +37706,92 @@
}
]
},
- "inlineSub": {
+ "databaseAttrViewMode": {
+ "type": "integer"
+ },
+ "displayBookmarkIcon": {
+ "type": "boolean"
+ },
+ "displayNetImgMark": {
+ "type": "boolean"
+ },
+ "dragHTMLFileToIframe": {
+ "type": "boolean"
+ },
+ "dynamicLoadBlocks": {
+ "type": "integer"
+ },
+ "embedBlockBreadcrumb": {
+ "type": "boolean"
+ },
+ "emoji": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "inlineSup": {
+ "floatWindowDelay": {
"anyOf": [
{
- "type": "boolean"
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "inlineTag": {
+ "floatWindowMode": {
+ "type": "integer"
+ },
+ "fontFamilies": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingEditorFont"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
},
- "inlineUnderscore": {
+ "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"
@@ -37135,70 +37800,184 @@
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "SettingModel": {
- "type": "object",
- "properties": {
- "contextLength": {
+ },
+ "headingEmbedMode": {
"type": "integer"
},
- "displayName": {
+ "headingNumber": {
+ "type": "boolean"
+ },
+ "headingNumberFormat": {
"type": "string"
},
- "enabled": {
+ "historyRetentionDays": {
+ "type": "integer"
+ },
+ "justify": {
"type": "boolean"
},
- "id": {
+ "katexMacros": {
"type": "string"
},
- "name": {
- "type": "string"
- }
- },
- "required": [
- "enabled",
- "id",
- "name"
- ],
- "additionalProperties": false
- },
- "SettingModelInput": {
- "type": "object",
- "properties": {
- "contextLength": {
+ "keepLoadedContent": {
+ "type": "boolean"
+ },
+ "listItemDotNumberClickFocus": {
+ "type": "boolean"
+ },
+ "listLogicalOutdent": {
+ "type": "boolean"
+ },
+ "markdown": {
"anyOf": [
{
- "type": "integer"
+ "$ref": "#/$defs/SettingMarkdown"
},
{
"type": "null"
}
]
},
- "displayName": {
+ "onlySearchForDoc": {
+ "type": "boolean"
+ },
+ "pasteURLAutoConvert": {
+ "type": "boolean"
+ },
+ "plantUMLServePath": {
+ "type": "string"
+ },
+ "readOnly": {
+ "type": "boolean"
+ },
+ "rtl": {
+ "type": "boolean"
+ },
+ "spellcheck": {
+ "type": "boolean"
+ },
+ "spellcheckLanguages": {
"anyOf": [
{
- "type": "string"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "enabled": {
+ "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": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "id": {
+ "family": {
"anyOf": [
{
"type": "string"
@@ -37208,10 +37987,10 @@
}
]
},
- "name": {
+ "weight": {
"anyOf": [
{
- "type": "string"
+ "type": "integer"
},
{
"type": "null"
@@ -37221,73 +38000,76 @@
},
"additionalProperties": false
},
- "SettingNotifications": {
+ "SettingEmbedding": {
"type": "object",
"properties": {
- "browserCompatibility": {
- "type": "boolean"
+ "apiKey": {
+ "type": "string"
},
- "docTreeMaxList": {
- "type": "boolean"
+ "baseURL": {
+ "type": "string"
},
- "formatPainterTip": {
- "type": "boolean"
+ "dimensions": {
+ "type": "integer"
},
- "selectAllIncompleteTip": {
+ "enabled": {
"type": "boolean"
},
- "selectAllTip": {
- "type": "boolean"
+ "id": {
+ "type": "string"
},
- "tagMaxList": {
- "type": "boolean"
+ "name": {
+ "type": "string"
},
- "workspaceNotSSD": {
- "type": "boolean"
+ "timeout": {
+ "type": "integer"
}
},
"required": [
- "browserCompatibility",
- "docTreeMaxList",
- "tagMaxList",
- "workspaceNotSSD"
+ "apiKey",
+ "baseURL",
+ "dimensions",
+ "enabled",
+ "id",
+ "name",
+ "timeout"
],
"additionalProperties": false
},
- "SettingNotificationsInput": {
+ "SettingEmbeddingInput": {
"type": "object",
"properties": {
- "browserCompatibility": {
+ "apiKey": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "docTreeMaxList": {
+ "baseURL": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "formatPainterTip": {
+ "dimensions": {
"anyOf": [
{
- "type": "boolean"
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "selectAllIncompleteTip": {
+ "enabled": {
"anyOf": [
{
"type": "boolean"
@@ -37297,30 +38079,30 @@
}
]
},
- "selectAllTip": {
+ "id": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "tagMaxList": {
+ "name": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "workspaceNotSSD": {
+ "timeout": {
"anyOf": [
{
- "type": "boolean"
+ "type": "integer"
},
{
"type": "null"
@@ -37330,15 +38112,40 @@
},
"additionalProperties": false
},
- "SettingPetalDisabledData": {
+ "SettingEmojiRequestInput": {
"type": "object",
"properties": {
- "dataChangePlugins": {
+ "emoji": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ },
+ "required": [
+ "emoji"
+ ],
+ "additionalProperties": false
+ },
+ "SettingEntryVisibility": {
+ "type": "object",
+ "properties": {
+ "active": {
+ "type": "string"
+ },
+ "profiles": {
"anyOf": [
{
"type": "array",
"items": {
- "type": "string"
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingEntryVisibilityProfile"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
{
@@ -37346,37 +38153,43 @@
}
]
},
- "globalPetalChanged": {
- "type": "boolean"
- },
- "globalPetalDisabled": {
- "type": "boolean"
- },
- "globalPetalEnabled": {
- "type": "boolean"
- },
- "globalPetalRevision": {
+ "version": {
"type": "integer"
- },
- "reloadPlugins": {
+ }
+ },
+ "required": [
+ "active",
+ "profiles",
+ "version"
+ ],
+ "additionalProperties": false
+ },
+ "SettingEntryVisibilityInput": {
+ "type": "object",
+ "properties": {
+ "active": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "type": "string"
},
{
"type": "null"
}
]
},
- "uninstallPlugins": {
+ "profiles": {
"anyOf": [
{
"type": "array",
"items": {
- "type": "string"
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingEntryVisibilityProfileInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
{
@@ -37384,13 +38197,10 @@
}
]
},
- "unloadPlugins": {
+ "version": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "type": "integer"
},
{
"type": "null"
@@ -37398,62 +38208,41 @@
]
}
},
- "required": [
- "dataChangePlugins",
- "globalPetalChanged",
- "globalPetalDisabled",
- "globalPetalEnabled",
- "globalPetalRevision",
- "reloadPlugins",
- "uninstallPlugins",
- "unloadPlugins"
- ],
- "additionalProperties": false
- },
- "SettingPetalDisabledRequestInput": {
- "type": "object",
- "properties": {
- "petalDisabled": {
- "type": "boolean"
- }
- },
- "required": [
- "petalDisabled"
- ],
"additionalProperties": false
},
- "SettingProvider": {
+ "SettingEntryVisibilityProfile": {
"type": "object",
"properties": {
- "apiKey": {
- "type": "string"
- },
- "baseURL": {
- "type": "string"
+ "entries": {
+ "anyOf": [
+ {
+ "type": "object",
+ "additionalProperties": {
+ "type": "boolean"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "displayName": {
+ "id": {
"type": "string"
},
- "enabled": {
- "type": "boolean"
- },
- "headers": {
- "type": "object",
- "additionalProperties": {
- "type": "string"
- }
- },
- "id": {
+ "name": {
"type": "string"
},
- "models": {
+ "orders": {
"anyOf": [
{
- "type": "array",
- "items": {
+ "type": "object",
+ "additionalProperties": {
"anyOf": [
{
- "$ref": "#/$defs/SettingModel"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
@@ -37465,38 +38254,33 @@
"type": "null"
}
]
- },
- "protocol": {
- "type": "string"
- },
- "requestTimeout": {
- "type": "integer"
}
},
"required": [
- "apiKey",
- "baseURL",
- "enabled",
+ "entries",
"id",
- "models",
- "requestTimeout"
+ "name",
+ "orders"
],
"additionalProperties": false
},
- "SettingProviderInput": {
+ "SettingEntryVisibilityProfileInput": {
"type": "object",
"properties": {
- "apiKey": {
+ "entries": {
"anyOf": [
{
- "type": "string"
+ "type": "object",
+ "additionalProperties": {
+ "type": "boolean"
+ }
},
{
"type": "null"
}
]
},
- "baseURL": {
+ "id": {
"anyOf": [
{
"type": "string"
@@ -37506,7 +38290,7 @@
}
]
},
- "displayName": {
+ "name": {
"anyOf": [
{
"type": "string"
@@ -37516,47 +38300,17 @@
}
]
},
- "enabled": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
- },
- "headers": {
+ "orders": {
"anyOf": [
{
"type": "object",
"additionalProperties": {
- "type": "string"
- }
- },
- {
- "type": "null"
- }
- ]
- },
- "id": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "models": {
- "anyOf": [
- {
- "type": "array",
- "items": {
"anyOf": [
{
- "$ref": "#/$defs/SettingModelInput"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
@@ -37568,144 +38322,116 @@
"type": "null"
}
]
- },
- "protocol": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "requestTimeout": {
- "anyOf": [
- {
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
}
},
"additionalProperties": false
},
- "SettingPublish": {
+ "SettingExport": {
"type": "object",
"properties": {
- "auth": {
- "anyOf": [
- {
- "$ref": "#/$defs/SettingBasicAuth"
- },
- {
- "type": "null"
- }
- ]
- },
- "enable": {
+ "addTitle": {
"type": "boolean"
},
- "port": {
+ "blockEmbedMode": {
"type": "integer"
- }
- },
- "required": [
- "auth",
- "enable",
- "port"
- ],
- "additionalProperties": false
- },
- "SettingPublishData": {
- "type": "object",
- "properties": {
- "port": {
+ },
+ "blockRefMode": {
"type": "integer"
},
- "publish": {
- "anyOf": [
- {
- "$ref": "#/$defs/SettingPublish"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "port",
- "publish"
- ],
- "additionalProperties": false
- },
- "SettingRerank": {
- "type": "object",
- "properties": {
- "apiKey": {
+ "blockRefTextLeft": {
"type": "string"
},
- "candidateCount": {
+ "blockRefTextRight": {
+ "type": "string"
+ },
+ "docxTemplate": {
+ "type": "string"
+ },
+ "fileAnnotationRefMode": {
"type": "integer"
},
- "enabled": {
+ "imageWatermarkDesc": {
+ "type": "string"
+ },
+ "imageWatermarkStr": {
+ "type": "string"
+ },
+ "includeRelatedDocs": {
"type": "boolean"
},
- "endpoint": {
+ "includeSubDocs": {
+ "type": "boolean"
+ },
+ "inlineMemo": {
+ "type": "boolean"
+ },
+ "markdownYFM": {
+ "type": "boolean"
+ },
+ "pandocBin": {
"type": "string"
},
- "id": {
+ "pandocParams": {
"type": "string"
},
- "name": {
+ "paragraphBeginningSpace": {
+ "type": "boolean"
+ },
+ "pdfFooter": {
"type": "string"
},
- "requestFormat": {
+ "pdfWatermarkDesc": {
"type": "string"
},
- "timeout": {
- "type": "integer"
+ "pdfWatermarkStr": {
+ "type": "string"
+ },
+ "removeAssetsID": {
+ "type": "boolean"
+ },
+ "tagCloseMarker": {
+ "type": "string"
+ },
+ "tagOpenMarker": {
+ "type": "string"
}
},
"required": [
- "apiKey",
- "candidateCount",
- "enabled",
- "endpoint",
- "id",
- "name",
- "requestFormat",
- "timeout"
+ "addTitle",
+ "blockEmbedMode",
+ "blockRefMode",
+ "blockRefTextLeft",
+ "blockRefTextRight",
+ "docxTemplate",
+ "fileAnnotationRefMode",
+ "imageWatermarkDesc",
+ "imageWatermarkStr",
+ "includeRelatedDocs",
+ "includeSubDocs",
+ "inlineMemo",
+ "markdownYFM",
+ "pandocBin",
+ "pandocParams",
+ "paragraphBeginningSpace",
+ "pdfFooter",
+ "pdfWatermarkDesc",
+ "pdfWatermarkStr",
+ "removeAssetsID",
+ "tagCloseMarker",
+ "tagOpenMarker"
],
"additionalProperties": false
},
- "SettingRerankInput": {
+ "SettingFileTree": {
"type": "object",
"properties": {
- "apiKey": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
+ "allowCreateDeeper": {
+ "type": "boolean"
},
- "candidateCount": {
- "anyOf": [
- {
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
+ "alwaysSelectOpenedFile": {
+ "type": "boolean"
},
- "enabled": {
+ "boxDocEnabled": {
"anyOf": [
{
"type": "boolean"
@@ -37715,105 +38441,84 @@
}
]
},
- "endpoint": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
+ "closeTabOnDoubleClick": {
+ "type": "boolean"
},
- "id": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
+ "closeTabsOnStart": {
+ "type": "boolean"
},
- "name": {
+ "createDocAtTop": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "requestFormat": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
+ "docCreateSaveBox": {
+ "type": "string"
},
- "timeout": {
- "anyOf": [
- {
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "additionalProperties": false
- },
- "SettingSearch": {
- "type": "object",
- "properties": {
- "alias": {
- "type": "boolean"
+ "docCreateSavePath": {
+ "type": "string"
},
- "audioBlock": {
- "type": "boolean"
+ "docCreateTemplatePath": {
+ "type": "string"
},
- "backlinkMentionAlias": {
+ "docIconClickExpand": {
"type": "boolean"
},
- "backlinkMentionAnchor": {
- "type": "boolean"
+ "largeFileWarningSize": {
+ "type": "integer"
},
- "backlinkMentionDoc": {
- "type": "boolean"
+ "maxListCount": {
+ "type": "integer"
},
- "backlinkMentionKeywordsLimit": {
+ "maxOpenTabCount": {
"type": "integer"
},
- "backlinkMentionName": {
+ "noSplitScreenWhenOpenTab": {
"type": "boolean"
},
- "blockquote": {
+ "openFilesUseCurrentTab": {
"type": "boolean"
},
- "callout": {
+ "parentDocClickExpand": {
"type": "boolean"
},
- "caseSensitive": {
- "type": "boolean"
+ "recentDocsMaxListCount": {
+ "type": "integer"
},
- "codeBlock": {
- "type": "boolean"
+ "refCreateSaveBox": {
+ "type": "string"
},
- "databaseBlock": {
- "type": "boolean"
+ "refCreateSavePath": {
+ "type": "string"
},
- "document": {
+ "removeDocWithoutConfirm": {
"type": "boolean"
},
- "embedBlock": {
- "type": "boolean"
+ "shorthandSaveBox": {
+ "type": "string"
},
- "hanSensitive": {
+ "shorthandSavePath": {
+ "type": "string"
+ },
+ "sort": {
+ "type": "integer"
+ },
+ "tabStartupMode": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "useSVGDefaultIcon": {
"anyOf": [
{
"type": "boolean"
@@ -37823,161 +38528,154 @@
}
]
},
- "heading": {
+ "useSingleLineSave": {
"type": "boolean"
- },
- "htmlBlock": {
+ }
+ },
+ "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"
},
- "ial": {
+ "callout": {
"type": "boolean"
},
- "iframeBlock": {
+ "deck": {
"type": "boolean"
},
- "indexAssetPath": {
+ "heading": {
"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": {
+ "mark": {
"type": "boolean"
},
- "tabs": {
- "type": "boolean"
+ "maximumInterval": {
+ "type": "integer"
},
- "videoBlock": {
- "type": "boolean"
+ "newCardLimit": {
+ "type": "integer"
},
- "virtualRefAlias": {
- "type": "boolean"
+ "requestRetention": {
+ "type": "number"
},
- "virtualRefAnchor": {
- "type": "boolean"
+ "reviewCardLimit": {
+ "type": "integer"
},
- "virtualRefDoc": {
- "type": "boolean"
+ "reviewMode": {
+ "type": "integer"
},
- "virtualRefName": {
+ "superBlock": {
"type": "boolean"
},
- "widgetBlock": {
- "type": "boolean"
+ "weights": {
+ "type": "string"
}
},
"required": [
- "alias",
- "audioBlock",
- "backlinkMentionAlias",
- "backlinkMentionAnchor",
- "backlinkMentionDoc",
- "backlinkMentionKeywordsLimit",
- "backlinkMentionName",
"blockquote",
"callout",
- "caseSensitive",
- "codeBlock",
- "databaseBlock",
- "document",
- "embedBlock",
- "hanSensitive",
+ "deck",
"heading",
- "htmlBlock",
- "ial",
- "iframeBlock",
- "indexAssetPath",
- "limit",
"list",
- "listItem",
- "mathBlock",
- "memo",
- "name",
- "paragraph",
+ "mark",
+ "maximumInterval",
+ "newCardLimit",
+ "requestRetention",
+ "reviewCardLimit",
+ "reviewMode",
"superBlock",
- "tabItem",
- "table",
- "tabs",
- "videoBlock",
- "virtualRefAlias",
- "virtualRefAnchor",
- "virtualRefDoc",
- "virtualRefName",
- "widgetBlock"
+ "weights"
],
"additionalProperties": false
},
- "SettingSecret": {
+ "SettingIconRequestInput": {
"type": "object",
"properties": {
- "allowedHosts": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- {
- "type": "null"
- }
- ]
+ "icon": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "icon"
+ ],
+ "additionalProperties": false
+ },
+ "SettingImageGeneration": {
+ "type": "object",
+ "properties": {
+ "modelId": {
+ "type": "string"
},
- "name": {
+ "outputFormat": {
"type": "string"
},
- "value": {
+ "quality": {
+ "type": "string"
+ },
+ "requestTimeout": {
+ "type": "integer"
+ },
+ "size": {
"type": "string"
}
},
"required": [
- "allowedHosts",
- "name",
- "value"
+ "modelId",
+ "outputFormat",
+ "quality",
+ "requestTimeout",
+ "size"
],
"additionalProperties": false
},
- "SettingSecretInput": {
+ "SettingImageGenerationInput": {
"type": "object",
"properties": {
- "allowedHosts": {
+ "modelId": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "type": "string"
},
{
"type": "null"
}
]
},
- "name": {
+ "outputFormat": {
"anyOf": [
{
"type": "string"
@@ -37987,7 +38685,27 @@
}
]
},
- "value": {
+ "quality": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "requestTimeout": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "size": {
"anyOf": [
{
"type": "string"
@@ -38000,22 +38718,15 @@
},
"additionalProperties": false
},
- "SettingSecrets": {
+ "SettingKeymapRequestInput": {
"type": "object",
"properties": {
- "items": {
+ "data": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/SettingSecret"
- },
- {
- "type": "null"
- }
- ]
+ "type": "object",
+ "additionalProperties": {
+ "$ref": "#/$defs/JSONValue"
}
},
{
@@ -38024,116 +38735,77 @@
]
}
},
- "required": [
- "items"
- ],
- "additionalProperties": false
- },
- "SettingSnpt": {
- "type": "object",
- "properties": {
- "enabledCSS": {
- "type": "boolean"
- },
- "enabledJS": {
- "type": "boolean"
- }
- },
- "required": [
- "enabledCSS",
- "enabledJS"
- ],
"additionalProperties": false
},
- "SettingStatusBar": {
+ "SettingLogin2faRequestInput": {
"type": "object",
"properties": {
- "msgDataSyncDisabled": {
- "type": "boolean"
- },
- "msgTaskAssetDatabaseIndexCommitDisabled": {
- "type": "boolean"
- },
- "msgTaskDatabaseIndexCommitDisabled": {
- "type": "boolean"
- },
- "msgTaskHistoryDatabaseIndexCommitDisabled": {
- "type": "boolean"
- },
- "msgTaskHistoryGenerateFileDisabled": {
- "type": "boolean"
+ "code": {
+ "type": "string"
},
- "version": {
- "type": "integer"
+ "token": {
+ "type": "string"
}
},
"required": [
- "msgDataSyncDisabled",
- "msgTaskAssetDatabaseIndexCommitDisabled",
- "msgTaskDatabaseIndexCommitDisabled",
- "msgTaskHistoryDatabaseIndexCommitDisabled",
- "msgTaskHistoryGenerateFileDisabled",
- "version"
+ "code",
+ "token"
],
"additionalProperties": false
},
- "SettingStatusBarInput": {
+ "SettingMCP": {
"type": "object",
"properties": {
- "msgDataSyncDisabled": {
+ "exposurePolicy": {
"anyOf": [
{
- "type": "boolean"
+ "$ref": "#/$defs/SettingCapabilityPolicy"
},
{
"type": "null"
}
]
},
- "msgTaskAssetDatabaseIndexCommitDisabled": {
+ "servers": {
"anyOf": [
{
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
- },
- "msgTaskDatabaseIndexCommitDisabled": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
- },
- "msgTaskHistoryDatabaseIndexCommitDisabled": {
- "anyOf": [
- {
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/SettingMCPServer"
+ }
},
{
"type": "null"
}
]
- },
- "msgTaskHistoryGenerateFileDisabled": {
+ }
+ },
+ "required": [
+ "exposurePolicy",
+ "servers"
+ ],
+ "additionalProperties": false
+ },
+ "SettingMCPInput": {
+ "type": "object",
+ "properties": {
+ "exposurePolicy": {
"anyOf": [
{
- "type": "boolean"
+ "$ref": "#/$defs/SettingCapabilityPolicyInput"
},
{
"type": "null"
}
]
},
- "version": {
+ "servers": {
"anyOf": [
{
- "type": "integer"
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/SettingMCPServerInput"
+ }
},
{
"type": "null"
@@ -38143,25 +38815,37 @@
},
"additionalProperties": false
},
- "SettingThemeRequestInput": {
+ "SettingMCPServer": {
"type": "object",
"properties": {
- "appearanceMode": {
+ "args": {
"anyOf": [
{
- "type": "string"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "modes": {
+ "command": {
+ "type": "string"
+ },
+ "disableStandaloneSSE": {
+ "type": "boolean"
+ },
+ "enabled": {
+ "type": "boolean"
+ },
+ "env": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "number"
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
}
},
{
@@ -38169,80 +38853,28 @@
}
]
},
- "theme": {
+ "headers": {
"anyOf": [
{
- "type": "string"
+ "type": "object",
+ "additionalProperties": {
+ "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": {
+ "id": {
"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": {
+ "inheritEnv": {
"anyOf": [
{
"type": "array",
"items": {
- "anyOf": [
- {
- "$ref": "#/$defs/SettingUserTitle"
- },
- {
- "type": "null"
- }
- ]
+ "type": "string"
}
},
{
@@ -38250,105 +38882,56 @@
}
]
},
- "userToken": {
- "type": "string"
- },
- "userTokenExpireTime": {
+ "name": {
"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"
+ "timeout": {
+ "type": "integer"
},
- "icon": {
- "type": "string"
+ "trustToolAnnotations": {
+ "type": "boolean"
},
- "name": {
- "type": "string"
- }
- },
- "required": [
- "desc",
- "icon",
- "name"
- ],
- "additionalProperties": false
- },
- "SettingVariable": {
- "type": "object",
- "properties": {
- "name": {
+ "type": {
"type": "string"
},
- "value": {
+ "url": {
"type": "string"
}
},
"required": [
+ "args",
+ "command",
+ "disableStandaloneSSE",
+ "enabled",
+ "env",
+ "headers",
+ "id",
+ "inheritEnv",
"name",
- "value"
+ "timeout",
+ "trustToolAnnotations",
+ "type",
+ "url"
],
"additionalProperties": false
},
- "SettingVariableInput": {
+ "SettingMCPServerInput": {
"type": "object",
"properties": {
- "name": {
+ "args": {
"anyOf": [
{
- "type": "string"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "value": {
+ "command": {
"anyOf": [
{
"type": "string"
@@ -38357,117 +38940,69 @@
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "SettingVariables": {
- "type": "object",
- "properties": {
- "items": {
+ },
+ "disableStandaloneSSE": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/SettingVariable"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "boolean"
},
{
"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"
+ "enabled": {
+ "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"
+ "env": {
+ "anyOf": [
+ {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "shorthands": {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/Shorthand"
- },
- {
- "type": "null"
+ "headers": {
+ "anyOf": [
+ {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
}
- ]
- }
- }
- },
- "required": [
- "pagination",
- "shorthands"
- ],
- "additionalProperties": false
- },
- "ShorthandPagination": {
- "type": "object",
- "properties": {
- "paginationPageCount": {
- "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "paginationPageNums": {
+ "id": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "inheritEnv": {
"anyOf": [
{
"type": "array",
"items": {
- "type": "integer"
+ "type": "string"
}
},
{
@@ -38475,88 +39010,73 @@
}
]
},
- "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"
+ "name": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "id": {
- "type": "string"
+ "timeout": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "name": {
- "type": "string"
+ "trustToolAnnotations": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
"type": {
- "type": "string"
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "url": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
- "required": [
- "content",
- "disabledInPublish",
- "enabled",
- "id",
- "name",
- "type"
- ],
"additionalProperties": false
},
- "SnippetInput": {
+ "SettingMarkdown": {
"type": "object",
"properties": {
- "content": {
- "type": "string"
+ "blockFullWidthTaskList": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "disabledInPublish": {
+ "codeBlockMiddleDot": {
"anyOf": [
{
"type": "boolean"
@@ -38566,219 +39086,156 @@
}
]
},
- "enabled": {
+ "inlineAsterisk": {
"type": "boolean"
},
- "id": {
- "type": "string"
+ "inlineFullWidthStrikethrough": {
+ "type": "boolean"
},
- "name": {
- "type": "string"
+ "inlineMark": {
+ "type": "boolean"
},
- "type": {
- "type": "string"
- }
- },
- "required": [
- "content",
- "enabled",
- "id",
- "name",
- "type"
- ],
- "additionalProperties": false
- },
- "SnippetsData": {
- "type": "object",
- "properties": {
- "snippets": {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/Snippet"
- },
- {
- "type": "null"
- }
- ]
- }
- }
- },
- "required": [
- "snippets"
- ],
- "additionalProperties": false
- },
- "SortAttributeViewKeyRequestInput": {
- "type": "object",
- "properties": {
- "avID": {
- "type": "string"
+ "inlineMath": {
+ "type": "boolean"
},
- "keyID": {
- "type": "string"
+ "inlineStrikethrough": {
+ "type": "boolean"
},
- "previousKeyID": {
- "type": "string"
+ "inlineSub": {
+ "type": "boolean"
+ },
+ "inlineSup": {
+ "type": "boolean"
+ },
+ "inlineTag": {
+ "type": "boolean"
+ },
+ "inlineUnderscore": {
+ "type": "boolean"
}
},
"required": [
- "avID",
- "keyID",
- "previousKeyID"
+ "blockFullWidthTaskList",
+ "codeBlockMiddleDot",
+ "inlineAsterisk",
+ "inlineFullWidthStrikethrough",
+ "inlineMark",
+ "inlineMath",
+ "inlineStrikethrough",
+ "inlineSub",
+ "inlineSup",
+ "inlineTag",
+ "inlineUnderscore"
],
"additionalProperties": false
},
- "SortAttributeViewViewKeyRequestInput": {
+ "SettingMarkdownInput": {
"type": "object",
"properties": {
- "avID": {
- "type": "string"
+ "blockFullWidthTaskList": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "keyID": {
- "type": "string"
+ "codeBlockMiddleDot": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "previousKeyID": {
- "type": "string"
+ "inlineAsterisk": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "viewID": {
+ "inlineFullWidthStrikethrough": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
- }
- },
- "required": [
- "avID",
- "keyID",
- "previousKeyID"
- ],
- "additionalProperties": false
- },
- "StorageKeyRequestInput": {
- "type": "object",
- "properties": {
- "key": {
- "type": "string"
- }
- },
- "required": [
- "key"
- ],
- "additionalProperties": false
- },
- "StorageKeysRequestInput": {
- "type": "object",
- "properties": {
- "keys": {
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- },
- "required": [
- "keys"
- ],
- "additionalProperties": false
- },
- "StorageRemoveKeysRequestInput": {
- "type": "object",
- "properties": {
- "app": {
+ },
+ "inlineMark": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "keys": {
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- },
- "required": [
- "keys"
- ],
- "additionalProperties": false
- },
- "StorageRemoveRequestInput": {
- "type": "object",
- "properties": {
- "app": {
+ "inlineMath": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "key": {
- "type": "string"
- }
- },
- "required": [
- "key"
- ],
- "additionalProperties": false
- },
- "StorageSetKeysRequestInput": {
- "type": "object",
- "properties": {
- "app": {
+ "inlineStrikethrough": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "keyVals": {
- "type": "object",
- "additionalProperties": {
- "$ref": "#/$defs/JSONValue"
- }
- }
- },
- "required": [
- "keyVals"
- ],
- "additionalProperties": false
- },
- "StorageSetRequestInput": {
- "type": "object",
- "properties": {
- "app": {
+ "inlineSub": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "key": {
- "type": "string"
+ "inlineSup": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "val": {
+ "inlineTag": {
"anyOf": [
{
- "$ref": "#/$defs/JSONValue"
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "inlineUnderscore": {
+ "anyOf": [
+ {
+ "type": "boolean"
},
{
"type": "null"
@@ -38786,118 +39243,81 @@
]
}
},
- "required": [
- "key"
- ],
"additionalProperties": false
},
- "SwapBlockRefRequestInput": {
+ "SettingModel": {
"type": "object",
"properties": {
- "defID": {
+ "contextLength": {
+ "type": "integer"
+ },
+ "displayName": {
"type": "string"
},
- "includeChildren": {
+ "enabled": {
"type": "boolean"
},
- "refID": {
+ "id": {
+ "type": "string"
+ },
+ "name": {
"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"
+ "enabled",
+ "id",
+ "name"
],
"additionalProperties": false
},
- "SyncInfoData": {
+ "SettingModelInput": {
"type": "object",
"properties": {
- "kernel": {
- "type": "string"
- },
- "kernels": {
+ "contextLength": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/SyncOnlineKernel"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "stat": {
- "type": "string"
+ "displayName": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "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"
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "maxConcurrentReqs": {
+ "id": {
"anyOf": [
{
- "type": "number"
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "name": {
+ "anyOf": [
+ {
+ "type": "string"
},
{
"type": "null"
@@ -38905,105 +39325,108 @@
]
}
},
- "required": [
- "enabled"
- ],
"additionalProperties": false
},
- "SyncLANStatus": {
+ "SettingNotifications": {
"type": "object",
"properties": {
- "active": {
+ "browserCompatibility": {
"type": "boolean"
},
- "connectedPeers": {
- "type": "integer"
+ "docTreeMaxList": {
+ "type": "boolean"
},
- "discoveredPeers": {
- "type": "integer"
+ "formatPainterTip": {
+ "type": "boolean"
},
- "enabled": {
+ "selectAllIncompleteTip": {
"type": "boolean"
},
- "maxConcurrentReqs": {
- "type": "integer"
- }
- },
- "required": [
- "active",
- "connectedPeers",
- "discoveredPeers",
- "enabled",
- "maxConcurrentReqs"
- ],
- "additionalProperties": false
- },
- "SyncLocal": {
- "type": "object",
- "properties": {
- "concurrentReqs": {
- "type": "integer"
+ "selectAllTip": {
+ "type": "boolean"
},
- "endpoint": {
- "type": "string"
+ "tagMaxList": {
+ "type": "boolean"
},
- "timeout": {
- "type": "integer"
+ "workspaceNotSSD": {
+ "type": "boolean"
}
},
"required": [
- "concurrentReqs",
- "endpoint",
- "timeout"
+ "browserCompatibility",
+ "docTreeMaxList",
+ "tagMaxList",
+ "workspaceNotSSD"
],
"additionalProperties": false
},
- "SyncLocalData": {
+ "SettingNotificationsInput": {
"type": "object",
"properties": {
- "local": {
+ "browserCompatibility": {
"anyOf": [
{
- "$ref": "#/$defs/SyncLocal"
+ "type": "boolean"
},
{
"type": "null"
}
]
- }
- },
- "required": [
- "local"
- ],
- "additionalProperties": false
- },
- "SyncLocalInput": {
- "type": "object",
- "properties": {
- "concurrentReqs": {
+ },
+ "docTreeMaxList": {
"anyOf": [
{
- "type": "integer"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "endpoint": {
+ "formatPainterTip": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "timeout": {
+ "selectAllIncompleteTip": {
"anyOf": [
{
- "type": "integer"
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "selectAllTip": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "tagMaxList": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "workspaceNotSSD": {
+ "anyOf": [
+ {
+ "type": "boolean"
},
{
"type": "null"
@@ -39013,159 +39436,163 @@
},
"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": {
+ "SettingPetalDisabledData": {
"type": "object",
"properties": {
- "hostname": {
- "type": "string"
- },
- "id": {
- "type": "string"
+ "dataChangePlugins": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "os": {
- "type": "string"
+ "globalPetalChanged": {
+ "type": "boolean"
},
- "ver": {
- "type": "string"
- }
- },
- "required": [
- "hostname",
- "id",
- "os",
- "ver"
- ],
- "additionalProperties": false
- },
- "SyncProviderExportData": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
+ "globalPetalDisabled": {
+ "type": "boolean"
},
- "zip": {
- "type": "string"
+ "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": [
- "name",
- "zip"
+ "dataChangePlugins",
+ "globalPetalChanged",
+ "globalPetalDisabled",
+ "globalPetalEnabled",
+ "globalPetalRevision",
+ "reloadPlugins",
+ "uninstallPlugins",
+ "unloadPlugins"
],
"additionalProperties": false
},
- "SyncProviderImportRequestInput": {
- "type": "object",
- "properties": {
- "file": {
- "type": "string",
- "format": "binary"
- }
- },
- "additionalProperties": false
- },
- "SyncProviderRequestInput": {
+ "SettingPetalDisabledRequestInput": {
"type": "object",
"properties": {
- "provider": {
- "type": "number"
+ "petalDisabled": {
+ "type": "boolean"
}
},
"required": [
- "provider"
+ "petalDisabled"
],
"additionalProperties": false
},
- "SyncS3": {
+ "SettingProvider": {
"type": "object",
"properties": {
- "accessKey": {
+ "apiKey": {
"type": "string"
},
- "bucket": {
+ "baseURL": {
"type": "string"
},
- "concurrentReqs": {
- "type": "integer"
- },
- "endpoint": {
+ "displayName": {
"type": "string"
},
- "pathStyle": {
+ "enabled": {
"type": "boolean"
},
- "region": {
- "type": "string"
+ "headers": {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ }
},
- "secretKey": {
+ "id": {
"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": {
+ "models": {
"anyOf": [
{
- "$ref": "#/$defs/SyncS3"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingModel"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
+ },
+ "protocol": {
+ "type": "string"
+ },
+ "requestTimeout": {
+ "type": "integer"
}
},
"required": [
- "s3"
+ "apiKey",
+ "baseURL",
+ "enabled",
+ "id",
+ "models",
+ "requestTimeout"
],
"additionalProperties": false
},
- "SyncS3Input": {
+ "SettingProviderInput": {
"type": "object",
"properties": {
- "accessKey": {
+ "apiKey": {
"anyOf": [
{
"type": "string"
@@ -39175,7 +39602,7 @@
}
]
},
- "bucket": {
+ "baseURL": {
"anyOf": [
{
"type": "string"
@@ -39185,37 +39612,40 @@
}
]
},
- "concurrentReqs": {
+ "displayName": {
"anyOf": [
{
- "type": "integer"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "endpoint": {
+ "enabled": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "pathStyle": {
+ "headers": {
"anyOf": [
{
- "type": "boolean"
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "region": {
+ "id": {
"anyOf": [
{
"type": "string"
@@ -39225,27 +39655,37 @@
}
]
},
- "secretKey": {
+ "models": {
"anyOf": [
{
- "type": "string"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingModelInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
},
- "skipTlsVerify": {
+ "protocol": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "timeout": {
+ "requestTimeout": {
"anyOf": [
{
"type": "integer"
@@ -39258,45 +39698,43 @@
},
"additionalProperties": false
},
- "SyncWebDAV": {
+ "SettingPublish": {
"type": "object",
"properties": {
- "concurrentReqs": {
- "type": "integer"
- },
- "endpoint": {
- "type": "string"
- },
- "password": {
- "type": "string"
+ "auth": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingBasicAuth"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "skipTlsVerify": {
+ "enable": {
"type": "boolean"
},
- "timeout": {
+ "port": {
"type": "integer"
- },
- "username": {
- "type": "string"
}
},
"required": [
- "concurrentReqs",
- "endpoint",
- "password",
- "skipTlsVerify",
- "timeout",
- "username"
+ "auth",
+ "enable",
+ "port"
],
"additionalProperties": false
},
- "SyncWebDAVData": {
+ "SettingPublishData": {
"type": "object",
"properties": {
- "webdav": {
+ "port": {
+ "type": "integer"
+ },
+ "publish": {
"anyOf": [
{
- "$ref": "#/$defs/SyncWebDAV"
+ "$ref": "#/$defs/SettingPublish"
},
{
"type": "null"
@@ -39305,24 +39743,55 @@
}
},
"required": [
- "webdav"
+ "port",
+ "publish"
],
"additionalProperties": false
},
- "SyncWebDAVInput": {
+ "SettingRerank": {
"type": "object",
"properties": {
- "concurrentReqs": {
- "anyOf": [
- {
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
+ "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"
@@ -39332,17 +39801,17 @@
}
]
},
- "password": {
+ "candidateCount": {
"anyOf": [
{
- "type": "string"
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "skipTlsVerify": {
+ "enabled": {
"anyOf": [
{
"type": "boolean"
@@ -39352,17 +39821,17 @@
}
]
},
- "timeout": {
+ "endpoint": {
"anyOf": [
{
- "type": "integer"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "username": {
+ "id": {
"anyOf": [
{
"type": "string"
@@ -39371,108 +39840,31 @@
"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": "string"
},
{
"type": "null"
}
]
},
- "n": {
+ "requestFormat": {
"anyOf": [
{
- "type": "number"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "notebook": {
+ "timeout": {
"anyOf": [
{
- "type": "string"
+ "type": "integer"
},
{
"type": "null"
@@ -39480,202 +39872,175 @@
]
}
},
- "required": [
- "id"
- ],
"additionalProperties": false
},
- "TaskListMarkerRequestInput": {
+ "SettingSearch": {
"type": "object",
"properties": {
- "id": {
- "type": "string"
+ "alias": {
+ "type": "boolean"
},
- "marker": {
- "type": "string"
- }
- },
- "required": [
- "id",
- "marker"
- ],
- "additionalProperties": false
- },
- "TemplateDocumentInfo": {
- "type": "object",
- "properties": {
- "directory": {
- "type": "string"
+ "audioBlock": {
+ "type": "boolean"
},
- "hasDatabase": {
+ "backlinkMentionAlias": {
"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": {
+ "backlinkMentionAnchor": {
"type": "boolean"
},
- "isPackage": {
+ "backlinkMentionDoc": {
"type": "boolean"
},
- "path": {
- "type": "string"
- }
- },
- "required": [
- "isDir",
- "path"
- ],
- "additionalProperties": false
- },
- "TemplateFileRequestInput": {
- "type": "object",
- "properties": {
- "action": {
- "type": "string"
+ "backlinkMentionKeywordsLimit": {
+ "type": "integer"
},
- "content": {
- "type": "string"
+ "backlinkMentionName": {
+ "type": "boolean"
},
- "path": {
- "type": "string"
+ "blockquote": {
+ "type": "boolean"
},
- "revision": {
- "type": "string"
+ "callout": {
+ "type": "boolean"
},
- "target": {
- "type": "string"
- }
- },
- "additionalProperties": false
- },
- "TemplateFileRevision": {
- "type": "object",
- "properties": {
- "revision": {
- "type": "string"
- }
- },
- "required": [
- "revision"
- ],
- "additionalProperties": false
- },
- "TemplateFileSource": {
- "type": "object",
- "properties": {
- "content": {
- "type": "string"
+ "caseSensitive": {
+ "type": "boolean"
},
- "path": {
- "type": "string"
+ "codeBlock": {
+ "type": "boolean"
},
- "revision": {
- "type": "string"
- }
- },
- "required": [
- "content",
- "revision"
- ],
- "additionalProperties": false
- },
- "TemplatePlan": {
- "type": "object",
- "properties": {
- "count": {
- "type": "integer"
+ "databaseBlock": {
+ "type": "boolean"
},
- "id": {
- "type": "string"
+ "document": {
+ "type": "boolean"
},
- "nodes": {
+ "embedBlock": {
+ "type": "boolean"
+ },
+ "hanSensitive": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/TemplatePlanNode"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "boolean"
},
{
"type": "null"
}
]
- }
- },
- "required": [
- "count",
- "id",
- "nodes"
- ],
- "additionalProperties": false
- },
- "TemplatePlanNode": {
- "type": "object",
- "properties": {
- "depth": {
+ },
+ "heading": {
+ "type": "boolean"
+ },
+ "htmlBlock": {
+ "type": "boolean"
+ },
+ "ial": {
+ "type": "boolean"
+ },
+ "iframeBlock": {
+ "type": "boolean"
+ },
+ "indexAssetPath": {
+ "type": "boolean"
+ },
+ "limit": {
"type": "integer"
},
- "hPath": {
- "type": "string"
+ "list": {
+ "type": "boolean"
},
- "id": {
- "type": "string"
+ "listItem": {
+ "type": "boolean"
},
- "parentID": {
- "type": "string"
+ "mathBlock": {
+ "type": "boolean"
},
- "title": {
- "type": "string"
+ "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": [
- "depth",
- "hPath",
- "id",
- "parentID",
- "title"
+ "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
},
- "TransferBlockRefRequestInput": {
+ "SettingSecret": {
"type": "object",
"properties": {
- "fromID": {
- "type": "string"
- },
- "refIDs": {
+ "allowedHosts": {
"anyOf": [
{
"type": "array",
@@ -39688,59 +40053,50 @@
}
]
},
- "reloadUI": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
+ "name": {
+ "type": "string"
},
- "toID": {
+ "value": {
"type": "string"
}
},
"required": [
- "fromID",
- "toID"
+ "allowedHosts",
+ "name",
+ "value"
],
"additionalProperties": false
},
- "TreeStatData": {
+ "SettingSecretInput": {
"type": "object",
"properties": {
- "containsEmbed": {
- "type": "boolean"
- },
- "embedStat": {
+ "allowedHosts": {
"anyOf": [
{
- "$ref": "#/$defs/EmbedStat"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "reqId": {
- "$ref": "#/$defs/JSONValue"
- },
- "stat": {
+ "name": {
"anyOf": [
{
- "$ref": "#/$defs/BlockStat"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "statWithEmbed": {
+ "value": {
"anyOf": [
{
- "$ref": "#/$defs/BlockStat"
+ "type": "string"
},
{
"type": "null"
@@ -39748,171 +40104,155 @@
]
}
},
- "required": [
- "reqId",
- "stat"
- ],
"additionalProperties": false
},
- "TreeStatRequestInput": {
+ "SettingSecrets": {
"type": "object",
"properties": {
- "id": {
- "type": "string"
- },
- "ids": {
+ "items": {
"anyOf": [
{
"type": "array",
"items": {
- "type": "string"
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingSecret"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
{
"type": "null"
}
]
- },
- "includeEmbed": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
- },
- "notebook": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "reqId": {
- "anyOf": [
- {
- "$ref": "#/$defs/JSONValue"
- },
- {
- "type": "null"
- }
- ]
}
},
"required": [
- "id"
+ "items"
],
"additionalProperties": false
},
- "TrimmedIDRequestInput": {
+ "SettingSnpt": {
"type": "object",
"properties": {
- "id": {
- "type": "string"
+ "enabledCSS": {
+ "type": "boolean"
+ },
+ "enabledJS": {
+ "type": "boolean"
}
},
"required": [
- "id"
+ "enabledCSS",
+ "enabledJS"
],
"additionalProperties": false
},
- "UnfoldedParentData": {
+ "SettingStatusBar": {
"type": "object",
"properties": {
- "parentID": {
- "type": "string"
+ "msgDataSyncDisabled": {
+ "type": "boolean"
+ },
+ "msgTaskAssetDatabaseIndexCommitDisabled": {
+ "type": "boolean"
+ },
+ "msgTaskDatabaseIndexCommitDisabled": {
+ "type": "boolean"
+ },
+ "msgTaskHistoryDatabaseIndexCommitDisabled": {
+ "type": "boolean"
+ },
+ "msgTaskHistoryGenerateFileDisabled": {
+ "type": "boolean"
+ },
+ "version": {
+ "type": "integer"
}
},
"required": [
- "parentID"
+ "msgDataSyncDisabled",
+ "msgTaskAssetDatabaseIndexCommitDisabled",
+ "msgTaskDatabaseIndexCommitDisabled",
+ "msgTaskHistoryDatabaseIndexCommitDisabled",
+ "msgTaskHistoryGenerateFileDisabled",
+ "version"
],
"additionalProperties": false
},
- "UninstallBazaarIconRequestInput": {
+ "SettingStatusBarInput": {
"type": "object",
"properties": {
- "keyword": {
+ "msgDataSyncDisabled": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "packageName": {
- "type": "string"
- }
- },
- "required": [
- "packageName"
- ],
- "additionalProperties": false
- },
- "UninstallBazaarPluginRequestInput": {
- "type": "object",
- "properties": {
- "frontend": {
+ "msgTaskAssetDatabaseIndexCommitDisabled": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "keyword": {
+ "msgTaskDatabaseIndexCommitDisabled": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "packageName": {
- "type": "string"
- }
- },
- "required": [
- "packageName"
- ],
- "additionalProperties": false
- },
- "UninstallBazaarTemplateRequestInput": {
- "type": "object",
- "properties": {
- "keyword": {
+ "msgTaskHistoryDatabaseIndexCommitDisabled": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "packageName": {
- "type": "string"
+ "msgTaskHistoryGenerateFileDisabled": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "version": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
- "required": [
- "packageName"
- ],
"additionalProperties": false
},
- "UninstallBazaarThemeRequestInput": {
+ "SettingThemeRequestInput": {
"type": "object",
"properties": {
- "frontend": {
+ "appearanceMode": {
"anyOf": [
{
"type": "string"
@@ -39922,29 +40262,20 @@
}
]
},
- "keyword": {
+ "modes": {
"anyOf": [
{
- "type": "string"
+ "type": "array",
+ "items": {
+ "type": "number"
+ }
},
{
"type": "null"
}
]
},
- "packageName": {
- "type": "string"
- }
- },
- "required": [
- "packageName"
- ],
- "additionalProperties": false
- },
- "UninstallBazaarWidgetRequestInput": {
- "type": "object",
- "properties": {
- "keyword": {
+ "theme": {
"anyOf": [
{
"type": "string"
@@ -39953,94 +40284,206 @@
"type": "null"
}
]
- },
- "packageName": {
- "type": "string"
}
},
- "required": [
- "packageName"
- ],
"additionalProperties": false
},
- "UnlockNotebookRequestInput": {
+ "SettingUser": {
"type": "object",
"properties": {
- "notebook": {
+ "userAvatarURL": {
"type": "string"
},
- "password": {
+ "userCreateTime": {
"type": "string"
- }
- },
- "required": [
- "notebook",
- "password"
- ],
- "additionalProperties": false
- },
- "UnzipRequestInput": {
- "type": "object",
- "properties": {
- "path": {
+ },
+ "userHomeBImgURL": {
"type": "string"
},
- "zipPath": {
+ "userId": {
"type": "string"
- }
- },
- "required": [
- "path",
- "zipPath"
- ],
- "additionalProperties": false
- },
- "UpdateBazaarPackageRequestInput": {
- "type": "object",
- "properties": {
- "frontend": {
+ },
+ "userIntro": {
"type": "string"
},
- "keyword": {
+ "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": "string"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SettingUserTitle"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
},
- "packageName": {
+ "userToken": {
"type": "string"
},
- "packageType": {
+ "userTokenExpireTime": {
"type": "string"
- }
- },
- "required": [
- "frontend",
- "packageName",
- "packageType"
+ },
+ "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
},
- "UpdateBlockRequestInput": {
+ "SettingUserTitle": {
"type": "object",
"properties": {
- "data": {
+ "desc": {
"type": "string"
},
- "dataType": {
+ "icon": {
"type": "string"
},
- "id": {
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "desc",
+ "icon",
+ "name"
+ ],
+ "additionalProperties": false
+ },
+ "SettingVariable": {
+ "type": "object",
+ "properties": {
+ "name": {
"type": "string"
},
- "lockType": {
+ "value": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "name",
+ "value"
+ ],
+ "additionalProperties": false
+ },
+ "SettingVariableInput": {
+ "type": "object",
+ "properties": {
+ "name": {
"anyOf": [
{
- "type": "boolean"
+ "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"
@@ -40049,124 +40492,285 @@
}
},
"required": [
- "data",
- "dataType",
- "id"
+ "items"
],
"additionalProperties": false
},
- "UpdateChannelRequestInput": {
+ "Shorthand": {
"type": "object",
"properties": {
- "updateChannel": {
+ "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": [
- "updateChannel"
+ "hCreated",
+ "oId",
+ "shorthandContent",
+ "shorthandDesc",
+ "shorthandFrom",
+ "shorthandMd",
+ "shorthandTitle",
+ "shorthandURL"
],
"additionalProperties": false
},
- "UpdateEmbedBlockRequestInput": {
+ "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",
- "id"
+ "disabledInPublish",
+ "enabled",
+ "id",
+ "name",
+ "type"
],
"additionalProperties": false
},
- "UpdatePinnedDocsRequestInput": {
+ "SnippetInput": {
"type": "object",
"properties": {
- "action": {
+ "content": {
"type": "string"
},
- "after": {
+ "disabledInPublish": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "enabled": {
"type": "boolean"
},
- "ids": {
- "type": "array",
- "items": {
- "type": "string"
- }
+ "id": {
+ "type": "string"
},
- "targetID": {
+ "name": {
+ "type": "string"
+ },
+ "type": {
"type": "string"
}
},
"required": [
- "action",
- "ids"
+ "content",
+ "enabled",
+ "id",
+ "name",
+ "type"
],
"additionalProperties": false
},
- "UploadAssetRequestInput": {
+ "SnippetsData": {
"type": "object",
"properties": {
- "assetsDirPath": {
- "type": "string"
- },
- "file[]": {
+ "snippets": {
"type": "array",
"items": {
- "type": "string",
- "format": "binary"
+ "anyOf": [
+ {
+ "$ref": "#/$defs/Snippet"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
- },
- "id": {
- "type": "string"
}
},
+ "required": [
+ "snippets"
+ ],
"additionalProperties": false
},
- "UploadCloudSnapshotRequestInput": {
+ "SortAttributeViewKeyRequestInput": {
"type": "object",
"properties": {
- "id": {
+ "avID": {
"type": "string"
},
- "tag": {
+ "keyID": {
+ "type": "string"
+ },
+ "previousKeyID": {
"type": "string"
}
},
"required": [
- "id",
- "tag"
+ "avID",
+ "keyID",
+ "previousKeyID"
],
"additionalProperties": false
},
- "ViewStatePatchRequestInput": {
+ "SortAttributeViewViewKeyRequestInput": {
"type": "object",
"properties": {
- "key": {
+ "avID": {
"type": "string"
},
- "removeKeys": {
+ "keyID": {
+ "type": "string"
+ },
+ "previousKeyID": {
+ "type": "string"
+ },
+ "viewID": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "type": "string"
},
{
"type": "null"
}
]
- },
- "values": {
- "type": "object",
- "additionalProperties": {
- "$ref": "#/$defs/JSONValue"
- }
+ }
+ },
+ "required": [
+ "avID",
+ "keyID",
+ "previousKeyID"
+ ],
+ "additionalProperties": false
+ },
+ "StorageKeyRequestInput": {
+ "type": "object",
+ "properties": {
+ "key": {
+ "type": "string"
}
},
"required": [
@@ -40174,10 +40778,10 @@
],
"additionalProperties": false
},
- "VirtualBlockRefRequestInput": {
+ "StorageKeysRequestInput": {
"type": "object",
"properties": {
- "keywords": {
+ "keys": {
"type": "array",
"items": {
"type": "string"
@@ -40185,228 +40789,3089 @@
}
},
"required": [
- "keywords"
+ "keys"
],
"additionalProperties": false
},
- "WPSPresentationData": {
+ "StorageRemoveKeysRequestInput": {
"type": "object",
"properties": {
- "converted": {
- "type": "boolean"
+ "app": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "dom": {
- "type": "string"
+ "keys": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
}
},
"required": [
- "converted",
- "dom"
+ "keys"
],
"additionalProperties": false
},
- "WPSPresentationRequestInput": {
+ "StorageRemoveRequestInput": {
"type": "object",
"properties": {
- "data": {
+ "app": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "key": {
"type": "string"
+ }
+ },
+ "required": [
+ "key"
+ ],
+ "additionalProperties": false
+ },
+ "StorageSetKeysRequestInput": {
+ "type": "object",
+ "properties": {
+ "app": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "text": {
+ "keyVals": {
+ "type": "object",
+ "additionalProperties": {
+ "$ref": "#/$defs/JSONValue"
+ }
+ }
+ },
+ "required": [
+ "keyVals"
+ ],
+ "additionalProperties": false
+ },
+ "StorageSetRequestInput": {
+ "type": "object",
+ "properties": {
+ "app": {
"anyOf": [
{
"type": "string"
},
- {
- "type": "null"
- }
- ]
- },
- "type": {
- "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": "CONNECT",
+ "path": "/api/network/echo",
+ "handler": "echo",
+ "body": "raw",
+ "request": {
+ "type": "string",
+ "format": "binary"
+ },
+ "response": {
+ "anyOf": [
+ {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer",
+ "enum": [
+ 0
+ ]
+ },
+ "data": {
+ "$ref": "#/$defs/NetworkEchoData"
+ },
+ "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": "CONNECT",
+ "path": "/api/network/echo/*path",
+ "handler": "echoPath",
+ "body": "raw",
+ "request": {
+ "type": "string",
+ "format": "binary"
+ },
+ "response": {
+ "anyOf": [
+ {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer",
+ "enum": [
+ 0
+ ]
+ },
+ "data": {
+ "$ref": "#/$defs/NetworkEchoData"
+ },
+ "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": "CONNECT",
+ "path": "/api/network/proxy",
+ "handler": "httpProxy",
+ "body": "raw",
+ "request": {
+ "type": "string",
+ "format": "binary"
+ },
+ "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": "proxy",
+ "proxy": {
+ "kind": "http",
+ "contentType": "application/octet-stream",
+ "upstreamStatuses": true
+ }
+ },
+ {
+ "method": "DELETE",
+ "path": "/api/network/echo",
+ "handler": "echo",
+ "body": "raw",
+ "request": {
+ "type": "string",
+ "format": "binary"
+ },
+ "response": {
+ "anyOf": [
+ {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer",
+ "enum": [
+ 0
+ ]
+ },
+ "data": {
+ "$ref": "#/$defs/NetworkEchoData"
+ },
+ "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": "DELETE",
+ "path": "/api/network/echo/*path",
+ "handler": "echoPath",
+ "body": "raw",
+ "request": {
+ "type": "string",
+ "format": "binary"
+ },
+ "response": {
+ "anyOf": [
+ {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer",
+ "enum": [
+ 0
+ ]
+ },
+ "data": {
+ "$ref": "#/$defs/NetworkEchoData"
+ },
+ "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": "DELETE",
+ "path": "/api/network/proxy",
+ "handler": "httpProxy",
+ "body": "raw",
+ "request": {
+ "type": "string",
+ "format": "binary"
+ },
+ "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": "proxy",
+ "proxy": {
+ "kind": "http",
+ "contentType": "application/octet-stream",
+ "upstreamStatuses": true
+ }
+ },
+ {
+ "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/network/echo",
+ "handler": "echo",
+ "body": "raw",
+ "request": {
+ "type": "string",
+ "format": "binary"
+ },
+ "response": {
+ "anyOf": [
+ {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer",
+ "enum": [
+ 0
+ ]
+ },
+ "data": {
+ "$ref": "#/$defs/NetworkEchoData"
+ },
+ "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/network/echo/*path",
+ "handler": "echoPath",
+ "body": "raw",
+ "request": {
+ "type": "string",
+ "format": "binary"
+ },
+ "response": {
+ "anyOf": [
+ {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer",
+ "enum": [
+ 0
+ ]
+ },
+ "data": {
+ "$ref": "#/$defs/NetworkEchoData"
+ },
+ "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/network/proxy",
+ "handler": "httpProxy",
+ "body": "raw",
+ "request": {
+ "type": "string",
+ "format": "binary"
+ },
+ "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": "proxy",
+ "proxy": {
+ "kind": "http",
+ "contentType": "application/octet-stream",
+ "upstreamStatuses": true
+ }
+ },
+ {
+ "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": "/es/network/proxy",
+ "handler": "esProxy",
+ "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": "proxy",
+ "proxy": {
+ "kind": "eventSource",
+ "contentType": "text/event-stream",
+ "upstreamStatuses": true
+ }
+ },
+ {
+ "method": "GET",
+ "path": "/ws/network/proxy",
+ "handler": "wsProxy",
+ "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
+ }
+ ]
},
- "required": [
- "data",
- "type"
- ],
- "additionalProperties": false
+ "output": "proxy",
+ "proxy": {
+ "kind": "websocket",
+ "upstreamStatuses": false,
+ "frames": [
+ "text",
+ "binary",
+ "close"
+ ]
+ }
},
- "WordCountData": {
- "type": "object",
- "properties": {
- "reqId": {
- "$ref": "#/$defs/JSONValue"
- },
- "stat": {
- "anyOf": [
- {
- "$ref": "#/$defs/BlockStat"
- },
- {
- "type": "null"
- }
- ]
- }
+ {
+ "method": "GET",
+ "path": "/ws/plugin/rpc",
+ "handler": "pluginJsonRpcWebSocket",
+ "body": "none",
+ "request": {
+ "$ref": "#/$defs/EmptyRequestInput"
},
- "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"
+ "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"
+ }
},
- {
- "type": "null"
- }
- ]
- },
- "index": {
+ "required": [
+ "code",
+ "msg",
+ "data"
+ ],
+ "additionalProperties": true
+ }
+ ]
+ },
+ "output": "websocket",
+ "websocket": {
+ "incoming": {
"anyOf": [
{
- "type": "integer"
+ "$ref": "#/$defs/PluginRPCRequestFieldsInput"
},
{
- "type": "null"
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/PluginRPCRequestFieldsInput"
+ },
+ "minItems": 1
}
]
},
- "light": {
+ "outgoing": {
"anyOf": [
{
- "$ref": "#/$defs/InlineStyleThemeInput"
+ "$ref": "#/$defs/PluginRPCSuccess"
},
{
- "type": "null"
- }
- ]
- }
- },
- "additionalProperties": false
- },
- "WorkspaceAVPaletteRequestInput": {
- "type": "object",
- "properties": {
- "app": {
- "anyOf": [
- {
- "type": "string"
+ "$ref": "#/$defs/PluginRPCFailure"
},
- {
- "type": "null"
- }
- ]
- },
- "builtinColors": {
- "anyOf": [
{
"type": "array",
"items": {
"anyOf": [
{
- "$ref": "#/$defs/WorkspaceAVBuiltinColorUpdateInput"
+ "$ref": "#/$defs/PluginRPCSuccess"
},
{
- "type": "null"
+ "$ref": "#/$defs/PluginRPCFailure"
}
]
- }
+ },
+ "minItems": 1
},
{
- "type": "null"
+ "$ref": "#/$defs/PluginRPCNotification"
}
]
},
- "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
+ "failureStatus": 404
+ }
},
- "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",
+ "path": "/ws/plugin/rpc/:name",
+ "handler": "pluginJsonRpcWebSocketByName",
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -40414,8 +43879,7 @@
"response": {
"anyOf": [
{
- "type": "string",
- "format": "binary"
+ "$ref": "#/$defs/PluginRPCFailure"
},
{
"type": "object",
@@ -40458,30 +43922,60 @@
}
]
},
- "output": "binary",
- "errorStatus": 200,
- "contentVariants": [
- {
- "status": 200,
- "contentType": "text/html"
+ "output": "websocket",
+ "websocket": {
+ "incoming": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/PluginRPCRequestFieldsInput"
+ },
+ {
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/PluginRPCRequestFieldsInput"
+ },
+ "minItems": 1
+ }
+ ]
},
- {
- "status": 400,
- "contentType": "text/html"
+ "outgoing": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/PluginRPCSuccess"
+ },
+ {
+ "$ref": "#/$defs/PluginRPCFailure"
+ },
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/PluginRPCSuccess"
+ },
+ {
+ "$ref": "#/$defs/PluginRPCFailure"
+ }
+ ]
+ },
+ "minItems": 1
+ },
+ {
+ "$ref": "#/$defs/PluginRPCNotification"
+ }
+ ]
},
- {
- "status": 403,
- "contentType": "text/plain"
- }
- ]
+ "failureStatus": 404
+ }
},
{
- "method": "GET",
- "path": "/api/plugin",
- "handler": "listLoadedPluginsGET",
- "body": "none",
+ "method": "HEAD",
+ "path": "/api/network/echo",
+ "handler": "echo",
+ "body": "raw",
"request": {
- "$ref": "#/$defs/EmptyRequestInput"
+ "type": "string",
+ "format": "binary"
},
"response": {
"anyOf": [
@@ -40495,24 +43989,7 @@
]
},
"data": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/LoadedPlugin"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- {
- "type": "null"
- }
- ]
+ "$ref": "#/$defs/NetworkEchoData"
},
"msg": {
"type": "string"
@@ -40568,12 +44045,13 @@
}
},
{
- "method": "GET",
- "path": "/api/plugin/rpc",
- "handler": "getLoadedPluginRPC",
- "body": "json",
+ "method": "HEAD",
+ "path": "/api/network/echo/*path",
+ "handler": "echoPath",
+ "body": "raw",
"request": {
- "$ref": "#/$defs/LoadedPluginRequestInput"
+ "type": "string",
+ "format": "binary"
},
"response": {
"anyOf": [
@@ -40587,14 +44065,7 @@
]
},
"data": {
- "anyOf": [
- {
- "$ref": "#/$defs/LoadedPlugin"
- },
- {
- "type": "null"
- }
- ]
+ "$ref": "#/$defs/NetworkEchoData"
},
"msg": {
"type": "string"
@@ -40613,11 +44084,7 @@
"code": {
"type": "integer",
"enum": [
- -1,
- 1,
- 2,
- 3,
- 4
+ -1
]
},
"data": {
@@ -40654,28 +44121,42 @@
}
},
{
- "method": "GET",
- "path": "/api/plugin/rpc/:name",
- "handler": "getLoadedPluginRPCByName",
- "body": "json",
+ "method": "HEAD",
+ "path": "/api/network/proxy",
+ "handler": "httpProxy",
+ "body": "raw",
"request": {
- "$ref": "#/$defs/LoadedPluginRequestInput"
+ "type": "string",
+ "format": "binary"
},
"response": {
"anyOf": [
+ {
+ "type": "string",
+ "format": "binary"
+ },
{
"type": "object",
"properties": {
"code": {
"type": "integer",
"enum": [
- 0
+ -1
]
},
"data": {
"anyOf": [
{
- "$ref": "#/$defs/LoadedPlugin"
+ "type": "object",
+ "properties": {
+ "closeTimeout": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "closeTimeout"
+ ],
+ "additionalProperties": false
},
{
"type": "null"
@@ -40691,6 +44172,49 @@
"msg",
"data"
],
+ "additionalProperties": true
+ }
+ ]
+ },
+ "output": "proxy",
+ "proxy": {
+ "kind": "http",
+ "contentType": "application/octet-stream",
+ "upstreamStatuses": true
+ }
+ },
+ {
+ "method": "OPTIONS",
+ "path": "/api/network/echo",
+ "handler": "echo",
+ "body": "raw",
+ "request": {
+ "type": "string",
+ "format": "binary"
+ },
+ "response": {
+ "anyOf": [
+ {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer",
+ "enum": [
+ 0
+ ]
+ },
+ "data": {
+ "$ref": "#/$defs/NetworkEchoData"
+ },
+ "msg": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "msg",
+ "data"
+ ],
"additionalProperties": false
},
{
@@ -40699,11 +44223,7 @@
"code": {
"type": "integer",
"enum": [
- -1,
- 1,
- 2,
- 3,
- 4
+ -1
]
},
"data": {
@@ -40740,12 +44260,13 @@
}
},
{
- "method": "GET",
- "path": "/api/system/bootProgress",
- "handler": "bootProgress",
- "body": "none",
+ "method": "OPTIONS",
+ "path": "/api/network/echo/*path",
+ "handler": "echoPath",
+ "body": "raw",
"request": {
- "$ref": "#/$defs/EmptyRequestInput"
+ "type": "string",
+ "format": "binary"
},
"response": {
"anyOf": [
@@ -40759,7 +44280,7 @@
]
},
"data": {
- "$ref": "#/$defs/BootProgressData"
+ "$ref": "#/$defs/NetworkEchoData"
},
"msg": {
"type": "string"
@@ -40815,26 +44336,90 @@
}
},
{
- "method": "GET",
- "path": "/api/system/version",
- "handler": "version",
- "body": "none",
+ "method": "OPTIONS",
+ "path": "/api/network/proxy",
+ "handler": "httpProxy",
+ "body": "raw",
"request": {
- "$ref": "#/$defs/EmptyRequestInput"
+ "type": "string",
+ "format": "binary"
},
"response": {
"anyOf": [
+ {
+ "type": "string",
+ "format": "binary"
+ },
{
"type": "object",
"properties": {
"code": {
"type": "integer",
"enum": [
- 0
+ -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": "proxy",
+ "proxy": {
+ "kind": "http",
+ "contentType": "application/octet-stream",
+ "upstreamStatuses": true
+ }
+ },
+ {
+ "method": "PATCH",
+ "path": "/api/network/echo",
+ "handler": "echo",
+ "body": "raw",
+ "request": {
+ "type": "string",
+ "format": "binary"
+ },
+ "response": {
+ "anyOf": [
+ {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer",
+ "enum": [
+ 0
+ ]
+ },
+ "data": {
+ "$ref": "#/$defs/NetworkEchoData"
},
"msg": {
"type": "string"
@@ -40890,17 +44475,38 @@
}
},
{
- "method": "GET",
- "path": "/ws/plugin/rpc",
- "handler": "pluginJsonRpcWebSocket",
- "body": "none",
+ "method": "PATCH",
+ "path": "/api/network/echo/*path",
+ "handler": "echoPath",
+ "body": "raw",
"request": {
- "$ref": "#/$defs/EmptyRequestInput"
+ "type": "string",
+ "format": "binary"
},
"response": {
"anyOf": [
{
- "$ref": "#/$defs/PluginRPCFailure"
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer",
+ "enum": [
+ 0
+ ]
+ },
+ "data": {
+ "$ref": "#/$defs/NetworkEchoData"
+ },
+ "msg": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "msg",
+ "data"
+ ],
+ "additionalProperties": false
},
{
"type": "object",
@@ -40942,65 +44548,22 @@
"additionalProperties": true
}
]
- },
- "output": "websocket",
- "websocket": {
- "incoming": {
- "anyOf": [
- {
- "$ref": "#/$defs/PluginRPCRequestFieldsInput"
- },
- {
- "type": "array",
- "items": {
- "$ref": "#/$defs/PluginRPCRequestFieldsInput"
- },
- "minItems": 1
- }
- ]
- },
- "outgoing": {
- "anyOf": [
- {
- "$ref": "#/$defs/PluginRPCSuccess"
- },
- {
- "$ref": "#/$defs/PluginRPCFailure"
- },
- {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/PluginRPCSuccess"
- },
- {
- "$ref": "#/$defs/PluginRPCFailure"
- }
- ]
- },
- "minItems": 1
- },
- {
- "$ref": "#/$defs/PluginRPCNotification"
- }
- ]
- },
- "failureStatus": 404
}
},
{
- "method": "GET",
- "path": "/ws/plugin/rpc/:name",
- "handler": "pluginJsonRpcWebSocketByName",
- "body": "none",
+ "method": "PATCH",
+ "path": "/api/network/proxy",
+ "handler": "httpProxy",
+ "body": "raw",
"request": {
- "$ref": "#/$defs/EmptyRequestInput"
+ "type": "string",
+ "format": "binary"
},
"response": {
"anyOf": [
{
- "$ref": "#/$defs/PluginRPCFailure"
+ "type": "string",
+ "format": "binary"
},
{
"type": "object",
@@ -41043,50 +44606,11 @@
}
]
},
- "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
+ "output": "proxy",
+ "proxy": {
+ "kind": "http",
+ "contentType": "application/octet-stream",
+ "upstreamStatuses": true
}
},
{
@@ -65345,16 +68869,166 @@
},
{
"type": "null"
- },
- {
- "anyOf": [
- {
- "$ref": "#/$defs/LocalGraphResult"
- },
- {
- "$ref": "#/$defs/GraphCorrelation"
- }
- ]
+ },
+ {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/LocalGraphResult"
+ },
+ {
+ "$ref": "#/$defs/GraphCorrelation"
+ }
+ ]
+ }
+ ]
+ },
+ "msg": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "msg",
+ "data"
+ ],
+ "additionalProperties": true
+ }
+ ]
+ }
+ },
+ {
+ "method": "POST",
+ "path": "/api/graph/resetGraph",
+ "handler": "resetGraph",
+ "body": "none",
+ "request": {
+ "$ref": "#/$defs/EmptyRequestInput"
+ },
+ "response": {
+ "anyOf": [
+ {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer",
+ "enum": [
+ 0
+ ]
+ },
+ "data": {
+ "$ref": "#/$defs/ResetGraphData"
+ },
+ "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/graph/resetLocalGraph",
+ "handler": "resetLocalGraph",
+ "body": "none",
+ "request": {
+ "$ref": "#/$defs/EmptyRequestInput"
+ },
+ "response": {
+ "anyOf": [
+ {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer",
+ "enum": [
+ 0
+ ]
+ },
+ "data": {
+ "$ref": "#/$defs/ResetLocalGraphData"
+ },
+ "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"
}
]
},
@@ -65374,11 +69048,11 @@
},
{
"method": "POST",
- "path": "/api/graph/resetGraph",
- "handler": "resetGraph",
- "body": "none",
+ "path": "/api/graph/setGraphConf",
+ "handler": "setGraphConf",
+ "body": "json",
"request": {
- "$ref": "#/$defs/EmptyRequestInput"
+ "$ref": "#/$defs/SetGraphConfRequestInput"
},
"response": {
"anyOf": [
@@ -65392,7 +69066,14 @@
]
},
"data": {
- "$ref": "#/$defs/ResetGraphData"
+ "anyOf": [
+ {
+ "$ref": "#/$defs/GlobalGraphConf"
+ },
+ {
+ "$ref": "#/$defs/LocalGraphConf"
+ }
+ ]
},
"msg": {
"type": "string"
@@ -65449,8 +69130,8 @@
},
{
"method": "POST",
- "path": "/api/graph/resetLocalGraph",
- "handler": "resetLocalGraph",
+ "path": "/api/history/clearWorkspaceHistory",
+ "handler": "clearWorkspaceHistory",
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -65467,7 +69148,7 @@
]
},
"data": {
- "$ref": "#/$defs/ResetLocalGraphData"
+ "type": "null"
},
"msg": {
"type": "string"
@@ -65524,11 +69205,11 @@
},
{
"method": "POST",
- "path": "/api/graph/setGraphConf",
- "handler": "setGraphConf",
+ "path": "/api/history/createAssetHistory",
+ "handler": "createAssetHistory",
"body": "json",
"request": {
- "$ref": "#/$defs/SetGraphConfRequestInput"
+ "$ref": "#/$defs/CreateAssetHistoryRequestInput"
},
"response": {
"anyOf": [
@@ -65541,13 +69222,45 @@
0
]
},
+ "data": {
+ "type": "null"
+ },
+ "msg": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "msg",
+ "data"
+ ],
+ "additionalProperties": false
+ },
+ {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer",
+ "enum": [
+ -1
+ ]
+ },
"data": {
"anyOf": [
{
- "$ref": "#/$defs/GlobalGraphConf"
+ "type": "object",
+ "properties": {
+ "closeTimeout": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "closeTimeout"
+ ],
+ "additionalProperties": false
},
{
- "$ref": "#/$defs/LocalGraphConf"
+ "type": "null"
}
]
},
@@ -65560,6 +69273,42 @@
"msg",
"data"
],
+ "additionalProperties": true
+ }
+ ]
+ }
+ },
+ {
+ "method": "POST",
+ "path": "/api/history/createDocHistory",
+ "handler": "createDocHistory",
+ "body": "json",
+ "request": {
+ "$ref": "#/$defs/CreateDocHistoryRequestInput"
+ },
+ "response": {
+ "anyOf": [
+ {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer",
+ "enum": [
+ 0
+ ]
+ },
+ "data": {
+ "type": "null"
+ },
+ "msg": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "msg",
+ "data"
+ ],
"additionalProperties": false
},
{
@@ -65606,11 +69355,11 @@
},
{
"method": "POST",
- "path": "/api/history/clearWorkspaceHistory",
- "handler": "clearWorkspaceHistory",
- "body": "none",
+ "path": "/api/history/diffDocVersions",
+ "handler": "diffDocVersions",
+ "body": "json",
"request": {
- "$ref": "#/$defs/EmptyRequestInput"
+ "$ref": "#/$defs/DiffDocVersionsRequestInput"
},
"response": {
"anyOf": [
@@ -65624,7 +69373,14 @@
]
},
"data": {
- "type": "null"
+ "anyOf": [
+ {
+ "$ref": "#/$defs/DocVersionDiffResult"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
"msg": {
"type": "string"
@@ -65681,11 +69437,11 @@
},
{
"method": "POST",
- "path": "/api/history/createAssetHistory",
- "handler": "createAssetHistory",
+ "path": "/api/history/getDocHistoryContent",
+ "handler": "getDocHistoryContent",
"body": "json",
"request": {
- "$ref": "#/$defs/CreateAssetHistoryRequestInput"
+ "$ref": "#/$defs/DocHistoryContentRequestInput"
},
"response": {
"anyOf": [
@@ -65699,7 +69455,7 @@
]
},
"data": {
- "type": "null"
+ "$ref": "#/$defs/DocHistoryContentData"
},
"msg": {
"type": "string"
@@ -65756,11 +69512,11 @@
},
{
"method": "POST",
- "path": "/api/history/createDocHistory",
- "handler": "createDocHistory",
+ "path": "/api/history/getHistoryItems",
+ "handler": "getHistoryItems",
"body": "json",
"request": {
- "$ref": "#/$defs/CreateDocHistoryRequestInput"
+ "$ref": "#/$defs/HistoryItemsRequestInput"
},
"response": {
"anyOf": [
@@ -65774,7 +69530,7 @@
]
},
"data": {
- "type": "null"
+ "$ref": "#/$defs/HistoryItemsData"
},
"msg": {
"type": "string"
@@ -65831,11 +69587,11 @@
},
{
"method": "POST",
- "path": "/api/history/diffDocVersions",
- "handler": "diffDocVersions",
- "body": "json",
+ "path": "/api/history/getNotebookHistory",
+ "handler": "getNotebookHistory",
+ "body": "none",
"request": {
- "$ref": "#/$defs/DiffDocVersionsRequestInput"
+ "$ref": "#/$defs/EmptyRequestInput"
},
"response": {
"anyOf": [
@@ -65848,10 +69604,42 @@
0
]
},
+ "data": {
+ "$ref": "#/$defs/NotebookHistoryData"
+ },
+ "msg": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "msg",
+ "data"
+ ],
+ "additionalProperties": false
+ },
+ {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer",
+ "enum": [
+ -1
+ ]
+ },
"data": {
"anyOf": [
{
- "$ref": "#/$defs/DocVersionDiffResult"
+ "type": "object",
+ "properties": {
+ "closeTimeout": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "closeTimeout"
+ ],
+ "additionalProperties": false
},
{
"type": "null"
@@ -65867,6 +69655,42 @@
"msg",
"data"
],
+ "additionalProperties": true
+ }
+ ]
+ }
+ },
+ {
+ "method": "POST",
+ "path": "/api/history/reindexHistory",
+ "handler": "reindexHistory",
+ "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
},
{
@@ -65913,11 +69737,11 @@
},
{
"method": "POST",
- "path": "/api/history/getDocHistoryContent",
- "handler": "getDocHistoryContent",
+ "path": "/api/history/rollbackAssetsHistory",
+ "handler": "rollbackAssetsHistory",
"body": "json",
"request": {
- "$ref": "#/$defs/DocHistoryContentRequestInput"
+ "$ref": "#/$defs/HistoryPathRequestInput"
},
"response": {
"anyOf": [
@@ -65931,7 +69755,7 @@
]
},
"data": {
- "$ref": "#/$defs/DocHistoryContentData"
+ "type": "null"
},
"msg": {
"type": "string"
@@ -65988,11 +69812,11 @@
},
{
"method": "POST",
- "path": "/api/history/getHistoryItems",
- "handler": "getHistoryItems",
+ "path": "/api/history/rollbackAttributeViewHistory",
+ "handler": "rollbackAttributeViewHistory",
"body": "json",
"request": {
- "$ref": "#/$defs/HistoryItemsRequestInput"
+ "$ref": "#/$defs/HistoryPathRequestInput"
},
"response": {
"anyOf": [
@@ -66006,7 +69830,7 @@
]
},
"data": {
- "$ref": "#/$defs/HistoryItemsData"
+ "type": "null"
},
"msg": {
"type": "string"
@@ -66063,11 +69887,11 @@
},
{
"method": "POST",
- "path": "/api/history/getNotebookHistory",
- "handler": "getNotebookHistory",
- "body": "none",
+ "path": "/api/history/rollbackDocHistory",
+ "handler": "rollbackDocHistory",
+ "body": "json",
"request": {
- "$ref": "#/$defs/EmptyRequestInput"
+ "$ref": "#/$defs/HistoryPathRequestInput"
},
"response": {
"anyOf": [
@@ -66081,7 +69905,7 @@
]
},
"data": {
- "$ref": "#/$defs/NotebookHistoryData"
+ "type": "null"
},
"msg": {
"type": "string"
@@ -66138,11 +69962,11 @@
},
{
"method": "POST",
- "path": "/api/history/reindexHistory",
- "handler": "reindexHistory",
- "body": "none",
+ "path": "/api/history/rollbackNotebookHistory",
+ "handler": "rollbackNotebookHistory",
+ "body": "json",
"request": {
- "$ref": "#/$defs/EmptyRequestInput"
+ "$ref": "#/$defs/HistoryPathRequestInput"
},
"response": {
"anyOf": [
@@ -66213,11 +70037,11 @@
},
{
"method": "POST",
- "path": "/api/history/rollbackAssetsHistory",
- "handler": "rollbackAssetsHistory",
+ "path": "/api/history/searchHistory",
+ "handler": "searchHistory",
"body": "json",
"request": {
- "$ref": "#/$defs/HistoryPathRequestInput"
+ "$ref": "#/$defs/SearchHistoryRequestInput"
},
"response": {
"anyOf": [
@@ -66231,7 +70055,7 @@
]
},
"data": {
- "type": "null"
+ "$ref": "#/$defs/SearchHistoryData"
},
"msg": {
"type": "string"
@@ -66288,11 +70112,11 @@
},
{
"method": "POST",
- "path": "/api/history/rollbackAttributeViewHistory",
- "handler": "rollbackAttributeViewHistory",
+ "path": "/api/import/cancelImportSY",
+ "handler": "cancelImportSY",
"body": "json",
"request": {
- "$ref": "#/$defs/HistoryPathRequestInput"
+ "$ref": "#/$defs/ImportTokenRequestInput"
},
"response": {
"anyOf": [
@@ -66363,11 +70187,11 @@
},
{
"method": "POST",
- "path": "/api/history/rollbackDocHistory",
- "handler": "rollbackDocHistory",
+ "path": "/api/import/cancelObsidianVaultTask",
+ "handler": "cancelObsidianVaultTask",
"body": "json",
"request": {
- "$ref": "#/$defs/HistoryPathRequestInput"
+ "$ref": "#/$defs/ObsidianTaskRequestInput"
},
"response": {
"anyOf": [
@@ -66381,7 +70205,14 @@
]
},
"data": {
- "type": "null"
+ "anyOf": [
+ {
+ "$ref": "#/$defs/ObsidianVaultTask"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
"msg": {
"type": "string"
@@ -66419,6 +70250,16 @@
},
{
"type": "null"
+ },
+ {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/ObsidianVaultTask"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
]
},
@@ -66438,11 +70279,11 @@
},
{
"method": "POST",
- "path": "/api/history/rollbackNotebookHistory",
- "handler": "rollbackNotebookHistory",
+ "path": "/api/import/continueImportSY",
+ "handler": "continueImportSY",
"body": "json",
"request": {
- "$ref": "#/$defs/HistoryPathRequestInput"
+ "$ref": "#/$defs/ContinueImportSYRequestInput"
},
"response": {
"anyOf": [
@@ -66456,7 +70297,7 @@
]
},
"data": {
- "type": "null"
+ "$ref": "#/$defs/ImportDocumentData"
},
"msg": {
"type": "string"
@@ -66513,11 +70354,11 @@
},
{
"method": "POST",
- "path": "/api/history/searchHistory",
- "handler": "searchHistory",
+ "path": "/api/import/getObsidianVaultTask",
+ "handler": "getObsidianVaultTask",
"body": "json",
"request": {
- "$ref": "#/$defs/SearchHistoryRequestInput"
+ "$ref": "#/$defs/ObsidianTaskRequestInput"
},
"response": {
"anyOf": [
@@ -66531,7 +70372,14 @@
]
},
"data": {
- "$ref": "#/$defs/SearchHistoryData"
+ "anyOf": [
+ {
+ "$ref": "#/$defs/ObsidianVaultTask"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
"msg": {
"type": "string"
@@ -66588,11 +70436,11 @@
},
{
"method": "POST",
- "path": "/api/import/cancelImportSY",
- "handler": "cancelImportSY",
- "body": "json",
+ "path": "/api/import/importData",
+ "handler": "importData",
+ "body": "multipart",
"request": {
- "$ref": "#/$defs/ImportTokenRequestInput"
+ "$ref": "#/$defs/ImportDataRequestInput"
},
"response": {
"anyOf": [
@@ -66663,11 +70511,11 @@
},
{
"method": "POST",
- "path": "/api/import/cancelObsidianVaultTask",
- "handler": "cancelObsidianVaultTask",
- "body": "json",
+ "path": "/api/import/importSY",
+ "handler": "importSY",
+ "body": "multipart",
"request": {
- "$ref": "#/$defs/ObsidianTaskRequestInput"
+ "$ref": "#/$defs/ImportSYRequestInput"
},
"response": {
"anyOf": [
@@ -66681,14 +70529,7 @@
]
},
"data": {
- "anyOf": [
- {
- "$ref": "#/$defs/ObsidianVaultTask"
- },
- {
- "type": "null"
- }
- ]
+ "type": "null"
},
"msg": {
"type": "string"
@@ -66726,16 +70567,6 @@
},
{
"type": "null"
- },
- {
- "anyOf": [
- {
- "$ref": "#/$defs/ObsidianVaultTask"
- },
- {
- "type": "null"
- }
- ]
}
]
},
@@ -66755,11 +70586,11 @@
},
{
"method": "POST",
- "path": "/api/import/continueImportSY",
- "handler": "continueImportSY",
- "body": "json",
+ "path": "/api/import/importSYAuto",
+ "handler": "importSYAuto",
+ "body": "multipart",
"request": {
- "$ref": "#/$defs/ContinueImportSYRequestInput"
+ "$ref": "#/$defs/ImportSYRequestInput"
},
"response": {
"anyOf": [
@@ -66773,7 +70604,17 @@
]
},
"data": {
- "$ref": "#/$defs/ImportDocumentData"
+ "anyOf": [
+ {
+ "$ref": "#/$defs/ImportAutoDocument"
+ },
+ {
+ "$ref": "#/$defs/ImportAutoNotebook"
+ },
+ {
+ "$ref": "#/$defs/ImportAutoNotebooks"
+ }
+ ]
},
"msg": {
"type": "string"
@@ -66811,6 +70652,19 @@
},
{
"type": "null"
+ },
+ {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/ImportAutoDocument"
+ },
+ {
+ "$ref": "#/$defs/ImportAutoNotebook"
+ },
+ {
+ "$ref": "#/$defs/ImportAutoNotebooks"
+ }
+ ]
}
]
},
@@ -66830,11 +70684,11 @@
},
{
"method": "POST",
- "path": "/api/import/getObsidianVaultTask",
- "handler": "getObsidianVaultTask",
- "body": "json",
+ "path": "/api/import/importSYNotebook",
+ "handler": "importSYNotebook",
+ "body": "multipart",
"request": {
- "$ref": "#/$defs/ObsidianTaskRequestInput"
+ "$ref": "#/$defs/ImportDataRequestInput"
},
"response": {
"anyOf": [
@@ -66850,10 +70704,10 @@
"data": {
"anyOf": [
{
- "$ref": "#/$defs/ObsidianVaultTask"
+ "$ref": "#/$defs/ImportedNotebook"
},
{
- "type": "null"
+ "$ref": "#/$defs/ImportedNotebooks"
}
]
},
@@ -66912,11 +70766,11 @@
},
{
"method": "POST",
- "path": "/api/import/importData",
- "handler": "importData",
- "body": "multipart",
+ "path": "/api/import/importStdMd",
+ "handler": "importStdMd",
+ "body": "json",
"request": {
- "$ref": "#/$defs/ImportDataRequestInput"
+ "$ref": "#/$defs/ImportMarkdownRequestInput"
},
"response": {
"anyOf": [
@@ -66987,11 +70841,11 @@
},
{
"method": "POST",
- "path": "/api/import/importSY",
- "handler": "importSY",
+ "path": "/api/import/importZipMd",
+ "handler": "importZipMd",
"body": "multipart",
"request": {
- "$ref": "#/$defs/ImportSYRequestInput"
+ "$ref": "#/$defs/ImportZipMarkdownRequestInput"
},
"response": {
"anyOf": [
@@ -67062,11 +70916,11 @@
},
{
"method": "POST",
- "path": "/api/import/importSYAuto",
- "handler": "importSYAuto",
- "body": "multipart",
+ "path": "/api/import/startObsidianVaultAnalysis",
+ "handler": "startObsidianVaultAnalysis",
+ "body": "json",
"request": {
- "$ref": "#/$defs/ImportSYRequestInput"
+ "$ref": "#/$defs/ObsidianAnalysisRequestInput"
},
"response": {
"anyOf": [
@@ -67082,13 +70936,10 @@
"data": {
"anyOf": [
{
- "$ref": "#/$defs/ImportAutoDocument"
- },
- {
- "$ref": "#/$defs/ImportAutoNotebook"
+ "$ref": "#/$defs/ObsidianVaultTask"
},
{
- "$ref": "#/$defs/ImportAutoNotebooks"
+ "type": "null"
}
]
},
@@ -67128,19 +70979,6 @@
},
{
"type": "null"
- },
- {
- "anyOf": [
- {
- "$ref": "#/$defs/ImportAutoDocument"
- },
- {
- "$ref": "#/$defs/ImportAutoNotebook"
- },
- {
- "$ref": "#/$defs/ImportAutoNotebooks"
- }
- ]
}
]
},
@@ -67160,11 +70998,11 @@
},
{
"method": "POST",
- "path": "/api/import/importSYNotebook",
- "handler": "importSYNotebook",
- "body": "multipart",
+ "path": "/api/import/startObsidianVaultImport",
+ "handler": "startObsidianVaultImport",
+ "body": "json",
"request": {
- "$ref": "#/$defs/ImportDataRequestInput"
+ "$ref": "#/$defs/ObsidianImportRequestInput"
},
"response": {
"anyOf": [
@@ -67180,10 +71018,10 @@
"data": {
"anyOf": [
{
- "$ref": "#/$defs/ImportedNotebook"
+ "$ref": "#/$defs/ObsidianVaultTask"
},
{
- "$ref": "#/$defs/ImportedNotebooks"
+ "type": "null"
}
]
},
@@ -67242,11 +71080,11 @@
},
{
"method": "POST",
- "path": "/api/import/importStdMd",
- "handler": "importStdMd",
+ "path": "/api/inbox/getShorthand",
+ "handler": "getShorthand",
"body": "json",
"request": {
- "$ref": "#/$defs/ImportMarkdownRequestInput"
+ "$ref": "#/$defs/TrimmedIDRequestInput"
},
"response": {
"anyOf": [
@@ -67260,7 +71098,14 @@
]
},
"data": {
- "type": "null"
+ "anyOf": [
+ {
+ "$ref": "#/$defs/Shorthand"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
"msg": {
"type": "string"
@@ -67279,7 +71124,8 @@
"code": {
"type": "integer",
"enum": [
- -1
+ -1,
+ 1
]
},
"data": {
@@ -67317,11 +71163,11 @@
},
{
"method": "POST",
- "path": "/api/import/importZipMd",
- "handler": "importZipMd",
- "body": "multipart",
+ "path": "/api/inbox/getShorthands",
+ "handler": "getShorthands",
+ "body": "json",
"request": {
- "$ref": "#/$defs/ImportZipMarkdownRequestInput"
+ "$ref": "#/$defs/ShorthandsRequestInput"
},
"response": {
"anyOf": [
@@ -67335,7 +71181,14 @@
]
},
"data": {
- "type": "null"
+ "anyOf": [
+ {
+ "$ref": "#/$defs/ShorthandsData"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
"msg": {
"type": "string"
@@ -67354,7 +71207,8 @@
"code": {
"type": "integer",
"enum": [
- -1
+ -1,
+ 1
]
},
"data": {
@@ -67392,11 +71246,11 @@
},
{
"method": "POST",
- "path": "/api/import/startObsidianVaultAnalysis",
- "handler": "startObsidianVaultAnalysis",
+ "path": "/api/inbox/removeShorthands",
+ "handler": "removeShorthands",
"body": "json",
"request": {
- "$ref": "#/$defs/ObsidianAnalysisRequestInput"
+ "$ref": "#/$defs/RemoveShorthandsRequestInput"
},
"response": {
"anyOf": [
@@ -67410,14 +71264,7 @@
]
},
"data": {
- "anyOf": [
- {
- "$ref": "#/$defs/ObsidianVaultTask"
- },
- {
- "type": "null"
- }
- ]
+ "type": "null"
},
"msg": {
"type": "string"
@@ -67436,7 +71283,8 @@
"code": {
"type": "integer",
"enum": [
- -1
+ -1,
+ 1
]
},
"data": {
@@ -67474,11 +71322,11 @@
},
{
"method": "POST",
- "path": "/api/import/startObsidianVaultImport",
- "handler": "startObsidianVaultImport",
+ "path": "/api/lute/copyStdMarkdown",
+ "handler": "copyStdMarkdown",
"body": "json",
"request": {
- "$ref": "#/$defs/ObsidianImportRequestInput"
+ "$ref": "#/$defs/CopyStdMarkdownRequestInput"
},
"response": {
"anyOf": [
@@ -67492,14 +71340,7 @@
]
},
"data": {
- "anyOf": [
- {
- "$ref": "#/$defs/ObsidianVaultTask"
- },
- {
- "type": "null"
- }
- ]
+ "type": "string"
},
"msg": {
"type": "string"
@@ -67556,11 +71397,11 @@
},
{
"method": "POST",
- "path": "/api/inbox/getShorthand",
- "handler": "getShorthand",
+ "path": "/api/lute/html2BlockDOM",
+ "handler": "html2BlockDOM",
"body": "json",
"request": {
- "$ref": "#/$defs/TrimmedIDRequestInput"
+ "$ref": "#/$defs/HTMLClipboardRequestInput"
},
"response": {
"anyOf": [
@@ -67576,10 +71417,10 @@
"data": {
"anyOf": [
{
- "$ref": "#/$defs/Shorthand"
+ "type": "string"
},
{
- "type": "null"
+ "$ref": "#/$defs/HTMLClipboardPreflight"
}
]
},
@@ -67600,8 +71441,7 @@
"code": {
"type": "integer",
"enum": [
- -1,
- 1
+ -1
]
},
"data": {
@@ -67639,11 +71479,11 @@
},
{
"method": "POST",
- "path": "/api/inbox/getShorthands",
- "handler": "getShorthands",
+ "path": "/api/lute/md2html",
+ "handler": "md2HTML",
"body": "json",
"request": {
- "$ref": "#/$defs/ShorthandsRequestInput"
+ "$ref": "#/$defs/MarkdownHTMLRequestInput"
},
"response": {
"anyOf": [
@@ -67657,14 +71497,7 @@
]
},
"data": {
- "anyOf": [
- {
- "$ref": "#/$defs/ShorthandsData"
- },
- {
- "type": "null"
- }
- ]
+ "$ref": "#/$defs/HTMLData"
},
"msg": {
"type": "string"
@@ -67683,8 +71516,7 @@
"code": {
"type": "integer",
"enum": [
- -1,
- 1
+ -1
]
},
"data": {
@@ -67722,11 +71554,11 @@
},
{
"method": "POST",
- "path": "/api/inbox/removeShorthands",
- "handler": "removeShorthands",
+ "path": "/api/lute/spinBlockDOM",
+ "handler": "spinBlockDOM",
"body": "json",
"request": {
- "$ref": "#/$defs/RemoveShorthandsRequestInput"
+ "$ref": "#/$defs/DOMTextRequestInput"
},
"response": {
"anyOf": [
@@ -67740,7 +71572,7 @@
]
},
"data": {
- "type": "null"
+ "$ref": "#/$defs/DOMData"
},
"msg": {
"type": "string"
@@ -67760,7 +71592,7 @@
"type": "integer",
"enum": [
-1,
- 1
+ 413
]
},
"data": {
@@ -67798,11 +71630,11 @@
},
{
"method": "POST",
- "path": "/api/lute/copyStdMarkdown",
- "handler": "copyStdMarkdown",
+ "path": "/api/lute/wpsPresentation2BlockDOM",
+ "handler": "wpsPresentation2BlockDOM",
"body": "json",
"request": {
- "$ref": "#/$defs/CopyStdMarkdownRequestInput"
+ "$ref": "#/$defs/WPSPresentationRequestInput"
},
"response": {
"anyOf": [
@@ -67816,7 +71648,7 @@
]
},
"data": {
- "type": "string"
+ "$ref": "#/$defs/WPSPresentationData"
},
"msg": {
"type": "string"
@@ -67854,6 +71686,9 @@
},
{
"type": "null"
+ },
+ {
+ "$ref": "#/$defs/WPSPresentationData"
}
]
},
@@ -67873,11 +71708,12 @@
},
{
"method": "POST",
- "path": "/api/lute/html2BlockDOM",
- "handler": "html2BlockDOM",
- "body": "json",
+ "path": "/api/network/echo",
+ "handler": "echo",
+ "body": "raw",
"request": {
- "$ref": "#/$defs/HTMLClipboardRequestInput"
+ "type": "string",
+ "format": "binary"
},
"response": {
"anyOf": [
@@ -67891,14 +71727,7 @@
]
},
"data": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "$ref": "#/$defs/HTMLClipboardPreflight"
- }
- ]
+ "$ref": "#/$defs/NetworkEchoData"
},
"msg": {
"type": "string"
@@ -67955,11 +71784,12 @@
},
{
"method": "POST",
- "path": "/api/lute/md2html",
- "handler": "md2HTML",
- "body": "json",
+ "path": "/api/network/echo/*path",
+ "handler": "echoPath",
+ "body": "raw",
"request": {
- "$ref": "#/$defs/MarkdownHTMLRequestInput"
+ "type": "string",
+ "format": "binary"
},
"response": {
"anyOf": [
@@ -67973,7 +71803,7 @@
]
},
"data": {
- "$ref": "#/$defs/HTMLData"
+ "$ref": "#/$defs/NetworkEchoData"
},
"msg": {
"type": "string"
@@ -68030,11 +71860,11 @@
},
{
"method": "POST",
- "path": "/api/lute/spinBlockDOM",
- "handler": "spinBlockDOM",
+ "path": "/api/network/forwardProxy",
+ "handler": "forwardProxy",
"body": "json",
"request": {
- "$ref": "#/$defs/DOMTextRequestInput"
+ "$ref": "#/$defs/NetworkForwardRequestInput"
},
"response": {
"anyOf": [
@@ -68048,7 +71878,7 @@
]
},
"data": {
- "$ref": "#/$defs/DOMData"
+ "$ref": "#/$defs/NetworkForwardData"
},
"msg": {
"type": "string"
@@ -68068,7 +71898,15 @@
"type": "integer",
"enum": [
-1,
- 413
+ 1,
+ 2,
+ 3,
+ 4,
+ 5,
+ 6,
+ 7,
+ 8,
+ 10
]
},
"data": {
@@ -68106,36 +71944,18 @@
},
{
"method": "POST",
- "path": "/api/lute/wpsPresentation2BlockDOM",
- "handler": "wpsPresentation2BlockDOM",
- "body": "json",
+ "path": "/api/network/proxy",
+ "handler": "httpProxy",
+ "body": "raw",
"request": {
- "$ref": "#/$defs/WPSPresentationRequestInput"
+ "type": "string",
+ "format": "binary"
},
"response": {
"anyOf": [
{
- "type": "object",
- "properties": {
- "code": {
- "type": "integer",
- "enum": [
- 0
- ]
- },
- "data": {
- "$ref": "#/$defs/WPSPresentationData"
- },
- "msg": {
- "type": "string"
- }
- },
- "required": [
- "code",
- "msg",
- "data"
- ],
- "additionalProperties": false
+ "type": "string",
+ "format": "binary"
},
{
"type": "object",
@@ -68162,9 +71982,6 @@
},
{
"type": "null"
- },
- {
- "$ref": "#/$defs/WPSPresentationData"
}
]
},
@@ -68180,6 +71997,12 @@
"additionalProperties": true
}
]
+ },
+ "output": "proxy",
+ "proxy": {
+ "kind": "http",
+ "contentType": "application/octet-stream",
+ "upstreamStatuses": true
}
},
{
@@ -82618,8 +86441,158 @@
},
{
"method": "POST",
- "path": "/api/system/currentTime",
- "handler": "currentTime",
+ "path": "/api/system/currentTime",
+ "handler": "currentTime",
+ "body": "none",
+ "request": {
+ "$ref": "#/$defs/EmptyRequestInput"
+ },
+ "response": {
+ "anyOf": [
+ {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer",
+ "enum": [
+ 0
+ ]
+ },
+ "data": {
+ "type": "integer"
+ },
+ "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/system/getNetwork",
+ "handler": "getNetwork",
+ "body": "none",
+ "request": {
+ "$ref": "#/$defs/EmptyRequestInput"
+ },
+ "response": {
+ "anyOf": [
+ {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer",
+ "enum": [
+ 0
+ ]
+ },
+ "data": {
+ "$ref": "#/$defs/NetworkData"
+ },
+ "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/system/getWorkspaceInfo",
+ "handler": "getWorkspaceInfo",
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -82636,7 +86609,7 @@
]
},
"data": {
- "type": "integer"
+ "$ref": "#/$defs/WorkspaceInfoData"
},
"msg": {
"type": "string"
@@ -82693,8 +86666,8 @@
},
{
"method": "POST",
- "path": "/api/system/getNetwork",
- "handler": "getNetwork",
+ "path": "/api/system/ignoreAddMicrosoftDefenderExclusion",
+ "handler": "ignoreAddMicrosoftDefenderExclusion",
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -82711,7 +86684,7 @@
]
},
"data": {
- "$ref": "#/$defs/NetworkData"
+ "type": "null"
},
"msg": {
"type": "string"
@@ -82768,8 +86741,8 @@
},
{
"method": "POST",
- "path": "/api/system/getWorkspaceInfo",
- "handler": "getWorkspaceInfo",
+ "path": "/api/system/rebuildDataIndex",
+ "handler": "rebuildDataIndex",
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -82786,7 +86759,7 @@
]
},
"data": {
- "$ref": "#/$defs/WorkspaceInfoData"
+ "type": "null"
},
"msg": {
"type": "string"
@@ -82843,8 +86816,8 @@
},
{
"method": "POST",
- "path": "/api/system/ignoreAddMicrosoftDefenderExclusion",
- "handler": "ignoreAddMicrosoftDefenderExclusion",
+ "path": "/api/system/reloadUI",
+ "handler": "deprecatedReloadUI",
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -82918,11 +86891,11 @@
},
{
"method": "POST",
- "path": "/api/system/rebuildDataIndex",
- "handler": "rebuildDataIndex",
- "body": "none",
+ "path": "/api/system/setAutoLaunch",
+ "handler": "setAutoLaunch",
+ "body": "json",
"request": {
- "$ref": "#/$defs/EmptyRequestInput"
+ "$ref": "#/$defs/AutoLaunchRequestInput"
},
"response": {
"anyOf": [
@@ -82993,11 +86966,11 @@
},
{
"method": "POST",
- "path": "/api/system/reloadUI",
- "handler": "deprecatedReloadUI",
- "body": "none",
+ "path": "/api/system/setDownloadInstallPkg",
+ "handler": "setDownloadInstallPkg",
+ "body": "json",
"request": {
- "$ref": "#/$defs/EmptyRequestInput"
+ "$ref": "#/$defs/DownloadInstallPkgRequestInput"
},
"response": {
"anyOf": [
@@ -83068,11 +87041,11 @@
},
{
"method": "POST",
- "path": "/api/system/setAutoLaunch",
- "handler": "setAutoLaunch",
+ "path": "/api/system/setFollowSystemLockScreen",
+ "handler": "setFollowSystemLockScreen",
"body": "json",
"request": {
- "$ref": "#/$defs/AutoLaunchRequestInput"
+ "$ref": "#/$defs/LockScreenRequestInput"
},
"response": {
"anyOf": [
@@ -83143,11 +87116,11 @@
},
{
"method": "POST",
- "path": "/api/system/setDownloadInstallPkg",
- "handler": "setDownloadInstallPkg",
+ "path": "/api/system/setNetworkProxy",
+ "handler": "setNetworkProxy",
"body": "json",
"request": {
- "$ref": "#/$defs/DownloadInstallPkgRequestInput"
+ "$ref": "#/$defs/NetworkProxyInput"
},
"response": {
"anyOf": [
@@ -83218,11 +87191,11 @@
},
{
"method": "POST",
- "path": "/api/system/setFollowSystemLockScreen",
- "handler": "setFollowSystemLockScreen",
+ "path": "/api/system/setNetworkServe",
+ "handler": "setNetworkServe",
"body": "json",
"request": {
- "$ref": "#/$defs/LockScreenRequestInput"
+ "$ref": "#/$defs/NetworkServeRequestInput"
},
"response": {
"anyOf": [
@@ -83293,11 +87266,11 @@
},
{
"method": "POST",
- "path": "/api/system/setNetworkProxy",
- "handler": "setNetworkProxy",
+ "path": "/api/system/setNetworkServeTLS",
+ "handler": "setNetworkServeTLS",
"body": "json",
"request": {
- "$ref": "#/$defs/NetworkProxyInput"
+ "$ref": "#/$defs/NetworkServeTLSRequestInput"
},
"response": {
"anyOf": [
@@ -83368,11 +87341,11 @@
},
{
"method": "POST",
- "path": "/api/system/setNetworkServe",
- "handler": "setNetworkServe",
+ "path": "/api/system/setUpdateChannel",
+ "handler": "setUpdateChannel",
"body": "json",
"request": {
- "$ref": "#/$defs/NetworkServeRequestInput"
+ "$ref": "#/$defs/UpdateChannelRequestInput"
},
"response": {
"anyOf": [
@@ -83443,11 +87416,11 @@
},
{
"method": "POST",
- "path": "/api/system/setNetworkServeTLS",
- "handler": "setNetworkServeTLS",
- "body": "json",
+ "path": "/api/system/vacuumDataIndex",
+ "handler": "vacuumDataIndex",
+ "body": "none",
"request": {
- "$ref": "#/$defs/NetworkServeTLSRequestInput"
+ "$ref": "#/$defs/EmptyRequestInput"
},
"response": {
"anyOf": [
@@ -83518,11 +87491,11 @@
},
{
"method": "POST",
- "path": "/api/system/setUpdateChannel",
- "handler": "setUpdateChannel",
- "body": "json",
+ "path": "/api/system/version",
+ "handler": "version",
+ "body": "none",
"request": {
- "$ref": "#/$defs/UpdateChannelRequestInput"
+ "$ref": "#/$defs/EmptyRequestInput"
},
"response": {
"anyOf": [
@@ -83536,7 +87509,7 @@
]
},
"data": {
- "type": "null"
+ "type": "string"
},
"msg": {
"type": "string"
@@ -83593,11 +87566,11 @@
},
{
"method": "POST",
- "path": "/api/system/vacuumDataIndex",
- "handler": "vacuumDataIndex",
- "body": "none",
+ "path": "/api/tag/getTag",
+ "handler": "getTag",
+ "body": "json",
"request": {
- "$ref": "#/$defs/EmptyRequestInput"
+ "$ref": "#/$defs/GetTagRequestInput"
},
"response": {
"anyOf": [
@@ -83611,7 +87584,24 @@
]
},
"data": {
- "type": "null"
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/TagData"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
"msg": {
"type": "string"
@@ -83668,11 +87658,11 @@
},
{
"method": "POST",
- "path": "/api/system/version",
- "handler": "version",
- "body": "none",
+ "path": "/api/tag/removeTag",
+ "handler": "removeTag",
+ "body": "json",
"request": {
- "$ref": "#/$defs/EmptyRequestInput"
+ "$ref": "#/$defs/RemoveTagRequestInput"
},
"response": {
"anyOf": [
@@ -83686,7 +87676,7 @@
]
},
"data": {
- "type": "string"
+ "type": "null"
},
"msg": {
"type": "string"
@@ -83743,11 +87733,11 @@
},
{
"method": "POST",
- "path": "/api/tag/getTag",
- "handler": "getTag",
+ "path": "/api/tag/renameTag",
+ "handler": "renameTag",
"body": "json",
"request": {
- "$ref": "#/$defs/GetTagRequestInput"
+ "$ref": "#/$defs/RenameTagRequestInput"
},
"response": {
"anyOf": [
@@ -83760,20 +87750,42 @@
0
]
},
+ "data": {
+ "type": "null"
+ },
+ "msg": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "msg",
+ "data"
+ ],
+ "additionalProperties": false
+ },
+ {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer",
+ "enum": [
+ -1
+ ]
+ },
"data": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/TagData"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "object",
+ "properties": {
+ "closeTimeout": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "closeTimeout"
+ ],
+ "additionalProperties": false
},
{
"type": "null"
@@ -83789,6 +87801,42 @@
"msg",
"data"
],
+ "additionalProperties": true
+ }
+ ]
+ }
+ },
+ {
+ "method": "POST",
+ "path": "/api/template/docSaveAsTemplate",
+ "handler": "docSaveAsTemplate",
+ "body": "json",
+ "request": {
+ "$ref": "#/$defs/SaveTemplateRequestInput"
+ },
+ "response": {
+ "anyOf": [
+ {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer",
+ "enum": [
+ 0
+ ]
+ },
+ "data": {
+ "type": "null"
+ },
+ "msg": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "msg",
+ "data"
+ ],
"additionalProperties": false
},
{
@@ -83797,7 +87845,8 @@
"code": {
"type": "integer",
"enum": [
- -1
+ -1,
+ 1
]
},
"data": {
@@ -83835,11 +87884,11 @@
},
{
"method": "POST",
- "path": "/api/tag/removeTag",
- "handler": "removeTag",
+ "path": "/api/template/getDocSaveAsTemplateInfo",
+ "handler": "getDocSaveAsTemplateInfo",
"body": "json",
"request": {
- "$ref": "#/$defs/RemoveTagRequestInput"
+ "$ref": "#/$defs/TemplateDocumentRequestInput"
},
"response": {
"anyOf": [
@@ -83853,7 +87902,7 @@
]
},
"data": {
- "type": "null"
+ "$ref": "#/$defs/TemplateDocumentInfo"
},
"msg": {
"type": "string"
@@ -83910,11 +87959,11 @@
},
{
"method": "POST",
- "path": "/api/tag/renameTag",
- "handler": "renameTag",
- "body": "json",
+ "path": "/api/template/manage",
+ "handler": "manageTemplateFiles",
+ "body": "structJSON",
"request": {
- "$ref": "#/$defs/RenameTagRequestInput"
+ "$ref": "#/$defs/TemplateFileRequestInput"
},
"response": {
"anyOf": [
@@ -83928,7 +87977,23 @@
]
},
"data": {
- "type": "null"
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/TemplateFileEntry"
+ }
+ },
+ {
+ "$ref": "#/$defs/TemplateFileSource"
+ },
+ {
+ "$ref": "#/$defs/TemplateFileRevision"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
"msg": {
"type": "string"
@@ -83985,11 +88050,11 @@
},
{
"method": "POST",
- "path": "/api/template/docSaveAsTemplate",
- "handler": "docSaveAsTemplate",
+ "path": "/api/template/render",
+ "handler": "renderTemplate",
"body": "json",
"request": {
- "$ref": "#/$defs/SaveTemplateRequestInput"
+ "$ref": "#/$defs/RenderTemplateRequestInput"
},
"response": {
"anyOf": [
@@ -84003,7 +88068,7 @@
]
},
"data": {
- "type": "null"
+ "$ref": "#/$defs/RenderTemplateData"
},
"msg": {
"type": "string"
@@ -84022,8 +88087,7 @@
"code": {
"type": "integer",
"enum": [
- -1,
- 1
+ -1
]
},
"data": {
@@ -84061,11 +88125,11 @@
},
{
"method": "POST",
- "path": "/api/template/getDocSaveAsTemplateInfo",
- "handler": "getDocSaveAsTemplateInfo",
+ "path": "/api/template/renderSprig",
+ "handler": "renderSprig",
"body": "json",
"request": {
- "$ref": "#/$defs/TemplateDocumentRequestInput"
+ "$ref": "#/$defs/RenderSprigRequestInput"
},
"response": {
"anyOf": [
@@ -84079,7 +88143,7 @@
]
},
"data": {
- "$ref": "#/$defs/TemplateDocumentInfo"
+ "type": "string"
},
"msg": {
"type": "string"
@@ -84136,11 +88200,11 @@
},
{
"method": "POST",
- "path": "/api/template/manage",
- "handler": "manageTemplateFiles",
- "body": "structJSON",
+ "path": "/api/ui/reloadAttributeView",
+ "handler": "reloadAttributeView",
+ "body": "json",
"request": {
- "$ref": "#/$defs/TemplateFileRequestInput"
+ "$ref": "#/$defs/BlockIDRequestInput"
},
"response": {
"anyOf": [
@@ -84153,19 +88217,42 @@
0
]
},
+ "data": {
+ "type": "null"
+ },
+ "msg": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "msg",
+ "data"
+ ],
+ "additionalProperties": false
+ },
+ {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer",
+ "enum": [
+ -1
+ ]
+ },
"data": {
"anyOf": [
{
- "type": "array",
- "items": {
- "$ref": "#/$defs/TemplateFileEntry"
- }
- },
- {
- "$ref": "#/$defs/TemplateFileSource"
- },
- {
- "$ref": "#/$defs/TemplateFileRevision"
+ "type": "object",
+ "properties": {
+ "closeTimeout": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "closeTimeout"
+ ],
+ "additionalProperties": false
},
{
"type": "null"
@@ -84181,6 +88268,42 @@
"msg",
"data"
],
+ "additionalProperties": true
+ }
+ ]
+ }
+ },
+ {
+ "method": "POST",
+ "path": "/api/ui/reloadFiletree",
+ "handler": "reloadFiletree",
+ "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
},
{
@@ -84227,11 +88350,11 @@
},
{
"method": "POST",
- "path": "/api/template/render",
- "handler": "renderTemplate",
- "body": "json",
+ "path": "/api/ui/reloadIcon",
+ "handler": "reloadIcon",
+ "body": "none",
"request": {
- "$ref": "#/$defs/RenderTemplateRequestInput"
+ "$ref": "#/$defs/EmptyRequestInput"
},
"response": {
"anyOf": [
@@ -84245,7 +88368,7 @@
]
},
"data": {
- "$ref": "#/$defs/RenderTemplateData"
+ "type": "null"
},
"msg": {
"type": "string"
@@ -84302,11 +88425,11 @@
},
{
"method": "POST",
- "path": "/api/template/renderSprig",
- "handler": "renderSprig",
+ "path": "/api/ui/reloadProtyle",
+ "handler": "reloadProtyle",
"body": "json",
"request": {
- "$ref": "#/$defs/RenderSprigRequestInput"
+ "$ref": "#/$defs/BlockIDRequestInput"
},
"response": {
"anyOf": [
@@ -84320,7 +88443,7 @@
]
},
"data": {
- "type": "string"
+ "type": "null"
},
"msg": {
"type": "string"
@@ -84377,11 +88500,11 @@
},
{
"method": "POST",
- "path": "/api/ui/reloadAttributeView",
- "handler": "reloadAttributeView",
- "body": "json",
+ "path": "/api/ui/reloadTag",
+ "handler": "reloadTag",
+ "body": "none",
"request": {
- "$ref": "#/$defs/BlockIDRequestInput"
+ "$ref": "#/$defs/EmptyRequestInput"
},
"response": {
"anyOf": [
@@ -84452,8 +88575,8 @@
},
{
"method": "POST",
- "path": "/api/ui/reloadFiletree",
- "handler": "reloadFiletree",
+ "path": "/api/ui/reloadTheme",
+ "handler": "reloadTheme",
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -84527,8 +88650,8 @@
},
{
"method": "POST",
- "path": "/api/ui/reloadIcon",
- "handler": "reloadIcon",
+ "path": "/api/ui/reloadUI",
+ "handler": "reloadUI",
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -84601,12 +88724,13 @@
}
},
{
- "method": "POST",
- "path": "/api/ui/reloadProtyle",
- "handler": "reloadProtyle",
- "body": "json",
+ "method": "PUT",
+ "path": "/api/network/echo",
+ "handler": "echo",
+ "body": "raw",
"request": {
- "$ref": "#/$defs/BlockIDRequestInput"
+ "type": "string",
+ "format": "binary"
},
"response": {
"anyOf": [
@@ -84620,7 +88744,7 @@
]
},
"data": {
- "type": "null"
+ "$ref": "#/$defs/NetworkEchoData"
},
"msg": {
"type": "string"
@@ -84676,12 +88800,13 @@
}
},
{
- "method": "POST",
- "path": "/api/ui/reloadTag",
- "handler": "reloadTag",
- "body": "none",
+ "method": "PUT",
+ "path": "/api/network/echo/*path",
+ "handler": "echoPath",
+ "body": "raw",
"request": {
- "$ref": "#/$defs/EmptyRequestInput"
+ "type": "string",
+ "format": "binary"
},
"response": {
"anyOf": [
@@ -84695,7 +88820,7 @@
]
},
"data": {
- "type": "null"
+ "$ref": "#/$defs/NetworkEchoData"
},
"msg": {
"type": "string"
@@ -84751,12 +88876,76 @@
}
},
{
- "method": "POST",
- "path": "/api/ui/reloadTheme",
- "handler": "reloadTheme",
- "body": "none",
+ "method": "PUT",
+ "path": "/api/network/proxy",
+ "handler": "httpProxy",
+ "body": "raw",
"request": {
- "$ref": "#/$defs/EmptyRequestInput"
+ "type": "string",
+ "format": "binary"
+ },
+ "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": "proxy",
+ "proxy": {
+ "kind": "http",
+ "contentType": "application/octet-stream",
+ "upstreamStatuses": true
+ }
+ },
+ {
+ "method": "TRACE",
+ "path": "/api/network/echo",
+ "handler": "echo",
+ "body": "raw",
+ "request": {
+ "type": "string",
+ "format": "binary"
},
"response": {
"anyOf": [
@@ -84770,7 +88959,7 @@
]
},
"data": {
- "type": "null"
+ "$ref": "#/$defs/NetworkEchoData"
},
"msg": {
"type": "string"
@@ -84826,12 +89015,13 @@
}
},
{
- "method": "POST",
- "path": "/api/ui/reloadUI",
- "handler": "reloadUI",
- "body": "none",
+ "method": "TRACE",
+ "path": "/api/network/echo/*path",
+ "handler": "echoPath",
+ "body": "raw",
"request": {
- "$ref": "#/$defs/EmptyRequestInput"
+ "type": "string",
+ "format": "binary"
},
"response": {
"anyOf": [
@@ -84845,7 +89035,7 @@
]
},
"data": {
- "type": "null"
+ "$ref": "#/$defs/NetworkEchoData"
},
"msg": {
"type": "string"
@@ -84899,6 +89089,69 @@
}
]
}
+ },
+ {
+ "method": "TRACE",
+ "path": "/api/network/proxy",
+ "handler": "httpProxy",
+ "body": "raw",
+ "request": {
+ "type": "string",
+ "format": "binary"
+ },
+ "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": "proxy",
+ "proxy": {
+ "kind": "http",
+ "contentType": "application/octet-stream",
+ "upstreamStatuses": true
+ }
}
]
}