Skip to content

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

:recycle: Derive grouped route authorization from contracts https://github.com/siyuan-note/siyuan/issues/20292

Daniel729f76fcf01c
diff --git a/app/src/types/api/index.d.ts b/app/src/types/api/index.d.ts
index d610af00e3..fb414501c9 100644
--- a/app/src/types/api/index.d.ts
+++ b/app/src/types/api/index.d.ts
@@ -2472,6 +2472,8 @@ export interface APIGETRoutes {
request: EmptyRequestInput;
response: Blob | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["public"];
output: "binary";
contentVariants: [{"status":200,"contentType":"application/json"},{"status":400,"contentType":"application/json"},{"status":401,"contentType":"application/json"},{"status":404,"contentType":"application/json"},{"status":429,"contentType":"application/json"},{"status":500,"contentType":"application/json"}];
};
@@ -2479,6 +2481,8 @@ export interface APIGETRoutes {
request: EmptyRequestInput;
response: Blob | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["public"];
output: "binary";
contentVariants: [{"status":200,"contentType":"application/json"},{"status":400,"contentType":"application/json"},{"status":401,"contentType":"application/json"},{"status":404,"contentType":"application/json"},{"status":429,"contentType":"application/json"},{"status":500,"contentType":"application/json"}];
};
@@ -2486,6 +2490,8 @@ export interface APIGETRoutes {
request: EmptyRequestInput;
response: Blob | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["public"];
output: "binary";
contentVariants: [{"status":200,"contentType":"application/json"},{"status":400,"contentType":"application/json"},{"status":401,"contentType":"application/json"},{"status":404,"contentType":"application/json"},{"status":429,"contentType":"application/json"},{"status":500,"contentType":"application/json"}];
};
@@ -2493,6 +2499,8 @@ export interface APIGETRoutes {
request: EmptyRequestInput;
response: Blob | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["public"];
output: "binary";
contentVariants: [{"status":200,"contentType":"text/html"},{"status":400,"contentType":"text/html"},{"status":403,"contentType":"text/plain"}];
};
@@ -2500,6 +2508,8 @@ export interface APIGETRoutes {
request: DynamicIconRequestInput;
response: Blob | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated"];
output: "binary";
emptyResponseStatuses: [500];
contentVariants: [{"status":200,"contentType":"image/svg+xml"}];
@@ -2508,16 +2518,22 @@ export interface APIGETRoutes {
request: Blob;
response: { "code": 0; "data": NetworkEchoData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "raw";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/network/echo/*path": {
request: Blob;
response: { "code": 0; "data": NetworkEchoData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "raw";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/network/proxy": {
request: Blob;
response: Blob | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "raw";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
output: "proxy";
proxy: {"kind":"http","contentType":"application/octet-stream","upstreamStatuses":true};
};
@@ -2525,26 +2541,36 @@ export interface APIGETRoutes {
request: EmptyRequestInput;
response: { "code": 0; "data": Array<LoadedPlugin | null> | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated"];
};
"/api/plugin/rpc": {
request: LoadedPluginRequestInput;
response: { "code": 0; "data": LoadedPlugin | null; "msg": string; } | { "code": -1 | 1 | 2 | 3 | 4; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated"];
};
"/api/plugin/rpc/:name": {
request: LoadedPluginRequestInput;
response: { "code": 0; "data": LoadedPlugin | null; "msg": string; } | { "code": -1 | 1 | 2 | 3 | 4; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated"];
};
"/api/system/bootProgress": {
request: EmptyRequestInput;
response: { "code": 0; "data": BootProgressData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["public"];
};
"/api/system/bootProgressSSE": {
request: EmptyRequestInput;
response: string | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["public"];
output: "sse";
sse: { events: { "": BootProgressData; }; };
};
@@ -2552,12 +2578,16 @@ export interface APIGETRoutes {
request: EmptyRequestInput;
response: { "code": 0; "data": SettingBootAppearance | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["public"];
emptyResponseStatuses: [403];
};
"/api/system/getCaptcha": {
request: EmptyRequestInput;
response: Blob | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["public"];
output: "binary";
emptyResponseStatuses: [500];
contentVariants: [{"status":200,"contentType":"image/png"}];
@@ -2566,6 +2596,8 @@ export interface APIGETRoutes {
request: SystemOIDCCallbackRequestInput;
response: Blob | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["public"];
output: "binary";
contentVariants: [{"status":200,"contentType":"text/html"}];
};
@@ -2573,11 +2605,15 @@ export interface APIGETRoutes {
request: EmptyRequestInput;
response: { "code": 0; "data": string; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["public"];
};
"/es/broadcast/subscribe": {
request: EmptyRequestInput;
response: string | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
output: "sse";
sse: { raw: {"eventNames":"dynamic","dataEncoding":"raw","id":true,"retry":true}; };
};
@@ -2585,6 +2621,8 @@ export interface APIGETRoutes {
request: EmptyRequestInput;
response: Blob | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
output: "proxy";
proxy: {"kind":"eventSource","contentType":"text/event-stream","upstreamStatuses":true};
};
@@ -2592,6 +2630,8 @@ export interface APIGETRoutes {
request: EmptyRequestInput;
response: Blob | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["public"];
output: "binary";
contentVariants: [{"status":200,"contentType":"text/html"},{"status":302,"contentType":"text/html"},{"status":400,"contentType":"text/html"}];
};
@@ -2599,6 +2639,8 @@ export interface APIGETRoutes {
request: Blob;
response: Blob | JSONValue | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "raw";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
output: "pluginService";
pluginService: {"variants":[{"mode":"JSON","statusPolicy":"plugin","mediaTypes":["application/json"],"payload":"json","headersOverrideMedia":true},{"mode":"JSONP","statusPolicy":"plugin","mediaTypes":["application/javascript","application/json"],"payload":"jsonp-or-json","headersOverrideMedia":true},{"mode":"AsciiJSON","statusPolicy":"plugin","mediaTypes":["application/json"],"payload":"json","headersOverrideMedia":true},{"mode":"IndentedJSON","statusPolicy":"plugin","mediaTypes":["application/json"],"payload":"json","headersOverrideMedia":true},{"mode":"PureJSON","statusPolicy":"plugin","mediaTypes":["application/json"],"payload":"json","headersOverrideMedia":true},{"mode":"SecureJSON","statusPolicy":"plugin","mediaTypes":["application/json"],"payload":"secure-json","headersOverrideMedia":true},{"mode":"XML","statusPolicy":"plugin","mediaTypes":["application/xml"],"payload":"xml","headersOverrideMedia":true},{"mode":"YAML","statusPolicy":"plugin","mediaTypes":["application/yaml"],"payload":"yaml","headersOverrideMedia":true},{"mode":"TOML","statusPolicy":"plugin","mediaTypes":["application/toml"],"payload":"toml","headersOverrideMedia":true},{"mode":"ProtoBuf","statusPolicy":"plugin","mediaTypes":["application/x-protobuf"],"payload":"protobuf","headersOverrideMedia":true},{"mode":"file","statusPolicy":"file","mediaTypes":["dynamic"],"payload":"bytes","headersOverrideMedia":true},{"mode":"string","statusPolicy":"plugin","mediaTypes":["text/plain"],"payload":"text","headersOverrideMedia":true},{"mode":"raw","statusPolicy":"plugin","mediaTypes":["dynamic"],"payload":"bytes","headersOverrideMedia":true},{"mode":"stream","statusPolicy":"plugin","mediaTypes":["dynamic"],"payload":"bytes","headersOverrideMedia":true},{"mode":"redirect","statusPolicy":"redirect","mediaTypes":["text/html"],"payload":"redirect","headersOverrideMedia":true},{"mode":"proxy","statusPolicy":"proxy","mediaTypes":["upstream"],"payload":"bytes","headersOverrideMedia":true},{"mode":"empty","statusPolicy":"plugin","mediaTypes":["optional"],"payload":"none","headersOverrideMedia":true},{"mode":"websocket","statusPolicy":"websocket","mediaTypes":["upgrade-or-text"],"payload":"frames","headersOverrideMedia":false},{"mode":"sse","statusPolicy":"sse","mediaTypes":["text/event-stream"],"payload":"events","headersOverrideMedia":false},{"mode":"admission","statusPolicy":"admission","mediaTypes":["text/plain"],"payload":"text","headersOverrideMedia":true}],"admissionStatuses":[400,404,500,503],"webSocketFrames":["text","binary","close","ping","pong"],"sseEventNames":"dynamic","sseData":"json-or-text","sseEvent":{"type":"object","properties":{"data":{"$ref":"#/$defs/JSONValue"},"event":{"type":"string"},"id":{"type":"string"},"retry":{"type":"integer"}},"required":["data"],"additionalProperties":false}};
};
@@ -2606,6 +2648,8 @@ export interface APIGETRoutes {
request: EmptyRequestInput;
response: null | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
output: "websocket";
websocket: { incoming: Blob; outgoing: Blob; failureStatus: 0; raw: {"frames":[1,2,8,9,10],"upgradeErrorStatuses":[400,403,405,500],"emptyClosedResponse":true}; };
};
@@ -2613,6 +2657,8 @@ export interface APIGETRoutes {
request: EmptyRequestInput;
response: Blob | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
output: "proxy";
proxy: {"kind":"websocket","upstreamStatuses":false,"frames":["text","binary","close"]};
};
@@ -2620,6 +2666,8 @@ export interface APIGETRoutes {
request: EmptyRequestInput;
response: (PluginRPCFailure & { "code"?: never; "data"?: never; "msg"?: never; }) | ({ "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; } & { "error"?: never; "id"?: never; "jsonrpc"?: never; });
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
output: "websocket";
websocket: { incoming: PluginRPCRequestFieldsInput | [PluginRPCRequestFieldsInput, ...Array<PluginRPCRequestFieldsInput>]; outgoing: (PluginRPCSuccess & { "error"?: never; "method"?: never; "params"?: never; }) | (PluginRPCFailure & { "method"?: never; "params"?: never; "result"?: never; }) | [(PluginRPCSuccess & { "error"?: never; }) | (PluginRPCFailure & { "result"?: never; }), ...Array<(PluginRPCSuccess & { "error"?: never; }) | (PluginRPCFailure & { "result"?: never; })>] | (PluginRPCNotification & { "error"?: never; "id"?: never; "result"?: never; }); failureStatus: 404; };
};
@@ -2627,6 +2675,8 @@ export interface APIGETRoutes {
request: EmptyRequestInput;
response: (PluginRPCFailure & { "code"?: never; "data"?: never; "msg"?: never; }) | ({ "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; } & { "error"?: never; "id"?: never; "jsonrpc"?: never; });
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
output: "websocket";
websocket: { incoming: PluginRPCRequestFieldsInput | [PluginRPCRequestFieldsInput, ...Array<PluginRPCRequestFieldsInput>]; outgoing: (PluginRPCSuccess & { "error"?: never; "method"?: never; "params"?: never; }) | (PluginRPCFailure & { "method"?: never; "params"?: never; "result"?: never; }) | [(PluginRPCSuccess & { "error"?: never; }) | (PluginRPCFailure & { "result"?: never; }), ...Array<(PluginRPCSuccess & { "error"?: never; }) | (PluginRPCFailure & { "result"?: never; })>] | (PluginRPCNotification & { "error"?: never; "id"?: never; "result"?: never; }); failureStatus: 404; };
};
@@ -2640,37 +2690,51 @@ export interface APIPOSTRoutes {
request: CheckActivationCodeRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1 | 1; "data": { "closeTimeout": number; } | null | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/account/deactivate": {
request: EmptyRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/account/login": {
request: AccountLoginRequestInput;
response: { "code": 0; "data": AccountLoginData | null; "msg": string; } | { "code": -1 | 1 | 10; "data": { "closeTimeout": number; } | null | AccountLoginData | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/account/startFreeTrial": {
request: EmptyRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/account/useActivationcode": {
request: ActivationCodeRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/ai/agent/browserCapabilityResult": {
request: AIBrowserCapabilityResultRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "structJSON";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
additionalErrorStatuses: [409];
};
"/api/ai/agent/chat": {
request: AIAgentChatRequestInput;
response: string | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "structJSON";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
output: "sse";
additionalErrorStatuses: [409];
sse: { events: { "browser_capability_call": AISSEBrowserCapabilityCall; "confirm": AISSEConfirm; "content": AISSEToken; "done": AISSETurn; "error": AISSEMessage; "interrupted": AISSEMessage; "permission": AIPermissionData; "question": AISSEQuestion; "reasoning": AISSEToken; "retry": AISSERetry; "snapshot": AISSESnapshot; "thinking": AISSEThinking; "tool_call": AISSEToolCall; "tool_result": AISSEToolResult; "turn": AISSETurn; "usage": AISSEUsage; }; };
@@ -2679,151 +2743,209 @@ export interface APIPOSTRoutes {
request: AIConfirmRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "structJSON";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
additionalErrorStatuses: [409];
};
"/api/ai/agent/getInstructions": {
request: EmptyRequestInput;
response: { "code": 0; "data": AIAgentInstructionsData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/ai/agent/getSession": {
request: AISessionIDRequestInput;
response: { "code": 0; "data": AISessionExtensionAISessionFields | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "structJSON";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
additionalErrorStatuses: [500];
};
"/api/ai/agent/getSkill": {
request: AISkillNameRequestInput;
response: { "code": 0; "data": AISkillData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "structJSON";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/ai/agent/lsBuiltinSkills": {
request: EmptyRequestInput;
response: { "code": 0; "data": Array<AIBuiltinSkillInfo> | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/ai/agent/lsSessions": {
request: AISessionsRequestInput;
response: { "code": 0; "data": AISessionList; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "structJSON";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/ai/agent/lsSkills": {
request: EmptyRequestInput;
response: { "code": 0; "data": Array<AISkillInfo> | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/ai/agent/lsUserSkills": {
request: EmptyRequestInput;
response: { "code": 0; "data": Array<AIUserSkillInfo> | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/ai/agent/manageSkills": {
request: AISkillFileRequestInput;
response: { "code": 0; "data": AISkillFileData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/ai/agent/question": {
request: AIQuestionRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "structJSON";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
additionalErrorStatuses: [409];
};
"/api/ai/agent/removeSession": {
request: AISessionIDRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "structJSON";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
additionalErrorStatuses: [409,500];
};
"/api/ai/agent/removeSkill": {
request: AISkillNameRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "structJSON";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/ai/agent/renameSkill": {
request: AISkillRenameRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "structJSON";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/ai/agent/saveSession": {
request: AISessionExtensionAISessionFieldsInput;
response: { "code": 0; "data": AISessionSaveData; "msg": string; } | { "code": -1; "data": ({ "closeTimeout": number; } & { "revision"?: never; "session"?: never; }) | null | (AISessionSaveData & { "closeTimeout"?: never; }); "msg": string; };
body: "structJSON";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
additionalErrorStatuses: [400,409,500];
};
"/api/ai/agent/saveSkill": {
request: AISkillSaveRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "structJSON";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/ai/agent/setInstructions": {
request: AIAgentInstructionsSaveRequestInput;
response: { "code": 0; "data": AIAgentInstructionsData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/ai/agent/setPermission": {
request: AIPermissionRequestInput;
response: { "code": 0; "data": AIPermissionData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "structJSON";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/ai/agent/title": {
request: AITitleRequestInput;
response: { "code": 0; "data": string; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "structJSON";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/ai/chatGPT": {
request: AIMessageRequestInput;
response: { "code": 0; "data": string; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/ai/chatGPTWithAction": {
request: AIActionRequestInput;
response: { "code": 0; "data": string; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/ai/chatgpt/accounts": {
request: EmptyRequestInput;
response: { "code": 0; "data": Array<ChatGPTAccount>; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/ai/chatgpt/cancel": {
request: ChatGPTLoginRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/ai/chatgpt/export": {
request: ChatGPTTransferRequestInput;
response: { "code": 0; "data": ExportFileData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/ai/chatgpt/import": {
request: ChatGPTTransferRequestInput;
response: { "code": 0; "data": ChatGPTAccount; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/ai/chatgpt/logout": {
request: ChatGPTAccountRequestInput;
response: { "code": 0; "data": ChatGPTLogoutResult; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/ai/chatgpt/remove": {
request: ChatGPTAccountRequestInput;
response: { "code": 0; "data": ChatGPTLogoutResult; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/ai/chatgpt/start": {
request: ChatGPTAccountRequestInput;
response: { "code": 0; "data": ChatGPTLogin; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/ai/chatgpt/status": {
request: ChatGPTLoginRequestInput;
response: { "code": 0; "data": ChatGPTLoginStatus; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/ai/editor/chat": {
request: AIEditorChatRequestInput;
response: string | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "structJSON";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
output: "sse";
sse: { events: { "content": AISSEToken; "done": AISSEFinish; "error": AISSEMessage; "reasoning": AISSEToken; "start": AISSEStart; "truncated": AISSEMessage; }; };
};
@@ -2831,1723 +2953,2411 @@ export interface APIPOSTRoutes {
request: EmptyRequestInput;
response: { "code": 0; "data": Array<AIEditorAction | null> | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/ai/editor/removeAction": {
request: AIEditorActionIDRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/ai/editor/saveAction": {
request: AIEditorActionSaveRequestInput;
response: { "code": 0; "data": AIEditorAction | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/ai/embeddingStat": {
request: EmptyRequestInput;
response: { "code": 0; "data": AIEmbeddingStat | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/ai/listModels": {
request: AIProviderRequestInput;
response: { "code": 0; "data": AIModelsData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/ai/lsCapabilities": {
request: EmptyRequestInput;
response: { "code": 0; "data": Array<AICapabilityManifest> | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/ai/mcpEnvironmentVariables": {
request: EmptyRequestInput;
response: { "code": 0; "data": AIMCPEnvironmentData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/ai/mcpOAuthAuthorize": {
request: AIMCPIDRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/ai/mcpOAuthDisconnect": {
request: AIMCPIDRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/ai/mcpStatus": {
request: EmptyRequestInput;
response: { "code": 0; "data": Array<AIMCPStatus> | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/ai/ocr": {
request: AssetPathRequestInput;
response: { "code": 0; "data": AssetTextData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/ai/reindexEmbedding": {
request: EmptyRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/ai/retryFailedEmbedding": {
request: EmptyRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/ai/testDecisionModel": {
request: AIDecisionTestRequestInput;
response: { "code": 0; "data": AIDecisionTestData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/ai/testEmbeddingModel": {
request: EmptyRequestInput;
response: { "code": 0; "data": AIEmbeddingTestData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/ai/testModel": {
request: AIModelRequestInput;
response: { "code": 0; "data": AIModelTestData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/ai/testRerankModel": {
request: EmptyRequestInput;
response: { "code": 0; "data": AIRerankTestData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/archive/unzip": {
request: UnzipRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/archive/zip": {
request: ZipRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/asset/findAssetReferences": {
request: FindAssetReferencesRequestInput;
response: { "code": 0; "data": AssetReferencesData; "msg": string; } | { "code": -1; "data": ({ "closeTimeout": number; } & { "dryRun"?: never; "historyPath"?: never; "items"?: never; "references"?: never; "skippedNotebooks"?: never; "unavailableAttributeViews"?: never; "updated"?: never; }) | null | (AssetReferencesData & { "closeTimeout"?: never; }); "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/asset/fullReindexAssetContent": {
request: EmptyRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/asset/getDocAssets": {
request: AssetDocumentAssetsRequestInput;
response: { "code": 0; "data": Array<string> | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated"];
};
"/api/asset/getDocImageAssets": {
request: AssetDocumentRequestInput;
response: { "code": 0; "data": Array<string> | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated"];
};
"/api/asset/getFileAnnotation": {
request: AssetPathRequestInput;
response: { "code": 0; "data": AssetAnnotationData; "msg": string; } | { "code": -1 | 1 | 403; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated"];
};
"/api/asset/getImageOCRText": {
request: AssetOCRTextRequestInput;
response: { "code": 0; "data": AssetTextData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/asset/getMissingAssets": {
request: EmptyRequestInput;
response: { "code": 0; "data": Array<AssetUnusedItem | null> | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/asset/getOCRConfig": {
request: EmptyRequestInput;
response: { "code": 0; "data": OCRConfigData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/asset/getUnusedAssets": {
request: EmptyRequestInput;
response: { "code": 0; "data": Array<AssetUnusedItem | null> | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/asset/importOCRModels": {
request: ImportOCRModelsRequestInput;
response: { "code": 0; "data": OCRModel; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "multipart";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/asset/insertCover": {
request: InsertCoverRequestInput;
response: { "code": 0; "data": AssetInsertCoverData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/asset/insertLocalAssets": {
request: InsertLocalAssetsRequestInput;
response: { "code": 0; "data": AssetUploadData; "msg": string; } | { "code": -1; "data": ({ "closeTimeout": number; } & { "errFiles"?: never; "failedFiles"?: never; "succFiles"?: never; "succMap"?: never; }) | null | (AssetUploadData & { "closeTimeout"?: never; }); "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/asset/ocr": {
request: AssetPathRequestInput;
response: { "code": 0; "data": AssetOCRData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/asset/relinkAsset": {
request: RelinkAssetRequestInput;
response: { "code": 0; "data": AssetReferencesData; "msg": string; } | { "code": -1; "data": ({ "closeTimeout": number; } & { "dryRun"?: never; "historyPath"?: never; "items"?: never; "references"?: never; "skippedNotebooks"?: never; "unavailableAttributeViews"?: never; "updated"?: never; }) | null | (AssetReferencesData & { "closeTimeout"?: never; }); "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/asset/removeUnusedAsset": {
request: AssetPathRequestInput;
response: { "code": 0; "data": AssetPathData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/asset/removeUnusedAssets": {
request: EmptyRequestInput;
response: { "code": 0; "data": AssetPathsData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/asset/renameAsset": {
request: RenameAssetRequestInput;
response: { "code": 0; "data": AssetRenameData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/asset/resolveAssetPath": {
request: AssetPathRequestInput;
response: { "code": 0; "data": string; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/asset/setFileAnnotation": {
request: SetAssetAnnotationRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/asset/setImageOCRText": {
request: SetAssetOCRTextRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/asset/setOCRConfig": {
request: SettingOCRInput;
response: { "code": 0; "data": SettingOCR; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/asset/statAsset": {
request: AssetPathRequestInput;
response: { "code": 0; "data": AssetStatData; "msg": string; } | { "code": -1 | 1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/asset/upload": {
request: UploadAssetRequestInput;
response: { "code": 0; "data": AssetUploadData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "multipart";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/asset/uploadCloud": {
request: AssetCloudUploadRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/asset/uploadCloudByAssetsPaths": {
request: AssetPathsCloudUploadRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/attr/batchGetBlockAttrs": {
request: BlockIDsRequestInput;
response: { "code": 0; "data": Record<string, Record<string, string> | null>; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated"];
};
"/api/attr/batchSetBlockAttrs": {
request: BatchSetBlockAttrsRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/attr/getBlockAttrs": {
request: BlockIDRequestInput;
response: { "code": 0; "data": Record<string, string>; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated"];
};
"/api/attr/getBookmarkLabels": {
request: EmptyRequestInput;
response: { "code": 0; "data": Array<string> | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated"];
};
"/api/attr/resetBlockAttrs": {
request: EmptyRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/attr/setBlockAttrs": {
request: SetBlockAttrsRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/av/addAttributeViewBlocks": {
request: AddAttributeViewBlocksRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/av/addAttributeViewKey": {
request: AddAttributeViewKeyRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/av/appendAttributeViewDetachedBlocksWithValues": {
request: AppendAttributeViewDetachedBlocksWithValuesRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/av/batchReplaceAttributeViewBlocks": {
request: BatchReplaceAttributeViewBlocksRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/av/batchSetAttributeViewBlockAttrs": {
request: BatchSetAttributeViewBlockAttrsRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/av/changeAttrViewLayout": {
request: ChangeAttrViewLayoutRequestInput;
response: { "code": 0; "data": AVRenderResult; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null | AVRenderResult; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/av/createAttributeViewItem": {
request: CreateAttributeViewItemRequestInput;
response: { "code": 0; "data": AVCreateItemResult; "msg": string; } | { "code": -1 | 1; "data": { "closeTimeout": number; } | null | AVCreateItemResult; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/av/createAttributeViewItemDocs": {
request: CreateAttributeViewItemDocsRequestInput;
response: { "code": 0; "data": AVCreateItemDocsResult; "msg": string; } | { "code": -1 | 1; "data": { "closeTimeout": number; } | null | AVCreateItemDocsResult; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/av/createAttributeViewItemWithMarkdown": {
request: CreateAttributeViewItemWithMarkdownRequestInput;
response: { "code": 0; "data": AVCreateItemResult; "msg": string; } | { "code": -1 | 1; "data": { "closeTimeout": number; } | null | AVCreateItemResult; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/av/createAttributeViewRelationItem": {
request: CreateAttributeViewRelationItemRequestInput;
response: { "code": 0; "data": AVCreateItemResult; "msg": string; } | { "code": -1 | 1; "data": { "closeTimeout": number; } | null | AVCreateItemResult; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/av/duplicateAttributeViewBlock": {
request: DuplicateAttributeViewBlockRequestInput;
response: { "code": 0; "data": AVDuplicateData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/av/getAttributeView": {
request: GetAttributeViewRequestInput;
response: { "code": 0; "data": AVData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","writable"];
};
"/api/av/getAttributeViewAddingBlockDefaultValues": {
request: GetAttributeViewAddingBlockDefaultValuesRequestInput;
response: { "code": 0; "data": AVValuesData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/av/getAttributeViewBacklinks": {
request: GetAttributeViewBacklinksRequestInput;
response: { "code": 0; "data": AVAttributeViewBacklinks | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated"];
};
"/api/av/getAttributeViewBoundBlockIDsByItemIDs": {
request: GetAttributeViewBoundBlockIDsByItemIDsRequestInput;
response: { "code": 0; "data": Record<string, string> | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/av/getAttributeViewCalendarUndated": {
request: AVCalendarUndatedRequestInput;
response: { "code": 0; "data": AVCalendarUndatedData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/av/getAttributeViewFieldViews": {
request: GetAttributeViewFieldViewsRequestInput;
response: { "code": 0; "data": AVFieldViewsData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","writable"];
};
"/api/av/getAttributeViewFilterSort": {
request: GetAttributeViewFilterSortRequestInput;
response: { "code": 0; "data": AVFilterSortData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/av/getAttributeViewItemIDsByBoundIDs": {
request: GetAttributeViewItemIDsByBoundIDsRequestInput;
response: { "code": 0; "data": Record<string, string> | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/av/getAttributeViewItemStatuses": {
request: GetAttributeViewItemStatusesRequestInput;
response: { "code": 0; "data": Record<string, string> | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/av/getAttributeViewKeys": {
request: GetAttributeViewKeysRequestInput;
response: { "code": 0; "data": Array<AVBlockAttributeViewKeys | null> | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated"];
};
"/api/av/getAttributeViewKeysByAvID": {
request: GetAttributeViewKeysByAvIDRequestInput;
response: { "code": 0; "data": Array<AVKey | null> | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/av/getAttributeViewKeysByID": {
request: GetAttributeViewKeysByIDRequestInput;
response: { "code": 0; "data": Array<AVKey | null> | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","writable"];
};
"/api/av/getAttributeViewPasteRows": {
request: GetAttributeViewPasteRowsRequestInput;
response: { "code": 0; "data": AVPasteRowsData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/av/getAttributeViewPrimaryKeyValues": {
request: GetAttributeViewPrimaryKeyValuesRequestInput;
response: { "code": 0; "data": AVPrimaryValuesData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/av/getAttributeViewRelationCandidates": {
request: GetAttributeViewRelationCandidatesRequestInput;
response: { "code": 0; "data": AVRelationCandidatesData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/av/getAttributeViewRowSort": {
request: GetAttributeViewRowSortRequestInput;
response: { "code": 0; "data": AVRowSortPreview; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "structJSON";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/av/getAttributeViewSearchTarget": {
request: GetAttributeViewSearchTargetRequestInput;
response: { "code": 0; "data": AVAttributeViewSearchTarget | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","writable"];
};
"/api/av/getCurrentAttrViewImages": {
request: GetCurrentAttrViewImagesRequestInput;
response: { "code": 0; "data": Array<string> | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated"];
};
"/api/av/getMirrorDatabaseBlocks": {
request: GetMirrorDatabaseBlocksRequestInput;
response: { "code": 0; "data": RefDefsData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/av/getUnusedAttributeViews": {
request: EmptyRequestInput;
response: { "code": 0; "data": Array<AssetUnusedItem | null> | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/av/removeAttributeViewBlocks": {
request: RemoveAttributeViewBlocksRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/av/removeAttributeViewKey": {
request: RemoveAttributeViewKeyRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/av/removeUnusedAttributeView": {
request: RemoveUnusedAttributeViewRequestInput;
response: { "code": 0; "data": AVIDData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/av/removeUnusedAttributeViews": {
request: EmptyRequestInput;
response: { "code": 0; "data": AVPathsData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/av/renderAttributeView": {
request: RenderAttributeViewRequestInput;
response: { "code": 0; "data": AVRenderResult; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null | AVRenderResult; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated"];
};
"/api/av/renderHistoryAttributeView": {
request: RenderHistoryAttributeViewRequestInput;
response: { "code": 0; "data": AVArchiveRenderData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/av/renderSnapshotAttributeView": {
request: RenderSnapshotAttributeViewRequestInput;
response: { "code": 0; "data": AVArchiveRenderData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/av/searchAttributeView": {
request: SearchAttributeViewRequestInput;
response: { "code": 0; "data": AVSearchData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","writable"];
};
"/api/av/searchAttributeViewNonRelationKey": {
request: EmptyRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/av/searchAttributeViewRelationKey": {
request: SearchAttributeViewRelationKeyRequestInput;
response: { "code": 0; "data": AVKeysData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/av/searchAttributeViewRollupDestKeys": {
request: SearchAttributeViewRollupDestKeysRequestInput;
response: { "code": 0; "data": AVKeysData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/av/setAttrViewContextFilter": {
request: SetAttrViewContextFilterRequestInput;
response: { "code": 0; "data": AVContextFilterData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/av/setAttrViewFilters": {
request: SetAttrViewFiltersRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/av/setAttrViewGroup": {
request: SetAttrViewGroupRequestInput;
response: { "code": 0; "data": AVRenderResult; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null | AVRenderResult; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/av/setAttrViewSorts": {
request: SetAttrViewSortsRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/av/setAttributeViewBlockAttr": {
request: SetAttributeViewBlockAttrRequestInput;
response: { "code": 0; "data": AVValueData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/av/setDatabaseBlockView": {
request: SetDatabaseBlockViewRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/av/sortAttributeViewKey": {
request: SortAttributeViewKeyRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/av/sortAttributeViewViewKey": {
request: SortAttributeViewViewKeyRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/bazaar/batchUpdatePackage": {
request: BatchUpdatePackageRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1 | 1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/bazaar/getBazaarIcon": {
request: GetBazaarIconRequestInput;
response: { "code": 0; "data": BazaarPackagesData; "msg": string; } | { "code": -1 | 1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/bazaar/getBazaarPackage": {
request: GetBazaarPackageRequestInput;
response: { "code": 0; "data": BazaarPackageDetail; "msg": string; } | { "code": -1 | 1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/bazaar/getBazaarPackageREADME": {
request: GetBazaarPackageREADMERequestInput;
response: { "code": 0; "data": BazaarREADMEData; "msg": string; } | { "code": -1 | 1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/bazaar/getBazaarPackageRating": {
request: GetBazaarPackageRatingRequestInput;
response: { "code": 0; "data": BazaarRatingResult; "msg": string; } | { "code": -1 | 1; "data": { "closeTimeout": number; } | null | BazaarRatingResult; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/bazaar/getBazaarPackageRatings": {
request: GetBazaarPackageRatingsRequestInput;
response: { "code": 0; "data": BazaarRatingsData; "msg": string; } | { "code": -1 | 1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/bazaar/getBazaarPackageUserRatings": {
request: GetBazaarPackageUserRatingsRequestInput;
response: { "code": 0; "data": BazaarUserRatingsResult; "msg": string; } | { "code": -1 | 1; "data": { "closeTimeout": number; } | null | BazaarUserRatingsResult; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/bazaar/getBazaarPlugin": {
request: GetBazaarPluginRequestInput;
response: { "code": 0; "data": BazaarPackagesData; "msg": string; } | { "code": -1 | 1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/bazaar/getBazaarTemplate": {
request: GetBazaarTemplateRequestInput;
response: { "code": 0; "data": BazaarPackagesData; "msg": string; } | { "code": -1 | 1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/bazaar/getBazaarTheme": {
request: GetBazaarThemeRequestInput;
response: { "code": 0; "data": BazaarPackagesData; "msg": string; } | { "code": -1 | 1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/bazaar/getBazaarWidget": {
request: GetBazaarWidgetRequestInput;
response: { "code": 0; "data": BazaarPackagesData; "msg": string; } | { "code": -1 | 1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/bazaar/getInstalledIcon": {
request: GetInstalledIconRequestInput;
response: { "code": 0; "data": BazaarPackagesData; "msg": string; } | { "code": -1 | 1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/bazaar/getInstalledPackageSize": {
request: GetInstalledPackageSizeRequestInput;
response: { "code": 0; "data": BazaarPackageSizeData; "msg": string; } | { "code": -1 | 1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/bazaar/getInstalledPlugin": {
request: GetInstalledPluginRequestInput;
response: { "code": 0; "data": BazaarPackagesData; "msg": string; } | { "code": -1 | 1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/bazaar/getInstalledTemplate": {
request: GetInstalledTemplateRequestInput;
response: { "code": 0; "data": BazaarPackagesData; "msg": string; } | { "code": -1 | 1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/bazaar/getInstalledTheme": {
request: GetInstalledThemeRequestInput;
response: { "code": 0; "data": BazaarPackagesData; "msg": string; } | { "code": -1 | 1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/bazaar/getInstalledWidget": {
request: GetInstalledWidgetRequestInput;
response: { "code": 0; "data": BazaarPackagesData; "msg": string; } | { "code": -1 | 1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/bazaar/getUpdatedPackage": {
request: GetUpdatedPackageRequestInput;
response: { "code": 0; "data": BazaarUpdatedData; "msg": string; } | { "code": -1 | 1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/bazaar/installBazaarIcon": {
request: InstallBazaarIconRequestInput;
response: { "code": 0; "data": BazaarAppearancePackagesData; "msg": string; } | { "code": -1 | 1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/bazaar/installBazaarPlugin": {
request: InstallBazaarPluginRequestInput;
response: { "code": 0; "data": BazaarPackagesData; "msg": string; } | { "code": -1 | 1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/bazaar/installBazaarTemplate": {
request: InstallBazaarTemplateRequestInput;
response: { "code": 0; "data": BazaarPackagesData; "msg": string; } | { "code": -1 | 1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/bazaar/installBazaarTheme": {
request: InstallBazaarThemeRequestInput;
response: { "code": 0; "data": BazaarAppearancePackagesData; "msg": string; } | { "code": -1 | 1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/bazaar/installBazaarWidget": {
request: InstallBazaarWidgetRequestInput;
response: { "code": 0; "data": BazaarPackagesData; "msg": string; } | { "code": -1 | 1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/bazaar/installLocalBazaarPackage": {
request: InstallLocalBazaarPackageRequestInput;
response: { "code": 0; "data": BazaarLocalInstallResult; "msg": string; } | { "code": -1 | 1; "data": { "closeTimeout": number; } | null | BazaarLocalInstallResult; "msg": string; };
body: "multipart";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/bazaar/setBazaarPackageRating": {
request: SetBazaarPackageRatingRequestInput;
response: { "code": 0; "data": BazaarRatingResult; "msg": string; } | { "code": -1 | 1; "data": { "closeTimeout": number; } | null | BazaarRatingResult; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/bazaar/uninstallBazaarIcon": {
request: UninstallBazaarIconRequestInput;
response: { "code": 0; "data": BazaarAppearancePackagesData; "msg": string; } | { "code": -1 | 1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/bazaar/uninstallBazaarPlugin": {
request: UninstallBazaarPluginRequestInput;
response: { "code": 0; "data": BazaarPackagesData; "msg": string; } | { "code": -1 | 1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/bazaar/uninstallBazaarTemplate": {
request: UninstallBazaarTemplateRequestInput;
response: { "code": 0; "data": BazaarPackagesData; "msg": string; } | { "code": -1 | 1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/bazaar/uninstallBazaarTheme": {
request: UninstallBazaarThemeRequestInput;
response: { "code": 0; "data": BazaarAppearancePackagesData; "msg": string; } | { "code": -1 | 1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/bazaar/uninstallBazaarWidget": {
request: UninstallBazaarWidgetRequestInput;
response: { "code": 0; "data": BazaarPackagesData; "msg": string; } | { "code": -1 | 1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/bazaar/updateBazaarPackage": {
request: UpdateBazaarPackageRequestInput;
response: { "code": 0; "data": BazaarPackagesData; "msg": string; } | { "code": -1 | 1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/block/appendBlock": {
request: AppendBlockRequestInput;
response: { "code": 0; "data": Array<BlockTransaction | null> | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/block/appendDailyNoteBlock": {
request: DailyNoteBlockRequestInput;
response: { "code": 0; "data": Array<BlockTransaction | null> | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/block/appendHeadingChildren": {
request: AppendHeadingChildrenRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/block/batchAppendBlock": {
request: BatchParentBlockRequestInput;
response: { "code": 0; "data": Array<BlockTransaction | null> | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/block/batchInsertBlock": {
request: BatchInsertBlockRequestInput;
response: { "code": 0; "data": Array<BlockTransaction | null> | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/block/batchPrependBlock": {
request: BatchParentBlockRequestInput;
response: { "code": 0; "data": Array<BlockTransaction | null> | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/block/batchUpdateBlock": {
request: BatchUpdateBlockRequestInput;
response: { "code": 0; "data": Array<BlockTransaction | null> | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/block/batchUpdateTaskListItemMarker": {
request: BatchTaskListMarkerRequestInput;
response: { "code": 0; "data": Array<BlockTransaction | null> | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/block/checkBlockExist": {
request: BlockQueryRequestInput;
response: { "code": 0; "data": boolean; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated"];
};
"/api/block/checkBlockFold": {
request: BlockQueryRequestInput;
response: { "code": 0; "data": BlockFoldData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated"];
};
"/api/block/checkBlockRef": {
request: CheckBlockRefRequestInput;
response: { "code": 0; "data": boolean; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null | boolean; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/block/checkBlocksExist": {
request: CheckBlocksExistRequestInput;
response: { "code": 0; "data": Record<string, boolean> | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated"];
};
"/api/block/deleteBlock": {
request: DeleteBlockRequestInput;
response: { "code": 0; "data": Array<BlockTransaction | null> | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/block/foldBlock": {
request: BlockIDRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/block/getBlockBreadcrumb": {
request: BlockBreadcrumbRequestInput;
response: { "code": 0; "data": Array<BlockPath | null> | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated"];
};
"/api/block/getBlockBreadcrumbChildren": {
request: BlockBreadcrumbChildrenRequestInput;
response: { "code": 0; "data": BlockBreadcrumbChildren | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated"];
};
"/api/block/getBlockDOM": {
request: BlockQueryRequestInput;
response: { "code": 0; "data": BlockDOMData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated"];
};
"/api/block/getBlockDOMWithEmbed": {
request: BlockQueryRequestInput;
response: { "code": 0; "data": BlockDOMData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated"];
};
"/api/block/getBlockDOMs": {
request: BlocksQueryRequestInput;
response: { "code": 0; "data": Record<string, string> | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated"];
};
"/api/block/getBlockDOMsWithEmbed": {
request: BlocksQueryRequestInput;
response: { "code": 0; "data": Record<string, string> | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated"];
};
"/api/block/getBlockDefIDsByRefText": {
request: RefTextQueryRequestInput;
response: { "code": 0; "data": RefDefsData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated"];
};
"/api/block/getBlockIndex": {
request: BlockQueryRequestInput;
response: { "code": 0; "data": number; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated"];
};
"/api/block/getBlockInfo": {
request: BlockInfoRequestInput;
response: { "code": 0; "data": BlockInfoData; "msg": string; } | { "code": -1 | 3; "data": { "closeTimeout": number; } | null | string; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated"];
};
"/api/block/getBlockKramdown": {
request: BlockKramdownRequestInput;
response: { "code": 0; "data": BlockKramdownData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated"];
};
"/api/block/getBlockKramdowns": {
request: BlocksKramdownRequestInput;
response: { "code": 0; "data": Record<string, string> | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated"];
};
"/api/block/getBlockRelevantIDs": {
request: BlockQueryRequestInput;
response: { "code": 0; "data": BlockRelevantData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated"];
};
"/api/block/getBlockSiblingID": {
request: BlockQueryRequestInput;
response: { "code": 0; "data": BlockSiblingData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated"];
};
"/api/block/getBlockTreeInfos": {
request: BlocksQueryRequestInput;
response: { "code": 0; "data": Record<string, BlockTreeInfo | null> | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated"];
};
"/api/block/getBlocksIndexes": {
request: BlocksQueryRequestInput;
response: { "code": 0; "data": Record<string, number> | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated"];
};
"/api/block/getBlocksWordCount": {
request: BlocksWordCountRequestInput;
response: { "code": 0; "data": WordCountData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated"];
};
"/api/block/getChildBlocks": {
request: BlockQueryRequestInput;
response: { "code": 0; "data": Array<ChildBlock | null>; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/block/getContentWordCount": {
request: ContentWordCountRequestInput;
response: { "code": 0; "data": WordCountData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated"];
};
"/api/block/getDOMText": {
request: DOMTextRequestInput;
response: { "code": 0; "data": string; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated"];
};
"/api/block/getDocBlocksOrders": {
request: DocOrdersRequestInput;
response: { "code": 0; "data": Array<string> | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated"];
};
"/api/block/getDocHeadingLevelTransaction": {
request: DocHeadingLevelRequestInput;
response: { "code": 0; "data": DocHeadingLevelData | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "structJSON";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/block/getDocInfo": {
request: BlockQueryRequestInput;
response: { "code": 0; "data": DocInfo | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated"];
};
"/api/block/getDocsInfo": {
request: DocsInfoRequestInput;
response: { "code": 0; "data": Array<DocInfo | null> | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated"];
};
"/api/block/getHeadingChildrenDOM": {
request: HeadingChildrenRequestInput;
response: { "code": 0; "data": string; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated"];
};
"/api/block/getHeadingChildrenIDs": {
request: BlockIDRequestInput;
response: { "code": 0; "data": Array<string> | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated"];
};
"/api/block/getHeadingDeleteTransaction": {
request: BlockIDRequestInput;
response: { "code": 0; "data": BlockTransaction | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/block/getHeadingFoldTransaction": {
request: HeadingFoldRequestInput;
response: { "code": 0; "data": BlockTransaction | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/block/getHeadingInsertTransaction": {
request: BlockIDRequestInput;
response: { "code": 0; "data": BlockTransaction | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/block/getHeadingLevelTransaction": {
request: HeadingLevelRequestInput;
response: { "code": 0; "data": BlockTransaction | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/block/getOrderedListContinueStart": {
request: BlockQueryRequestInput;
response: { "code": 0; "data": OrderedListStartData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/block/getRecentUpdatedBlocks": {
request: EmptyRequestInput;
response: { "code": 0; "data": Array<SearchBlock | null> | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated"];
};
"/api/block/getRefIDs": {
request: RefIDsRequestInput;
response: { "code": 0; "data": RefIDsData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated"];
};
"/api/block/getRefIDsByFileAnnotationID": {
request: FileAnnotationRefRequestInput;
response: { "code": 0; "data": RefDefsData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated"];
};
"/api/block/getRefText": {
request: BlockQueryRequestInput;
response: { "code": 0; "data": string; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated"];
};
"/api/block/getTailChildBlocks": {
request: TailChildBlocksRequestInput;
response: { "code": 0; "data": Array<ChildBlock | null>; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/block/getTreeStat": {
request: TreeStatRequestInput;
response: { "code": 0; "data": TreeStatData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated"];
};
"/api/block/getUnfoldedParentID": {
request: BlockQueryRequestInput;
response: { "code": 0; "data": UnfoldedParentData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated"];
};
"/api/block/insertBlock": {
request: InsertBlockRequestInput;
response: { "code": 0; "data": Array<BlockTransaction | null> | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/block/migrateLegacyMindmaps": {
request: MigrateLegacyMindmapsRequestInput;
response: { "code": 0; "data": MigrateLegacyMindmapsData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/block/moveBlock": {
request: MoveBlockRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/block/moveOutlineHeading": {
request: MoveBlockRequestInput;
response: { "code": 0; "data": Array<BlockTransaction | null> | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/block/prependBlock": {
request: PrependBlockRequestInput;
response: { "code": 0; "data": Array<BlockTransaction | null> | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/block/prependDailyNoteBlock": {
request: DailyNoteBlockRequestInput;
response: { "code": 0; "data": Array<BlockTransaction | null> | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/block/setBlockReminder": {
request: BlockReminderRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/block/swapBlockRef": {
request: SwapBlockRefRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/block/transferBlockRef": {
request: TransferBlockRefRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/block/unfoldBlock": {
request: BlockIDRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/block/updateBlock": {
request: UpdateBlockRequestInput;
response: { "code": 0; "data": Array<BlockTransaction | null> | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/block/updateTaskListItemMarker": {
request: TaskListMarkerRequestInput;
response: { "code": 0; "data": Array<BlockTransaction | null> | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/bookmark/getBookmark": {
request: EmptyRequestInput;
response: { "code": 0; "data": Array<Bookmark | null> | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated"];
};
"/api/bookmark/removeBookmark": {
request: RemoveBookmarkRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/bookmark/renameBookmark": {
request: RenameBookmarkRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/broadcast/getChannelInfo": {
request: BroadcastChannelRequestInput;
response: { "code": 0; "data": BroadcastChannelData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/broadcast/getChannels": {
request: EmptyRequestInput;
response: { "code": 0; "data": BroadcastChannelsData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/broadcast/postMessage": {
request: BroadcastMessageRequestInput;
response: { "code": 0; "data": BroadcastChannelData; "msg": string; } | { "code": -1 | 1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/broadcast/publish": {
request: Record<string, Array<string | Blob>>;
response: { "code": 0; "data": BroadcastPublishData; "msg": string; } | { "code": -1 | 1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "multipart";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/clipboard/cleanupRichText": {
request: CleanupRichTextRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/clipboard/preparePasteAssets": {
request: PreparePasteAssetsRequestInput;
response: { "code": 0; "data": Record<string, string>; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/clipboard/prepareRichText": {
request: PrepareRichTextRequestInput;
response: { "code": 0; "data": RichClipboardPrepared | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/clipboard/readFilePaths": {
request: EmptyRequestInput;
response: { "code": 0; "data": Array<ClipboardFile>; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/clipboard/writeFilePath": {
request: ClipboardPathRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/cloud/getCloudSpace": {
request: EmptyRequestInput;
response: { "code": 0; "data": CloudSpaceData; "msg": string; } | { "code": -1 | 1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/cloud/setCloudReminder": {
request: CloudReminderRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/convert/pandoc": {
request: PandocRequestInput;
response: { "code": 0; "data": PandocData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/export/copyExportFile": {
request: CopyExportFileRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1 | -2; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/export/export2Liandi": {
request: ExportIDRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/export/exportAsFile": {
request: ExportAsFileRequestInput;
response: { "code": 0; "data": ExportFileData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "multipart";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/export/exportAsciiDoc": {
request: ExportIDRequestInput;
response: { "code": 0; "data": ExportNamedZipData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/export/exportAttributeView": {
request: ExportAttributeViewRequestInput;
response: { "code": 0; "data": ExportZipData; "msg": string; } | { "code": -1 | 1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/export/exportBrowserHTML": {
request: ExportBrowserHTMLRequestInput;
response: { "code": 0; "data": ExportZipData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/export/exportCodeBlock": {
request: ExportIDRequestInput;
response: { "code": 0; "data": ExportPathData; "msg": string; } | { "code": -1 | 1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/export/exportData": {
request: EmptyRequestInput;
response: { "code": 0; "data": ExportZipData; "msg": string; } | { "code": -1 | 1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/export/exportDataInFolder": {
request: ExportFolderRequestInput;
response: { "code": 0; "data": ExportNameData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/export/exportDocx": {
request: ExportDocxRequestInput;
response: { "code": 0; "data": ExportPathData; "msg": string; } | { "code": -1 | 1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/export/exportEPUB": {
request: ExportIDRequestInput;
response: { "code": 0; "data": ExportNamedZipData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/export/exportHTML": {
request: ExportHTMLRequestInput;
response: { "code": 0; "data": ExportHTMLData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/export/exportMd": {
request: ExportMarkdownRequestInput;
response: { "code": 0; "data": ExportNamedZipData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/export/exportMdContent": {
request: ExportMarkdownContentRequestInput;
response: { "code": 0; "data": ExportMarkdownContentData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/export/exportMdHTML": {
request: ExportMarkdownHTMLRequestInput;
response: { "code": 0; "data": ExportHTMLData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/export/exportMds": {
request: ExportDocumentsMarkdownRequestInput;
response: { "code": 0; "data": ExportNamedZipData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/export/exportMediaWiki": {
request: ExportIDRequestInput;
response: { "code": 0; "data": ExportNamedZipData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/export/exportNotebookMd": {
request: ExportNotebookMarkdownRequestInput;
response: { "code": 0; "data": ExportNamedZipData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/export/exportNotebookSY": {
request: ExportIDRequestInput;
response: { "code": 0; "data": ExportZipData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/export/exportNotebooksMd": {
request: ExportNotebooksMarkdownRequestInput;
response: { "code": 0; "data": ExportNamedZipData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/export/exportNotebooksSY": {
request: ExportNotebooksRequestInput;
response: { "code": 0; "data": ExportZipData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/export/exportODT": {
request: ExportIDRequestInput;
response: { "code": 0; "data": ExportNamedZipData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/export/exportOPML": {
request: ExportIDRequestInput;
response: { "code": 0; "data": ExportNamedZipData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/export/exportOrgMode": {
request: ExportIDRequestInput;
response: { "code": 0; "data": ExportNamedZipData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/export/exportPreviewHTML": {
request: ExportPreviewHTMLRequestInput;
response: { "code": 0; "data": ExportPreviewHTMLData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/export/exportRTF": {
request: ExportIDRequestInput;
response: { "code": 0; "data": ExportNamedZipData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/export/exportReStructuredText": {
request: ExportIDRequestInput;
response: { "code": 0; "data": ExportNamedZipData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/export/exportResources": {
request: ExportResourcesRequestInput;
response: { "code": 0; "data": ExportPathData; "msg": string; } | { "code": -1 | 1; "data": { "closeTimeout": number; } | null | string; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/export/exportSY": {
request: ExportIDRequestInput;
response: { "code": 0; "data": ExportZipData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/export/exportSYs": {
request: ExportIDsRequestInput;
response: { "code": 0; "data": ExportZipData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/export/exportTempContent": {
request: ExportTempContentRequestInput;
response: { "code": 0; "data": ExportURLData; "msg": string; } | { "code": -1 | 1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/export/exportTextile": {
request: ExportIDRequestInput;
response: { "code": 0; "data": ExportNamedZipData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/export/preview": {
request: ExportIDRequestInput;
response: { "code": 0; "data": ExportPreviewData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated"];
};
"/api/export/processPDF": {
request: ProcessPDFRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/extension/copy": {
request: ({ "assets"?: string; "clipType"?: string; "dom": string; "href"?: string; "notebook"?: string; } & Record<string, string | Blob | Array<string | Blob>>);
response: { "code": 0; "data": ExtensionCopyData | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null | ExtensionCopyData | null; "msg": string; };
body: "multipart";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/file/copyFile": {
request: CopyFileRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1 | -2; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/file/getFile": {
request: FilePathRequestInput;
response: Blob | { "code": -1 | -3 | 403 | 404 | 409 | 500 | 503; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated"];
output: "binary";
};
"/api/file/getUniqueFilename": {
request: FilePathRequestInput;
response: { "code": 0; "data": FilePathData; "msg": string; } | { "code": -1 | -3; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/file/globalCopyFiles": {
request: CopyFilesRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1 | -2 | -3 | 403; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/file/putFile": {
request: PutFileRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1 | -3 | 400 | 403 | 500; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "form";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/file/readDir": {
request: ReadDirectoryRequestInput;
response: { "code": 0; "data": Array<DirectoryEntry>; "msg": string; } | { "code": -1 | -3 | 403 | 404 | 409 | 500; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/file/removeFile": {
request: RemoveFileRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1 | -3 | 403 | 404 | 500; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/file/renameFile": {
request: RenameFileRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1 | -3 | 403 | 404 | 409 | 500; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/file/workspaceCopyFiles": {
request: CopyFilesRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1 | -2 | -3 | 403; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/filetree/authFilePublishAccess": {
request: FileTreeAuthPublishRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated"];
additionalErrorStatuses: [429];
};
"/api/filetree/changeSort": {
request: FileTreeChangeSortRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/filetree/createDailyNote": {
request: FileTreeDailyNoteRequestInput;
response: { "code": 0; "data": FileTreeCreateData; "msg": string; } | { "code": -1 | 1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/filetree/createDoc": {
request: FileTreeCreateRequestInput;
response: { "code": 0; "data": FileTreeCreateData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/filetree/createDocWithMd": {
request: FileTreeCreateMarkdownRequestInput;
response: { "code": 0; "data": string; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/filetree/doc2Heading": {
request: FileTreeDocHeadingRequestInput;
response: { "code": 0; "data": FileTreeDocHeadingData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/filetree/duplicateDoc": {
request: FileTreeIDRequestInput;
response: { "code": 0; "data": FileTreeDuplicateData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/filetree/duplicateDocTree": {
request: FileTreeIDRequestInput;
response: { "code": 0; "data": FileTreeDuplicateData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/filetree/getDailyNoteInfo": {
request: DailyNoteInfoRequestInput;
response: { "code": 0; "data": DailyNoteInfo | null; "msg": string; } | { "code": -1 | 1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/filetree/getDoc": {
request: FileTreeGetDocRequestInput;
response: { "code": 0; "data": FileTreeGetDocData; "msg": string; } | { "code": -1 | 1 | 3; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated"];
};
"/api/filetree/getDocCreateSavePath": {
request: FileTreeNotebookRequestInput;
response: { "code": 0; "data": FileTreeCreateSavePathData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated"];
};
"/api/filetree/getFullHPathByID": {
request: FileTreeOptionalIDRequestInput;
response: { "code": 0; "data": string | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated"];
};
"/api/filetree/getHPathByID": {
request: FileTreeIDRequestInput;
response: { "code": 0; "data": string; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated"];
};
"/api/filetree/getHPathByPath": {
request: FileTreePathRequestInput;
response: { "code": 0; "data": string; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated"];
};
"/api/filetree/getHPathsByPaths": {
request: FileTreePathsRequestInput;
response: { "code": 0; "data": Array<string> | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated"];
};
"/api/filetree/getIDsByHPath": {
request: FileTreeOptionalPathRequestInput;
response: { "code": 0; "data": Array<string> | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated"];
};
"/api/filetree/getPathByID": {
request: FileTreeTrimIDRequestInput;
response: { "code": 0; "data": FileTreeDocPathData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated"];
};
"/api/filetree/getPinnedDocs": {
request: EmptyRequestInput;
response: { "code": 0; "data": Array<PinnedDoc>; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/filetree/getPublishAccess": {
request: FileTreePublishIDsRequestInput;
response: { "code": 0; "data": FileTreePublishData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/filetree/getRefCreateSavePath": {
request: FileTreeNotebookRequestInput;
response: { "code": 0; "data": FileTreeSavePathData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated"];
};
"/api/filetree/getShorthandSavePath": {
request: FileTreeNotebookRequestInput;
response: { "code": 0; "data": FileTreeSavePathData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated"];
};
"/api/filetree/heading2Doc": {
request: FileTreeHeadingDocRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/filetree/li2Doc": {
request: FileTreeListItemDocRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/filetree/listDocTree": {
request: FileTreePathRequestInput;
response: { "code": 0; "data": FileTreeDocTreeData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/filetree/listDocsByPath": {
request: FileTreeListRequestInput;
response: { "code": 0; "data": FileTreeListData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated"];
};
"/api/filetree/moveDocs": {
request: FileTreeMoveRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/filetree/moveDocsByID": {
request: FileTreeMoveIDsRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/filetree/moveLocalShorthands": {
request: FileTreeNotebookRequestInput;
response: { "code": 0; "data": Array<string> | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/filetree/removeDoc": {
request: FileTreePathRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/filetree/removeDocByID": {
request: FileTreeTrimIDRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/filetree/removeDocs": {
request: FileTreePathsRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/filetree/removeIndexes": {
request: FileTreePathsRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/filetree/renameDoc": {
request: FileTreeRenameRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/filetree/renameDocByID": {
request: FileTreeRenameIDRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/filetree/reorderDocs": {
request: FileTreeReorderRequestInput;
response: { "code": 0; "data": FileTreeReorderData | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null | FileTreeReorderData | null; "msg": string; };
body: "structJSON";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/filetree/searchDocs": {
request: FileTreeSearchRequestInput;
response: { "code": 0; "data": Array<FileTreeSearchDoc | null> | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated"];
};
"/api/filetree/setDocSortMode": {
request: FileTreeSortModeRequestInput;
response: { "code": 0; "data": FileTreeSortModeData | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null | FileTreeSortModeData | null; "msg": string; };
body: "structJSON";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/filetree/setPublishAccess": {
request: FileTreeSetPublishRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/filetree/setSort": {
request: FileTreeSetSortRequestInput;
response: { "code": 0; "data": FileTreeSetSortData | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null | FileTreeSetSortData | null; "msg": string; };
body: "structJSON";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/filetree/updatePinnedDocs": {
request: UpdatePinnedDocsRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/filetree/upsertIndexes": {
request: FileTreePathsRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/format/autoSpace": {
request: TrimmedIDRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/format/netAssets2LocalAssets": {
request: TrimmedIDRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/format/netImg2LocalAssets": {
request: NetImageAssetsRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/graph/getGraph": {
request: GlobalGraphRequestInput;
response: { "code": 0; "data": GlobalGraphResult | (GraphCorrelation & { "box"?: never; "conf"?: never; "links"?: never; "nodes"?: never; }); "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null | GlobalGraphResult | (GraphCorrelation & { "box"?: never; "conf"?: never; "links"?: never; "nodes"?: never; }); "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated"];
};
"/api/graph/getLocalGraph": {
request: LocalGraphRequestInput;
response: { "code": 0; "data": LocalGraphResult | (GraphCorrelation & { "box"?: never; "conf"?: never; "id"?: never; "links"?: never; "nodes"?: never; }); "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null | LocalGraphResult | (GraphCorrelation & { "box"?: never; "conf"?: never; "id"?: never; "links"?: never; "nodes"?: never; }); "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated"];
};
"/api/graph/resetGraph": {
request: EmptyRequestInput;
response: { "code": 0; "data": ResetGraphData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/graph/resetLocalGraph": {
request: EmptyRequestInput;
response: { "code": 0; "data": ResetLocalGraphData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/graph/setGraphConf": {
request: SetGraphConfRequestInput;
response: { "code": 0; "data": GlobalGraphConf | (LocalGraphConf & { "minRefs"?: never; }); "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated"];
};
"/api/history/clearWorkspaceHistory": {
request: EmptyRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/history/createAssetHistory": {
request: CreateAssetHistoryRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/history/createDocHistory": {
request: CreateDocHistoryRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/history/diffDocVersions": {
request: DiffDocVersionsRequestInput;
response: { "code": 0; "data": DocVersionDiffResult | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/history/getDocHistoryContent": {
request: DocHistoryContentRequestInput;
response: { "code": 0; "data": DocHistoryContentData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/history/getDocHistorySnapshots": {
request: DocHistorySnapshotsRequestInput;
response: { "code": 0; "data": DocHistorySnapshotsData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/history/getHistoryItems": {
request: HistoryItemsRequestInput;
response: { "code": 0; "data": HistoryItemsData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/history/getNotebookHistory": {
request: EmptyRequestInput;
response: { "code": 0; "data": NotebookHistoryData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/history/reindexHistory": {
request: EmptyRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/history/rollbackAssetsHistory": {
request: HistoryPathRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/history/rollbackAttributeViewHistory": {
request: HistoryPathRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/history/rollbackDocHistory": {
request: HistoryPathRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/history/rollbackNotebookHistory": {
request: HistoryPathRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/history/searchHistory": {
request: SearchHistoryRequestInput;
response: { "code": 0; "data": SearchHistoryData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/import/cancelImportSY": {
request: ImportTokenRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/import/cancelObsidianVaultTask": {
request: ObsidianTaskRequestInput;
response: { "code": 0; "data": ObsidianVaultTask | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null | ObsidianVaultTask | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/import/continueImportSY": {
request: ContinueImportSYRequestInput;
response: { "code": 0; "data": ImportDocumentData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/import/getObsidianVaultTask": {
request: ObsidianTaskRequestInput;
response: { "code": 0; "data": ObsidianVaultTask | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/import/importData": {
request: ImportDataRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "multipart";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/import/importSY": {
request: ImportSYRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "multipart";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/import/importSYAuto": {
request: ImportSYRequestInput;
response: { "code": 0; "data": (ImportAutoDocument & { "notebook"?: never; "notebooks"?: never; }) | (ImportAutoNotebook & { "notebooks"?: never; "token"?: never; }) | (ImportAutoNotebooks & { "notebook"?: never; "token"?: never; }); "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null | (ImportAutoDocument & { "notebook"?: never; "notebooks"?: never; }) | (ImportAutoNotebook & { "notebooks"?: never; "token"?: never; }) | (ImportAutoNotebooks & { "notebook"?: never; "token"?: never; }); "msg": string; };
body: "multipart";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/import/importSYNotebook": {
request: ImportDataRequestInput;
response: { "code": 0; "data": (ImportedNotebook & { "notebooks"?: never; }) | (ImportedNotebooks & { "notebook"?: never; }); "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "multipart";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/import/importStdMd": {
request: ImportMarkdownRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/import/importZipMd": {
request: ImportZipMarkdownRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "multipart";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/import/startObsidianVaultAnalysis": {
request: ObsidianAnalysisRequestInput;
response: { "code": 0; "data": ObsidianVaultTask | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/import/startObsidianVaultImport": {
request: ObsidianImportRequestInput;
response: { "code": 0; "data": ObsidianVaultTask | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/inbox/getShorthand": {
request: TrimmedIDRequestInput;
response: { "code": 0; "data": Shorthand | null; "msg": string; } | { "code": -1 | 1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/inbox/getShorthands": {
request: ShorthandsRequestInput;
response: { "code": 0; "data": ShorthandsData | null; "msg": string; } | { "code": -1 | 1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/inbox/removeShorthands": {
request: RemoveShorthandsRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1 | 1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/lute/copyStdMarkdown": {
request: CopyStdMarkdownRequestInput;
response: { "code": 0; "data": string; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated"];
};
"/api/lute/html2BlockDOM": {
request: HTMLClipboardRequestInput;
response: { "code": 0; "data": string | HTMLClipboardPreflight; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/lute/md2html": {
request: MarkdownHTMLRequestInput;
response: { "code": 0; "data": HTMLData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated"];
};
"/api/lute/spinBlockDOM": {
request: DOMTextRequestInput;
response: { "code": 0; "data": DOMData; "msg": string; } | { "code": -1 | 413; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/lute/wpsPresentation2BlockDOM": {
request: WPSPresentationRequestInput;
response: { "code": 0; "data": WPSPresentationData; "msg": string; } | { "code": -1; "data": ({ "closeTimeout": number; } & { "converted"?: never; "dom"?: never; }) | null | (WPSPresentationData & { "closeTimeout"?: never; }); "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/mcp/addOAuthClient": {
request: MCPOAuthClientRequestInput;
response: { "code": 0; "data": MCPOAuthClientSecret; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/mcp/getOAuth": {
request: EmptyRequestInput;
response: { "code": 0; "data": MCPOAuthStatus; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/mcp/removeOAuthClient": {
request: MCPOAuthRemoveRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/mcp/setOAuth": {
request: MCPOAuthConfigInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/network/echo": {
request: Blob;
response: { "code": 0; "data": NetworkEchoData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "raw";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/network/echo/*path": {
request: Blob;
response: { "code": 0; "data": NetworkEchoData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "raw";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/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";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/network/proxy": {
request: Blob;
response: Blob | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "raw";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
output: "proxy";
proxy: {"kind":"http","contentType":"application/octet-stream","upstreamStatuses":true};
};
@@ -4555,221 +5365,309 @@ export interface APIPOSTRoutes {
request: ChangeMasterPasswordRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/notebook/changeSortNotebook": {
request: ChangeSortNotebookRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/notebook/closeNotebook": {
request: CloseNotebookRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/notebook/commitNotebookArchive": {
request: CommitNotebookArchiveRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/notebook/createEncryptedNotebook": {
request: CreateEncryptedNotebookRequestInput;
response: { "code": 0; "data": CreateNotebookData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/notebook/createNotebook": {
request: CreateNotebookRequestInput;
response: { "code": 0; "data": CreateNotebookData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/notebook/disableEncryptedNotebooks": {
request: EmptyRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/notebook/enableEncryptedNotebooks": {
request: NotebookPasswordRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/notebook/exportNotebookCryptoBackup": {
request: EmptyRequestInput;
response: { "code": 0; "data": NotebookCryptoBackupData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/notebook/getEncryptedNotebookStatus": {
request: EmptyRequestInput;
response: { "code": 0; "data": EncryptedNotebookStatusData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/notebook/getNotebookArchiveCandidates": {
request: EmptyRequestInput;
response: { "code": 0; "data": NotebookArchiveCandidatesData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/notebook/getNotebookConf": {
request: CloseNotebookRequestInput;
response: { "code": 0; "data": NotebookConfData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated"];
};
"/api/notebook/getNotebookInfo": {
request: NotebookIDRequestInput;
response: { "code": 0; "data": NotebookInfoData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated"];
};
"/api/notebook/importNotebookArchive": {
request: ImportNotebookArchiveRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "multipart";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/notebook/importNotebookCryptoBackup": {
request: ImportNotebookCryptoBackupRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "multipart";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/notebook/lockEncryptedNotebooksOnSystemLock": {
request: EmptyRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/notebook/lockNotebook": {
request: NotebookIDRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/notebook/lsNotebooks": {
request: ListNotebooksRequestInput;
response: { "code": 0; "data": ListNotebooksData | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "legacyOptional";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated"];
};
"/api/notebook/openNotebook": {
request: OpenNotebookRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/notebook/prepareNotebookArchive": {
request: PrepareNotebookArchiveRequestInput;
response: { "code": 0; "data": NotebookArchiveData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/notebook/removeNotebook": {
request: NotebookIDRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/notebook/renameNotebook": {
request: RenameNotebookRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/notebook/reorder": {
request: ReorderNotebooksRequestInput;
response: { "code": 0; "data": ReorderData | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null | ReorderData | null; "msg": string; };
body: "structJSON";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/notebook/setEncryptedNotebookFollowSystemLock": {
request: EncryptedNotebookFollowSystemLockRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/notebook/setNotebookConf": {
request: SetNotebookConfRequestInput;
response: { "code": 0; "data": NotebookConf | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/notebook/setNotebookCryptoAutoLock": {
request: NotebookCryptoAutoLockRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/notebook/setNotebookIcon": {
request: SetNotebookIconRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/notebook/touchEncryptedNotebooks": {
request: EmptyRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/notebook/unlockAndOpenNotebook": {
request: UnlockNotebookRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/notebook/unlockNotebook": {
request: UnlockNotebookRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/notification/pushErrMsg": {
request: NotificationRequestInput;
response: { "code": 0; "data": NotificationData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/notification/pushMsg": {
request: NotificationRequestInput;
response: { "code": 0; "data": NotificationData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/outline/getDocHeadingNumbers": {
request: HeadingNumbersRequestInput;
response: { "code": 0; "data": Record<string, string> | null; "msg": string; } | { "code": -1 | 1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated"];
};
"/api/outline/getDocOutline": {
request: OutlineRequestInput;
response: { "code": 0; "data": Array<SearchPath | null> | null; "msg": string; } | { "code": -1 | 1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated"];
};
"/api/petal/getPluginPublishInfo": {
request: PluginPublishRequestInput;
response: { "code": 0; "data": PluginPublishInfo; "msg": string; } | { "code": -1 | 400 | 403 | 500; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/petal/loadPetals": {
request: LoadPetalsRequestInput;
response: { "code": 0; "data": Array<Petal | null> | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated"];
};
"/api/petal/loadPluginPublishData": {
request: PluginPublishRequestInput;
response: { "code": 0; "data": Record<string, null | string | number | boolean>; "msg": string; } | { "code": -1 | 400 | 403 | 404 | 500; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated"];
};
"/api/petal/savePluginPublishData": {
request: SavePluginPublishDataRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1 | 400 | 403 | 500; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/petal/setPetalEnabled": {
request: SetPetalEnabledRequestInput;
response: { "code": 0; "data": Petal | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/petal/setPetalPublishEnabled": {
request: SetPetalPublishEnabledRequestInput;
response: { "code": 0; "data": Petal | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/petal/setPluginPublishDataGrant": {
request: SetPluginPublishDataGrantRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1 | 400 | 403 | 500; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/plugin/getLoadedPlugin": {
request: LoadedPluginRequestInput;
response: { "code": 0; "data": LoadedPlugin | null; "msg": string; } | { "code": -1 | 1 | 2 | 3 | 4; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated"];
};
"/api/plugin/listLoadedPlugins": {
request: EmptyRequestInput;
response: { "code": 0; "data": Array<LoadedPlugin | null> | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated"];
};
"/api/plugin/rpc": {
request: PluginRPCRequestFieldsInput | [PluginRPCRequestFieldsInput, ...Array<PluginRPCRequestFieldsInput>];
response: (PluginRPCSuccess & { "error"?: never; }) | (PluginRPCFailure & { "result"?: never; }) | [(PluginRPCSuccess & { "error"?: never; }) | (PluginRPCFailure & { "result"?: never; }), ...Array<(PluginRPCSuccess & { "error"?: never; }) | (PluginRPCFailure & { "result"?: never; })>] | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
output: "directJSON";
noContent: true;
};
@@ -4777,6 +5675,8 @@ export interface APIPOSTRoutes {
request: PluginRPCRequestFieldsInput | [PluginRPCRequestFieldsInput, ...Array<PluginRPCRequestFieldsInput>];
response: (PluginRPCSuccess & { "error"?: never; }) | (PluginRPCFailure & { "result"?: never; }) | [(PluginRPCSuccess & { "error"?: never; }) | (PluginRPCFailure & { "result"?: never; }), ...Array<(PluginRPCSuccess & { "error"?: never; }) | (PluginRPCFailure & { "result"?: never; })>] | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
output: "directJSON";
noContent: true;
};
@@ -4784,1184 +5684,1656 @@ export interface APIPOSTRoutes {
request: SQLQueryRequestInput;
response: { "code": 0; "data": Array<Record<string, null | string | number | boolean> | null>; "limit": number; "msg": string; "truncated": boolean; } | ({ "code": -1 | 1; "data": { "closeTimeout": number; } | null; "msg": string; } & { "limit"?: never; "truncated"?: never; });
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/ref/getBacklink2": {
request: BacklinkListRequestInput;
response: { "code": 0; "data": (BacklinkList & { "refDefs"?: never; }) | (BacklinkRefDefs & { "backlinks"?: never; "backmentions"?: never; "box"?: never; "k"?: never; "linkRefsCount"?: never; "mentionsCount"?: never; "mk"?: never; "revision"?: never; "unchanged"?: never; }) | null; "msg": string; } | { "code": -1 | 1; "data": { "closeTimeout": number; } | null | (BacklinkList & { "refDefs"?: never; }) | (BacklinkRefDefs & { "backlinks"?: never; "backmentions"?: never; "box"?: never; "k"?: never; "linkRefsCount"?: never; "mentionsCount"?: never; "mk"?: never; "revision"?: never; "unchanged"?: never; }) | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated"];
};
"/api/ref/getBacklinkDoc": {
request: BacklinkDocumentRequestInput;
response: { "code": 0; "data": BacklinkContextData; "msg": string; } | { "code": -1 | 1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated"];
};
"/api/ref/getBackmentionDoc": {
request: BackmentionDocumentRequestInput;
response: { "code": 0; "data": BacklinkContextData; "msg": string; } | { "code": -1 | 1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated"];
};
"/api/ref/getGlobalBacklinkContexts": {
request: GlobalBacklinkContextRequestInput;
response: { "code": 0; "data": GlobalBacklinkContextData; "msg": string; } | { "code": -1 | 1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated"];
};
"/api/ref/getGlobalBacklinks": {
request: GlobalBacklinkListRequestInput;
response: { "code": 0; "data": GlobalBacklinkListData; "msg": string; } | { "code": -1 | 1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated"];
};
"/api/ref/refreshBacklink": {
request: RefreshBacklinkRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/repo/checkSnapshot": {
request: EmptyRequestInput;
response: { "code": 0; "data": CheckSnapshotData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/repo/checkoutRepo": {
request: CheckoutRepoRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/repo/createSnapshot": {
request: CreateSnapshotRequestInput;
response: { "code": 0; "data": CreateSnapshotData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/repo/diffRepoSnapshots": {
request: DiffRepoSnapshotsRequestInput;
response: { "code": 0; "data": RepoDiffData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/repo/downloadCloudSnapshot": {
request: DownloadCloudSnapshotRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/repo/exportRepoFile": {
request: ExportRepoFileRequestInput;
response: { "code": 0; "data": RepoExportData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/repo/getCloudRepoSnapshots": {
request: GetCloudRepoSnapshotsRequestInput;
response: { "code": 0; "data": RepoCloudSnapshotsData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/repo/getCloudRepoTagSnapshots": {
request: EmptyRequestInput;
response: { "code": 0; "data": RepoCloudTagsData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/repo/getRepoDocHistory": {
request: GetRepoDocHistoryRequestInput;
response: { "code": 0; "data": RepoDocHistoryData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/repo/getRepoFile": {
request: GetRepoFileRequestInput;
response: Blob | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
output: "binary";
};
"/api/repo/getRepoSnapshots": {
request: GetRepoSnapshotsRequestInput;
response: { "code": 0; "data": RepoSnapshotsData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/repo/getRepoTagSnapshots": {
request: EmptyRequestInput;
response: { "code": 0; "data": RepoTagsData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/repo/importRepoKey": {
request: ImportRepoKeyRequestInput;
response: { "code": 0; "data": RepoKeyData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/repo/initRepoKey": {
request: EmptyRequestInput;
response: { "code": 0; "data": RepoKeyData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/repo/initRepoKeyFromPassphrase": {
request: InitRepoKeyFromPassphraseRequestInput;
response: { "code": 0; "data": RepoKeyData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/repo/openRepoSnapshotFile": {
request: OpenRepoSnapshotFileRequestInput;
response: { "code": 0; "data": RepoOpenFileData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/repo/purgeCloudRepo": {
request: EmptyRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/repo/purgeRepo": {
request: EmptyRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/repo/removeCloudRepoTagSnapshot": {
request: RemoveCloudRepoTagSnapshotRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/repo/removeRepoTagSnapshot": {
request: RemoveRepoTagSnapshotRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/repo/resetRepo": {
request: EmptyRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/repo/rollbackRepoSnapshotFile": {
request: RollbackRepoSnapshotFileRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/repo/searchRepoFile": {
request: SearchRepoFileRequestInput;
response: { "code": 0; "data": RepoSearchData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/repo/setRepoIndexRetentionDays": {
request: SetRepoIndexRetentionDaysRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/repo/setRetentionIndexesDaily": {
request: SetRetentionIndexesDailyRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/repo/setSnapshotMemo": {
request: SetSnapshotMemoRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/repo/tagSnapshot": {
request: TagSnapshotRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/repo/uploadCloudSnapshot": {
request: UploadCloudSnapshotRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/riff/addRiffCards": {
request: RiffDeckCardsRequestInput;
response: { "code": 0; "data": RiffDeck | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/riff/batchSetRiffCardsDueTime": {
request: SetRiffCardsDueRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/riff/createRiffDeck": {
request: CreateRiffDeckRequestInput;
response: { "code": 0; "data": RiffDeck | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/riff/getNotebookRiffCards": {
request: RiffCardsRequestInput;
response: { "code": 0; "data": RiffCardsData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/riff/getNotebookRiffDueCards": {
request: RiffNotebookDueCardsRequestInput;
response: { "code": 0; "data": RiffDueCardsData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/riff/getRiffCards": {
request: RiffCardsRequestInput;
response: { "code": 0; "data": RiffCardsData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/riff/getRiffCardsByBlockIDs": {
request: RiffBlockIDsRequestInput;
response: { "code": 0; "data": RiffBlocksData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/riff/getRiffDecks": {
request: EmptyRequestInput;
response: { "code": 0; "data": Array<RiffDeck | null>; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/riff/getRiffDueCards": {
request: RiffDueCardsRequestInput;
response: { "code": 0; "data": RiffDueCardsData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/riff/getTreeRiffCards": {
request: RiffCardsRequestInput;
response: { "code": 0; "data": RiffCardsData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/riff/getTreeRiffDueCards": {
request: RiffTreeDueCardsRequestInput;
response: { "code": 0; "data": RiffDueCardsData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/riff/removeRiffCards": {
request: RiffDeckCardsRequestInput;
response: { "code": 0; "data": RiffDeck | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/riff/removeRiffDeck": {
request: RiffDeckRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/riff/renameRiffDeck": {
request: RenameRiffDeckRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/riff/resetRiffCards": {
request: ResetRiffCardsRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/riff/reviewRiffCard": {
request: ReviewRiffCardRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/riff/skipReviewRiffCard": {
request: RiffCardRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/search/findReplace": {
request: FindReplaceRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1 | 1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/search/fullTextSearchAssetContent": {
request: SearchAssetContentRequestInput;
response: { "code": 0; "data": SearchAssetContentData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated"];
};
"/api/search/fullTextSearchBlock": {
request: FullTextSearchBlockRequestInput;
response: { "code": 0; "data": FullTextSearchBlockData | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated"];
};
"/api/search/getAssetContent": {
request: AssetContentRequestInput;
response: { "code": 0; "data": AssetContentData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated"];
};
"/api/search/getAssetContentByPath": {
request: SearchPathRequestInput;
response: { "code": 0; "data": AssetContentData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated"];
};
"/api/search/getEmbedBlock": {
request: GetEmbedBlockRequestInput;
response: { "code": 0; "data": EmbedBlocksData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated"];
};
"/api/search/listInvalidBlockRefs": {
request: SearchPageRequestInput;
response: { "code": 0; "data": SearchBlocksData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated"];
};
"/api/search/removeTemplate": {
request: SearchPathRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/search/searchAsset": {
request: SearchAssetRequestInput;
response: { "code": 0; "data": Array<SearchAsset | null> | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/search/searchEmbedBlock": {
request: SearchEmbedBlockRequestInput;
response: { "code": 0; "data": EmbedBlocksData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated"];
};
"/api/search/searchRefBlock": {
request: SearchRefBlockRequestInput;
response: { "code": 0; "data": SearchRefResult | (SearchRefCorrelation & { "blocks"?: never; "k"?: never; "newDoc"?: never; }); "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null | SearchRefResult | (SearchRefCorrelation & { "blocks"?: never; "k"?: never; "newDoc"?: never; }); "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated"];
};
"/api/search/searchTag": {
request: SearchTagRequestInput;
response: { "code": 0; "data": SearchTagData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/search/searchTemplate": {
request: SearchKeywordRequestInput;
response: { "code": 0; "data": SearchTemplateData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/search/searchWidget": {
request: SearchKeywordRequestInput;
response: { "code": 0; "data": SearchWidgetData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/search/semanticSearchBlock": {
request: SearchBlockRequestInput;
response: { "code": 0; "data": SearchBlocksData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated"];
};
"/api/search/updateEmbedBlock": {
request: UpdateEmbedBlockRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated"];
};
"/api/setting/addVirtualBlockRefExclude": {
request: VirtualBlockRefRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/setting/addVirtualBlockRefInclude": {
request: VirtualBlockRefRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/setting/confirmSettingsReset": {
request: ConfirmSettingsResetRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/setting/getBootAppearances": {
request: EmptyRequestInput;
response: { "code": 0; "data": SettingBootAppearancesData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated"];
};
"/api/setting/getCloudUser": {
request: SettingCloudUserRequestInput;
response: { "code": 0; "data": SettingUser | null; "msg": string; } | { "code": -1 | 1 | 255; "data": { "closeTimeout": number; } | null | SettingUser | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated"];
};
"/api/setting/getPandocBin": {
request: EmptyRequestInput;
response: { "code": 0; "data": string; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/setting/getPublish": {
request: EmptyRequestInput;
response: { "code": 0; "data": SettingPublishData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/setting/login2faCloudUser": {
request: SettingLogin2faRequestInput;
response: Login2faEnvelope | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
output: "directJSON";
};
"/api/setting/logoutCloudUser": {
request: EmptyRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/setting/patch": {
request: PatchSettingRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/setting/refreshVirtualBlockRef": {
request: EmptyRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/setting/resetSettings": {
request: ResetSettingsRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/setting/setAI": {
request: SetAIRequestInput;
response: { "code": 0; "data": SettingAI | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/setting/setAppearance": {
request: SetAppearanceRequestInput;
response: { "code": 0; "data": SettingAppearance | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/setting/setBazaar": {
request: SetBazaarRequestInput;
response: { "code": 0; "data": SettingBazaar | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/setting/setBazaarPetalDisabled": {
request: SettingPetalDisabledRequestInput;
response: { "code": 0; "data": SettingPetalDisabledData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/setting/setBootAppearance": {
request: SettingBootAppearanceRequestInput;
response: { "code": 0; "data": SettingBootAppearanceSelection | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/setting/setEditor": {
request: SetEditorRequestInput;
response: { "code": 0; "data": SettingEditor | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/setting/setEditorReadOnly": {
request: EditorReadOnlyRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/setting/setEmoji": {
request: SettingEmojiRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/setting/setEntryVisibility": {
request: SetEntryVisibilityRequestInput;
response: { "code": 0; "data": SettingEntryVisibility | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/setting/setExport": {
request: SetExportRequestInput;
response: { "code": 0; "data": SettingExport | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/setting/setFiletree": {
request: SetFiletreeRequestInput;
response: { "code": 0; "data": SettingFileTree | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/setting/setFlashcard": {
request: SetFlashcardRequestInput;
response: { "code": 0; "data": SettingFlashcard | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/setting/setIcon": {
request: SettingIconRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/setting/setKeymap": {
request: SettingKeymapRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/setting/setPublish": {
request: SetPublishRequestInput;
response: { "code": 0; "data": SettingPublishData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/setting/setSearch": {
request: SetSearchRequestInput;
response: { "code": 0; "data": SettingSearch | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/setting/setSecrets": {
request: SetSecretsRequestInput;
response: { "code": 0; "data": SettingSecrets | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/setting/setSnippet": {
request: SetConfSnippetRequestInput;
response: { "code": 0; "data": SettingSnpt | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/setting/setTheme": {
request: SettingThemeRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/setting/setVariables": {
request: SetVariablesRequestInput;
response: { "code": 0; "data": SettingVariables | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/snippet/getSnippet": {
request: GetSnippetRequestInput;
response: { "code": 0; "data": SnippetsData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated"];
};
"/api/snippet/removeSnippet": {
request: TrimmedIDRequestInput;
response: { "code": 0; "data": Snippet | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/snippet/setSnippet": {
request: SetSnippetRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/sqlite/flushTransaction": {
request: EmptyRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/storage/batchUpdateRecentDocCloseTime": {
request: RecentDocsUpdateRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated"];
};
"/api/storage/getCriteria": {
request: EmptyRequestInput;
response: { "code": 0; "data": Array<Criterion | null> | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated"];
};
"/api/storage/getInlineStyles": {
request: EmptyRequestInput;
response: { "code": 0; "data": InlineStyles | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated"];
};
"/api/storage/getLocalStorage": {
request: EmptyRequestInput;
response: { "code": 0; "data": { [key: string]: JSONValue } | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated"];
};
"/api/storage/getLocalStorageVal": {
request: StorageKeyRequestInput;
response: { "code": 0; "data": JSONValue; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated"];
};
"/api/storage/getLocalStorageVals": {
request: StorageKeysRequestInput;
response: { "code": 0; "data": { [key: string]: JSONValue } | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated"];
};
"/api/storage/getOutlineStorage": {
request: OutlineStorageRequestInput;
response: { "code": 0; "data": { [key: string]: JSONValue } | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/storage/getRecentDocs": {
request: RecentDocsRequestInput;
response: { "code": 0; "data": Array<RecentDoc | null> | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "legacyOptional";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated"];
};
"/api/storage/getViewState": {
request: StorageKeyRequestInput;
response: { "code": 0; "data": { [key: string]: JSONValue } | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/storage/patchViewState": {
request: ViewStatePatchRequestInput;
response: { "code": 0; "data": { [key: string]: JSONValue } | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/storage/removeCriterion": {
request: RemoveCriterionRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/storage/removeLocalStorageVal": {
request: StorageRemoveRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/storage/removeLocalStorageVals": {
request: StorageRemoveKeysRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/storage/removeOutlineStorage": {
request: OutlineStorageRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/storage/removeViewState": {
request: StorageKeyRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/storage/setCriterion": {
request: SetCriterionRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/storage/setInlineStyles": {
request: SetInlineStylesRequestInput;
response: { "code": 0; "data": InlineStyles | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/storage/setLocalStorage": {
request: EmptyRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/storage/setLocalStorageVal": {
request: StorageSetRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/storage/setLocalStorageVals": {
request: StorageSetKeysRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/storage/setOutlineStorage": {
request: OutlineStorageSetRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/storage/setWorkspaceAVPalette": {
request: WorkspaceAVPaletteRequestInput;
response: { "code": 0; "data": InlineStyles | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/storage/updateRecentDocCloseTime": {
request: RecentDocUpdateRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated"];
};
"/api/storage/updateRecentDocOpenTime": {
request: RecentDocUpdateRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated"];
};
"/api/storage/updateRecentDocViewTime": {
request: RecentDocUpdateRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated"];
};
"/api/sync/createCloudSyncDir": {
request: SyncNameRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/sync/exportSyncProviderS3": {
request: EmptyRequestInput;
response: { "code": 0; "data": SyncProviderExportData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/sync/exportSyncProviderWebDAV": {
request: EmptyRequestInput;
response: { "code": 0; "data": SyncProviderExportData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/sync/getBootSync": {
request: EmptyRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1 | 1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated"];
};
"/api/sync/getSyncInfo": {
request: EmptyRequestInput;
response: { "code": 0; "data": SyncInfoData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/sync/getSyncLANStatus": {
request: EmptyRequestInput;
response: { "code": 0; "data": SyncLANStatus; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/sync/importSyncProviderS3": {
request: SyncProviderImportRequestInput;
response: { "code": 0; "data": SyncS3Data; "msg": string; } | { "code": -1; "data": ({ "closeTimeout": number; } & { "s3"?: never; }) | null | (SyncS3Data & { "closeTimeout"?: never; }); "msg": string; };
body: "multipart";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/sync/importSyncProviderWebDAV": {
request: SyncProviderImportRequestInput;
response: { "code": 0; "data": SyncWebDAVData; "msg": string; } | { "code": -1; "data": ({ "closeTimeout": number; } & { "webdav"?: never; }) | null | (SyncWebDAVData & { "closeTimeout"?: never; }); "msg": string; };
body: "multipart";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/sync/listCloudSyncDir": {
request: EmptyRequestInput;
response: { "code": 0; "data": CloudSyncDirsData; "msg": string; } | { "code": -1 | 1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/sync/performBootSync": {
request: EmptyRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1 | 1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/sync/performSync": {
request: PerformSyncRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/sync/removeCloudSyncDir": {
request: SyncNameRequestInput;
response: { "code": 0; "data": string; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/sync/setCloudSyncDir": {
request: SyncNameRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/sync/setSyncAssetDownloadMode": {
request: SyncModeRequestInput;
response: { "code": 0; "data": SyncAssetDownloadModeData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/sync/setSyncEnable": {
request: SyncEnabledRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/sync/setSyncGenerateConflictDoc": {
request: SyncEnabledRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/sync/setSyncInterval": {
request: SyncIntervalRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/sync/setSyncLAN": {
request: SyncLANRequestInput;
response: { "code": 0; "data": SyncLANStatus; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/sync/setSyncMode": {
request: SyncModeRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/sync/setSyncPerception": {
request: SyncEnabledRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/sync/setSyncProvider": {
request: SyncProviderRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/sync/setSyncProviderLocal": {
request: SetSyncLocalRequestInput;
response: { "code": 0; "data": SyncLocalData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/sync/setSyncProviderS3": {
request: SetSyncS3RequestInput;
response: { "code": 0; "data": SyncS3Data; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/sync/setSyncProviderWebDAV": {
request: SetSyncWebDAVRequestInput;
response: { "code": 0; "data": SyncWebDAVData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/system/addCustomEmoji": {
request: SystemCustomEmojiRequestInput;
response: { "code": 0; "data": SystemPathData; "msg": string; } | { "code": -1 | 400 | 413; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "form";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/system/addMicrosoftDefenderExclusion": {
request: EmptyRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/system/appendKeyboardLog": {
request: SystemKeyboardLogRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/system/bootProgress": {
request: EmptyRequestInput;
response: { "code": 0; "data": BootProgressData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["public"];
};
"/api/system/checkUpdate": {
request: SystemCheckUpdateRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/system/checkWorkspaceDir": {
request: SystemPathRequestInput;
response: { "code": 0; "data": SystemWorkspaceCheckData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/system/clearTempFiles": {
request: EmptyRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/system/createWorkspaceDir": {
request: SystemPathRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/system/currentTime": {
request: EmptyRequestInput;
response: { "code": 0; "data": number; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["public"];
};
"/api/system/dismissOnboarding": {
request: EmptyRequestInput;
response: { "code": 0; "data": SystemOnboarding | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/system/ensureOnboarding": {
request: EmptyRequestInput;
response: { "code": 0; "data": SystemOnboarding | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/system/exit": {
request: SystemExitRequestInput;
response: { "code": 0; "data": SystemExitData; "msg": string; } | { "code": -1 | 1 | 2; "data": ({ "closeTimeout": number; } & { "installPkgPath"?: never; }) | null | SystemExitData; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/system/exportConf": {
request: EmptyRequestInput;
response: { "code": 0; "data": SystemExportConfData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/system/exportLog": {
request: EmptyRequestInput;
response: { "code": 0; "data": SystemZipData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/system/exportTLSCABundle": {
request: EmptyRequestInput;
response: { "code": 0; "data": SystemPathData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/system/exportTLSCACert": {
request: EmptyRequestInput;
response: { "code": 0; "data": SystemPathData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/system/getChangelog": {
request: SystemChangelogRequestInput;
response: { "code": 0; "data": SystemChangelogData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "legacyOptional";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated"];
};
"/api/system/getConf": {
request: EmptyRequestInput;
response: { "code": 0; "data": SystemConfData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated"];
};
"/api/system/getCustomFonts": {
request: EmptyRequestInput;
response: { "code": 0; "data": Array<SystemCustomFont | null> | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated"];
};
"/api/system/getEmojiConf": {
request: EmptyRequestInput;
response: { "code": 0; "data": Array<SystemEmojiGroup | null> | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated"];
};
"/api/system/getMobileWorkspaces": {
request: EmptyRequestInput;
response: { "code": 0; "data": Array<string> | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/system/getNetwork": {
request: EmptyRequestInput;
response: { "code": 0; "data": NetworkData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/system/getRuntimeInfo": {
request: EmptyRequestInput;
response: { "code": 0; "data": SystemRuntimeInfoData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/system/getSysFonts": {
request: EmptyRequestInput;
response: { "code": 0; "data": Array<SystemFont | null> | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/system/getWorkspaceInfo": {
request: EmptyRequestInput;
response: { "code": 0; "data": WorkspaceInfoData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/system/getWorkspaceStorage": {
request: EmptyRequestInput;
response: { "code": 0; "data": WorkspaceStorageData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/system/getWorkspaces": {
request: EmptyRequestInput;
response: { "code": 0; "data": Array<SystemWorkspace | null> | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated"];
};
"/api/system/ignoreAddMicrosoftDefenderExclusion": {
request: EmptyRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/system/importConf": {
request: SystemImportConfRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "multipart";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/system/importCustomFont": {
request: SystemImportFileRequestInput;
response: { "code": 0; "data": SystemCustomFont | null; "msg": string; } | { "code": -1 | 400 | 413; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "multipart";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/system/importTLSCABundle": {
request: SystemImportFileRequestInput;
response: { "code": 0; "data": SystemMessageData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "multipart";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/system/loginAuth": {
request: SystemLoginAuthRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1 | 1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["public"];
};
"/api/system/logoutAuth": {
request: EmptyRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1 | 1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["public"];
};
"/api/system/oidc/mobileCallback": {
request: SystemOIDCMobileRequestInput;
response: { "code": 0; "data": SystemOIDCMobileData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "structJSON";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["public"];
};
"/api/system/oidc/poll": {
request: SystemOIDCPollRequestInput;
response: { "code": 0; "data": SystemOIDCPollData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "structJSON";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["public"];
};
"/api/system/oidc/start": {
request: SystemOIDCStartRequestInput;
response: { "code": 0; "data": SystemOIDCStartData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "structJSON";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["public"];
};
"/api/system/oidc/validate": {
request: SystemOIDCRequestInput;
response: { "code": 0; "data": SystemOIDCStartData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "structJSON";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/system/oidc/validateActivate": {
request: SystemOIDCPollRequestInput;
response: { "code": 0; "data": SystemOIDCActivateData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "structJSON";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/system/oidc/validateCancel": {
request: SystemOIDCPollRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "structJSON";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin"];
};
"/api/system/oidc/validatePoll": {
request: SystemOIDCPollRequestInput;
response: { "code": 0; "data": SystemOIDCValidatePollData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "structJSON";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["public"];
};
"/api/system/rebuildDataIndex": {
request: EmptyRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/system/reloadUI": {
request: EmptyRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/system/removeCustomFont": {
request: SystemRemoveCustomFontRequestInput;
response: { "code": 0; "data": SystemRemoveCustomFontData; "msg": string; } | { "code": -1 | 400 | 404; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/system/removeWorkspaceDir": {
request: SystemPathRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/system/removeWorkspaceDirPhysically": {
request: SystemPathRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/system/setAPIToken": {
request: SystemAPITokenRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/system/setAccessAuthCode": {
request: SystemAccessAuthCodeRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/system/setAppearanceMode": {
request: SystemAppearanceModeRequestInput;
response: { "code": 0; "data": SystemAppearanceData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/system/setAutoLaunch": {
request: AutoLaunchRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/system/setDownloadInstallPkg": {
request: DownloadInstallPkgRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/system/setFollowSystemLockScreen": {
request: LockScreenRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/system/setNetworkProxy": {
request: NetworkProxyInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/system/setNetworkServe": {
request: NetworkServeRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/system/setNetworkServeTLS": {
request: NetworkServeTLSRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/system/setOIDC": {
request: SystemOIDCRequestInput;
response: { "code": 0; "data": SystemOIDC | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "structJSON";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/system/setSettingsWindow": {
request: SettingsWindowRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/system/setUILayout": {
request: SystemUILayoutRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/system/setUpdateChannel": {
request: UpdateChannelRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/system/setWorkspaceDir": {
request: SystemPathRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/system/uiproc": {
request: SystemUIProcessRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated"];
emptyResponseStatuses: [200];
};
"/api/system/vacuumDataIndex": {
request: EmptyRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/system/version": {
request: EmptyRequestInput;
response: { "code": 0; "data": string; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["public"];
};
"/api/tag/getTag": {
request: GetTagRequestInput;
response: { "code": 0; "data": Array<TagData | null> | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated"];
};
"/api/tag/removeTag": {
request: RemoveTagRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/tag/renameTag": {
request: RenameTagRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/template/docSaveAsTemplate": {
request: SaveTemplateRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1 | 1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/template/getDocSaveAsTemplateInfo": {
request: TemplateDocumentRequestInput;
response: { "code": 0; "data": TemplateDocumentInfo; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/template/manage": {
request: TemplateFileRequestInput;
response: { "code": 0; "data": Array<TemplateFileEntry> | TemplateFileSource | (TemplateFileRevision & { "content"?: never; "path"?: never; "sourceDocID"?: never; }) | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "structJSON";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/template/render": {
request: RenderTemplateRequestInput;
response: { "code": 0; "data": RenderTemplateData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/template/renderSprig": {
request: RenderSprigRequestInput;
response: { "code": 0; "data": string; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/transactions": {
request: PerformTransactionsRequestInput;
response: { "code": 0; "data": Array<Transaction | null> | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/transactions/clearHistory": {
request: TransactionClearHistoryRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/transactions/redo": {
request: TransactionHistoryRequestInput;
response: { "code": 0; "data": (TransactionHistoryEmpty & { "doOperations"?: never; "failed"?: never; "isUndo"?: never; "msg"?: never; "mutatedRootIDs"?: never; "undoOperations"?: never; }) | (TransactionHistoryFailure & { "canRedo"?: never; "canUndo"?: never; "doOperations"?: never; "isUndo"?: never; "mutatedRootIDs"?: never; "undoOperations"?: never; }) | (TransactionHistoryApplied & { "failed"?: never; "msg"?: never; }); "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/transactions/undo": {
request: TransactionHistoryRequestInput;
response: { "code": 0; "data": (TransactionHistoryEmpty & { "doOperations"?: never; "failed"?: never; "isUndo"?: never; "msg"?: never; "mutatedRootIDs"?: never; "undoOperations"?: never; }) | (TransactionHistoryFailure & { "canRedo"?: never; "canUndo"?: never; "doOperations"?: never; "isUndo"?: never; "mutatedRootIDs"?: never; "undoOperations"?: never; }) | (TransactionHistoryApplied & { "failed"?: never; "msg"?: never; }); "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/transactions/undoState": {
request: TransactionUndoStateRequestInput;
response: { "code": 0; "data": TransactionUndoState; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated"];
};
"/api/ui/reloadAttributeView": {
request: BlockIDRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/ui/reloadFiletree": {
request: EmptyRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/ui/reloadIcon": {
request: EmptyRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/ui/reloadProtyle": {
request: BlockIDRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/ui/reloadTag": {
request: EmptyRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/ui/reloadTheme": {
request: EmptyRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/api/ui/reloadUI": {
request: EmptyRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "none";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
};
"/oauth/mcp/consent": {
request: MCPOAuthConsentRequestInput;
response: Blob | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "form";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["public"];
output: "binary";
contentVariants: [{"status":302,"contentType":"text/html"},{"status":400,"contentType":"text/html"}];
};
@@ -5969,6 +7341,8 @@ export interface APIPOSTRoutes {
request: MCPOAuthTokenRequestInput;
response: Blob | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "form";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["public"];
output: "binary";
contentVariants: [{"status":200,"contentType":"application/json"},{"status":400,"contentType":"application/json"},{"status":401,"contentType":"application/json"},{"status":404,"contentType":"application/json"},{"status":429,"contentType":"application/json"},{"status":500,"contentType":"application/json"}];
};
@@ -5976,6 +7350,8 @@ export interface APIPOSTRoutes {
request: MCPOAuthTokenRequestInput;
response: Blob | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "form";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["public"];
output: "binary";
contentVariants: [{"status":200,"contentType":"application/json"},{"status":400,"contentType":"application/json"},{"status":401,"contentType":"application/json"},{"status":404,"contentType":"application/json"},{"status":429,"contentType":"application/json"},{"status":500,"contentType":"application/json"}];
};
@@ -5983,6 +7359,8 @@ export interface APIPOSTRoutes {
request: Blob;
response: Blob | JSONValue | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "raw";
+ /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */
+ authorization?: readonly ["authenticated","admin","writable"];
output: "pluginService";
pluginService: {"variants":[{"mode":"JSON","statusPolicy":"plugin","mediaTypes":["application/json"],"payload":"json","headersOverrideMedia":true},{"mode":"JSONP","statusPolicy":"plugin","mediaTypes":["application/javascript","application/json"],"payload":"jsonp-or-json","headersOverrideMedia":true},{"mode":"AsciiJSON","statusPolicy":"plugin","mediaTypes":["application/json"],"payload":"json","headersOverrideMedia":true},{"mode":"IndentedJSON","statusPolicy":"plugin","mediaTypes":["application/json"],"payload":"json","headersOverrideMedia":true},{"mode":"PureJSON","statusPolicy":"plugin","mediaTypes":["application/json"],"payload":"json","headersOverrideMedia":true},{"mode":"SecureJSON","statusPolicy":"plugin","mediaTypes":["application/json"],"payload":"secure-json","headersOverrideMedia":true},{"mode":"XML","statusPolicy":"plugin","mediaTypes":["application/xml"],"payload":"xml","headersOverrideMedia":true},{"mode":"YAML","statusPolicy":"plugin","mediaTypes":["application/yaml"],"payload":"yaml","headersOverrideMedia":true},{"mode":"TOML","statusPolicy":"plugin","mediaTypes":["application/toml"],"payload":"toml","headersOverrideMedia":true},{"mode":"ProtoBuf","statusPolicy":"plugin","mediaTypes":["application/x-protobuf"],"payload":"protobuf","headersOverrideMedia":true},{"mode":"file","statusPolicy":"file","mediaTypes":["dynamic"],"payload":"bytes","headersOverrideMedia":true},{"mode":"string","statusPolicy":"plugin","mediaTypes":["text/plain"],"payload":"text","headersOverrideMedia":true},{"mode":"raw","statusPolicy":"plugin","mediaTypes":["dynamic"],"payload":"bytes","headersOverrideMedia":true},{"mode":"stream","statusPolicy":"plugin","mediaTypes":["dynamic"],"payload":"bytes","headersOverrideMedia":true},{"mode":"redirect","statusPolicy":"redirect","mediaTypes":["text/html"],"payload":"redirect","headersOverrideMedia":true},{"mode":"proxy","statusPolicy":"proxy","mediaTypes":["upstream"],"payload":"bytes","headersOverrideMedia":true},{"mode":"empty","statusPolicy":"plugin","mediaTypes":["optional"],"payload":"none","headersOverrideMedia":true},{"mode":"websocket","statusPolicy":"websocket","mediaTypes":["upgrade-or-text"],"payload":"frames","headersOverrideMedia":false},{"mode":"sse","statusPolicy":"sse","mediaTypes":["text/event-stream"],"payload":"events","headersOverrideMedia":false},{"mode":"admission","statusPolicy":"admission","mediaTypes":["text/plain"],"payload":"text","headersOverrideMedia":true}],"admissionStatuses":[400,404,500,503],"webSocketFrames":["text","binary","close","ping","pong"],"sseEventNames":"dynamic","sseData":"json-or-text","sseEvent":{"type":"object","properties":{"data":{"$ref":"#/$defs/JSONValue"},"event":{"type":"string"},"id":{"type":"string"},"retry":{"type":"integer"}},"required":["data"],"additionalProperties":false}};
};
diff --git a/docs/API-CONTRACTS.md b/docs/API-CONTRACTS.md
index d42f459b97..ad8c8874c5 100644
--- a/docs/API-CONTRACTS.md
+++ b/docs/API-CONTRACTS.md
@@ -8,13 +8,13 @@ This document defines type declarations, compatibility requirements, generated a
## Endpoint maintenance
-1. Define or update transport types and endpoints in the contract package, specifying request bodies, error codes, null values, defaults, and historical input compatibility
-2. Bind business entry points through `contractHandler`, preserving route middleware order, authorization, and lease scope
+1. Define or update transport types and endpoints in the contract package, explicitly declaring public or authenticated access, administrator and write requirements, request bodies, error codes, null values, defaults, and historical input compatibility
+2. Bind business entry points through `contractHandler` and register their handlers with `contractRouteHandlers`, preserving route middleware order and lease scope
3. Keep `legacy_routes.json` empty; when deleting an endpoint, remove both its route registration and contract definition
4. Update actual-response, input-compatibility, and strict type tests; run generation and correct calls identified by the compiler
5. Synchronize generated and related public declarations in `petal`; update API documentation for public endpoints
-Generation checks inspect actual route and handler declarations to verify methods, paths, handlers, and contract adapters. Prerelease CI compares the legacy list with the previous version tag reachable from the current commit's parent and prevents additional records. Do not bypass contract checks with `any`, type assertions, or changes to the legacy list.
+Generation checks inspect actual route and handler declarations to verify methods, paths, handlers, contract adapters, and authorization middleware. `define` requires an explicit authorization argument; public endpoints use `PublicAccess`, while authenticated endpoints may add `AdminAccess` and `WritableAccess`. Domain registration functions retain literal methods and paths, and `contractRouteHandlers` derives middleware from the bound endpoint. Generation rejects missing policies, mismatched endpoint bindings, and missing or reordered explicit middleware. Authorization metadata does not replace resource permissions or the global notebook lease middleware. Prerelease CI compares the legacy list with the previous version tag reachable from the current commit's parent and prevents additional records. Do not bypass contract checks with `any`, type assertions, or changes to the legacy list.
## Contracts and implementation
diff --git a/docs/API-CONTRACTS.zh-CN.md b/docs/API-CONTRACTS.zh-CN.md
index 8844f71c38..c32ea57e60 100644
--- a/docs/API-CONTRACTS.zh-CN.md
+++ b/docs/API-CONTRACTS.zh-CN.md
@@ -8,13 +8,13 @@
## 接口维护流程
-1. 在契约包中定义或更新传输类型与端点,明确请求体、错误码、空值、默认值和历史输入兼容规则
-2. 用 `contractHandler` 绑定业务入口,保持路由中间件顺序、授权和租约范围
+1. 在契约包中定义或更新传输类型与端点,显式声明公开或已鉴权访问、管理员和写入要求,以及请求体、错误码、空值、默认值和历史输入兼容规则
+2. 用 `contractHandler` 绑定业务入口,并用 `contractRouteHandlers` 注册处理函数,保持路由中间件顺序和租约范围
3. 保持 `legacy_routes.json` 为空;删除接口时同步移除路由注册和契约定义
4. 更新实际响应、兼容输入和严格类型测试,运行生成器,再修正编译器指出的调用问题
5. 同步 `petal` 的生成声明和相关公共声明;公开接口同步更新接口文档
-生成检查读取实际路由与处理函数声明,验证方法、路径、处理函数和契约适配器的对应关系。CI 对照变更前的清单阻止增加存量记录。不得通过 `any`、类型断言或修改存量清单规避契约检查。
+生成检查读取实际路由与处理函数声明,验证方法、路径、处理函数、契约适配器和鉴权中间件的对应关系。`define` 要求显式传入访问策略:公开端点使用 `PublicAccess`,已鉴权端点可叠加 `AdminAccess` 和 `WritableAccess`。分域注册函数保留字面量方法与路径,`contractRouteHandlers` 从绑定端点派生中间件。生成检查拒绝缺少策略、端点绑定不匹配,以及显式中间件遗漏或顺序改变。鉴权元数据不替代资源权限或全局笔记本租约中间件。CI 对照变更前的清单阻止增加存量记录。不得通过 `any`、类型断言或修改存量清单规避契约检查。
## 契约与实现
diff --git a/kernel/api/contract_routes.go b/kernel/api/contract_routes.go
new file mode 100644
index 0000000000..a4be5bd9c6
--- /dev/null
+++ b/kernel/api/contract_routes.go
@@ -0,0 +1,29 @@
+package api
+
+import (
+ "fmt"
+
+ "github.com/gin-gonic/gin"
+ "github.com/siyuan-note/siyuan/kernel/apicontract"
+ "github.com/siyuan-note/siyuan/kernel/model"
+)
+
+// contractRouteHandlers 按契约装配鉴权、管理员和只读保护,末尾保留现有处理函数。
+// 笔记本租约由 ServeAPI 的全局中间件管理,资源访问检查仍由处理函数执行。
+func contractRouteHandlers[Request, Data any](endpoint apicontract.Endpoint[Request, Data], handler gin.HandlerFunc) []gin.HandlerFunc {
+ definition := endpoint.Definition()
+ if !definition.Authorization.Valid() {
+ panic(fmt.Sprintf("invalid route authorization: %s", definition.Name))
+ }
+ var handlers []gin.HandlerFunc
+ if definition.Authorization&apicontract.AuthenticatedAccess != 0 {
+ handlers = append(handlers, model.CheckAuth)
+ }
+ if definition.Authorization&apicontract.AdminAccess != 0 {
+ handlers = append(handlers, model.CheckAdminRole)
+ }
+ if definition.Authorization&apicontract.WritableAccess != 0 {
+ handlers = append(handlers, model.CheckReadonly)
+ }
+ return append(handlers, handler)
+}
diff --git a/kernel/api/contract_routes_test.go b/kernel/api/contract_routes_test.go
new file mode 100644
index 0000000000..7e526e1e6b
--- /dev/null
+++ b/kernel/api/contract_routes_test.go
@@ -0,0 +1,32 @@
+package api
+
+import (
+ "reflect"
+ "testing"
+
+ "github.com/gin-gonic/gin"
+ "github.com/siyuan-note/siyuan/kernel/apicontract"
+ "github.com/siyuan-note/siyuan/kernel/model"
+)
+
+func TestAPIContractAuthorizationHandlers(t *testing.T) {
+ handler := func(*gin.Context) {}
+ for _, test := range []struct {
+ actual []gin.HandlerFunc
+ want []gin.HandlerFunc
+ }{
+ {contractRouteHandlers(apicontract.Version, handler), []gin.HandlerFunc{handler}},
+ {contractRouteHandlers(apicontract.GetBlockDOM, handler), []gin.HandlerFunc{model.CheckAuth, handler}},
+ {contractRouteHandlers(apicontract.NetworkForwardProxy, handler), []gin.HandlerFunc{model.CheckAuth, model.CheckAdminRole, handler}},
+ {contractRouteHandlers(apicontract.ChangeAttrViewLayout, handler), []gin.HandlerFunc{model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, handler}},
+ } {
+ if len(test.actual) != len(test.want) {
+ t.Fatalf("middleware count changed: got %d want %d", len(test.actual), len(test.want))
+ }
+ for index, expected := range test.want {
+ if reflect.ValueOf(test.actual[index]).Pointer() != reflect.ValueOf(expected).Pointer() {
+ t.Fatalf("middleware order changed at %d", index)
+ }
+ }
+ }
+}
diff --git a/kernel/api/router.go b/kernel/api/router.go
index b5be1e2571..e9b9450703 100644
--- a/kernel/api/router.go
+++ b/kernel/api/router.go
@@ -22,753 +22,57 @@ import (
"github.com/gin-gonic/gin"
"github.com/siyuan-note/logging"
- "github.com/siyuan-note/siyuan/kernel/model"
)
func ServeAPI(ginServer *gin.Engine) {
ginServer.Use(boxLeaseMiddleware)
-
- ginServer.GET("/.well-known/oauth-protected-resource/mcp", mcpOAuthResource)
- ginServer.GET("/.well-known/oauth-protected-resource", mcpOAuthResourceRoot)
- ginServer.GET("/.well-known/oauth-authorization-server", mcpOAuthMetadata)
- ginServer.GET("/oauth/mcp/authorize", mcpOAuthServerAuthorize)
- ginServer.POST("/oauth/mcp/consent", mcpOAuthConsent)
- ginServer.POST("/oauth/mcp/token", mcpOAuthToken)
- ginServer.POST("/oauth/mcp/revoke", mcpOAuthRevoke)
- ginServer.POST("/api/mcp/getOAuth", model.CheckAuth, model.CheckAdminRole, mcpOAuthGet)
- ginServer.POST("/api/mcp/setOAuth", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, mcpOAuthSet)
- ginServer.POST("/api/mcp/addOAuthClient", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, mcpOAuthAddClient)
- ginServer.POST("/api/mcp/removeOAuthClient", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, mcpOAuthRemoveClient)
-
- // 不需要鉴权
-
- ginServer.Handle("GET", "/api/system/bootProgress", bootProgress)
- ginServer.Handle("POST", "/api/system/bootProgress", bootProgress)
- ginServer.Handle("GET", "/api/system/bootProgressSSE", bootProgressSSE)
- ginServer.Handle("GET", "/api/system/getBootAppearance", getBootAppearance)
- ginServer.Handle("GET", "/api/system/version", version)
- ginServer.Handle("POST", "/api/system/version", version)
- ginServer.Handle("POST", "/api/system/currentTime", currentTime)
- ginServer.Handle("POST", "/api/system/loginAuth", loginAuth)
- ginServer.Handle("POST", "/api/system/logoutAuth", logoutAuth)
- ginServer.Handle("GET", "/api/system/getCaptcha", getCaptcha)
- ginServer.Handle("POST", "/api/system/oidc/start", oidcStart)
- ginServer.Handle("GET", "/api/system/oidc/callback", oidcCallback)
- ginServer.Handle("POST", "/api/system/oidc/mobileCallback", oidcMobileCallback)
- ginServer.Handle("POST", "/api/system/oidc/poll", oidcPoll)
- ginServer.Handle("POST", "/api/system/oidc/validatePoll", oidcValidatePoll)
- ginServer.Handle("GET", "/api/ai/mcp/oauth/callback/:flowID", mcpOAuthCallback)
- // 需要鉴权
-
- ginServer.Handle("GET", "/api/icon/getDynamicIcon", model.CheckAuth, getDynamicIcon)
-
- ginServer.Handle("POST", "/api/system/getEmojiConf", model.CheckAuth, getEmojiConf)
- ginServer.Handle("POST", "/api/system/addCustomEmoji", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, addCustomEmoji)
- ginServer.Handle("POST", "/api/system/setAPIToken", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, setAPIToken)
- ginServer.Handle("POST", "/api/system/setAccessAuthCode", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, setAccessAuthCode)
- ginServer.Handle("POST", "/api/system/setOIDC", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, setOIDC)
- ginServer.Handle("POST", "/api/system/oidc/validate", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, oidcValidateStart)
- ginServer.Handle("POST", "/api/system/oidc/validateActivate", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, oidcValidateActivate)
- ginServer.Handle("POST", "/api/system/oidc/validateCancel", model.CheckAuth, model.CheckAdminRole, oidcValidateCancel)
- ginServer.Handle("POST", "/api/system/setFollowSystemLockScreen", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, setFollowSystemLockScreen)
- ginServer.Handle("POST", "/api/system/setNetworkServe", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, setNetworkServe)
- ginServer.Handle("POST", "/api/system/setNetworkServeTLS", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, setNetworkServeTLS)
- ginServer.Handle("POST", "/api/system/exportTLSCACert", model.CheckAuth, model.CheckAdminRole, exportTLSCACert)
- ginServer.Handle("POST", "/api/system/exportTLSCABundle", model.CheckAuth, model.CheckAdminRole, exportTLSCABundle)
- ginServer.Handle("POST", "/api/system/importTLSCABundle", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, importTLSCABundle)
- ginServer.Handle("POST", "/api/system/setAutoLaunch", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, setAutoLaunch)
- ginServer.Handle("POST", "/api/system/setDownloadInstallPkg", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, setDownloadInstallPkg)
- ginServer.Handle("POST", "/api/system/setSettingsWindow", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, setSettingsWindow)
- ginServer.Handle("POST", "/api/system/setUpdateChannel", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, setUpdateChannel)
- ginServer.Handle("POST", "/api/system/setNetworkProxy", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, setNetworkProxy)
- ginServer.Handle("POST", "/api/system/setWorkspaceDir", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, setWorkspaceDir)
- ginServer.Handle("POST", "/api/system/getWorkspaces", model.CheckAuth, getWorkspaces)
- ginServer.Handle("POST", "/api/system/getMobileWorkspaces", model.CheckAuth, model.CheckAdminRole, getMobileWorkspaces)
- ginServer.Handle("POST", "/api/system/checkWorkspaceDir", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, checkWorkspaceDir)
- ginServer.Handle("POST", "/api/system/createWorkspaceDir", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, createWorkspaceDir)
- ginServer.Handle("POST", "/api/system/removeWorkspaceDir", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, removeWorkspaceDir)
- ginServer.Handle("POST", "/api/system/removeWorkspaceDirPhysically", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, removeWorkspaceDirPhysically)
- ginServer.Handle("POST", "/api/system/setAppearanceMode", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, setAppearanceMode)
- ginServer.Handle("POST", "/api/system/setUILayout", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, setUILayout)
- ginServer.Handle("POST", "/api/system/getSysFonts", model.CheckAuth, model.CheckAdminRole, getSysFonts)
- ginServer.Handle("POST", "/api/system/getCustomFonts", model.CheckAuth, getCustomFonts)
- ginServer.Handle("POST", "/api/system/importCustomFont", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, importCustomFont)
- ginServer.Handle("POST", "/api/system/removeCustomFont", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, removeCustomFont)
- ginServer.Handle("POST", "/api/system/exit", model.CheckAuth, model.CheckAdminRole, exit)
- ginServer.Handle("POST", "/api/system/uiproc", model.CheckAuth, addUIProcess)
- ginServer.Handle("POST", "/api/system/getConf", model.CheckAuth, getConf)
- ginServer.Handle("POST", "/api/system/ensureOnboarding", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, ensureOnboarding)
- ginServer.Handle("POST", "/api/system/dismissOnboarding", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, dismissOnboarding)
- ginServer.Handle("POST", "/api/system/checkUpdate", model.CheckAuth, model.CheckAdminRole, checkUpdate)
- ginServer.Handle("POST", "/api/system/exportLog", model.CheckAuth, model.CheckAdminRole, exportLog)
- ginServer.Handle("POST", "/api/system/appendKeyboardLog", model.CheckAuth, model.CheckAdminRole, appendKeyboardLog)
- ginServer.Handle("POST", "/api/system/getChangelog", model.CheckAuth, getChangelog)
- ginServer.Handle("POST", "/api/system/getNetwork", model.CheckAuth, model.CheckAdminRole, getNetwork)
- ginServer.Handle("POST", "/api/system/exportConf", model.CheckAuth, model.CheckAdminRole, exportConf)
- ginServer.Handle("POST", "/api/system/importConf", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, importConf)
- ginServer.Handle("POST", "/api/system/getWorkspaceInfo", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, getWorkspaceInfo)
- ginServer.Handle("POST", "/api/system/getWorkspaceStorage", model.CheckAuth, model.CheckAdminRole, getWorkspaceStorage)
- ginServer.Handle("POST", "/api/system/getRuntimeInfo", model.CheckAuth, model.CheckAdminRole, getRuntimeInfo)
- ginServer.Handle("POST", "/api/system/reloadUI", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, deprecatedReloadUI) // TODO 请使用 /api/ui/reloadUI,该端点将于 2026 年 12 月 1 日后删除
- ginServer.Handle("POST", "/api/system/addMicrosoftDefenderExclusion", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, addMicrosoftDefenderExclusion)
- ginServer.Handle("POST", "/api/system/ignoreAddMicrosoftDefenderExclusion", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, ignoreAddMicrosoftDefenderExclusion)
- ginServer.Handle("POST", "/api/system/vacuumDataIndex", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, vacuumDataIndex)
- ginServer.Handle("POST", "/api/system/clearTempFiles", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, clearTempFiles)
- ginServer.Handle("POST", "/api/system/rebuildDataIndex", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, rebuildDataIndex)
-
- ginServer.Handle("POST", "/api/storage/getLocalStorage", model.CheckAuth, getLocalStorage)
- ginServer.Handle("POST", "/api/storage/getLocalStorageVal", model.CheckAuth, getLocalStorageVal)
- ginServer.Handle("POST", "/api/storage/getLocalStorageVals", model.CheckAuth, getLocalStorageVals)
- ginServer.Handle("POST", "/api/storage/setLocalStorage", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, setLocalStorage) // TODO 请使用 /api/storage/setLocalStorageVal,该端点将于 2026 年 12 月 1 日后删除
- ginServer.Handle("POST", "/api/storage/setLocalStorageVal", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, setLocalStorageVal)
- ginServer.Handle("POST", "/api/storage/setLocalStorageVals", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, setLocalStorageVals)
- ginServer.Handle("POST", "/api/storage/removeLocalStorageVal", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, removeLocalStorageVal)
- ginServer.Handle("POST", "/api/storage/removeLocalStorageVals", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, removeLocalStorageVals)
- ginServer.Handle("POST", "/api/storage/getInlineStyles", model.CheckAuth, getInlineStyles)
- ginServer.Handle("POST", "/api/storage/setInlineStyles", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, setInlineStyles)
- ginServer.Handle("POST", "/api/storage/setWorkspaceAVPalette", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly,
- setWorkspaceAVPalette)
- ginServer.Handle("POST", "/api/storage/getCriteria", model.CheckAuth, getCriteria)
- ginServer.Handle("POST", "/api/storage/setCriterion", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, setCriterion)
- ginServer.Handle("POST", "/api/storage/removeCriterion", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, removeCriterion)
- ginServer.Handle("POST", "/api/storage/getRecentDocs", model.CheckAuth, getRecentDocs)
- ginServer.Handle("POST", "/api/storage/updateRecentDocOpenTime", model.CheckAuth, updateRecentDocOpenTime)
- ginServer.Handle("POST", "/api/storage/updateRecentDocViewTime", model.CheckAuth, updateRecentDocViewTime)
- ginServer.Handle("POST", "/api/storage/updateRecentDocCloseTime", model.CheckAuth, updateRecentDocCloseTime)
- ginServer.Handle("POST", "/api/storage/batchUpdateRecentDocCloseTime", model.CheckAuth, batchUpdateRecentDocCloseTime)
- ginServer.Handle("POST", "/api/storage/getOutlineStorage", model.CheckAuth, model.CheckAdminRole, getOutlineStorage)
- ginServer.Handle("POST", "/api/storage/setOutlineStorage", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, setOutlineStorage)
- ginServer.Handle("POST", "/api/storage/removeOutlineStorage", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, removeOutlineStorage)
- ginServer.Handle("POST", "/api/storage/getViewState", model.CheckAuth, model.CheckAdminRole, getViewState)
- ginServer.Handle("POST", "/api/storage/patchViewState", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, patchViewState)
- ginServer.Handle("POST", "/api/storage/removeViewState", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, removeViewState)
-
- ginServer.Handle("POST", "/api/account/login", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, login)
- ginServer.Handle("POST", "/api/account/checkActivationcode", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, checkActivationcode)
- ginServer.Handle("POST", "/api/account/useActivationcode", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, useActivationcode)
- ginServer.Handle("POST", "/api/account/deactivate", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, deactivateUser)
- ginServer.Handle("POST", "/api/account/startFreeTrial", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, startFreeTrial)
-
- ginServer.Handle("POST", "/api/notebook/lsNotebooks", model.CheckAuth, lsNotebooks)
- ginServer.Handle("POST", "/api/notebook/openNotebook", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, openNotebook)
- ginServer.Handle("POST", "/api/notebook/closeNotebook", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, closeNotebook)
- ginServer.Handle("POST", "/api/notebook/getNotebookConf", model.CheckAuth, getNotebookConf)
- ginServer.Handle("POST", "/api/notebook/setNotebookConf", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, setNotebookConf)
- ginServer.Handle("POST", "/api/notebook/createNotebook", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, createNotebook)
- ginServer.Handle("POST", "/api/notebook/removeNotebook", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, removeNotebook)
- ginServer.Handle("POST", "/api/notebook/renameNotebook", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, renameNotebook)
- ginServer.Handle("POST", "/api/notebook/changeSortNotebook", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, changeSortNotebook)
- ginServer.Handle("POST", "/api/notebook/reorder", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, reorderNotebooks)
- ginServer.Handle("POST", "/api/notebook/setNotebookIcon", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, setNotebookIcon)
- ginServer.Handle("POST", "/api/notebook/getNotebookInfo", model.CheckAuth, getNotebookInfo)
- ginServer.Handle("POST", "/api/notebook/enableEncryptedNotebooks", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, enableEncryptedNotebooks)
- ginServer.Handle("POST", "/api/notebook/disableEncryptedNotebooks", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, disableEncryptedNotebooks)
- ginServer.Handle("POST", "/api/notebook/createEncryptedNotebook", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, createEncryptedNotebook)
- ginServer.Handle("POST", "/api/notebook/unlockNotebook", model.CheckAuth, model.CheckAdminRole, unlockNotebook)
- ginServer.Handle("POST", "/api/notebook/lockNotebook", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, lockNotebook)
- ginServer.Handle("POST", "/api/notebook/unlockAndOpenNotebook", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, unlockAndOpenNotebook)
- ginServer.Handle("POST", "/api/notebook/changeMasterPassword", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, changeMasterPassword)
- ginServer.Handle("POST", "/api/notebook/getEncryptedNotebookStatus", model.CheckAuth, model.CheckAdminRole, getEncryptedNotebookStatus)
- ginServer.Handle("POST", "/api/notebook/exportNotebookCryptoBackup", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, exportNotebookCryptoBackup)
- ginServer.Handle("POST", "/api/notebook/importNotebookCryptoBackup", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, importNotebookCryptoBackup)
- ginServer.Handle("POST", "/api/notebook/getNotebookArchiveCandidates", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, getNotebookArchiveCandidates)
- ginServer.Handle("POST", "/api/notebook/prepareNotebookArchive", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, prepareNotebookArchive)
- ginServer.Handle("POST", "/api/notebook/commitNotebookArchive", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, commitNotebookArchive)
- ginServer.Handle("POST", "/api/notebook/importNotebookArchive", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, importNotebookArchive)
- ginServer.Handle("POST", "/api/notebook/setNotebookCryptoAutoLock", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, setNotebookCryptoAutoLock)
- ginServer.Handle("POST", "/api/notebook/setEncryptedNotebookFollowSystemLock", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, setEncryptedNotebookFollowSystemLock)
- ginServer.Handle("POST", "/api/notebook/lockEncryptedNotebooksOnSystemLock", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, lockEncryptedNotebooksOnSystemLock)
- ginServer.Handle("POST", "/api/notebook/touchEncryptedNotebooks", model.CheckAuth, model.CheckAdminRole, touchEncryptedNotebooks)
-
- ginServer.Handle("POST", "/api/filetree/searchDocs", model.CheckAuth, searchDocs)
- ginServer.Handle("POST", "/api/filetree/getPinnedDocs", model.CheckAuth, model.CheckAdminRole, getPinnedDocs)
- ginServer.Handle("POST", "/api/filetree/updatePinnedDocs", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, updatePinnedDocs)
- ginServer.Handle("POST", "/api/filetree/listDocsByPath", model.CheckAuth, listDocsByPath)
- ginServer.Handle("POST", "/api/filetree/getDoc", model.CheckAuth, getDoc)
- ginServer.Handle("POST", "/api/filetree/getDocCreateSavePath", model.CheckAuth, getDocCreateSavePath)
- ginServer.Handle("POST", "/api/filetree/getRefCreateSavePath", model.CheckAuth, getRefCreateSavePath)
- ginServer.Handle("POST", "/api/filetree/getShorthandSavePath", model.CheckAuth, getShorthandSavePath)
- ginServer.Handle("POST", "/api/filetree/changeSort", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, changeSort)
- ginServer.Handle("POST", "/api/filetree/reorderDocs", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, reorderDocs)
- ginServer.Handle("POST", "/api/filetree/setSort", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, setSort)
- ginServer.Handle("POST", "/api/filetree/setDocSortMode", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, setDocSortMode)
- ginServer.Handle("POST", "/api/filetree/createDocWithMd", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, createDocWithMd)
- ginServer.Handle("POST", "/api/filetree/createDailyNote", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, createDailyNote)
- ginServer.Handle("POST", "/api/filetree/getDailyNoteInfo", model.CheckAuth, model.CheckAdminRole, getDailyNoteInfo)
- ginServer.Handle("POST", "/api/filetree/createDoc", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, createDoc)
- ginServer.Handle("POST", "/api/filetree/renameDoc", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, renameDoc)
- ginServer.Handle("POST", "/api/filetree/renameDocByID", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, renameDocByID)
- ginServer.Handle("POST", "/api/filetree/removeDoc", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, removeDoc)
- ginServer.Handle("POST", "/api/filetree/removeDocByID", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, removeDocByID)
- ginServer.Handle("POST", "/api/filetree/removeDocs", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, removeDocs)
- ginServer.Handle("POST", "/api/filetree/moveDocs", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, moveDocs)
- ginServer.Handle("POST", "/api/filetree/moveDocsByID", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, moveDocsByID)
- ginServer.Handle("POST", "/api/filetree/duplicateDoc", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, duplicateDoc)
- ginServer.Handle("POST", "/api/filetree/duplicateDocTree", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, duplicateDocTree)
- ginServer.Handle("POST", "/api/filetree/getHPathByPath", model.CheckAuth, getHPathByPath)
- ginServer.Handle("POST", "/api/filetree/getHPathsByPaths", model.CheckAuth, getHPathsByPaths)
- ginServer.Handle("POST", "/api/filetree/getHPathByID", model.CheckAuth, getHPathByID)
- ginServer.Handle("POST", "/api/filetree/getPathByID", model.CheckAuth, getPathByID)
- ginServer.Handle("POST", "/api/filetree/getFullHPathByID", model.CheckAuth, getFullHPathByID)
- ginServer.Handle("POST", "/api/filetree/getIDsByHPath", model.CheckAuth, getIDsByHPath)
- ginServer.Handle("POST", "/api/filetree/doc2Heading", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, doc2Heading)
- ginServer.Handle("POST", "/api/filetree/heading2Doc", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, heading2Doc)
- ginServer.Handle("POST", "/api/filetree/li2Doc", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, li2Doc)
- ginServer.Handle("POST", "/api/filetree/upsertIndexes", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, upsertIndexes)
- ginServer.Handle("POST", "/api/filetree/removeIndexes", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, removeIndexes)
- ginServer.Handle("POST", "/api/filetree/listDocTree", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, listDocTree)
- ginServer.Handle("POST", "/api/filetree/moveLocalShorthands", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, moveLocalShorthands)
- ginServer.Handle("POST", "/api/filetree/setPublishAccess", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, setPublishAccess)
- ginServer.Handle("POST", "/api/filetree/getPublishAccess", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, getPublishAccess)
- ginServer.Handle("POST", "/api/filetree/authFilePublishAccess", model.CheckAuth, authFilePublishAccess)
-
- ginServer.Handle("POST", "/api/format/autoSpace", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, autoSpace)
- ginServer.Handle("POST", "/api/format/netImg2LocalAssets", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, netImg2LocalAssets)
- ginServer.Handle("POST", "/api/format/netAssets2LocalAssets", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, netAssets2LocalAssets)
-
- ginServer.Handle("POST", "/api/history/rollbackAttributeViewHistory", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, rollbackAttributeViewHistory)
- ginServer.Handle("POST", "/api/history/getNotebookHistory", model.CheckAuth, model.CheckAdminRole, getNotebookHistory)
- ginServer.Handle("POST", "/api/history/rollbackNotebookHistory", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, rollbackNotebookHistory)
- ginServer.Handle("POST", "/api/history/rollbackAssetsHistory", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, rollbackAssetsHistory)
- ginServer.Handle("POST", "/api/history/getDocHistoryContent", model.CheckAuth, model.CheckAdminRole, getDocHistoryContent)
- ginServer.Handle("POST", "/api/history/getDocHistorySnapshots", model.CheckAuth, model.CheckAdminRole, getDocHistorySnapshots)
- ginServer.Handle("POST", "/api/history/diffDocVersions", model.CheckAuth, model.CheckAdminRole, diffDocVersions)
- ginServer.Handle("POST", "/api/history/rollbackDocHistory", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, rollbackDocHistory)
- ginServer.Handle("POST", "/api/history/clearWorkspaceHistory", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, clearWorkspaceHistory)
- ginServer.Handle("POST", "/api/history/reindexHistory", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, reindexHistory)
- ginServer.Handle("POST", "/api/history/searchHistory", model.CheckAuth, model.CheckAdminRole, searchHistory)
- ginServer.Handle("POST", "/api/history/getHistoryItems", model.CheckAuth, model.CheckAdminRole, getHistoryItems)
- ginServer.Handle("POST", "/api/history/createDocHistory", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, createDocHistory)
- ginServer.Handle("POST", "/api/history/createAssetHistory", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, createAssetHistory)
-
- ginServer.Handle("POST", "/api/outline/getDocOutline", model.CheckAuth, getDocOutline)
- ginServer.Handle("POST", "/api/outline/getDocHeadingNumbers", model.CheckAuth, getDocHeadingNumbers)
-
- ginServer.Handle("POST", "/api/bookmark/getBookmark", model.CheckAuth, getBookmark)
- ginServer.Handle("POST", "/api/bookmark/renameBookmark", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, renameBookmark)
- ginServer.Handle("POST", "/api/bookmark/removeBookmark", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, removeBookmark)
-
- ginServer.Handle("POST", "/api/tag/getTag", model.CheckAuth, getTag)
- ginServer.Handle("POST", "/api/tag/renameTag", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, renameTag)
- ginServer.Handle("POST", "/api/tag/removeTag", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, removeTag)
-
- ginServer.Handle("POST", "/api/lute/spinBlockDOM", model.CheckAuth, model.CheckAdminRole, spinBlockDOM)
- ginServer.Handle("POST", "/api/lute/html2BlockDOM", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, html2BlockDOM)
- ginServer.Handle("POST", "/api/lute/wpsPresentation2BlockDOM", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, wpsPresentation2BlockDOM)
- ginServer.Handle("POST", "/api/lute/copyStdMarkdown", model.CheckAuth, copyStdMarkdown)
- ginServer.Handle("POST", "/api/lute/md2html", model.CheckAuth, md2HTML)
-
- ginServer.Handle("POST", "/api/query/sql", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, SQL)
- ginServer.Handle("POST", "/api/sqlite/flushTransaction", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, flushTransaction)
-
- ginServer.Handle("POST", "/api/search/searchTag", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, searchTag)
- ginServer.Handle("POST", "/api/search/searchTemplate", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, searchTemplate)
- ginServer.Handle("POST", "/api/search/removeTemplate", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, removeTemplate)
- ginServer.Handle("POST", "/api/search/searchWidget", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, searchWidget)
- ginServer.Handle("POST", "/api/search/searchRefBlock", model.CheckAuth, searchRefBlock)
- ginServer.Handle("POST", "/api/search/searchEmbedBlock", model.CheckAuth, searchEmbedBlock)
- ginServer.Handle("POST", "/api/search/getEmbedBlock", model.CheckAuth, getEmbedBlock)
- ginServer.Handle("POST", "/api/search/updateEmbedBlock", model.CheckAuth, updateEmbedBlock)
- ginServer.Handle("POST", "/api/search/fullTextSearchBlock", model.CheckAuth, fullTextSearchBlock)
- ginServer.Handle("POST", "/api/search/searchAsset", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, searchAsset)
- ginServer.Handle("POST", "/api/search/findReplace", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, findReplace)
- ginServer.Handle("POST", "/api/search/fullTextSearchAssetContent", model.CheckAuth, fullTextSearchAssetContent)
- ginServer.Handle("POST", "/api/search/getAssetContent", model.CheckAuth, getAssetContent)
- ginServer.Handle("POST", "/api/search/getAssetContentByPath", model.CheckAuth, getAssetContentByPath)
- ginServer.Handle("POST", "/api/search/listInvalidBlockRefs", model.CheckAuth, listInvalidBlockRefs)
- ginServer.Handle("POST", "/api/search/semanticSearchBlock", model.CheckAuth, semanticSearchBlock)
-
- ginServer.Handle("POST", "/api/block/getBlockInfo", model.CheckAuth, getBlockInfo)
- ginServer.Handle("POST", "/api/block/getBlockDOM", model.CheckAuth, getBlockDOM)
- ginServer.Handle("POST", "/api/block/getOrderedListContinueStart", model.CheckAuth, model.CheckAdminRole, getOrderedListContinueStart)
- ginServer.Handle("POST", "/api/block/getBlockDOMs", model.CheckAuth, getBlockDOMs)
- ginServer.Handle("POST", "/api/block/getBlockDOMWithEmbed", model.CheckAuth, getBlockDOMWithEmbed)
- ginServer.Handle("POST", "/api/block/getBlockDOMsWithEmbed", model.CheckAuth, getBlockDOMsWithEmbed)
- ginServer.Handle("POST", "/api/block/getBlockKramdown", model.CheckAuth, getBlockKramdown)
- ginServer.Handle("POST", "/api/block/getBlockKramdowns", model.CheckAuth, getBlockKramdowns)
- ginServer.Handle("POST", "/api/block/getChildBlocks", model.CheckAuth, model.CheckAdminRole, getChildBlocks)
- ginServer.Handle("POST", "/api/block/getTailChildBlocks", model.CheckAuth, model.CheckAdminRole, getTailChildBlocks)
- ginServer.Handle("POST", "/api/block/getBlockBreadcrumb", model.CheckAuth, getBlockBreadcrumb)
- ginServer.Handle("POST", "/api/block/getBlockBreadcrumbChildren", model.CheckAuth, getBlockBreadcrumbChildren)
- ginServer.Handle("POST", "/api/block/getBlockIndex", model.CheckAuth, getBlockIndex)
- ginServer.Handle("POST", "/api/block/getBlocksIndexes", model.CheckAuth, getBlocksIndexes)
- ginServer.Handle("POST", "/api/block/getDocBlocksOrders", model.CheckAuth, getDocBlocksOrders)
- ginServer.Handle("POST", "/api/block/getRefIDs", model.CheckAuth, getRefIDs)
- ginServer.Handle("POST", "/api/block/getRefIDsByFileAnnotationID", model.CheckAuth, getRefIDsByFileAnnotationID)
- ginServer.Handle("POST", "/api/block/getBlockDefIDsByRefText", model.CheckAuth, getBlockDefIDsByRefText)
- ginServer.Handle("POST", "/api/block/getRefText", model.CheckAuth, getRefText)
- ginServer.Handle("POST", "/api/block/getDOMText", model.CheckAuth, getDOMText)
- ginServer.Handle("POST", "/api/block/getTreeStat", model.CheckAuth, getTreeStat)
- ginServer.Handle("POST", "/api/block/getBlocksWordCount", model.CheckAuth, getBlocksWordCount)
- ginServer.Handle("POST", "/api/block/getContentWordCount", model.CheckAuth, getContentWordCount)
- ginServer.Handle("POST", "/api/block/getRecentUpdatedBlocks", model.CheckAuth, getRecentUpdatedBlocks)
- ginServer.Handle("POST", "/api/block/getDocInfo", model.CheckAuth, getDocInfo)
- ginServer.Handle("POST", "/api/block/getDocsInfo", model.CheckAuth, getDocsInfo)
- ginServer.Handle("POST", "/api/block/checkBlockExist", model.CheckAuth, checkBlockExist)
- ginServer.Handle("POST", "/api/block/checkBlocksExist", model.CheckAuth, checkBlocksExist)
- ginServer.Handle("POST", "/api/block/getUnfoldedParentID", model.CheckAuth, getUnfoldedParentID)
- ginServer.Handle("POST", "/api/block/checkBlockFold", model.CheckAuth, checkBlockFold)
- ginServer.Handle("POST", "/api/block/insertBlock", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, insertBlock)
- ginServer.Handle("POST", "/api/block/batchInsertBlock", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, batchInsertBlock)
- ginServer.Handle("POST", "/api/block/prependBlock", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, prependBlock)
- ginServer.Handle("POST", "/api/block/batchPrependBlock", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, batchPrependBlock)
- ginServer.Handle("POST", "/api/block/appendBlock", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, appendBlock)
- ginServer.Handle("POST", "/api/block/batchAppendBlock", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, batchAppendBlock)
- ginServer.Handle("POST", "/api/block/appendDailyNoteBlock", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, appendDailyNoteBlock)
- ginServer.Handle("POST", "/api/block/prependDailyNoteBlock", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, prependDailyNoteBlock)
- ginServer.Handle("POST", "/api/block/updateBlock", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, updateBlock)
- ginServer.Handle("POST", "/api/block/migrateLegacyMindmaps", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, migrateLegacyMindmaps)
- ginServer.Handle("POST", "/api/block/batchUpdateBlock", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, batchUpdateBlock)
- ginServer.Handle("POST", "/api/block/deleteBlock", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, deleteBlock)
- ginServer.Handle("POST", "/api/block/moveBlock", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, moveBlock)
- ginServer.Handle("POST", "/api/block/moveOutlineHeading", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, moveOutlineHeading)
- ginServer.Handle("POST", "/api/block/foldBlock", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, foldBlock)
- ginServer.Handle("POST", "/api/block/unfoldBlock", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, unfoldBlock)
- ginServer.Handle("POST", "/api/block/setBlockReminder", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, setBlockReminder)
- ginServer.Handle("POST", "/api/block/getHeadingLevelTransaction", model.CheckAuth, model.CheckAdminRole, getHeadingLevelTransaction)
- ginServer.Handle("POST", "/api/block/getDocHeadingLevelTransaction", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, getDocHeadingLevelTransaction)
- ginServer.Handle("POST", "/api/block/getHeadingFoldTransaction", model.CheckAuth, model.CheckAdminRole, getHeadingFoldTransaction)
- ginServer.Handle("POST", "/api/block/getHeadingDeleteTransaction", model.CheckAuth, model.CheckAdminRole, getHeadingDeleteTransaction)
- ginServer.Handle("POST", "/api/block/getHeadingInsertTransaction", model.CheckAuth, model.CheckAdminRole, getHeadingInsertTransaction)
- ginServer.Handle("POST", "/api/block/getHeadingChildrenIDs", model.CheckAuth, getHeadingChildrenIDs)
- ginServer.Handle("POST", "/api/block/getHeadingChildrenDOM", model.CheckAuth, getHeadingChildrenDOM)
- ginServer.Handle("POST", "/api/block/swapBlockRef", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, swapBlockRef)
- ginServer.Handle("POST", "/api/block/transferBlockRef", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, transferBlockRef)
- ginServer.Handle("POST", "/api/block/getBlockSiblingID", model.CheckAuth, getBlockSiblingID)
- ginServer.Handle("POST", "/api/block/getBlockRelevantIDs", model.CheckAuth, getBlockRelevantIDs)
- ginServer.Handle("POST", "/api/block/getBlockTreeInfos", model.CheckAuth, getBlockTreeInfos)
- ginServer.Handle("POST", "/api/block/checkBlockRef", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, checkBlockRef)
- ginServer.Handle("POST", "/api/block/appendHeadingChildren", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, appendHeadingChildren)
- ginServer.Handle("POST", "/api/block/updateTaskListItemMarker", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, updateTaskListItemMarker)
- ginServer.Handle("POST", "/api/block/batchUpdateTaskListItemMarker", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, batchUpdateTaskListItemMarker)
-
- ginServer.Handle("POST", "/api/file/getFile", model.CheckAuth, getFile)
- ginServer.Handle("POST", "/api/file/putFile", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, putFile)
- ginServer.Handle("POST", "/api/file/copyFile", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, copyFile)
- ginServer.Handle("POST", "/api/file/globalCopyFiles", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, globalCopyFiles)
- ginServer.Handle("POST", "/api/file/workspaceCopyFiles", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, workspaceCopyFiles)
- ginServer.Handle("POST", "/api/file/removeFile", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, removeFile)
- ginServer.Handle("POST", "/api/file/renameFile", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, renameFile)
- ginServer.Handle("POST", "/api/file/readDir", model.CheckAuth, model.CheckAdminRole, readDir)
- ginServer.Handle("POST", "/api/file/getUniqueFilename", model.CheckAuth, model.CheckAdminRole, getUniqueFilename)
-
- ginServer.Handle("POST", "/api/ref/refreshBacklink", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, refreshBacklink)
- ginServer.Handle("POST", "/api/ref/getBacklink2", model.CheckAuth, getBacklink2)
- ginServer.Handle("POST", "/api/ref/getGlobalBacklinks", model.CheckAuth, getGlobalBacklinks)
- ginServer.Handle("POST", "/api/ref/getGlobalBacklinkContexts", model.CheckAuth, getGlobalBacklinkContexts)
- ginServer.Handle("POST", "/api/ref/getBacklinkDoc", model.CheckAuth, getBacklinkDoc)
- ginServer.Handle("POST", "/api/ref/getBackmentionDoc", model.CheckAuth, getBackmentionDoc)
-
- ginServer.Handle("POST", "/api/attr/getBookmarkLabels", model.CheckAuth, getBookmarkLabels)
- ginServer.Handle("POST", "/api/attr/resetBlockAttrs", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, resetBlockAttrs) // TODO 请使用 /api/attr/setBlockAttrs,该端点将于 2026 年 12 月 1 日后删除
- ginServer.Handle("POST", "/api/attr/setBlockAttrs", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, setBlockAttrs)
- ginServer.Handle("POST", "/api/attr/batchSetBlockAttrs", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, batchSetBlockAttrs)
- ginServer.Handle("POST", "/api/attr/getBlockAttrs", model.CheckAuth, getBlockAttrs)
- ginServer.Handle("POST", "/api/attr/batchGetBlockAttrs", model.CheckAuth, batchGetBlockAttrs)
-
- ginServer.Handle("POST", "/api/cloud/getCloudSpace", model.CheckAuth, model.CheckAdminRole, getCloudSpace)
- ginServer.Handle("POST", "/api/cloud/setCloudReminder", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, setCloudReminder)
-
- ginServer.Handle("POST", "/api/sync/setSyncEnable", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, setSyncEnable)
- ginServer.Handle("POST", "/api/sync/setSyncInterval", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, setSyncInterval)
- ginServer.Handle("POST", "/api/sync/setSyncPerception", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, setSyncPerception)
- ginServer.Handle("POST", "/api/sync/setSyncLAN", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, setSyncLAN)
- ginServer.Handle("POST", "/api/sync/getSyncLANStatus", model.CheckAuth, model.CheckAdminRole, getSyncLANStatus)
- ginServer.Handle("POST", "/api/sync/setSyncGenerateConflictDoc", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, setSyncGenerateConflictDoc)
- ginServer.Handle("POST", "/api/sync/setSyncMode", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, setSyncMode)
- ginServer.Handle("POST", "/api/sync/setSyncProvider", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, setSyncProvider)
- ginServer.Handle("POST", "/api/sync/setSyncProviderS3", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, setSyncProviderS3)
- ginServer.Handle("POST", "/api/sync/setSyncProviderWebDAV", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, setSyncProviderWebDAV)
- ginServer.Handle("POST", "/api/sync/setSyncProviderLocal", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, setSyncProviderLocal)
- ginServer.Handle("POST", "/api/sync/setCloudSyncDir", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, setCloudSyncDir)
- ginServer.Handle("POST", "/api/sync/setSyncAssetDownloadMode", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, setSyncAssetDownloadMode)
- ginServer.Handle("POST", "/api/sync/createCloudSyncDir", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, createCloudSyncDir)
- ginServer.Handle("POST", "/api/sync/removeCloudSyncDir", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, removeCloudSyncDir)
- ginServer.Handle("POST", "/api/sync/listCloudSyncDir", model.CheckAuth, model.CheckAdminRole, listCloudSyncDir)
- ginServer.Handle("POST", "/api/sync/performSync", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, performSync)
- ginServer.Handle("POST", "/api/sync/performBootSync", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, performBootSync)
- ginServer.Handle("POST", "/api/sync/getBootSync", model.CheckAuth, getBootSync)
- ginServer.Handle("POST", "/api/sync/getSyncInfo", model.CheckAuth, model.CheckAdminRole, getSyncInfo)
- ginServer.Handle("POST", "/api/sync/exportSyncProviderS3", model.CheckAuth, model.CheckAdminRole, exportSyncProviderS3)
- ginServer.Handle("POST", "/api/sync/importSyncProviderS3", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, importSyncProviderS3)
- ginServer.Handle("POST", "/api/sync/exportSyncProviderWebDAV", model.CheckAuth, model.CheckAdminRole, exportSyncProviderWebDAV)
- ginServer.Handle("POST", "/api/sync/importSyncProviderWebDAV", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, importSyncProviderWebDAV)
-
- ginServer.Handle("POST", "/api/inbox/getShorthands", model.CheckAuth, model.CheckAdminRole, getShorthands)
- ginServer.Handle("POST", "/api/inbox/getShorthand", model.CheckAuth, model.CheckAdminRole, getShorthand)
- ginServer.Handle("POST", "/api/inbox/removeShorthands", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, removeShorthands)
-
- ginServer.Handle("POST", "/api/extension/copy", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, extensionCopy)
-
- ginServer.Handle("POST", "/api/clipboard/readFilePaths", model.CheckAuth, model.CheckAdminRole, readFilePaths)
- ginServer.Handle("POST", "/api/clipboard/writeFilePath", model.CheckAuth, model.CheckAdminRole, writeFilePath)
- ginServer.Handle("POST", "/api/clipboard/prepareRichText", model.CheckAuth, model.CheckAdminRole, prepareRichText)
- ginServer.Handle("POST", "/api/clipboard/preparePasteAssets", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, preparePasteAssets)
- ginServer.Handle("POST", "/api/clipboard/cleanupRichText", model.CheckAuth, model.CheckAdminRole, cleanupRichText)
-
- ginServer.Handle("POST", "/api/asset/uploadCloud", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, uploadCloud)
- ginServer.Handle("POST", "/api/asset/uploadCloudByAssetsPaths", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, uploadCloudByAssetsPaths)
- ginServer.Handle("POST", "/api/asset/insertLocalAssets", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, insertLocalAssets)
- ginServer.Handle("POST", "/api/asset/insertCover", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, insertCover)
- ginServer.Handle("POST", "/api/asset/resolveAssetPath", model.CheckAuth, model.CheckAdminRole, resolveAssetPath)
- ginServer.Handle("POST", "/api/asset/upload", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, uploadAsset)
- ginServer.Handle("POST", "/api/asset/setFileAnnotation", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, setFileAnnotation)
- ginServer.Handle("POST", "/api/asset/getFileAnnotation", model.CheckAuth, getFileAnnotation)
- ginServer.Handle("POST", "/api/asset/getUnusedAssets", model.CheckAuth, model.CheckAdminRole, getUnusedAssets)
- ginServer.Handle("POST", "/api/asset/getMissingAssets", model.CheckAuth, model.CheckAdminRole, getMissingAssets)
- ginServer.Handle("POST", "/api/asset/removeUnusedAsset", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, removeUnusedAsset)
- ginServer.Handle("POST", "/api/asset/removeUnusedAssets", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, removeUnusedAssets)
- ginServer.Handle("POST", "/api/asset/getDocImageAssets", model.CheckAuth, getDocImageAssets)
- ginServer.Handle("POST", "/api/asset/getDocAssets", model.CheckAuth, getDocAssets)
- ginServer.Handle("POST", "/api/asset/renameAsset", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, renameAsset)
- ginServer.Handle("POST", "/api/asset/findAssetReferences", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, findAssetReferences)
- ginServer.Handle("POST", "/api/asset/relinkAsset", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, relinkAsset)
- ginServer.Handle("POST", "/api/asset/getImageOCRText", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, getImageOCRText)
- ginServer.Handle("POST", "/api/asset/setImageOCRText", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, setImageOCRText)
- ginServer.Handle("POST", "/api/asset/ocr", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, ocr)
- ginServer.Handle("POST", "/api/asset/getOCRConfig", model.CheckAuth, model.CheckAdminRole, getOCRConfig)
- ginServer.Handle("POST", "/api/asset/setOCRConfig", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, setOCRConfig)
- ginServer.Handle("POST", "/api/asset/importOCRModels", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, importOCRModels)
- ginServer.Handle("POST", "/api/asset/fullReindexAssetContent", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, fullReindexAssetContent)
- ginServer.Handle("POST", "/api/asset/statAsset", model.CheckAuth, model.CheckAdminRole, statAsset)
-
- ginServer.Handle("POST", "/api/export/exportNotebookMd", model.CheckAuth, model.CheckAdminRole, exportNotebookMd)
- ginServer.Handle("POST", "/api/export/exportNotebooksMd", model.CheckAuth, model.CheckAdminRole, exportNotebooksMd)
- ginServer.Handle("POST", "/api/export/exportMds", model.CheckAuth, model.CheckAdminRole, exportMds)
- ginServer.Handle("POST", "/api/export/exportMd", model.CheckAuth, model.CheckAdminRole, exportMd)
- ginServer.Handle("POST", "/api/export/exportSYs", model.CheckAuth, model.CheckAdminRole, exportSYs)
- ginServer.Handle("POST", "/api/export/exportSY", model.CheckAuth, model.CheckAdminRole, exportSY)
- ginServer.Handle("POST", "/api/export/exportNotebookSY", model.CheckAuth, model.CheckAdminRole, exportNotebookSY)
- ginServer.Handle("POST", "/api/export/exportNotebooksSY", model.CheckAuth, model.CheckAdminRole, exportNotebooksSY)
- ginServer.Handle("POST", "/api/export/exportMdContent", model.CheckAuth, model.CheckAdminRole, exportMdContent)
- ginServer.Handle("POST", "/api/export/exportHTML", model.CheckAuth, model.CheckAdminRole, exportHTML)
- ginServer.Handle("POST", "/api/export/exportPreviewHTML", model.CheckAuth, model.CheckAdminRole, exportPreviewHTML)
- ginServer.Handle("POST", "/api/export/exportMdHTML", model.CheckAuth, model.CheckAdminRole, exportMdHTML)
- ginServer.Handle("POST", "/api/export/exportDocx", model.CheckAuth, model.CheckAdminRole, exportDocx)
- ginServer.Handle("POST", "/api/export/processPDF", model.CheckAuth, model.CheckAdminRole, processPDF)
- ginServer.Handle("POST", "/api/export/preview", model.CheckAuth, exportPreview)
- ginServer.Handle("POST", "/api/export/exportResources", model.CheckAuth, model.CheckAdminRole, exportResources)
- ginServer.Handle("POST", "/api/export/exportAsFile", model.CheckAuth, model.CheckAdminRole, exportAsFile)
- ginServer.Handle("POST", "/api/export/exportData", model.CheckAuth, model.CheckAdminRole, exportData)
- ginServer.Handle("POST", "/api/export/exportDataInFolder", model.CheckAuth, model.CheckAdminRole, exportDataInFolder)
- ginServer.Handle("POST", "/api/export/exportTempContent", model.CheckAuth, model.CheckAdminRole, exportTempContent)
- ginServer.Handle("POST", "/api/export/exportBrowserHTML", model.CheckAuth, model.CheckAdminRole, exportBrowserHTML)
- ginServer.Handle("POST", "/api/export/export2Liandi", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, export2Liandi)
- ginServer.Handle("POST", "/api/export/exportReStructuredText", model.CheckAuth, model.CheckAdminRole, exportReStructuredText)
- ginServer.Handle("POST", "/api/export/exportAsciiDoc", model.CheckAuth, model.CheckAdminRole, exportAsciiDoc)
- ginServer.Handle("POST", "/api/export/exportTextile", model.CheckAuth, model.CheckAdminRole, exportTextile)
- ginServer.Handle("POST", "/api/export/exportOPML", model.CheckAuth, model.CheckAdminRole, exportOPML)
- ginServer.Handle("POST", "/api/export/exportOrgMode", model.CheckAuth, model.CheckAdminRole, exportOrgMode)
- ginServer.Handle("POST", "/api/export/exportMediaWiki", model.CheckAuth, model.CheckAdminRole, exportMediaWiki)
- ginServer.Handle("POST", "/api/export/exportODT", model.CheckAuth, model.CheckAdminRole, exportODT)
- ginServer.Handle("POST", "/api/export/exportRTF", model.CheckAuth, model.CheckAdminRole, exportRTF)
- ginServer.Handle("POST", "/api/export/exportEPUB", model.CheckAuth, model.CheckAdminRole, exportEPUB)
- ginServer.Handle("POST", "/api/export/exportAttributeView", model.CheckAuth, model.CheckAdminRole, exportAttributeView)
- ginServer.Handle("POST", "/api/export/exportCodeBlock", model.CheckAuth, model.CheckAdminRole, exportCodeBlock)
- ginServer.Handle("POST", "/api/export/copyExportFile", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, copyExportFile)
-
- ginServer.Handle("POST", "/api/import/importStdMd", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, importStdMd)
- ginServer.Handle("POST", "/api/import/importZipMd", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, importZipMd)
- ginServer.Handle("POST", "/api/import/importData", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, importData)
- ginServer.Handle("POST", "/api/import/importSY", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, importSY)
- ginServer.Handle("POST", "/api/import/importSYNotebook", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, importSYNotebook)
- ginServer.Handle("POST", "/api/import/importSYAuto", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, importSYAuto)
- ginServer.Handle("POST", "/api/import/continueImportSY", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, continueImportSY)
- ginServer.Handle("POST", "/api/import/cancelImportSY", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, cancelImportSY)
- ginServer.Handle("POST", "/api/import/startObsidianVaultAnalysis", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, startObsidianVaultAnalysis)
- ginServer.Handle("POST", "/api/import/getObsidianVaultTask", model.CheckAuth, model.CheckAdminRole, getObsidianVaultTask)
- ginServer.Handle("POST", "/api/import/startObsidianVaultImport", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, startObsidianVaultImport)
- ginServer.Handle("POST", "/api/import/cancelObsidianVaultTask", model.CheckAuth, model.CheckAdminRole, cancelObsidianVaultTask)
-
- ginServer.Handle("POST", "/api/convert/pandoc", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, pandoc)
-
- ginServer.Handle("POST", "/api/template/render", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, renderTemplate)
- ginServer.Handle("POST", "/api/template/manage", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, manageTemplateFiles)
- ginServer.Handle("POST", "/api/template/getDocSaveAsTemplateInfo", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, getDocSaveAsTemplateInfo)
- ginServer.Handle("POST", "/api/template/docSaveAsTemplate", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, docSaveAsTemplate)
- ginServer.Handle("POST", "/api/template/renderSprig", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, renderSprig)
-
- ginServer.Handle("POST", "/api/transactions", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, performTransactions)
- ginServer.Handle("POST", "/api/transactions/undoState", model.CheckAuth, undoState)
- ginServer.Handle("POST", "/api/transactions/undo", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, performUndo)
- ginServer.Handle("POST", "/api/transactions/redo", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, performRedo)
- ginServer.Handle("POST", "/api/transactions/clearHistory", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, clearHistory)
-
- ginServer.Handle("POST", "/api/setting/patch", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, patchSetting)
- ginServer.Handle("POST", "/api/setting/resetSettings", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, resetSettings)
- ginServer.Handle("POST", "/api/setting/confirmSettingsReset", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, confirmSettingsReset)
- ginServer.Handle("POST", "/api/setting/setEditor", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, setEditor)
- ginServer.Handle("POST", "/api/setting/setExport", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, setExport)
- ginServer.Handle("POST", "/api/setting/getPandocBin", model.CheckAuth, model.CheckAdminRole, getPandocBin)
- ginServer.Handle("POST", "/api/setting/setFiletree", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, setFiletree)
- ginServer.Handle("POST", "/api/setting/setSearch", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, setSearch)
- ginServer.Handle("POST", "/api/setting/setKeymap", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, setKeymap)
- ginServer.Handle("POST", "/api/setting/setAppearance", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, setAppearance)
- ginServer.Handle("POST", "/api/setting/getBootAppearances", model.CheckAuth, getBootAppearances)
- ginServer.Handle("POST", "/api/setting/setBootAppearance", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, setBootAppearance)
- ginServer.Handle("POST", "/api/setting/setEntryVisibility", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, setEntryVisibility)
- ginServer.Handle("POST", "/api/setting/setIcon", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, setIcon)
- ginServer.Handle("POST", "/api/setting/setTheme", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, setTheme)
- ginServer.Handle("POST", "/api/setting/getCloudUser", model.CheckAuth, getCloudUser)
- ginServer.Handle("POST", "/api/setting/logoutCloudUser", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, logoutCloudUser)
- ginServer.Handle("POST", "/api/setting/login2faCloudUser", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, login2faCloudUser)
- ginServer.Handle("POST", "/api/setting/setEmoji", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, setEmoji)
- ginServer.Handle("POST", "/api/setting/setFlashcard", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, setFlashcard)
- ginServer.Handle("POST", "/api/setting/setAI", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, setAI)
- ginServer.Handle("POST", "/api/setting/setSecrets", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, setSecrets)
- ginServer.Handle("POST", "/api/setting/setVariables", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, setVariables)
- ginServer.Handle("POST", "/api/setting/setBazaar", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, setBazaar)
- ginServer.Handle("POST", "/api/setting/setBazaarPetalDisabled", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, setBazaarPetalDisabled)
- ginServer.Handle("POST", "/api/setting/setPublish", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, setPublish)
- ginServer.Handle("POST", "/api/setting/getPublish", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, getPublish)
- ginServer.Handle("POST", "/api/setting/refreshVirtualBlockRef", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, refreshVirtualBlockRef)
- ginServer.Handle("POST", "/api/setting/addVirtualBlockRefInclude", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, addVirtualBlockRefInclude)
- ginServer.Handle("POST", "/api/setting/addVirtualBlockRefExclude", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, addVirtualBlockRefExclude)
- ginServer.Handle("POST", "/api/setting/setSnippet", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, setConfSnippet)
- ginServer.Handle("POST", "/api/setting/setEditorReadOnly", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, setEditorReadOnly)
-
- ginServer.Handle("POST", "/api/graph/resetGraph", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, resetGraph)
- ginServer.Handle("POST", "/api/graph/resetLocalGraph", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, resetLocalGraph)
- ginServer.Handle("POST", "/api/graph/setGraphConf", model.CheckAuth, setGraphConf)
- ginServer.Handle("POST", "/api/graph/getGraph", model.CheckAuth, getGraph)
- ginServer.Handle("POST", "/api/graph/getLocalGraph", model.CheckAuth, getLocalGraph)
-
- ginServer.Handle("POST", "/api/bazaar/getBazaarPlugin", model.CheckAuth, model.CheckAdminRole, getBazaarPlugin)
- ginServer.Handle("POST", "/api/bazaar/getInstalledPlugin", model.CheckAuth, model.CheckAdminRole, getInstalledPlugin)
- ginServer.Handle("POST", "/api/bazaar/installBazaarPlugin", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, installBazaarPlugin)
- ginServer.Handle("POST", "/api/bazaar/uninstallBazaarPlugin", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, uninstallBazaarPlugin)
- ginServer.Handle("POST", "/api/bazaar/getBazaarWidget", model.CheckAuth, model.CheckAdminRole, getBazaarWidget)
- ginServer.Handle("POST", "/api/bazaar/getInstalledWidget", model.CheckAuth, model.CheckAdminRole, getInstalledWidget)
- ginServer.Handle("POST", "/api/bazaar/installBazaarWidget", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, installBazaarWidget)
- ginServer.Handle("POST", "/api/bazaar/uninstallBazaarWidget", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, uninstallBazaarWidget)
- ginServer.Handle("POST", "/api/bazaar/getBazaarIcon", model.CheckAuth, model.CheckAdminRole, getBazaarIcon)
- ginServer.Handle("POST", "/api/bazaar/getInstalledIcon", model.CheckAuth, model.CheckAdminRole, getInstalledIcon)
- ginServer.Handle("POST", "/api/bazaar/installBazaarIcon", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, installBazaarIcon)
- ginServer.Handle("POST", "/api/bazaar/uninstallBazaarIcon", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, uninstallBazaarIcon)
- ginServer.Handle("POST", "/api/bazaar/getBazaarTemplate", model.CheckAuth, model.CheckAdminRole, getBazaarTemplate)
- ginServer.Handle("POST", "/api/bazaar/getInstalledTemplate", model.CheckAuth, model.CheckAdminRole, getInstalledTemplate)
- ginServer.Handle("POST", "/api/bazaar/installBazaarTemplate", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, installBazaarTemplate)
- ginServer.Handle("POST", "/api/bazaar/uninstallBazaarTemplate", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, uninstallBazaarTemplate)
- ginServer.Handle("POST", "/api/bazaar/getBazaarTheme", model.CheckAuth, model.CheckAdminRole, getBazaarTheme)
- ginServer.Handle("POST", "/api/bazaar/getInstalledTheme", model.CheckAuth, model.CheckAdminRole, getInstalledTheme)
- ginServer.Handle("POST", "/api/bazaar/installBazaarTheme", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, installBazaarTheme)
- ginServer.Handle("POST", "/api/bazaar/uninstallBazaarTheme", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, uninstallBazaarTheme)
- ginServer.Handle("POST", "/api/bazaar/getBazaarPackageREADME", model.CheckAuth, model.CheckAdminRole, getBazaarPackageREADME)
- ginServer.Handle("POST", "/api/bazaar/getInstalledPackageSize", model.CheckAuth, model.CheckAdminRole, getInstalledPackageSize)
- ginServer.Handle("POST", "/api/bazaar/getBazaarPackage", model.CheckAuth, model.CheckAdminRole, getBazaarPackage)
- ginServer.Handle("POST", "/api/bazaar/getBazaarPackageRatings", model.CheckAuth, model.CheckAdminRole, getBazaarPackageRatings)
- ginServer.Handle("POST", "/api/bazaar/getBazaarPackageUserRatings", model.CheckAuth, model.CheckAdminRole, getBazaarPackageUserRatings)
- ginServer.Handle("POST", "/api/bazaar/getBazaarPackageRating", model.CheckAuth, model.CheckAdminRole, getBazaarPackageRating)
- ginServer.Handle("POST", "/api/bazaar/setBazaarPackageRating", model.CheckAuth, model.CheckAdminRole, setBazaarPackageRating)
- ginServer.Handle("POST", "/api/bazaar/getUpdatedPackage", model.CheckAuth, model.CheckAdminRole, getUpdatedPackage)
- ginServer.Handle("POST", "/api/bazaar/updateBazaarPackage", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, updateBazaarPackage)
- ginServer.Handle("POST", "/api/bazaar/batchUpdatePackage", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, batchUpdatePackage)
- ginServer.Handle("POST", "/api/bazaar/installLocalBazaarPackage", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, installLocalBazaarPackage)
-
- ginServer.Handle("POST", "/api/repo/initRepoKey", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, initRepoKey)
- ginServer.Handle("POST", "/api/repo/initRepoKeyFromPassphrase", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, initRepoKeyFromPassphrase)
- ginServer.Handle("POST", "/api/repo/resetRepo", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, resetRepo)
- ginServer.Handle("POST", "/api/repo/purgeRepo", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, purgeRepo)
- ginServer.Handle("POST", "/api/repo/purgeCloudRepo", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, purgeCloudRepo)
- ginServer.Handle("POST", "/api/repo/importRepoKey", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, importRepoKey)
- ginServer.Handle("POST", "/api/repo/createSnapshot", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, createSnapshot)
- ginServer.Handle("POST", "/api/repo/checkSnapshot", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, checkSnapshot)
- ginServer.Handle("POST", "/api/repo/setSnapshotMemo", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, setSnapshotMemo)
- ginServer.Handle("POST", "/api/repo/tagSnapshot", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, tagSnapshot)
- ginServer.Handle("POST", "/api/repo/checkoutRepo", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, checkoutRepo)
- ginServer.Handle("POST", "/api/repo/getRepoSnapshots", model.CheckAuth, model.CheckAdminRole, getRepoSnapshots)
- ginServer.Handle("POST", "/api/repo/searchRepoFile", model.CheckAuth, model.CheckAdminRole, searchRepoFile)
- ginServer.Handle("POST", "/api/repo/getRepoDocHistory", model.CheckAuth, model.CheckAdminRole, getRepoDocHistory)
- ginServer.Handle("POST", "/api/repo/getRepoTagSnapshots", model.CheckAuth, model.CheckAdminRole, getRepoTagSnapshots)
- ginServer.Handle("POST", "/api/repo/removeRepoTagSnapshot", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, removeRepoTagSnapshot)
- ginServer.Handle("POST", "/api/repo/getCloudRepoTagSnapshots", model.CheckAuth, model.CheckAdminRole, getCloudRepoTagSnapshots)
- ginServer.Handle("POST", "/api/repo/getCloudRepoSnapshots", model.CheckAuth, model.CheckAdminRole, getCloudRepoSnapshots)
- ginServer.Handle("POST", "/api/repo/removeCloudRepoTagSnapshot", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, removeCloudRepoTagSnapshot)
- ginServer.Handle("POST", "/api/repo/uploadCloudSnapshot", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, uploadCloudSnapshot)
- ginServer.Handle("POST", "/api/repo/downloadCloudSnapshot", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, downloadCloudSnapshot)
- ginServer.Handle("POST", "/api/repo/diffRepoSnapshots", model.CheckAuth, model.CheckAdminRole, diffRepoSnapshots)
- ginServer.Handle("POST", "/api/repo/openRepoSnapshotFile", model.CheckAuth, model.CheckAdminRole, openRepoSnapshotFile)
- ginServer.Handle("POST", "/api/repo/rollbackRepoSnapshotFile", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, rollbackRepoSnapshotFile)
- ginServer.Handle("POST", "/api/repo/exportRepoFile", model.CheckAuth, model.CheckAdminRole, exportRepoFile)
- ginServer.Handle("POST", "/api/repo/getRepoFile", model.CheckAuth, model.CheckAdminRole, getRepoFile)
- ginServer.Handle("POST", "/api/repo/setRepoIndexRetentionDays", model.CheckAuth, model.CheckAdminRole, setRepoIndexRetentionDays)
- ginServer.Handle("POST", "/api/repo/setRetentionIndexesDaily", model.CheckAuth, model.CheckAdminRole, setRetentionIndexesDaily)
-
- ginServer.Handle("POST", "/api/riff/createRiffDeck", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, createRiffDeck)
- ginServer.Handle("POST", "/api/riff/renameRiffDeck", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, renameRiffDeck)
- ginServer.Handle("POST", "/api/riff/removeRiffDeck", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, removeRiffDeck)
- ginServer.Handle("POST", "/api/riff/getRiffDecks", model.CheckAuth, model.CheckAdminRole, getRiffDecks)
- ginServer.Handle("POST", "/api/riff/addRiffCards", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, addRiffCards)
- ginServer.Handle("POST", "/api/riff/removeRiffCards", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, removeRiffCards)
- ginServer.Handle("POST", "/api/riff/getRiffDueCards", model.CheckAuth, model.CheckAdminRole, getRiffDueCards)
- ginServer.Handle("POST", "/api/riff/getTreeRiffDueCards", model.CheckAuth, model.CheckAdminRole, getTreeRiffDueCards)
- ginServer.Handle("POST", "/api/riff/getNotebookRiffDueCards", model.CheckAuth, model.CheckAdminRole, getNotebookRiffDueCards)
- ginServer.Handle("POST", "/api/riff/reviewRiffCard", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, reviewRiffCard)
- ginServer.Handle("POST", "/api/riff/skipReviewRiffCard", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, skipReviewRiffCard)
- ginServer.Handle("POST", "/api/riff/getRiffCards", model.CheckAuth, model.CheckAdminRole, getRiffCards)
- ginServer.Handle("POST", "/api/riff/getTreeRiffCards", model.CheckAuth, model.CheckAdminRole, getTreeRiffCards)
- ginServer.Handle("POST", "/api/riff/getNotebookRiffCards", model.CheckAuth, model.CheckAdminRole, getNotebookRiffCards)
- ginServer.Handle("POST", "/api/riff/resetRiffCards", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, resetRiffCards)
- ginServer.Handle("POST", "/api/riff/batchSetRiffCardsDueTime", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, batchSetRiffCardsDueTime)
- ginServer.Handle("POST", "/api/riff/getRiffCardsByBlockIDs", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, getRiffCardsByBlockIDs)
-
- ginServer.Handle("POST", "/api/notification/pushMsg", model.CheckAuth, model.CheckAdminRole, pushMsg)
- ginServer.Handle("POST", "/api/notification/pushErrMsg", model.CheckAuth, model.CheckAdminRole, pushErrMsg)
-
- ginServer.Handle("POST", "/api/snippet/getSnippet", model.CheckAuth, getSnippet)
- ginServer.Handle("POST", "/api/snippet/setSnippet", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, setSnippet)
- ginServer.Handle("POST", "/api/snippet/removeSnippet", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, removeSnippet)
-
- ginServer.Handle("POST", "/api/av/renderAttributeView", model.CheckAuth, renderAttributeView)
- ginServer.Handle("POST", "/api/av/getAttributeViewCalendarUndated", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, getAttributeViewCalendarUndated)
- ginServer.Handle("POST", "/api/av/getAttributeViewItemStatuses", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, getAttributeViewItemStatuses)
- ginServer.Handle("POST", "/api/av/renderHistoryAttributeView", model.CheckAuth, model.CheckAdminRole, renderHistoryAttributeView)
- ginServer.Handle("POST", "/api/av/renderSnapshotAttributeView", model.CheckAuth, model.CheckAdminRole, renderSnapshotAttributeView)
- ginServer.Handle("POST", "/api/av/getAttributeViewKeys", model.CheckAuth, getAttributeViewKeys)
- ginServer.Handle("POST", "/api/av/getAttributeViewSearchTarget", model.CheckAuth, model.CheckReadonly, getAttributeViewSearchTarget)
- ginServer.Handle("POST", "/api/av/getAttributeViewFieldViews", model.CheckAuth, model.CheckReadonly, getAttributeViewFieldViews)
- ginServer.Handle("POST", "/api/av/getAttributeViewBacklinks", model.CheckAuth, getAttributeViewBacklinks)
- ginServer.Handle("POST", "/api/av/setAttributeViewBlockAttr", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, setAttributeViewBlockAttr)
- ginServer.Handle("POST", "/api/av/batchSetAttributeViewBlockAttrs", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, batchSetAttributeViewBlockAttrs)
- ginServer.Handle("POST", "/api/av/searchAttributeView", model.CheckAuth, model.CheckReadonly, searchAttributeView)
- ginServer.Handle("POST", "/api/av/getAttributeView", model.CheckAuth, model.CheckReadonly, getAttributeView)
- ginServer.Handle("POST", "/api/av/getAttributeViewPasteRows", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, getAttributeViewPasteRows)
- ginServer.Handle("POST", "/api/av/searchAttributeViewRelationKey", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, searchAttributeViewRelationKey)
- ginServer.Handle("POST", "/api/av/searchAttributeViewNonRelationKey", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, searchAttributeViewNonRelationKey) // TODO 请勿使用,该端点将于 2026 年 12 月 1 日后删除
- ginServer.Handle("POST", "/api/av/searchAttributeViewRollupDestKeys", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, searchAttributeViewRollupDestKeys)
- ginServer.Handle("POST", "/api/av/getAttributeViewFilterSort", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, getAttributeViewFilterSort)
- ginServer.Handle("POST", "/api/av/setAttrViewFilters", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, setAttrViewFilters)
- ginServer.Handle("POST", "/api/av/setAttrViewContextFilter", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, setAttrViewContextFilter)
- ginServer.Handle("POST", "/api/av/setAttrViewSorts", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, setAttrViewSorts)
- ginServer.Handle("POST", "/api/av/getAttributeViewRowSort", model.CheckAuth, model.CheckAdminRole, getAttributeViewRowSort)
- ginServer.Handle("POST", "/api/av/addAttributeViewKey", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, addAttributeViewKey)
- ginServer.Handle("POST", "/api/av/removeAttributeViewKey", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, removeAttributeViewKey)
- ginServer.Handle("POST", "/api/av/sortAttributeViewViewKey", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, sortAttributeViewViewKey)
- ginServer.Handle("POST", "/api/av/sortAttributeViewKey", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, sortAttributeViewKey)
- ginServer.Handle("POST", "/api/av/addAttributeViewBlocks", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, addAttributeViewBlocks)
- ginServer.Handle("POST", "/api/av/removeAttributeViewBlocks", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, removeAttributeViewBlocks)
- ginServer.Handle("POST", "/api/av/getAttributeViewPrimaryKeyValues", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, getAttributeViewPrimaryKeyValues)
- ginServer.Handle("POST", "/api/av/getAttributeViewRelationCandidates", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, getAttributeViewRelationCandidates)
- ginServer.Handle("POST", "/api/av/setDatabaseBlockView", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, setDatabaseBlockView)
- ginServer.Handle("POST", "/api/av/getMirrorDatabaseBlocks", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, getMirrorDatabaseBlocks)
- ginServer.Handle("POST", "/api/av/getAttributeViewKeysByAvID", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, getAttributeViewKeysByAvID)
- ginServer.Handle("POST", "/api/av/getAttributeViewKeysByID", model.CheckAuth, model.CheckReadonly, getAttributeViewKeysByID)
- ginServer.Handle("POST", "/api/av/duplicateAttributeViewBlock", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, duplicateAttributeViewBlock)
- ginServer.Handle("POST", "/api/av/appendAttributeViewDetachedBlocksWithValues", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, appendAttributeViewDetachedBlocksWithValues)
- ginServer.Handle("POST", "/api/av/getCurrentAttrViewImages", model.CheckAuth, getCurrentAttrViewImages)
- ginServer.Handle("POST", "/api/av/changeAttrViewLayout", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, changeAttrViewLayout)
- ginServer.Handle("POST", "/api/av/setAttrViewGroup", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, setAttrViewGroup)
- ginServer.Handle("POST", "/api/av/batchReplaceAttributeViewBlocks", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, batchReplaceAttributeViewBlocks)
- ginServer.Handle("POST", "/api/av/getAttributeViewAddingBlockDefaultValues", model.CheckAuth, model.CheckAdminRole, getAttributeViewAddingBlockDefaultValues)
- ginServer.Handle("POST", "/api/av/getAttributeViewBoundBlockIDsByItemIDs", model.CheckAuth, model.CheckAdminRole, getAttributeViewBoundBlockIDsByItemIDs)
- ginServer.Handle("POST", "/api/av/getAttributeViewItemIDsByBoundIDs", model.CheckAuth, model.CheckAdminRole, getAttributeViewItemIDsByBoundIDs)
- ginServer.Handle("POST", "/api/av/getUnusedAttributeViews", model.CheckAuth, model.CheckAdminRole, getUnusedAttributeViews)
- ginServer.Handle("POST", "/api/av/createAttributeViewItem", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, createAttributeViewItem)
- ginServer.Handle("POST", "/api/av/createAttributeViewRelationItem", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, createAttributeViewRelationItem)
- ginServer.Handle("POST", "/api/av/createAttributeViewItemWithMarkdown", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, createAttributeViewItemWithMarkdown)
- ginServer.Handle("POST", "/api/av/createAttributeViewItemDocs", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, createAttributeViewItemDocs)
- ginServer.Handle("POST", "/api/av/removeUnusedAttributeViews", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, removeUnusedAttributeViews)
- ginServer.Handle("POST", "/api/av/removeUnusedAttributeView", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, removeUnusedAttributeView)
-
- ginServer.Handle("POST", "/api/ai/chatGPT", model.CheckAuth, model.CheckAdminRole, chatGPT)
- ginServer.Handle("POST", "/api/ai/ocr", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, aiOCR)
- ginServer.Handle("POST", "/api/ai/chatGPTWithAction", model.CheckAuth, model.CheckAdminRole, chatGPTWithAction)
- ginServer.Handle("POST", "/api/ai/editor/chat", model.CheckAuth, model.CheckAdminRole, aiEditorChat)
- ginServer.Handle("POST", "/api/ai/editor/lsActions", model.CheckAuth, model.CheckAdminRole, lsAIEditorActions)
- ginServer.Handle("POST", "/api/ai/editor/saveAction", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, saveAIEditorAction)
- ginServer.Handle("POST", "/api/ai/editor/removeAction", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, removeAIEditorAction)
- ginServer.Handle("POST", "/api/ai/testModel", model.CheckAuth, model.CheckAdminRole, testModel)
- ginServer.Handle("POST", "/api/ai/testEmbeddingModel", model.CheckAuth, model.CheckAdminRole, testEmbeddingModel)
- ginServer.Handle("POST", "/api/ai/testRerankModel", model.CheckAuth, model.CheckAdminRole, testRerankModel)
- ginServer.Handle("POST", "/api/ai/testDecisionModel", model.CheckAuth, model.CheckAdminRole, testDecisionModel)
- ginServer.Handle("POST", "/api/ai/listModels", model.CheckAuth, model.CheckAdminRole, listModels)
- ginServer.Handle("POST", "/api/ai/chatgpt/accounts", model.CheckAuth, model.CheckAdminRole, chatGPTAccounts)
- ginServer.Handle("POST", "/api/ai/chatgpt/start", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, chatGPTStart)
- ginServer.Handle("POST", "/api/ai/chatgpt/status", model.CheckAuth, model.CheckAdminRole, chatGPTStatus)
- ginServer.Handle("POST", "/api/ai/chatgpt/cancel", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, chatGPTCancel)
- ginServer.Handle("POST", "/api/ai/chatgpt/logout", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, chatGPTLogout)
- ginServer.Handle("POST", "/api/ai/chatgpt/remove", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, chatGPTRemove)
- ginServer.Handle("POST", "/api/ai/chatgpt/export", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, chatGPTExport)
- ginServer.Handle("POST", "/api/ai/chatgpt/import", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, chatGPTImport)
- ginServer.Handle("POST", "/api/ai/embeddingStat", model.CheckAuth, model.CheckAdminRole, embeddingStat)
- ginServer.Handle("POST", "/api/ai/mcpStatus", model.CheckAuth, model.CheckAdminRole, mcpStatus)
- ginServer.Handle("POST", "/api/ai/mcpEnvironmentVariables", model.CheckAuth, model.CheckAdminRole, mcpEnvironmentVariables)
- ginServer.Handle("POST", "/api/ai/mcpOAuthAuthorize", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, mcpOAuthAuthorize)
- ginServer.Handle("POST", "/api/ai/mcpOAuthDisconnect", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, mcpOAuthDisconnect)
- ginServer.Handle("POST", "/api/ai/reindexEmbedding", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, reindexEmbedding)
- ginServer.Handle("POST", "/api/ai/retryFailedEmbedding", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, retryFailedEmbedding)
- ginServer.Handle("POST", "/api/ai/agent/chat", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, agentChat)
- ginServer.Handle("POST", "/api/ai/agent/confirm", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, agentChatConfirm)
- ginServer.Handle("POST", "/api/ai/agent/setPermission", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, setAgentSessionPermission)
- ginServer.Handle("POST", "/api/ai/agent/question", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, agentChatQuestion)
- ginServer.Handle("POST", "/api/ai/agent/browserCapabilityResult", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, agentChatBrowserCapabilityResult)
- ginServer.Handle("POST", "/api/ai/lsCapabilities", model.CheckAuth, model.CheckAdminRole, lsCapabilities)
- ginServer.Handle("POST", "/api/ai/agent/title", model.CheckAuth, model.CheckAdminRole, agentChatTitle)
- ginServer.Handle("POST", "/api/ai/agent/lsSessions", model.CheckAuth, model.CheckAdminRole, lsSessions)
- ginServer.Handle("POST", "/api/ai/agent/getSession", model.CheckAuth, model.CheckAdminRole, getSession)
- ginServer.Handle("POST", "/api/ai/agent/saveSession", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, saveSession)
- ginServer.Handle("POST", "/api/ai/agent/removeSession", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, removeSession)
- ginServer.Handle("POST", "/api/ai/agent/lsSkills", model.CheckAuth, model.CheckAdminRole, lsSkills)
- ginServer.Handle("POST", "/api/ai/agent/getInstructions", model.CheckAuth, model.CheckAdminRole, getAgentInstructions)
- ginServer.Handle("POST", "/api/ai/agent/setInstructions", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, setAgentInstructions)
- ginServer.Handle("POST", "/api/ai/agent/manageSkills", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, manageSkills)
- ginServer.Handle("POST", "/api/ai/agent/lsUserSkills", model.CheckAuth, model.CheckAdminRole, lsUserSkills)
- ginServer.Handle("POST", "/api/ai/agent/lsBuiltinSkills", model.CheckAuth, model.CheckAdminRole, lsBuiltinSkills)
- ginServer.Handle("POST", "/api/ai/agent/getSkill", model.CheckAuth, model.CheckAdminRole, getSkill)
- ginServer.Handle("POST", "/api/ai/agent/saveSkill", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, saveSkill)
- ginServer.Handle("POST", "/api/ai/agent/removeSkill", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, removeSkill)
- ginServer.Handle("POST", "/api/ai/agent/renameSkill", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, renameSkill)
-
- ginServer.Handle("POST", "/api/petal/loadPetals", model.CheckAuth, loadPetals)
- ginServer.Handle("POST", "/api/petal/setPetalEnabled", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, setPetalEnabled)
- ginServer.Handle("POST", "/api/petal/setPetalPublishEnabled", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, setPetalPublishEnabled)
- ginServer.Handle("POST", "/api/petal/getPluginPublishInfo", model.CheckAuth, model.CheckAdminRole, getPluginPublishInfo)
- ginServer.Handle("POST", "/api/petal/setPluginPublishDataGrant", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, setPluginPublishDataGrant)
- ginServer.Handle("POST", "/api/petal/savePluginPublishData", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, savePluginPublishData)
- ginServer.Handle("POST", "/api/petal/loadPluginPublishData", model.CheckAuth, loadPluginPublishData)
-
- ginServer.Handle("GET", "/api/plugin/rpc", model.CheckAuth, getLoadedPluginRPC)
- ginServer.Handle("GET", "/api/plugin/rpc/:name", model.CheckAuth, getLoadedPluginRPCByName)
- ginServer.Handle("GET", "/api/plugin", model.CheckAuth, listLoadedPluginsGET)
-
- ginServer.Handle("POST", "/api/plugin/getLoadedPlugin", model.CheckAuth, getLoadedPlugin)
- ginServer.Handle("POST", "/api/plugin/listLoadedPlugins", model.CheckAuth, listLoadedPlugins)
-
- ginServer.Handle("POST", "/api/plugin/rpc", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, pluginJsonRpcHttp)
- ginServer.Handle("POST", "/api/plugin/rpc/:name", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, pluginJsonRpcHttpByName)
-
- ginServer.Handle("GET", "/ws/plugin/rpc", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, pluginJsonRpcWebSocket)
- ginServer.Handle("GET", "/ws/plugin/rpc/:name", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, pluginJsonRpcWebSocketByName)
-
- // ginServer.Any("/plugin/public/:name/*path", pluginPublicWebServer)
- 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, echoPath)
- ginServer.Handle("POST", "/api/network/forwardProxy", model.CheckAuth, model.CheckAdminRole, forwardProxy)
-
- ginServer.Any("/api/network/proxy", model.CheckAuth, model.CheckAdminRole, httpProxy)
- ginServer.Handle("GET", "/ws/network/proxy", model.CheckAuth, model.CheckAdminRole, wsProxy)
- ginServer.Handle("GET", "/es/network/proxy", model.CheckAuth, model.CheckAdminRole, esProxy)
-
- ginServer.Handle("GET", "/ws/broadcast", model.CheckAuth, model.CheckAdminRole, broadcast)
- ginServer.Handle("GET", "/es/broadcast/subscribe", model.CheckAuth, model.CheckAdminRole, broadcastSubscribe)
-
- ginServer.Handle("POST", "/api/broadcast/publish", model.CheckAuth, model.CheckAdminRole, broadcastPublish)
- ginServer.Handle("POST", "/api/broadcast/postMessage", model.CheckAuth, model.CheckAdminRole, postMessage)
- ginServer.Handle("POST", "/api/broadcast/getChannels", model.CheckAuth, model.CheckAdminRole, getChannels)
- ginServer.Handle("POST", "/api/broadcast/getChannelInfo", model.CheckAuth, model.CheckAdminRole, getChannelInfo)
-
- ginServer.Handle("POST", "/api/archive/zip", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, zip)
- ginServer.Handle("POST", "/api/archive/unzip", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, unzip)
-
- ginServer.Handle("POST", "/api/ui/reloadUI", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, reloadUI)
- ginServer.Handle("POST", "/api/ui/reloadIcon", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, reloadIcon)
- ginServer.Handle("POST", "/api/ui/reloadTheme", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, reloadTheme)
- ginServer.Handle("POST", "/api/ui/reloadAttributeView", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, reloadAttributeView)
- ginServer.Handle("POST", "/api/ui/reloadProtyle", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, reloadProtyle)
- ginServer.Handle("POST", "/api/ui/reloadFiletree", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, reloadFiletree)
- ginServer.Handle("POST", "/api/ui/reloadTag", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, reloadTag)
+ registerOauthRoutes(ginServer)
+ registerMcpRoutes(ginServer)
+ registerSystemRoutes(ginServer)
+ registerAiRoutes(ginServer)
+ registerIconRoutes(ginServer)
+ registerStorageRoutes(ginServer)
+ registerAccountRoutes(ginServer)
+ registerNotebookRoutes(ginServer)
+ registerFiletreeRoutes(ginServer)
+ registerFormatRoutes(ginServer)
+ registerHistoryRoutes(ginServer)
+ registerOutlineRoutes(ginServer)
+ registerBookmarkRoutes(ginServer)
+ registerTagRoutes(ginServer)
+ registerLuteRoutes(ginServer)
+ registerQueryRoutes(ginServer)
+ registerSqliteRoutes(ginServer)
+ registerSearchRoutes(ginServer)
+ registerBlockRoutes(ginServer)
+ registerFileRoutes(ginServer)
+ registerRefRoutes(ginServer)
+ registerAttrRoutes(ginServer)
+ registerCloudRoutes(ginServer)
+ registerSyncRoutes(ginServer)
+ registerInboxRoutes(ginServer)
+ registerExtensionRoutes(ginServer)
+ registerClipboardRoutes(ginServer)
+ registerAssetRoutes(ginServer)
+ registerExportRoutes(ginServer)
+ registerImportRoutes(ginServer)
+ registerConvertRoutes(ginServer)
+ registerTemplateRoutes(ginServer)
+ registerTransactionsRoutes(ginServer)
+ registerSettingRoutes(ginServer)
+ registerGraphRoutes(ginServer)
+ registerBazaarRoutes(ginServer)
+ registerRepoRoutes(ginServer)
+ registerRiffRoutes(ginServer)
+ registerNotificationRoutes(ginServer)
+ registerSnippetRoutes(ginServer)
+ registerAvRoutes(ginServer)
+ registerPetalRoutes(ginServer)
+ registerPluginRoutes(ginServer)
+ registerNetworkRoutes(ginServer)
+ registerBroadcastRoutes(ginServer)
+ registerArchiveRoutes(ginServer)
+ registerUiRoutes(ginServer)
}
func deprecatedResponse(c *gin.Context, request apicontract.EmptyRequest) apicontract.Response[apicontract.Null] {
@@ -787,3 +91,876 @@ var searchAttributeViewNonRelationKey = contractHandler(apicontract.SearchAttrib
var setLocalStorage = contractHandler(apicontract.SetLocalStorage, deprecatedResponse)
var deprecatedReloadUI = contractHandler(apicontract.DeprecatedReloadUI, deprecatedResponse)
+
+// registerOauthRoutes 注册本域的契约路由。
+func registerOauthRoutes(ginServer *gin.Engine) {
+ ginServer.GET("/.well-known/oauth-protected-resource/mcp", contractRouteHandlers(apicontract.MCPOAuthResource, mcpOAuthResource)...)
+ ginServer.GET("/.well-known/oauth-protected-resource", contractRouteHandlers(apicontract.MCPOAuthResourceRoot, mcpOAuthResourceRoot)...)
+ ginServer.GET("/.well-known/oauth-authorization-server", contractRouteHandlers(apicontract.MCPOAuthMetadata, mcpOAuthMetadata)...)
+ ginServer.GET("/oauth/mcp/authorize", contractRouteHandlers(apicontract.MCPOAuthAuthorize, mcpOAuthServerAuthorize)...)
+ ginServer.POST("/oauth/mcp/consent", contractRouteHandlers(apicontract.MCPOAuthConsent, mcpOAuthConsent)...)
+ ginServer.POST("/oauth/mcp/token", contractRouteHandlers(apicontract.MCPOAuthToken, mcpOAuthToken)...)
+ ginServer.POST("/oauth/mcp/revoke", contractRouteHandlers(apicontract.MCPOAuthRevoke, mcpOAuthRevoke)...)
+}
+
+// registerMcpRoutes 注册本域的契约路由。
+func registerMcpRoutes(ginServer *gin.Engine) {
+ ginServer.POST("/api/mcp/getOAuth", contractRouteHandlers(apicontract.MCPOAuthGet, mcpOAuthGet)...)
+ ginServer.POST("/api/mcp/setOAuth", contractRouteHandlers(apicontract.MCPOAuthSet, mcpOAuthSet)...)
+ ginServer.POST("/api/mcp/addOAuthClient", contractRouteHandlers(apicontract.MCPOAuthAddClient, mcpOAuthAddClient)...)
+ ginServer.POST("/api/mcp/removeOAuthClient", contractRouteHandlers(apicontract.MCPOAuthRemoveClient, mcpOAuthRemoveClient)...)
+}
+
+// registerSystemRoutes 注册本域的契约路由。
+func registerSystemRoutes(ginServer *gin.Engine) {
+ ginServer.Handle("GET", "/api/system/bootProgress", contractRouteHandlers(apicontract.BootProgress, bootProgress)...)
+ ginServer.Handle("POST", "/api/system/bootProgress", contractRouteHandlers(apicontract.BootProgress, bootProgress)...)
+ ginServer.Handle("GET", "/api/system/bootProgressSSE", contractRouteHandlers(apicontract.SystemBootProgressSSE, bootProgressSSE)...)
+ ginServer.Handle("GET", "/api/system/getBootAppearance", contractRouteHandlers(apicontract.SystemGetBootAppearance, getBootAppearance)...)
+ ginServer.Handle("GET", "/api/system/version", contractRouteHandlers(apicontract.Version, version)...)
+ ginServer.Handle("POST", "/api/system/version", contractRouteHandlers(apicontract.Version, version)...)
+ ginServer.Handle("POST", "/api/system/currentTime", contractRouteHandlers(apicontract.CurrentTime, currentTime)...)
+ ginServer.Handle("POST", "/api/system/loginAuth", contractRouteHandlers(apicontract.SystemLoginAuth, loginAuth)...)
+ ginServer.Handle("POST", "/api/system/logoutAuth", contractRouteHandlers(apicontract.SystemLogoutAuth, logoutAuth)...)
+ ginServer.Handle("GET", "/api/system/getCaptcha", contractRouteHandlers(apicontract.SystemGetCaptcha, getCaptcha)...)
+ ginServer.Handle("POST", "/api/system/oidc/start", contractRouteHandlers(apicontract.SystemOIDCStart, oidcStart)...)
+ ginServer.Handle("GET", "/api/system/oidc/callback", contractRouteHandlers(apicontract.SystemOIDCCallback, oidcCallback)...)
+ ginServer.Handle("POST", "/api/system/oidc/mobileCallback", contractRouteHandlers(apicontract.SystemOIDCMobileCallback, oidcMobileCallback)...)
+ ginServer.Handle("POST", "/api/system/oidc/poll", contractRouteHandlers(apicontract.SystemOIDCPoll, oidcPoll)...)
+ ginServer.Handle("POST", "/api/system/oidc/validatePoll", contractRouteHandlers(apicontract.SystemOIDCValidatePoll, oidcValidatePoll)...)
+ ginServer.Handle("POST", "/api/system/getEmojiConf", contractRouteHandlers(apicontract.SystemGetEmojiConf, getEmojiConf)...)
+ ginServer.Handle("POST", "/api/system/addCustomEmoji", contractRouteHandlers(apicontract.SystemAddCustomEmoji, addCustomEmoji)...)
+ ginServer.Handle("POST", "/api/system/setAPIToken", contractRouteHandlers(apicontract.SystemSetAPIToken, setAPIToken)...)
+ ginServer.Handle("POST", "/api/system/setAccessAuthCode", contractRouteHandlers(apicontract.SystemSetAccessAuthCode, setAccessAuthCode)...)
+ ginServer.Handle("POST", "/api/system/setOIDC", contractRouteHandlers(apicontract.SystemSetOIDC, setOIDC)...)
+ ginServer.Handle("POST", "/api/system/oidc/validate", contractRouteHandlers(apicontract.SystemOIDCValidateStart, oidcValidateStart)...)
+ ginServer.Handle("POST", "/api/system/oidc/validateActivate", contractRouteHandlers(apicontract.SystemOIDCValidateActivate, oidcValidateActivate)...)
+ ginServer.Handle("POST", "/api/system/oidc/validateCancel", contractRouteHandlers(apicontract.SystemOIDCValidateCancel, oidcValidateCancel)...)
+ ginServer.Handle("POST", "/api/system/setFollowSystemLockScreen", contractRouteHandlers(apicontract.SetFollowSystemLockScreen, setFollowSystemLockScreen)...)
+ ginServer.Handle("POST", "/api/system/setNetworkServe", contractRouteHandlers(apicontract.SetNetworkServe, setNetworkServe)...)
+ ginServer.Handle("POST", "/api/system/setNetworkServeTLS", contractRouteHandlers(apicontract.SetNetworkServeTLS, setNetworkServeTLS)...)
+ ginServer.Handle("POST", "/api/system/exportTLSCACert", contractRouteHandlers(apicontract.SystemExportTLSCACert, exportTLSCACert)...)
+ ginServer.Handle("POST", "/api/system/exportTLSCABundle", contractRouteHandlers(apicontract.SystemExportTLSCABundle, exportTLSCABundle)...)
+ ginServer.Handle("POST", "/api/system/importTLSCABundle", contractRouteHandlers(apicontract.SystemImportTLSCABundle, importTLSCABundle)...)
+ ginServer.Handle("POST", "/api/system/setAutoLaunch", contractRouteHandlers(apicontract.SetAutoLaunch, setAutoLaunch)...)
+ ginServer.Handle("POST", "/api/system/setDownloadInstallPkg", contractRouteHandlers(apicontract.SetDownloadInstallPkg, setDownloadInstallPkg)...)
+ ginServer.Handle("POST", "/api/system/setSettingsWindow", contractRouteHandlers(apicontract.SetSettingsWindow, setSettingsWindow)...)
+ ginServer.Handle("POST", "/api/system/setUpdateChannel", contractRouteHandlers(apicontract.SetUpdateChannel, setUpdateChannel)...)
+ ginServer.Handle("POST", "/api/system/setNetworkProxy", contractRouteHandlers(apicontract.SetNetworkProxy, setNetworkProxy)...)
+ ginServer.Handle("POST", "/api/system/setWorkspaceDir", contractRouteHandlers(apicontract.SystemSetWorkspaceDir, setWorkspaceDir)...)
+ ginServer.Handle("POST", "/api/system/getWorkspaces", contractRouteHandlers(apicontract.SystemGetWorkspaces, getWorkspaces)...)
+ ginServer.Handle("POST", "/api/system/getMobileWorkspaces", contractRouteHandlers(apicontract.SystemGetMobileWorkspaces, getMobileWorkspaces)...)
+ ginServer.Handle("POST", "/api/system/checkWorkspaceDir", contractRouteHandlers(apicontract.SystemCheckWorkspaceDir, checkWorkspaceDir)...)
+ ginServer.Handle("POST", "/api/system/createWorkspaceDir", contractRouteHandlers(apicontract.SystemCreateWorkspaceDir, createWorkspaceDir)...)
+ ginServer.Handle("POST", "/api/system/removeWorkspaceDir", contractRouteHandlers(apicontract.SystemRemoveWorkspaceDir, removeWorkspaceDir)...)
+ ginServer.Handle("POST", "/api/system/removeWorkspaceDirPhysically", contractRouteHandlers(apicontract.SystemRemoveWorkspaceDirPhysically, removeWorkspaceDirPhysically)...)
+ ginServer.Handle("POST", "/api/system/setAppearanceMode", contractRouteHandlers(apicontract.SystemSetAppearanceMode, setAppearanceMode)...)
+ ginServer.Handle("POST", "/api/system/setUILayout", contractRouteHandlers(apicontract.SystemSetUILayout, setUILayout)...)
+ ginServer.Handle("POST", "/api/system/getSysFonts", contractRouteHandlers(apicontract.SystemGetSysFonts, getSysFonts)...)
+ ginServer.Handle("POST", "/api/system/getCustomFonts", contractRouteHandlers(apicontract.SystemGetCustomFonts, getCustomFonts)...)
+ ginServer.Handle("POST", "/api/system/importCustomFont", contractRouteHandlers(apicontract.SystemImportCustomFont, importCustomFont)...)
+ ginServer.Handle("POST", "/api/system/removeCustomFont", contractRouteHandlers(apicontract.SystemRemoveCustomFont, removeCustomFont)...)
+ ginServer.Handle("POST", "/api/system/exit", contractRouteHandlers(apicontract.SystemExit, exit)...)
+ ginServer.Handle("POST", "/api/system/uiproc", contractRouteHandlers(apicontract.SystemAddUIProcess, addUIProcess)...)
+ ginServer.Handle("POST", "/api/system/getConf", contractRouteHandlers(apicontract.SystemGetConf, getConf)...)
+ ginServer.Handle("POST", "/api/system/ensureOnboarding", contractRouteHandlers(apicontract.SystemEnsureOnboarding, ensureOnboarding)...)
+ ginServer.Handle("POST", "/api/system/dismissOnboarding", contractRouteHandlers(apicontract.SystemDismissOnboarding, dismissOnboarding)...)
+ ginServer.Handle("POST", "/api/system/checkUpdate", contractRouteHandlers(apicontract.SystemCheckUpdate, checkUpdate)...)
+ ginServer.Handle("POST", "/api/system/exportLog", contractRouteHandlers(apicontract.SystemExportLog, exportLog)...)
+ ginServer.Handle("POST", "/api/system/appendKeyboardLog", contractRouteHandlers(apicontract.SystemAppendKeyboardLog, appendKeyboardLog)...)
+ ginServer.Handle("POST", "/api/system/getChangelog", contractRouteHandlers(apicontract.SystemGetChangelog, getChangelog)...)
+ ginServer.Handle("POST", "/api/system/getNetwork", contractRouteHandlers(apicontract.GetNetwork, getNetwork)...)
+ ginServer.Handle("POST", "/api/system/exportConf", contractRouteHandlers(apicontract.SystemExportConf, exportConf)...)
+ ginServer.Handle("POST", "/api/system/importConf", contractRouteHandlers(apicontract.SystemImportConf, importConf)...)
+ ginServer.Handle("POST", "/api/system/getWorkspaceInfo", contractRouteHandlers(apicontract.GetWorkspaceInfo, getWorkspaceInfo)...)
+ ginServer.Handle("POST", "/api/system/getWorkspaceStorage", contractRouteHandlers(apicontract.GetWorkspaceStorage, getWorkspaceStorage)...)
+ ginServer.Handle("POST", "/api/system/getRuntimeInfo", contractRouteHandlers(apicontract.GetRuntimeInfo, getRuntimeInfo)...)
+ ginServer.Handle("POST", "/api/system/reloadUI", contractRouteHandlers(apicontract.DeprecatedReloadUI, deprecatedReloadUI)...)
+ ginServer.Handle("POST", "/api/system/addMicrosoftDefenderExclusion", contractRouteHandlers(apicontract.AddMicrosoftDefenderExclusion, addMicrosoftDefenderExclusion)...)
+ ginServer.Handle("POST", "/api/system/ignoreAddMicrosoftDefenderExclusion", contractRouteHandlers(apicontract.IgnoreAddMicrosoftDefenderExclusion, ignoreAddMicrosoftDefenderExclusion)...)
+ ginServer.Handle("POST", "/api/system/vacuumDataIndex", contractRouteHandlers(apicontract.VacuumDataIndex, vacuumDataIndex)...)
+ ginServer.Handle("POST", "/api/system/clearTempFiles", contractRouteHandlers(apicontract.ClearTempFiles, clearTempFiles)...)
+ ginServer.Handle("POST", "/api/system/rebuildDataIndex", contractRouteHandlers(apicontract.RebuildDataIndex, rebuildDataIndex)...)
+}
+
+// registerAiRoutes 注册本域的契约路由。
+func registerAiRoutes(ginServer *gin.Engine) {
+ ginServer.Handle("GET", "/api/ai/mcp/oauth/callback/:flowID", contractRouteHandlers(apicontract.AIMCPOAuthCallback, mcpOAuthCallback)...)
+ ginServer.Handle("POST", "/api/ai/chatGPT", contractRouteHandlers(apicontract.AIChatGPT, chatGPT)...)
+ ginServer.Handle("POST", "/api/ai/ocr", contractRouteHandlers(apicontract.AIOCR, aiOCR)...)
+ ginServer.Handle("POST", "/api/ai/chatGPTWithAction", contractRouteHandlers(apicontract.AIChatGPTWithAction, chatGPTWithAction)...)
+ ginServer.Handle("POST", "/api/ai/editor/chat", contractRouteHandlers(apicontract.AIEditorChat, aiEditorChat)...)
+ ginServer.Handle("POST", "/api/ai/editor/lsActions", contractRouteHandlers(apicontract.AIListEditorActions, lsAIEditorActions)...)
+ ginServer.Handle("POST", "/api/ai/editor/saveAction", contractRouteHandlers(apicontract.AISaveEditorAction, saveAIEditorAction)...)
+ ginServer.Handle("POST", "/api/ai/editor/removeAction", contractRouteHandlers(apicontract.AIRemoveEditorAction, removeAIEditorAction)...)
+ ginServer.Handle("POST", "/api/ai/testModel", contractRouteHandlers(apicontract.AITestModel, testModel)...)
+ ginServer.Handle("POST", "/api/ai/testEmbeddingModel", contractRouteHandlers(apicontract.AITestEmbeddingModel, testEmbeddingModel)...)
+ ginServer.Handle("POST", "/api/ai/testRerankModel", contractRouteHandlers(apicontract.AITestRerankModel, testRerankModel)...)
+ ginServer.Handle("POST", "/api/ai/testDecisionModel", contractRouteHandlers(apicontract.AITestDecisionModel, testDecisionModel)...)
+ ginServer.Handle("POST", "/api/ai/listModels", contractRouteHandlers(apicontract.AIListModels, listModels)...)
+ ginServer.Handle("POST", "/api/ai/chatgpt/accounts", contractRouteHandlers(apicontract.ChatGPTAccounts, chatGPTAccounts)...)
+ ginServer.Handle("POST", "/api/ai/chatgpt/start", contractRouteHandlers(apicontract.ChatGPTStart, chatGPTStart)...)
+ ginServer.Handle("POST", "/api/ai/chatgpt/status", contractRouteHandlers(apicontract.ChatGPTStatus, chatGPTStatus)...)
+ ginServer.Handle("POST", "/api/ai/chatgpt/cancel", contractRouteHandlers(apicontract.ChatGPTCancel, chatGPTCancel)...)
+ ginServer.Handle("POST", "/api/ai/chatgpt/logout", contractRouteHandlers(apicontract.ChatGPTLogout, chatGPTLogout)...)
+ ginServer.Handle("POST", "/api/ai/chatgpt/remove", contractRouteHandlers(apicontract.ChatGPTRemove, chatGPTRemove)...)
+ ginServer.Handle("POST", "/api/ai/chatgpt/export", contractRouteHandlers(apicontract.ChatGPTExport, chatGPTExport)...)
+ ginServer.Handle("POST", "/api/ai/chatgpt/import", contractRouteHandlers(apicontract.ChatGPTImport, chatGPTImport)...)
+ ginServer.Handle("POST", "/api/ai/embeddingStat", contractRouteHandlers(apicontract.AIGetEmbeddingStat, embeddingStat)...)
+ ginServer.Handle("POST", "/api/ai/mcpStatus", contractRouteHandlers(apicontract.AIGetMCPStatus, mcpStatus)...)
+ ginServer.Handle("POST", "/api/ai/mcpEnvironmentVariables", contractRouteHandlers(apicontract.AIGetMCPEnvironment, mcpEnvironmentVariables)...)
+ ginServer.Handle("POST", "/api/ai/mcpOAuthAuthorize", contractRouteHandlers(apicontract.AIMCPOAuthAuthorize, mcpOAuthAuthorize)...)
+ ginServer.Handle("POST", "/api/ai/mcpOAuthDisconnect", contractRouteHandlers(apicontract.AIMCPOAuthDisconnect, mcpOAuthDisconnect)...)
+ ginServer.Handle("POST", "/api/ai/reindexEmbedding", contractRouteHandlers(apicontract.AIReindexEmbedding, reindexEmbedding)...)
+ ginServer.Handle("POST", "/api/ai/retryFailedEmbedding", contractRouteHandlers(apicontract.AIRetryFailedEmbedding, retryFailedEmbedding)...)
+ ginServer.Handle("POST", "/api/ai/agent/chat", contractRouteHandlers(apicontract.AIAgentChat, agentChat)...)
+ ginServer.Handle("POST", "/api/ai/agent/confirm", contractRouteHandlers(apicontract.AIAgentConfirm, agentChatConfirm)...)
+ ginServer.Handle("POST", "/api/ai/agent/setPermission", contractRouteHandlers(apicontract.AIAgentSetPermission, setAgentSessionPermission)...)
+ ginServer.Handle("POST", "/api/ai/agent/question", contractRouteHandlers(apicontract.AIAgentQuestion, agentChatQuestion)...)
+ ginServer.Handle("POST", "/api/ai/agent/browserCapabilityResult", contractRouteHandlers(apicontract.AIAgentBrowserCapabilityResult, agentChatBrowserCapabilityResult)...)
+ ginServer.Handle("POST", "/api/ai/lsCapabilities", contractRouteHandlers(apicontract.AIListCapabilities, lsCapabilities)...)
+ ginServer.Handle("POST", "/api/ai/agent/title", contractRouteHandlers(apicontract.AIAgentTitle, agentChatTitle)...)
+ ginServer.Handle("POST", "/api/ai/agent/lsSessions", contractRouteHandlers(apicontract.AIListSessions, lsSessions)...)
+ ginServer.Handle("POST", "/api/ai/agent/getSession", contractRouteHandlers(apicontract.AIGetSession, getSession)...)
+ ginServer.Handle("POST", "/api/ai/agent/saveSession", contractRouteHandlers(apicontract.AISaveSession, saveSession)...)
+ ginServer.Handle("POST", "/api/ai/agent/removeSession", contractRouteHandlers(apicontract.AIRemoveSession, removeSession)...)
+ ginServer.Handle("POST", "/api/ai/agent/lsSkills", contractRouteHandlers(apicontract.AIListSkills, lsSkills)...)
+ ginServer.Handle("POST", "/api/ai/agent/getInstructions", contractRouteHandlers(apicontract.AIGetAgentInstructions, getAgentInstructions)...)
+ ginServer.Handle("POST", "/api/ai/agent/setInstructions", contractRouteHandlers(apicontract.AISetAgentInstructions, setAgentInstructions)...)
+ ginServer.Handle("POST", "/api/ai/agent/manageSkills", contractRouteHandlers(apicontract.AIManageSkills, manageSkills)...)
+ ginServer.Handle("POST", "/api/ai/agent/lsUserSkills", contractRouteHandlers(apicontract.AIListUserSkills, lsUserSkills)...)
+ ginServer.Handle("POST", "/api/ai/agent/lsBuiltinSkills", contractRouteHandlers(apicontract.AIListBuiltinSkills, lsBuiltinSkills)...)
+ ginServer.Handle("POST", "/api/ai/agent/getSkill", contractRouteHandlers(apicontract.AIGetSkill, getSkill)...)
+ ginServer.Handle("POST", "/api/ai/agent/saveSkill", contractRouteHandlers(apicontract.AISaveSkill, saveSkill)...)
+ ginServer.Handle("POST", "/api/ai/agent/removeSkill", contractRouteHandlers(apicontract.AIRemoveSkill, removeSkill)...)
+ ginServer.Handle("POST", "/api/ai/agent/renameSkill", contractRouteHandlers(apicontract.AIRenameSkill, renameSkill)...)
+}
+
+// registerIconRoutes 注册本域的契约路由。
+func registerIconRoutes(ginServer *gin.Engine) {
+ ginServer.Handle("GET", "/api/icon/getDynamicIcon", contractRouteHandlers(apicontract.GetDynamicIcon, getDynamicIcon)...)
+}
+
+// registerStorageRoutes 注册本域的契约路由。
+func registerStorageRoutes(ginServer *gin.Engine) {
+ ginServer.Handle("POST", "/api/storage/getLocalStorage", contractRouteHandlers(apicontract.GetLocalStorage, getLocalStorage)...)
+ ginServer.Handle("POST", "/api/storage/getLocalStorageVal", contractRouteHandlers(apicontract.GetLocalStorageVal, getLocalStorageVal)...)
+ ginServer.Handle("POST", "/api/storage/getLocalStorageVals", contractRouteHandlers(apicontract.GetLocalStorageVals, getLocalStorageVals)...)
+ ginServer.Handle("POST", "/api/storage/setLocalStorage", contractRouteHandlers(apicontract.SetLocalStorage, setLocalStorage)...)
+ ginServer.Handle("POST", "/api/storage/setLocalStorageVal", contractRouteHandlers(apicontract.SetLocalStorageVal, setLocalStorageVal)...)
+ ginServer.Handle("POST", "/api/storage/setLocalStorageVals", contractRouteHandlers(apicontract.SetLocalStorageVals, setLocalStorageVals)...)
+ ginServer.Handle("POST", "/api/storage/removeLocalStorageVal", contractRouteHandlers(apicontract.RemoveLocalStorageVal, removeLocalStorageVal)...)
+ ginServer.Handle("POST", "/api/storage/removeLocalStorageVals", contractRouteHandlers(apicontract.RemoveLocalStorageVals, removeLocalStorageVals)...)
+ ginServer.Handle("POST", "/api/storage/getInlineStyles", contractRouteHandlers(apicontract.GetInlineStyles, getInlineStyles)...)
+ ginServer.Handle("POST", "/api/storage/setInlineStyles", contractRouteHandlers(apicontract.SetInlineStyles, setInlineStyles)...)
+ ginServer.Handle("POST", "/api/storage/setWorkspaceAVPalette", contractRouteHandlers(apicontract.SetWorkspaceAVPalette, setWorkspaceAVPalette)...)
+ ginServer.Handle("POST", "/api/storage/getCriteria", contractRouteHandlers(apicontract.GetCriteria, getCriteria)...)
+ ginServer.Handle("POST", "/api/storage/setCriterion", contractRouteHandlers(apicontract.SetCriterion, setCriterion)...)
+ ginServer.Handle("POST", "/api/storage/removeCriterion", contractRouteHandlers(apicontract.RemoveCriterion, removeCriterion)...)
+ ginServer.Handle("POST", "/api/storage/getRecentDocs", contractRouteHandlers(apicontract.GetRecentDocs, getRecentDocs)...)
+ ginServer.Handle("POST", "/api/storage/updateRecentDocOpenTime", contractRouteHandlers(apicontract.UpdateRecentDocOpenTime, updateRecentDocOpenTime)...)
+ ginServer.Handle("POST", "/api/storage/updateRecentDocViewTime", contractRouteHandlers(apicontract.UpdateRecentDocViewTime, updateRecentDocViewTime)...)
+ ginServer.Handle("POST", "/api/storage/updateRecentDocCloseTime", contractRouteHandlers(apicontract.UpdateRecentDocCloseTime, updateRecentDocCloseTime)...)
+ ginServer.Handle("POST", "/api/storage/batchUpdateRecentDocCloseTime", contractRouteHandlers(apicontract.BatchUpdateRecentDocCloseTime, batchUpdateRecentDocCloseTime)...)
+ ginServer.Handle("POST", "/api/storage/getOutlineStorage", contractRouteHandlers(apicontract.GetOutlineStorage, getOutlineStorage)...)
+ ginServer.Handle("POST", "/api/storage/setOutlineStorage", contractRouteHandlers(apicontract.SetOutlineStorage, setOutlineStorage)...)
+ ginServer.Handle("POST", "/api/storage/removeOutlineStorage", contractRouteHandlers(apicontract.RemoveOutlineStorage, removeOutlineStorage)...)
+ ginServer.Handle("POST", "/api/storage/getViewState", contractRouteHandlers(apicontract.GetViewState, getViewState)...)
+ ginServer.Handle("POST", "/api/storage/patchViewState", contractRouteHandlers(apicontract.PatchViewState, patchViewState)...)
+ ginServer.Handle("POST", "/api/storage/removeViewState", contractRouteHandlers(apicontract.RemoveViewState, removeViewState)...)
+}
+
+// registerAccountRoutes 注册本域的契约路由。
+func registerAccountRoutes(ginServer *gin.Engine) {
+ ginServer.Handle("POST", "/api/account/login", contractRouteHandlers(apicontract.AccountLogin, login)...)
+ ginServer.Handle("POST", "/api/account/checkActivationcode", contractRouteHandlers(apicontract.CheckActivationCode, checkActivationcode)...)
+ ginServer.Handle("POST", "/api/account/useActivationcode", contractRouteHandlers(apicontract.UseActivationCode, useActivationcode)...)
+ ginServer.Handle("POST", "/api/account/deactivate", contractRouteHandlers(apicontract.DeactivateUser, deactivateUser)...)
+ ginServer.Handle("POST", "/api/account/startFreeTrial", contractRouteHandlers(apicontract.StartFreeTrial, startFreeTrial)...)
+}
+
+// registerNotebookRoutes 注册本域的契约路由。
+func registerNotebookRoutes(ginServer *gin.Engine) {
+ ginServer.Handle("POST", "/api/notebook/lsNotebooks", contractRouteHandlers(apicontract.ListNotebooks, lsNotebooks)...)
+ ginServer.Handle("POST", "/api/notebook/openNotebook", contractRouteHandlers(apicontract.OpenNotebook, openNotebook)...)
+ ginServer.Handle("POST", "/api/notebook/closeNotebook", contractRouteHandlers(apicontract.CloseNotebook, closeNotebook)...)
+ ginServer.Handle("POST", "/api/notebook/getNotebookConf", contractRouteHandlers(apicontract.GetNotebookConf, getNotebookConf)...)
+ ginServer.Handle("POST", "/api/notebook/setNotebookConf", contractRouteHandlers(apicontract.SetNotebookConf, setNotebookConf)...)
+ ginServer.Handle("POST", "/api/notebook/createNotebook", contractRouteHandlers(apicontract.CreateNotebook, createNotebook)...)
+ ginServer.Handle("POST", "/api/notebook/removeNotebook", contractRouteHandlers(apicontract.RemoveNotebook, removeNotebook)...)
+ ginServer.Handle("POST", "/api/notebook/renameNotebook", contractRouteHandlers(apicontract.RenameNotebook, renameNotebook)...)
+ ginServer.Handle("POST", "/api/notebook/changeSortNotebook", contractRouteHandlers(apicontract.ChangeSortNotebook, changeSortNotebook)...)
+ ginServer.Handle("POST", "/api/notebook/reorder", contractRouteHandlers(apicontract.ReorderNotebooks, reorderNotebooks)...)
+ ginServer.Handle("POST", "/api/notebook/setNotebookIcon", contractRouteHandlers(apicontract.SetNotebookIcon, setNotebookIcon)...)
+ ginServer.Handle("POST", "/api/notebook/getNotebookInfo", contractRouteHandlers(apicontract.GetNotebookInfo, getNotebookInfo)...)
+ ginServer.Handle("POST", "/api/notebook/enableEncryptedNotebooks", contractRouteHandlers(apicontract.EnableEncryptedNotebooks, enableEncryptedNotebooks)...)
+ ginServer.Handle("POST", "/api/notebook/disableEncryptedNotebooks", contractRouteHandlers(apicontract.DisableEncryptedNotebooks, disableEncryptedNotebooks)...)
+ ginServer.Handle("POST", "/api/notebook/createEncryptedNotebook", contractRouteHandlers(apicontract.CreateEncryptedNotebook, createEncryptedNotebook)...)
+ ginServer.Handle("POST", "/api/notebook/unlockNotebook", contractRouteHandlers(apicontract.UnlockNotebook, unlockNotebook)...)
+ ginServer.Handle("POST", "/api/notebook/lockNotebook", contractRouteHandlers(apicontract.LockNotebook, lockNotebook)...)
+ ginServer.Handle("POST", "/api/notebook/unlockAndOpenNotebook", contractRouteHandlers(apicontract.UnlockAndOpenNotebook, unlockAndOpenNotebook)...)
+ ginServer.Handle("POST", "/api/notebook/changeMasterPassword", contractRouteHandlers(apicontract.ChangeMasterPassword, changeMasterPassword)...)
+ ginServer.Handle("POST", "/api/notebook/getEncryptedNotebookStatus", contractRouteHandlers(apicontract.GetEncryptedNotebookStatus, getEncryptedNotebookStatus)...)
+ ginServer.Handle("POST", "/api/notebook/exportNotebookCryptoBackup", contractRouteHandlers(apicontract.ExportNotebookCryptoBackup, exportNotebookCryptoBackup)...)
+ ginServer.Handle("POST", "/api/notebook/importNotebookCryptoBackup", contractRouteHandlers(apicontract.ImportNotebookCryptoBackup, importNotebookCryptoBackup)...)
+ ginServer.Handle("POST", "/api/notebook/getNotebookArchiveCandidates", contractRouteHandlers(apicontract.GetNotebookArchiveCandidates, getNotebookArchiveCandidates)...)
+ ginServer.Handle("POST", "/api/notebook/prepareNotebookArchive", contractRouteHandlers(apicontract.PrepareNotebookArchive, prepareNotebookArchive)...)
+ ginServer.Handle("POST", "/api/notebook/commitNotebookArchive", contractRouteHandlers(apicontract.CommitNotebookArchive, commitNotebookArchive)...)
+ ginServer.Handle("POST", "/api/notebook/importNotebookArchive", contractRouteHandlers(apicontract.ImportNotebookArchive, importNotebookArchive)...)
+ ginServer.Handle("POST", "/api/notebook/setNotebookCryptoAutoLock", contractRouteHandlers(apicontract.SetNotebookCryptoAutoLock, setNotebookCryptoAutoLock)...)
+ ginServer.Handle("POST", "/api/notebook/setEncryptedNotebookFollowSystemLock", contractRouteHandlers(apicontract.SetEncryptedNotebookFollowSystemLock, setEncryptedNotebookFollowSystemLock)...)
+ ginServer.Handle("POST", "/api/notebook/lockEncryptedNotebooksOnSystemLock", contractRouteHandlers(apicontract.LockEncryptedNotebooksOnSystemLock, lockEncryptedNotebooksOnSystemLock)...)
+ ginServer.Handle("POST", "/api/notebook/touchEncryptedNotebooks", contractRouteHandlers(apicontract.TouchEncryptedNotebooks, touchEncryptedNotebooks)...)
+}
+
+// registerFiletreeRoutes 注册本域的契约路由。
+func registerFiletreeRoutes(ginServer *gin.Engine) {
+ ginServer.Handle("POST", "/api/filetree/searchDocs", contractRouteHandlers(apicontract.SearchDocs, searchDocs)...)
+ ginServer.Handle("POST", "/api/filetree/getPinnedDocs", contractRouteHandlers(apicontract.GetPinnedDocs, getPinnedDocs)...)
+ ginServer.Handle("POST", "/api/filetree/updatePinnedDocs", contractRouteHandlers(apicontract.UpdatePinnedDocs, updatePinnedDocs)...)
+ ginServer.Handle("POST", "/api/filetree/listDocsByPath", contractRouteHandlers(apicontract.ListDocsByPath, listDocsByPath)...)
+ ginServer.Handle("POST", "/api/filetree/getDoc", contractRouteHandlers(apicontract.GetDoc, getDoc)...)
+ ginServer.Handle("POST", "/api/filetree/getDocCreateSavePath", contractRouteHandlers(apicontract.GetDocCreateSavePath, getDocCreateSavePath)...)
+ ginServer.Handle("POST", "/api/filetree/getRefCreateSavePath", contractRouteHandlers(apicontract.GetRefCreateSavePath, getRefCreateSavePath)...)
+ ginServer.Handle("POST", "/api/filetree/getShorthandSavePath", contractRouteHandlers(apicontract.GetShorthandSavePath, getShorthandSavePath)...)
+ ginServer.Handle("POST", "/api/filetree/changeSort", contractRouteHandlers(apicontract.ChangeSort, changeSort)...)
+ ginServer.Handle("POST", "/api/filetree/reorderDocs", contractRouteHandlers(apicontract.ReorderDocs, reorderDocs)...)
+ ginServer.Handle("POST", "/api/filetree/setSort", contractRouteHandlers(apicontract.SetSort, setSort)...)
+ ginServer.Handle("POST", "/api/filetree/setDocSortMode", contractRouteHandlers(apicontract.SetDocSortMode, setDocSortMode)...)
+ ginServer.Handle("POST", "/api/filetree/createDocWithMd", contractRouteHandlers(apicontract.CreateDocWithMd, createDocWithMd)...)
+ ginServer.Handle("POST", "/api/filetree/createDailyNote", contractRouteHandlers(apicontract.CreateDailyNote, createDailyNote)...)
+ ginServer.Handle("POST", "/api/filetree/getDailyNoteInfo", contractRouteHandlers(apicontract.GetDailyNoteInfo, getDailyNoteInfo)...)
+ ginServer.Handle("POST", "/api/filetree/createDoc", contractRouteHandlers(apicontract.CreateDoc, createDoc)...)
+ ginServer.Handle("POST", "/api/filetree/renameDoc", contractRouteHandlers(apicontract.RenameDoc, renameDoc)...)
+ ginServer.Handle("POST", "/api/filetree/renameDocByID", contractRouteHandlers(apicontract.RenameDocByID, renameDocByID)...)
+ ginServer.Handle("POST", "/api/filetree/removeDoc", contractRouteHandlers(apicontract.RemoveDoc, removeDoc)...)
+ ginServer.Handle("POST", "/api/filetree/removeDocByID", contractRouteHandlers(apicontract.RemoveDocByID, removeDocByID)...)
+ ginServer.Handle("POST", "/api/filetree/removeDocs", contractRouteHandlers(apicontract.RemoveDocs, removeDocs)...)
+ ginServer.Handle("POST", "/api/filetree/moveDocs", contractRouteHandlers(apicontract.MoveDocs, moveDocs)...)
+ ginServer.Handle("POST", "/api/filetree/moveDocsByID", contractRouteHandlers(apicontract.MoveDocsByID, moveDocsByID)...)
+ ginServer.Handle("POST", "/api/filetree/duplicateDoc", contractRouteHandlers(apicontract.DuplicateDoc, duplicateDoc)...)
+ ginServer.Handle("POST", "/api/filetree/duplicateDocTree", contractRouteHandlers(apicontract.DuplicateDocTree, duplicateDocTree)...)
+ ginServer.Handle("POST", "/api/filetree/getHPathByPath", contractRouteHandlers(apicontract.GetHPathByPath, getHPathByPath)...)
+ ginServer.Handle("POST", "/api/filetree/getHPathsByPaths", contractRouteHandlers(apicontract.GetHPathsByPaths, getHPathsByPaths)...)
+ ginServer.Handle("POST", "/api/filetree/getHPathByID", contractRouteHandlers(apicontract.GetHPathByID, getHPathByID)...)
+ ginServer.Handle("POST", "/api/filetree/getPathByID", contractRouteHandlers(apicontract.GetPathByID, getPathByID)...)
+ ginServer.Handle("POST", "/api/filetree/getFullHPathByID", contractRouteHandlers(apicontract.GetFullHPathByID, getFullHPathByID)...)
+ ginServer.Handle("POST", "/api/filetree/getIDsByHPath", contractRouteHandlers(apicontract.GetIDsByHPath, getIDsByHPath)...)
+ ginServer.Handle("POST", "/api/filetree/doc2Heading", contractRouteHandlers(apicontract.Doc2Heading, doc2Heading)...)
+ ginServer.Handle("POST", "/api/filetree/heading2Doc", contractRouteHandlers(apicontract.Heading2Doc, heading2Doc)...)
+ ginServer.Handle("POST", "/api/filetree/li2Doc", contractRouteHandlers(apicontract.Li2Doc, li2Doc)...)
+ ginServer.Handle("POST", "/api/filetree/upsertIndexes", contractRouteHandlers(apicontract.UpsertIndexes, upsertIndexes)...)
+ ginServer.Handle("POST", "/api/filetree/removeIndexes", contractRouteHandlers(apicontract.RemoveIndexes, removeIndexes)...)
+ ginServer.Handle("POST", "/api/filetree/listDocTree", contractRouteHandlers(apicontract.ListDocTree, listDocTree)...)
+ ginServer.Handle("POST", "/api/filetree/moveLocalShorthands", contractRouteHandlers(apicontract.MoveLocalShorthands, moveLocalShorthands)...)
+ ginServer.Handle("POST", "/api/filetree/setPublishAccess", contractRouteHandlers(apicontract.SetPublishAccess, setPublishAccess)...)
+ ginServer.Handle("POST", "/api/filetree/getPublishAccess", contractRouteHandlers(apicontract.GetPublishAccess, getPublishAccess)...)
+ ginServer.Handle("POST", "/api/filetree/authFilePublishAccess", contractRouteHandlers(apicontract.AuthFilePublishAccess, authFilePublishAccess)...)
+}
+
+// registerFormatRoutes 注册本域的契约路由。
+func registerFormatRoutes(ginServer *gin.Engine) {
+ ginServer.Handle("POST", "/api/format/autoSpace", contractRouteHandlers(apicontract.AutoSpace, autoSpace)...)
+ ginServer.Handle("POST", "/api/format/netImg2LocalAssets", contractRouteHandlers(apicontract.NetImg2LocalAssets, netImg2LocalAssets)...)
+ ginServer.Handle("POST", "/api/format/netAssets2LocalAssets", contractRouteHandlers(apicontract.NetAssets2LocalAssets, netAssets2LocalAssets)...)
+}
+
+// registerHistoryRoutes 注册本域的契约路由。
+func registerHistoryRoutes(ginServer *gin.Engine) {
+ ginServer.Handle("POST", "/api/history/rollbackAttributeViewHistory", contractRouteHandlers(apicontract.RollbackAttributeViewHistory, rollbackAttributeViewHistory)...)
+ ginServer.Handle("POST", "/api/history/getNotebookHistory", contractRouteHandlers(apicontract.GetNotebookHistory, getNotebookHistory)...)
+ ginServer.Handle("POST", "/api/history/rollbackNotebookHistory", contractRouteHandlers(apicontract.RollbackNotebookHistory, rollbackNotebookHistory)...)
+ ginServer.Handle("POST", "/api/history/rollbackAssetsHistory", contractRouteHandlers(apicontract.RollbackAssetsHistory, rollbackAssetsHistory)...)
+ ginServer.Handle("POST", "/api/history/getDocHistoryContent", contractRouteHandlers(apicontract.GetDocHistoryContent, getDocHistoryContent)...)
+ ginServer.Handle("POST", "/api/history/getDocHistorySnapshots", contractRouteHandlers(apicontract.GetDocHistorySnapshots, getDocHistorySnapshots)...)
+ ginServer.Handle("POST", "/api/history/diffDocVersions", contractRouteHandlers(apicontract.DiffDocVersions, diffDocVersions)...)
+ ginServer.Handle("POST", "/api/history/rollbackDocHistory", contractRouteHandlers(apicontract.RollbackDocHistory, rollbackDocHistory)...)
+ ginServer.Handle("POST", "/api/history/clearWorkspaceHistory", contractRouteHandlers(apicontract.ClearWorkspaceHistory, clearWorkspaceHistory)...)
+ ginServer.Handle("POST", "/api/history/reindexHistory", contractRouteHandlers(apicontract.ReindexHistory, reindexHistory)...)
+ ginServer.Handle("POST", "/api/history/searchHistory", contractRouteHandlers(apicontract.SearchHistory, searchHistory)...)
+ ginServer.Handle("POST", "/api/history/getHistoryItems", contractRouteHandlers(apicontract.GetHistoryItems, getHistoryItems)...)
+ ginServer.Handle("POST", "/api/history/createDocHistory", contractRouteHandlers(apicontract.CreateDocHistory, createDocHistory)...)
+ ginServer.Handle("POST", "/api/history/createAssetHistory", contractRouteHandlers(apicontract.CreateAssetHistory, createAssetHistory)...)
+}
+
+// registerOutlineRoutes 注册本域的契约路由。
+func registerOutlineRoutes(ginServer *gin.Engine) {
+ ginServer.Handle("POST", "/api/outline/getDocOutline", contractRouteHandlers(apicontract.GetDocOutline, getDocOutline)...)
+ ginServer.Handle("POST", "/api/outline/getDocHeadingNumbers", contractRouteHandlers(apicontract.GetDocHeadingNumbers, getDocHeadingNumbers)...)
+}
+
+// registerBookmarkRoutes 注册本域的契约路由。
+func registerBookmarkRoutes(ginServer *gin.Engine) {
+ ginServer.Handle("POST", "/api/bookmark/getBookmark", contractRouteHandlers(apicontract.GetBookmark, getBookmark)...)
+ ginServer.Handle("POST", "/api/bookmark/renameBookmark", contractRouteHandlers(apicontract.RenameBookmark, renameBookmark)...)
+ ginServer.Handle("POST", "/api/bookmark/removeBookmark", contractRouteHandlers(apicontract.RemoveBookmark, removeBookmark)...)
+}
+
+// registerTagRoutes 注册本域的契约路由。
+func registerTagRoutes(ginServer *gin.Engine) {
+ ginServer.Handle("POST", "/api/tag/getTag", contractRouteHandlers(apicontract.GetTag, getTag)...)
+ ginServer.Handle("POST", "/api/tag/renameTag", contractRouteHandlers(apicontract.RenameTag, renameTag)...)
+ ginServer.Handle("POST", "/api/tag/removeTag", contractRouteHandlers(apicontract.RemoveTag, removeTag)...)
+}
+
+// registerLuteRoutes 注册本域的契约路由。
+func registerLuteRoutes(ginServer *gin.Engine) {
+ ginServer.Handle("POST", "/api/lute/spinBlockDOM", contractRouteHandlers(apicontract.SpinBlockDOM, spinBlockDOM)...)
+ ginServer.Handle("POST", "/api/lute/html2BlockDOM", contractRouteHandlers(apicontract.HTML2BlockDOM, html2BlockDOM)...)
+ ginServer.Handle("POST", "/api/lute/wpsPresentation2BlockDOM", contractRouteHandlers(apicontract.WPSPresentation2BlockDOM, wpsPresentation2BlockDOM)...)
+ ginServer.Handle("POST", "/api/lute/copyStdMarkdown", contractRouteHandlers(apicontract.CopyStdMarkdown, copyStdMarkdown)...)
+ ginServer.Handle("POST", "/api/lute/md2html", contractRouteHandlers(apicontract.Md2HTML, md2HTML)...)
+}
+
+// registerQueryRoutes 注册本域的契约路由。
+func registerQueryRoutes(ginServer *gin.Engine) {
+ ginServer.Handle("POST", "/api/query/sql", contractRouteHandlers(apicontract.QuerySQL, SQL)...)
+}
+
+// registerSqliteRoutes 注册本域的契约路由。
+func registerSqliteRoutes(ginServer *gin.Engine) {
+ ginServer.Handle("POST", "/api/sqlite/flushTransaction", contractRouteHandlers(apicontract.FlushTransaction, flushTransaction)...)
+}
+
+// registerSearchRoutes 注册本域的契约路由。
+func registerSearchRoutes(ginServer *gin.Engine) {
+ ginServer.Handle("POST", "/api/search/searchTag", contractRouteHandlers(apicontract.SearchTag, searchTag)...)
+ ginServer.Handle("POST", "/api/search/searchTemplate", contractRouteHandlers(apicontract.SearchTemplate, searchTemplate)...)
+ ginServer.Handle("POST", "/api/search/removeTemplate", contractRouteHandlers(apicontract.RemoveSearchTemplate, removeTemplate)...)
+ ginServer.Handle("POST", "/api/search/searchWidget", contractRouteHandlers(apicontract.SearchWidget, searchWidget)...)
+ ginServer.Handle("POST", "/api/search/searchRefBlock", contractRouteHandlers(apicontract.SearchRefBlock, searchRefBlock)...)
+ ginServer.Handle("POST", "/api/search/searchEmbedBlock", contractRouteHandlers(apicontract.SearchEmbedBlock, searchEmbedBlock)...)
+ ginServer.Handle("POST", "/api/search/getEmbedBlock", contractRouteHandlers(apicontract.GetEmbedBlock, getEmbedBlock)...)
+ ginServer.Handle("POST", "/api/search/updateEmbedBlock", contractRouteHandlers(apicontract.UpdateEmbedBlock, updateEmbedBlock)...)
+ ginServer.Handle("POST", "/api/search/fullTextSearchBlock", contractRouteHandlers(apicontract.FullTextSearchBlock, fullTextSearchBlock)...)
+ ginServer.Handle("POST", "/api/search/searchAsset", contractRouteHandlers(apicontract.SearchAssetByName, searchAsset)...)
+ ginServer.Handle("POST", "/api/search/findReplace", contractRouteHandlers(apicontract.FindReplace, findReplace)...)
+ ginServer.Handle("POST", "/api/search/fullTextSearchAssetContent", contractRouteHandlers(apicontract.FullTextSearchAssetContent, fullTextSearchAssetContent)...)
+ ginServer.Handle("POST", "/api/search/getAssetContent", contractRouteHandlers(apicontract.GetAssetContent, getAssetContent)...)
+ ginServer.Handle("POST", "/api/search/getAssetContentByPath", contractRouteHandlers(apicontract.GetAssetContentByPath, getAssetContentByPath)...)
+ ginServer.Handle("POST", "/api/search/listInvalidBlockRefs", contractRouteHandlers(apicontract.ListInvalidBlockRefs, listInvalidBlockRefs)...)
+ ginServer.Handle("POST", "/api/search/semanticSearchBlock", contractRouteHandlers(apicontract.SemanticSearchBlock, semanticSearchBlock)...)
+}
+
+// registerBlockRoutes 注册本域的契约路由。
+func registerBlockRoutes(ginServer *gin.Engine) {
+ ginServer.Handle("POST", "/api/block/getBlockInfo", contractRouteHandlers(apicontract.GetBlockInfo, getBlockInfo)...)
+ ginServer.Handle("POST", "/api/block/getBlockDOM", contractRouteHandlers(apicontract.GetBlockDOM, getBlockDOM)...)
+ ginServer.Handle("POST", "/api/block/getOrderedListContinueStart", contractRouteHandlers(apicontract.GetOrderedListContinueStart, getOrderedListContinueStart)...)
+ ginServer.Handle("POST", "/api/block/getBlockDOMs", contractRouteHandlers(apicontract.GetBlockDOMs, getBlockDOMs)...)
+ ginServer.Handle("POST", "/api/block/getBlockDOMWithEmbed", contractRouteHandlers(apicontract.GetBlockDOMWithEmbed, getBlockDOMWithEmbed)...)
+ ginServer.Handle("POST", "/api/block/getBlockDOMsWithEmbed", contractRouteHandlers(apicontract.GetBlockDOMsWithEmbed, getBlockDOMsWithEmbed)...)
+ ginServer.Handle("POST", "/api/block/getBlockKramdown", contractRouteHandlers(apicontract.GetBlockKramdown, getBlockKramdown)...)
+ ginServer.Handle("POST", "/api/block/getBlockKramdowns", contractRouteHandlers(apicontract.GetBlockKramdowns, getBlockKramdowns)...)
+ ginServer.Handle("POST", "/api/block/getChildBlocks", contractRouteHandlers(apicontract.GetChildBlocks, getChildBlocks)...)
+ ginServer.Handle("POST", "/api/block/getTailChildBlocks", contractRouteHandlers(apicontract.GetTailChildBlocks, getTailChildBlocks)...)
+ ginServer.Handle("POST", "/api/block/getBlockBreadcrumb", contractRouteHandlers(apicontract.GetBlockBreadcrumb, getBlockBreadcrumb)...)
+ ginServer.Handle("POST", "/api/block/getBlockBreadcrumbChildren", contractRouteHandlers(apicontract.GetBlockBreadcrumbChildren, getBlockBreadcrumbChildren)...)
+ ginServer.Handle("POST", "/api/block/getBlockIndex", contractRouteHandlers(apicontract.GetBlockIndex, getBlockIndex)...)
+ ginServer.Handle("POST", "/api/block/getBlocksIndexes", contractRouteHandlers(apicontract.GetBlocksIndexes, getBlocksIndexes)...)
+ ginServer.Handle("POST", "/api/block/getDocBlocksOrders", contractRouteHandlers(apicontract.GetDocBlocksOrders, getDocBlocksOrders)...)
+ ginServer.Handle("POST", "/api/block/getRefIDs", contractRouteHandlers(apicontract.GetRefIDs, getRefIDs)...)
+ ginServer.Handle("POST", "/api/block/getRefIDsByFileAnnotationID", contractRouteHandlers(apicontract.GetRefIDsByFileAnnotationID, getRefIDsByFileAnnotationID)...)
+ ginServer.Handle("POST", "/api/block/getBlockDefIDsByRefText", contractRouteHandlers(apicontract.GetBlockDefIDsByRefText, getBlockDefIDsByRefText)...)
+ ginServer.Handle("POST", "/api/block/getRefText", contractRouteHandlers(apicontract.GetRefText, getRefText)...)
+ ginServer.Handle("POST", "/api/block/getDOMText", contractRouteHandlers(apicontract.GetDOMText, getDOMText)...)
+ ginServer.Handle("POST", "/api/block/getTreeStat", contractRouteHandlers(apicontract.GetTreeStat, getTreeStat)...)
+ ginServer.Handle("POST", "/api/block/getBlocksWordCount", contractRouteHandlers(apicontract.GetBlocksWordCount, getBlocksWordCount)...)
+ ginServer.Handle("POST", "/api/block/getContentWordCount", contractRouteHandlers(apicontract.GetContentWordCount, getContentWordCount)...)
+ ginServer.Handle("POST", "/api/block/getRecentUpdatedBlocks", contractRouteHandlers(apicontract.GetRecentUpdatedBlocks, getRecentUpdatedBlocks)...)
+ ginServer.Handle("POST", "/api/block/getDocInfo", contractRouteHandlers(apicontract.GetDocInfo, getDocInfo)...)
+ ginServer.Handle("POST", "/api/block/getDocsInfo", contractRouteHandlers(apicontract.GetDocsInfo, getDocsInfo)...)
+ ginServer.Handle("POST", "/api/block/checkBlockExist", contractRouteHandlers(apicontract.CheckBlockExist, checkBlockExist)...)
+ ginServer.Handle("POST", "/api/block/checkBlocksExist", contractRouteHandlers(apicontract.CheckBlocksExist, checkBlocksExist)...)
+ ginServer.Handle("POST", "/api/block/getUnfoldedParentID", contractRouteHandlers(apicontract.GetUnfoldedParentID, getUnfoldedParentID)...)
+ ginServer.Handle("POST", "/api/block/checkBlockFold", contractRouteHandlers(apicontract.CheckBlockFold, checkBlockFold)...)
+ ginServer.Handle("POST", "/api/block/insertBlock", contractRouteHandlers(apicontract.InsertBlock, insertBlock)...)
+ ginServer.Handle("POST", "/api/block/batchInsertBlock", contractRouteHandlers(apicontract.BatchInsertBlock, batchInsertBlock)...)
+ ginServer.Handle("POST", "/api/block/prependBlock", contractRouteHandlers(apicontract.PrependBlock, prependBlock)...)
+ ginServer.Handle("POST", "/api/block/batchPrependBlock", contractRouteHandlers(apicontract.BatchPrependBlock, batchPrependBlock)...)
+ ginServer.Handle("POST", "/api/block/appendBlock", contractRouteHandlers(apicontract.AppendBlock, appendBlock)...)
+ ginServer.Handle("POST", "/api/block/batchAppendBlock", contractRouteHandlers(apicontract.BatchAppendBlock, batchAppendBlock)...)
+ ginServer.Handle("POST", "/api/block/appendDailyNoteBlock", contractRouteHandlers(apicontract.AppendDailyNoteBlock, appendDailyNoteBlock)...)
+ ginServer.Handle("POST", "/api/block/prependDailyNoteBlock", contractRouteHandlers(apicontract.PrependDailyNoteBlock, prependDailyNoteBlock)...)
+ ginServer.Handle("POST", "/api/block/updateBlock", contractRouteHandlers(apicontract.UpdateBlock, updateBlock)...)
+ ginServer.Handle("POST", "/api/block/migrateLegacyMindmaps", contractRouteHandlers(apicontract.MigrateLegacyMindmaps, migrateLegacyMindmaps)...)
+ ginServer.Handle("POST", "/api/block/batchUpdateBlock", contractRouteHandlers(apicontract.BatchUpdateBlock, batchUpdateBlock)...)
+ ginServer.Handle("POST", "/api/block/deleteBlock", contractRouteHandlers(apicontract.DeleteBlock, deleteBlock)...)
+ ginServer.Handle("POST", "/api/block/moveBlock", contractRouteHandlers(apicontract.MoveBlock, moveBlock)...)
+ ginServer.Handle("POST", "/api/block/moveOutlineHeading", contractRouteHandlers(apicontract.MoveOutlineHeading, moveOutlineHeading)...)
+ ginServer.Handle("POST", "/api/block/foldBlock", contractRouteHandlers(apicontract.FoldBlock, foldBlock)...)
+ ginServer.Handle("POST", "/api/block/unfoldBlock", contractRouteHandlers(apicontract.UnfoldBlock, unfoldBlock)...)
+ ginServer.Handle("POST", "/api/block/setBlockReminder", contractRouteHandlers(apicontract.SetBlockReminder, setBlockReminder)...)
+ ginServer.Handle("POST", "/api/block/getHeadingLevelTransaction", contractRouteHandlers(apicontract.GetHeadingLevelTransaction, getHeadingLevelTransaction)...)
+ ginServer.Handle("POST", "/api/block/getDocHeadingLevelTransaction", contractRouteHandlers(apicontract.GetDocHeadingLevelTransaction, getDocHeadingLevelTransaction)...)
+ ginServer.Handle("POST", "/api/block/getHeadingFoldTransaction", contractRouteHandlers(apicontract.GetHeadingFoldTransaction, getHeadingFoldTransaction)...)
+ ginServer.Handle("POST", "/api/block/getHeadingDeleteTransaction", contractRouteHandlers(apicontract.GetHeadingDeleteTransaction, getHeadingDeleteTransaction)...)
+ ginServer.Handle("POST", "/api/block/getHeadingInsertTransaction", contractRouteHandlers(apicontract.GetHeadingInsertTransaction, getHeadingInsertTransaction)...)
+ ginServer.Handle("POST", "/api/block/getHeadingChildrenIDs", contractRouteHandlers(apicontract.GetHeadingChildrenIDs, getHeadingChildrenIDs)...)
+ ginServer.Handle("POST", "/api/block/getHeadingChildrenDOM", contractRouteHandlers(apicontract.GetHeadingChildrenDOM, getHeadingChildrenDOM)...)
+ ginServer.Handle("POST", "/api/block/swapBlockRef", contractRouteHandlers(apicontract.SwapBlockRef, swapBlockRef)...)
+ ginServer.Handle("POST", "/api/block/transferBlockRef", contractRouteHandlers(apicontract.TransferBlockRef, transferBlockRef)...)
+ ginServer.Handle("POST", "/api/block/getBlockSiblingID", contractRouteHandlers(apicontract.GetBlockSiblingID, getBlockSiblingID)...)
+ ginServer.Handle("POST", "/api/block/getBlockRelevantIDs", contractRouteHandlers(apicontract.GetBlockRelevantIDs, getBlockRelevantIDs)...)
+ ginServer.Handle("POST", "/api/block/getBlockTreeInfos", contractRouteHandlers(apicontract.GetBlockTreeInfos, getBlockTreeInfos)...)
+ ginServer.Handle("POST", "/api/block/checkBlockRef", contractRouteHandlers(apicontract.CheckBlockRef, checkBlockRef)...)
+ ginServer.Handle("POST", "/api/block/appendHeadingChildren", contractRouteHandlers(apicontract.AppendHeadingChildren, appendHeadingChildren)...)
+ ginServer.Handle("POST", "/api/block/updateTaskListItemMarker", contractRouteHandlers(apicontract.UpdateTaskListItemMarker, updateTaskListItemMarker)...)
+ ginServer.Handle("POST", "/api/block/batchUpdateTaskListItemMarker", contractRouteHandlers(apicontract.BatchUpdateTaskListItemMarker, batchUpdateTaskListItemMarker)...)
+}
+
+// registerFileRoutes 注册本域的契约路由。
+func registerFileRoutes(ginServer *gin.Engine) {
+ ginServer.Handle("POST", "/api/file/getFile", contractRouteHandlers(apicontract.GetFile, getFile)...)
+ ginServer.Handle("POST", "/api/file/putFile", contractRouteHandlers(apicontract.PutFile, putFile)...)
+ ginServer.Handle("POST", "/api/file/copyFile", contractRouteHandlers(apicontract.CopyFile, copyFile)...)
+ ginServer.Handle("POST", "/api/file/globalCopyFiles", contractRouteHandlers(apicontract.GlobalCopyFiles, globalCopyFiles)...)
+ ginServer.Handle("POST", "/api/file/workspaceCopyFiles", contractRouteHandlers(apicontract.WorkspaceCopyFiles, workspaceCopyFiles)...)
+ ginServer.Handle("POST", "/api/file/removeFile", contractRouteHandlers(apicontract.RemoveFile, removeFile)...)
+ ginServer.Handle("POST", "/api/file/renameFile", contractRouteHandlers(apicontract.RenameFile, renameFile)...)
+ ginServer.Handle("POST", "/api/file/readDir", contractRouteHandlers(apicontract.ReadDirectory, readDir)...)
+ ginServer.Handle("POST", "/api/file/getUniqueFilename", contractRouteHandlers(apicontract.GetUniqueFilename, getUniqueFilename)...)
+}
+
+// registerRefRoutes 注册本域的契约路由。
+func registerRefRoutes(ginServer *gin.Engine) {
+ ginServer.Handle("POST", "/api/ref/refreshBacklink", contractRouteHandlers(apicontract.RefreshBacklink, refreshBacklink)...)
+ ginServer.Handle("POST", "/api/ref/getBacklink2", contractRouteHandlers(apicontract.GetBacklink2, getBacklink2)...)
+ ginServer.Handle("POST", "/api/ref/getGlobalBacklinks", contractRouteHandlers(apicontract.GetGlobalBacklinks, getGlobalBacklinks)...)
+ ginServer.Handle("POST", "/api/ref/getGlobalBacklinkContexts", contractRouteHandlers(apicontract.GetGlobalBacklinkContexts, getGlobalBacklinkContexts)...)
+ ginServer.Handle("POST", "/api/ref/getBacklinkDoc", contractRouteHandlers(apicontract.GetBacklinkDoc, getBacklinkDoc)...)
+ ginServer.Handle("POST", "/api/ref/getBackmentionDoc", contractRouteHandlers(apicontract.GetBackmentionDoc, getBackmentionDoc)...)
+}
+
+// registerAttrRoutes 注册本域的契约路由。
+func registerAttrRoutes(ginServer *gin.Engine) {
+ ginServer.Handle("POST", "/api/attr/getBookmarkLabels", contractRouteHandlers(apicontract.GetBookmarkLabels, getBookmarkLabels)...)
+ ginServer.Handle("POST", "/api/attr/resetBlockAttrs", contractRouteHandlers(apicontract.ResetBlockAttrs, resetBlockAttrs)...)
+ ginServer.Handle("POST", "/api/attr/setBlockAttrs", contractRouteHandlers(apicontract.SetBlockAttrs, setBlockAttrs)...)
+ ginServer.Handle("POST", "/api/attr/batchSetBlockAttrs", contractRouteHandlers(apicontract.BatchSetBlockAttrs, batchSetBlockAttrs)...)
+ ginServer.Handle("POST", "/api/attr/getBlockAttrs", contractRouteHandlers(apicontract.GetBlockAttrs, getBlockAttrs)...)
+ ginServer.Handle("POST", "/api/attr/batchGetBlockAttrs", contractRouteHandlers(apicontract.BatchGetBlockAttrs, batchGetBlockAttrs)...)
+}
+
+// registerCloudRoutes 注册本域的契约路由。
+func registerCloudRoutes(ginServer *gin.Engine) {
+ ginServer.Handle("POST", "/api/cloud/getCloudSpace", contractRouteHandlers(apicontract.GetCloudSpace, getCloudSpace)...)
+ ginServer.Handle("POST", "/api/cloud/setCloudReminder", contractRouteHandlers(apicontract.SetCloudReminder, setCloudReminder)...)
+}
+
+// registerSyncRoutes 注册本域的契约路由。
+func registerSyncRoutes(ginServer *gin.Engine) {
+ ginServer.Handle("POST", "/api/sync/setSyncEnable", contractRouteHandlers(apicontract.SetSyncEnable, setSyncEnable)...)
+ ginServer.Handle("POST", "/api/sync/setSyncInterval", contractRouteHandlers(apicontract.SetSyncInterval, setSyncInterval)...)
+ ginServer.Handle("POST", "/api/sync/setSyncPerception", contractRouteHandlers(apicontract.SetSyncPerception, setSyncPerception)...)
+ ginServer.Handle("POST", "/api/sync/setSyncLAN", contractRouteHandlers(apicontract.SetSyncLAN, setSyncLAN)...)
+ ginServer.Handle("POST", "/api/sync/getSyncLANStatus", contractRouteHandlers(apicontract.GetSyncLANStatus, getSyncLANStatus)...)
+ ginServer.Handle("POST", "/api/sync/setSyncGenerateConflictDoc", contractRouteHandlers(apicontract.SetSyncGenerateConflictDoc, setSyncGenerateConflictDoc)...)
+ ginServer.Handle("POST", "/api/sync/setSyncMode", contractRouteHandlers(apicontract.SetSyncMode, setSyncMode)...)
+ ginServer.Handle("POST", "/api/sync/setSyncProvider", contractRouteHandlers(apicontract.SetSyncProvider, setSyncProvider)...)
+ ginServer.Handle("POST", "/api/sync/setSyncProviderS3", contractRouteHandlers(apicontract.SetSyncProviderS3, setSyncProviderS3)...)
+ ginServer.Handle("POST", "/api/sync/setSyncProviderWebDAV", contractRouteHandlers(apicontract.SetSyncProviderWebDAV, setSyncProviderWebDAV)...)
+ ginServer.Handle("POST", "/api/sync/setSyncProviderLocal", contractRouteHandlers(apicontract.SetSyncProviderLocal, setSyncProviderLocal)...)
+ ginServer.Handle("POST", "/api/sync/setCloudSyncDir", contractRouteHandlers(apicontract.SetCloudSyncDir, setCloudSyncDir)...)
+ ginServer.Handle("POST", "/api/sync/setSyncAssetDownloadMode", contractRouteHandlers(apicontract.SetSyncAssetDownloadMode, setSyncAssetDownloadMode)...)
+ ginServer.Handle("POST", "/api/sync/createCloudSyncDir", contractRouteHandlers(apicontract.CreateCloudSyncDir, createCloudSyncDir)...)
+ ginServer.Handle("POST", "/api/sync/removeCloudSyncDir", contractRouteHandlers(apicontract.RemoveCloudSyncDir, removeCloudSyncDir)...)
+ ginServer.Handle("POST", "/api/sync/listCloudSyncDir", contractRouteHandlers(apicontract.ListCloudSyncDir, listCloudSyncDir)...)
+ ginServer.Handle("POST", "/api/sync/performSync", contractRouteHandlers(apicontract.PerformSync, performSync)...)
+ ginServer.Handle("POST", "/api/sync/performBootSync", contractRouteHandlers(apicontract.PerformBootSync, performBootSync)...)
+ ginServer.Handle("POST", "/api/sync/getBootSync", contractRouteHandlers(apicontract.GetBootSync, getBootSync)...)
+ ginServer.Handle("POST", "/api/sync/getSyncInfo", contractRouteHandlers(apicontract.GetSyncInfo, getSyncInfo)...)
+ ginServer.Handle("POST", "/api/sync/exportSyncProviderS3", contractRouteHandlers(apicontract.ExportSyncProviderS3, exportSyncProviderS3)...)
+ ginServer.Handle("POST", "/api/sync/importSyncProviderS3", contractRouteHandlers(apicontract.ImportSyncProviderS3, importSyncProviderS3)...)
+ ginServer.Handle("POST", "/api/sync/exportSyncProviderWebDAV", contractRouteHandlers(apicontract.ExportSyncProviderWebDAV, exportSyncProviderWebDAV)...)
+ ginServer.Handle("POST", "/api/sync/importSyncProviderWebDAV", contractRouteHandlers(apicontract.ImportSyncProviderWebDAV, importSyncProviderWebDAV)...)
+}
+
+// registerInboxRoutes 注册本域的契约路由。
+func registerInboxRoutes(ginServer *gin.Engine) {
+ ginServer.Handle("POST", "/api/inbox/getShorthands", contractRouteHandlers(apicontract.GetShorthands, getShorthands)...)
+ ginServer.Handle("POST", "/api/inbox/getShorthand", contractRouteHandlers(apicontract.GetShorthand, getShorthand)...)
+ ginServer.Handle("POST", "/api/inbox/removeShorthands", contractRouteHandlers(apicontract.RemoveShorthands, removeShorthands)...)
+}
+
+// registerExtensionRoutes 注册本域的契约路由。
+func registerExtensionRoutes(ginServer *gin.Engine) {
+ ginServer.Handle("POST", "/api/extension/copy", contractRouteHandlers(apicontract.ExtensionCopy, extensionCopy)...)
+}
+
+// registerClipboardRoutes 注册本域的契约路由。
+func registerClipboardRoutes(ginServer *gin.Engine) {
+ ginServer.Handle("POST", "/api/clipboard/readFilePaths", contractRouteHandlers(apicontract.ReadClipboardFilePaths, readFilePaths)...)
+ ginServer.Handle("POST", "/api/clipboard/writeFilePath", contractRouteHandlers(apicontract.WriteClipboardFilePath, writeFilePath)...)
+ ginServer.Handle("POST", "/api/clipboard/prepareRichText", contractRouteHandlers(apicontract.PrepareRichText, prepareRichText)...)
+ ginServer.Handle("POST", "/api/clipboard/preparePasteAssets", contractRouteHandlers(apicontract.PreparePasteAssets, preparePasteAssets)...)
+ ginServer.Handle("POST", "/api/clipboard/cleanupRichText", contractRouteHandlers(apicontract.CleanupRichText, cleanupRichText)...)
+}
+
+// registerAssetRoutes 注册本域的契约路由。
+func registerAssetRoutes(ginServer *gin.Engine) {
+ ginServer.Handle("POST", "/api/asset/uploadCloud", contractRouteHandlers(apicontract.AssetUploadCloud, uploadCloud)...)
+ ginServer.Handle("POST", "/api/asset/uploadCloudByAssetsPaths", contractRouteHandlers(apicontract.AssetUploadCloudByAssetsPaths, uploadCloudByAssetsPaths)...)
+ ginServer.Handle("POST", "/api/asset/insertLocalAssets", contractRouteHandlers(apicontract.InsertLocalAssets, insertLocalAssets)...)
+ ginServer.Handle("POST", "/api/asset/insertCover", contractRouteHandlers(apicontract.InsertCover, insertCover)...)
+ ginServer.Handle("POST", "/api/asset/resolveAssetPath", contractRouteHandlers(apicontract.ResolveAssetPath, resolveAssetPath)...)
+ ginServer.Handle("POST", "/api/asset/upload", contractRouteHandlers(apicontract.UploadAsset, uploadAsset)...)
+ ginServer.Handle("POST", "/api/asset/setFileAnnotation", contractRouteHandlers(apicontract.SetFileAnnotation, setFileAnnotation)...)
+ ginServer.Handle("POST", "/api/asset/getFileAnnotation", contractRouteHandlers(apicontract.GetFileAnnotation, getFileAnnotation)...)
+ ginServer.Handle("POST", "/api/asset/getUnusedAssets", contractRouteHandlers(apicontract.GetUnusedAssets, getUnusedAssets)...)
+ ginServer.Handle("POST", "/api/asset/getMissingAssets", contractRouteHandlers(apicontract.GetMissingAssets, getMissingAssets)...)
+ ginServer.Handle("POST", "/api/asset/removeUnusedAsset", contractRouteHandlers(apicontract.RemoveUnusedAsset, removeUnusedAsset)...)
+ ginServer.Handle("POST", "/api/asset/removeUnusedAssets", contractRouteHandlers(apicontract.RemoveUnusedAssets, removeUnusedAssets)...)
+ ginServer.Handle("POST", "/api/asset/getDocImageAssets", contractRouteHandlers(apicontract.GetDocImageAssets, getDocImageAssets)...)
+ ginServer.Handle("POST", "/api/asset/getDocAssets", contractRouteHandlers(apicontract.GetDocAssets, getDocAssets)...)
+ ginServer.Handle("POST", "/api/asset/renameAsset", contractRouteHandlers(apicontract.RenameAsset, renameAsset)...)
+ ginServer.Handle("POST", "/api/asset/findAssetReferences", contractRouteHandlers(apicontract.FindAssetReferences, findAssetReferences)...)
+ ginServer.Handle("POST", "/api/asset/relinkAsset", contractRouteHandlers(apicontract.RelinkAsset, relinkAsset)...)
+ ginServer.Handle("POST", "/api/asset/getImageOCRText", contractRouteHandlers(apicontract.GetImageOCRText, getImageOCRText)...)
+ ginServer.Handle("POST", "/api/asset/setImageOCRText", contractRouteHandlers(apicontract.SetImageOCRText, setImageOCRText)...)
+ ginServer.Handle("POST", "/api/asset/ocr", contractRouteHandlers(apicontract.AssetOCR, ocr)...)
+ ginServer.Handle("POST", "/api/asset/getOCRConfig", contractRouteHandlers(apicontract.GetOCRConfig, getOCRConfig)...)
+ ginServer.Handle("POST", "/api/asset/setOCRConfig", contractRouteHandlers(apicontract.SetOCRConfig, setOCRConfig)...)
+ ginServer.Handle("POST", "/api/asset/importOCRModels", contractRouteHandlers(apicontract.ImportOCRModels, importOCRModels)...)
+ ginServer.Handle("POST", "/api/asset/fullReindexAssetContent", contractRouteHandlers(apicontract.FullReindexAssetContent, fullReindexAssetContent)...)
+ ginServer.Handle("POST", "/api/asset/statAsset", contractRouteHandlers(apicontract.StatAsset, statAsset)...)
+}
+
+// registerExportRoutes 注册本域的契约路由。
+func registerExportRoutes(ginServer *gin.Engine) {
+ ginServer.Handle("POST", "/api/export/exportNotebookMd", contractRouteHandlers(apicontract.ExportNotebookMd, exportNotebookMd)...)
+ ginServer.Handle("POST", "/api/export/exportNotebooksMd", contractRouteHandlers(apicontract.ExportNotebooksMd, exportNotebooksMd)...)
+ ginServer.Handle("POST", "/api/export/exportMds", contractRouteHandlers(apicontract.ExportMds, exportMds)...)
+ ginServer.Handle("POST", "/api/export/exportMd", contractRouteHandlers(apicontract.ExportMd, exportMd)...)
+ ginServer.Handle("POST", "/api/export/exportSYs", contractRouteHandlers(apicontract.ExportSYs, exportSYs)...)
+ ginServer.Handle("POST", "/api/export/exportSY", contractRouteHandlers(apicontract.ExportSY, exportSY)...)
+ ginServer.Handle("POST", "/api/export/exportNotebookSY", contractRouteHandlers(apicontract.ExportNotebookSY, exportNotebookSY)...)
+ ginServer.Handle("POST", "/api/export/exportNotebooksSY", contractRouteHandlers(apicontract.ExportNotebooksSY, exportNotebooksSY)...)
+ ginServer.Handle("POST", "/api/export/exportMdContent", contractRouteHandlers(apicontract.ExportMdContent, exportMdContent)...)
+ ginServer.Handle("POST", "/api/export/exportHTML", contractRouteHandlers(apicontract.ExportHTML, exportHTML)...)
+ ginServer.Handle("POST", "/api/export/exportPreviewHTML", contractRouteHandlers(apicontract.ExportPreviewHTML, exportPreviewHTML)...)
+ ginServer.Handle("POST", "/api/export/exportMdHTML", contractRouteHandlers(apicontract.ExportMdHTML, exportMdHTML)...)
+ ginServer.Handle("POST", "/api/export/exportDocx", contractRouteHandlers(apicontract.ExportDocx, exportDocx)...)
+ ginServer.Handle("POST", "/api/export/processPDF", contractRouteHandlers(apicontract.ProcessPDF, processPDF)...)
+ ginServer.Handle("POST", "/api/export/preview", contractRouteHandlers(apicontract.ExportPreview, exportPreview)...)
+ ginServer.Handle("POST", "/api/export/exportResources", contractRouteHandlers(apicontract.ExportResources, exportResources)...)
+ ginServer.Handle("POST", "/api/export/exportAsFile", contractRouteHandlers(apicontract.ExportAsFile, exportAsFile)...)
+ ginServer.Handle("POST", "/api/export/exportData", contractRouteHandlers(apicontract.ExportData, exportData)...)
+ ginServer.Handle("POST", "/api/export/exportDataInFolder", contractRouteHandlers(apicontract.ExportDataInFolder, exportDataInFolder)...)
+ ginServer.Handle("POST", "/api/export/exportTempContent", contractRouteHandlers(apicontract.ExportTempContent, exportTempContent)...)
+ ginServer.Handle("POST", "/api/export/exportBrowserHTML", contractRouteHandlers(apicontract.ExportBrowserHTML, exportBrowserHTML)...)
+ ginServer.Handle("POST", "/api/export/export2Liandi", contractRouteHandlers(apicontract.Export2Liandi, export2Liandi)...)
+ ginServer.Handle("POST", "/api/export/exportReStructuredText", contractRouteHandlers(apicontract.ExportReStructuredText, exportReStructuredText)...)
+ ginServer.Handle("POST", "/api/export/exportAsciiDoc", contractRouteHandlers(apicontract.ExportAsciiDoc, exportAsciiDoc)...)
+ ginServer.Handle("POST", "/api/export/exportTextile", contractRouteHandlers(apicontract.ExportTextile, exportTextile)...)
+ ginServer.Handle("POST", "/api/export/exportOPML", contractRouteHandlers(apicontract.ExportOPML, exportOPML)...)
+ ginServer.Handle("POST", "/api/export/exportOrgMode", contractRouteHandlers(apicontract.ExportOrgMode, exportOrgMode)...)
+ ginServer.Handle("POST", "/api/export/exportMediaWiki", contractRouteHandlers(apicontract.ExportMediaWiki, exportMediaWiki)...)
+ ginServer.Handle("POST", "/api/export/exportODT", contractRouteHandlers(apicontract.ExportODT, exportODT)...)
+ ginServer.Handle("POST", "/api/export/exportRTF", contractRouteHandlers(apicontract.ExportRTF, exportRTF)...)
+ ginServer.Handle("POST", "/api/export/exportEPUB", contractRouteHandlers(apicontract.ExportEPUB, exportEPUB)...)
+ ginServer.Handle("POST", "/api/export/exportAttributeView", contractRouteHandlers(apicontract.ExportAttributeView, exportAttributeView)...)
+ ginServer.Handle("POST", "/api/export/exportCodeBlock", contractRouteHandlers(apicontract.ExportCodeBlock, exportCodeBlock)...)
+ ginServer.Handle("POST", "/api/export/copyExportFile", contractRouteHandlers(apicontract.CopyExportFile, copyExportFile)...)
+}
+
+// registerImportRoutes 注册本域的契约路由。
+func registerImportRoutes(ginServer *gin.Engine) {
+ ginServer.Handle("POST", "/api/import/importStdMd", contractRouteHandlers(apicontract.ImportStdMd, importStdMd)...)
+ ginServer.Handle("POST", "/api/import/importZipMd", contractRouteHandlers(apicontract.ImportZipMd, importZipMd)...)
+ ginServer.Handle("POST", "/api/import/importData", contractRouteHandlers(apicontract.ImportData, importData)...)
+ ginServer.Handle("POST", "/api/import/importSY", contractRouteHandlers(apicontract.ImportSY, importSY)...)
+ ginServer.Handle("POST", "/api/import/importSYNotebook", contractRouteHandlers(apicontract.ImportSYNotebook, importSYNotebook)...)
+ ginServer.Handle("POST", "/api/import/importSYAuto", contractRouteHandlers(apicontract.ImportSYAuto, importSYAuto)...)
+ ginServer.Handle("POST", "/api/import/continueImportSY", contractRouteHandlers(apicontract.ContinueImportSY, continueImportSY)...)
+ ginServer.Handle("POST", "/api/import/cancelImportSY", contractRouteHandlers(apicontract.CancelImportSY, cancelImportSY)...)
+ ginServer.Handle("POST", "/api/import/startObsidianVaultAnalysis", contractRouteHandlers(apicontract.StartObsidianVaultAnalysis, startObsidianVaultAnalysis)...)
+ ginServer.Handle("POST", "/api/import/getObsidianVaultTask", contractRouteHandlers(apicontract.GetObsidianVaultTask, getObsidianVaultTask)...)
+ ginServer.Handle("POST", "/api/import/startObsidianVaultImport", contractRouteHandlers(apicontract.StartObsidianVaultImport, startObsidianVaultImport)...)
+ ginServer.Handle("POST", "/api/import/cancelObsidianVaultTask", contractRouteHandlers(apicontract.CancelObsidianVaultTask, cancelObsidianVaultTask)...)
+}
+
+// registerConvertRoutes 注册本域的契约路由。
+func registerConvertRoutes(ginServer *gin.Engine) {
+ ginServer.Handle("POST", "/api/convert/pandoc", contractRouteHandlers(apicontract.Pandoc, pandoc)...)
+}
+
+// registerTemplateRoutes 注册本域的契约路由。
+func registerTemplateRoutes(ginServer *gin.Engine) {
+ ginServer.Handle("POST", "/api/template/render", contractRouteHandlers(apicontract.RenderTemplate, renderTemplate)...)
+ ginServer.Handle("POST", "/api/template/manage", contractRouteHandlers(apicontract.ManageTemplateFiles, manageTemplateFiles)...)
+ ginServer.Handle("POST", "/api/template/getDocSaveAsTemplateInfo", contractRouteHandlers(apicontract.GetDocSaveAsTemplateInfo, getDocSaveAsTemplateInfo)...)
+ ginServer.Handle("POST", "/api/template/docSaveAsTemplate", contractRouteHandlers(apicontract.DocSaveAsTemplate, docSaveAsTemplate)...)
+ ginServer.Handle("POST", "/api/template/renderSprig", contractRouteHandlers(apicontract.RenderSprig, renderSprig)...)
+}
+
+// registerTransactionsRoutes 注册本域的契约路由。
+func registerTransactionsRoutes(ginServer *gin.Engine) {
+ ginServer.Handle("POST", "/api/transactions", contractRouteHandlers(apicontract.PerformTransactions, performTransactions)...)
+ ginServer.Handle("POST", "/api/transactions/undoState", contractRouteHandlers(apicontract.UndoState, undoState)...)
+ ginServer.Handle("POST", "/api/transactions/undo", contractRouteHandlers(apicontract.PerformUndo, performUndo)...)
+ ginServer.Handle("POST", "/api/transactions/redo", contractRouteHandlers(apicontract.PerformRedo, performRedo)...)
+ ginServer.Handle("POST", "/api/transactions/clearHistory", contractRouteHandlers(apicontract.ClearHistory, clearHistory)...)
+}
+
+// registerSettingRoutes 注册本域的契约路由。
+func registerSettingRoutes(ginServer *gin.Engine) {
+ ginServer.Handle("POST", "/api/setting/patch", contractRouteHandlers(apicontract.PatchSetting, patchSetting)...)
+ ginServer.Handle("POST", "/api/setting/resetSettings", contractRouteHandlers(apicontract.ResetSettings, resetSettings)...)
+ ginServer.Handle("POST", "/api/setting/confirmSettingsReset", contractRouteHandlers(apicontract.ConfirmSettingsReset, confirmSettingsReset)...)
+ ginServer.Handle("POST", "/api/setting/setEditor", contractRouteHandlers(apicontract.SetEditor, setEditor)...)
+ ginServer.Handle("POST", "/api/setting/setExport", contractRouteHandlers(apicontract.SetExport, setExport)...)
+ ginServer.Handle("POST", "/api/setting/getPandocBin", contractRouteHandlers(apicontract.GetPandocBin, getPandocBin)...)
+ ginServer.Handle("POST", "/api/setting/setFiletree", contractRouteHandlers(apicontract.SetFiletree, setFiletree)...)
+ ginServer.Handle("POST", "/api/setting/setSearch", contractRouteHandlers(apicontract.SetSearch, setSearch)...)
+ ginServer.Handle("POST", "/api/setting/setKeymap", contractRouteHandlers(apicontract.SetKeymap, setKeymap)...)
+ ginServer.Handle("POST", "/api/setting/setAppearance", contractRouteHandlers(apicontract.SetAppearance, setAppearance)...)
+ ginServer.Handle("POST", "/api/setting/getBootAppearances", contractRouteHandlers(apicontract.GetBootAppearances, getBootAppearances)...)
+ ginServer.Handle("POST", "/api/setting/setBootAppearance", contractRouteHandlers(apicontract.SetBootAppearance, setBootAppearance)...)
+ ginServer.Handle("POST", "/api/setting/setEntryVisibility", contractRouteHandlers(apicontract.SetEntryVisibility, setEntryVisibility)...)
+ ginServer.Handle("POST", "/api/setting/setIcon", contractRouteHandlers(apicontract.SetIcon, setIcon)...)
+ ginServer.Handle("POST", "/api/setting/setTheme", contractRouteHandlers(apicontract.SetTheme, setTheme)...)
+ ginServer.Handle("POST", "/api/setting/getCloudUser", contractRouteHandlers(apicontract.GetCloudUser, getCloudUser)...)
+ ginServer.Handle("POST", "/api/setting/logoutCloudUser", contractRouteHandlers(apicontract.LogoutCloudUser, logoutCloudUser)...)
+ ginServer.Handle("POST", "/api/setting/login2faCloudUser", contractRouteHandlers(apicontract.Login2faCloudUser, login2faCloudUser)...)
+ ginServer.Handle("POST", "/api/setting/setEmoji", contractRouteHandlers(apicontract.SetEmoji, setEmoji)...)
+ ginServer.Handle("POST", "/api/setting/setFlashcard", contractRouteHandlers(apicontract.SetFlashcard, setFlashcard)...)
+ ginServer.Handle("POST", "/api/setting/setAI", contractRouteHandlers(apicontract.SetAI, setAI)...)
+ ginServer.Handle("POST", "/api/setting/setSecrets", contractRouteHandlers(apicontract.SetSecrets, setSecrets)...)
+ ginServer.Handle("POST", "/api/setting/setVariables", contractRouteHandlers(apicontract.SetVariables, setVariables)...)
+ ginServer.Handle("POST", "/api/setting/setBazaar", contractRouteHandlers(apicontract.SetBazaar, setBazaar)...)
+ ginServer.Handle("POST", "/api/setting/setBazaarPetalDisabled", contractRouteHandlers(apicontract.SetBazaarPetalDisabled, setBazaarPetalDisabled)...)
+ ginServer.Handle("POST", "/api/setting/setPublish", contractRouteHandlers(apicontract.SetPublish, setPublish)...)
+ ginServer.Handle("POST", "/api/setting/getPublish", contractRouteHandlers(apicontract.GetPublish, getPublish)...)
+ ginServer.Handle("POST", "/api/setting/refreshVirtualBlockRef", contractRouteHandlers(apicontract.RefreshVirtualBlockRef, refreshVirtualBlockRef)...)
+ ginServer.Handle("POST", "/api/setting/addVirtualBlockRefInclude", contractRouteHandlers(apicontract.AddVirtualBlockRefInclude, addVirtualBlockRefInclude)...)
+ ginServer.Handle("POST", "/api/setting/addVirtualBlockRefExclude", contractRouteHandlers(apicontract.AddVirtualBlockRefExclude, addVirtualBlockRefExclude)...)
+ ginServer.Handle("POST", "/api/setting/setSnippet", contractRouteHandlers(apicontract.SetConfSnippet, setConfSnippet)...)
+ ginServer.Handle("POST", "/api/setting/setEditorReadOnly", contractRouteHandlers(apicontract.SetEditorReadOnly, setEditorReadOnly)...)
+}
+
+// registerGraphRoutes 注册本域的契约路由。
+func registerGraphRoutes(ginServer *gin.Engine) {
+ ginServer.Handle("POST", "/api/graph/resetGraph", contractRouteHandlers(apicontract.ResetGraph, resetGraph)...)
+ ginServer.Handle("POST", "/api/graph/resetLocalGraph", contractRouteHandlers(apicontract.ResetLocalGraph, resetLocalGraph)...)
+ ginServer.Handle("POST", "/api/graph/setGraphConf", contractRouteHandlers(apicontract.SetGraphConf, setGraphConf)...)
+ ginServer.Handle("POST", "/api/graph/getGraph", contractRouteHandlers(apicontract.GetGraph, getGraph)...)
+ ginServer.Handle("POST", "/api/graph/getLocalGraph", contractRouteHandlers(apicontract.GetLocalGraph, getLocalGraph)...)
+}
+
+// registerBazaarRoutes 注册本域的契约路由。
+func registerBazaarRoutes(ginServer *gin.Engine) {
+ ginServer.Handle("POST", "/api/bazaar/getBazaarPlugin", contractRouteHandlers(apicontract.GetBazaarPlugin, getBazaarPlugin)...)
+ ginServer.Handle("POST", "/api/bazaar/getInstalledPlugin", contractRouteHandlers(apicontract.GetInstalledPlugin, getInstalledPlugin)...)
+ ginServer.Handle("POST", "/api/bazaar/installBazaarPlugin", contractRouteHandlers(apicontract.InstallBazaarPlugin, installBazaarPlugin)...)
+ ginServer.Handle("POST", "/api/bazaar/uninstallBazaarPlugin", contractRouteHandlers(apicontract.UninstallBazaarPlugin, uninstallBazaarPlugin)...)
+ ginServer.Handle("POST", "/api/bazaar/getBazaarWidget", contractRouteHandlers(apicontract.GetBazaarWidget, getBazaarWidget)...)
+ ginServer.Handle("POST", "/api/bazaar/getInstalledWidget", contractRouteHandlers(apicontract.GetInstalledWidget, getInstalledWidget)...)
+ ginServer.Handle("POST", "/api/bazaar/installBazaarWidget", contractRouteHandlers(apicontract.InstallBazaarWidget, installBazaarWidget)...)
+ ginServer.Handle("POST", "/api/bazaar/uninstallBazaarWidget", contractRouteHandlers(apicontract.UninstallBazaarWidget, uninstallBazaarWidget)...)
+ ginServer.Handle("POST", "/api/bazaar/getBazaarIcon", contractRouteHandlers(apicontract.GetBazaarIcon, getBazaarIcon)...)
+ ginServer.Handle("POST", "/api/bazaar/getInstalledIcon", contractRouteHandlers(apicontract.GetInstalledIcon, getInstalledIcon)...)
+ ginServer.Handle("POST", "/api/bazaar/installBazaarIcon", contractRouteHandlers(apicontract.InstallBazaarIcon, installBazaarIcon)...)
+ ginServer.Handle("POST", "/api/bazaar/uninstallBazaarIcon", contractRouteHandlers(apicontract.UninstallBazaarIcon, uninstallBazaarIcon)...)
+ ginServer.Handle("POST", "/api/bazaar/getBazaarTemplate", contractRouteHandlers(apicontract.GetBazaarTemplate, getBazaarTemplate)...)
+ ginServer.Handle("POST", "/api/bazaar/getInstalledTemplate", contractRouteHandlers(apicontract.GetInstalledTemplate, getInstalledTemplate)...)
+ ginServer.Handle("POST", "/api/bazaar/installBazaarTemplate", contractRouteHandlers(apicontract.InstallBazaarTemplate, installBazaarTemplate)...)
+ ginServer.Handle("POST", "/api/bazaar/uninstallBazaarTemplate", contractRouteHandlers(apicontract.UninstallBazaarTemplate, uninstallBazaarTemplate)...)
+ ginServer.Handle("POST", "/api/bazaar/getBazaarTheme", contractRouteHandlers(apicontract.GetBazaarTheme, getBazaarTheme)...)
+ ginServer.Handle("POST", "/api/bazaar/getInstalledTheme", contractRouteHandlers(apicontract.GetInstalledTheme, getInstalledTheme)...)
+ ginServer.Handle("POST", "/api/bazaar/installBazaarTheme", contractRouteHandlers(apicontract.InstallBazaarTheme, installBazaarTheme)...)
+ ginServer.Handle("POST", "/api/bazaar/uninstallBazaarTheme", contractRouteHandlers(apicontract.UninstallBazaarTheme, uninstallBazaarTheme)...)
+ ginServer.Handle("POST", "/api/bazaar/getBazaarPackageREADME", contractRouteHandlers(apicontract.GetBazaarPackageREADME, getBazaarPackageREADME)...)
+ ginServer.Handle("POST", "/api/bazaar/getInstalledPackageSize", contractRouteHandlers(apicontract.GetInstalledPackageSize, getInstalledPackageSize)...)
+ ginServer.Handle("POST", "/api/bazaar/getBazaarPackage", contractRouteHandlers(apicontract.GetBazaarPackage, getBazaarPackage)...)
+ ginServer.Handle("POST", "/api/bazaar/getBazaarPackageRatings", contractRouteHandlers(apicontract.GetBazaarPackageRatings, getBazaarPackageRatings)...)
+ ginServer.Handle("POST", "/api/bazaar/getBazaarPackageUserRatings", contractRouteHandlers(apicontract.GetBazaarPackageUserRatings, getBazaarPackageUserRatings)...)
+ ginServer.Handle("POST", "/api/bazaar/getBazaarPackageRating", contractRouteHandlers(apicontract.GetBazaarPackageRating, getBazaarPackageRating)...)
+ ginServer.Handle("POST", "/api/bazaar/setBazaarPackageRating", contractRouteHandlers(apicontract.SetBazaarPackageRating, setBazaarPackageRating)...)
+ ginServer.Handle("POST", "/api/bazaar/getUpdatedPackage", contractRouteHandlers(apicontract.GetUpdatedPackage, getUpdatedPackage)...)
+ ginServer.Handle("POST", "/api/bazaar/updateBazaarPackage", contractRouteHandlers(apicontract.UpdateBazaarPackage, updateBazaarPackage)...)
+ ginServer.Handle("POST", "/api/bazaar/batchUpdatePackage", contractRouteHandlers(apicontract.BatchUpdatePackage, batchUpdatePackage)...)
+ ginServer.Handle("POST", "/api/bazaar/installLocalBazaarPackage", contractRouteHandlers(apicontract.InstallLocalBazaarPackage, installLocalBazaarPackage)...)
+}
+
+// registerRepoRoutes 注册本域的契约路由。
+func registerRepoRoutes(ginServer *gin.Engine) {
+ ginServer.Handle("POST", "/api/repo/initRepoKey", contractRouteHandlers(apicontract.InitRepoKey, initRepoKey)...)
+ ginServer.Handle("POST", "/api/repo/initRepoKeyFromPassphrase", contractRouteHandlers(apicontract.InitRepoKeyFromPassphrase, initRepoKeyFromPassphrase)...)
+ ginServer.Handle("POST", "/api/repo/resetRepo", contractRouteHandlers(apicontract.ResetRepo, resetRepo)...)
+ ginServer.Handle("POST", "/api/repo/purgeRepo", contractRouteHandlers(apicontract.PurgeRepo, purgeRepo)...)
+ ginServer.Handle("POST", "/api/repo/purgeCloudRepo", contractRouteHandlers(apicontract.PurgeCloudRepo, purgeCloudRepo)...)
+ ginServer.Handle("POST", "/api/repo/importRepoKey", contractRouteHandlers(apicontract.ImportRepoKey, importRepoKey)...)
+ ginServer.Handle("POST", "/api/repo/createSnapshot", contractRouteHandlers(apicontract.CreateSnapshot, createSnapshot)...)
+ ginServer.Handle("POST", "/api/repo/checkSnapshot", contractRouteHandlers(apicontract.CheckSnapshot, checkSnapshot)...)
+ ginServer.Handle("POST", "/api/repo/setSnapshotMemo", contractRouteHandlers(apicontract.SetSnapshotMemo, setSnapshotMemo)...)
+ ginServer.Handle("POST", "/api/repo/tagSnapshot", contractRouteHandlers(apicontract.TagSnapshot, tagSnapshot)...)
+ ginServer.Handle("POST", "/api/repo/checkoutRepo", contractRouteHandlers(apicontract.CheckoutRepo, checkoutRepo)...)
+ ginServer.Handle("POST", "/api/repo/getRepoSnapshots", contractRouteHandlers(apicontract.GetRepoSnapshots, getRepoSnapshots)...)
+ ginServer.Handle("POST", "/api/repo/searchRepoFile", contractRouteHandlers(apicontract.SearchRepoFile, searchRepoFile)...)
+ ginServer.Handle("POST", "/api/repo/getRepoDocHistory", contractRouteHandlers(apicontract.GetRepoDocHistory, getRepoDocHistory)...)
+ ginServer.Handle("POST", "/api/repo/getRepoTagSnapshots", contractRouteHandlers(apicontract.GetRepoTagSnapshots, getRepoTagSnapshots)...)
+ ginServer.Handle("POST", "/api/repo/removeRepoTagSnapshot", contractRouteHandlers(apicontract.RemoveRepoTagSnapshot, removeRepoTagSnapshot)...)
+ ginServer.Handle("POST", "/api/repo/getCloudRepoTagSnapshots", contractRouteHandlers(apicontract.GetCloudRepoTagSnapshots, getCloudRepoTagSnapshots)...)
+ ginServer.Handle("POST", "/api/repo/getCloudRepoSnapshots", contractRouteHandlers(apicontract.GetCloudRepoSnapshots, getCloudRepoSnapshots)...)
+ ginServer.Handle("POST", "/api/repo/removeCloudRepoTagSnapshot", contractRouteHandlers(apicontract.RemoveCloudRepoTagSnapshot, removeCloudRepoTagSnapshot)...)
+ ginServer.Handle("POST", "/api/repo/uploadCloudSnapshot", contractRouteHandlers(apicontract.UploadCloudSnapshot, uploadCloudSnapshot)...)
+ ginServer.Handle("POST", "/api/repo/downloadCloudSnapshot", contractRouteHandlers(apicontract.DownloadCloudSnapshot, downloadCloudSnapshot)...)
+ ginServer.Handle("POST", "/api/repo/diffRepoSnapshots", contractRouteHandlers(apicontract.DiffRepoSnapshots, diffRepoSnapshots)...)
+ ginServer.Handle("POST", "/api/repo/openRepoSnapshotFile", contractRouteHandlers(apicontract.OpenRepoSnapshotFile, openRepoSnapshotFile)...)
+ ginServer.Handle("POST", "/api/repo/rollbackRepoSnapshotFile", contractRouteHandlers(apicontract.RollbackRepoSnapshotFile, rollbackRepoSnapshotFile)...)
+ ginServer.Handle("POST", "/api/repo/exportRepoFile", contractRouteHandlers(apicontract.ExportRepoFile, exportRepoFile)...)
+ ginServer.Handle("POST", "/api/repo/getRepoFile", contractRouteHandlers(apicontract.GetRepoFile, getRepoFile)...)
+ ginServer.Handle("POST", "/api/repo/setRepoIndexRetentionDays", contractRouteHandlers(apicontract.SetRepoIndexRetentionDays, setRepoIndexRetentionDays)...)
+ ginServer.Handle("POST", "/api/repo/setRetentionIndexesDaily", contractRouteHandlers(apicontract.SetRetentionIndexesDaily, setRetentionIndexesDaily)...)
+}
+
+// registerRiffRoutes 注册本域的契约路由。
+func registerRiffRoutes(ginServer *gin.Engine) {
+ ginServer.Handle("POST", "/api/riff/createRiffDeck", contractRouteHandlers(apicontract.CreateRiffDeck, createRiffDeck)...)
+ ginServer.Handle("POST", "/api/riff/renameRiffDeck", contractRouteHandlers(apicontract.RenameRiffDeck, renameRiffDeck)...)
+ ginServer.Handle("POST", "/api/riff/removeRiffDeck", contractRouteHandlers(apicontract.RemoveRiffDeck, removeRiffDeck)...)
+ ginServer.Handle("POST", "/api/riff/getRiffDecks", contractRouteHandlers(apicontract.GetRiffDecks, getRiffDecks)...)
+ ginServer.Handle("POST", "/api/riff/addRiffCards", contractRouteHandlers(apicontract.AddRiffCards, addRiffCards)...)
+ ginServer.Handle("POST", "/api/riff/removeRiffCards", contractRouteHandlers(apicontract.RemoveRiffCards, removeRiffCards)...)
+ ginServer.Handle("POST", "/api/riff/getRiffDueCards", contractRouteHandlers(apicontract.GetRiffDueCards, getRiffDueCards)...)
+ ginServer.Handle("POST", "/api/riff/getTreeRiffDueCards", contractRouteHandlers(apicontract.GetTreeRiffDueCards, getTreeRiffDueCards)...)
+ ginServer.Handle("POST", "/api/riff/getNotebookRiffDueCards", contractRouteHandlers(apicontract.GetNotebookRiffDueCards, getNotebookRiffDueCards)...)
+ ginServer.Handle("POST", "/api/riff/reviewRiffCard", contractRouteHandlers(apicontract.ReviewRiffCard, reviewRiffCard)...)
+ ginServer.Handle("POST", "/api/riff/skipReviewRiffCard", contractRouteHandlers(apicontract.SkipReviewRiffCard, skipReviewRiffCard)...)
+ ginServer.Handle("POST", "/api/riff/getRiffCards", contractRouteHandlers(apicontract.GetRiffCards, getRiffCards)...)
+ ginServer.Handle("POST", "/api/riff/getTreeRiffCards", contractRouteHandlers(apicontract.GetTreeRiffCards, getTreeRiffCards)...)
+ ginServer.Handle("POST", "/api/riff/getNotebookRiffCards", contractRouteHandlers(apicontract.GetNotebookRiffCards, getNotebookRiffCards)...)
+ ginServer.Handle("POST", "/api/riff/resetRiffCards", contractRouteHandlers(apicontract.ResetRiffCards, resetRiffCards)...)
+ ginServer.Handle("POST", "/api/riff/batchSetRiffCardsDueTime", contractRouteHandlers(apicontract.BatchSetRiffCardsDueTime, batchSetRiffCardsDueTime)...)
+ ginServer.Handle("POST", "/api/riff/getRiffCardsByBlockIDs", contractRouteHandlers(apicontract.GetRiffCardsByBlockIDs, getRiffCardsByBlockIDs)...)
+}
+
+// registerNotificationRoutes 注册本域的契约路由。
+func registerNotificationRoutes(ginServer *gin.Engine) {
+ ginServer.Handle("POST", "/api/notification/pushMsg", contractRouteHandlers(apicontract.PushMsg, pushMsg)...)
+ ginServer.Handle("POST", "/api/notification/pushErrMsg", contractRouteHandlers(apicontract.PushErrMsg, pushErrMsg)...)
+}
+
+// registerSnippetRoutes 注册本域的契约路由。
+func registerSnippetRoutes(ginServer *gin.Engine) {
+ ginServer.Handle("POST", "/api/snippet/getSnippet", contractRouteHandlers(apicontract.GetSnippet, getSnippet)...)
+ ginServer.Handle("POST", "/api/snippet/setSnippet", contractRouteHandlers(apicontract.SetSnippet, setSnippet)...)
+ ginServer.Handle("POST", "/api/snippet/removeSnippet", contractRouteHandlers(apicontract.RemoveSnippet, removeSnippet)...)
+}
+
+// registerAvRoutes 注册本域的契约路由。
+func registerAvRoutes(ginServer *gin.Engine) {
+ ginServer.Handle("POST", "/api/av/renderAttributeView", contractRouteHandlers(apicontract.RenderAttributeView, renderAttributeView)...)
+ ginServer.Handle("POST", "/api/av/getAttributeViewCalendarUndated", contractRouteHandlers(apicontract.GetAttributeViewCalendarUndated, getAttributeViewCalendarUndated)...)
+ ginServer.Handle("POST", "/api/av/getAttributeViewItemStatuses", contractRouteHandlers(apicontract.GetAttributeViewItemStatuses, getAttributeViewItemStatuses)...)
+ ginServer.Handle("POST", "/api/av/renderHistoryAttributeView", contractRouteHandlers(apicontract.RenderHistoryAttributeView, renderHistoryAttributeView)...)
+ ginServer.Handle("POST", "/api/av/renderSnapshotAttributeView", contractRouteHandlers(apicontract.RenderSnapshotAttributeView, renderSnapshotAttributeView)...)
+ ginServer.Handle("POST", "/api/av/getAttributeViewKeys", contractRouteHandlers(apicontract.GetAttributeViewKeys, getAttributeViewKeys)...)
+ ginServer.Handle("POST", "/api/av/getAttributeViewSearchTarget", contractRouteHandlers(apicontract.GetAttributeViewSearchTarget, getAttributeViewSearchTarget)...)
+ ginServer.Handle("POST", "/api/av/getAttributeViewFieldViews", contractRouteHandlers(apicontract.GetAttributeViewFieldViews, getAttributeViewFieldViews)...)
+ ginServer.Handle("POST", "/api/av/getAttributeViewBacklinks", contractRouteHandlers(apicontract.GetAttributeViewBacklinks, getAttributeViewBacklinks)...)
+ ginServer.Handle("POST", "/api/av/setAttributeViewBlockAttr", contractRouteHandlers(apicontract.SetAttributeViewBlockAttr, setAttributeViewBlockAttr)...)
+ ginServer.Handle("POST", "/api/av/batchSetAttributeViewBlockAttrs", contractRouteHandlers(apicontract.BatchSetAttributeViewBlockAttrs, batchSetAttributeViewBlockAttrs)...)
+ ginServer.Handle("POST", "/api/av/searchAttributeView", contractRouteHandlers(apicontract.SearchAttributeView, searchAttributeView)...)
+ ginServer.Handle("POST", "/api/av/getAttributeView", contractRouteHandlers(apicontract.GetAttributeView, getAttributeView)...)
+ ginServer.Handle("POST", "/api/av/getAttributeViewPasteRows", contractRouteHandlers(apicontract.GetAttributeViewPasteRows, getAttributeViewPasteRows)...)
+ ginServer.Handle("POST", "/api/av/searchAttributeViewRelationKey", contractRouteHandlers(apicontract.SearchAttributeViewRelationKey, searchAttributeViewRelationKey)...)
+ ginServer.Handle("POST", "/api/av/searchAttributeViewNonRelationKey", contractRouteHandlers(apicontract.SearchAttributeViewNonRelationKey, searchAttributeViewNonRelationKey)...)
+ ginServer.Handle("POST", "/api/av/searchAttributeViewRollupDestKeys", contractRouteHandlers(apicontract.SearchAttributeViewRollupDestKeys, searchAttributeViewRollupDestKeys)...)
+ ginServer.Handle("POST", "/api/av/getAttributeViewFilterSort", contractRouteHandlers(apicontract.GetAttributeViewFilterSort, getAttributeViewFilterSort)...)
+ ginServer.Handle("POST", "/api/av/setAttrViewFilters", contractRouteHandlers(apicontract.SetAttrViewFilters, setAttrViewFilters)...)
+ ginServer.Handle("POST", "/api/av/setAttrViewContextFilter", contractRouteHandlers(apicontract.SetAttrViewContextFilter, setAttrViewContextFilter)...)
+ ginServer.Handle("POST", "/api/av/setAttrViewSorts", contractRouteHandlers(apicontract.SetAttrViewSorts, setAttrViewSorts)...)
+ ginServer.Handle("POST", "/api/av/getAttributeViewRowSort", contractRouteHandlers(apicontract.GetAttributeViewRowSort, getAttributeViewRowSort)...)
+ ginServer.Handle("POST", "/api/av/addAttributeViewKey", contractRouteHandlers(apicontract.AddAttributeViewKey, addAttributeViewKey)...)
+ ginServer.Handle("POST", "/api/av/removeAttributeViewKey", contractRouteHandlers(apicontract.RemoveAttributeViewKey, removeAttributeViewKey)...)
+ ginServer.Handle("POST", "/api/av/sortAttributeViewViewKey", contractRouteHandlers(apicontract.SortAttributeViewViewKey, sortAttributeViewViewKey)...)
+ ginServer.Handle("POST", "/api/av/sortAttributeViewKey", contractRouteHandlers(apicontract.SortAttributeViewKey, sortAttributeViewKey)...)
+ ginServer.Handle("POST", "/api/av/addAttributeViewBlocks", contractRouteHandlers(apicontract.AddAttributeViewBlocks, addAttributeViewBlocks)...)
+ ginServer.Handle("POST", "/api/av/removeAttributeViewBlocks", contractRouteHandlers(apicontract.RemoveAttributeViewBlocks, removeAttributeViewBlocks)...)
+ ginServer.Handle("POST", "/api/av/getAttributeViewPrimaryKeyValues", contractRouteHandlers(apicontract.GetAttributeViewPrimaryKeyValues, getAttributeViewPrimaryKeyValues)...)
+ ginServer.Handle("POST", "/api/av/getAttributeViewRelationCandidates", contractRouteHandlers(apicontract.GetAttributeViewRelationCandidates, getAttributeViewRelationCandidates)...)
+ ginServer.Handle("POST", "/api/av/setDatabaseBlockView", contractRouteHandlers(apicontract.SetDatabaseBlockView, setDatabaseBlockView)...)
+ ginServer.Handle("POST", "/api/av/getMirrorDatabaseBlocks", contractRouteHandlers(apicontract.GetMirrorDatabaseBlocks, getMirrorDatabaseBlocks)...)
+ ginServer.Handle("POST", "/api/av/getAttributeViewKeysByAvID", contractRouteHandlers(apicontract.GetAttributeViewKeysByAvID, getAttributeViewKeysByAvID)...)
+ ginServer.Handle("POST", "/api/av/getAttributeViewKeysByID", contractRouteHandlers(apicontract.GetAttributeViewKeysByID, getAttributeViewKeysByID)...)
+ ginServer.Handle("POST", "/api/av/duplicateAttributeViewBlock", contractRouteHandlers(apicontract.DuplicateAttributeViewBlock, duplicateAttributeViewBlock)...)
+ ginServer.Handle("POST", "/api/av/appendAttributeViewDetachedBlocksWithValues", contractRouteHandlers(apicontract.AppendAttributeViewDetachedBlocksWithValues, appendAttributeViewDetachedBlocksWithValues)...)
+ ginServer.Handle("POST", "/api/av/getCurrentAttrViewImages", contractRouteHandlers(apicontract.GetCurrentAttrViewImages, getCurrentAttrViewImages)...)
+ ginServer.Handle("POST", "/api/av/changeAttrViewLayout", contractRouteHandlers(apicontract.ChangeAttrViewLayout, changeAttrViewLayout)...)
+ ginServer.Handle("POST", "/api/av/setAttrViewGroup", contractRouteHandlers(apicontract.SetAttrViewGroup, setAttrViewGroup)...)
+ ginServer.Handle("POST", "/api/av/batchReplaceAttributeViewBlocks", contractRouteHandlers(apicontract.BatchReplaceAttributeViewBlocks, batchReplaceAttributeViewBlocks)...)
+ ginServer.Handle("POST", "/api/av/getAttributeViewAddingBlockDefaultValues", contractRouteHandlers(apicontract.GetAttributeViewAddingBlockDefaultValues, getAttributeViewAddingBlockDefaultValues)...)
+ ginServer.Handle("POST", "/api/av/getAttributeViewBoundBlockIDsByItemIDs", contractRouteHandlers(apicontract.GetAttributeViewBoundBlockIDsByItemIDs, getAttributeViewBoundBlockIDsByItemIDs)...)
+ ginServer.Handle("POST", "/api/av/getAttributeViewItemIDsByBoundIDs", contractRouteHandlers(apicontract.GetAttributeViewItemIDsByBoundIDs, getAttributeViewItemIDsByBoundIDs)...)
+ ginServer.Handle("POST", "/api/av/getUnusedAttributeViews", contractRouteHandlers(apicontract.GetUnusedAttributeViews, getUnusedAttributeViews)...)
+ ginServer.Handle("POST", "/api/av/createAttributeViewItem", contractRouteHandlers(apicontract.CreateAttributeViewItem, createAttributeViewItem)...)
+ ginServer.Handle("POST", "/api/av/createAttributeViewRelationItem", contractRouteHandlers(apicontract.CreateAttributeViewRelationItem, createAttributeViewRelationItem)...)
+ ginServer.Handle("POST", "/api/av/createAttributeViewItemWithMarkdown", contractRouteHandlers(apicontract.CreateAttributeViewItemWithMarkdown, createAttributeViewItemWithMarkdown)...)
+ ginServer.Handle("POST", "/api/av/createAttributeViewItemDocs", contractRouteHandlers(apicontract.CreateAttributeViewItemDocs, createAttributeViewItemDocs)...)
+ ginServer.Handle("POST", "/api/av/removeUnusedAttributeViews", contractRouteHandlers(apicontract.RemoveUnusedAttributeViews, removeUnusedAttributeViews)...)
+ ginServer.Handle("POST", "/api/av/removeUnusedAttributeView", contractRouteHandlers(apicontract.RemoveUnusedAttributeView, removeUnusedAttributeView)...)
+}
+
+// registerPetalRoutes 注册本域的契约路由。
+func registerPetalRoutes(ginServer *gin.Engine) {
+ ginServer.Handle("POST", "/api/petal/loadPetals", contractRouteHandlers(apicontract.LoadPetals, loadPetals)...)
+ ginServer.Handle("POST", "/api/petal/setPetalEnabled", contractRouteHandlers(apicontract.SetPetalEnabled, setPetalEnabled)...)
+ ginServer.Handle("POST", "/api/petal/setPetalPublishEnabled", contractRouteHandlers(apicontract.SetPetalPublishEnabled, setPetalPublishEnabled)...)
+ ginServer.Handle("POST", "/api/petal/getPluginPublishInfo", contractRouteHandlers(apicontract.GetPluginPublishInfo, getPluginPublishInfo)...)
+ ginServer.Handle("POST", "/api/petal/setPluginPublishDataGrant", contractRouteHandlers(apicontract.SetPluginPublishDataGrant, setPluginPublishDataGrant)...)
+ ginServer.Handle("POST", "/api/petal/savePluginPublishData", contractRouteHandlers(apicontract.SavePluginPublishData, savePluginPublishData)...)
+ ginServer.Handle("POST", "/api/petal/loadPluginPublishData", contractRouteHandlers(apicontract.LoadPluginPublishData, loadPluginPublishData)...)
+}
+
+// registerPluginRoutes 注册本域的契约路由。
+func registerPluginRoutes(ginServer *gin.Engine) {
+ ginServer.Handle("GET", "/api/plugin/rpc", contractRouteHandlers(apicontract.GetLoadedPluginRPC, getLoadedPluginRPC)...)
+ ginServer.Handle("GET", "/api/plugin/rpc/:name", contractRouteHandlers(apicontract.GetLoadedPluginRPCByName, getLoadedPluginRPCByName)...)
+ ginServer.Handle("GET", "/api/plugin", contractRouteHandlers(apicontract.ListLoadedPluginsGET, listLoadedPluginsGET)...)
+ ginServer.Handle("POST", "/api/plugin/getLoadedPlugin", contractRouteHandlers(apicontract.GetLoadedPlugin, getLoadedPlugin)...)
+ ginServer.Handle("POST", "/api/plugin/listLoadedPlugins", contractRouteHandlers(apicontract.ListLoadedPlugins, listLoadedPlugins)...)
+ ginServer.Handle("POST", "/api/plugin/rpc", contractRouteHandlers(apicontract.PluginRPCHTTP, pluginJsonRpcHttp)...)
+ ginServer.Handle("POST", "/api/plugin/rpc/:name", contractRouteHandlers(apicontract.PluginRPCHTTPByName, pluginJsonRpcHttpByName)...)
+ ginServer.Handle("GET", "/ws/plugin/rpc", contractRouteHandlers(apicontract.PluginRPCWebSocket, pluginJsonRpcWebSocket)...)
+ ginServer.Handle("GET", "/ws/plugin/rpc/:name", contractRouteHandlers(apicontract.PluginRPCWebSocketByName, pluginJsonRpcWebSocketByName)...)
+ ginServer.Any("/plugin/private/:name/*path", contractRouteHandlers(apicontract.PluginPrivateService, pluginPrivateWebServer)...)
+}
+
+// registerNetworkRoutes 注册本域的契约路由。
+func registerNetworkRoutes(ginServer *gin.Engine) {
+ ginServer.Any("/api/network/echo", contractRouteHandlers(apicontract.NetworkEcho, echo)...)
+ ginServer.Any("/api/network/echo/*path", contractRouteHandlers(apicontract.NetworkEchoPath, echoPath)...)
+ ginServer.Handle("POST", "/api/network/forwardProxy", contractRouteHandlers(apicontract.NetworkForwardProxy, forwardProxy)...)
+ ginServer.Any("/api/network/proxy", contractRouteHandlers(apicontract.NetworkHTTPProxy, httpProxy)...)
+ ginServer.Handle("GET", "/ws/network/proxy", contractRouteHandlers(apicontract.NetworkWebSocketProxy, wsProxy)...)
+ ginServer.Handle("GET", "/es/network/proxy", contractRouteHandlers(apicontract.NetworkEventSourceProxy, esProxy)...)
+}
+
+// registerBroadcastRoutes 注册本域的契约路由。
+func registerBroadcastRoutes(ginServer *gin.Engine) {
+ ginServer.Handle("GET", "/ws/broadcast", contractRouteHandlers(apicontract.BroadcastWebSocket, broadcast)...)
+ ginServer.Handle("GET", "/es/broadcast/subscribe", contractRouteHandlers(apicontract.BroadcastSubscribe, broadcastSubscribe)...)
+ ginServer.Handle("POST", "/api/broadcast/publish", contractRouteHandlers(apicontract.BroadcastPublish, broadcastPublish)...)
+ ginServer.Handle("POST", "/api/broadcast/postMessage", contractRouteHandlers(apicontract.PostBroadcastMessage, postMessage)...)
+ ginServer.Handle("POST", "/api/broadcast/getChannels", contractRouteHandlers(apicontract.GetBroadcastChannels, getChannels)...)
+ ginServer.Handle("POST", "/api/broadcast/getChannelInfo", contractRouteHandlers(apicontract.GetBroadcastChannelInfo, getChannelInfo)...)
+}
+
+// registerArchiveRoutes 注册本域的契约路由。
+func registerArchiveRoutes(ginServer *gin.Engine) {
+ ginServer.Handle("POST", "/api/archive/zip", contractRouteHandlers(apicontract.Zip, zip)...)
+ ginServer.Handle("POST", "/api/archive/unzip", contractRouteHandlers(apicontract.Unzip, unzip)...)
+}
+
+// registerUiRoutes 注册本域的契约路由。
+func registerUiRoutes(ginServer *gin.Engine) {
+ ginServer.Handle("POST", "/api/ui/reloadUI", contractRouteHandlers(apicontract.ReloadUI, reloadUI)...)
+ ginServer.Handle("POST", "/api/ui/reloadIcon", contractRouteHandlers(apicontract.ReloadIcon, reloadIcon)...)
+ ginServer.Handle("POST", "/api/ui/reloadTheme", contractRouteHandlers(apicontract.ReloadTheme, reloadTheme)...)
+ ginServer.Handle("POST", "/api/ui/reloadAttributeView", contractRouteHandlers(apicontract.ReloadAttributeView, reloadAttributeView)...)
+ ginServer.Handle("POST", "/api/ui/reloadProtyle", contractRouteHandlers(apicontract.ReloadProtyle, reloadProtyle)...)
+ ginServer.Handle("POST", "/api/ui/reloadFiletree", contractRouteHandlers(apicontract.ReloadFiletree, reloadFiletree)...)
+ ginServer.Handle("POST", "/api/ui/reloadTag", contractRouteHandlers(apicontract.ReloadTag, reloadTag)...)
+}
diff --git a/kernel/apicontract/authorization.go b/kernel/apicontract/authorization.go
new file mode 100644
index 0000000000..ea4168c8db
--- /dev/null
+++ b/kernel/apicontract/authorization.go
@@ -0,0 +1,50 @@
+package apicontract
+
+// Authorization 显式声明路由的访问要求;公开端点也必须使用 PublicAccess 标记。
+// 这些标记只描述现有中间件,不替代处理函数中的资源权限检查或笔记本租约。
+type Authorization uint8
+
+const (
+ PublicAccess Authorization = 1 << iota
+ AuthenticatedAccess
+ AdminAccess
+ WritableAccess
+)
+
+func (a Authorization) Valid() bool {
+ if a == PublicAccess {
+ return true
+ }
+ return a&AuthenticatedAccess != 0 && a&^(AuthenticatedAccess|AdminAccess|WritableAccess) == 0
+}
+
+// Policies 返回生成元数据使用的访问要求,顺序与路由中间件一致。
+func (a Authorization) Policies() []string {
+ if a == PublicAccess {
+ return []string{"public"}
+ }
+ var result []string
+ for _, item := range []struct {
+ flag Authorization
+ name string
+ }{{AuthenticatedAccess, "authenticated"}, {AdminAccess, "admin"}, {WritableAccess, "writable"}} {
+ if a&item.flag != 0 {
+ result = append(result, item.name)
+ }
+ }
+ return result
+}
+
+// MiddlewareNames 用于核对实际注册的鉴权中间件,不引入运行时模型依赖。
+func (a Authorization) MiddlewareNames() []string {
+ var result []string
+ for _, item := range []struct {
+ flag Authorization
+ name string
+ }{{AuthenticatedAccess, "model.CheckAuth"}, {AdminAccess, "model.CheckAdminRole"}, {WritableAccess, "model.CheckReadonly"}} {
+ if a&item.flag != 0 {
+ result = append(result, item.name)
+ }
+ }
+ return result
+}
diff --git a/kernel/apicontract/authorization_test.go b/kernel/apicontract/authorization_test.go
new file mode 100644
index 0000000000..031c996db2
--- /dev/null
+++ b/kernel/apicontract/authorization_test.go
@@ -0,0 +1,75 @@
+package apicontract
+
+import (
+ "reflect"
+ "testing"
+)
+
+func TestAuthorizationContracts(t *testing.T) {
+ for _, invalid := range []Authorization{0, AdminAccess, WritableAccess, PublicAccess | AuthenticatedAccess, 128} {
+ if invalid.Valid() {
+ t.Fatalf("invalid policy accepted: %d", invalid)
+ }
+ }
+ for _, valid := range []Authorization{PublicAccess, AuthenticatedAccess, AuthenticatedAccess | AdminAccess,
+ AuthenticatedAccess | WritableAccess, AuthenticatedAccess | AdminAccess | WritableAccess} {
+ if !valid.Valid() {
+ t.Fatalf("valid policy rejected: %d", valid)
+ }
+ }
+ expected := map[string]Authorization{
+ "/api/system/version": PublicAccess,
+ "/oauth/mcp/token": PublicAccess,
+ "/api/block/getBlockDOM": AuthenticatedAccess,
+ "/api/av/changeAttrViewLayout": AuthenticatedAccess | AdminAccess | WritableAccess,
+ "/api/network/forwardProxy": AuthenticatedAccess | AdminAccess,
+ }
+ for _, definition := range Definitions() {
+ if !definition.Authorization.Valid() {
+ t.Errorf("missing authorization: %s", definition.Name)
+ }
+ if policy, found := expected[definition.Path]; found {
+ if definition.Authorization != policy {
+ t.Errorf("policy changed for %s: got %d want %d", definition.Path, definition.Authorization, policy)
+ }
+ delete(expected, definition.Path)
+ }
+ }
+ if len(expected) != 0 {
+ t.Fatalf("representative contracts absent: %v", expected)
+ }
+ if names := (AuthenticatedAccess | AdminAccess | WritableAccess).MiddlewareNames(); !reflect.DeepEqual(names, []string{"model.CheckAuth", "model.CheckAdminRole", "model.CheckReadonly"}) {
+ t.Fatalf("middleware order changed: %v", names)
+ }
+}
+
+func TestRouteAuthorizationCoverage(t *testing.T) {
+ routes, bindings, err := ReadRoutes("../api")
+ if err != nil {
+ t.Fatal(err)
+ }
+ for _, route := range routes {
+ if route.Path != "/api/av/changeAttrViewLayout" {
+ continue
+ }
+ for _, mutation := range []func(*Route){
+ func(route *Route) { route.Middleware = []string{"model.CheckAuth", "model.CheckAdminRole"} },
+ func(route *Route) {
+ route.Middleware = []string{"model.CheckAdminRole", "model.CheckAuth", "model.CheckReadonly"}
+ },
+ func(route *Route) { route.Contract = "version" },
+ } {
+ changed := append([]Route(nil), routes...)
+ for index := range changed {
+ if changed[index].Key() == route.Key() {
+ mutation(&changed[index])
+ }
+ }
+ if err := CheckRoutes(changed, bindings, nil); err == nil {
+ t.Fatal("missing or mismatched authorization was accepted")
+ }
+ }
+ return
+ }
+ t.Fatal("write route absent")
+}
diff --git a/kernel/apicontract/binary_error_test.go b/kernel/apicontract/binary_error_test.go
index 10233caa91..25e9c085a2 100644
--- a/kernel/apicontract/binary_error_test.go
+++ b/kernel/apicontract/binary_error_test.go
@@ -5,7 +5,7 @@ import "testing"
func TestBinarySharedStatusErrors(t *testing.T) {
previous := definitions
t.Cleanup(func() { definitions = previous })
- endpoint := define[EmptyRequest, BinaryContent]("sharedBinaryStatus", "/test/shared-binary-status", NoBody, ResponseOptions{Output: BinaryOutput, ErrorStatus: 200}, "POST")
+ endpoint := define[EmptyRequest, BinaryContent]("sharedBinaryStatus", "/test/shared-binary-status", PublicAccess, NoBody, ResponseOptions{Output: BinaryOutput, ErrorStatus: 200}, "POST")
bundle, err := BuildBundle()
if err != nil {
t.Fatal(err)
diff --git a/kernel/apicontract/broadcast_protocol_test.go b/kernel/apicontract/broadcast_protocol_test.go
index a70ec39a28..2656fd16e7 100644
--- a/kernel/apicontract/broadcast_protocol_test.go
+++ b/kernel/apicontract/broadcast_protocol_test.go
@@ -8,8 +8,8 @@ import (
func TestRawBroadcastProtocols(t *testing.T) {
previous := definitions
t.Cleanup(func() { definitions = previous })
- ws := define[EmptyRequest, Null]("rawBroadcastWS", "/test/broadcast/ws", NoBody, RawWebSocketOptions(), "GET")
- stream := define[EmptyRequest, Null]("rawBroadcastSSE", "/test/broadcast/es", NoBody, RawSSEOptions(), "GET")
+ ws := define[EmptyRequest, Null]("rawBroadcastWS", "/test/broadcast/ws", PublicAccess, NoBody, RawWebSocketOptions(), "GET")
+ stream := define[EmptyRequest, Null]("rawBroadcastSSE", "/test/broadcast/es", PublicAccess, NoBody, RawSSEOptions(), "GET")
bundle, err := BuildBundle()
if err != nil {
t.Fatal(err)
diff --git a/kernel/apicontract/contract_test.go b/kernel/apicontract/contract_test.go
index d2a8920e8b..53287abf77 100644
--- a/kernel/apicontract/contract_test.go
+++ b/kernel/apicontract/contract_test.go
@@ -213,7 +213,7 @@ func TestRouteCoverage(t *testing.T) {
if err := CheckRoutes(routes, bindings, legacy); err != nil {
t.Fatal(err)
}
- if err := CheckRoutes(append(routes, Route{"POST", "/api/new/untyped", "newHandler"}), bindings, legacy); err == nil {
+ if err := CheckRoutes(append(routes, Route{Method: "POST", Path: "/api/new/untyped", Handler: "newHandler"}), bindings, legacy); err == nil {
t.Fatal("new untyped route was accepted")
}
bindings["getBlockAttrs"] = "setBlockAttrs"
diff --git a/kernel/apicontract/contracts.go b/kernel/apicontract/contracts.go
index 5d026d40d4..605a197692 100644
--- a/kernel/apicontract/contracts.go
+++ b/kernel/apicontract/contracts.go
@@ -29,6 +29,7 @@ type Definition struct {
Name string
Path string
Methods []string
+ Authorization Authorization
Body BodyMode
Request reflect.Type
Data reflect.Type
@@ -76,65 +77,65 @@ type ResponseOptions struct {
var definitions []Definition
// MCP OAuth 协议入口返回标准 OAuth JSON 或授权页面,不使用内核结果信封。
-var MCPOAuthResource = define[EmptyRequest, BinaryContent]("mcpOAuthResource", "/.well-known/oauth-protected-resource/mcp", NoBody, mcpOAuthContentOptions(), "GET")
-var MCPOAuthResourceRoot = define[EmptyRequest, BinaryContent]("mcpOAuthResourceRoot", "/.well-known/oauth-protected-resource", NoBody, mcpOAuthContentOptions(), "GET")
-var MCPOAuthMetadata = define[EmptyRequest, BinaryContent]("mcpOAuthMetadata", "/.well-known/oauth-authorization-server", NoBody, mcpOAuthContentOptions(), "GET")
-var MCPOAuthToken = define[MCPOAuthTokenRequest, BinaryContent]("mcpOAuthToken", "/oauth/mcp/token", FormBody, mcpOAuthContentOptions(), "POST")
-var MCPOAuthRevoke = define[MCPOAuthTokenRequest, BinaryContent]("mcpOAuthRevoke", "/oauth/mcp/revoke", FormBody, mcpOAuthContentOptions(), "POST")
-var MCPOAuthAuthorize = define[EmptyRequest, BinaryContent]("mcpOAuthServerAuthorize", "/oauth/mcp/authorize", NoBody, HTTPContentOptions(HTTPContentVariant{Status: 200, ContentType: "text/html"}, HTTPContentVariant{Status: 302, ContentType: "text/html"}, HTTPContentVariant{Status: 400, ContentType: "text/html"}), "GET")
-var MCPOAuthConsent = define[MCPOAuthConsentRequest, BinaryContent]("mcpOAuthConsent", "/oauth/mcp/consent", FormBody, HTTPContentOptions(HTTPContentVariant{Status: 302, ContentType: "text/html"}, HTTPContentVariant{Status: 400, ContentType: "text/html"}), "POST")
-var MCPOAuthGet = define[EmptyRequest, MCPOAuthStatus]("mcpOAuthGet", "/api/mcp/getOAuth", NoBody, ResponseOptions{}, "POST")
-var MCPOAuthSet = define[MCPOAuthConfig, Null]("mcpOAuthSet", "/api/mcp/setOAuth", JSONBody, ResponseOptions{}, "POST")
-var MCPOAuthAddClient = define[MCPOAuthClientRequest, MCPOAuthClientSecret]("mcpOAuthAddClient", "/api/mcp/addOAuthClient", JSONBody, ResponseOptions{}, "POST")
-var MCPOAuthRemoveClient = define[MCPOAuthRemoveRequest, Null]("mcpOAuthRemoveClient", "/api/mcp/removeOAuthClient", JSONBody, ResponseOptions{}, "POST")
+var MCPOAuthResource = define[EmptyRequest, BinaryContent]("mcpOAuthResource", "/.well-known/oauth-protected-resource/mcp", PublicAccess, NoBody, mcpOAuthContentOptions(), "GET")
+var MCPOAuthResourceRoot = define[EmptyRequest, BinaryContent]("mcpOAuthResourceRoot", "/.well-known/oauth-protected-resource", PublicAccess, NoBody, mcpOAuthContentOptions(), "GET")
+var MCPOAuthMetadata = define[EmptyRequest, BinaryContent]("mcpOAuthMetadata", "/.well-known/oauth-authorization-server", PublicAccess, NoBody, mcpOAuthContentOptions(), "GET")
+var MCPOAuthToken = define[MCPOAuthTokenRequest, BinaryContent]("mcpOAuthToken", "/oauth/mcp/token", PublicAccess, FormBody, mcpOAuthContentOptions(), "POST")
+var MCPOAuthRevoke = define[MCPOAuthTokenRequest, BinaryContent]("mcpOAuthRevoke", "/oauth/mcp/revoke", PublicAccess, FormBody, mcpOAuthContentOptions(), "POST")
+var MCPOAuthAuthorize = define[EmptyRequest, BinaryContent]("mcpOAuthServerAuthorize", "/oauth/mcp/authorize", PublicAccess, NoBody, HTTPContentOptions(HTTPContentVariant{Status: 200, ContentType: "text/html"}, HTTPContentVariant{Status: 302, ContentType: "text/html"}, HTTPContentVariant{Status: 400, ContentType: "text/html"}), "GET")
+var MCPOAuthConsent = define[MCPOAuthConsentRequest, BinaryContent]("mcpOAuthConsent", "/oauth/mcp/consent", PublicAccess, FormBody, HTTPContentOptions(HTTPContentVariant{Status: 302, ContentType: "text/html"}, HTTPContentVariant{Status: 400, ContentType: "text/html"}), "POST")
+var MCPOAuthGet = define[EmptyRequest, MCPOAuthStatus]("mcpOAuthGet", "/api/mcp/getOAuth", AuthenticatedAccess|AdminAccess, NoBody, ResponseOptions{}, "POST")
+var MCPOAuthSet = define[MCPOAuthConfig, Null]("mcpOAuthSet", "/api/mcp/setOAuth", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var MCPOAuthAddClient = define[MCPOAuthClientRequest, MCPOAuthClientSecret]("mcpOAuthAddClient", "/api/mcp/addOAuthClient", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var MCPOAuthRemoveClient = define[MCPOAuthRemoveRequest, Null]("mcpOAuthRemoveClient", "/api/mcp/removeOAuthClient", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
var (
- GetChildBlocks = define[BlockQueryRequest, []*ChildBlock]("getChildBlocks", "/api/block/getChildBlocks", JSONBody, ResponseOptions{NonNullable: true}, "POST")
- GetTailChildBlocks = define[TailChildBlocksRequest, []*ChildBlock]("getTailChildBlocks", "/api/block/getTailChildBlocks", JSONBody, ResponseOptions{NonNullable: true}, "POST")
+ GetChildBlocks = define[BlockQueryRequest, []*ChildBlock]("getChildBlocks", "/api/block/getChildBlocks", AuthenticatedAccess|AdminAccess, JSONBody, ResponseOptions{NonNullable: true}, "POST")
+ GetTailChildBlocks = define[TailChildBlocksRequest, []*ChildBlock]("getTailChildBlocks", "/api/block/getTailChildBlocks", AuthenticatedAccess|AdminAccess, JSONBody, ResponseOptions{NonNullable: true}, "POST")
)
var (
- CheckBlocksExist = define[CheckBlocksExistRequest, map[string]bool]("checkBlocksExist", "/api/block/checkBlocksExist", JSONBody, ResponseOptions{}, "POST")
- GetOrderedListContinueStart = define[BlockQueryRequest, OrderedListStartData]("getOrderedListContinueStart", "/api/block/getOrderedListContinueStart", JSONBody, ResponseOptions{}, "POST")
+ CheckBlocksExist = define[CheckBlocksExistRequest, map[string]bool]("checkBlocksExist", "/api/block/checkBlocksExist", AuthenticatedAccess, JSONBody, ResponseOptions{}, "POST")
+ GetOrderedListContinueStart = define[BlockQueryRequest, OrderedListStartData]("getOrderedListContinueStart", "/api/block/getOrderedListContinueStart", AuthenticatedAccess|AdminAccess, JSONBody, ResponseOptions{}, "POST")
)
var (
- GetContentWordCount = define[ContentWordCountRequest, WordCountData]("getContentWordCount", "/api/block/getContentWordCount", JSONBody, ResponseOptions{}, "POST")
- GetBlocksWordCount = define[BlocksWordCountRequest, WordCountData]("getBlocksWordCount", "/api/block/getBlocksWordCount", JSONBody, ResponseOptions{}, "POST")
+ GetContentWordCount = define[ContentWordCountRequest, WordCountData]("getContentWordCount", "/api/block/getContentWordCount", AuthenticatedAccess, JSONBody, ResponseOptions{}, "POST")
+ GetBlocksWordCount = define[BlocksWordCountRequest, WordCountData]("getBlocksWordCount", "/api/block/getBlocksWordCount", AuthenticatedAccess, JSONBody, ResponseOptions{}, "POST")
)
-var SetNotebookConf = define[SetNotebookConfRequest, *NotebookConf]("setNotebookConf", "/api/notebook/setNotebookConf", JSONBody, ResponseOptions{}, "POST")
+var SetNotebookConf = define[SetNotebookConfRequest, *NotebookConf]("setNotebookConf", "/api/notebook/setNotebookConf", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
-var ReorderNotebooks = define[ReorderNotebooksRequest, *ReorderData]("reorderNotebooks", "/api/notebook/reorder", StructJSONBody, ResponseOptions{DataOnError: true}, "POST")
+var ReorderNotebooks = define[ReorderNotebooksRequest, *ReorderData]("reorderNotebooks", "/api/notebook/reorder", AuthenticatedAccess|AdminAccess|WritableAccess, StructJSONBody, ResponseOptions{DataOnError: true}, "POST")
var (
- OpenNotebook = define[OpenNotebookRequest, Null]("openNotebook", "/api/notebook/openNotebook", JSONBody, ResponseOptions{}, "POST")
- GetNotebookConf = define[CloseNotebookRequest, NotebookConfData]("getNotebookConf", "/api/notebook/getNotebookConf", JSONBody, ResponseOptions{}, "POST")
+ OpenNotebook = define[OpenNotebookRequest, Null]("openNotebook", "/api/notebook/openNotebook", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+ GetNotebookConf = define[CloseNotebookRequest, NotebookConfData]("getNotebookConf", "/api/notebook/getNotebookConf", AuthenticatedAccess, JSONBody, ResponseOptions{}, "POST")
)
-var ImportNotebookCryptoBackup = define[ImportNotebookCryptoBackupRequest, Null]("importNotebookCryptoBackup", "/api/notebook/importNotebookCryptoBackup", MultipartBody, ResponseOptions{}, "POST")
+var ImportNotebookCryptoBackup = define[ImportNotebookCryptoBackupRequest, Null]("importNotebookCryptoBackup", "/api/notebook/importNotebookCryptoBackup", AuthenticatedAccess|AdminAccess|WritableAccess, MultipartBody, ResponseOptions{}, "POST")
var (
- GetNotebookInfo = define[NotebookIDRequest, NotebookInfoData]("getNotebookInfo", "/api/notebook/getNotebookInfo", JSONBody, ResponseOptions{}, "POST")
- GetEncryptedNotebookStatus = define[EmptyRequest, EncryptedNotebookStatusData]("getEncryptedNotebookStatus", "/api/notebook/getEncryptedNotebookStatus", NoBody, ResponseOptions{}, "POST")
+ GetNotebookInfo = define[NotebookIDRequest, NotebookInfoData]("getNotebookInfo", "/api/notebook/getNotebookInfo", AuthenticatedAccess, JSONBody, ResponseOptions{}, "POST")
+ GetEncryptedNotebookStatus = define[EmptyRequest, EncryptedNotebookStatusData]("getEncryptedNotebookStatus", "/api/notebook/getEncryptedNotebookStatus", AuthenticatedAccess|AdminAccess, NoBody, ResponseOptions{}, "POST")
)
var (
- SetNotebookIcon = define[SetNotebookIconRequest, Null]("setNotebookIcon", "/api/notebook/setNotebookIcon", JSONBody, ResponseOptions{}, "POST")
- ChangeSortNotebook = define[ChangeSortNotebookRequest, Null]("changeSortNotebook", "/api/notebook/changeSortNotebook", JSONBody, ResponseOptions{}, "POST")
- RenameNotebook = define[RenameNotebookRequest, Null]("renameNotebook", "/api/notebook/renameNotebook", JSONBody, ResponseOptions{}, "POST")
- RemoveNotebook = define[NotebookIDRequest, Null]("removeNotebook", "/api/notebook/removeNotebook", JSONBody, ResponseOptions{}, "POST")
- CreateNotebook = define[CreateNotebookRequest, CreateNotebookData]("createNotebook", "/api/notebook/createNotebook", JSONBody, ResponseOptions{}, "POST")
- CloseNotebook = define[CloseNotebookRequest, Null]("closeNotebook", "/api/notebook/closeNotebook", JSONBody, ResponseOptions{}, "POST")
+ SetNotebookIcon = define[SetNotebookIconRequest, Null]("setNotebookIcon", "/api/notebook/setNotebookIcon", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+ ChangeSortNotebook = define[ChangeSortNotebookRequest, Null]("changeSortNotebook", "/api/notebook/changeSortNotebook", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+ RenameNotebook = define[RenameNotebookRequest, Null]("renameNotebook", "/api/notebook/renameNotebook", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+ RemoveNotebook = define[NotebookIDRequest, Null]("removeNotebook", "/api/notebook/removeNotebook", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+ CreateNotebook = define[CreateNotebookRequest, CreateNotebookData]("createNotebook", "/api/notebook/createNotebook", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+ CloseNotebook = define[CloseNotebookRequest, Null]("closeNotebook", "/api/notebook/closeNotebook", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
)
var (
- GetPinnedDocs = define[EmptyRequest, []PinnedDoc]("getPinnedDocs", "/api/filetree/getPinnedDocs", NoBody, ResponseOptions{NonNullable: true}, "POST")
- UpdatePinnedDocs = define[UpdatePinnedDocsRequest, Null]("updatePinnedDocs", "/api/filetree/updatePinnedDocs", JSONBody, ResponseOptions{}, "POST")
+ GetPinnedDocs = define[EmptyRequest, []PinnedDoc]("getPinnedDocs", "/api/filetree/getPinnedDocs", AuthenticatedAccess|AdminAccess, NoBody, ResponseOptions{NonNullable: true}, "POST")
+ UpdatePinnedDocs = define[UpdatePinnedDocsRequest, Null]("updatePinnedDocs", "/api/filetree/updatePinnedDocs", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
)
-func define[Request, Data any](name, path string, body BodyMode, response ResponseOptions, methods ...string) Endpoint[Request, Data] {
- d := Definition{Name: name, Path: path, Methods: methods, Body: body,
+func define[Request, Data any](name, path string, authorization Authorization, body BodyMode, response ResponseOptions, methods ...string) Endpoint[Request, Data] {
+ d := Definition{Name: name, Path: path, Methods: methods, Authorization: authorization, Body: body,
Request: reflect.TypeFor[Request](), Data: reflect.TypeFor[Data](),
ErrorCodes: append([]int{-1}, response.AdditionalCodes...), ErrorText: response.Text, DataNonNullable: response.NonNullable, DataOnError: response.DataOnError,
Output: response.Output, ErrorStatus: response.ErrorStatus, NoContent: response.NoContent, WebSocket: response.WebSocket, SSE: response.SSE, Proxy: response.Proxy, PluginService: response.PluginService,
@@ -149,19 +150,19 @@ func (e Endpoint[Request, Data]) Definition() Definition { return e.definition }
func Definitions() []Definition { return append([]Definition(nil), definitions...) }
var (
- Version = define[EmptyRequest, string]("version", "/api/system/version", NoBody, ResponseOptions{}, "GET", "POST")
- GetBlockAttrs = define[BlockIDRequest, map[string]string]("getBlockAttrs", "/api/attr/getBlockAttrs", JSONBody, ResponseOptions{NonNullable: true}, "POST")
- SetBlockAttrs = define[SetBlockAttrsRequest, Null]("setBlockAttrs", "/api/attr/setBlockAttrs", JSONBody, ResponseOptions{}, "POST")
- SearchTag = define[SearchTagRequest, SearchTagData]("searchTag", "/api/search/searchTag", JSONBody, ResponseOptions{}, "POST")
- ListNotebooks = define[ListNotebooksRequest, *ListNotebooksData]("lsNotebooks", "/api/notebook/lsNotebooks", LegacyOptionalBody, ResponseOptions{}, "POST")
- SearchHistory = define[SearchHistoryRequest, SearchHistoryData]("searchHistory", "/api/history/searchHistory", JSONBody, ResponseOptions{}, "POST")
- GetBlockInfo = define[BlockInfoRequest, BlockInfoData]("getBlockInfo", "/api/block/getBlockInfo", JSONBody, ResponseOptions{AdditionalCodes: []int{3}, Text: true}, "POST")
+ Version = define[EmptyRequest, string]("version", "/api/system/version", PublicAccess, NoBody, ResponseOptions{}, "GET", "POST")
+ GetBlockAttrs = define[BlockIDRequest, map[string]string]("getBlockAttrs", "/api/attr/getBlockAttrs", AuthenticatedAccess, JSONBody, ResponseOptions{NonNullable: true}, "POST")
+ SetBlockAttrs = define[SetBlockAttrsRequest, Null]("setBlockAttrs", "/api/attr/setBlockAttrs", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+ SearchTag = define[SearchTagRequest, SearchTagData]("searchTag", "/api/search/searchTag", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+ ListNotebooks = define[ListNotebooksRequest, *ListNotebooksData]("lsNotebooks", "/api/notebook/lsNotebooks", AuthenticatedAccess, LegacyOptionalBody, ResponseOptions{}, "POST")
+ SearchHistory = define[SearchHistoryRequest, SearchHistoryData]("searchHistory", "/api/history/searchHistory", AuthenticatedAccess|AdminAccess, JSONBody, ResponseOptions{}, "POST")
+ GetBlockInfo = define[BlockInfoRequest, BlockInfoData]("getBlockInfo", "/api/block/getBlockInfo", AuthenticatedAccess, JSONBody, ResponseOptions{AdditionalCodes: []int{3}, Text: true}, "POST")
)
var (
- CreateSnapshot = define[CreateSnapshotRequest, CreateSnapshotData]("createSnapshot", "/api/repo/createSnapshot", JSONBody, ResponseOptions{}, "POST")
- CheckSnapshot = define[EmptyRequest, CheckSnapshotData]("checkSnapshot", "/api/repo/checkSnapshot", NoBody, ResponseOptions{}, "POST")
- SetSnapshotMemo = define[SetSnapshotMemoRequest, Null]("setSnapshotMemo", "/api/repo/setSnapshotMemo", JSONBody, ResponseOptions{}, "POST")
+ CreateSnapshot = define[CreateSnapshotRequest, CreateSnapshotData]("createSnapshot", "/api/repo/createSnapshot", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+ CheckSnapshot = define[EmptyRequest, CheckSnapshotData]("checkSnapshot", "/api/repo/checkSnapshot", AuthenticatedAccess|AdminAccess|WritableAccess, NoBody, ResponseOptions{}, "POST")
+ SetSnapshotMemo = define[SetSnapshotMemoRequest, Null]("setSnapshotMemo", "/api/repo/setSnapshotMemo", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
)
type EmptyRequest struct{}
@@ -257,624 +258,624 @@ func (FullBlockInfo) blockInfoData() {}
func (PublishedBlockInfo) blockInfoData() {}
var (
- ClearTempFiles = define[EmptyRequest, Null]("clearTempFiles", "/api/system/clearTempFiles", NoBody, ResponseOptions{}, "POST")
- VacuumDataIndex = define[EmptyRequest, Null]("vacuumDataIndex", "/api/system/vacuumDataIndex", NoBody, ResponseOptions{}, "POST")
- RebuildDataIndex = define[EmptyRequest, Null]("rebuildDataIndex", "/api/system/rebuildDataIndex", NoBody, ResponseOptions{}, "POST")
- IgnoreAddMicrosoftDefenderExclusion = define[EmptyRequest, Null]("ignoreAddMicrosoftDefenderExclusion", "/api/system/ignoreAddMicrosoftDefenderExclusion", NoBody, ResponseOptions{}, "POST")
- AddMicrosoftDefenderExclusion = define[EmptyRequest, Null]("addMicrosoftDefenderExclusion", "/api/system/addMicrosoftDefenderExclusion", NoBody, ResponseOptions{}, "POST")
- GetWorkspaceInfo = define[EmptyRequest, WorkspaceInfoData]("getWorkspaceInfo", "/api/system/getWorkspaceInfo", NoBody, ResponseOptions{}, "POST")
- GetWorkspaceStorage = define[EmptyRequest, WorkspaceStorageData]("getWorkspaceStorage", "/api/system/getWorkspaceStorage", NoBody, ResponseOptions{}, "POST")
- GetNetwork = define[EmptyRequest, NetworkData]("getNetwork", "/api/system/getNetwork", NoBody, ResponseOptions{}, "POST")
- GetRuntimeInfo = define[EmptyRequest, SystemRuntimeInfoData]("getRuntimeInfo", "/api/system/getRuntimeInfo", NoBody, ResponseOptions{}, "POST")
- CurrentTime = define[EmptyRequest, int64]("currentTime", "/api/system/currentTime", NoBody, ResponseOptions{}, "POST")
- BootProgress = define[EmptyRequest, BootProgressData]("bootProgress", "/api/system/bootProgress", NoBody, ResponseOptions{}, "GET", "POST")
- SetFollowSystemLockScreen = define[LockScreenRequest, Null]("setFollowSystemLockScreen", "/api/system/setFollowSystemLockScreen", JSONBody, ResponseOptions{}, "POST")
- SetAutoLaunch = define[AutoLaunchRequest, Null]("setAutoLaunch", "/api/system/setAutoLaunch", JSONBody, ResponseOptions{}, "POST")
- SetDownloadInstallPkg = define[DownloadInstallPkgRequest, Null]("setDownloadInstallPkg", "/api/system/setDownloadInstallPkg", JSONBody, ResponseOptions{}, "POST")
- SetSettingsWindow = define[SettingsWindowRequest, Null]("setSettingsWindow", "/api/system/setSettingsWindow", JSONBody, ResponseOptions{}, "POST")
- SetNetworkServe = define[NetworkServeRequest, Null]("setNetworkServe", "/api/system/setNetworkServe", JSONBody, ResponseOptions{}, "POST")
- SetNetworkServeTLS = define[NetworkServeTLSRequest, Null]("setNetworkServeTLS", "/api/system/setNetworkServeTLS", JSONBody, ResponseOptions{}, "POST")
- SetUpdateChannel = define[UpdateChannelRequest, Null]("setUpdateChannel", "/api/system/setUpdateChannel", JSONBody, ResponseOptions{}, "POST")
- SetNetworkProxy = define[NetworkProxy, Null]("setNetworkProxy", "/api/system/setNetworkProxy", JSONBody, ResponseOptions{}, "POST")
- GetBookmarkLabels = define[EmptyRequest, []string]("getBookmarkLabels", "/api/attr/getBookmarkLabels", NoBody, ResponseOptions{}, "POST")
- BatchGetBlockAttrs = define[BlockIDsRequest, map[string]map[string]string]("batchGetBlockAttrs", "/api/attr/batchGetBlockAttrs", JSONBody, ResponseOptions{NonNullable: true}, "POST")
- GetDOMText = define[DOMTextRequest, string]("getDOMText", "/api/block/getDOMText", JSONBody, ResponseOptions{}, "POST")
- RemoveBookmark = define[RemoveBookmarkRequest, Null]("removeBookmark", "/api/bookmark/removeBookmark", JSONBody, ResponseOptions{}, "POST")
- RenameBookmark = define[RenameBookmarkRequest, Null]("renameBookmark", "/api/bookmark/renameBookmark", JSONBody, ResponseOptions{}, "POST")
- RemoveTag = define[RemoveTagRequest, Null]("removeTag", "/api/tag/removeTag", JSONBody, ResponseOptions{}, "POST")
- RenameTag = define[RenameTagRequest, Null]("renameTag", "/api/tag/renameTag", JSONBody, ResponseOptions{}, "POST")
+ ClearTempFiles = define[EmptyRequest, Null]("clearTempFiles", "/api/system/clearTempFiles", AuthenticatedAccess|AdminAccess|WritableAccess, NoBody, ResponseOptions{}, "POST")
+ VacuumDataIndex = define[EmptyRequest, Null]("vacuumDataIndex", "/api/system/vacuumDataIndex", AuthenticatedAccess|AdminAccess|WritableAccess, NoBody, ResponseOptions{}, "POST")
+ RebuildDataIndex = define[EmptyRequest, Null]("rebuildDataIndex", "/api/system/rebuildDataIndex", AuthenticatedAccess|AdminAccess|WritableAccess, NoBody, ResponseOptions{}, "POST")
+ IgnoreAddMicrosoftDefenderExclusion = define[EmptyRequest, Null]("ignoreAddMicrosoftDefenderExclusion", "/api/system/ignoreAddMicrosoftDefenderExclusion", AuthenticatedAccess|AdminAccess|WritableAccess, NoBody, ResponseOptions{}, "POST")
+ AddMicrosoftDefenderExclusion = define[EmptyRequest, Null]("addMicrosoftDefenderExclusion", "/api/system/addMicrosoftDefenderExclusion", AuthenticatedAccess|AdminAccess|WritableAccess, NoBody, ResponseOptions{}, "POST")
+ GetWorkspaceInfo = define[EmptyRequest, WorkspaceInfoData]("getWorkspaceInfo", "/api/system/getWorkspaceInfo", AuthenticatedAccess|AdminAccess|WritableAccess, NoBody, ResponseOptions{}, "POST")
+ GetWorkspaceStorage = define[EmptyRequest, WorkspaceStorageData]("getWorkspaceStorage", "/api/system/getWorkspaceStorage", AuthenticatedAccess|AdminAccess, NoBody, ResponseOptions{}, "POST")
+ GetNetwork = define[EmptyRequest, NetworkData]("getNetwork", "/api/system/getNetwork", AuthenticatedAccess|AdminAccess, NoBody, ResponseOptions{}, "POST")
+ GetRuntimeInfo = define[EmptyRequest, SystemRuntimeInfoData]("getRuntimeInfo", "/api/system/getRuntimeInfo", AuthenticatedAccess|AdminAccess, NoBody, ResponseOptions{}, "POST")
+ CurrentTime = define[EmptyRequest, int64]("currentTime", "/api/system/currentTime", PublicAccess, NoBody, ResponseOptions{}, "POST")
+ BootProgress = define[EmptyRequest, BootProgressData]("bootProgress", "/api/system/bootProgress", PublicAccess, NoBody, ResponseOptions{}, "GET", "POST")
+ SetFollowSystemLockScreen = define[LockScreenRequest, Null]("setFollowSystemLockScreen", "/api/system/setFollowSystemLockScreen", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+ SetAutoLaunch = define[AutoLaunchRequest, Null]("setAutoLaunch", "/api/system/setAutoLaunch", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+ SetDownloadInstallPkg = define[DownloadInstallPkgRequest, Null]("setDownloadInstallPkg", "/api/system/setDownloadInstallPkg", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+ SetSettingsWindow = define[SettingsWindowRequest, Null]("setSettingsWindow", "/api/system/setSettingsWindow", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+ SetNetworkServe = define[NetworkServeRequest, Null]("setNetworkServe", "/api/system/setNetworkServe", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+ SetNetworkServeTLS = define[NetworkServeTLSRequest, Null]("setNetworkServeTLS", "/api/system/setNetworkServeTLS", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+ SetUpdateChannel = define[UpdateChannelRequest, Null]("setUpdateChannel", "/api/system/setUpdateChannel", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+ SetNetworkProxy = define[NetworkProxy, Null]("setNetworkProxy", "/api/system/setNetworkProxy", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+ GetBookmarkLabels = define[EmptyRequest, []string]("getBookmarkLabels", "/api/attr/getBookmarkLabels", AuthenticatedAccess, NoBody, ResponseOptions{}, "POST")
+ BatchGetBlockAttrs = define[BlockIDsRequest, map[string]map[string]string]("batchGetBlockAttrs", "/api/attr/batchGetBlockAttrs", AuthenticatedAccess, JSONBody, ResponseOptions{NonNullable: true}, "POST")
+ GetDOMText = define[DOMTextRequest, string]("getDOMText", "/api/block/getDOMText", AuthenticatedAccess, JSONBody, ResponseOptions{}, "POST")
+ RemoveBookmark = define[RemoveBookmarkRequest, Null]("removeBookmark", "/api/bookmark/removeBookmark", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+ RenameBookmark = define[RenameBookmarkRequest, Null]("renameBookmark", "/api/bookmark/renameBookmark", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+ RemoveTag = define[RemoveTagRequest, Null]("removeTag", "/api/tag/removeTag", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+ RenameTag = define[RenameTagRequest, Null]("renameTag", "/api/tag/renameTag", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
)
var (
- SetEditorReadOnly = define[EditorReadOnlyRequest, Null]("setEditorReadOnly", "/api/setting/setEditorReadOnly", JSONBody, ResponseOptions{}, "POST")
- AddVirtualBlockRefExclude = define[VirtualBlockRefRequest, Null]("addVirtualBlockRefExclude", "/api/setting/addVirtualBlockRefExclude", JSONBody, ResponseOptions{}, "POST")
- AddVirtualBlockRefInclude = define[VirtualBlockRefRequest, Null]("addVirtualBlockRefInclude", "/api/setting/addVirtualBlockRefInclude", JSONBody, ResponseOptions{}, "POST")
- RefreshVirtualBlockRef = define[EmptyRequest, Null]("refreshVirtualBlockRef", "/api/setting/refreshVirtualBlockRef", NoBody, ResponseOptions{}, "POST")
- GetPandocBin = define[EmptyRequest, string]("getPandocBin", "/api/setting/getPandocBin", NoBody, ResponseOptions{}, "POST")
- ReindexHistory = define[EmptyRequest, Null]("reindexHistory", "/api/history/reindexHistory", NoBody, ResponseOptions{}, "POST")
- ClearWorkspaceHistory = define[EmptyRequest, Null]("clearWorkspaceHistory", "/api/history/clearWorkspaceHistory", NoBody, ResponseOptions{}, "POST")
- BatchSetBlockAttrs = define[BatchSetBlockAttrsRequest, Null]("batchSetBlockAttrs", "/api/attr/batchSetBlockAttrs", JSONBody, ResponseOptions{}, "POST")
- GetTag = define[GetTagRequest, []*TagData]("getTag", "/api/tag/getTag", JSONBody, ResponseOptions{}, "POST")
+ SetEditorReadOnly = define[EditorReadOnlyRequest, Null]("setEditorReadOnly", "/api/setting/setEditorReadOnly", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+ AddVirtualBlockRefExclude = define[VirtualBlockRefRequest, Null]("addVirtualBlockRefExclude", "/api/setting/addVirtualBlockRefExclude", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+ AddVirtualBlockRefInclude = define[VirtualBlockRefRequest, Null]("addVirtualBlockRefInclude", "/api/setting/addVirtualBlockRefInclude", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+ RefreshVirtualBlockRef = define[EmptyRequest, Null]("refreshVirtualBlockRef", "/api/setting/refreshVirtualBlockRef", AuthenticatedAccess|AdminAccess|WritableAccess, NoBody, ResponseOptions{}, "POST")
+ GetPandocBin = define[EmptyRequest, string]("getPandocBin", "/api/setting/getPandocBin", AuthenticatedAccess|AdminAccess, NoBody, ResponseOptions{}, "POST")
+ ReindexHistory = define[EmptyRequest, Null]("reindexHistory", "/api/history/reindexHistory", AuthenticatedAccess|AdminAccess|WritableAccess, NoBody, ResponseOptions{}, "POST")
+ ClearWorkspaceHistory = define[EmptyRequest, Null]("clearWorkspaceHistory", "/api/history/clearWorkspaceHistory", AuthenticatedAccess|AdminAccess|WritableAccess, NoBody, ResponseOptions{}, "POST")
+ BatchSetBlockAttrs = define[BatchSetBlockAttrsRequest, Null]("batchSetBlockAttrs", "/api/attr/batchSetBlockAttrs", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+ GetTag = define[GetTagRequest, []*TagData]("getTag", "/api/tag/getTag", AuthenticatedAccess, JSONBody, ResponseOptions{}, "POST")
)
var (
- GetBlockSiblingID = define[BlockQueryRequest, BlockSiblingData]("getBlockSiblingID", "/api/block/getBlockSiblingID", JSONBody, ResponseOptions{}, "POST")
- GetBlockRelevantIDs = define[BlockQueryRequest, BlockRelevantData]("getBlockRelevantIDs", "/api/block/getBlockRelevantIDs", JSONBody, ResponseOptions{}, "POST")
- GetUnfoldedParentID = define[BlockQueryRequest, UnfoldedParentData]("getUnfoldedParentID", "/api/block/getUnfoldedParentID", JSONBody, ResponseOptions{}, "POST")
- CheckBlockFold = define[BlockQueryRequest, BlockFoldData]("checkBlockFold", "/api/block/checkBlockFold", JSONBody, ResponseOptions{}, "POST")
- CheckBlockExist = define[BlockQueryRequest, bool]("checkBlockExist", "/api/block/checkBlockExist", JSONBody, ResponseOptions{}, "POST")
- GetBlockIndex = define[BlockQueryRequest, int]("getBlockIndex", "/api/block/getBlockIndex", JSONBody, ResponseOptions{}, "POST")
- GetBlocksIndexes = define[BlocksQueryRequest, map[string]int]("getBlocksIndexes", "/api/block/getBlocksIndexes", JSONBody, ResponseOptions{}, "POST")
- GetHeadingChildrenIDs = define[BlockIDRequest, []string]("getHeadingChildrenIDs", "/api/block/getHeadingChildrenIDs", JSONBody, ResponseOptions{}, "POST")
- GetHeadingChildrenDOM = define[HeadingChildrenRequest, string]("getHeadingChildrenDOM", "/api/block/getHeadingChildrenDOM", JSONBody, ResponseOptions{}, "POST")
- AppendHeadingChildren = define[AppendHeadingChildrenRequest, Null]("appendHeadingChildren", "/api/block/appendHeadingChildren", JSONBody, ResponseOptions{}, "POST")
- GetDocBlocksOrders = define[DocOrdersRequest, []string]("getDocBlocksOrders", "/api/block/getDocBlocksOrders", JSONBody, ResponseOptions{}, "POST")
+ GetBlockSiblingID = define[BlockQueryRequest, BlockSiblingData]("getBlockSiblingID", "/api/block/getBlockSiblingID", AuthenticatedAccess, JSONBody, ResponseOptions{}, "POST")
+ GetBlockRelevantIDs = define[BlockQueryRequest, BlockRelevantData]("getBlockRelevantIDs", "/api/block/getBlockRelevantIDs", AuthenticatedAccess, JSONBody, ResponseOptions{}, "POST")
+ GetUnfoldedParentID = define[BlockQueryRequest, UnfoldedParentData]("getUnfoldedParentID", "/api/block/getUnfoldedParentID", AuthenticatedAccess, JSONBody, ResponseOptions{}, "POST")
+ CheckBlockFold = define[BlockQueryRequest, BlockFoldData]("checkBlockFold", "/api/block/checkBlockFold", AuthenticatedAccess, JSONBody, ResponseOptions{}, "POST")
+ CheckBlockExist = define[BlockQueryRequest, bool]("checkBlockExist", "/api/block/checkBlockExist", AuthenticatedAccess, JSONBody, ResponseOptions{}, "POST")
+ GetBlockIndex = define[BlockQueryRequest, int]("getBlockIndex", "/api/block/getBlockIndex", AuthenticatedAccess, JSONBody, ResponseOptions{}, "POST")
+ GetBlocksIndexes = define[BlocksQueryRequest, map[string]int]("getBlocksIndexes", "/api/block/getBlocksIndexes", AuthenticatedAccess, JSONBody, ResponseOptions{}, "POST")
+ GetHeadingChildrenIDs = define[BlockIDRequest, []string]("getHeadingChildrenIDs", "/api/block/getHeadingChildrenIDs", AuthenticatedAccess, JSONBody, ResponseOptions{}, "POST")
+ GetHeadingChildrenDOM = define[HeadingChildrenRequest, string]("getHeadingChildrenDOM", "/api/block/getHeadingChildrenDOM", AuthenticatedAccess, JSONBody, ResponseOptions{}, "POST")
+ AppendHeadingChildren = define[AppendHeadingChildrenRequest, Null]("appendHeadingChildren", "/api/block/appendHeadingChildren", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+ GetDocBlocksOrders = define[DocOrdersRequest, []string]("getDocBlocksOrders", "/api/block/getDocBlocksOrders", AuthenticatedAccess, JSONBody, ResponseOptions{}, "POST")
)
var (
- EnableEncryptedNotebooks = define[NotebookPasswordRequest, Null]("enableEncryptedNotebooks", "/api/notebook/enableEncryptedNotebooks", JSONBody, ResponseOptions{}, "POST")
- DisableEncryptedNotebooks = define[EmptyRequest, Null]("disableEncryptedNotebooks", "/api/notebook/disableEncryptedNotebooks", NoBody, ResponseOptions{}, "POST")
- CreateEncryptedNotebook = define[CreateEncryptedNotebookRequest, CreateNotebookData]("createEncryptedNotebook", "/api/notebook/createEncryptedNotebook", JSONBody, ResponseOptions{}, "POST")
- UnlockNotebook = define[UnlockNotebookRequest, Null]("unlockNotebook", "/api/notebook/unlockNotebook", JSONBody, ResponseOptions{}, "POST")
- UnlockAndOpenNotebook = define[UnlockNotebookRequest, Null]("unlockAndOpenNotebook", "/api/notebook/unlockAndOpenNotebook", JSONBody, ResponseOptions{}, "POST")
- LockNotebook = define[NotebookIDRequest, Null]("lockNotebook", "/api/notebook/lockNotebook", JSONBody, ResponseOptions{}, "POST")
- SetEncryptedNotebookFollowSystemLock = define[EncryptedNotebookFollowSystemLockRequest, Null]("setEncryptedNotebookFollowSystemLock", "/api/notebook/setEncryptedNotebookFollowSystemLock", JSONBody, ResponseOptions{}, "POST")
- LockEncryptedNotebooksOnSystemLock = define[EmptyRequest, Null]("lockEncryptedNotebooksOnSystemLock", "/api/notebook/lockEncryptedNotebooksOnSystemLock", JSONBody, ResponseOptions{}, "POST")
- SetNotebookCryptoAutoLock = define[NotebookCryptoAutoLockRequest, Null]("setNotebookCryptoAutoLock", "/api/notebook/setNotebookCryptoAutoLock", JSONBody, ResponseOptions{}, "POST")
- ChangeMasterPassword = define[ChangeMasterPasswordRequest, Null]("changeMasterPassword", "/api/notebook/changeMasterPassword", JSONBody, ResponseOptions{}, "POST")
- ExportNotebookCryptoBackup = define[EmptyRequest, NotebookCryptoBackupData]("exportNotebookCryptoBackup", "/api/notebook/exportNotebookCryptoBackup", NoBody, ResponseOptions{}, "POST")
- TouchEncryptedNotebooks = define[EmptyRequest, Null]("touchEncryptedNotebooks", "/api/notebook/touchEncryptedNotebooks", NoBody, ResponseOptions{}, "POST")
- GetNotebookArchiveCandidates = define[EmptyRequest, NotebookArchiveCandidatesData]("getNotebookArchiveCandidates", "/api/notebook/getNotebookArchiveCandidates", NoBody, ResponseOptions{}, "POST")
- PrepareNotebookArchive = define[PrepareNotebookArchiveRequest, NotebookArchiveData]("prepareNotebookArchive", "/api/notebook/prepareNotebookArchive", JSONBody, ResponseOptions{}, "POST")
- CommitNotebookArchive = define[CommitNotebookArchiveRequest, Null]("commitNotebookArchive", "/api/notebook/commitNotebookArchive", JSONBody, ResponseOptions{}, "POST")
- ImportNotebookArchive = define[ImportNotebookArchiveRequest, Null]("importNotebookArchive", "/api/notebook/importNotebookArchive", MultipartBody, ResponseOptions{}, "POST")
+ EnableEncryptedNotebooks = define[NotebookPasswordRequest, Null]("enableEncryptedNotebooks", "/api/notebook/enableEncryptedNotebooks", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+ DisableEncryptedNotebooks = define[EmptyRequest, Null]("disableEncryptedNotebooks", "/api/notebook/disableEncryptedNotebooks", AuthenticatedAccess|AdminAccess|WritableAccess, NoBody, ResponseOptions{}, "POST")
+ CreateEncryptedNotebook = define[CreateEncryptedNotebookRequest, CreateNotebookData]("createEncryptedNotebook", "/api/notebook/createEncryptedNotebook", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+ UnlockNotebook = define[UnlockNotebookRequest, Null]("unlockNotebook", "/api/notebook/unlockNotebook", AuthenticatedAccess|AdminAccess, JSONBody, ResponseOptions{}, "POST")
+ UnlockAndOpenNotebook = define[UnlockNotebookRequest, Null]("unlockAndOpenNotebook", "/api/notebook/unlockAndOpenNotebook", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+ LockNotebook = define[NotebookIDRequest, Null]("lockNotebook", "/api/notebook/lockNotebook", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+ SetEncryptedNotebookFollowSystemLock = define[EncryptedNotebookFollowSystemLockRequest, Null]("setEncryptedNotebookFollowSystemLock", "/api/notebook/setEncryptedNotebookFollowSystemLock", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+ LockEncryptedNotebooksOnSystemLock = define[EmptyRequest, Null]("lockEncryptedNotebooksOnSystemLock", "/api/notebook/lockEncryptedNotebooksOnSystemLock", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+ SetNotebookCryptoAutoLock = define[NotebookCryptoAutoLockRequest, Null]("setNotebookCryptoAutoLock", "/api/notebook/setNotebookCryptoAutoLock", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+ ChangeMasterPassword = define[ChangeMasterPasswordRequest, Null]("changeMasterPassword", "/api/notebook/changeMasterPassword", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+ ExportNotebookCryptoBackup = define[EmptyRequest, NotebookCryptoBackupData]("exportNotebookCryptoBackup", "/api/notebook/exportNotebookCryptoBackup", AuthenticatedAccess|AdminAccess|WritableAccess, NoBody, ResponseOptions{}, "POST")
+ TouchEncryptedNotebooks = define[EmptyRequest, Null]("touchEncryptedNotebooks", "/api/notebook/touchEncryptedNotebooks", AuthenticatedAccess|AdminAccess, NoBody, ResponseOptions{}, "POST")
+ GetNotebookArchiveCandidates = define[EmptyRequest, NotebookArchiveCandidatesData]("getNotebookArchiveCandidates", "/api/notebook/getNotebookArchiveCandidates", AuthenticatedAccess|AdminAccess|WritableAccess, NoBody, ResponseOptions{}, "POST")
+ PrepareNotebookArchive = define[PrepareNotebookArchiveRequest, NotebookArchiveData]("prepareNotebookArchive", "/api/notebook/prepareNotebookArchive", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+ CommitNotebookArchive = define[CommitNotebookArchiveRequest, Null]("commitNotebookArchive", "/api/notebook/commitNotebookArchive", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+ ImportNotebookArchive = define[ImportNotebookArchiveRequest, Null]("importNotebookArchive", "/api/notebook/importNotebookArchive", AuthenticatedAccess|AdminAccess|WritableAccess, MultipartBody, ResponseOptions{}, "POST")
)
var (
- GetBlockDOM = define[BlockQueryRequest, BlockDOMData]("getBlockDOM", "/api/block/getBlockDOM", JSONBody, ResponseOptions{}, "POST")
- GetBlockDOMWithEmbed = define[BlockQueryRequest, BlockDOMData]("getBlockDOMWithEmbed", "/api/block/getBlockDOMWithEmbed", JSONBody, ResponseOptions{}, "POST")
- GetBlockDOMs = define[BlocksQueryRequest, map[string]string]("getBlockDOMs", "/api/block/getBlockDOMs", JSONBody, ResponseOptions{}, "POST")
- GetBlockDOMsWithEmbed = define[BlocksQueryRequest, map[string]string]("getBlockDOMsWithEmbed", "/api/block/getBlockDOMsWithEmbed", JSONBody, ResponseOptions{}, "POST")
- GetBlockKramdown = define[BlockKramdownRequest, BlockKramdownData]("getBlockKramdown", "/api/block/getBlockKramdown", JSONBody, ResponseOptions{}, "POST")
- GetBlockKramdowns = define[BlocksKramdownRequest, map[string]string]("getBlockKramdowns", "/api/block/getBlockKramdowns", JSONBody, ResponseOptions{}, "POST")
+ GetBlockDOM = define[BlockQueryRequest, BlockDOMData]("getBlockDOM", "/api/block/getBlockDOM", AuthenticatedAccess, JSONBody, ResponseOptions{}, "POST")
+ GetBlockDOMWithEmbed = define[BlockQueryRequest, BlockDOMData]("getBlockDOMWithEmbed", "/api/block/getBlockDOMWithEmbed", AuthenticatedAccess, JSONBody, ResponseOptions{}, "POST")
+ GetBlockDOMs = define[BlocksQueryRequest, map[string]string]("getBlockDOMs", "/api/block/getBlockDOMs", AuthenticatedAccess, JSONBody, ResponseOptions{}, "POST")
+ GetBlockDOMsWithEmbed = define[BlocksQueryRequest, map[string]string]("getBlockDOMsWithEmbed", "/api/block/getBlockDOMsWithEmbed", AuthenticatedAccess, JSONBody, ResponseOptions{}, "POST")
+ GetBlockKramdown = define[BlockKramdownRequest, BlockKramdownData]("getBlockKramdown", "/api/block/getBlockKramdown", AuthenticatedAccess, JSONBody, ResponseOptions{}, "POST")
+ GetBlockKramdowns = define[BlocksKramdownRequest, map[string]string]("getBlockKramdowns", "/api/block/getBlockKramdowns", AuthenticatedAccess, JSONBody, ResponseOptions{}, "POST")
)
var (
- GetRefText = define[BlockQueryRequest, string]("getRefText", "/api/block/getRefText", JSONBody, ResponseOptions{}, "POST")
- GetRefIDs = define[RefIDsRequest, RefIDsData]("getRefIDs", "/api/block/getRefIDs", JSONBody, ResponseOptions{}, "POST")
- GetRefIDsByFileAnnotationID = define[FileAnnotationRefRequest, RefDefsData]("getRefIDsByFileAnnotationID", "/api/block/getRefIDsByFileAnnotationID", JSONBody, ResponseOptions{}, "POST")
- GetBlockDefIDsByRefText = define[RefTextQueryRequest, RefDefsData]("getBlockDefIDsByRefText", "/api/block/getBlockDefIDsByRefText", JSONBody, ResponseOptions{}, "POST")
+ GetRefText = define[BlockQueryRequest, string]("getRefText", "/api/block/getRefText", AuthenticatedAccess, JSONBody, ResponseOptions{}, "POST")
+ GetRefIDs = define[RefIDsRequest, RefIDsData]("getRefIDs", "/api/block/getRefIDs", AuthenticatedAccess, JSONBody, ResponseOptions{}, "POST")
+ GetRefIDsByFileAnnotationID = define[FileAnnotationRefRequest, RefDefsData]("getRefIDsByFileAnnotationID", "/api/block/getRefIDsByFileAnnotationID", AuthenticatedAccess, JSONBody, ResponseOptions{}, "POST")
+ GetBlockDefIDsByRefText = define[RefTextQueryRequest, RefDefsData]("getBlockDefIDsByRefText", "/api/block/getBlockDefIDsByRefText", AuthenticatedAccess, JSONBody, ResponseOptions{}, "POST")
)
var (
- GetBlockTreeInfos = define[BlocksQueryRequest, map[string]*BlockTreeInfo]("getBlockTreeInfos", "/api/block/getBlockTreeInfos", JSONBody, ResponseOptions{}, "POST")
- GetBlockBreadcrumb = define[BlockBreadcrumbRequest, []*BlockPath]("getBlockBreadcrumb", "/api/block/getBlockBreadcrumb", JSONBody, ResponseOptions{}, "POST")
- GetBlockBreadcrumbChildren = define[BlockBreadcrumbChildrenRequest, *BlockBreadcrumbChildren]("getBlockBreadcrumbChildren", "/api/block/getBlockBreadcrumbChildren", JSONBody, ResponseOptions{}, "POST")
+ GetBlockTreeInfos = define[BlocksQueryRequest, map[string]*BlockTreeInfo]("getBlockTreeInfos", "/api/block/getBlockTreeInfos", AuthenticatedAccess, JSONBody, ResponseOptions{}, "POST")
+ GetBlockBreadcrumb = define[BlockBreadcrumbRequest, []*BlockPath]("getBlockBreadcrumb", "/api/block/getBlockBreadcrumb", AuthenticatedAccess, JSONBody, ResponseOptions{}, "POST")
+ GetBlockBreadcrumbChildren = define[BlockBreadcrumbChildrenRequest, *BlockBreadcrumbChildren]("getBlockBreadcrumbChildren", "/api/block/getBlockBreadcrumbChildren", AuthenticatedAccess, JSONBody, ResponseOptions{}, "POST")
)
-var GetDocInfo = define[BlockQueryRequest, *DocInfo]("getDocInfo", "/api/block/getDocInfo", JSONBody, ResponseOptions{}, "POST")
+var GetDocInfo = define[BlockQueryRequest, *DocInfo]("getDocInfo", "/api/block/getDocInfo", AuthenticatedAccess, JSONBody, ResponseOptions{}, "POST")
-var GetDocsInfo = define[DocsInfoRequest, []*DocInfo]("getDocsInfo", "/api/block/getDocsInfo", JSONBody, ResponseOptions{}, "POST")
+var GetDocsInfo = define[DocsInfoRequest, []*DocInfo]("getDocsInfo", "/api/block/getDocsInfo", AuthenticatedAccess, JSONBody, ResponseOptions{}, "POST")
-var GetTreeStat = define[TreeStatRequest, TreeStatData]("getTreeStat", "/api/block/getTreeStat", JSONBody, ResponseOptions{}, "POST")
+var GetTreeStat = define[TreeStatRequest, TreeStatData]("getTreeStat", "/api/block/getTreeStat", AuthenticatedAccess, JSONBody, ResponseOptions{}, "POST")
-var TransferBlockRef = define[TransferBlockRefRequest, Null]("transferBlockRef", "/api/block/transferBlockRef", JSONBody, ResponseOptions{}, "POST")
+var TransferBlockRef = define[TransferBlockRefRequest, Null]("transferBlockRef", "/api/block/transferBlockRef", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
-var SwapBlockRef = define[SwapBlockRefRequest, Null]("swapBlockRef", "/api/block/swapBlockRef", JSONBody, ResponseOptions{}, "POST")
+var SwapBlockRef = define[SwapBlockRefRequest, Null]("swapBlockRef", "/api/block/swapBlockRef", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
-var SetBlockReminder = define[BlockReminderRequest, Null]("setBlockReminder", "/api/block/setBlockReminder", JSONBody, ResponseOptions{}, "POST")
+var SetBlockReminder = define[BlockReminderRequest, Null]("setBlockReminder", "/api/block/setBlockReminder", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
-var UnfoldBlock = define[BlockIDRequest, Null]("unfoldBlock", "/api/block/unfoldBlock", JSONBody, ResponseOptions{}, "POST")
+var UnfoldBlock = define[BlockIDRequest, Null]("unfoldBlock", "/api/block/unfoldBlock", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
-var FoldBlock = define[BlockIDRequest, Null]("foldBlock", "/api/block/foldBlock", JSONBody, ResponseOptions{}, "POST")
+var FoldBlock = define[BlockIDRequest, Null]("foldBlock", "/api/block/foldBlock", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
// MoveBlock 同步移动块,previousID 优先于 parentID,省略 previousID 时移动到父块开头。
// 成功和主动跳过返回 code=0、data=null;事务校验或提交失败返回 code=-1、data=null 和原因。
-var MoveBlock = define[MoveBlockRequest, Null]("moveBlock", "/api/block/moveBlock", JSONBody, ResponseOptions{}, "POST")
+var MoveBlock = define[MoveBlockRequest, Null]("moveBlock", "/api/block/moveBlock", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
-var GetHeadingDeleteTransaction = define[BlockIDRequest, *BlockTransaction]("getHeadingDeleteTransaction", "/api/block/getHeadingDeleteTransaction", JSONBody, ResponseOptions{}, "POST")
+var GetHeadingDeleteTransaction = define[BlockIDRequest, *BlockTransaction]("getHeadingDeleteTransaction", "/api/block/getHeadingDeleteTransaction", AuthenticatedAccess|AdminAccess, JSONBody, ResponseOptions{}, "POST")
-var GetHeadingInsertTransaction = define[BlockIDRequest, *BlockTransaction]("getHeadingInsertTransaction", "/api/block/getHeadingInsertTransaction", JSONBody, ResponseOptions{}, "POST")
+var GetHeadingInsertTransaction = define[BlockIDRequest, *BlockTransaction]("getHeadingInsertTransaction", "/api/block/getHeadingInsertTransaction", AuthenticatedAccess|AdminAccess, JSONBody, ResponseOptions{}, "POST")
-var GetHeadingFoldTransaction = define[HeadingFoldRequest, *BlockTransaction]("getHeadingFoldTransaction", "/api/block/getHeadingFoldTransaction", JSONBody, ResponseOptions{}, "POST")
+var GetHeadingFoldTransaction = define[HeadingFoldRequest, *BlockTransaction]("getHeadingFoldTransaction", "/api/block/getHeadingFoldTransaction", AuthenticatedAccess|AdminAccess, JSONBody, ResponseOptions{}, "POST")
-var UpdateTaskListItemMarker = define[TaskListMarkerRequest, []*BlockTransaction]("updateTaskListItemMarker", "/api/block/updateTaskListItemMarker", JSONBody, ResponseOptions{}, "POST")
+var UpdateTaskListItemMarker = define[TaskListMarkerRequest, []*BlockTransaction]("updateTaskListItemMarker", "/api/block/updateTaskListItemMarker", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
-var BatchUpdateTaskListItemMarker = define[BatchTaskListMarkerRequest, []*BlockTransaction]("batchUpdateTaskListItemMarker", "/api/block/batchUpdateTaskListItemMarker", JSONBody, ResponseOptions{}, "POST")
+var BatchUpdateTaskListItemMarker = define[BatchTaskListMarkerRequest, []*BlockTransaction]("batchUpdateTaskListItemMarker", "/api/block/batchUpdateTaskListItemMarker", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
-var MoveOutlineHeading = define[MoveBlockRequest, []*BlockTransaction]("moveOutlineHeading", "/api/block/moveOutlineHeading", JSONBody, ResponseOptions{}, "POST")
+var MoveOutlineHeading = define[MoveBlockRequest, []*BlockTransaction]("moveOutlineHeading", "/api/block/moveOutlineHeading", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
-var AppendDailyNoteBlock = define[DailyNoteBlockRequest, []*BlockTransaction]("appendDailyNoteBlock", "/api/block/appendDailyNoteBlock", JSONBody, ResponseOptions{}, "POST")
+var AppendDailyNoteBlock = define[DailyNoteBlockRequest, []*BlockTransaction]("appendDailyNoteBlock", "/api/block/appendDailyNoteBlock", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
-var PrependDailyNoteBlock = define[DailyNoteBlockRequest, []*BlockTransaction]("prependDailyNoteBlock", "/api/block/prependDailyNoteBlock", JSONBody, ResponseOptions{}, "POST")
+var PrependDailyNoteBlock = define[DailyNoteBlockRequest, []*BlockTransaction]("prependDailyNoteBlock", "/api/block/prependDailyNoteBlock", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
-var AppendBlock = define[AppendBlockRequest, []*BlockTransaction]("appendBlock", "/api/block/appendBlock", JSONBody, ResponseOptions{}, "POST")
+var AppendBlock = define[AppendBlockRequest, []*BlockTransaction]("appendBlock", "/api/block/appendBlock", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
-var PrependBlock = define[PrependBlockRequest, []*BlockTransaction]("prependBlock", "/api/block/prependBlock", JSONBody, ResponseOptions{}, "POST")
+var PrependBlock = define[PrependBlockRequest, []*BlockTransaction]("prependBlock", "/api/block/prependBlock", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
-var BatchAppendBlock = define[BatchParentBlockRequest, []*BlockTransaction]("batchAppendBlock", "/api/block/batchAppendBlock", JSONBody, ResponseOptions{}, "POST")
+var BatchAppendBlock = define[BatchParentBlockRequest, []*BlockTransaction]("batchAppendBlock", "/api/block/batchAppendBlock", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
-var BatchPrependBlock = define[BatchParentBlockRequest, []*BlockTransaction]("batchPrependBlock", "/api/block/batchPrependBlock", JSONBody, ResponseOptions{}, "POST")
+var BatchPrependBlock = define[BatchParentBlockRequest, []*BlockTransaction]("batchPrependBlock", "/api/block/batchPrependBlock", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
-var InsertBlock = define[InsertBlockRequest, []*BlockTransaction]("insertBlock", "/api/block/insertBlock", JSONBody, ResponseOptions{}, "POST")
+var InsertBlock = define[InsertBlockRequest, []*BlockTransaction]("insertBlock", "/api/block/insertBlock", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
-var BatchInsertBlock = define[BatchInsertBlockRequest, []*BlockTransaction]("batchInsertBlock", "/api/block/batchInsertBlock", JSONBody, ResponseOptions{}, "POST")
+var BatchInsertBlock = define[BatchInsertBlockRequest, []*BlockTransaction]("batchInsertBlock", "/api/block/batchInsertBlock", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
-var UpdateBlock = define[UpdateBlockRequest, []*BlockTransaction]("updateBlock", "/api/block/updateBlock", JSONBody, ResponseOptions{}, "POST")
+var UpdateBlock = define[UpdateBlockRequest, []*BlockTransaction]("updateBlock", "/api/block/updateBlock", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
-var MigrateLegacyMindmaps = define[MigrateLegacyMindmapsRequest, MigrateLegacyMindmapsData]("migrateLegacyMindmaps", "/api/block/migrateLegacyMindmaps", JSONBody, ResponseOptions{}, "POST")
+var MigrateLegacyMindmaps = define[MigrateLegacyMindmapsRequest, MigrateLegacyMindmapsData]("migrateLegacyMindmaps", "/api/block/migrateLegacyMindmaps", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
-var BatchUpdateBlock = define[BatchUpdateBlockRequest, []*BlockTransaction]("batchUpdateBlock", "/api/block/batchUpdateBlock", JSONBody, ResponseOptions{}, "POST")
+var BatchUpdateBlock = define[BatchUpdateBlockRequest, []*BlockTransaction]("batchUpdateBlock", "/api/block/batchUpdateBlock", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
-var DeleteBlock = define[DeleteBlockRequest, []*BlockTransaction]("deleteBlock", "/api/block/deleteBlock", JSONBody, ResponseOptions{}, "POST")
+var DeleteBlock = define[DeleteBlockRequest, []*BlockTransaction]("deleteBlock", "/api/block/deleteBlock", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
-var CheckBlockRef = define[CheckBlockRefRequest, bool]("checkBlockRef", "/api/block/checkBlockRef", JSONBody, ResponseOptions{DataOnError: true}, "POST")
+var CheckBlockRef = define[CheckBlockRefRequest, bool]("checkBlockRef", "/api/block/checkBlockRef", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{DataOnError: true}, "POST")
-var GetHeadingLevelTransaction = define[HeadingLevelRequest, *BlockTransaction]("getHeadingLevelTransaction", "/api/block/getHeadingLevelTransaction", JSONBody, ResponseOptions{}, "POST")
+var GetHeadingLevelTransaction = define[HeadingLevelRequest, *BlockTransaction]("getHeadingLevelTransaction", "/api/block/getHeadingLevelTransaction", AuthenticatedAccess|AdminAccess, JSONBody, ResponseOptions{}, "POST")
-var GetDocHeadingLevelTransaction = define[DocHeadingLevelRequest, *DocHeadingLevelData]("getDocHeadingLevelTransaction", "/api/block/getDocHeadingLevelTransaction", StructJSONBody, ResponseOptions{}, "POST")
+var GetDocHeadingLevelTransaction = define[DocHeadingLevelRequest, *DocHeadingLevelData]("getDocHeadingLevelTransaction", "/api/block/getDocHeadingLevelTransaction", AuthenticatedAccess|AdminAccess|WritableAccess, StructJSONBody, ResponseOptions{}, "POST")
-var GetRecentUpdatedBlocks = define[EmptyRequest, []*SearchBlock]("getRecentUpdatedBlocks", "/api/block/getRecentUpdatedBlocks", NoBody, ResponseOptions{}, "POST")
+var GetRecentUpdatedBlocks = define[EmptyRequest, []*SearchBlock]("getRecentUpdatedBlocks", "/api/block/getRecentUpdatedBlocks", AuthenticatedAccess, NoBody, ResponseOptions{}, "POST")
-var Zip = define[ZipRequest, Null]("zip", "/api/archive/zip", JSONBody, ResponseOptions{}, "POST")
-var Unzip = define[UnzipRequest, Null]("unzip", "/api/archive/unzip", JSONBody, ResponseOptions{}, "POST")
-var AutoSpace = define[TrimmedIDRequest, Null]("autoSpace", "/api/format/autoSpace", JSONBody, ResponseOptions{}, "POST")
-var NetAssets2LocalAssets = define[TrimmedIDRequest, Null]("netAssets2LocalAssets", "/api/format/netAssets2LocalAssets", JSONBody, ResponseOptions{}, "POST")
-var NetImg2LocalAssets = define[NetImageAssetsRequest, Null]("netImg2LocalAssets", "/api/format/netImg2LocalAssets", JSONBody, ResponseOptions{}, "POST")
-var PushMsg = define[NotificationRequest, NotificationData]("pushMsg", "/api/notification/pushMsg", JSONBody, ResponseOptions{}, "POST")
-var PushErrMsg = define[NotificationRequest, NotificationData]("pushErrMsg", "/api/notification/pushErrMsg", JSONBody, ResponseOptions{}, "POST")
-var GetBookmark = define[EmptyRequest, []*Bookmark]("getBookmark", "/api/bookmark/getBookmark", NoBody, ResponseOptions{}, "POST")
-var GetSnippet = define[GetSnippetRequest, SnippetsData]("getSnippet", "/api/snippet/getSnippet", JSONBody, ResponseOptions{}, "POST")
-var SetSnippet = define[SetSnippetRequest, Null]("setSnippet", "/api/snippet/setSnippet", JSONBody, ResponseOptions{}, "POST")
-var RemoveSnippet = define[TrimmedIDRequest, *Snippet]("removeSnippet", "/api/snippet/removeSnippet", JSONBody, ResponseOptions{}, "POST")
-var FlushTransaction = define[EmptyRequest, Null]("flushTransaction", "/api/sqlite/flushTransaction", NoBody, ResponseOptions{}, "POST")
-var CopyStdMarkdown = define[CopyStdMarkdownRequest, string]("copyStdMarkdown", "/api/lute/copyStdMarkdown", JSONBody, ResponseOptions{}, "POST")
-var Md2HTML = define[MarkdownHTMLRequest, HTMLData]("md2HTML", "/api/lute/md2html", JSONBody, ResponseOptions{}, "POST")
-var SpinBlockDOM = define[DOMTextRequest, DOMData]("spinBlockDOM", "/api/lute/spinBlockDOM", JSONBody, ResponseOptions{AdditionalCodes: []int{413}}, "POST")
+var Zip = define[ZipRequest, Null]("zip", "/api/archive/zip", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var Unzip = define[UnzipRequest, Null]("unzip", "/api/archive/unzip", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var AutoSpace = define[TrimmedIDRequest, Null]("autoSpace", "/api/format/autoSpace", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var NetAssets2LocalAssets = define[TrimmedIDRequest, Null]("netAssets2LocalAssets", "/api/format/netAssets2LocalAssets", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var NetImg2LocalAssets = define[NetImageAssetsRequest, Null]("netImg2LocalAssets", "/api/format/netImg2LocalAssets", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var PushMsg = define[NotificationRequest, NotificationData]("pushMsg", "/api/notification/pushMsg", AuthenticatedAccess|AdminAccess, JSONBody, ResponseOptions{}, "POST")
+var PushErrMsg = define[NotificationRequest, NotificationData]("pushErrMsg", "/api/notification/pushErrMsg", AuthenticatedAccess|AdminAccess, JSONBody, ResponseOptions{}, "POST")
+var GetBookmark = define[EmptyRequest, []*Bookmark]("getBookmark", "/api/bookmark/getBookmark", AuthenticatedAccess, NoBody, ResponseOptions{}, "POST")
+var GetSnippet = define[GetSnippetRequest, SnippetsData]("getSnippet", "/api/snippet/getSnippet", AuthenticatedAccess, JSONBody, ResponseOptions{}, "POST")
+var SetSnippet = define[SetSnippetRequest, Null]("setSnippet", "/api/snippet/setSnippet", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var RemoveSnippet = define[TrimmedIDRequest, *Snippet]("removeSnippet", "/api/snippet/removeSnippet", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var FlushTransaction = define[EmptyRequest, Null]("flushTransaction", "/api/sqlite/flushTransaction", AuthenticatedAccess|AdminAccess|WritableAccess, NoBody, ResponseOptions{}, "POST")
+var CopyStdMarkdown = define[CopyStdMarkdownRequest, string]("copyStdMarkdown", "/api/lute/copyStdMarkdown", AuthenticatedAccess, JSONBody, ResponseOptions{}, "POST")
+var Md2HTML = define[MarkdownHTMLRequest, HTMLData]("md2HTML", "/api/lute/md2html", AuthenticatedAccess, JSONBody, ResponseOptions{}, "POST")
+var SpinBlockDOM = define[DOMTextRequest, DOMData]("spinBlockDOM", "/api/lute/spinBlockDOM", AuthenticatedAccess|AdminAccess, JSONBody, ResponseOptions{AdditionalCodes: []int{413}}, "POST")
-var ReloadTag = define[EmptyRequest, Null]("reloadTag", "/api/ui/reloadTag", NoBody, ResponseOptions{}, "POST")
-var ReloadFiletree = define[EmptyRequest, Null]("reloadFiletree", "/api/ui/reloadFiletree", NoBody, ResponseOptions{}, "POST")
-var ReloadProtyle = define[BlockIDRequest, Null]("reloadProtyle", "/api/ui/reloadProtyle", JSONBody, ResponseOptions{}, "POST")
-var ReloadAttributeView = define[BlockIDRequest, Null]("reloadAttributeView", "/api/ui/reloadAttributeView", JSONBody, ResponseOptions{}, "POST")
-var ReloadUI = define[EmptyRequest, Null]("reloadUI", "/api/ui/reloadUI", NoBody, ResponseOptions{}, "POST")
-var ReloadIcon = define[EmptyRequest, Null]("reloadIcon", "/api/ui/reloadIcon", NoBody, ResponseOptions{}, "POST")
-var ReloadTheme = define[EmptyRequest, Null]("reloadTheme", "/api/ui/reloadTheme", NoBody, ResponseOptions{}, "POST")
+var ReloadTag = define[EmptyRequest, Null]("reloadTag", "/api/ui/reloadTag", AuthenticatedAccess|AdminAccess|WritableAccess, NoBody, ResponseOptions{}, "POST")
+var ReloadFiletree = define[EmptyRequest, Null]("reloadFiletree", "/api/ui/reloadFiletree", AuthenticatedAccess|AdminAccess|WritableAccess, NoBody, ResponseOptions{}, "POST")
+var ReloadProtyle = define[BlockIDRequest, Null]("reloadProtyle", "/api/ui/reloadProtyle", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var ReloadAttributeView = define[BlockIDRequest, Null]("reloadAttributeView", "/api/ui/reloadAttributeView", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var ReloadUI = define[EmptyRequest, Null]("reloadUI", "/api/ui/reloadUI", AuthenticatedAccess|AdminAccess|WritableAccess, NoBody, ResponseOptions{}, "POST")
+var ReloadIcon = define[EmptyRequest, Null]("reloadIcon", "/api/ui/reloadIcon", AuthenticatedAccess|AdminAccess|WritableAccess, NoBody, ResponseOptions{}, "POST")
+var ReloadTheme = define[EmptyRequest, Null]("reloadTheme", "/api/ui/reloadTheme", AuthenticatedAccess|AdminAccess|WritableAccess, NoBody, ResponseOptions{}, "POST")
-var GetLocalStorage = define[EmptyRequest, map[string]JSONValue]("getLocalStorage", "/api/storage/getLocalStorage", NoBody, ResponseOptions{}, "POST")
-var GetLocalStorageVal = define[StorageKeyRequest, JSONValue]("getLocalStorageVal", "/api/storage/getLocalStorageVal", JSONBody, ResponseOptions{}, "POST")
-var GetLocalStorageVals = define[StorageKeysRequest, map[string]JSONValue]("getLocalStorageVals", "/api/storage/getLocalStorageVals", JSONBody, ResponseOptions{}, "POST")
-var SetLocalStorageVal = define[StorageSetRequest, Null]("setLocalStorageVal", "/api/storage/setLocalStorageVal", JSONBody, ResponseOptions{}, "POST")
-var SetLocalStorageVals = define[StorageSetKeysRequest, Null]("setLocalStorageVals", "/api/storage/setLocalStorageVals", JSONBody, ResponseOptions{}, "POST")
-var RemoveLocalStorageVal = define[StorageRemoveRequest, Null]("removeLocalStorageVal", "/api/storage/removeLocalStorageVal", JSONBody, ResponseOptions{}, "POST")
-var RemoveLocalStorageVals = define[StorageRemoveKeysRequest, Null]("removeLocalStorageVals", "/api/storage/removeLocalStorageVals", JSONBody, ResponseOptions{}, "POST")
-var GetOutlineStorage = define[OutlineStorageRequest, map[string]JSONValue]("getOutlineStorage", "/api/storage/getOutlineStorage", JSONBody, ResponseOptions{}, "POST")
-var SetOutlineStorage = define[OutlineStorageSetRequest, Null]("setOutlineStorage", "/api/storage/setOutlineStorage", JSONBody, ResponseOptions{}, "POST")
-var RemoveOutlineStorage = define[OutlineStorageRequest, Null]("removeOutlineStorage", "/api/storage/removeOutlineStorage", JSONBody, ResponseOptions{}, "POST")
-var GetViewState = define[StorageKeyRequest, map[string]JSONValue]("getViewState", "/api/storage/getViewState", JSONBody, ResponseOptions{}, "POST")
-var PatchViewState = define[ViewStatePatchRequest, map[string]JSONValue]("patchViewState", "/api/storage/patchViewState", JSONBody, ResponseOptions{}, "POST")
-var RemoveViewState = define[StorageKeyRequest, Null]("removeViewState", "/api/storage/removeViewState", JSONBody, ResponseOptions{}, "POST")
-var GetRecentDocs = define[RecentDocsRequest, []*RecentDoc]("getRecentDocs", "/api/storage/getRecentDocs", LegacyOptionalBody, ResponseOptions{}, "POST")
+var GetLocalStorage = define[EmptyRequest, map[string]JSONValue]("getLocalStorage", "/api/storage/getLocalStorage", AuthenticatedAccess, NoBody, ResponseOptions{}, "POST")
+var GetLocalStorageVal = define[StorageKeyRequest, JSONValue]("getLocalStorageVal", "/api/storage/getLocalStorageVal", AuthenticatedAccess, JSONBody, ResponseOptions{}, "POST")
+var GetLocalStorageVals = define[StorageKeysRequest, map[string]JSONValue]("getLocalStorageVals", "/api/storage/getLocalStorageVals", AuthenticatedAccess, JSONBody, ResponseOptions{}, "POST")
+var SetLocalStorageVal = define[StorageSetRequest, Null]("setLocalStorageVal", "/api/storage/setLocalStorageVal", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var SetLocalStorageVals = define[StorageSetKeysRequest, Null]("setLocalStorageVals", "/api/storage/setLocalStorageVals", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var RemoveLocalStorageVal = define[StorageRemoveRequest, Null]("removeLocalStorageVal", "/api/storage/removeLocalStorageVal", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var RemoveLocalStorageVals = define[StorageRemoveKeysRequest, Null]("removeLocalStorageVals", "/api/storage/removeLocalStorageVals", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var GetOutlineStorage = define[OutlineStorageRequest, map[string]JSONValue]("getOutlineStorage", "/api/storage/getOutlineStorage", AuthenticatedAccess|AdminAccess, JSONBody, ResponseOptions{}, "POST")
+var SetOutlineStorage = define[OutlineStorageSetRequest, Null]("setOutlineStorage", "/api/storage/setOutlineStorage", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var RemoveOutlineStorage = define[OutlineStorageRequest, Null]("removeOutlineStorage", "/api/storage/removeOutlineStorage", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var GetViewState = define[StorageKeyRequest, map[string]JSONValue]("getViewState", "/api/storage/getViewState", AuthenticatedAccess|AdminAccess, JSONBody, ResponseOptions{}, "POST")
+var PatchViewState = define[ViewStatePatchRequest, map[string]JSONValue]("patchViewState", "/api/storage/patchViewState", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var RemoveViewState = define[StorageKeyRequest, Null]("removeViewState", "/api/storage/removeViewState", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var GetRecentDocs = define[RecentDocsRequest, []*RecentDoc]("getRecentDocs", "/api/storage/getRecentDocs", AuthenticatedAccess, LegacyOptionalBody, ResponseOptions{}, "POST")
-var ResetBlockAttrs = define[EmptyRequest, Null]("resetBlockAttrs", "/api/attr/resetBlockAttrs", NoBody, ResponseOptions{}, "POST")
-var SearchAttributeViewNonRelationKey = define[EmptyRequest, Null]("searchAttributeViewNonRelationKey", "/api/av/searchAttributeViewNonRelationKey", NoBody, ResponseOptions{}, "POST")
-var SetLocalStorage = define[EmptyRequest, Null]("setLocalStorage", "/api/storage/setLocalStorage", NoBody, ResponseOptions{}, "POST")
-var DeprecatedReloadUI = define[EmptyRequest, Null]("deprecatedReloadUI", "/api/system/reloadUI", NoBody, ResponseOptions{}, "POST")
+var ResetBlockAttrs = define[EmptyRequest, Null]("resetBlockAttrs", "/api/attr/resetBlockAttrs", AuthenticatedAccess|AdminAccess|WritableAccess, NoBody, ResponseOptions{}, "POST")
+var SearchAttributeViewNonRelationKey = define[EmptyRequest, Null]("searchAttributeViewNonRelationKey", "/api/av/searchAttributeViewNonRelationKey", AuthenticatedAccess|AdminAccess|WritableAccess, NoBody, ResponseOptions{}, "POST")
+var SetLocalStorage = define[EmptyRequest, Null]("setLocalStorage", "/api/storage/setLocalStorage", AuthenticatedAccess|AdminAccess|WritableAccess, NoBody, ResponseOptions{}, "POST")
+var DeprecatedReloadUI = define[EmptyRequest, Null]("deprecatedReloadUI", "/api/system/reloadUI", AuthenticatedAccess|AdminAccess|WritableAccess, NoBody, ResponseOptions{}, "POST")
-var GetCriteria = define[EmptyRequest, []*Criterion]("getCriteria", "/api/storage/getCriteria", NoBody, ResponseOptions{}, "POST")
-var SetCriterion = define[SetCriterionRequest, Null]("setCriterion", "/api/storage/setCriterion", JSONBody, ResponseOptions{}, "POST")
-var RemoveCriterion = define[RemoveCriterionRequest, Null]("removeCriterion", "/api/storage/removeCriterion", JSONBody, ResponseOptions{}, "POST")
+var GetCriteria = define[EmptyRequest, []*Criterion]("getCriteria", "/api/storage/getCriteria", AuthenticatedAccess, NoBody, ResponseOptions{}, "POST")
+var SetCriterion = define[SetCriterionRequest, Null]("setCriterion", "/api/storage/setCriterion", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var RemoveCriterion = define[RemoveCriterionRequest, Null]("removeCriterion", "/api/storage/removeCriterion", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
-var UpdateRecentDocOpenTime = define[RecentDocUpdateRequest, Null]("updateRecentDocOpenTime", "/api/storage/updateRecentDocOpenTime", JSONBody, ResponseOptions{}, "POST")
-var UpdateRecentDocViewTime = define[RecentDocUpdateRequest, Null]("updateRecentDocViewTime", "/api/storage/updateRecentDocViewTime", JSONBody, ResponseOptions{}, "POST")
-var UpdateRecentDocCloseTime = define[RecentDocUpdateRequest, Null]("updateRecentDocCloseTime", "/api/storage/updateRecentDocCloseTime", JSONBody, ResponseOptions{}, "POST")
-var BatchUpdateRecentDocCloseTime = define[RecentDocsUpdateRequest, Null]("batchUpdateRecentDocCloseTime", "/api/storage/batchUpdateRecentDocCloseTime", JSONBody, ResponseOptions{}, "POST")
+var UpdateRecentDocOpenTime = define[RecentDocUpdateRequest, Null]("updateRecentDocOpenTime", "/api/storage/updateRecentDocOpenTime", AuthenticatedAccess, JSONBody, ResponseOptions{}, "POST")
+var UpdateRecentDocViewTime = define[RecentDocUpdateRequest, Null]("updateRecentDocViewTime", "/api/storage/updateRecentDocViewTime", AuthenticatedAccess, JSONBody, ResponseOptions{}, "POST")
+var UpdateRecentDocCloseTime = define[RecentDocUpdateRequest, Null]("updateRecentDocCloseTime", "/api/storage/updateRecentDocCloseTime", AuthenticatedAccess, JSONBody, ResponseOptions{}, "POST")
+var BatchUpdateRecentDocCloseTime = define[RecentDocsUpdateRequest, Null]("batchUpdateRecentDocCloseTime", "/api/storage/batchUpdateRecentDocCloseTime", AuthenticatedAccess, JSONBody, ResponseOptions{}, "POST")
-var GetDocOutline = define[OutlineRequest, []*SearchPath]("getDocOutline", "/api/outline/getDocOutline", JSONBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
-var GetDocHeadingNumbers = define[HeadingNumbersRequest, map[string]string]("getDocHeadingNumbers", "/api/outline/getDocHeadingNumbers", JSONBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
+var GetDocOutline = define[OutlineRequest, []*SearchPath]("getDocOutline", "/api/outline/getDocOutline", AuthenticatedAccess, JSONBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
+var GetDocHeadingNumbers = define[HeadingNumbersRequest, map[string]string]("getDocHeadingNumbers", "/api/outline/getDocHeadingNumbers", AuthenticatedAccess, JSONBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
-var GetInlineStyles = define[EmptyRequest, *InlineStyles]("getInlineStyles", "/api/storage/getInlineStyles", NoBody, ResponseOptions{}, "POST")
-var SetInlineStyles = define[SetInlineStylesRequest, *InlineStyles]("setInlineStyles", "/api/storage/setInlineStyles", JSONBody, ResponseOptions{}, "POST")
-var SetWorkspaceAVPalette = define[WorkspaceAVPaletteRequest, *InlineStyles]("setWorkspaceAVPalette", "/api/storage/setWorkspaceAVPalette", JSONBody, ResponseOptions{}, "POST")
+var GetInlineStyles = define[EmptyRequest, *InlineStyles]("getInlineStyles", "/api/storage/getInlineStyles", AuthenticatedAccess, NoBody, ResponseOptions{}, "POST")
+var SetInlineStyles = define[SetInlineStylesRequest, *InlineStyles]("setInlineStyles", "/api/storage/setInlineStyles", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var SetWorkspaceAVPalette = define[WorkspaceAVPaletteRequest, *InlineStyles]("setWorkspaceAVPalette", "/api/storage/setWorkspaceAVPalette", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
-var HTML2BlockDOM = define[HTMLClipboardRequest, HTMLClipboardData]("html2BlockDOM", "/api/lute/html2BlockDOM", JSONBody, ResponseOptions{}, "POST")
+var HTML2BlockDOM = define[HTMLClipboardRequest, HTMLClipboardData]("html2BlockDOM", "/api/lute/html2BlockDOM", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
-var WPSPresentation2BlockDOM = define[WPSPresentationRequest, WPSPresentationData]("wpsPresentation2BlockDOM", "/api/lute/wpsPresentation2BlockDOM", JSONBody, ResponseOptions{DataOnError: true}, "POST")
+var WPSPresentation2BlockDOM = define[WPSPresentationRequest, WPSPresentationData]("wpsPresentation2BlockDOM", "/api/lute/wpsPresentation2BlockDOM", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{DataOnError: true}, "POST")
-var LoadPetals = define[LoadPetalsRequest, []*Petal]("loadPetals", "/api/petal/loadPetals", JSONBody, ResponseOptions{}, "POST")
+var LoadPetals = define[LoadPetalsRequest, []*Petal]("loadPetals", "/api/petal/loadPetals", AuthenticatedAccess, JSONBody, ResponseOptions{}, "POST")
-var SetPetalEnabled = define[SetPetalEnabledRequest, *Petal]("setPetalEnabled", "/api/petal/setPetalEnabled", JSONBody, ResponseOptions{}, "POST")
+var SetPetalEnabled = define[SetPetalEnabledRequest, *Petal]("setPetalEnabled", "/api/petal/setPetalEnabled", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
-var SetPetalPublishEnabled = define[SetPetalPublishEnabledRequest, *Petal]("setPetalPublishEnabled", "/api/petal/setPetalPublishEnabled", JSONBody, ResponseOptions{}, "POST")
+var SetPetalPublishEnabled = define[SetPetalPublishEnabledRequest, *Petal]("setPetalPublishEnabled", "/api/petal/setPetalPublishEnabled", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
-var GetPluginPublishInfo = define[PluginPublishRequest, PluginPublishInfo]("getPluginPublishInfo", "/api/petal/getPluginPublishInfo", JSONBody, ResponseOptions{AdditionalCodes: []int{400, 403, 500}}, "POST")
-var SetPluginPublishDataGrant = define[SetPluginPublishDataGrantRequest, Null]("setPluginPublishDataGrant", "/api/petal/setPluginPublishDataGrant", JSONBody, ResponseOptions{AdditionalCodes: []int{400, 403, 500}}, "POST")
-var SavePluginPublishData = define[SavePluginPublishDataRequest, Null]("savePluginPublishData", "/api/petal/savePluginPublishData", JSONBody, ResponseOptions{AdditionalCodes: []int{400, 403, 500}}, "POST")
-var LoadPluginPublishData = define[PluginPublishRequest, map[string]PublishDataValue]("loadPluginPublishData", "/api/petal/loadPluginPublishData", JSONBody, ResponseOptions{NonNullable: true, AdditionalCodes: []int{400, 403, 404, 500}}, "POST")
+var GetPluginPublishInfo = define[PluginPublishRequest, PluginPublishInfo]("getPluginPublishInfo", "/api/petal/getPluginPublishInfo", AuthenticatedAccess|AdminAccess, JSONBody, ResponseOptions{AdditionalCodes: []int{400, 403, 500}}, "POST")
+var SetPluginPublishDataGrant = define[SetPluginPublishDataGrantRequest, Null]("setPluginPublishDataGrant", "/api/petal/setPluginPublishDataGrant", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{AdditionalCodes: []int{400, 403, 500}}, "POST")
+var SavePluginPublishData = define[SavePluginPublishDataRequest, Null]("savePluginPublishData", "/api/petal/savePluginPublishData", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{AdditionalCodes: []int{400, 403, 500}}, "POST")
+var LoadPluginPublishData = define[PluginPublishRequest, map[string]PublishDataValue]("loadPluginPublishData", "/api/petal/loadPluginPublishData", AuthenticatedAccess, JSONBody, ResponseOptions{NonNullable: true, AdditionalCodes: []int{400, 403, 404, 500}}, "POST")
-var Pandoc = define[PandocRequest, PandocData]("pandoc", "/api/convert/pandoc", JSONBody, ResponseOptions{}, "POST")
+var Pandoc = define[PandocRequest, PandocData]("pandoc", "/api/convert/pandoc", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
-var PostBroadcastMessage = define[BroadcastMessageRequest, BroadcastChannelData]("postMessage", "/api/broadcast/postMessage", JSONBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
+var PostBroadcastMessage = define[BroadcastMessageRequest, BroadcastChannelData]("postMessage", "/api/broadcast/postMessage", AuthenticatedAccess|AdminAccess, JSONBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
-var GetBroadcastChannelInfo = define[BroadcastChannelRequest, BroadcastChannelData]("getChannelInfo", "/api/broadcast/getChannelInfo", JSONBody, ResponseOptions{}, "POST")
+var GetBroadcastChannelInfo = define[BroadcastChannelRequest, BroadcastChannelData]("getChannelInfo", "/api/broadcast/getChannelInfo", AuthenticatedAccess|AdminAccess, JSONBody, ResponseOptions{}, "POST")
-var GetBroadcastChannels = define[EmptyRequest, BroadcastChannelsData]("getChannels", "/api/broadcast/getChannels", NoBody, ResponseOptions{}, "POST")
+var GetBroadcastChannels = define[EmptyRequest, BroadcastChannelsData]("getChannels", "/api/broadcast/getChannels", AuthenticatedAccess|AdminAccess, NoBody, ResponseOptions{}, "POST")
-var BroadcastPublish = define[MultipartFields, BroadcastPublishData]("broadcastPublish", "/api/broadcast/publish", MultipartBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
+var BroadcastPublish = define[MultipartFields, BroadcastPublishData]("broadcastPublish", "/api/broadcast/publish", AuthenticatedAccess|AdminAccess, MultipartBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
-var SetCloudReminder = define[CloudReminderRequest, Null]("setCloudReminder", "/api/cloud/setCloudReminder", JSONBody, ResponseOptions{}, "POST")
-var GetCloudSpace = define[EmptyRequest, CloudSpaceData]("getCloudSpace", "/api/cloud/getCloudSpace", NoBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
+var SetCloudReminder = define[CloudReminderRequest, Null]("setCloudReminder", "/api/cloud/setCloudReminder", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var GetCloudSpace = define[EmptyRequest, CloudSpaceData]("getCloudSpace", "/api/cloud/getCloudSpace", AuthenticatedAccess|AdminAccess, NoBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
-var RemoveShorthands = define[RemoveShorthandsRequest, Null]("removeShorthands", "/api/inbox/removeShorthands", JSONBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
-var GetShorthand = define[TrimmedIDRequest, *Shorthand]("getShorthand", "/api/inbox/getShorthand", JSONBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
-var GetShorthands = define[ShorthandsRequest, *ShorthandsData]("getShorthands", "/api/inbox/getShorthands", JSONBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
+var RemoveShorthands = define[RemoveShorthandsRequest, Null]("removeShorthands", "/api/inbox/removeShorthands", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
+var GetShorthand = define[TrimmedIDRequest, *Shorthand]("getShorthand", "/api/inbox/getShorthand", AuthenticatedAccess|AdminAccess, JSONBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
+var GetShorthands = define[ShorthandsRequest, *ShorthandsData]("getShorthands", "/api/inbox/getShorthands", AuthenticatedAccess|AdminAccess, JSONBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
-var ReadClipboardFilePaths = define[EmptyRequest, []ClipboardFile]("readFilePaths", "/api/clipboard/readFilePaths", NoBody, ResponseOptions{NonNullable: true}, "POST")
-var WriteClipboardFilePath = define[ClipboardPathRequest, Null]("writeFilePath", "/api/clipboard/writeFilePath", JSONBody, ResponseOptions{}, "POST")
-var PrepareRichText = define[PrepareRichTextRequest, *RichClipboardPrepared]("prepareRichText", "/api/clipboard/prepareRichText", JSONBody, ResponseOptions{}, "POST")
-var PreparePasteAssets = define[PreparePasteAssetsRequest, map[string]string]("preparePasteAssets", "/api/clipboard/preparePasteAssets", JSONBody, ResponseOptions{NonNullable: true}, "POST")
-var CleanupRichText = define[CleanupRichTextRequest, Null]("cleanupRichText", "/api/clipboard/cleanupRichText", JSONBody, ResponseOptions{}, "POST")
+var ReadClipboardFilePaths = define[EmptyRequest, []ClipboardFile]("readFilePaths", "/api/clipboard/readFilePaths", AuthenticatedAccess|AdminAccess, NoBody, ResponseOptions{NonNullable: true}, "POST")
+var WriteClipboardFilePath = define[ClipboardPathRequest, Null]("writeFilePath", "/api/clipboard/writeFilePath", AuthenticatedAccess|AdminAccess, JSONBody, ResponseOptions{}, "POST")
+var PrepareRichText = define[PrepareRichTextRequest, *RichClipboardPrepared]("prepareRichText", "/api/clipboard/prepareRichText", AuthenticatedAccess|AdminAccess, JSONBody, ResponseOptions{}, "POST")
+var PreparePasteAssets = define[PreparePasteAssetsRequest, map[string]string]("preparePasteAssets", "/api/clipboard/preparePasteAssets", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{NonNullable: true}, "POST")
+var CleanupRichText = define[CleanupRichTextRequest, Null]("cleanupRichText", "/api/clipboard/cleanupRichText", AuthenticatedAccess|AdminAccess, JSONBody, ResponseOptions{}, "POST")
-var StartFreeTrial = define[EmptyRequest, Null]("startFreeTrial", "/api/account/startFreeTrial", NoBody, ResponseOptions{}, "POST")
+var StartFreeTrial = define[EmptyRequest, Null]("startFreeTrial", "/api/account/startFreeTrial", AuthenticatedAccess|AdminAccess|WritableAccess, NoBody, ResponseOptions{}, "POST")
-var UseActivationCode = define[ActivationCodeRequest, Null]("useActivationcode", "/api/account/useActivationcode", JSONBody, ResponseOptions{}, "POST")
+var UseActivationCode = define[ActivationCodeRequest, Null]("useActivationcode", "/api/account/useActivationcode", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
-var CheckActivationCode = define[CheckActivationCodeRequest, Null]("checkActivationcode", "/api/account/checkActivationcode", JSONBody, ResponseOptions{AdditionalCodes: []int{1}, DataOnError: true}, "POST")
+var CheckActivationCode = define[CheckActivationCodeRequest, Null]("checkActivationcode", "/api/account/checkActivationcode", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{AdditionalCodes: []int{1}, DataOnError: true}, "POST")
-var DeactivateUser = define[EmptyRequest, Null]("deactivateUser", "/api/account/deactivate", NoBody, ResponseOptions{}, "POST")
+var DeactivateUser = define[EmptyRequest, Null]("deactivateUser", "/api/account/deactivate", AuthenticatedAccess|AdminAccess|WritableAccess, NoBody, ResponseOptions{}, "POST")
-var AccountLogin = define[AccountLoginRequest, *AccountLoginData]("login", "/api/account/login", JSONBody, ResponseOptions{AdditionalCodes: []int{1, 10}, DataOnError: true}, "POST")
+var AccountLogin = define[AccountLoginRequest, *AccountLoginData]("login", "/api/account/login", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{AdditionalCodes: []int{1, 10}, DataOnError: true}, "POST")
-var GetUniqueFilename = define[FilePathRequest, FilePathData]("getUniqueFilename", "/api/file/getUniqueFilename", JSONBody, ResponseOptions{AdditionalCodes: []int{-3}}, "POST")
+var GetUniqueFilename = define[FilePathRequest, FilePathData]("getUniqueFilename", "/api/file/getUniqueFilename", AuthenticatedAccess|AdminAccess, JSONBody, ResponseOptions{AdditionalCodes: []int{-3}}, "POST")
-var ReadDirectory = define[ReadDirectoryRequest, []DirectoryEntry]("readDir", "/api/file/readDir", JSONBody, ResponseOptions{AdditionalCodes: []int{-3, 403, 404, 409, 500}, NonNullable: true}, "POST")
+var ReadDirectory = define[ReadDirectoryRequest, []DirectoryEntry]("readDir", "/api/file/readDir", AuthenticatedAccess|AdminAccess, JSONBody, ResponseOptions{AdditionalCodes: []int{-3, 403, 404, 409, 500}, NonNullable: true}, "POST")
-var RenameFile = define[RenameFileRequest, Null]("renameFile", "/api/file/renameFile", JSONBody, ResponseOptions{AdditionalCodes: []int{-3, 403, 404, 409, 500}}, "POST")
+var RenameFile = define[RenameFileRequest, Null]("renameFile", "/api/file/renameFile", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{AdditionalCodes: []int{-3, 403, 404, 409, 500}}, "POST")
-var RemoveFile = define[RemoveFileRequest, Null]("removeFile", "/api/file/removeFile", JSONBody, ResponseOptions{AdditionalCodes: []int{-3, 403, 404, 500}}, "POST")
+var RemoveFile = define[RemoveFileRequest, Null]("removeFile", "/api/file/removeFile", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{AdditionalCodes: []int{-3, 403, 404, 500}}, "POST")
-var GlobalCopyFiles = define[CopyFilesRequest, Null]("globalCopyFiles", "/api/file/globalCopyFiles", JSONBody, ResponseOptions{AdditionalCodes: []int{-2, -3, 403}}, "POST")
+var GlobalCopyFiles = define[CopyFilesRequest, Null]("globalCopyFiles", "/api/file/globalCopyFiles", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{AdditionalCodes: []int{-2, -3, 403}}, "POST")
-var WorkspaceCopyFiles = define[CopyFilesRequest, Null]("workspaceCopyFiles", "/api/file/workspaceCopyFiles", JSONBody, ResponseOptions{AdditionalCodes: []int{-2, -3, 403}}, "POST")
+var WorkspaceCopyFiles = define[CopyFilesRequest, Null]("workspaceCopyFiles", "/api/file/workspaceCopyFiles", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{AdditionalCodes: []int{-2, -3, 403}}, "POST")
-var CopyFile = define[CopyFileRequest, Null]("copyFile", "/api/file/copyFile", JSONBody, ResponseOptions{AdditionalCodes: []int{-2}}, "POST")
+var CopyFile = define[CopyFileRequest, Null]("copyFile", "/api/file/copyFile", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{AdditionalCodes: []int{-2}}, "POST")
-var PutFile = define[PutFileRequest, Null]("putFile", "/api/file/putFile", FormBody, ResponseOptions{AdditionalCodes: []int{-3, 400, 403, 500}}, "POST")
+var PutFile = define[PutFileRequest, Null]("putFile", "/api/file/putFile", AuthenticatedAccess|AdminAccess|WritableAccess, FormBody, ResponseOptions{AdditionalCodes: []int{-3, 400, 403, 500}}, "POST")
-var GetFile = define[FilePathRequest, BinaryContent]("getFile", "/api/file/getFile", JSONBody,
+var GetFile = define[FilePathRequest, BinaryContent]("getFile", "/api/file/getFile", AuthenticatedAccess, JSONBody,
ResponseOptions{Output: BinaryOutput, ErrorStatus: 202, AdditionalCodes: []int{-3, 403, 404, 409, 500, 503}}, "POST")
-var QuerySQL = define[SQLQueryRequest, SQLRows]("SQL", "/api/query/sql", JSONBody, ResponseOptions{AdditionalCodes: []int{1}, NonNullable: true}, "POST")
+var QuerySQL = define[SQLQueryRequest, SQLRows]("SQL", "/api/query/sql", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{AdditionalCodes: []int{1}, NonNullable: true}, "POST")
-var RenderSprig = define[RenderSprigRequest, string]("renderSprig", "/api/template/renderSprig", JSONBody, ResponseOptions{}, "POST")
+var RenderSprig = define[RenderSprigRequest, string]("renderSprig", "/api/template/renderSprig", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
-var GetDocSaveAsTemplateInfo = define[TemplateDocumentRequest, TemplateDocumentInfo]("getDocSaveAsTemplateInfo", "/api/template/getDocSaveAsTemplateInfo", JSONBody, ResponseOptions{}, "POST")
+var GetDocSaveAsTemplateInfo = define[TemplateDocumentRequest, TemplateDocumentInfo]("getDocSaveAsTemplateInfo", "/api/template/getDocSaveAsTemplateInfo", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
-var DocSaveAsTemplate = define[SaveTemplateRequest, Null]("docSaveAsTemplate", "/api/template/docSaveAsTemplate", JSONBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
+var DocSaveAsTemplate = define[SaveTemplateRequest, Null]("docSaveAsTemplate", "/api/template/docSaveAsTemplate", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
-var RenderTemplate = define[RenderTemplateRequest, RenderTemplateData]("renderTemplate", "/api/template/render", JSONBody, ResponseOptions{}, "POST")
+var RenderTemplate = define[RenderTemplateRequest, RenderTemplateData]("renderTemplate", "/api/template/render", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
-var ManageTemplateFiles = define[TemplateFileRequest, TemplateManagementData]("manageTemplateFiles", "/api/template/manage", StructJSONBody, ResponseOptions{}, "POST")
+var ManageTemplateFiles = define[TemplateFileRequest, TemplateManagementData]("manageTemplateFiles", "/api/template/manage", AuthenticatedAccess|AdminAccess|WritableAccess, StructJSONBody, ResponseOptions{}, "POST")
-var ResetGraph = define[EmptyRequest, ResetGraphData]("resetGraph", "/api/graph/resetGraph", NoBody, ResponseOptions{}, "POST")
+var ResetGraph = define[EmptyRequest, ResetGraphData]("resetGraph", "/api/graph/resetGraph", AuthenticatedAccess|AdminAccess|WritableAccess, NoBody, ResponseOptions{}, "POST")
-var ResetLocalGraph = define[EmptyRequest, ResetLocalGraphData]("resetLocalGraph", "/api/graph/resetLocalGraph", NoBody, ResponseOptions{}, "POST")
+var ResetLocalGraph = define[EmptyRequest, ResetLocalGraphData]("resetLocalGraph", "/api/graph/resetLocalGraph", AuthenticatedAccess|AdminAccess|WritableAccess, NoBody, ResponseOptions{}, "POST")
-var SetGraphConf = define[SetGraphConfRequest, GraphConfigurationData]("setGraphConf", "/api/graph/setGraphConf", JSONBody, ResponseOptions{}, "POST")
+var SetGraphConf = define[SetGraphConfRequest, GraphConfigurationData]("setGraphConf", "/api/graph/setGraphConf", AuthenticatedAccess, JSONBody, ResponseOptions{}, "POST")
-var GetGraph = define[GlobalGraphRequest, GlobalGraphData]("getGraph", "/api/graph/getGraph", JSONBody, ResponseOptions{DataOnError: true}, "POST")
+var GetGraph = define[GlobalGraphRequest, GlobalGraphData]("getGraph", "/api/graph/getGraph", AuthenticatedAccess, JSONBody, ResponseOptions{DataOnError: true}, "POST")
-var GetLocalGraph = define[LocalGraphRequest, LocalGraphData]("getLocalGraph", "/api/graph/getLocalGraph", JSONBody, ResponseOptions{DataOnError: true}, "POST")
+var GetLocalGraph = define[LocalGraphRequest, LocalGraphData]("getLocalGraph", "/api/graph/getLocalGraph", AuthenticatedAccess, JSONBody, ResponseOptions{DataOnError: true}, "POST")
-var RefreshBacklink = define[RefreshBacklinkRequest, Null]("refreshBacklink", "/api/ref/refreshBacklink", JSONBody, ResponseOptions{}, "POST")
+var RefreshBacklink = define[RefreshBacklinkRequest, Null]("refreshBacklink", "/api/ref/refreshBacklink", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
// 提及数量提示使用可选请求头 X-SiYuan-App-ID 定向;无标识时广播,发布读者不发送提示。
-var GetBackmentionDoc = define[BackmentionDocumentRequest, BacklinkContextData]("getBackmentionDoc", "/api/ref/getBackmentionDoc", JSONBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
+var GetBackmentionDoc = define[BackmentionDocumentRequest, BacklinkContextData]("getBackmentionDoc", "/api/ref/getBackmentionDoc", AuthenticatedAccess, JSONBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
-var GetBacklinkDoc = define[BacklinkDocumentRequest, BacklinkContextData]("getBacklinkDoc", "/api/ref/getBacklinkDoc", JSONBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
+var GetBacklinkDoc = define[BacklinkDocumentRequest, BacklinkContextData]("getBacklinkDoc", "/api/ref/getBacklinkDoc", AuthenticatedAccess, JSONBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
// 提及数量提示使用可选请求头 X-SiYuan-App-ID 定向;无标识时广播,发布读者不发送提示。
-var GetBacklink2 = define[BacklinkListRequest, BacklinkListData]("getBacklink2", "/api/ref/getBacklink2", JSONBody, ResponseOptions{AdditionalCodes: []int{1}, DataOnError: true}, "POST")
-var GetGlobalBacklinks = define[GlobalBacklinkListRequest, GlobalBacklinkListData]("getGlobalBacklinks", "/api/ref/getGlobalBacklinks", JSONBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
-var GetGlobalBacklinkContexts = define[GlobalBacklinkContextRequest, GlobalBacklinkContextData]("getGlobalBacklinkContexts", "/api/ref/getGlobalBacklinkContexts", JSONBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
+var GetBacklink2 = define[BacklinkListRequest, BacklinkListData]("getBacklink2", "/api/ref/getBacklink2", AuthenticatedAccess, JSONBody, ResponseOptions{AdditionalCodes: []int{1}, DataOnError: true}, "POST")
+var GetGlobalBacklinks = define[GlobalBacklinkListRequest, GlobalBacklinkListData]("getGlobalBacklinks", "/api/ref/getGlobalBacklinks", AuthenticatedAccess, JSONBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
+var GetGlobalBacklinkContexts = define[GlobalBacklinkContextRequest, GlobalBacklinkContextData]("getGlobalBacklinkContexts", "/api/ref/getGlobalBacklinkContexts", AuthenticatedAccess, JSONBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
-var ContinueImportSY = define[ContinueImportSYRequest, ImportDocumentData]("continueImportSY", "/api/import/continueImportSY", JSONBody, ResponseOptions{}, "POST")
+var ContinueImportSY = define[ContinueImportSYRequest, ImportDocumentData]("continueImportSY", "/api/import/continueImportSY", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
-var CancelImportSY = define[ImportTokenRequest, Null]("cancelImportSY", "/api/import/cancelImportSY", JSONBody, ResponseOptions{}, "POST")
+var CancelImportSY = define[ImportTokenRequest, Null]("cancelImportSY", "/api/import/cancelImportSY", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
-var StartObsidianVaultAnalysis = define[ObsidianAnalysisRequest, *ObsidianVaultTask]("startObsidianVaultAnalysis", "/api/import/startObsidianVaultAnalysis", JSONBody, ResponseOptions{}, "POST")
+var StartObsidianVaultAnalysis = define[ObsidianAnalysisRequest, *ObsidianVaultTask]("startObsidianVaultAnalysis", "/api/import/startObsidianVaultAnalysis", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
-var GetObsidianVaultTask = define[ObsidianTaskRequest, *ObsidianVaultTask]("getObsidianVaultTask", "/api/import/getObsidianVaultTask", JSONBody, ResponseOptions{}, "POST")
+var GetObsidianVaultTask = define[ObsidianTaskRequest, *ObsidianVaultTask]("getObsidianVaultTask", "/api/import/getObsidianVaultTask", AuthenticatedAccess|AdminAccess, JSONBody, ResponseOptions{}, "POST")
-var StartObsidianVaultImport = define[ObsidianImportRequest, *ObsidianVaultTask]("startObsidianVaultImport", "/api/import/startObsidianVaultImport", JSONBody, ResponseOptions{}, "POST")
+var StartObsidianVaultImport = define[ObsidianImportRequest, *ObsidianVaultTask]("startObsidianVaultImport", "/api/import/startObsidianVaultImport", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
-var CancelObsidianVaultTask = define[ObsidianTaskRequest, *ObsidianVaultTask]("cancelObsidianVaultTask", "/api/import/cancelObsidianVaultTask", JSONBody, ResponseOptions{DataOnError: true}, "POST")
+var CancelObsidianVaultTask = define[ObsidianTaskRequest, *ObsidianVaultTask]("cancelObsidianVaultTask", "/api/import/cancelObsidianVaultTask", AuthenticatedAccess|AdminAccess, JSONBody, ResponseOptions{DataOnError: true}, "POST")
// ImportStdMd 将标准脚注定义导入为独立列表项,正文脚注转换为指向列表项的上标静态块引用。
// 多次引用共享同一目标;未定义的脚注不生成块引用,代码中的脚注文本保持原样,反链复用块引用索引。
-var ImportStdMd = define[ImportMarkdownRequest, Null]("importStdMd", "/api/import/importStdMd", JSONBody, ResponseOptions{}, "POST")
+var ImportStdMd = define[ImportMarkdownRequest, Null]("importStdMd", "/api/import/importStdMd", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
-var ImportData = define[ImportDataRequest, Null]("importData", "/api/import/importData", MultipartBody, ResponseOptions{}, "POST")
+var ImportData = define[ImportDataRequest, Null]("importData", "/api/import/importData", AuthenticatedAccess|AdminAccess|WritableAccess, MultipartBody, ResponseOptions{}, "POST")
// ImportZipMd 对压缩包中的 Markdown 使用与 ImportStdMd 相同的脚注转换规则。
-var ImportZipMd = define[ImportZipMarkdownRequest, Null]("importZipMd", "/api/import/importZipMd", MultipartBody, ResponseOptions{}, "POST")
+var ImportZipMd = define[ImportZipMarkdownRequest, Null]("importZipMd", "/api/import/importZipMd", AuthenticatedAccess|AdminAccess|WritableAccess, MultipartBody, ResponseOptions{}, "POST")
-var ImportSY = define[ImportSYRequest, Null]("importSY", "/api/import/importSY", MultipartBody, ResponseOptions{}, "POST")
+var ImportSY = define[ImportSYRequest, Null]("importSY", "/api/import/importSY", AuthenticatedAccess|AdminAccess|WritableAccess, MultipartBody, ResponseOptions{}, "POST")
-var ImportSYNotebook = define[ImportDataRequest, ImportNotebookData]("importSYNotebook", "/api/import/importSYNotebook", MultipartBody, ResponseOptions{}, "POST")
+var ImportSYNotebook = define[ImportDataRequest, ImportNotebookData]("importSYNotebook", "/api/import/importSYNotebook", AuthenticatedAccess|AdminAccess|WritableAccess, MultipartBody, ResponseOptions{}, "POST")
-var ImportSYAuto = define[ImportSYRequest, ImportAutoData]("importSYAuto", "/api/import/importSYAuto", MultipartBody, ResponseOptions{DataOnError: true}, "POST")
+var ImportSYAuto = define[ImportSYRequest, ImportAutoData]("importSYAuto", "/api/import/importSYAuto", AuthenticatedAccess|AdminAccess|WritableAccess, MultipartBody, ResponseOptions{DataOnError: true}, "POST")
-var GetHistoryItems = define[HistoryItemsRequest, HistoryItemsData]("getHistoryItems", "/api/history/getHistoryItems", JSONBody, ResponseOptions{}, "POST")
+var GetHistoryItems = define[HistoryItemsRequest, HistoryItemsData]("getHistoryItems", "/api/history/getHistoryItems", AuthenticatedAccess|AdminAccess, JSONBody, ResponseOptions{}, "POST")
-var GetNotebookHistory = define[EmptyRequest, NotebookHistoryData]("getNotebookHistory", "/api/history/getNotebookHistory", NoBody, ResponseOptions{}, "POST")
+var GetNotebookHistory = define[EmptyRequest, NotebookHistoryData]("getNotebookHistory", "/api/history/getNotebookHistory", AuthenticatedAccess|AdminAccess, NoBody, ResponseOptions{}, "POST")
-var GetDocHistoryContent = define[DocHistoryContentRequest, DocHistoryContentData]("getDocHistoryContent", "/api/history/getDocHistoryContent", JSONBody, ResponseOptions{}, "POST")
+var GetDocHistoryContent = define[DocHistoryContentRequest, DocHistoryContentData]("getDocHistoryContent", "/api/history/getDocHistoryContent", AuthenticatedAccess|AdminAccess, JSONBody, ResponseOptions{}, "POST")
-var GetDocHistorySnapshots = define[DocHistorySnapshotsRequest, DocHistorySnapshotsData]("getDocHistorySnapshots", "/api/history/getDocHistorySnapshots", JSONBody, ResponseOptions{}, "POST")
+var GetDocHistorySnapshots = define[DocHistorySnapshotsRequest, DocHistorySnapshotsData]("getDocHistorySnapshots", "/api/history/getDocHistorySnapshots", AuthenticatedAccess|AdminAccess, JSONBody, ResponseOptions{}, "POST")
-var CreateDocHistory = define[CreateDocHistoryRequest, Null]("createDocHistory", "/api/history/createDocHistory", JSONBody, ResponseOptions{}, "POST")
+var CreateDocHistory = define[CreateDocHistoryRequest, Null]("createDocHistory", "/api/history/createDocHistory", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
-var CreateAssetHistory = define[CreateAssetHistoryRequest, Null]("createAssetHistory", "/api/history/createAssetHistory", JSONBody, ResponseOptions{}, "POST")
+var CreateAssetHistory = define[CreateAssetHistoryRequest, Null]("createAssetHistory", "/api/history/createAssetHistory", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
-var RollbackDocHistory = define[HistoryPathRequest, Null]("rollbackDocHistory", "/api/history/rollbackDocHistory", JSONBody, ResponseOptions{}, "POST")
+var RollbackDocHistory = define[HistoryPathRequest, Null]("rollbackDocHistory", "/api/history/rollbackDocHistory", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
-var RollbackAssetsHistory = define[HistoryPathRequest, Null]("rollbackAssetsHistory", "/api/history/rollbackAssetsHistory", JSONBody, ResponseOptions{}, "POST")
+var RollbackAssetsHistory = define[HistoryPathRequest, Null]("rollbackAssetsHistory", "/api/history/rollbackAssetsHistory", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
-var RollbackNotebookHistory = define[HistoryPathRequest, Null]("rollbackNotebookHistory", "/api/history/rollbackNotebookHistory", JSONBody, ResponseOptions{}, "POST")
+var RollbackNotebookHistory = define[HistoryPathRequest, Null]("rollbackNotebookHistory", "/api/history/rollbackNotebookHistory", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
-var RollbackAttributeViewHistory = define[HistoryPathRequest, Null]("rollbackAttributeViewHistory", "/api/history/rollbackAttributeViewHistory", JSONBody, ResponseOptions{}, "POST")
+var RollbackAttributeViewHistory = define[HistoryPathRequest, Null]("rollbackAttributeViewHistory", "/api/history/rollbackAttributeViewHistory", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
-var DiffDocVersions = define[DiffDocVersionsRequest, *DocVersionDiffResult]("diffDocVersions", "/api/history/diffDocVersions", JSONBody, ResponseOptions{}, "POST")
+var DiffDocVersions = define[DiffDocVersionsRequest, *DocVersionDiffResult]("diffDocVersions", "/api/history/diffDocVersions", AuthenticatedAccess|AdminAccess, JSONBody, ResponseOptions{}, "POST")
-var SearchAssetByName = define[SearchAssetRequest, []*SearchAsset]("searchAsset", "/api/search/searchAsset", JSONBody, ResponseOptions{}, "POST")
+var SearchAssetByName = define[SearchAssetRequest, []*SearchAsset]("searchAsset", "/api/search/searchAsset", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
-var SearchWidget = define[SearchKeywordRequest, SearchWidgetData]("searchWidget", "/api/search/searchWidget", JSONBody, ResponseOptions{}, "POST")
+var SearchWidget = define[SearchKeywordRequest, SearchWidgetData]("searchWidget", "/api/search/searchWidget", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
-var SearchTemplate = define[SearchKeywordRequest, SearchTemplateData]("searchTemplate", "/api/search/searchTemplate", JSONBody, ResponseOptions{}, "POST")
+var SearchTemplate = define[SearchKeywordRequest, SearchTemplateData]("searchTemplate", "/api/search/searchTemplate", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
-var RemoveSearchTemplate = define[SearchPathRequest, Null]("removeTemplate", "/api/search/removeTemplate", JSONBody, ResponseOptions{}, "POST")
+var RemoveSearchTemplate = define[SearchPathRequest, Null]("removeTemplate", "/api/search/removeTemplate", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
-var GetAssetContent = define[AssetContentRequest, AssetContentData]("getAssetContent", "/api/search/getAssetContent", JSONBody, ResponseOptions{}, "POST")
+var GetAssetContent = define[AssetContentRequest, AssetContentData]("getAssetContent", "/api/search/getAssetContent", AuthenticatedAccess, JSONBody, ResponseOptions{}, "POST")
-var GetAssetContentByPath = define[SearchPathRequest, AssetContentData]("getAssetContentByPath", "/api/search/getAssetContentByPath", JSONBody, ResponseOptions{}, "POST")
+var GetAssetContentByPath = define[SearchPathRequest, AssetContentData]("getAssetContentByPath", "/api/search/getAssetContentByPath", AuthenticatedAccess, JSONBody, ResponseOptions{}, "POST")
-var ListInvalidBlockRefs = define[SearchPageRequest, SearchBlocksData]("listInvalidBlockRefs", "/api/search/listInvalidBlockRefs", JSONBody, ResponseOptions{}, "POST")
+var ListInvalidBlockRefs = define[SearchPageRequest, SearchBlocksData]("listInvalidBlockRefs", "/api/search/listInvalidBlockRefs", AuthenticatedAccess, JSONBody, ResponseOptions{}, "POST")
-var UpdateEmbedBlock = define[UpdateEmbedBlockRequest, Null]("updateEmbedBlock", "/api/search/updateEmbedBlock", JSONBody, ResponseOptions{}, "POST")
+var UpdateEmbedBlock = define[UpdateEmbedBlockRequest, Null]("updateEmbedBlock", "/api/search/updateEmbedBlock", AuthenticatedAccess, JSONBody, ResponseOptions{}, "POST")
-var FullTextSearchAssetContent = define[SearchAssetContentRequest, SearchAssetContentData]("fullTextSearchAssetContent", "/api/search/fullTextSearchAssetContent", JSONBody, ResponseOptions{}, "POST")
+var FullTextSearchAssetContent = define[SearchAssetContentRequest, SearchAssetContentData]("fullTextSearchAssetContent", "/api/search/fullTextSearchAssetContent", AuthenticatedAccess, JSONBody, ResponseOptions{}, "POST")
-var GetEmbedBlock = define[GetEmbedBlockRequest, EmbedBlocksData]("getEmbedBlock", "/api/search/getEmbedBlock", JSONBody, ResponseOptions{}, "POST")
+var GetEmbedBlock = define[GetEmbedBlockRequest, EmbedBlocksData]("getEmbedBlock", "/api/search/getEmbedBlock", AuthenticatedAccess, JSONBody, ResponseOptions{}, "POST")
-var SearchEmbedBlock = define[SearchEmbedBlockRequest, EmbedBlocksData]("searchEmbedBlock", "/api/search/searchEmbedBlock", JSONBody, ResponseOptions{}, "POST")
+var SearchEmbedBlock = define[SearchEmbedBlockRequest, EmbedBlocksData]("searchEmbedBlock", "/api/search/searchEmbedBlock", AuthenticatedAccess, JSONBody, ResponseOptions{}, "POST")
-var FindReplace = define[FindReplaceRequest, Null]("findReplace", "/api/search/findReplace", JSONBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
+var FindReplace = define[FindReplaceRequest, Null]("findReplace", "/api/search/findReplace", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
-var SemanticSearchBlock = define[SearchBlockRequest, SearchBlocksData]("semanticSearchBlock", "/api/search/semanticSearchBlock", JSONBody, ResponseOptions{}, "POST")
+var SemanticSearchBlock = define[SearchBlockRequest, SearchBlocksData]("semanticSearchBlock", "/api/search/semanticSearchBlock", AuthenticatedAccess, JSONBody, ResponseOptions{}, "POST")
-var FullTextSearchBlock = define[FullTextSearchBlockRequest, *FullTextSearchBlockData]("fullTextSearchBlock", "/api/search/fullTextSearchBlock", JSONBody, ResponseOptions{}, "POST")
+var FullTextSearchBlock = define[FullTextSearchBlockRequest, *FullTextSearchBlockData]("fullTextSearchBlock", "/api/search/fullTextSearchBlock", AuthenticatedAccess, JSONBody, ResponseOptions{}, "POST")
-var SearchRefBlock = define[SearchRefBlockRequest, SearchRefData]("searchRefBlock", "/api/search/searchRefBlock", JSONBody, ResponseOptions{DataOnError: true}, "POST")
+var SearchRefBlock = define[SearchRefBlockRequest, SearchRefData]("searchRefBlock", "/api/search/searchRefBlock", AuthenticatedAccess, JSONBody, ResponseOptions{DataOnError: true}, "POST")
-var ListLoadedPlugins = define[EmptyRequest, []*LoadedPlugin]("listLoadedPlugins", "/api/plugin/listLoadedPlugins", NoBody, ResponseOptions{}, "POST")
+var ListLoadedPlugins = define[EmptyRequest, []*LoadedPlugin]("listLoadedPlugins", "/api/plugin/listLoadedPlugins", AuthenticatedAccess, NoBody, ResponseOptions{}, "POST")
-var ListLoadedPluginsGET = define[EmptyRequest, []*LoadedPlugin]("listLoadedPluginsGET", "/api/plugin", NoBody, ResponseOptions{}, "GET")
+var ListLoadedPluginsGET = define[EmptyRequest, []*LoadedPlugin]("listLoadedPluginsGET", "/api/plugin", AuthenticatedAccess, NoBody, ResponseOptions{}, "GET")
-var GetLoadedPlugin = define[LoadedPluginRequest, *LoadedPlugin]("getLoadedPlugin", "/api/plugin/getLoadedPlugin", JSONBody, ResponseOptions{AdditionalCodes: []int{1, 2, 3, 4}}, "POST")
+var GetLoadedPlugin = define[LoadedPluginRequest, *LoadedPlugin]("getLoadedPlugin", "/api/plugin/getLoadedPlugin", AuthenticatedAccess, JSONBody, ResponseOptions{AdditionalCodes: []int{1, 2, 3, 4}}, "POST")
-var GetLoadedPluginRPC = define[LoadedPluginRequest, *LoadedPlugin]("getLoadedPluginRPC", "/api/plugin/rpc", JSONBody, ResponseOptions{AdditionalCodes: []int{1, 2, 3, 4}}, "GET")
+var GetLoadedPluginRPC = define[LoadedPluginRequest, *LoadedPlugin]("getLoadedPluginRPC", "/api/plugin/rpc", AuthenticatedAccess, JSONBody, ResponseOptions{AdditionalCodes: []int{1, 2, 3, 4}}, "GET")
-var GetLoadedPluginRPCByName = define[LoadedPluginRequest, *LoadedPlugin]("getLoadedPluginRPCByName", "/api/plugin/rpc/:name", JSONBody, ResponseOptions{AdditionalCodes: []int{1, 2, 3, 4}}, "GET")
+var GetLoadedPluginRPCByName = define[LoadedPluginRequest, *LoadedPlugin]("getLoadedPluginRPCByName", "/api/plugin/rpc/:name", AuthenticatedAccess, JSONBody, ResponseOptions{AdditionalCodes: []int{1, 2, 3, 4}}, "GET")
-var PluginRPCHTTP = define[PluginRPCBatchRequest, PluginRPCResponse]("pluginJsonRpcHttp", "/api/plugin/rpc", JSONBody, ResponseOptions{Output: DirectJSONOutput, NoContent: true}, "POST")
+var PluginRPCHTTP = define[PluginRPCBatchRequest, PluginRPCResponse]("pluginJsonRpcHttp", "/api/plugin/rpc", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{Output: DirectJSONOutput, NoContent: true}, "POST")
-var PluginRPCHTTPByName = define[PluginRPCBatchRequest, PluginRPCResponse]("pluginJsonRpcHttpByName", "/api/plugin/rpc/:name", JSONBody, ResponseOptions{Output: DirectJSONOutput, NoContent: true}, "POST")
+var PluginRPCHTTPByName = define[PluginRPCBatchRequest, PluginRPCResponse]("pluginJsonRpcHttpByName", "/api/plugin/rpc/:name", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{Output: DirectJSONOutput, NoContent: true}, "POST")
-var PluginRPCWebSocket = define[EmptyRequest, PluginRPCFailure]("pluginJsonRpcWebSocket", "/ws/plugin/rpc", NoBody, WebSocketOptions[PluginRPCBatchRequest, PluginRPCMessage](404), "GET")
+var PluginRPCWebSocket = define[EmptyRequest, PluginRPCFailure]("pluginJsonRpcWebSocket", "/ws/plugin/rpc", AuthenticatedAccess|AdminAccess|WritableAccess, NoBody, WebSocketOptions[PluginRPCBatchRequest, PluginRPCMessage](404), "GET")
-var PluginRPCWebSocketByName = define[EmptyRequest, PluginRPCFailure]("pluginJsonRpcWebSocketByName", "/ws/plugin/rpc/:name", NoBody, WebSocketOptions[PluginRPCBatchRequest, PluginRPCMessage](404), "GET")
+var PluginRPCWebSocketByName = define[EmptyRequest, PluginRPCFailure]("pluginJsonRpcWebSocketByName", "/ws/plugin/rpc/:name", AuthenticatedAccess|AdminAccess|WritableAccess, NoBody, WebSocketOptions[PluginRPCBatchRequest, PluginRPCMessage](404), "GET")
-var InstallLocalBazaarPackage = define[InstallLocalBazaarPackageRequest, BazaarLocalInstallResult]("installLocalBazaarPackage", "/api/bazaar/installLocalBazaarPackage", MultipartBody, ResponseOptions{AdditionalCodes: []int{1}, DataOnError: true}, "POST")
-var BatchUpdatePackage = define[BatchUpdatePackageRequest, Null]("batchUpdatePackage", "/api/bazaar/batchUpdatePackage", JSONBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
-var GetUpdatedPackage = define[GetUpdatedPackageRequest, BazaarUpdatedData]("getUpdatedPackage", "/api/bazaar/getUpdatedPackage", JSONBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
+var InstallLocalBazaarPackage = define[InstallLocalBazaarPackageRequest, BazaarLocalInstallResult]("installLocalBazaarPackage", "/api/bazaar/installLocalBazaarPackage", AuthenticatedAccess|AdminAccess|WritableAccess, MultipartBody, ResponseOptions{AdditionalCodes: []int{1}, DataOnError: true}, "POST")
+var BatchUpdatePackage = define[BatchUpdatePackageRequest, Null]("batchUpdatePackage", "/api/bazaar/batchUpdatePackage", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
+var GetUpdatedPackage = define[GetUpdatedPackageRequest, BazaarUpdatedData]("getUpdatedPackage", "/api/bazaar/getUpdatedPackage", AuthenticatedAccess|AdminAccess, JSONBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
// 下载完成提示使用可选请求头 X-SiYuan-App-ID 定向;无标识时广播,离线目标不回退广播。
-var UpdateBazaarPackage = define[UpdateBazaarPackageRequest, BazaarPackagesData]("updateBazaarPackage", "/api/bazaar/updateBazaarPackage", JSONBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
-var GetInstalledPackageSize = define[GetInstalledPackageSizeRequest, BazaarPackageSizeData]("getInstalledPackageSize", "/api/bazaar/getInstalledPackageSize", JSONBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
-var GetBazaarPackage = define[GetBazaarPackageRequest, BazaarPackageDetail]("getBazaarPackage", "/api/bazaar/getBazaarPackage", JSONBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
-var GetBazaarPackageRatings = define[GetBazaarPackageRatingsRequest, BazaarRatingsData]("getBazaarPackageRatings", "/api/bazaar/getBazaarPackageRatings", JSONBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
-var GetBazaarPackageUserRatings = define[GetBazaarPackageUserRatingsRequest, BazaarUserRatingsResult]("getBazaarPackageUserRatings", "/api/bazaar/getBazaarPackageUserRatings", JSONBody, ResponseOptions{AdditionalCodes: []int{1}, DataOnError: true}, "POST")
-var GetBazaarPackageRating = define[GetBazaarPackageRatingRequest, BazaarRatingResult]("getBazaarPackageRating", "/api/bazaar/getBazaarPackageRating", JSONBody, ResponseOptions{AdditionalCodes: []int{1}, DataOnError: true}, "POST")
-var SetBazaarPackageRating = define[SetBazaarPackageRatingRequest, BazaarRatingResult]("setBazaarPackageRating", "/api/bazaar/setBazaarPackageRating", JSONBody, ResponseOptions{AdditionalCodes: []int{1}, DataOnError: true}, "POST")
-var GetBazaarPackageREADME = define[GetBazaarPackageREADMERequest, BazaarREADMEData]("getBazaarPackageREADME", "/api/bazaar/getBazaarPackageREADME", JSONBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
-var GetBazaarPlugin = define[GetBazaarPluginRequest, BazaarPackagesData]("getBazaarPlugin", "/api/bazaar/getBazaarPlugin", JSONBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
-var GetInstalledPlugin = define[GetInstalledPluginRequest, BazaarPackagesData]("getInstalledPlugin", "/api/bazaar/getInstalledPlugin", JSONBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
+var UpdateBazaarPackage = define[UpdateBazaarPackageRequest, BazaarPackagesData]("updateBazaarPackage", "/api/bazaar/updateBazaarPackage", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
+var GetInstalledPackageSize = define[GetInstalledPackageSizeRequest, BazaarPackageSizeData]("getInstalledPackageSize", "/api/bazaar/getInstalledPackageSize", AuthenticatedAccess|AdminAccess, JSONBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
+var GetBazaarPackage = define[GetBazaarPackageRequest, BazaarPackageDetail]("getBazaarPackage", "/api/bazaar/getBazaarPackage", AuthenticatedAccess|AdminAccess, JSONBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
+var GetBazaarPackageRatings = define[GetBazaarPackageRatingsRequest, BazaarRatingsData]("getBazaarPackageRatings", "/api/bazaar/getBazaarPackageRatings", AuthenticatedAccess|AdminAccess, JSONBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
+var GetBazaarPackageUserRatings = define[GetBazaarPackageUserRatingsRequest, BazaarUserRatingsResult]("getBazaarPackageUserRatings", "/api/bazaar/getBazaarPackageUserRatings", AuthenticatedAccess|AdminAccess, JSONBody, ResponseOptions{AdditionalCodes: []int{1}, DataOnError: true}, "POST")
+var GetBazaarPackageRating = define[GetBazaarPackageRatingRequest, BazaarRatingResult]("getBazaarPackageRating", "/api/bazaar/getBazaarPackageRating", AuthenticatedAccess|AdminAccess, JSONBody, ResponseOptions{AdditionalCodes: []int{1}, DataOnError: true}, "POST")
+var SetBazaarPackageRating = define[SetBazaarPackageRatingRequest, BazaarRatingResult]("setBazaarPackageRating", "/api/bazaar/setBazaarPackageRating", AuthenticatedAccess|AdminAccess, JSONBody, ResponseOptions{AdditionalCodes: []int{1}, DataOnError: true}, "POST")
+var GetBazaarPackageREADME = define[GetBazaarPackageREADMERequest, BazaarREADMEData]("getBazaarPackageREADME", "/api/bazaar/getBazaarPackageREADME", AuthenticatedAccess|AdminAccess, JSONBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
+var GetBazaarPlugin = define[GetBazaarPluginRequest, BazaarPackagesData]("getBazaarPlugin", "/api/bazaar/getBazaarPlugin", AuthenticatedAccess|AdminAccess, JSONBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
+var GetInstalledPlugin = define[GetInstalledPluginRequest, BazaarPackagesData]("getInstalledPlugin", "/api/bazaar/getInstalledPlugin", AuthenticatedAccess|AdminAccess, JSONBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
// 下载完成提示使用可选请求头 X-SiYuan-App-ID 定向;插件重载事件仍广播。
-var InstallBazaarPlugin = define[InstallBazaarPluginRequest, BazaarPackagesData]("installBazaarPlugin", "/api/bazaar/installBazaarPlugin", JSONBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
-var UninstallBazaarPlugin = define[UninstallBazaarPluginRequest, BazaarPackagesData]("uninstallBazaarPlugin", "/api/bazaar/uninstallBazaarPlugin", JSONBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
-var GetBazaarWidget = define[GetBazaarWidgetRequest, BazaarPackagesData]("getBazaarWidget", "/api/bazaar/getBazaarWidget", JSONBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
-var GetInstalledWidget = define[GetInstalledWidgetRequest, BazaarPackagesData]("getInstalledWidget", "/api/bazaar/getInstalledWidget", JSONBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
+var InstallBazaarPlugin = define[InstallBazaarPluginRequest, BazaarPackagesData]("installBazaarPlugin", "/api/bazaar/installBazaarPlugin", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
+var UninstallBazaarPlugin = define[UninstallBazaarPluginRequest, BazaarPackagesData]("uninstallBazaarPlugin", "/api/bazaar/uninstallBazaarPlugin", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
+var GetBazaarWidget = define[GetBazaarWidgetRequest, BazaarPackagesData]("getBazaarWidget", "/api/bazaar/getBazaarWidget", AuthenticatedAccess|AdminAccess, JSONBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
+var GetInstalledWidget = define[GetInstalledWidgetRequest, BazaarPackagesData]("getInstalledWidget", "/api/bazaar/getInstalledWidget", AuthenticatedAccess|AdminAccess, JSONBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
// 下载完成提示使用可选请求头 X-SiYuan-App-ID 定向;无标识时广播。
-var InstallBazaarWidget = define[InstallBazaarWidgetRequest, BazaarPackagesData]("installBazaarWidget", "/api/bazaar/installBazaarWidget", JSONBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
-var UninstallBazaarWidget = define[UninstallBazaarWidgetRequest, BazaarPackagesData]("uninstallBazaarWidget", "/api/bazaar/uninstallBazaarWidget", JSONBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
-var GetBazaarIcon = define[GetBazaarIconRequest, BazaarPackagesData]("getBazaarIcon", "/api/bazaar/getBazaarIcon", JSONBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
-var GetInstalledIcon = define[GetInstalledIconRequest, BazaarPackagesData]("getInstalledIcon", "/api/bazaar/getInstalledIcon", JSONBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
+var InstallBazaarWidget = define[InstallBazaarWidgetRequest, BazaarPackagesData]("installBazaarWidget", "/api/bazaar/installBazaarWidget", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
+var UninstallBazaarWidget = define[UninstallBazaarWidgetRequest, BazaarPackagesData]("uninstallBazaarWidget", "/api/bazaar/uninstallBazaarWidget", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
+var GetBazaarIcon = define[GetBazaarIconRequest, BazaarPackagesData]("getBazaarIcon", "/api/bazaar/getBazaarIcon", AuthenticatedAccess|AdminAccess, JSONBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
+var GetInstalledIcon = define[GetInstalledIconRequest, BazaarPackagesData]("getInstalledIcon", "/api/bazaar/getInstalledIcon", AuthenticatedAccess|AdminAccess, JSONBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
// 下载完成提示使用可选请求头 X-SiYuan-App-ID 定向;外观刷新事件仍广播。
-var InstallBazaarIcon = define[InstallBazaarIconRequest, BazaarAppearancePackagesData]("installBazaarIcon", "/api/bazaar/installBazaarIcon", JSONBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
-var UninstallBazaarIcon = define[UninstallBazaarIconRequest, BazaarAppearancePackagesData]("uninstallBazaarIcon", "/api/bazaar/uninstallBazaarIcon", JSONBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
-var GetBazaarTemplate = define[GetBazaarTemplateRequest, BazaarPackagesData]("getBazaarTemplate", "/api/bazaar/getBazaarTemplate", JSONBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
-var GetInstalledTemplate = define[GetInstalledTemplateRequest, BazaarPackagesData]("getInstalledTemplate", "/api/bazaar/getInstalledTemplate", JSONBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
+var InstallBazaarIcon = define[InstallBazaarIconRequest, BazaarAppearancePackagesData]("installBazaarIcon", "/api/bazaar/installBazaarIcon", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
+var UninstallBazaarIcon = define[UninstallBazaarIconRequest, BazaarAppearancePackagesData]("uninstallBazaarIcon", "/api/bazaar/uninstallBazaarIcon", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
+var GetBazaarTemplate = define[GetBazaarTemplateRequest, BazaarPackagesData]("getBazaarTemplate", "/api/bazaar/getBazaarTemplate", AuthenticatedAccess|AdminAccess, JSONBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
+var GetInstalledTemplate = define[GetInstalledTemplateRequest, BazaarPackagesData]("getInstalledTemplate", "/api/bazaar/getInstalledTemplate", AuthenticatedAccess|AdminAccess, JSONBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
// 下载完成提示使用可选请求头 X-SiYuan-App-ID 定向;无标识时广播。
-var InstallBazaarTemplate = define[InstallBazaarTemplateRequest, BazaarPackagesData]("installBazaarTemplate", "/api/bazaar/installBazaarTemplate", JSONBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
-var UninstallBazaarTemplate = define[UninstallBazaarTemplateRequest, BazaarPackagesData]("uninstallBazaarTemplate", "/api/bazaar/uninstallBazaarTemplate", JSONBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
-var GetBazaarTheme = define[GetBazaarThemeRequest, BazaarPackagesData]("getBazaarTheme", "/api/bazaar/getBazaarTheme", JSONBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
-var GetInstalledTheme = define[GetInstalledThemeRequest, BazaarPackagesData]("getInstalledTheme", "/api/bazaar/getInstalledTheme", JSONBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
+var InstallBazaarTemplate = define[InstallBazaarTemplateRequest, BazaarPackagesData]("installBazaarTemplate", "/api/bazaar/installBazaarTemplate", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
+var UninstallBazaarTemplate = define[UninstallBazaarTemplateRequest, BazaarPackagesData]("uninstallBazaarTemplate", "/api/bazaar/uninstallBazaarTemplate", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
+var GetBazaarTheme = define[GetBazaarThemeRequest, BazaarPackagesData]("getBazaarTheme", "/api/bazaar/getBazaarTheme", AuthenticatedAccess|AdminAccess, JSONBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
+var GetInstalledTheme = define[GetInstalledThemeRequest, BazaarPackagesData]("getInstalledTheme", "/api/bazaar/getInstalledTheme", AuthenticatedAccess|AdminAccess, JSONBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
// 下载完成提示使用可选请求头 X-SiYuan-App-ID 定向;外观刷新事件仍广播。
-var InstallBazaarTheme = define[InstallBazaarThemeRequest, BazaarAppearancePackagesData]("installBazaarTheme", "/api/bazaar/installBazaarTheme", JSONBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
-var UninstallBazaarTheme = define[UninstallBazaarThemeRequest, BazaarAppearancePackagesData]("uninstallBazaarTheme", "/api/bazaar/uninstallBazaarTheme", JSONBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
-
-var SetSyncEnable = define[SyncEnabledRequest, Null]("setSyncEnable", "/api/sync/setSyncEnable", JSONBody, ResponseOptions{}, "POST")
-var SetSyncInterval = define[SyncIntervalRequest, Null]("setSyncInterval", "/api/sync/setSyncInterval", JSONBody, ResponseOptions{}, "POST")
-var SetSyncPerception = define[SyncEnabledRequest, Null]("setSyncPerception", "/api/sync/setSyncPerception", JSONBody, ResponseOptions{}, "POST")
-var SetSyncLAN = define[SyncLANRequest, SyncLANStatus]("setSyncLAN", "/api/sync/setSyncLAN", JSONBody, ResponseOptions{}, "POST")
-var GetSyncLANStatus = define[EmptyRequest, SyncLANStatus]("getSyncLANStatus", "/api/sync/getSyncLANStatus", NoBody, ResponseOptions{}, "POST")
-var SetSyncGenerateConflictDoc = define[SyncEnabledRequest, Null]("setSyncGenerateConflictDoc", "/api/sync/setSyncGenerateConflictDoc", JSONBody, ResponseOptions{}, "POST")
-var SetSyncMode = define[SyncModeRequest, Null]("setSyncMode", "/api/sync/setSyncMode", JSONBody, ResponseOptions{}, "POST")
-var SetSyncProvider = define[SyncProviderRequest, Null]("setSyncProvider", "/api/sync/setSyncProvider", JSONBody, ResponseOptions{}, "POST")
-var SetSyncProviderS3 = define[SetSyncS3Request, SyncS3Data]("setSyncProviderS3", "/api/sync/setSyncProviderS3", JSONBody, ResponseOptions{}, "POST")
-var SetSyncProviderWebDAV = define[SetSyncWebDAVRequest, SyncWebDAVData]("setSyncProviderWebDAV", "/api/sync/setSyncProviderWebDAV", JSONBody, ResponseOptions{}, "POST")
-var SetSyncProviderLocal = define[SetSyncLocalRequest, SyncLocalData]("setSyncProviderLocal", "/api/sync/setSyncProviderLocal", JSONBody, ResponseOptions{}, "POST")
-var SetCloudSyncDir = define[SyncNameRequest, Null]("setCloudSyncDir", "/api/sync/setCloudSyncDir", JSONBody, ResponseOptions{}, "POST")
-var SetSyncAssetDownloadMode = define[SyncModeRequest, SyncAssetDownloadModeData]("setSyncAssetDownloadMode", "/api/sync/setSyncAssetDownloadMode", JSONBody, ResponseOptions{}, "POST")
-var CreateCloudSyncDir = define[SyncNameRequest, Null]("createCloudSyncDir", "/api/sync/createCloudSyncDir", JSONBody, ResponseOptions{}, "POST")
-var RemoveCloudSyncDir = define[SyncNameRequest, string]("removeCloudSyncDir", "/api/sync/removeCloudSyncDir", JSONBody, ResponseOptions{}, "POST")
-var ListCloudSyncDir = define[EmptyRequest, CloudSyncDirsData]("listCloudSyncDir", "/api/sync/listCloudSyncDir", NoBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
-var PerformSync = define[PerformSyncRequest, Null]("performSync", "/api/sync/performSync", JSONBody, ResponseOptions{}, "POST")
-var PerformBootSync = define[EmptyRequest, Null]("performBootSync", "/api/sync/performBootSync", NoBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
-var GetBootSync = define[EmptyRequest, Null]("getBootSync", "/api/sync/getBootSync", NoBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
-var GetSyncInfo = define[EmptyRequest, SyncInfoData]("getSyncInfo", "/api/sync/getSyncInfo", NoBody, ResponseOptions{}, "POST")
-var ExportSyncProviderS3 = define[EmptyRequest, SyncProviderExportData]("exportSyncProviderS3", "/api/sync/exportSyncProviderS3", NoBody, ResponseOptions{}, "POST")
-var ImportSyncProviderS3 = define[SyncProviderImportRequest, SyncS3Data]("importSyncProviderS3", "/api/sync/importSyncProviderS3", MultipartBody, ResponseOptions{DataOnError: true}, "POST")
-var ExportSyncProviderWebDAV = define[EmptyRequest, SyncProviderExportData]("exportSyncProviderWebDAV", "/api/sync/exportSyncProviderWebDAV", NoBody, ResponseOptions{}, "POST")
-var ImportSyncProviderWebDAV = define[SyncProviderImportRequest, SyncWebDAVData]("importSyncProviderWebDAV", "/api/sync/importSyncProviderWebDAV", MultipartBody, ResponseOptions{DataOnError: true}, "POST")
-
-var GetRiffCardsByBlockIDs = define[RiffBlockIDsRequest, RiffBlocksData]("getRiffCardsByBlockIDs", "/api/riff/getRiffCardsByBlockIDs", JSONBody, ResponseOptions{}, "POST")
-var BatchSetRiffCardsDueTime = define[SetRiffCardsDueRequest, Null]("batchSetRiffCardsDueTime", "/api/riff/batchSetRiffCardsDueTime", JSONBody, ResponseOptions{}, "POST")
-var ResetRiffCards = define[ResetRiffCardsRequest, Null]("resetRiffCards", "/api/riff/resetRiffCards", JSONBody, ResponseOptions{}, "POST")
-var GetNotebookRiffCards = define[RiffCardsRequest, RiffCardsData]("getNotebookRiffCards", "/api/riff/getNotebookRiffCards", JSONBody, ResponseOptions{}, "POST")
-var GetTreeRiffCards = define[RiffCardsRequest, RiffCardsData]("getTreeRiffCards", "/api/riff/getTreeRiffCards", JSONBody, ResponseOptions{}, "POST")
-var GetRiffCards = define[RiffCardsRequest, RiffCardsData]("getRiffCards", "/api/riff/getRiffCards", JSONBody, ResponseOptions{}, "POST")
-var ReviewRiffCard = define[ReviewRiffCardRequest, Null]("reviewRiffCard", "/api/riff/reviewRiffCard", JSONBody, ResponseOptions{}, "POST")
-var SkipReviewRiffCard = define[RiffCardRequest, Null]("skipReviewRiffCard", "/api/riff/skipReviewRiffCard", JSONBody, ResponseOptions{}, "POST")
-var GetNotebookRiffDueCards = define[RiffNotebookDueCardsRequest, RiffDueCardsData]("getNotebookRiffDueCards", "/api/riff/getNotebookRiffDueCards", JSONBody, ResponseOptions{}, "POST")
-var GetTreeRiffDueCards = define[RiffTreeDueCardsRequest, RiffDueCardsData]("getTreeRiffDueCards", "/api/riff/getTreeRiffDueCards", JSONBody, ResponseOptions{}, "POST")
-var GetRiffDueCards = define[RiffDueCardsRequest, RiffDueCardsData]("getRiffDueCards", "/api/riff/getRiffDueCards", JSONBody, ResponseOptions{}, "POST")
-var RemoveRiffCards = define[RiffDeckCardsRequest, *RiffDeck]("removeRiffCards", "/api/riff/removeRiffCards", JSONBody, ResponseOptions{}, "POST")
-var AddRiffCards = define[RiffDeckCardsRequest, *RiffDeck]("addRiffCards", "/api/riff/addRiffCards", JSONBody, ResponseOptions{}, "POST")
-var RenameRiffDeck = define[RenameRiffDeckRequest, Null]("renameRiffDeck", "/api/riff/renameRiffDeck", JSONBody, ResponseOptions{}, "POST")
-var RemoveRiffDeck = define[RiffDeckRequest, Null]("removeRiffDeck", "/api/riff/removeRiffDeck", JSONBody, ResponseOptions{}, "POST")
-var CreateRiffDeck = define[CreateRiffDeckRequest, *RiffDeck]("createRiffDeck", "/api/riff/createRiffDeck", JSONBody, ResponseOptions{}, "POST")
-var GetRiffDecks = define[EmptyRequest, []*RiffDeck]("getRiffDecks", "/api/riff/getRiffDecks", NoBody, ResponseOptions{NonNullable: true}, "POST")
-
-var SetRepoIndexRetentionDays = define[SetRepoIndexRetentionDaysRequest, Null]("setRepoIndexRetentionDays", "/api/repo/setRepoIndexRetentionDays", JSONBody, ResponseOptions{}, "POST")
-var SetRetentionIndexesDaily = define[SetRetentionIndexesDailyRequest, Null]("setRetentionIndexesDaily", "/api/repo/setRetentionIndexesDaily", JSONBody, ResponseOptions{}, "POST")
-var GetRepoFile = define[GetRepoFileRequest, BinaryContent]("getRepoFile", "/api/repo/getRepoFile", JSONBody, ResponseOptions{Output: BinaryOutput, ErrorStatus: 200}, "POST")
-var RollbackRepoSnapshotFile = define[RollbackRepoSnapshotFileRequest, Null]("rollbackRepoSnapshotFile", "/api/repo/rollbackRepoSnapshotFile", JSONBody, ResponseOptions{}, "POST")
-var OpenRepoSnapshotFile = define[OpenRepoSnapshotFileRequest, RepoOpenFileData]("openRepoSnapshotFile", "/api/repo/openRepoSnapshotFile", JSONBody, ResponseOptions{}, "POST")
-var DiffRepoSnapshots = define[DiffRepoSnapshotsRequest, RepoDiffData]("diffRepoSnapshots", "/api/repo/diffRepoSnapshots", JSONBody, ResponseOptions{}, "POST")
-var CheckoutRepo = define[CheckoutRepoRequest, Null]("checkoutRepo", "/api/repo/checkoutRepo", JSONBody, ResponseOptions{}, "POST")
-var DownloadCloudSnapshot = define[DownloadCloudSnapshotRequest, Null]("downloadCloudSnapshot", "/api/repo/downloadCloudSnapshot", JSONBody, ResponseOptions{}, "POST")
-var UploadCloudSnapshot = define[UploadCloudSnapshotRequest, Null]("uploadCloudSnapshot", "/api/repo/uploadCloudSnapshot", JSONBody, ResponseOptions{}, "POST")
-var GetRepoSnapshots = define[GetRepoSnapshotsRequest, RepoSnapshotsData]("getRepoSnapshots", "/api/repo/getRepoSnapshots", JSONBody, ResponseOptions{}, "POST")
-var SearchRepoFile = define[SearchRepoFileRequest, RepoSearchData]("searchRepoFile", "/api/repo/searchRepoFile", JSONBody, ResponseOptions{}, "POST")
-var GetRepoDocHistory = define[GetRepoDocHistoryRequest, RepoDocHistoryData]("getRepoDocHistory", "/api/repo/getRepoDocHistory", JSONBody, ResponseOptions{}, "POST")
-var ExportRepoFile = define[ExportRepoFileRequest, RepoExportData]("exportRepoFile", "/api/repo/exportRepoFile", JSONBody, ResponseOptions{}, "POST")
-var GetCloudRepoSnapshots = define[GetCloudRepoSnapshotsRequest, RepoCloudSnapshotsData]("getCloudRepoSnapshots", "/api/repo/getCloudRepoSnapshots", JSONBody, ResponseOptions{}, "POST")
-var GetCloudRepoTagSnapshots = define[EmptyRequest, RepoCloudTagsData]("getCloudRepoTagSnapshots", "/api/repo/getCloudRepoTagSnapshots", NoBody, ResponseOptions{}, "POST")
-var RemoveCloudRepoTagSnapshot = define[RemoveCloudRepoTagSnapshotRequest, Null]("removeCloudRepoTagSnapshot", "/api/repo/removeCloudRepoTagSnapshot", JSONBody, ResponseOptions{}, "POST")
-var GetRepoTagSnapshots = define[EmptyRequest, RepoTagsData]("getRepoTagSnapshots", "/api/repo/getRepoTagSnapshots", NoBody, ResponseOptions{}, "POST")
-var RemoveRepoTagSnapshot = define[RemoveRepoTagSnapshotRequest, Null]("removeRepoTagSnapshot", "/api/repo/removeRepoTagSnapshot", JSONBody, ResponseOptions{}, "POST")
-var TagSnapshot = define[TagSnapshotRequest, Null]("tagSnapshot", "/api/repo/tagSnapshot", JSONBody, ResponseOptions{}, "POST")
-var ImportRepoKey = define[ImportRepoKeyRequest, RepoKeyData]("importRepoKey", "/api/repo/importRepoKey", JSONBody, ResponseOptions{}, "POST")
-var InitRepoKeyFromPassphrase = define[InitRepoKeyFromPassphraseRequest, RepoKeyData]("initRepoKeyFromPassphrase", "/api/repo/initRepoKeyFromPassphrase", JSONBody, ResponseOptions{}, "POST")
-var InitRepoKey = define[EmptyRequest, RepoKeyData]("initRepoKey", "/api/repo/initRepoKey", NoBody, ResponseOptions{}, "POST")
-var ResetRepo = define[EmptyRequest, Null]("resetRepo", "/api/repo/resetRepo", NoBody, ResponseOptions{}, "POST")
-var PurgeRepo = define[EmptyRequest, Null]("purgeRepo", "/api/repo/purgeRepo", NoBody, ResponseOptions{}, "POST")
-var PurgeCloudRepo = define[EmptyRequest, Null]("purgeCloudRepo", "/api/repo/purgeCloudRepo", NoBody, ResponseOptions{}, "POST")
-
-var MoveLocalShorthands = define[FileTreeNotebookRequest, []string]("moveLocalShorthands", "/api/filetree/moveLocalShorthands", JSONBody, ResponseOptions{}, "POST")
-var ListDocTree = define[FileTreePathRequest, FileTreeDocTreeData]("listDocTree", "/api/filetree/listDocTree", JSONBody, ResponseOptions{}, "POST")
-var UpsertIndexes = define[FileTreePathsRequest, Null]("upsertIndexes", "/api/filetree/upsertIndexes", JSONBody, ResponseOptions{}, "POST")
-var RemoveIndexes = define[FileTreePathsRequest, Null]("removeIndexes", "/api/filetree/removeIndexes", JSONBody, ResponseOptions{}, "POST")
-var Doc2Heading = define[FileTreeDocHeadingRequest, FileTreeDocHeadingData]("doc2Heading", "/api/filetree/doc2Heading", JSONBody, ResponseOptions{}, "POST")
-var Heading2Doc = define[FileTreeHeadingDocRequest, Null]("heading2Doc", "/api/filetree/heading2Doc", JSONBody, ResponseOptions{}, "POST")
-var Li2Doc = define[FileTreeListItemDocRequest, Null]("li2Doc", "/api/filetree/li2Doc", JSONBody, ResponseOptions{}, "POST")
-var GetHPathByPath = define[FileTreePathRequest, string]("getHPathByPath", "/api/filetree/getHPathByPath", JSONBody, ResponseOptions{}, "POST")
-var GetHPathsByPaths = define[FileTreePathsRequest, []string]("getHPathsByPaths", "/api/filetree/getHPathsByPaths", JSONBody, ResponseOptions{}, "POST")
-var GetHPathByID = define[FileTreeIDRequest, string]("getHPathByID", "/api/filetree/getHPathByID", JSONBody, ResponseOptions{}, "POST")
-var GetPathByID = define[FileTreeTrimIDRequest, FileTreeDocPathData]("getPathByID", "/api/filetree/getPathByID", JSONBody, ResponseOptions{}, "POST")
-var GetFullHPathByID = define[FileTreeOptionalIDRequest, *string]("getFullHPathByID", "/api/filetree/getFullHPathByID", JSONBody, ResponseOptions{}, "POST")
-var GetIDsByHPath = define[FileTreeOptionalPathRequest, []string]("getIDsByHPath", "/api/filetree/getIDsByHPath", JSONBody, ResponseOptions{}, "POST")
-var MoveDocs = define[FileTreeMoveRequest, Null]("moveDocs", "/api/filetree/moveDocs", JSONBody, ResponseOptions{}, "POST")
-var MoveDocsByID = define[FileTreeMoveIDsRequest, Null]("moveDocsByID", "/api/filetree/moveDocsByID", JSONBody, ResponseOptions{}, "POST")
-var RemoveDoc = define[FileTreePathRequest, Null]("removeDoc", "/api/filetree/removeDoc", JSONBody, ResponseOptions{}, "POST")
-var RemoveDocByID = define[FileTreeTrimIDRequest, Null]("removeDocByID", "/api/filetree/removeDocByID", JSONBody, ResponseOptions{}, "POST")
-var RemoveDocs = define[FileTreePathsRequest, Null]("removeDocs", "/api/filetree/removeDocs", JSONBody, ResponseOptions{}, "POST")
-var RenameDoc = define[FileTreeRenameRequest, Null]("renameDoc", "/api/filetree/renameDoc", JSONBody, ResponseOptions{}, "POST")
-var RenameDocByID = define[FileTreeRenameIDRequest, Null]("renameDocByID", "/api/filetree/renameDocByID", JSONBody, ResponseOptions{}, "POST")
-var DuplicateDoc = define[FileTreeIDRequest, FileTreeDuplicateData]("duplicateDoc", "/api/filetree/duplicateDoc", JSONBody, ResponseOptions{}, "POST")
-var DuplicateDocTree = define[FileTreeIDRequest, FileTreeDuplicateData]("duplicateDocTree", "/api/filetree/duplicateDocTree", JSONBody, ResponseOptions{}, "POST")
-var CreateDoc = define[FileTreeCreateRequest, FileTreeCreateData]("createDoc", "/api/filetree/createDoc", JSONBody, ResponseOptions{}, "POST")
-var CreateDailyNote = define[FileTreeDailyNoteRequest, FileTreeCreateData]("createDailyNote", "/api/filetree/createDailyNote", JSONBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
-
-var GetDailyNoteInfo = define[DailyNoteInfoRequest, *DailyNoteInfo]("getDailyNoteInfo", "/api/filetree/getDailyNoteInfo", JSONBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
+var InstallBazaarTheme = define[InstallBazaarThemeRequest, BazaarAppearancePackagesData]("installBazaarTheme", "/api/bazaar/installBazaarTheme", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
+var UninstallBazaarTheme = define[UninstallBazaarThemeRequest, BazaarAppearancePackagesData]("uninstallBazaarTheme", "/api/bazaar/uninstallBazaarTheme", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
+
+var SetSyncEnable = define[SyncEnabledRequest, Null]("setSyncEnable", "/api/sync/setSyncEnable", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var SetSyncInterval = define[SyncIntervalRequest, Null]("setSyncInterval", "/api/sync/setSyncInterval", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var SetSyncPerception = define[SyncEnabledRequest, Null]("setSyncPerception", "/api/sync/setSyncPerception", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var SetSyncLAN = define[SyncLANRequest, SyncLANStatus]("setSyncLAN", "/api/sync/setSyncLAN", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var GetSyncLANStatus = define[EmptyRequest, SyncLANStatus]("getSyncLANStatus", "/api/sync/getSyncLANStatus", AuthenticatedAccess|AdminAccess, NoBody, ResponseOptions{}, "POST")
+var SetSyncGenerateConflictDoc = define[SyncEnabledRequest, Null]("setSyncGenerateConflictDoc", "/api/sync/setSyncGenerateConflictDoc", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var SetSyncMode = define[SyncModeRequest, Null]("setSyncMode", "/api/sync/setSyncMode", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var SetSyncProvider = define[SyncProviderRequest, Null]("setSyncProvider", "/api/sync/setSyncProvider", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var SetSyncProviderS3 = define[SetSyncS3Request, SyncS3Data]("setSyncProviderS3", "/api/sync/setSyncProviderS3", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var SetSyncProviderWebDAV = define[SetSyncWebDAVRequest, SyncWebDAVData]("setSyncProviderWebDAV", "/api/sync/setSyncProviderWebDAV", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var SetSyncProviderLocal = define[SetSyncLocalRequest, SyncLocalData]("setSyncProviderLocal", "/api/sync/setSyncProviderLocal", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var SetCloudSyncDir = define[SyncNameRequest, Null]("setCloudSyncDir", "/api/sync/setCloudSyncDir", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var SetSyncAssetDownloadMode = define[SyncModeRequest, SyncAssetDownloadModeData]("setSyncAssetDownloadMode", "/api/sync/setSyncAssetDownloadMode", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var CreateCloudSyncDir = define[SyncNameRequest, Null]("createCloudSyncDir", "/api/sync/createCloudSyncDir", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var RemoveCloudSyncDir = define[SyncNameRequest, string]("removeCloudSyncDir", "/api/sync/removeCloudSyncDir", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var ListCloudSyncDir = define[EmptyRequest, CloudSyncDirsData]("listCloudSyncDir", "/api/sync/listCloudSyncDir", AuthenticatedAccess|AdminAccess, NoBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
+var PerformSync = define[PerformSyncRequest, Null]("performSync", "/api/sync/performSync", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var PerformBootSync = define[EmptyRequest, Null]("performBootSync", "/api/sync/performBootSync", AuthenticatedAccess|AdminAccess|WritableAccess, NoBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
+var GetBootSync = define[EmptyRequest, Null]("getBootSync", "/api/sync/getBootSync", AuthenticatedAccess, NoBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
+var GetSyncInfo = define[EmptyRequest, SyncInfoData]("getSyncInfo", "/api/sync/getSyncInfo", AuthenticatedAccess|AdminAccess, NoBody, ResponseOptions{}, "POST")
+var ExportSyncProviderS3 = define[EmptyRequest, SyncProviderExportData]("exportSyncProviderS3", "/api/sync/exportSyncProviderS3", AuthenticatedAccess|AdminAccess, NoBody, ResponseOptions{}, "POST")
+var ImportSyncProviderS3 = define[SyncProviderImportRequest, SyncS3Data]("importSyncProviderS3", "/api/sync/importSyncProviderS3", AuthenticatedAccess|AdminAccess|WritableAccess, MultipartBody, ResponseOptions{DataOnError: true}, "POST")
+var ExportSyncProviderWebDAV = define[EmptyRequest, SyncProviderExportData]("exportSyncProviderWebDAV", "/api/sync/exportSyncProviderWebDAV", AuthenticatedAccess|AdminAccess, NoBody, ResponseOptions{}, "POST")
+var ImportSyncProviderWebDAV = define[SyncProviderImportRequest, SyncWebDAVData]("importSyncProviderWebDAV", "/api/sync/importSyncProviderWebDAV", AuthenticatedAccess|AdminAccess|WritableAccess, MultipartBody, ResponseOptions{DataOnError: true}, "POST")
+
+var GetRiffCardsByBlockIDs = define[RiffBlockIDsRequest, RiffBlocksData]("getRiffCardsByBlockIDs", "/api/riff/getRiffCardsByBlockIDs", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var BatchSetRiffCardsDueTime = define[SetRiffCardsDueRequest, Null]("batchSetRiffCardsDueTime", "/api/riff/batchSetRiffCardsDueTime", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var ResetRiffCards = define[ResetRiffCardsRequest, Null]("resetRiffCards", "/api/riff/resetRiffCards", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var GetNotebookRiffCards = define[RiffCardsRequest, RiffCardsData]("getNotebookRiffCards", "/api/riff/getNotebookRiffCards", AuthenticatedAccess|AdminAccess, JSONBody, ResponseOptions{}, "POST")
+var GetTreeRiffCards = define[RiffCardsRequest, RiffCardsData]("getTreeRiffCards", "/api/riff/getTreeRiffCards", AuthenticatedAccess|AdminAccess, JSONBody, ResponseOptions{}, "POST")
+var GetRiffCards = define[RiffCardsRequest, RiffCardsData]("getRiffCards", "/api/riff/getRiffCards", AuthenticatedAccess|AdminAccess, JSONBody, ResponseOptions{}, "POST")
+var ReviewRiffCard = define[ReviewRiffCardRequest, Null]("reviewRiffCard", "/api/riff/reviewRiffCard", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var SkipReviewRiffCard = define[RiffCardRequest, Null]("skipReviewRiffCard", "/api/riff/skipReviewRiffCard", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var GetNotebookRiffDueCards = define[RiffNotebookDueCardsRequest, RiffDueCardsData]("getNotebookRiffDueCards", "/api/riff/getNotebookRiffDueCards", AuthenticatedAccess|AdminAccess, JSONBody, ResponseOptions{}, "POST")
+var GetTreeRiffDueCards = define[RiffTreeDueCardsRequest, RiffDueCardsData]("getTreeRiffDueCards", "/api/riff/getTreeRiffDueCards", AuthenticatedAccess|AdminAccess, JSONBody, ResponseOptions{}, "POST")
+var GetRiffDueCards = define[RiffDueCardsRequest, RiffDueCardsData]("getRiffDueCards", "/api/riff/getRiffDueCards", AuthenticatedAccess|AdminAccess, JSONBody, ResponseOptions{}, "POST")
+var RemoveRiffCards = define[RiffDeckCardsRequest, *RiffDeck]("removeRiffCards", "/api/riff/removeRiffCards", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var AddRiffCards = define[RiffDeckCardsRequest, *RiffDeck]("addRiffCards", "/api/riff/addRiffCards", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var RenameRiffDeck = define[RenameRiffDeckRequest, Null]("renameRiffDeck", "/api/riff/renameRiffDeck", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var RemoveRiffDeck = define[RiffDeckRequest, Null]("removeRiffDeck", "/api/riff/removeRiffDeck", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var CreateRiffDeck = define[CreateRiffDeckRequest, *RiffDeck]("createRiffDeck", "/api/riff/createRiffDeck", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var GetRiffDecks = define[EmptyRequest, []*RiffDeck]("getRiffDecks", "/api/riff/getRiffDecks", AuthenticatedAccess|AdminAccess, NoBody, ResponseOptions{NonNullable: true}, "POST")
+
+var SetRepoIndexRetentionDays = define[SetRepoIndexRetentionDaysRequest, Null]("setRepoIndexRetentionDays", "/api/repo/setRepoIndexRetentionDays", AuthenticatedAccess|AdminAccess, JSONBody, ResponseOptions{}, "POST")
+var SetRetentionIndexesDaily = define[SetRetentionIndexesDailyRequest, Null]("setRetentionIndexesDaily", "/api/repo/setRetentionIndexesDaily", AuthenticatedAccess|AdminAccess, JSONBody, ResponseOptions{}, "POST")
+var GetRepoFile = define[GetRepoFileRequest, BinaryContent]("getRepoFile", "/api/repo/getRepoFile", AuthenticatedAccess|AdminAccess, JSONBody, ResponseOptions{Output: BinaryOutput, ErrorStatus: 200}, "POST")
+var RollbackRepoSnapshotFile = define[RollbackRepoSnapshotFileRequest, Null]("rollbackRepoSnapshotFile", "/api/repo/rollbackRepoSnapshotFile", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var OpenRepoSnapshotFile = define[OpenRepoSnapshotFileRequest, RepoOpenFileData]("openRepoSnapshotFile", "/api/repo/openRepoSnapshotFile", AuthenticatedAccess|AdminAccess, JSONBody, ResponseOptions{}, "POST")
+var DiffRepoSnapshots = define[DiffRepoSnapshotsRequest, RepoDiffData]("diffRepoSnapshots", "/api/repo/diffRepoSnapshots", AuthenticatedAccess|AdminAccess, JSONBody, ResponseOptions{}, "POST")
+var CheckoutRepo = define[CheckoutRepoRequest, Null]("checkoutRepo", "/api/repo/checkoutRepo", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var DownloadCloudSnapshot = define[DownloadCloudSnapshotRequest, Null]("downloadCloudSnapshot", "/api/repo/downloadCloudSnapshot", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var UploadCloudSnapshot = define[UploadCloudSnapshotRequest, Null]("uploadCloudSnapshot", "/api/repo/uploadCloudSnapshot", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var GetRepoSnapshots = define[GetRepoSnapshotsRequest, RepoSnapshotsData]("getRepoSnapshots", "/api/repo/getRepoSnapshots", AuthenticatedAccess|AdminAccess, JSONBody, ResponseOptions{}, "POST")
+var SearchRepoFile = define[SearchRepoFileRequest, RepoSearchData]("searchRepoFile", "/api/repo/searchRepoFile", AuthenticatedAccess|AdminAccess, JSONBody, ResponseOptions{}, "POST")
+var GetRepoDocHistory = define[GetRepoDocHistoryRequest, RepoDocHistoryData]("getRepoDocHistory", "/api/repo/getRepoDocHistory", AuthenticatedAccess|AdminAccess, JSONBody, ResponseOptions{}, "POST")
+var ExportRepoFile = define[ExportRepoFileRequest, RepoExportData]("exportRepoFile", "/api/repo/exportRepoFile", AuthenticatedAccess|AdminAccess, JSONBody, ResponseOptions{}, "POST")
+var GetCloudRepoSnapshots = define[GetCloudRepoSnapshotsRequest, RepoCloudSnapshotsData]("getCloudRepoSnapshots", "/api/repo/getCloudRepoSnapshots", AuthenticatedAccess|AdminAccess, JSONBody, ResponseOptions{}, "POST")
+var GetCloudRepoTagSnapshots = define[EmptyRequest, RepoCloudTagsData]("getCloudRepoTagSnapshots", "/api/repo/getCloudRepoTagSnapshots", AuthenticatedAccess|AdminAccess, NoBody, ResponseOptions{}, "POST")
+var RemoveCloudRepoTagSnapshot = define[RemoveCloudRepoTagSnapshotRequest, Null]("removeCloudRepoTagSnapshot", "/api/repo/removeCloudRepoTagSnapshot", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var GetRepoTagSnapshots = define[EmptyRequest, RepoTagsData]("getRepoTagSnapshots", "/api/repo/getRepoTagSnapshots", AuthenticatedAccess|AdminAccess, NoBody, ResponseOptions{}, "POST")
+var RemoveRepoTagSnapshot = define[RemoveRepoTagSnapshotRequest, Null]("removeRepoTagSnapshot", "/api/repo/removeRepoTagSnapshot", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var TagSnapshot = define[TagSnapshotRequest, Null]("tagSnapshot", "/api/repo/tagSnapshot", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var ImportRepoKey = define[ImportRepoKeyRequest, RepoKeyData]("importRepoKey", "/api/repo/importRepoKey", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var InitRepoKeyFromPassphrase = define[InitRepoKeyFromPassphraseRequest, RepoKeyData]("initRepoKeyFromPassphrase", "/api/repo/initRepoKeyFromPassphrase", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var InitRepoKey = define[EmptyRequest, RepoKeyData]("initRepoKey", "/api/repo/initRepoKey", AuthenticatedAccess|AdminAccess|WritableAccess, NoBody, ResponseOptions{}, "POST")
+var ResetRepo = define[EmptyRequest, Null]("resetRepo", "/api/repo/resetRepo", AuthenticatedAccess|AdminAccess|WritableAccess, NoBody, ResponseOptions{}, "POST")
+var PurgeRepo = define[EmptyRequest, Null]("purgeRepo", "/api/repo/purgeRepo", AuthenticatedAccess|AdminAccess|WritableAccess, NoBody, ResponseOptions{}, "POST")
+var PurgeCloudRepo = define[EmptyRequest, Null]("purgeCloudRepo", "/api/repo/purgeCloudRepo", AuthenticatedAccess|AdminAccess|WritableAccess, NoBody, ResponseOptions{}, "POST")
+
+var MoveLocalShorthands = define[FileTreeNotebookRequest, []string]("moveLocalShorthands", "/api/filetree/moveLocalShorthands", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var ListDocTree = define[FileTreePathRequest, FileTreeDocTreeData]("listDocTree", "/api/filetree/listDocTree", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var UpsertIndexes = define[FileTreePathsRequest, Null]("upsertIndexes", "/api/filetree/upsertIndexes", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var RemoveIndexes = define[FileTreePathsRequest, Null]("removeIndexes", "/api/filetree/removeIndexes", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var Doc2Heading = define[FileTreeDocHeadingRequest, FileTreeDocHeadingData]("doc2Heading", "/api/filetree/doc2Heading", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var Heading2Doc = define[FileTreeHeadingDocRequest, Null]("heading2Doc", "/api/filetree/heading2Doc", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var Li2Doc = define[FileTreeListItemDocRequest, Null]("li2Doc", "/api/filetree/li2Doc", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var GetHPathByPath = define[FileTreePathRequest, string]("getHPathByPath", "/api/filetree/getHPathByPath", AuthenticatedAccess, JSONBody, ResponseOptions{}, "POST")
+var GetHPathsByPaths = define[FileTreePathsRequest, []string]("getHPathsByPaths", "/api/filetree/getHPathsByPaths", AuthenticatedAccess, JSONBody, ResponseOptions{}, "POST")
+var GetHPathByID = define[FileTreeIDRequest, string]("getHPathByID", "/api/filetree/getHPathByID", AuthenticatedAccess, JSONBody, ResponseOptions{}, "POST")
+var GetPathByID = define[FileTreeTrimIDRequest, FileTreeDocPathData]("getPathByID", "/api/filetree/getPathByID", AuthenticatedAccess, JSONBody, ResponseOptions{}, "POST")
+var GetFullHPathByID = define[FileTreeOptionalIDRequest, *string]("getFullHPathByID", "/api/filetree/getFullHPathByID", AuthenticatedAccess, JSONBody, ResponseOptions{}, "POST")
+var GetIDsByHPath = define[FileTreeOptionalPathRequest, []string]("getIDsByHPath", "/api/filetree/getIDsByHPath", AuthenticatedAccess, JSONBody, ResponseOptions{}, "POST")
+var MoveDocs = define[FileTreeMoveRequest, Null]("moveDocs", "/api/filetree/moveDocs", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var MoveDocsByID = define[FileTreeMoveIDsRequest, Null]("moveDocsByID", "/api/filetree/moveDocsByID", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var RemoveDoc = define[FileTreePathRequest, Null]("removeDoc", "/api/filetree/removeDoc", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var RemoveDocByID = define[FileTreeTrimIDRequest, Null]("removeDocByID", "/api/filetree/removeDocByID", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var RemoveDocs = define[FileTreePathsRequest, Null]("removeDocs", "/api/filetree/removeDocs", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var RenameDoc = define[FileTreeRenameRequest, Null]("renameDoc", "/api/filetree/renameDoc", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var RenameDocByID = define[FileTreeRenameIDRequest, Null]("renameDocByID", "/api/filetree/renameDocByID", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var DuplicateDoc = define[FileTreeIDRequest, FileTreeDuplicateData]("duplicateDoc", "/api/filetree/duplicateDoc", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var DuplicateDocTree = define[FileTreeIDRequest, FileTreeDuplicateData]("duplicateDocTree", "/api/filetree/duplicateDocTree", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var CreateDoc = define[FileTreeCreateRequest, FileTreeCreateData]("createDoc", "/api/filetree/createDoc", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var CreateDailyNote = define[FileTreeDailyNoteRequest, FileTreeCreateData]("createDailyNote", "/api/filetree/createDailyNote", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
+
+var GetDailyNoteInfo = define[DailyNoteInfoRequest, *DailyNoteInfo]("getDailyNoteInfo", "/api/filetree/getDailyNoteInfo", AuthenticatedAccess|AdminAccess, JSONBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
// CreateDocWithMd 保留编辑器 Markdown 语法选项,并按 ImportStdMd 的规则自动转换标准脚注。
// 请求字段、文档 ID 响应和笔记本权限规则不变;转义的脚注语法可用于保留字面文本。
-var CreateDocWithMd = define[FileTreeCreateMarkdownRequest, string]("createDocWithMd", "/api/filetree/createDocWithMd", JSONBody, ResponseOptions{}, "POST")
-var GetDocCreateSavePath = define[FileTreeNotebookRequest, FileTreeCreateSavePathData]("getDocCreateSavePath", "/api/filetree/getDocCreateSavePath", JSONBody, ResponseOptions{}, "POST")
-var GetRefCreateSavePath = define[FileTreeNotebookRequest, FileTreeSavePathData]("getRefCreateSavePath", "/api/filetree/getRefCreateSavePath", JSONBody, ResponseOptions{}, "POST")
-var GetShorthandSavePath = define[FileTreeNotebookRequest, FileTreeSavePathData]("getShorthandSavePath", "/api/filetree/getShorthandSavePath", JSONBody, ResponseOptions{}, "POST")
-var ChangeSort = define[FileTreeChangeSortRequest, Null]("changeSort", "/api/filetree/changeSort", JSONBody, ResponseOptions{}, "POST")
-var ReorderDocs = define[FileTreeReorderRequest, *FileTreeReorderData]("reorderDocs", "/api/filetree/reorderDocs", StructJSONBody, ResponseOptions{DataOnError: true}, "POST")
-var SetSort = define[FileTreeSetSortRequest, *FileTreeSetSortData]("setSort", "/api/filetree/setSort", StructJSONBody, ResponseOptions{DataOnError: true}, "POST")
-var SetDocSortMode = define[FileTreeSortModeRequest, *FileTreeSortModeData]("setDocSortMode", "/api/filetree/setDocSortMode", StructJSONBody, ResponseOptions{DataOnError: true}, "POST")
-var SearchDocs = define[FileTreeSearchRequest, []*FileTreeSearchDoc]("searchDocs", "/api/filetree/searchDocs", JSONBody, ResponseOptions{}, "POST")
-var ListDocsByPath = define[FileTreeListRequest, FileTreeListData]("listDocsByPath", "/api/filetree/listDocsByPath", JSONBody, ResponseOptions{}, "POST")
-var GetDoc = define[FileTreeGetDocRequest, FileTreeGetDocData]("getDoc", "/api/filetree/getDoc", JSONBody, ResponseOptions{AdditionalCodes: []int{1, 3}}, "POST")
-var SetPublishAccess = define[FileTreeSetPublishRequest, Null]("setPublishAccess", "/api/filetree/setPublishAccess", JSONBody, ResponseOptions{}, "POST")
-var GetPublishAccess = define[FileTreePublishIDsRequest, FileTreePublishData]("getPublishAccess", "/api/filetree/getPublishAccess", JSONBody, ResponseOptions{}, "POST")
-var AuthFilePublishAccess = define[FileTreeAuthPublishRequest, Null]("authFilePublishAccess", "/api/filetree/authFilePublishAccess", JSONBody, ResponseOptions{AdditionalErrorStatuses: []int{429}}, "POST")
-
-var ExportCodeBlock = define[ExportIDRequest, ExportPathData]("exportCodeBlock", "/api/export/exportCodeBlock", JSONBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
-var ExportAttributeView = define[ExportAttributeViewRequest, ExportZipData]("exportAttributeView", "/api/export/exportAttributeView", JSONBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
-var Export2Liandi = define[ExportIDRequest, Null]("export2Liandi", "/api/export/export2Liandi", JSONBody, ResponseOptions{}, "POST")
-var ExportDataInFolder = define[ExportFolderRequest, ExportNameData]("exportDataInFolder", "/api/export/exportDataInFolder", JSONBody, ResponseOptions{}, "POST")
-var ExportData = define[EmptyRequest, ExportZipData]("exportData", "/api/export/exportData", NoBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
-var ExportResources = define[ExportResourcesRequest, ExportPathData]("exportResources", "/api/export/exportResources", JSONBody, ResponseOptions{AdditionalCodes: []int{1}, Text: true}, "POST")
-var ExportNotebookMd = define[ExportNotebookMarkdownRequest, ExportNamedZipData]("exportNotebookMd", "/api/export/exportNotebookMd", JSONBody, ResponseOptions{}, "POST")
-var ExportNotebooksMd = define[ExportNotebooksMarkdownRequest, ExportNamedZipData]("exportNotebooksMd", "/api/export/exportNotebooksMd", JSONBody, ResponseOptions{}, "POST")
-var ExportMds = define[ExportDocumentsMarkdownRequest, ExportNamedZipData]("exportMds", "/api/export/exportMds", JSONBody, ResponseOptions{}, "POST")
-var ExportMd = define[ExportMarkdownRequest, ExportNamedZipData]("exportMd", "/api/export/exportMd", JSONBody, ResponseOptions{}, "POST")
-var ExportNotebookSY = define[ExportIDRequest, ExportZipData]("exportNotebookSY", "/api/export/exportNotebookSY", JSONBody, ResponseOptions{}, "POST")
-var ExportNotebooksSY = define[ExportNotebooksRequest, ExportZipData]("exportNotebooksSY", "/api/export/exportNotebooksSY", JSONBody, ResponseOptions{}, "POST")
-var ExportSYs = define[ExportIDsRequest, ExportZipData]("exportSYs", "/api/export/exportSYs", JSONBody, ResponseOptions{}, "POST")
-var ExportSY = define[ExportIDRequest, ExportZipData]("exportSY", "/api/export/exportSY", JSONBody, ResponseOptions{}, "POST")
-var ExportMdContent = define[ExportMarkdownContentRequest, ExportMarkdownContentData]("exportMdContent", "/api/export/exportMdContent", JSONBody, ResponseOptions{}, "POST")
-var ExportDocx = define[ExportDocxRequest, ExportPathData]("exportDocx", "/api/export/exportDocx", JSONBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
-var ExportMdHTML = define[ExportMarkdownHTMLRequest, ExportHTMLData]("exportMdHTML", "/api/export/exportMdHTML", JSONBody, ResponseOptions{}, "POST")
-var ExportTempContent = define[ExportTempContentRequest, ExportURLData]("exportTempContent", "/api/export/exportTempContent", JSONBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
-var ExportBrowserHTML = define[ExportBrowserHTMLRequest, ExportZipData]("exportBrowserHTML", "/api/export/exportBrowserHTML", JSONBody, ResponseOptions{}, "POST")
-var ExportPreviewHTML = define[ExportPreviewHTMLRequest, ExportPreviewHTMLData]("exportPreviewHTML", "/api/export/exportPreviewHTML", JSONBody, ResponseOptions{}, "POST")
-var ExportHTML = define[ExportHTMLRequest, ExportHTMLData]("exportHTML", "/api/export/exportHTML", JSONBody, ResponseOptions{}, "POST")
-var ProcessPDF = define[ProcessPDFRequest, Null]("processPDF", "/api/export/processPDF", JSONBody, ResponseOptions{}, "POST")
-var ExportPreview = define[ExportIDRequest, ExportPreviewData]("exportPreview", "/api/export/preview", JSONBody, ResponseOptions{}, "POST")
-var ExportAsFile = define[ExportAsFileRequest, ExportFileData]("exportAsFile", "/api/export/exportAsFile", MultipartBody, ResponseOptions{}, "POST")
-var CopyExportFile = define[CopyExportFileRequest, Null]("copyExportFile", "/api/export/copyExportFile", JSONBody, ResponseOptions{AdditionalCodes: []int{-2}}, "POST")
-var ExportEPUB = define[ExportIDRequest, ExportNamedZipData]("exportEPUB", "/api/export/exportEPUB", JSONBody, ResponseOptions{}, "POST")
-var ExportRTF = define[ExportIDRequest, ExportNamedZipData]("exportRTF", "/api/export/exportRTF", JSONBody, ResponseOptions{}, "POST")
-var ExportODT = define[ExportIDRequest, ExportNamedZipData]("exportODT", "/api/export/exportODT", JSONBody, ResponseOptions{}, "POST")
-var ExportMediaWiki = define[ExportIDRequest, ExportNamedZipData]("exportMediaWiki", "/api/export/exportMediaWiki", JSONBody, ResponseOptions{}, "POST")
-var ExportOrgMode = define[ExportIDRequest, ExportNamedZipData]("exportOrgMode", "/api/export/exportOrgMode", JSONBody, ResponseOptions{}, "POST")
-var ExportOPML = define[ExportIDRequest, ExportNamedZipData]("exportOPML", "/api/export/exportOPML", JSONBody, ResponseOptions{}, "POST")
-var ExportTextile = define[ExportIDRequest, ExportNamedZipData]("exportTextile", "/api/export/exportTextile", JSONBody, ResponseOptions{}, "POST")
-var ExportAsciiDoc = define[ExportIDRequest, ExportNamedZipData]("exportAsciiDoc", "/api/export/exportAsciiDoc", JSONBody, ResponseOptions{}, "POST")
-var ExportReStructuredText = define[ExportIDRequest, ExportNamedZipData]("exportReStructuredText", "/api/export/exportReStructuredText", JSONBody, ResponseOptions{}, "POST")
-
-var StatAsset = define[AssetPathRequest, AssetStatData]("statAsset", "/api/asset/statAsset", JSONBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
-var FullReindexAssetContent = define[EmptyRequest, Null]("fullReindexAssetContent", "/api/asset/fullReindexAssetContent", NoBody, ResponseOptions{}, "POST")
-var GetImageOCRText = define[AssetOCRTextRequest, AssetTextData]("getImageOCRText", "/api/asset/getImageOCRText", JSONBody, ResponseOptions{}, "POST")
-var SetImageOCRText = define[SetAssetOCRTextRequest, Null]("setImageOCRText", "/api/asset/setImageOCRText", JSONBody, ResponseOptions{}, "POST")
+var CreateDocWithMd = define[FileTreeCreateMarkdownRequest, string]("createDocWithMd", "/api/filetree/createDocWithMd", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var GetDocCreateSavePath = define[FileTreeNotebookRequest, FileTreeCreateSavePathData]("getDocCreateSavePath", "/api/filetree/getDocCreateSavePath", AuthenticatedAccess, JSONBody, ResponseOptions{}, "POST")
+var GetRefCreateSavePath = define[FileTreeNotebookRequest, FileTreeSavePathData]("getRefCreateSavePath", "/api/filetree/getRefCreateSavePath", AuthenticatedAccess, JSONBody, ResponseOptions{}, "POST")
+var GetShorthandSavePath = define[FileTreeNotebookRequest, FileTreeSavePathData]("getShorthandSavePath", "/api/filetree/getShorthandSavePath", AuthenticatedAccess, JSONBody, ResponseOptions{}, "POST")
+var ChangeSort = define[FileTreeChangeSortRequest, Null]("changeSort", "/api/filetree/changeSort", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var ReorderDocs = define[FileTreeReorderRequest, *FileTreeReorderData]("reorderDocs", "/api/filetree/reorderDocs", AuthenticatedAccess|AdminAccess|WritableAccess, StructJSONBody, ResponseOptions{DataOnError: true}, "POST")
+var SetSort = define[FileTreeSetSortRequest, *FileTreeSetSortData]("setSort", "/api/filetree/setSort", AuthenticatedAccess|AdminAccess|WritableAccess, StructJSONBody, ResponseOptions{DataOnError: true}, "POST")
+var SetDocSortMode = define[FileTreeSortModeRequest, *FileTreeSortModeData]("setDocSortMode", "/api/filetree/setDocSortMode", AuthenticatedAccess|AdminAccess|WritableAccess, StructJSONBody, ResponseOptions{DataOnError: true}, "POST")
+var SearchDocs = define[FileTreeSearchRequest, []*FileTreeSearchDoc]("searchDocs", "/api/filetree/searchDocs", AuthenticatedAccess, JSONBody, ResponseOptions{}, "POST")
+var ListDocsByPath = define[FileTreeListRequest, FileTreeListData]("listDocsByPath", "/api/filetree/listDocsByPath", AuthenticatedAccess, JSONBody, ResponseOptions{}, "POST")
+var GetDoc = define[FileTreeGetDocRequest, FileTreeGetDocData]("getDoc", "/api/filetree/getDoc", AuthenticatedAccess, JSONBody, ResponseOptions{AdditionalCodes: []int{1, 3}}, "POST")
+var SetPublishAccess = define[FileTreeSetPublishRequest, Null]("setPublishAccess", "/api/filetree/setPublishAccess", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var GetPublishAccess = define[FileTreePublishIDsRequest, FileTreePublishData]("getPublishAccess", "/api/filetree/getPublishAccess", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var AuthFilePublishAccess = define[FileTreeAuthPublishRequest, Null]("authFilePublishAccess", "/api/filetree/authFilePublishAccess", AuthenticatedAccess, JSONBody, ResponseOptions{AdditionalErrorStatuses: []int{429}}, "POST")
+
+var ExportCodeBlock = define[ExportIDRequest, ExportPathData]("exportCodeBlock", "/api/export/exportCodeBlock", AuthenticatedAccess|AdminAccess, JSONBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
+var ExportAttributeView = define[ExportAttributeViewRequest, ExportZipData]("exportAttributeView", "/api/export/exportAttributeView", AuthenticatedAccess|AdminAccess, JSONBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
+var Export2Liandi = define[ExportIDRequest, Null]("export2Liandi", "/api/export/export2Liandi", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var ExportDataInFolder = define[ExportFolderRequest, ExportNameData]("exportDataInFolder", "/api/export/exportDataInFolder", AuthenticatedAccess|AdminAccess, JSONBody, ResponseOptions{}, "POST")
+var ExportData = define[EmptyRequest, ExportZipData]("exportData", "/api/export/exportData", AuthenticatedAccess|AdminAccess, NoBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
+var ExportResources = define[ExportResourcesRequest, ExportPathData]("exportResources", "/api/export/exportResources", AuthenticatedAccess|AdminAccess, JSONBody, ResponseOptions{AdditionalCodes: []int{1}, Text: true}, "POST")
+var ExportNotebookMd = define[ExportNotebookMarkdownRequest, ExportNamedZipData]("exportNotebookMd", "/api/export/exportNotebookMd", AuthenticatedAccess|AdminAccess, JSONBody, ResponseOptions{}, "POST")
+var ExportNotebooksMd = define[ExportNotebooksMarkdownRequest, ExportNamedZipData]("exportNotebooksMd", "/api/export/exportNotebooksMd", AuthenticatedAccess|AdminAccess, JSONBody, ResponseOptions{}, "POST")
+var ExportMds = define[ExportDocumentsMarkdownRequest, ExportNamedZipData]("exportMds", "/api/export/exportMds", AuthenticatedAccess|AdminAccess, JSONBody, ResponseOptions{}, "POST")
+var ExportMd = define[ExportMarkdownRequest, ExportNamedZipData]("exportMd", "/api/export/exportMd", AuthenticatedAccess|AdminAccess, JSONBody, ResponseOptions{}, "POST")
+var ExportNotebookSY = define[ExportIDRequest, ExportZipData]("exportNotebookSY", "/api/export/exportNotebookSY", AuthenticatedAccess|AdminAccess, JSONBody, ResponseOptions{}, "POST")
+var ExportNotebooksSY = define[ExportNotebooksRequest, ExportZipData]("exportNotebooksSY", "/api/export/exportNotebooksSY", AuthenticatedAccess|AdminAccess, JSONBody, ResponseOptions{}, "POST")
+var ExportSYs = define[ExportIDsRequest, ExportZipData]("exportSYs", "/api/export/exportSYs", AuthenticatedAccess|AdminAccess, JSONBody, ResponseOptions{}, "POST")
+var ExportSY = define[ExportIDRequest, ExportZipData]("exportSY", "/api/export/exportSY", AuthenticatedAccess|AdminAccess, JSONBody, ResponseOptions{}, "POST")
+var ExportMdContent = define[ExportMarkdownContentRequest, ExportMarkdownContentData]("exportMdContent", "/api/export/exportMdContent", AuthenticatedAccess|AdminAccess, JSONBody, ResponseOptions{}, "POST")
+var ExportDocx = define[ExportDocxRequest, ExportPathData]("exportDocx", "/api/export/exportDocx", AuthenticatedAccess|AdminAccess, JSONBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
+var ExportMdHTML = define[ExportMarkdownHTMLRequest, ExportHTMLData]("exportMdHTML", "/api/export/exportMdHTML", AuthenticatedAccess|AdminAccess, JSONBody, ResponseOptions{}, "POST")
+var ExportTempContent = define[ExportTempContentRequest, ExportURLData]("exportTempContent", "/api/export/exportTempContent", AuthenticatedAccess|AdminAccess, JSONBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
+var ExportBrowserHTML = define[ExportBrowserHTMLRequest, ExportZipData]("exportBrowserHTML", "/api/export/exportBrowserHTML", AuthenticatedAccess|AdminAccess, JSONBody, ResponseOptions{}, "POST")
+var ExportPreviewHTML = define[ExportPreviewHTMLRequest, ExportPreviewHTMLData]("exportPreviewHTML", "/api/export/exportPreviewHTML", AuthenticatedAccess|AdminAccess, JSONBody, ResponseOptions{}, "POST")
+var ExportHTML = define[ExportHTMLRequest, ExportHTMLData]("exportHTML", "/api/export/exportHTML", AuthenticatedAccess|AdminAccess, JSONBody, ResponseOptions{}, "POST")
+var ProcessPDF = define[ProcessPDFRequest, Null]("processPDF", "/api/export/processPDF", AuthenticatedAccess|AdminAccess, JSONBody, ResponseOptions{}, "POST")
+var ExportPreview = define[ExportIDRequest, ExportPreviewData]("exportPreview", "/api/export/preview", AuthenticatedAccess, JSONBody, ResponseOptions{}, "POST")
+var ExportAsFile = define[ExportAsFileRequest, ExportFileData]("exportAsFile", "/api/export/exportAsFile", AuthenticatedAccess|AdminAccess, MultipartBody, ResponseOptions{}, "POST")
+var CopyExportFile = define[CopyExportFileRequest, Null]("copyExportFile", "/api/export/copyExportFile", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{AdditionalCodes: []int{-2}}, "POST")
+var ExportEPUB = define[ExportIDRequest, ExportNamedZipData]("exportEPUB", "/api/export/exportEPUB", AuthenticatedAccess|AdminAccess, JSONBody, ResponseOptions{}, "POST")
+var ExportRTF = define[ExportIDRequest, ExportNamedZipData]("exportRTF", "/api/export/exportRTF", AuthenticatedAccess|AdminAccess, JSONBody, ResponseOptions{}, "POST")
+var ExportODT = define[ExportIDRequest, ExportNamedZipData]("exportODT", "/api/export/exportODT", AuthenticatedAccess|AdminAccess, JSONBody, ResponseOptions{}, "POST")
+var ExportMediaWiki = define[ExportIDRequest, ExportNamedZipData]("exportMediaWiki", "/api/export/exportMediaWiki", AuthenticatedAccess|AdminAccess, JSONBody, ResponseOptions{}, "POST")
+var ExportOrgMode = define[ExportIDRequest, ExportNamedZipData]("exportOrgMode", "/api/export/exportOrgMode", AuthenticatedAccess|AdminAccess, JSONBody, ResponseOptions{}, "POST")
+var ExportOPML = define[ExportIDRequest, ExportNamedZipData]("exportOPML", "/api/export/exportOPML", AuthenticatedAccess|AdminAccess, JSONBody, ResponseOptions{}, "POST")
+var ExportTextile = define[ExportIDRequest, ExportNamedZipData]("exportTextile", "/api/export/exportTextile", AuthenticatedAccess|AdminAccess, JSONBody, ResponseOptions{}, "POST")
+var ExportAsciiDoc = define[ExportIDRequest, ExportNamedZipData]("exportAsciiDoc", "/api/export/exportAsciiDoc", AuthenticatedAccess|AdminAccess, JSONBody, ResponseOptions{}, "POST")
+var ExportReStructuredText = define[ExportIDRequest, ExportNamedZipData]("exportReStructuredText", "/api/export/exportReStructuredText", AuthenticatedAccess|AdminAccess, JSONBody, ResponseOptions{}, "POST")
+
+var StatAsset = define[AssetPathRequest, AssetStatData]("statAsset", "/api/asset/statAsset", AuthenticatedAccess|AdminAccess, JSONBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
+var FullReindexAssetContent = define[EmptyRequest, Null]("fullReindexAssetContent", "/api/asset/fullReindexAssetContent", AuthenticatedAccess|AdminAccess|WritableAccess, NoBody, ResponseOptions{}, "POST")
+var GetImageOCRText = define[AssetOCRTextRequest, AssetTextData]("getImageOCRText", "/api/asset/getImageOCRText", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var SetImageOCRText = define[SetAssetOCRTextRequest, Null]("setImageOCRText", "/api/asset/setImageOCRText", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
// AssetOCR 始终使用当前设备选择的提供商,内核可在无界面的环境中识别。
// ai 使用设备保存的 aiModelId,返回原样文本和空 ocrJSON,不虚构坐标;本地提供商保持 TSV 数据。
// 不自动回退到另一提供商;取消、模型或推理错误不覆盖已有文本,加密笔记本不参与 OCR。
-var AssetOCR = define[AssetPathRequest, AssetOCRData]("ocr", "/api/asset/ocr", JSONBody, ResponseOptions{}, "POST")
+var AssetOCR = define[AssetPathRequest, AssetOCRData]("ocr", "/api/asset/ocr", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
// AIOCR 手动调用设备选择的 OCR AI 模型识别本地 assets/ 图片,不使用会话、工具。
// 未保存独立模型且本地提供商仍被选中时兼容智能体模型;显式模型失效时返回错误,不回退。
@@ -885,255 +886,255 @@ var AssetOCR = define[AssetPathRequest, AssetOCRData]("ocr", "/api/asset/ocr", J
// 请求上限为两分钟,提供商配置的更短超时仍生效;模型不支持图片时返回错误,不降级为纯文本请求。
// 成功将完整文本(含换行和空白,图片无文字时可为空)保存到现有 OCR 存储并更新索引。
// 失败、取消、拒绝或截断时保留已有文本;不返回虚构的坐标和置信度。
-var AIOCR = define[AssetPathRequest, AssetTextData]("aiOCR", "/api/ai/ocr", JSONBody, ResponseOptions{}, "POST")
-
-var GetOCRConfig = define[EmptyRequest, OCRConfigData]("getOCRConfig", "/api/asset/getOCRConfig", JSONBody, ResponseOptions{}, "POST")
-var SetOCRConfig = define[SettingOCR, SettingOCR]("setOCRConfig", "/api/asset/setOCRConfig", JSONBody, ResponseOptions{}, "POST")
-var ImportOCRModels = define[ImportOCRModelsRequest, OCRModel]("importOCRModels", "/api/asset/importOCRModels", MultipartBody, ResponseOptions{}, "POST")
-var RenameAsset = define[RenameAssetRequest, AssetRenameData]("renameAsset", "/api/asset/renameAsset", JSONBody, ResponseOptions{}, "POST")
-var FindAssetReferences = define[FindAssetReferencesRequest, AssetReferencesData]("findAssetReferences", "/api/asset/findAssetReferences", JSONBody, ResponseOptions{DataOnError: true}, "POST")
-var RelinkAsset = define[RelinkAssetRequest, AssetReferencesData]("relinkAsset", "/api/asset/relinkAsset", JSONBody, ResponseOptions{DataOnError: true}, "POST")
-var GetDocImageAssets = define[AssetDocumentRequest, []string]("getDocImageAssets", "/api/asset/getDocImageAssets", JSONBody, ResponseOptions{}, "POST")
-var GetDocAssets = define[AssetDocumentAssetsRequest, []string]("getDocAssets", "/api/asset/getDocAssets", JSONBody, ResponseOptions{}, "POST")
-var SetFileAnnotation = define[SetAssetAnnotationRequest, Null]("setFileAnnotation", "/api/asset/setFileAnnotation", JSONBody, ResponseOptions{}, "POST")
-var GetFileAnnotation = define[AssetPathRequest, AssetAnnotationData]("getFileAnnotation", "/api/asset/getFileAnnotation", JSONBody, ResponseOptions{AdditionalCodes: []int{1, 403}}, "POST")
+var AIOCR = define[AssetPathRequest, AssetTextData]("aiOCR", "/api/ai/ocr", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+
+var GetOCRConfig = define[EmptyRequest, OCRConfigData]("getOCRConfig", "/api/asset/getOCRConfig", AuthenticatedAccess|AdminAccess, JSONBody, ResponseOptions{}, "POST")
+var SetOCRConfig = define[SettingOCR, SettingOCR]("setOCRConfig", "/api/asset/setOCRConfig", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var ImportOCRModels = define[ImportOCRModelsRequest, OCRModel]("importOCRModels", "/api/asset/importOCRModels", AuthenticatedAccess|AdminAccess|WritableAccess, MultipartBody, ResponseOptions{}, "POST")
+var RenameAsset = define[RenameAssetRequest, AssetRenameData]("renameAsset", "/api/asset/renameAsset", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var FindAssetReferences = define[FindAssetReferencesRequest, AssetReferencesData]("findAssetReferences", "/api/asset/findAssetReferences", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{DataOnError: true}, "POST")
+var RelinkAsset = define[RelinkAssetRequest, AssetReferencesData]("relinkAsset", "/api/asset/relinkAsset", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{DataOnError: true}, "POST")
+var GetDocImageAssets = define[AssetDocumentRequest, []string]("getDocImageAssets", "/api/asset/getDocImageAssets", AuthenticatedAccess, JSONBody, ResponseOptions{}, "POST")
+var GetDocAssets = define[AssetDocumentAssetsRequest, []string]("getDocAssets", "/api/asset/getDocAssets", AuthenticatedAccess, JSONBody, ResponseOptions{}, "POST")
+var SetFileAnnotation = define[SetAssetAnnotationRequest, Null]("setFileAnnotation", "/api/asset/setFileAnnotation", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var GetFileAnnotation = define[AssetPathRequest, AssetAnnotationData]("getFileAnnotation", "/api/asset/getFileAnnotation", AuthenticatedAccess, JSONBody, ResponseOptions{AdditionalCodes: []int{1, 403}}, "POST")
// path 为 data 相对资源路径。仅全局 assets/android-notification-texts.txt 普通文件允许显式删除,
// 无需未引用扫描;该文件仍不参与未引用资源列表和批量清理。其余资源必须经完整扫描确认未被引用。
-var RemoveUnusedAsset = define[AssetPathRequest, AssetPathData]("removeUnusedAsset", "/api/asset/removeUnusedAsset", JSONBody, ResponseOptions{}, "POST")
+var RemoveUnusedAsset = define[AssetPathRequest, AssetPathData]("removeUnusedAsset", "/api/asset/removeUnusedAsset", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
// 未引用资源扫描失败时返回标准错误,禁止使用不完整的引用集合清理资源。
-var RemoveUnusedAssets = define[EmptyRequest, AssetPathsData]("removeUnusedAssets", "/api/asset/removeUnusedAssets", NoBody, ResponseOptions{}, "POST")
+var RemoveUnusedAssets = define[EmptyRequest, AssetPathsData]("removeUnusedAssets", "/api/asset/removeUnusedAssets", AuthenticatedAccess|AdminAccess|WritableAccess, NoBody, ResponseOptions{}, "POST")
// 扫描失败返回标准错误,不将失败表示为成功的空列表。
// 可选请求头 X-SiYuan-App-ID 将截断提示限定到对应前端,未提供时保留广播行为。
-var GetUnusedAssets = define[EmptyRequest, []*AssetUnusedItem]("getUnusedAssets", "/api/asset/getUnusedAssets", NoBody, ResponseOptions{}, "POST")
-var GetMissingAssets = define[EmptyRequest, []*AssetUnusedItem]("getMissingAssets", "/api/asset/getMissingAssets", NoBody, ResponseOptions{}, "POST")
+var GetUnusedAssets = define[EmptyRequest, []*AssetUnusedItem]("getUnusedAssets", "/api/asset/getUnusedAssets", AuthenticatedAccess|AdminAccess, NoBody, ResponseOptions{}, "POST")
+var GetMissingAssets = define[EmptyRequest, []*AssetUnusedItem]("getMissingAssets", "/api/asset/getMissingAssets", AuthenticatedAccess|AdminAccess, NoBody, ResponseOptions{}, "POST")
// ResolveAssetPath 返回普通资源路径;已解锁的加密资源返回保留原始名称的受管临时明文副本路径。
-var ResolveAssetPath = define[AssetPathRequest, string]("resolveAssetPath", "/api/asset/resolveAssetPath", JSONBody, ResponseOptions{}, "POST")
+var ResolveAssetPath = define[AssetPathRequest, string]("resolveAssetPath", "/api/asset/resolveAssetPath", AuthenticatedAccess|AdminAccess, JSONBody, ResponseOptions{}, "POST")
// 上传提示生命周期使用可选请求头 X-SiYuan-App-ID 定向;无标识时广播,状态栏仍全局更新。
-var AssetUploadCloud = define[AssetCloudUploadRequest, Null]("uploadCloud", "/api/asset/uploadCloud", JSONBody, ResponseOptions{}, "POST")
+var AssetUploadCloud = define[AssetCloudUploadRequest, Null]("uploadCloud", "/api/asset/uploadCloud", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
// 上传提示生命周期使用可选请求头 X-SiYuan-App-ID 定向;无标识时广播,保留 ignorePushMsg 语义。
-var AssetUploadCloudByAssetsPaths = define[AssetPathsCloudUploadRequest, Null]("uploadCloudByAssetsPaths", "/api/asset/uploadCloudByAssetsPaths", JSONBody, ResponseOptions{}, "POST")
-var InsertLocalAssets = define[InsertLocalAssetsRequest, AssetUploadData]("insertLocalAssets", "/api/asset/insertLocalAssets", JSONBody, ResponseOptions{DataOnError: true}, "POST")
-var InsertCover = define[InsertCoverRequest, AssetInsertCoverData]("insertCover", "/api/asset/insertCover", JSONBody, ResponseOptions{}, "POST")
-var UploadAsset = define[UploadAssetRequest, AssetUploadData]("uploadAsset", "/api/asset/upload", MultipartBody, ResponseOptions{}, "POST")
-
-var SetConfSnippet = define[SetConfSnippetRequest, *SettingSnpt]("setConfSnippet", "/api/setting/setSnippet", JSONBody, ResponseOptions{}, "POST")
-var SetBazaar = define[SetBazaarRequest, *SettingBazaar]("setBazaar", "/api/setting/setBazaar", JSONBody, ResponseOptions{}, "POST")
-var SetAI = define[SetAIRequest, *SettingAI]("setAI", "/api/setting/setAI", JSONBody, ResponseOptions{}, "POST")
-var SetSecrets = define[SetSecretsRequest, *SettingSecrets]("setSecrets", "/api/setting/setSecrets", JSONBody, ResponseOptions{}, "POST")
-var SetVariables = define[SetVariablesRequest, *SettingVariables]("setVariables", "/api/setting/setVariables", JSONBody, ResponseOptions{}, "POST")
-var SetFlashcard = define[SetFlashcardRequest, *SettingFlashcard]("setFlashcard", "/api/setting/setFlashcard", JSONBody, ResponseOptions{}, "POST")
-var SetEditor = define[SetEditorRequest, *SettingEditor]("setEditor", "/api/setting/setEditor", JSONBody, ResponseOptions{}, "POST")
+var AssetUploadCloudByAssetsPaths = define[AssetPathsCloudUploadRequest, Null]("uploadCloudByAssetsPaths", "/api/asset/uploadCloudByAssetsPaths", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var InsertLocalAssets = define[InsertLocalAssetsRequest, AssetUploadData]("insertLocalAssets", "/api/asset/insertLocalAssets", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{DataOnError: true}, "POST")
+var InsertCover = define[InsertCoverRequest, AssetInsertCoverData]("insertCover", "/api/asset/insertCover", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var UploadAsset = define[UploadAssetRequest, AssetUploadData]("uploadAsset", "/api/asset/upload", AuthenticatedAccess|AdminAccess|WritableAccess, MultipartBody, ResponseOptions{}, "POST")
+
+var SetConfSnippet = define[SetConfSnippetRequest, *SettingSnpt]("setConfSnippet", "/api/setting/setSnippet", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var SetBazaar = define[SetBazaarRequest, *SettingBazaar]("setBazaar", "/api/setting/setBazaar", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var SetAI = define[SetAIRequest, *SettingAI]("setAI", "/api/setting/setAI", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var SetSecrets = define[SetSecretsRequest, *SettingSecrets]("setSecrets", "/api/setting/setSecrets", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var SetVariables = define[SetVariablesRequest, *SettingVariables]("setVariables", "/api/setting/setVariables", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var SetFlashcard = define[SetFlashcardRequest, *SettingFlashcard]("setFlashcard", "/api/setting/setFlashcard", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var SetEditor = define[SetEditorRequest, *SettingEditor]("setEditor", "/api/setting/setEditor", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
// PatchSetting 保留省略字段,成功后客户端重新读取配置;通知不包含密码或密钥。
-var PatchSetting = define[PatchSettingRequest, Null]("patchSetting", "/api/setting/patch", JSONBody, ResponseOptions{}, "POST")
-var SetExport = define[SetExportRequest, *SettingExport]("setExport", "/api/setting/setExport", JSONBody, ResponseOptions{}, "POST")
-var SetFiletree = define[SetFiletreeRequest, *SettingFileTree]("setFiletree", "/api/setting/setFiletree", JSONBody, ResponseOptions{}, "POST")
-var SetSearch = define[SetSearchRequest, *SettingSearch]("setSearch", "/api/setting/setSearch", JSONBody, ResponseOptions{}, "POST")
-var SetAppearance = define[SetAppearanceRequest, *SettingAppearance]("setAppearance", "/api/setting/setAppearance", JSONBody, ResponseOptions{}, "POST")
-var SetEntryVisibility = define[SetEntryVisibilityRequest, *SettingEntryVisibility]("setEntryVisibility", "/api/setting/setEntryVisibility", JSONBody, ResponseOptions{}, "POST")
-var SetPublish = define[SetPublishRequest, SettingPublishData]("setPublish", "/api/setting/setPublish", JSONBody, ResponseOptions{}, "POST")
-var GetBootAppearances = define[EmptyRequest, SettingBootAppearancesData]("getBootAppearances", "/api/setting/getBootAppearances", NoBody, ResponseOptions{}, "POST")
-var SetBootAppearance = define[SettingBootAppearanceRequest, *SettingBootAppearanceSelection]("setBootAppearance", "/api/setting/setBootAppearance", JSONBody, ResponseOptions{}, "POST")
-var SetBazaarPetalDisabled = define[SettingPetalDisabledRequest, SettingPetalDisabledData]("setBazaarPetalDisabled", "/api/setting/setBazaarPetalDisabled", JSONBody, ResponseOptions{}, "POST")
-var SetKeymap = define[SettingKeymapRequest, Null]("setKeymap", "/api/setting/setKeymap", JSONBody, ResponseOptions{}, "POST")
-var ResetSettings = define[ResetSettingsRequest, Null]("resetSettings", "/api/setting/resetSettings", JSONBody, ResponseOptions{}, "POST")
-var ConfirmSettingsReset = define[ConfirmSettingsResetRequest, Null]("confirmSettingsReset", "/api/setting/confirmSettingsReset", JSONBody, ResponseOptions{}, "POST")
-var SetTheme = define[SettingThemeRequest, Null]("setTheme", "/api/setting/setTheme", JSONBody, ResponseOptions{}, "POST")
-var SetIcon = define[SettingIconRequest, Null]("setIcon", "/api/setting/setIcon", JSONBody, ResponseOptions{}, "POST")
-var GetPublish = define[EmptyRequest, SettingPublishData]("getPublish", "/api/setting/getPublish", NoBody, ResponseOptions{}, "POST")
-var GetCloudUser = define[SettingCloudUserRequest, *SettingUser]("getCloudUser", "/api/setting/getCloudUser", JSONBody, ResponseOptions{AdditionalCodes: []int{1, 255}, DataOnError: true}, "POST")
-var LogoutCloudUser = define[EmptyRequest, Null]("logoutCloudUser", "/api/setting/logoutCloudUser", NoBody, ResponseOptions{}, "POST")
-var Login2faCloudUser = define[SettingLogin2faRequest, Login2faEnvelope]("login2faCloudUser", "/api/setting/login2faCloudUser", JSONBody, ResponseOptions{Output: DirectJSONOutput}, "POST")
-var SetEmoji = define[SettingEmojiRequest, Null]("setEmoji", "/api/setting/setEmoji", JSONBody, ResponseOptions{}, "POST")
-
-var RemoveUnusedAttributeView = define[RemoveUnusedAttributeViewRequest, AVIDData]("removeUnusedAttributeView", "/api/av/removeUnusedAttributeView", JSONBody, ResponseOptions{}, "POST")
-var RemoveUnusedAttributeViews = define[EmptyRequest, AVPathsData]("removeUnusedAttributeViews", "/api/av/removeUnusedAttributeViews", NoBody, ResponseOptions{}, "POST")
+var PatchSetting = define[PatchSettingRequest, Null]("patchSetting", "/api/setting/patch", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var SetExport = define[SetExportRequest, *SettingExport]("setExport", "/api/setting/setExport", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var SetFiletree = define[SetFiletreeRequest, *SettingFileTree]("setFiletree", "/api/setting/setFiletree", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var SetSearch = define[SetSearchRequest, *SettingSearch]("setSearch", "/api/setting/setSearch", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var SetAppearance = define[SetAppearanceRequest, *SettingAppearance]("setAppearance", "/api/setting/setAppearance", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var SetEntryVisibility = define[SetEntryVisibilityRequest, *SettingEntryVisibility]("setEntryVisibility", "/api/setting/setEntryVisibility", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var SetPublish = define[SetPublishRequest, SettingPublishData]("setPublish", "/api/setting/setPublish", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var GetBootAppearances = define[EmptyRequest, SettingBootAppearancesData]("getBootAppearances", "/api/setting/getBootAppearances", AuthenticatedAccess, NoBody, ResponseOptions{}, "POST")
+var SetBootAppearance = define[SettingBootAppearanceRequest, *SettingBootAppearanceSelection]("setBootAppearance", "/api/setting/setBootAppearance", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var SetBazaarPetalDisabled = define[SettingPetalDisabledRequest, SettingPetalDisabledData]("setBazaarPetalDisabled", "/api/setting/setBazaarPetalDisabled", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var SetKeymap = define[SettingKeymapRequest, Null]("setKeymap", "/api/setting/setKeymap", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var ResetSettings = define[ResetSettingsRequest, Null]("resetSettings", "/api/setting/resetSettings", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var ConfirmSettingsReset = define[ConfirmSettingsResetRequest, Null]("confirmSettingsReset", "/api/setting/confirmSettingsReset", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var SetTheme = define[SettingThemeRequest, Null]("setTheme", "/api/setting/setTheme", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var SetIcon = define[SettingIconRequest, Null]("setIcon", "/api/setting/setIcon", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var GetPublish = define[EmptyRequest, SettingPublishData]("getPublish", "/api/setting/getPublish", AuthenticatedAccess|AdminAccess|WritableAccess, NoBody, ResponseOptions{}, "POST")
+var GetCloudUser = define[SettingCloudUserRequest, *SettingUser]("getCloudUser", "/api/setting/getCloudUser", AuthenticatedAccess, JSONBody, ResponseOptions{AdditionalCodes: []int{1, 255}, DataOnError: true}, "POST")
+var LogoutCloudUser = define[EmptyRequest, Null]("logoutCloudUser", "/api/setting/logoutCloudUser", AuthenticatedAccess|AdminAccess|WritableAccess, NoBody, ResponseOptions{}, "POST")
+var Login2faCloudUser = define[SettingLogin2faRequest, Login2faEnvelope]("login2faCloudUser", "/api/setting/login2faCloudUser", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{Output: DirectJSONOutput}, "POST")
+var SetEmoji = define[SettingEmojiRequest, Null]("setEmoji", "/api/setting/setEmoji", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+
+var RemoveUnusedAttributeView = define[RemoveUnusedAttributeViewRequest, AVIDData]("removeUnusedAttributeView", "/api/av/removeUnusedAttributeView", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var RemoveUnusedAttributeViews = define[EmptyRequest, AVPathsData]("removeUnusedAttributeViews", "/api/av/removeUnusedAttributeViews", AuthenticatedAccess|AdminAccess|WritableAccess, NoBody, ResponseOptions{}, "POST")
// 截断提示使用可选请求头 X-SiYuan-App-ID 定向;无标识时广播,离线目标不回退广播。
-var GetUnusedAttributeViews = define[EmptyRequest, []*AssetUnusedItem]("getUnusedAttributeViews", "/api/av/getUnusedAttributeViews", NoBody, ResponseOptions{}, "POST")
-var GetAttributeViewItemIDsByBoundIDs = define[GetAttributeViewItemIDsByBoundIDsRequest, map[string]string]("getAttributeViewItemIDsByBoundIDs", "/api/av/getAttributeViewItemIDsByBoundIDs", JSONBody, ResponseOptions{}, "POST")
-var GetAttributeViewBoundBlockIDsByItemIDs = define[GetAttributeViewBoundBlockIDsByItemIDsRequest, map[string]string]("getAttributeViewBoundBlockIDsByItemIDs", "/api/av/getAttributeViewBoundBlockIDsByItemIDs", JSONBody, ResponseOptions{}, "POST")
-var GetAttributeViewItemStatuses = define[GetAttributeViewItemStatusesRequest, map[string]string]("getAttributeViewItemStatuses", "/api/av/getAttributeViewItemStatuses", JSONBody, ResponseOptions{}, "POST")
-var GetAttributeViewAddingBlockDefaultValues = define[GetAttributeViewAddingBlockDefaultValuesRequest, AVValuesData]("getAttributeViewAddingBlockDefaultValues", "/api/av/getAttributeViewAddingBlockDefaultValues", JSONBody, ResponseOptions{}, "POST")
-var BatchReplaceAttributeViewBlocks = define[BatchReplaceAttributeViewBlocksRequest, Null]("batchReplaceAttributeViewBlocks", "/api/av/batchReplaceAttributeViewBlocks", JSONBody, ResponseOptions{}, "POST")
-var SetAttrViewGroup = define[SetAttrViewGroupRequest, AVRenderResult]("setAttrViewGroup", "/api/av/setAttrViewGroup", JSONBody, ResponseOptions{DataOnError: true}, "POST")
-var SetAttrViewFilters = define[SetAttrViewFiltersRequest, Null]("setAttrViewFilters", "/api/av/setAttrViewFilters", JSONBody, ResponseOptions{}, "POST")
-var SetAttrViewContextFilter = define[SetAttrViewContextFilterRequest, AVContextFilterData]("setAttrViewContextFilter", "/api/av/setAttrViewContextFilter", JSONBody, ResponseOptions{}, "POST")
-var SetAttrViewSorts = define[SetAttrViewSortsRequest, Null]("setAttrViewSorts", "/api/av/setAttrViewSorts", JSONBody, ResponseOptions{}, "POST")
-var ChangeAttrViewLayout = define[ChangeAttrViewLayoutRequest, AVRenderResult]("changeAttrViewLayout", "/api/av/changeAttrViewLayout", JSONBody, ResponseOptions{DataOnError: true}, "POST")
-var DuplicateAttributeViewBlock = define[DuplicateAttributeViewBlockRequest, AVDuplicateData]("duplicateAttributeViewBlock", "/api/av/duplicateAttributeViewBlock", JSONBody, ResponseOptions{}, "POST")
-var GetAttributeViewKeysByAvID = define[GetAttributeViewKeysByAvIDRequest, []*AVKey]("getAttributeViewKeysByAvID", "/api/av/getAttributeViewKeysByAvID", JSONBody, ResponseOptions{}, "POST")
-var GetAttributeViewKeysByID = define[GetAttributeViewKeysByIDRequest, []*AVKey]("getAttributeViewKeysByID", "/api/av/getAttributeViewKeysByID", JSONBody, ResponseOptions{}, "POST")
-var GetMirrorDatabaseBlocks = define[GetMirrorDatabaseBlocksRequest, RefDefsData]("getMirrorDatabaseBlocks", "/api/av/getMirrorDatabaseBlocks", JSONBody, ResponseOptions{}, "POST")
-var SetDatabaseBlockView = define[SetDatabaseBlockViewRequest, Null]("setDatabaseBlockView", "/api/av/setDatabaseBlockView", JSONBody, ResponseOptions{}, "POST")
-var GetAttributeViewPrimaryKeyValues = define[GetAttributeViewPrimaryKeyValuesRequest, AVPrimaryValuesData]("getAttributeViewPrimaryKeyValues", "/api/av/getAttributeViewPrimaryKeyValues", JSONBody, ResponseOptions{}, "POST")
-var GetAttributeViewRelationCandidates = define[GetAttributeViewRelationCandidatesRequest, AVRelationCandidatesData]("getAttributeViewRelationCandidates", "/api/av/getAttributeViewRelationCandidates", JSONBody, ResponseOptions{}, "POST")
-var AppendAttributeViewDetachedBlocksWithValues = define[AppendAttributeViewDetachedBlocksWithValuesRequest, Null]("appendAttributeViewDetachedBlocksWithValues", "/api/av/appendAttributeViewDetachedBlocksWithValues", JSONBody, ResponseOptions{}, "POST")
-var AddAttributeViewBlocks = define[AddAttributeViewBlocksRequest, Null]("addAttributeViewBlocks", "/api/av/addAttributeViewBlocks", JSONBody, ResponseOptions{}, "POST")
-var RemoveAttributeViewBlocks = define[RemoveAttributeViewBlocksRequest, Null]("removeAttributeViewBlocks", "/api/av/removeAttributeViewBlocks", JSONBody, ResponseOptions{}, "POST")
-var AddAttributeViewKey = define[AddAttributeViewKeyRequest, Null]("addAttributeViewKey", "/api/av/addAttributeViewKey", JSONBody, ResponseOptions{}, "POST")
-var RemoveAttributeViewKey = define[RemoveAttributeViewKeyRequest, Null]("removeAttributeViewKey", "/api/av/removeAttributeViewKey", JSONBody, ResponseOptions{}, "POST")
-var SortAttributeViewViewKey = define[SortAttributeViewViewKeyRequest, Null]("sortAttributeViewViewKey", "/api/av/sortAttributeViewViewKey", JSONBody, ResponseOptions{}, "POST")
-var SortAttributeViewKey = define[SortAttributeViewKeyRequest, Null]("sortAttributeViewKey", "/api/av/sortAttributeViewKey", JSONBody, ResponseOptions{}, "POST")
-var GetAttributeViewFilterSort = define[GetAttributeViewFilterSortRequest, AVFilterSortData]("getAttributeViewFilterSort", "/api/av/getAttributeViewFilterSort", JSONBody, ResponseOptions{}, "POST")
-var SearchAttributeViewRollupDestKeys = define[SearchAttributeViewRollupDestKeysRequest, AVKeysData]("searchAttributeViewRollupDestKeys", "/api/av/searchAttributeViewRollupDestKeys", JSONBody, ResponseOptions{}, "POST")
-var SearchAttributeViewRelationKey = define[SearchAttributeViewRelationKeyRequest, AVKeysData]("searchAttributeViewRelationKey", "/api/av/searchAttributeViewRelationKey", JSONBody, ResponseOptions{}, "POST")
-var GetAttributeView = define[GetAttributeViewRequest, AVData]("getAttributeView", "/api/av/getAttributeView", JSONBody, ResponseOptions{}, "POST")
-var GetAttributeViewPasteRows = define[GetAttributeViewPasteRowsRequest, AVPasteRowsData]("getAttributeViewPasteRows", "/api/av/getAttributeViewPasteRows", JSONBody, ResponseOptions{}, "POST")
-var GetAttributeViewFieldViews = define[GetAttributeViewFieldViewsRequest, AVFieldViewsData]("getAttributeViewFieldViews", "/api/av/getAttributeViewFieldViews", JSONBody, ResponseOptions{}, "POST")
-var CreateAttributeViewItem = define[CreateAttributeViewItemRequest, AVCreateItemResult]("createAttributeViewItem", "/api/av/createAttributeViewItem", JSONBody, ResponseOptions{DataOnError: true, AdditionalCodes: []int{1}}, "POST")
-var CreateAttributeViewRelationItem = define[CreateAttributeViewRelationItemRequest, AVCreateItemResult]("createAttributeViewRelationItem", "/api/av/createAttributeViewRelationItem", JSONBody, ResponseOptions{DataOnError: true, AdditionalCodes: []int{1}}, "POST")
-var CreateAttributeViewItemWithMarkdown = define[CreateAttributeViewItemWithMarkdownRequest, AVCreateItemResult]("createAttributeViewItemWithMarkdown", "/api/av/createAttributeViewItemWithMarkdown", JSONBody, ResponseOptions{DataOnError: true, AdditionalCodes: []int{1}}, "POST")
-var CreateAttributeViewItemDocs = define[CreateAttributeViewItemDocsRequest, AVCreateItemDocsResult]("createAttributeViewItemDocs", "/api/av/createAttributeViewItemDocs", JSONBody, ResponseOptions{DataOnError: true, AdditionalCodes: []int{1}}, "POST")
-var SearchAttributeView = define[SearchAttributeViewRequest, AVSearchData]("searchAttributeView", "/api/av/searchAttributeView", JSONBody, ResponseOptions{}, "POST")
-var RenderSnapshotAttributeView = define[RenderSnapshotAttributeViewRequest, AVArchiveRenderData]("renderSnapshotAttributeView", "/api/av/renderSnapshotAttributeView", JSONBody, ResponseOptions{}, "POST")
-var RenderHistoryAttributeView = define[RenderHistoryAttributeViewRequest, AVArchiveRenderData]("renderHistoryAttributeView", "/api/av/renderHistoryAttributeView", JSONBody, ResponseOptions{}, "POST")
-var RenderAttributeView = define[RenderAttributeViewRequest, AVRenderResult]("renderAttributeView", "/api/av/renderAttributeView", JSONBody, ResponseOptions{DataOnError: true, FastJSON: true}, "POST")
-var GetAttributeViewCalendarUndated = define[AVCalendarUndatedRequest, AVCalendarUndatedData]("getAttributeViewCalendarUndated", "/api/av/getAttributeViewCalendarUndated", JSONBody, ResponseOptions{}, "POST")
-var GetCurrentAttrViewImages = define[GetCurrentAttrViewImagesRequest, []string]("getCurrentAttrViewImages", "/api/av/getCurrentAttrViewImages", JSONBody, ResponseOptions{}, "POST")
-var GetAttributeViewKeys = define[GetAttributeViewKeysRequest, []*AVBlockAttributeViewKeys]("getAttributeViewKeys", "/api/av/getAttributeViewKeys", JSONBody, ResponseOptions{}, "POST")
-var GetAttributeViewSearchTarget = define[GetAttributeViewSearchTargetRequest, *AVAttributeViewSearchTarget]("getAttributeViewSearchTarget", "/api/av/getAttributeViewSearchTarget", JSONBody, ResponseOptions{}, "POST")
-var GetAttributeViewBacklinks = define[GetAttributeViewBacklinksRequest, *AVAttributeViewBacklinks]("getAttributeViewBacklinks", "/api/av/getAttributeViewBacklinks", JSONBody, ResponseOptions{}, "POST")
-var SetAttributeViewBlockAttr = define[SetAttributeViewBlockAttrRequest, AVValueData]("setAttributeViewBlockAttr", "/api/av/setAttributeViewBlockAttr", JSONBody, ResponseOptions{}, "POST")
-var BatchSetAttributeViewBlockAttrs = define[BatchSetAttributeViewBlockAttrsRequest, Null]("batchSetAttributeViewBlockAttrs", "/api/av/batchSetAttributeViewBlockAttrs", JSONBody, ResponseOptions{}, "POST")
-var GetAttributeViewRowSort = define[GetAttributeViewRowSortRequest, AVRowSortPreview]("getAttributeViewRowSort", "/api/av/getAttributeViewRowSort", StructJSONBody, ResponseOptions{}, "POST")
-
-var AIChatGPT = define[AIMessageRequest, string]("chatGPT", "/api/ai/chatGPT", JSONBody, ResponseOptions{}, "POST")
-var AIChatGPTWithAction = define[AIActionRequest, string]("chatGPTWithAction", "/api/ai/chatGPTWithAction", JSONBody, ResponseOptions{}, "POST")
-var AIListEditorActions = define[EmptyRequest, []*AIEditorAction]("lsAIEditorActions", "/api/ai/editor/lsActions", NoBody, ResponseOptions{}, "POST")
-var AISaveEditorAction = define[AIEditorActionSaveRequest, *AIEditorAction]("saveAIEditorAction", "/api/ai/editor/saveAction", JSONBody, ResponseOptions{}, "POST")
-var AIRemoveEditorAction = define[AIEditorActionIDRequest, Null]("removeAIEditorAction", "/api/ai/editor/removeAction", JSONBody, ResponseOptions{}, "POST")
-var AITestModel = define[AIModelRequest, AIModelTestData]("testModel", "/api/ai/testModel", JSONBody, ResponseOptions{}, "POST")
-var AITestEmbeddingModel = define[EmptyRequest, AIEmbeddingTestData]("testEmbeddingModel", "/api/ai/testEmbeddingModel", NoBody, ResponseOptions{}, "POST")
-var AITestRerankModel = define[EmptyRequest, AIRerankTestData]("testRerankModel", "/api/ai/testRerankModel", NoBody, ResponseOptions{}, "POST")
-var AITestDecisionModel = define[AIDecisionTestRequest, AIDecisionTestData]("testDecisionModel", "/api/ai/testDecisionModel", JSONBody, ResponseOptions{}, "POST")
-var AIListModels = define[AIProviderRequest, AIModelsData]("listModels", "/api/ai/listModels", JSONBody, ResponseOptions{}, "POST")
+var GetUnusedAttributeViews = define[EmptyRequest, []*AssetUnusedItem]("getUnusedAttributeViews", "/api/av/getUnusedAttributeViews", AuthenticatedAccess|AdminAccess, NoBody, ResponseOptions{}, "POST")
+var GetAttributeViewItemIDsByBoundIDs = define[GetAttributeViewItemIDsByBoundIDsRequest, map[string]string]("getAttributeViewItemIDsByBoundIDs", "/api/av/getAttributeViewItemIDsByBoundIDs", AuthenticatedAccess|AdminAccess, JSONBody, ResponseOptions{}, "POST")
+var GetAttributeViewBoundBlockIDsByItemIDs = define[GetAttributeViewBoundBlockIDsByItemIDsRequest, map[string]string]("getAttributeViewBoundBlockIDsByItemIDs", "/api/av/getAttributeViewBoundBlockIDsByItemIDs", AuthenticatedAccess|AdminAccess, JSONBody, ResponseOptions{}, "POST")
+var GetAttributeViewItemStatuses = define[GetAttributeViewItemStatusesRequest, map[string]string]("getAttributeViewItemStatuses", "/api/av/getAttributeViewItemStatuses", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var GetAttributeViewAddingBlockDefaultValues = define[GetAttributeViewAddingBlockDefaultValuesRequest, AVValuesData]("getAttributeViewAddingBlockDefaultValues", "/api/av/getAttributeViewAddingBlockDefaultValues", AuthenticatedAccess|AdminAccess, JSONBody, ResponseOptions{}, "POST")
+var BatchReplaceAttributeViewBlocks = define[BatchReplaceAttributeViewBlocksRequest, Null]("batchReplaceAttributeViewBlocks", "/api/av/batchReplaceAttributeViewBlocks", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var SetAttrViewGroup = define[SetAttrViewGroupRequest, AVRenderResult]("setAttrViewGroup", "/api/av/setAttrViewGroup", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{DataOnError: true}, "POST")
+var SetAttrViewFilters = define[SetAttrViewFiltersRequest, Null]("setAttrViewFilters", "/api/av/setAttrViewFilters", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var SetAttrViewContextFilter = define[SetAttrViewContextFilterRequest, AVContextFilterData]("setAttrViewContextFilter", "/api/av/setAttrViewContextFilter", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var SetAttrViewSorts = define[SetAttrViewSortsRequest, Null]("setAttrViewSorts", "/api/av/setAttrViewSorts", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var ChangeAttrViewLayout = define[ChangeAttrViewLayoutRequest, AVRenderResult]("changeAttrViewLayout", "/api/av/changeAttrViewLayout", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{DataOnError: true}, "POST")
+var DuplicateAttributeViewBlock = define[DuplicateAttributeViewBlockRequest, AVDuplicateData]("duplicateAttributeViewBlock", "/api/av/duplicateAttributeViewBlock", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var GetAttributeViewKeysByAvID = define[GetAttributeViewKeysByAvIDRequest, []*AVKey]("getAttributeViewKeysByAvID", "/api/av/getAttributeViewKeysByAvID", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var GetAttributeViewKeysByID = define[GetAttributeViewKeysByIDRequest, []*AVKey]("getAttributeViewKeysByID", "/api/av/getAttributeViewKeysByID", AuthenticatedAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var GetMirrorDatabaseBlocks = define[GetMirrorDatabaseBlocksRequest, RefDefsData]("getMirrorDatabaseBlocks", "/api/av/getMirrorDatabaseBlocks", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var SetDatabaseBlockView = define[SetDatabaseBlockViewRequest, Null]("setDatabaseBlockView", "/api/av/setDatabaseBlockView", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var GetAttributeViewPrimaryKeyValues = define[GetAttributeViewPrimaryKeyValuesRequest, AVPrimaryValuesData]("getAttributeViewPrimaryKeyValues", "/api/av/getAttributeViewPrimaryKeyValues", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var GetAttributeViewRelationCandidates = define[GetAttributeViewRelationCandidatesRequest, AVRelationCandidatesData]("getAttributeViewRelationCandidates", "/api/av/getAttributeViewRelationCandidates", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var AppendAttributeViewDetachedBlocksWithValues = define[AppendAttributeViewDetachedBlocksWithValuesRequest, Null]("appendAttributeViewDetachedBlocksWithValues", "/api/av/appendAttributeViewDetachedBlocksWithValues", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var AddAttributeViewBlocks = define[AddAttributeViewBlocksRequest, Null]("addAttributeViewBlocks", "/api/av/addAttributeViewBlocks", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var RemoveAttributeViewBlocks = define[RemoveAttributeViewBlocksRequest, Null]("removeAttributeViewBlocks", "/api/av/removeAttributeViewBlocks", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var AddAttributeViewKey = define[AddAttributeViewKeyRequest, Null]("addAttributeViewKey", "/api/av/addAttributeViewKey", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var RemoveAttributeViewKey = define[RemoveAttributeViewKeyRequest, Null]("removeAttributeViewKey", "/api/av/removeAttributeViewKey", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var SortAttributeViewViewKey = define[SortAttributeViewViewKeyRequest, Null]("sortAttributeViewViewKey", "/api/av/sortAttributeViewViewKey", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var SortAttributeViewKey = define[SortAttributeViewKeyRequest, Null]("sortAttributeViewKey", "/api/av/sortAttributeViewKey", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var GetAttributeViewFilterSort = define[GetAttributeViewFilterSortRequest, AVFilterSortData]("getAttributeViewFilterSort", "/api/av/getAttributeViewFilterSort", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var SearchAttributeViewRollupDestKeys = define[SearchAttributeViewRollupDestKeysRequest, AVKeysData]("searchAttributeViewRollupDestKeys", "/api/av/searchAttributeViewRollupDestKeys", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var SearchAttributeViewRelationKey = define[SearchAttributeViewRelationKeyRequest, AVKeysData]("searchAttributeViewRelationKey", "/api/av/searchAttributeViewRelationKey", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var GetAttributeView = define[GetAttributeViewRequest, AVData]("getAttributeView", "/api/av/getAttributeView", AuthenticatedAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var GetAttributeViewPasteRows = define[GetAttributeViewPasteRowsRequest, AVPasteRowsData]("getAttributeViewPasteRows", "/api/av/getAttributeViewPasteRows", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var GetAttributeViewFieldViews = define[GetAttributeViewFieldViewsRequest, AVFieldViewsData]("getAttributeViewFieldViews", "/api/av/getAttributeViewFieldViews", AuthenticatedAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var CreateAttributeViewItem = define[CreateAttributeViewItemRequest, AVCreateItemResult]("createAttributeViewItem", "/api/av/createAttributeViewItem", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{DataOnError: true, AdditionalCodes: []int{1}}, "POST")
+var CreateAttributeViewRelationItem = define[CreateAttributeViewRelationItemRequest, AVCreateItemResult]("createAttributeViewRelationItem", "/api/av/createAttributeViewRelationItem", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{DataOnError: true, AdditionalCodes: []int{1}}, "POST")
+var CreateAttributeViewItemWithMarkdown = define[CreateAttributeViewItemWithMarkdownRequest, AVCreateItemResult]("createAttributeViewItemWithMarkdown", "/api/av/createAttributeViewItemWithMarkdown", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{DataOnError: true, AdditionalCodes: []int{1}}, "POST")
+var CreateAttributeViewItemDocs = define[CreateAttributeViewItemDocsRequest, AVCreateItemDocsResult]("createAttributeViewItemDocs", "/api/av/createAttributeViewItemDocs", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{DataOnError: true, AdditionalCodes: []int{1}}, "POST")
+var SearchAttributeView = define[SearchAttributeViewRequest, AVSearchData]("searchAttributeView", "/api/av/searchAttributeView", AuthenticatedAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var RenderSnapshotAttributeView = define[RenderSnapshotAttributeViewRequest, AVArchiveRenderData]("renderSnapshotAttributeView", "/api/av/renderSnapshotAttributeView", AuthenticatedAccess|AdminAccess, JSONBody, ResponseOptions{}, "POST")
+var RenderHistoryAttributeView = define[RenderHistoryAttributeViewRequest, AVArchiveRenderData]("renderHistoryAttributeView", "/api/av/renderHistoryAttributeView", AuthenticatedAccess|AdminAccess, JSONBody, ResponseOptions{}, "POST")
+var RenderAttributeView = define[RenderAttributeViewRequest, AVRenderResult]("renderAttributeView", "/api/av/renderAttributeView", AuthenticatedAccess, JSONBody, ResponseOptions{DataOnError: true, FastJSON: true}, "POST")
+var GetAttributeViewCalendarUndated = define[AVCalendarUndatedRequest, AVCalendarUndatedData]("getAttributeViewCalendarUndated", "/api/av/getAttributeViewCalendarUndated", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var GetCurrentAttrViewImages = define[GetCurrentAttrViewImagesRequest, []string]("getCurrentAttrViewImages", "/api/av/getCurrentAttrViewImages", AuthenticatedAccess, JSONBody, ResponseOptions{}, "POST")
+var GetAttributeViewKeys = define[GetAttributeViewKeysRequest, []*AVBlockAttributeViewKeys]("getAttributeViewKeys", "/api/av/getAttributeViewKeys", AuthenticatedAccess, JSONBody, ResponseOptions{}, "POST")
+var GetAttributeViewSearchTarget = define[GetAttributeViewSearchTargetRequest, *AVAttributeViewSearchTarget]("getAttributeViewSearchTarget", "/api/av/getAttributeViewSearchTarget", AuthenticatedAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var GetAttributeViewBacklinks = define[GetAttributeViewBacklinksRequest, *AVAttributeViewBacklinks]("getAttributeViewBacklinks", "/api/av/getAttributeViewBacklinks", AuthenticatedAccess, JSONBody, ResponseOptions{}, "POST")
+var SetAttributeViewBlockAttr = define[SetAttributeViewBlockAttrRequest, AVValueData]("setAttributeViewBlockAttr", "/api/av/setAttributeViewBlockAttr", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var BatchSetAttributeViewBlockAttrs = define[BatchSetAttributeViewBlockAttrsRequest, Null]("batchSetAttributeViewBlockAttrs", "/api/av/batchSetAttributeViewBlockAttrs", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var GetAttributeViewRowSort = define[GetAttributeViewRowSortRequest, AVRowSortPreview]("getAttributeViewRowSort", "/api/av/getAttributeViewRowSort", AuthenticatedAccess|AdminAccess, StructJSONBody, ResponseOptions{}, "POST")
+
+var AIChatGPT = define[AIMessageRequest, string]("chatGPT", "/api/ai/chatGPT", AuthenticatedAccess|AdminAccess, JSONBody, ResponseOptions{}, "POST")
+var AIChatGPTWithAction = define[AIActionRequest, string]("chatGPTWithAction", "/api/ai/chatGPTWithAction", AuthenticatedAccess|AdminAccess, JSONBody, ResponseOptions{}, "POST")
+var AIListEditorActions = define[EmptyRequest, []*AIEditorAction]("lsAIEditorActions", "/api/ai/editor/lsActions", AuthenticatedAccess|AdminAccess, NoBody, ResponseOptions{}, "POST")
+var AISaveEditorAction = define[AIEditorActionSaveRequest, *AIEditorAction]("saveAIEditorAction", "/api/ai/editor/saveAction", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var AIRemoveEditorAction = define[AIEditorActionIDRequest, Null]("removeAIEditorAction", "/api/ai/editor/removeAction", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var AITestModel = define[AIModelRequest, AIModelTestData]("testModel", "/api/ai/testModel", AuthenticatedAccess|AdminAccess, JSONBody, ResponseOptions{}, "POST")
+var AITestEmbeddingModel = define[EmptyRequest, AIEmbeddingTestData]("testEmbeddingModel", "/api/ai/testEmbeddingModel", AuthenticatedAccess|AdminAccess, NoBody, ResponseOptions{}, "POST")
+var AITestRerankModel = define[EmptyRequest, AIRerankTestData]("testRerankModel", "/api/ai/testRerankModel", AuthenticatedAccess|AdminAccess, NoBody, ResponseOptions{}, "POST")
+var AITestDecisionModel = define[AIDecisionTestRequest, AIDecisionTestData]("testDecisionModel", "/api/ai/testDecisionModel", AuthenticatedAccess|AdminAccess, JSONBody, ResponseOptions{}, "POST")
+var AIListModels = define[AIProviderRequest, AIModelsData]("listModels", "/api/ai/listModels", AuthenticatedAccess|AdminAccess, JSONBody, ResponseOptions{}, "POST")
// 套餐授权接口仅供已鉴权管理员使用,遵守 AI 禁用开关及只读限制。
// 账户列表只返回身份及连接状态;令牌保存在主机私有目录,配置仅保存账户 ID。
-var ChatGPTAccounts = define[EmptyRequest, []ChatGPTAccount]("chatGPTAccounts", "/api/ai/chatgpt/accounts", NoBody, ResponseOptions{NonNullable: true}, "POST")
+var ChatGPTAccounts = define[EmptyRequest, []ChatGPTAccount]("chatGPTAccounts", "/api/ai/chatgpt/accounts", AuthenticatedAccess|AdminAccess, NoBody, ResponseOptions{NonNullable: true}, "POST")
// 登录地址可能包含身份提示,客户端不得记录;回调使用独立的 IPv4 回环监听器。
-var ChatGPTStart = define[ChatGPTAccountRequest, ChatGPTLogin]("chatGPTStart", "/api/ai/chatgpt/start", JSONBody, ResponseOptions{}, "POST")
-var ChatGPTStatus = define[ChatGPTLoginRequest, ChatGPTLoginStatus]("chatGPTStatus", "/api/ai/chatgpt/status", JSONBody, ResponseOptions{}, "POST")
-var ChatGPTCancel = define[ChatGPTLoginRequest, Null]("chatGPTCancel", "/api/ai/chatgpt/cancel", JSONBody, ResponseOptions{}, "POST")
+var ChatGPTStart = define[ChatGPTAccountRequest, ChatGPTLogin]("chatGPTStart", "/api/ai/chatgpt/start", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var ChatGPTStatus = define[ChatGPTLoginRequest, ChatGPTLoginStatus]("chatGPTStatus", "/api/ai/chatgpt/status", AuthenticatedAccess|AdminAccess, JSONBody, ResponseOptions{}, "POST")
+var ChatGPTCancel = define[ChatGPTLoginRequest, Null]("chatGPTCancel", "/api/ai/chatgpt/cancel", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
// 退出清除本地令牌并保留账户映射;revoked 表示远程撤销是否确认成功。
-var ChatGPTLogout = define[ChatGPTAccountRequest, ChatGPTLogoutResult]("chatGPTLogout", "/api/ai/chatgpt/logout", JSONBody, ResponseOptions{}, "POST")
+var ChatGPTLogout = define[ChatGPTAccountRequest, ChatGPTLogoutResult]("chatGPTLogout", "/api/ai/chatgpt/logout", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
// 删除指定的本机账户注册并终止其请求及登录尝试,不合并同邮箱注册;不修改提供商配置或主机 ID。
// 先尝试撤销会话,远程撤销未确认时仍清除本地记录并返回 revoked=false;缺失账户报错。
-var ChatGPTRemove = define[ChatGPTAccountRequest, ChatGPTLogoutResult]("chatGPTRemove", "/api/ai/chatgpt/remove", JSONBody, ResponseOptions{}, "POST")
+var ChatGPTRemove = define[ChatGPTAccountRequest, ChatGPTLogoutResult]("chatGPTRemove", "/api/ai/chatgpt/remove", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
// 导出使用至少 12 个字符的密码,先写入带版本的认证加密文件,再停止源主机刷新。
-var ChatGPTExport = define[ChatGPTTransferRequest, ExportFileData]("chatGPTExport", "/api/ai/chatgpt/export", JSONBody, ResponseOptions{}, "POST")
+var ChatGPTExport = define[ChatGPTTransferRequest, ExportFileData]("chatGPTExport", "/api/ai/chatgpt/export", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
// 导入限制为 1 MiB,认证文件和账户身份后续期;失败保留账户及目标主机标识。
-var ChatGPTImport = define[ChatGPTTransferRequest, ChatGPTAccount]("chatGPTImport", "/api/ai/chatgpt/import", JSONBody, ResponseOptions{}, "POST")
-var AIGetEmbeddingStat = define[EmptyRequest, *AIEmbeddingStat]("embeddingStat", "/api/ai/embeddingStat", NoBody, ResponseOptions{}, "POST")
-var AIGetMCPStatus = define[EmptyRequest, []AIMCPStatus]("mcpStatus", "/api/ai/mcpStatus", NoBody, ResponseOptions{}, "POST")
-var AIGetMCPEnvironment = define[EmptyRequest, AIMCPEnvironmentData]("mcpEnvironmentVariables", "/api/ai/mcpEnvironmentVariables", NoBody, ResponseOptions{}, "POST")
-var AIMCPOAuthAuthorize = define[AIMCPIDRequest, Null]("mcpOAuthAuthorize", "/api/ai/mcpOAuthAuthorize", JSONBody, ResponseOptions{}, "POST")
-var AIMCPOAuthDisconnect = define[AIMCPIDRequest, Null]("mcpOAuthDisconnect", "/api/ai/mcpOAuthDisconnect", JSONBody, ResponseOptions{}, "POST")
-var AIReindexEmbedding = define[EmptyRequest, Null]("reindexEmbedding", "/api/ai/reindexEmbedding", NoBody, ResponseOptions{}, "POST")
-var AIRetryFailedEmbedding = define[EmptyRequest, Null]("retryFailedEmbedding", "/api/ai/retryFailedEmbedding", NoBody, ResponseOptions{}, "POST")
-var AIAgentConfirm = define[AIConfirmRequest, Null]("agentChatConfirm", "/api/ai/agent/confirm", StructJSONBody, ResponseOptions{AdditionalErrorStatuses: []int{409}}, "POST")
-var AIAgentSetPermission = define[AIPermissionRequest, AIPermissionData]("setAgentSessionPermission", "/api/ai/agent/setPermission", StructJSONBody, ResponseOptions{}, "POST")
-var AIAgentQuestion = define[AIQuestionRequest, Null]("agentChatQuestion", "/api/ai/agent/question", StructJSONBody, ResponseOptions{AdditionalErrorStatuses: []int{409}}, "POST")
-var AIAgentBrowserCapabilityResult = define[AIBrowserCapabilityResultRequest, Null]("agentChatBrowserCapabilityResult", "/api/ai/agent/browserCapabilityResult", StructJSONBody, ResponseOptions{AdditionalErrorStatuses: []int{409}}, "POST")
-var AIListCapabilities = define[EmptyRequest, []AICapabilityManifest]("lsCapabilities", "/api/ai/lsCapabilities", NoBody, ResponseOptions{}, "POST")
-var AIAgentTitle = define[AITitleRequest, string]("agentChatTitle", "/api/ai/agent/title", StructJSONBody, ResponseOptions{}, "POST")
-var AIListSessions = define[AISessionsRequest, AISessionList]("lsSessions", "/api/ai/agent/lsSessions", StructJSONBody, ResponseOptions{}, "POST")
-var AIRemoveSession = define[AISessionIDRequest, Null]("removeSession", "/api/ai/agent/removeSession", StructJSONBody, ResponseOptions{AdditionalErrorStatuses: []int{409, 500}}, "POST")
-var AIListSkills = define[EmptyRequest, []AISkillInfo]("lsSkills", "/api/ai/agent/lsSkills", NoBody, ResponseOptions{}, "POST")
+var ChatGPTImport = define[ChatGPTTransferRequest, ChatGPTAccount]("chatGPTImport", "/api/ai/chatgpt/import", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var AIGetEmbeddingStat = define[EmptyRequest, *AIEmbeddingStat]("embeddingStat", "/api/ai/embeddingStat", AuthenticatedAccess|AdminAccess, NoBody, ResponseOptions{}, "POST")
+var AIGetMCPStatus = define[EmptyRequest, []AIMCPStatus]("mcpStatus", "/api/ai/mcpStatus", AuthenticatedAccess|AdminAccess, NoBody, ResponseOptions{}, "POST")
+var AIGetMCPEnvironment = define[EmptyRequest, AIMCPEnvironmentData]("mcpEnvironmentVariables", "/api/ai/mcpEnvironmentVariables", AuthenticatedAccess|AdminAccess, NoBody, ResponseOptions{}, "POST")
+var AIMCPOAuthAuthorize = define[AIMCPIDRequest, Null]("mcpOAuthAuthorize", "/api/ai/mcpOAuthAuthorize", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var AIMCPOAuthDisconnect = define[AIMCPIDRequest, Null]("mcpOAuthDisconnect", "/api/ai/mcpOAuthDisconnect", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var AIReindexEmbedding = define[EmptyRequest, Null]("reindexEmbedding", "/api/ai/reindexEmbedding", AuthenticatedAccess|AdminAccess|WritableAccess, NoBody, ResponseOptions{}, "POST")
+var AIRetryFailedEmbedding = define[EmptyRequest, Null]("retryFailedEmbedding", "/api/ai/retryFailedEmbedding", AuthenticatedAccess|AdminAccess|WritableAccess, NoBody, ResponseOptions{}, "POST")
+var AIAgentConfirm = define[AIConfirmRequest, Null]("agentChatConfirm", "/api/ai/agent/confirm", AuthenticatedAccess|AdminAccess|WritableAccess, StructJSONBody, ResponseOptions{AdditionalErrorStatuses: []int{409}}, "POST")
+var AIAgentSetPermission = define[AIPermissionRequest, AIPermissionData]("setAgentSessionPermission", "/api/ai/agent/setPermission", AuthenticatedAccess|AdminAccess|WritableAccess, StructJSONBody, ResponseOptions{}, "POST")
+var AIAgentQuestion = define[AIQuestionRequest, Null]("agentChatQuestion", "/api/ai/agent/question", AuthenticatedAccess|AdminAccess|WritableAccess, StructJSONBody, ResponseOptions{AdditionalErrorStatuses: []int{409}}, "POST")
+var AIAgentBrowserCapabilityResult = define[AIBrowserCapabilityResultRequest, Null]("agentChatBrowserCapabilityResult", "/api/ai/agent/browserCapabilityResult", AuthenticatedAccess|AdminAccess|WritableAccess, StructJSONBody, ResponseOptions{AdditionalErrorStatuses: []int{409}}, "POST")
+var AIListCapabilities = define[EmptyRequest, []AICapabilityManifest]("lsCapabilities", "/api/ai/lsCapabilities", AuthenticatedAccess|AdminAccess, NoBody, ResponseOptions{}, "POST")
+var AIAgentTitle = define[AITitleRequest, string]("agentChatTitle", "/api/ai/agent/title", AuthenticatedAccess|AdminAccess, StructJSONBody, ResponseOptions{}, "POST")
+var AIListSessions = define[AISessionsRequest, AISessionList]("lsSessions", "/api/ai/agent/lsSessions", AuthenticatedAccess|AdminAccess, StructJSONBody, ResponseOptions{}, "POST")
+var AIRemoveSession = define[AISessionIDRequest, Null]("removeSession", "/api/ai/agent/removeSession", AuthenticatedAccess|AdminAccess|WritableAccess, StructJSONBody, ResponseOptions{AdditionalErrorStatuses: []int{409, 500}}, "POST")
+var AIListSkills = define[EmptyRequest, []AISkillInfo]("lsSkills", "/api/ai/agent/lsSkills", AuthenticatedAccess|AdminAccess, NoBody, ResponseOptions{}, "POST")
// AIListBuiltinSkills 独立于斜杠菜单的普通技能发现,只返回只读元数据,包括已禁用条目。
-var AIListBuiltinSkills = define[EmptyRequest, []AIBuiltinSkillInfo]("lsBuiltinSkills", "/api/ai/agent/lsBuiltinSkills", NoBody, ResponseOptions{}, "POST")
-var AIGetAgentInstructions = define[EmptyRequest, AIAgentInstructionsData]("getAgentInstructions", "/api/ai/agent/getInstructions", NoBody, ResponseOptions{}, "POST")
-var AISetAgentInstructions = define[AIAgentInstructionsSaveRequest, AIAgentInstructionsData]("setAgentInstructions", "/api/ai/agent/setInstructions", JSONBody, ResponseOptions{}, "POST")
-var AIListUserSkills = define[EmptyRequest, []AIUserSkillInfo]("lsUserSkills", "/api/ai/agent/lsUserSkills", NoBody, ResponseOptions{}, "POST")
-var AIGetSkill = define[AISkillNameRequest, AISkillData]("getSkill", "/api/ai/agent/getSkill", StructJSONBody, ResponseOptions{}, "POST")
-var AISaveSkill = define[AISkillSaveRequest, Null]("saveSkill", "/api/ai/agent/saveSkill", StructJSONBody, ResponseOptions{}, "POST")
-var AIRemoveSkill = define[AISkillNameRequest, Null]("removeSkill", "/api/ai/agent/removeSkill", StructJSONBody, ResponseOptions{}, "POST")
-var AIRenameSkill = define[AISkillRenameRequest, Null]("renameSkill", "/api/ai/agent/renameSkill", StructJSONBody, ResponseOptions{}, "POST")
-var AIManageSkills = define[AISkillFileRequest, AISkillFileData]("manageSkills", "/api/ai/agent/manageSkills", JSONBody, ResponseOptions{}, "POST")
-
-var AIEditorChat = define[AIEditorChatRequest, Null]("aiEditorChat", "/api/ai/editor/chat", StructJSONBody, aiEditorSSEOptions(), "POST")
-var AIAgentChat = define[AIAgentChatRequest, Null]("agentChat", "/api/ai/agent/chat", StructJSONBody, aiAgentSSEOptions(), "POST")
-var AIMCPOAuthCallback = define[EmptyRequest, BinaryContent]("mcpOAuthCallback", "/api/ai/mcp/oauth/callback/:flowID", NoBody, HTTPContentOptions(HTTPContentVariant{Status: 200, ContentType: "text/html"}, HTTPContentVariant{Status: 400, ContentType: "text/html"}, HTTPContentVariant{Status: 403, ContentType: "text/plain"}), "GET")
-var AIGetSession = define[AISessionIDRequest, *AISession]("getSession", "/api/ai/agent/getSession", StructJSONBody, ResponseOptions{AdditionalErrorStatuses: []int{500}}, "POST")
-var AISaveSession = define[AISession, AISessionSaveData]("saveSession", "/api/ai/agent/saveSession", StructJSONBody, ResponseOptions{DataOnError: true, AdditionalErrorStatuses: []int{400, 409, 500}}, "POST")
-
-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")
-
-var PluginPrivateService = define[EmptyRequest, PluginServiceContent]("pluginPrivateWebServer", "/plugin/private/:name/*path", RawBody, PluginServiceOptions(), "ANY")
-
-var GetDynamicIcon = define[DynamicIconRequest, BinaryContent]("getDynamicIcon", "/api/icon/getDynamicIcon", NoBody, ResponseOptions{Output: BinaryOutput, ErrorStatus: 200, ContentVariants: []HTTPContentVariant{{Status: 200, ContentType: "image/svg+xml"}}, EmptyResponseStatuses: []int{500}}, "GET")
-
-var ExtensionCopy = define[ExtensionCopyRequest, *ExtensionCopyData]("extensionCopy", "/api/extension/copy", MultipartBody, ResponseOptions{DataOnError: true}, "POST")
-
-var SystemBootProgressSSE = define[EmptyRequest, Null]("bootProgressSSE", "/api/system/bootProgressSSE", NoBody, SSEOptions(SSEEvent[BootProgressData]("")), "GET")
-var SystemGetBootAppearance = define[EmptyRequest, *SettingBootAppearance]("getBootAppearance", "/api/system/getBootAppearance", NoBody, ResponseOptions{EmptyResponseStatuses: []int{403}}, "GET")
-var SystemGetCaptcha = define[EmptyRequest, BinaryContent]("getCaptcha", "/api/system/getCaptcha", NoBody, ResponseOptions{Output: BinaryOutput, ErrorStatus: 200, ContentVariants: []HTTPContentVariant{{Status: 200, ContentType: "image/png"}}, EmptyResponseStatuses: []int{500}}, "GET")
-var SystemOIDCCallback = define[SystemOIDCCallbackRequest, BinaryContent]("oidcCallback", "/api/system/oidc/callback", NoBody, HTTPContentOptions(HTTPContentVariant{Status: 200, ContentType: "text/html"}), "GET")
-var SystemAddCustomEmoji = define[SystemCustomEmojiRequest, SystemPathData]("addCustomEmoji", "/api/system/addCustomEmoji", FormBody, ResponseOptions{AdditionalCodes: []int{400, 413}}, "POST")
-var SystemCheckUpdate = define[SystemCheckUpdateRequest, Null]("checkUpdate", "/api/system/checkUpdate", JSONBody, ResponseOptions{}, "POST")
-var SystemCheckWorkspaceDir = define[SystemPathRequest, SystemWorkspaceCheckData]("checkWorkspaceDir", "/api/system/checkWorkspaceDir", JSONBody, ResponseOptions{}, "POST")
-var SystemCreateWorkspaceDir = define[SystemPathRequest, Null]("createWorkspaceDir", "/api/system/createWorkspaceDir", JSONBody, ResponseOptions{}, "POST")
-var SystemDismissOnboarding = define[EmptyRequest, *SystemOnboarding]("dismissOnboarding", "/api/system/dismissOnboarding", NoBody, ResponseOptions{}, "POST")
-var SystemEnsureOnboarding = define[EmptyRequest, *SystemOnboarding]("ensureOnboarding", "/api/system/ensureOnboarding", NoBody, ResponseOptions{}, "POST")
-var SystemExit = define[SystemExitRequest, SystemExitData]("exit", "/api/system/exit", JSONBody, ResponseOptions{AdditionalCodes: []int{1, 2}, DataOnError: true}, "POST")
-var SystemExportConf = define[EmptyRequest, SystemExportConfData]("exportConf", "/api/system/exportConf", NoBody, ResponseOptions{}, "POST")
-var SystemExportLog = define[EmptyRequest, SystemZipData]("exportLog", "/api/system/exportLog", NoBody, ResponseOptions{}, "POST")
-var SystemAppendKeyboardLog = define[SystemKeyboardLogRequest, Null]("appendKeyboardLog", "/api/system/appendKeyboardLog", JSONBody, ResponseOptions{}, "POST")
-var SystemExportTLSCABundle = define[EmptyRequest, SystemPathData]("exportTLSCABundle", "/api/system/exportTLSCABundle", NoBody, ResponseOptions{}, "POST")
-var SystemExportTLSCACert = define[EmptyRequest, SystemPathData]("exportTLSCACert", "/api/system/exportTLSCACert", NoBody, ResponseOptions{}, "POST")
-var SystemGetChangelog = define[SystemChangelogRequest, SystemChangelogData]("getChangelog", "/api/system/getChangelog", LegacyOptionalBody, ResponseOptions{}, "POST")
-var SystemGetConf = define[EmptyRequest, SystemConfData]("getConf", "/api/system/getConf", NoBody, ResponseOptions{}, "POST")
-var SystemGetCustomFonts = define[EmptyRequest, []*SystemCustomFont]("getCustomFonts", "/api/system/getCustomFonts", NoBody, ResponseOptions{}, "POST")
-var SystemGetEmojiConf = define[EmptyRequest, []*SystemEmojiGroup]("getEmojiConf", "/api/system/getEmojiConf", NoBody, ResponseOptions{}, "POST")
-var SystemGetMobileWorkspaces = define[EmptyRequest, []string]("getMobileWorkspaces", "/api/system/getMobileWorkspaces", NoBody, ResponseOptions{}, "POST")
-var SystemGetSysFonts = define[EmptyRequest, []*SystemFont]("getSysFonts", "/api/system/getSysFonts", NoBody, ResponseOptions{}, "POST")
-var SystemGetWorkspaces = define[EmptyRequest, []*SystemWorkspace]("getWorkspaces", "/api/system/getWorkspaces", NoBody, ResponseOptions{}, "POST")
-var SystemImportConf = define[SystemImportConfRequest, Null]("importConf", "/api/system/importConf", MultipartBody, ResponseOptions{}, "POST")
-var SystemImportCustomFont = define[SystemImportFileRequest, *SystemCustomFont]("importCustomFont", "/api/system/importCustomFont", MultipartBody, ResponseOptions{AdditionalCodes: []int{400, 413}}, "POST")
-var SystemImportTLSCABundle = define[SystemImportFileRequest, SystemMessageData]("importTLSCABundle", "/api/system/importTLSCABundle", MultipartBody, ResponseOptions{}, "POST")
-var SystemLoginAuth = define[SystemLoginAuthRequest, Null]("loginAuth", "/api/system/loginAuth", JSONBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
-var SystemLogoutAuth = define[EmptyRequest, Null]("logoutAuth", "/api/system/logoutAuth", NoBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
-var SystemOIDCMobileCallback = define[SystemOIDCMobileRequest, SystemOIDCMobileData]("oidcMobileCallback", "/api/system/oidc/mobileCallback", StructJSONBody, ResponseOptions{}, "POST")
-var SystemOIDCPoll = define[SystemOIDCPollRequest, SystemOIDCPollData]("oidcPoll", "/api/system/oidc/poll", StructJSONBody, ResponseOptions{}, "POST")
-var SystemOIDCStart = define[SystemOIDCStartRequest, SystemOIDCStartData]("oidcStart", "/api/system/oidc/start", StructJSONBody, ResponseOptions{}, "POST")
-var SystemOIDCValidateStart = define[SystemOIDCRequest, SystemOIDCStartData]("oidcValidateStart", "/api/system/oidc/validate", StructJSONBody, ResponseOptions{}, "POST")
-var SystemOIDCValidateActivate = define[SystemOIDCPollRequest, SystemOIDCActivateData]("oidcValidateActivate", "/api/system/oidc/validateActivate", StructJSONBody, ResponseOptions{}, "POST")
-var SystemOIDCValidateCancel = define[SystemOIDCPollRequest, Null]("oidcValidateCancel", "/api/system/oidc/validateCancel", StructJSONBody, ResponseOptions{}, "POST")
-var SystemOIDCValidatePoll = define[SystemOIDCPollRequest, SystemOIDCValidatePollData]("oidcValidatePoll", "/api/system/oidc/validatePoll", StructJSONBody, ResponseOptions{}, "POST")
-var SystemRemoveCustomFont = define[SystemRemoveCustomFontRequest, SystemRemoveCustomFontData]("removeCustomFont", "/api/system/removeCustomFont", JSONBody, ResponseOptions{AdditionalCodes: []int{400, 404}}, "POST")
-var SystemRemoveWorkspaceDir = define[SystemPathRequest, Null]("removeWorkspaceDir", "/api/system/removeWorkspaceDir", JSONBody, ResponseOptions{}, "POST")
-var SystemRemoveWorkspaceDirPhysically = define[SystemPathRequest, Null]("removeWorkspaceDirPhysically", "/api/system/removeWorkspaceDirPhysically", JSONBody, ResponseOptions{}, "POST")
-var SystemSetAPIToken = define[SystemAPITokenRequest, Null]("setAPIToken", "/api/system/setAPIToken", JSONBody, ResponseOptions{}, "POST")
-var SystemSetAccessAuthCode = define[SystemAccessAuthCodeRequest, Null]("setAccessAuthCode", "/api/system/setAccessAuthCode", JSONBody, ResponseOptions{}, "POST")
-var SystemSetAppearanceMode = define[SystemAppearanceModeRequest, SystemAppearanceData]("setAppearanceMode", "/api/system/setAppearanceMode", JSONBody, ResponseOptions{}, "POST")
-var SystemSetOIDC = define[SystemOIDCRequest, *SystemOIDC]("setOIDC", "/api/system/setOIDC", StructJSONBody, ResponseOptions{}, "POST")
-var SystemSetUILayout = define[SystemUILayoutRequest, Null]("setUILayout", "/api/system/setUILayout", JSONBody, ResponseOptions{}, "POST")
-var SystemSetWorkspaceDir = define[SystemPathRequest, Null]("setWorkspaceDir", "/api/system/setWorkspaceDir", JSONBody, ResponseOptions{}, "POST")
-var SystemAddUIProcess = define[SystemUIProcessRequest, Null]("addUIProcess", "/api/system/uiproc", NoBody, ResponseOptions{EmptyResponseStatuses: []int{200}}, "POST")
-
-var PerformTransactions = define[PerformTransactionsRequest, []*Transaction]("performTransactions", "/api/transactions", JSONBody, ResponseOptions{}, "POST")
-var UndoState = define[TransactionUndoStateRequest, TransactionUndoState]("undoState", "/api/transactions/undoState", JSONBody, ResponseOptions{}, "POST")
-var PerformUndo = define[TransactionHistoryRequest, TransactionHistoryResult]("performUndo", "/api/transactions/undo", JSONBody, ResponseOptions{}, "POST")
-var PerformRedo = define[TransactionHistoryRequest, TransactionHistoryResult]("performRedo", "/api/transactions/redo", JSONBody, ResponseOptions{}, "POST")
-var ClearHistory = define[TransactionClearHistoryRequest, Null]("clearHistory", "/api/transactions/clearHistory", JSONBody, ResponseOptions{}, "POST")
-
-var BroadcastWebSocket = define[EmptyRequest, Null]("broadcast", "/ws/broadcast", NoBody, RawWebSocketOptions(), "GET")
-var BroadcastSubscribe = define[EmptyRequest, Null]("broadcastSubscribe", "/es/broadcast/subscribe", NoBody, RawSSEOptions(), "GET")
+var AIListBuiltinSkills = define[EmptyRequest, []AIBuiltinSkillInfo]("lsBuiltinSkills", "/api/ai/agent/lsBuiltinSkills", AuthenticatedAccess|AdminAccess, NoBody, ResponseOptions{}, "POST")
+var AIGetAgentInstructions = define[EmptyRequest, AIAgentInstructionsData]("getAgentInstructions", "/api/ai/agent/getInstructions", AuthenticatedAccess|AdminAccess, NoBody, ResponseOptions{}, "POST")
+var AISetAgentInstructions = define[AIAgentInstructionsSaveRequest, AIAgentInstructionsData]("setAgentInstructions", "/api/ai/agent/setInstructions", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var AIListUserSkills = define[EmptyRequest, []AIUserSkillInfo]("lsUserSkills", "/api/ai/agent/lsUserSkills", AuthenticatedAccess|AdminAccess, NoBody, ResponseOptions{}, "POST")
+var AIGetSkill = define[AISkillNameRequest, AISkillData]("getSkill", "/api/ai/agent/getSkill", AuthenticatedAccess|AdminAccess, StructJSONBody, ResponseOptions{}, "POST")
+var AISaveSkill = define[AISkillSaveRequest, Null]("saveSkill", "/api/ai/agent/saveSkill", AuthenticatedAccess|AdminAccess|WritableAccess, StructJSONBody, ResponseOptions{}, "POST")
+var AIRemoveSkill = define[AISkillNameRequest, Null]("removeSkill", "/api/ai/agent/removeSkill", AuthenticatedAccess|AdminAccess|WritableAccess, StructJSONBody, ResponseOptions{}, "POST")
+var AIRenameSkill = define[AISkillRenameRequest, Null]("renameSkill", "/api/ai/agent/renameSkill", AuthenticatedAccess|AdminAccess|WritableAccess, StructJSONBody, ResponseOptions{}, "POST")
+var AIManageSkills = define[AISkillFileRequest, AISkillFileData]("manageSkills", "/api/ai/agent/manageSkills", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+
+var AIEditorChat = define[AIEditorChatRequest, Null]("aiEditorChat", "/api/ai/editor/chat", AuthenticatedAccess|AdminAccess, StructJSONBody, aiEditorSSEOptions(), "POST")
+var AIAgentChat = define[AIAgentChatRequest, Null]("agentChat", "/api/ai/agent/chat", AuthenticatedAccess|AdminAccess|WritableAccess, StructJSONBody, aiAgentSSEOptions(), "POST")
+var AIMCPOAuthCallback = define[EmptyRequest, BinaryContent]("mcpOAuthCallback", "/api/ai/mcp/oauth/callback/:flowID", PublicAccess, 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", AuthenticatedAccess|AdminAccess, StructJSONBody, ResponseOptions{AdditionalErrorStatuses: []int{500}}, "POST")
+var AISaveSession = define[AISession, AISessionSaveData]("saveSession", "/api/ai/agent/saveSession", AuthenticatedAccess|AdminAccess|WritableAccess, StructJSONBody, ResponseOptions{DataOnError: true, AdditionalErrorStatuses: []int{400, 409, 500}}, "POST")
+
+var NetworkEcho = define[EmptyRequest, NetworkEchoData]("echo", "/api/network/echo", AuthenticatedAccess|AdminAccess, RawBody, ResponseOptions{}, "ANY")
+var NetworkEchoPath = define[EmptyRequest, NetworkEchoData]("echoPath", "/api/network/echo/*path", AuthenticatedAccess|AdminAccess, RawBody, ResponseOptions{}, "ANY")
+var NetworkForwardProxy = define[NetworkForwardRequest, NetworkForwardData]("forwardProxy", "/api/network/forwardProxy", AuthenticatedAccess|AdminAccess, JSONBody, ResponseOptions{AdditionalCodes: []int{1, 2, 3, 4, 5, 6, 7, 8, 10}}, "POST")
+var NetworkHTTPProxy = define[EmptyRequest, ProxyFailure]("httpProxy", "/api/network/proxy", AuthenticatedAccess|AdminAccess, RawBody, ProxyOptions(HTTPProxy), "ANY")
+var NetworkEventSourceProxy = define[EmptyRequest, ProxyFailure]("esProxy", "/es/network/proxy", AuthenticatedAccess|AdminAccess, NoBody, ProxyOptions(EventSourceProxy), "GET")
+var NetworkWebSocketProxy = define[EmptyRequest, ProxyFailure]("wsProxy", "/ws/network/proxy", AuthenticatedAccess|AdminAccess, NoBody, ProxyOptions(WebSocketProxy), "GET")
+
+var PluginPrivateService = define[EmptyRequest, PluginServiceContent]("pluginPrivateWebServer", "/plugin/private/:name/*path", AuthenticatedAccess|AdminAccess|WritableAccess, RawBody, PluginServiceOptions(), "ANY")
+
+var GetDynamicIcon = define[DynamicIconRequest, BinaryContent]("getDynamicIcon", "/api/icon/getDynamicIcon", AuthenticatedAccess, NoBody, ResponseOptions{Output: BinaryOutput, ErrorStatus: 200, ContentVariants: []HTTPContentVariant{{Status: 200, ContentType: "image/svg+xml"}}, EmptyResponseStatuses: []int{500}}, "GET")
+
+var ExtensionCopy = define[ExtensionCopyRequest, *ExtensionCopyData]("extensionCopy", "/api/extension/copy", AuthenticatedAccess|AdminAccess|WritableAccess, MultipartBody, ResponseOptions{DataOnError: true}, "POST")
+
+var SystemBootProgressSSE = define[EmptyRequest, Null]("bootProgressSSE", "/api/system/bootProgressSSE", PublicAccess, NoBody, SSEOptions(SSEEvent[BootProgressData]("")), "GET")
+var SystemGetBootAppearance = define[EmptyRequest, *SettingBootAppearance]("getBootAppearance", "/api/system/getBootAppearance", PublicAccess, NoBody, ResponseOptions{EmptyResponseStatuses: []int{403}}, "GET")
+var SystemGetCaptcha = define[EmptyRequest, BinaryContent]("getCaptcha", "/api/system/getCaptcha", PublicAccess, NoBody, ResponseOptions{Output: BinaryOutput, ErrorStatus: 200, ContentVariants: []HTTPContentVariant{{Status: 200, ContentType: "image/png"}}, EmptyResponseStatuses: []int{500}}, "GET")
+var SystemOIDCCallback = define[SystemOIDCCallbackRequest, BinaryContent]("oidcCallback", "/api/system/oidc/callback", PublicAccess, NoBody, HTTPContentOptions(HTTPContentVariant{Status: 200, ContentType: "text/html"}), "GET")
+var SystemAddCustomEmoji = define[SystemCustomEmojiRequest, SystemPathData]("addCustomEmoji", "/api/system/addCustomEmoji", AuthenticatedAccess|AdminAccess|WritableAccess, FormBody, ResponseOptions{AdditionalCodes: []int{400, 413}}, "POST")
+var SystemCheckUpdate = define[SystemCheckUpdateRequest, Null]("checkUpdate", "/api/system/checkUpdate", AuthenticatedAccess|AdminAccess, JSONBody, ResponseOptions{}, "POST")
+var SystemCheckWorkspaceDir = define[SystemPathRequest, SystemWorkspaceCheckData]("checkWorkspaceDir", "/api/system/checkWorkspaceDir", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var SystemCreateWorkspaceDir = define[SystemPathRequest, Null]("createWorkspaceDir", "/api/system/createWorkspaceDir", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var SystemDismissOnboarding = define[EmptyRequest, *SystemOnboarding]("dismissOnboarding", "/api/system/dismissOnboarding", AuthenticatedAccess|AdminAccess|WritableAccess, NoBody, ResponseOptions{}, "POST")
+var SystemEnsureOnboarding = define[EmptyRequest, *SystemOnboarding]("ensureOnboarding", "/api/system/ensureOnboarding", AuthenticatedAccess|AdminAccess|WritableAccess, NoBody, ResponseOptions{}, "POST")
+var SystemExit = define[SystemExitRequest, SystemExitData]("exit", "/api/system/exit", AuthenticatedAccess|AdminAccess, JSONBody, ResponseOptions{AdditionalCodes: []int{1, 2}, DataOnError: true}, "POST")
+var SystemExportConf = define[EmptyRequest, SystemExportConfData]("exportConf", "/api/system/exportConf", AuthenticatedAccess|AdminAccess, NoBody, ResponseOptions{}, "POST")
+var SystemExportLog = define[EmptyRequest, SystemZipData]("exportLog", "/api/system/exportLog", AuthenticatedAccess|AdminAccess, NoBody, ResponseOptions{}, "POST")
+var SystemAppendKeyboardLog = define[SystemKeyboardLogRequest, Null]("appendKeyboardLog", "/api/system/appendKeyboardLog", AuthenticatedAccess|AdminAccess, JSONBody, ResponseOptions{}, "POST")
+var SystemExportTLSCABundle = define[EmptyRequest, SystemPathData]("exportTLSCABundle", "/api/system/exportTLSCABundle", AuthenticatedAccess|AdminAccess, NoBody, ResponseOptions{}, "POST")
+var SystemExportTLSCACert = define[EmptyRequest, SystemPathData]("exportTLSCACert", "/api/system/exportTLSCACert", AuthenticatedAccess|AdminAccess, NoBody, ResponseOptions{}, "POST")
+var SystemGetChangelog = define[SystemChangelogRequest, SystemChangelogData]("getChangelog", "/api/system/getChangelog", AuthenticatedAccess, LegacyOptionalBody, ResponseOptions{}, "POST")
+var SystemGetConf = define[EmptyRequest, SystemConfData]("getConf", "/api/system/getConf", AuthenticatedAccess, NoBody, ResponseOptions{}, "POST")
+var SystemGetCustomFonts = define[EmptyRequest, []*SystemCustomFont]("getCustomFonts", "/api/system/getCustomFonts", AuthenticatedAccess, NoBody, ResponseOptions{}, "POST")
+var SystemGetEmojiConf = define[EmptyRequest, []*SystemEmojiGroup]("getEmojiConf", "/api/system/getEmojiConf", AuthenticatedAccess, NoBody, ResponseOptions{}, "POST")
+var SystemGetMobileWorkspaces = define[EmptyRequest, []string]("getMobileWorkspaces", "/api/system/getMobileWorkspaces", AuthenticatedAccess|AdminAccess, NoBody, ResponseOptions{}, "POST")
+var SystemGetSysFonts = define[EmptyRequest, []*SystemFont]("getSysFonts", "/api/system/getSysFonts", AuthenticatedAccess|AdminAccess, NoBody, ResponseOptions{}, "POST")
+var SystemGetWorkspaces = define[EmptyRequest, []*SystemWorkspace]("getWorkspaces", "/api/system/getWorkspaces", AuthenticatedAccess, NoBody, ResponseOptions{}, "POST")
+var SystemImportConf = define[SystemImportConfRequest, Null]("importConf", "/api/system/importConf", AuthenticatedAccess|AdminAccess|WritableAccess, MultipartBody, ResponseOptions{}, "POST")
+var SystemImportCustomFont = define[SystemImportFileRequest, *SystemCustomFont]("importCustomFont", "/api/system/importCustomFont", AuthenticatedAccess|AdminAccess|WritableAccess, MultipartBody, ResponseOptions{AdditionalCodes: []int{400, 413}}, "POST")
+var SystemImportTLSCABundle = define[SystemImportFileRequest, SystemMessageData]("importTLSCABundle", "/api/system/importTLSCABundle", AuthenticatedAccess|AdminAccess|WritableAccess, MultipartBody, ResponseOptions{}, "POST")
+var SystemLoginAuth = define[SystemLoginAuthRequest, Null]("loginAuth", "/api/system/loginAuth", PublicAccess, JSONBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
+var SystemLogoutAuth = define[EmptyRequest, Null]("logoutAuth", "/api/system/logoutAuth", PublicAccess, NoBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
+var SystemOIDCMobileCallback = define[SystemOIDCMobileRequest, SystemOIDCMobileData]("oidcMobileCallback", "/api/system/oidc/mobileCallback", PublicAccess, StructJSONBody, ResponseOptions{}, "POST")
+var SystemOIDCPoll = define[SystemOIDCPollRequest, SystemOIDCPollData]("oidcPoll", "/api/system/oidc/poll", PublicAccess, StructJSONBody, ResponseOptions{}, "POST")
+var SystemOIDCStart = define[SystemOIDCStartRequest, SystemOIDCStartData]("oidcStart", "/api/system/oidc/start", PublicAccess, StructJSONBody, ResponseOptions{}, "POST")
+var SystemOIDCValidateStart = define[SystemOIDCRequest, SystemOIDCStartData]("oidcValidateStart", "/api/system/oidc/validate", AuthenticatedAccess|AdminAccess|WritableAccess, StructJSONBody, ResponseOptions{}, "POST")
+var SystemOIDCValidateActivate = define[SystemOIDCPollRequest, SystemOIDCActivateData]("oidcValidateActivate", "/api/system/oidc/validateActivate", AuthenticatedAccess|AdminAccess|WritableAccess, StructJSONBody, ResponseOptions{}, "POST")
+var SystemOIDCValidateCancel = define[SystemOIDCPollRequest, Null]("oidcValidateCancel", "/api/system/oidc/validateCancel", AuthenticatedAccess|AdminAccess, StructJSONBody, ResponseOptions{}, "POST")
+var SystemOIDCValidatePoll = define[SystemOIDCPollRequest, SystemOIDCValidatePollData]("oidcValidatePoll", "/api/system/oidc/validatePoll", PublicAccess, StructJSONBody, ResponseOptions{}, "POST")
+var SystemRemoveCustomFont = define[SystemRemoveCustomFontRequest, SystemRemoveCustomFontData]("removeCustomFont", "/api/system/removeCustomFont", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{AdditionalCodes: []int{400, 404}}, "POST")
+var SystemRemoveWorkspaceDir = define[SystemPathRequest, Null]("removeWorkspaceDir", "/api/system/removeWorkspaceDir", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var SystemRemoveWorkspaceDirPhysically = define[SystemPathRequest, Null]("removeWorkspaceDirPhysically", "/api/system/removeWorkspaceDirPhysically", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var SystemSetAPIToken = define[SystemAPITokenRequest, Null]("setAPIToken", "/api/system/setAPIToken", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var SystemSetAccessAuthCode = define[SystemAccessAuthCodeRequest, Null]("setAccessAuthCode", "/api/system/setAccessAuthCode", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var SystemSetAppearanceMode = define[SystemAppearanceModeRequest, SystemAppearanceData]("setAppearanceMode", "/api/system/setAppearanceMode", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var SystemSetOIDC = define[SystemOIDCRequest, *SystemOIDC]("setOIDC", "/api/system/setOIDC", AuthenticatedAccess|AdminAccess|WritableAccess, StructJSONBody, ResponseOptions{}, "POST")
+var SystemSetUILayout = define[SystemUILayoutRequest, Null]("setUILayout", "/api/system/setUILayout", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var SystemSetWorkspaceDir = define[SystemPathRequest, Null]("setWorkspaceDir", "/api/system/setWorkspaceDir", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var SystemAddUIProcess = define[SystemUIProcessRequest, Null]("addUIProcess", "/api/system/uiproc", AuthenticatedAccess, NoBody, ResponseOptions{EmptyResponseStatuses: []int{200}}, "POST")
+
+var PerformTransactions = define[PerformTransactionsRequest, []*Transaction]("performTransactions", "/api/transactions", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var UndoState = define[TransactionUndoStateRequest, TransactionUndoState]("undoState", "/api/transactions/undoState", AuthenticatedAccess, JSONBody, ResponseOptions{}, "POST")
+var PerformUndo = define[TransactionHistoryRequest, TransactionHistoryResult]("performUndo", "/api/transactions/undo", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var PerformRedo = define[TransactionHistoryRequest, TransactionHistoryResult]("performRedo", "/api/transactions/redo", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+var ClearHistory = define[TransactionClearHistoryRequest, Null]("clearHistory", "/api/transactions/clearHistory", AuthenticatedAccess|AdminAccess|WritableAccess, JSONBody, ResponseOptions{}, "POST")
+
+var BroadcastWebSocket = define[EmptyRequest, Null]("broadcast", "/ws/broadcast", AuthenticatedAccess|AdminAccess, NoBody, RawWebSocketOptions(), "GET")
+var BroadcastSubscribe = define[EmptyRequest, Null]("broadcastSubscribe", "/es/broadcast/subscribe", AuthenticatedAccess|AdminAccess, NoBody, RawSSEOptions(), "GET")
diff --git a/kernel/apicontract/direct_json_test.go b/kernel/apicontract/direct_json_test.go
index 3d848a7160..c41ca2ac17 100644
--- a/kernel/apicontract/direct_json_test.go
+++ b/kernel/apicontract/direct_json_test.go
@@ -16,7 +16,7 @@ type directJSONTestResult struct {
func TestDirectJSONHTTPResponses(t *testing.T) {
previous := definitions
t.Cleanup(func() { definitions = previous })
- endpoint := define[EmptyRequest, directJSONTestResult]("directJSONTest", "/test/direct-json", NoBody, ResponseOptions{Output: DirectJSONOutput, NoContent: true}, "POST")
+ endpoint := define[EmptyRequest, directJSONTestResult]("directJSONTest", "/test/direct-json", PublicAccess, NoBody, ResponseOptions{Output: DirectJSONOutput, NoContent: true}, "POST")
bundle, err := BuildBundle()
if err != nil {
t.Fatal(err)
diff --git a/kernel/apicontract/empty_response_test.go b/kernel/apicontract/empty_response_test.go
index 3f4d567b1e..0583140f36 100644
--- a/kernel/apicontract/empty_response_test.go
+++ b/kernel/apicontract/empty_response_test.go
@@ -8,8 +8,8 @@ import (
func TestEmptyHTTPResponse(t *testing.T) {
previous := definitions
t.Cleanup(func() { definitions = previous })
- endpoint := define[EmptyRequest, string]("optionalBody", "/test/empty", NoBody, ResponseOptions{EmptyResponseStatuses: []int{200, 403}}, "GET")
- image := define[EmptyRequest, BinaryContent]("optionalImage", "/test/image", NoBody, ResponseOptions{Output: BinaryOutput, ErrorStatus: 200,
+ endpoint := define[EmptyRequest, string]("optionalBody", "/test/empty", PublicAccess, NoBody, ResponseOptions{EmptyResponseStatuses: []int{200, 403}}, "GET")
+ image := define[EmptyRequest, BinaryContent]("optionalImage", "/test/image", PublicAccess, NoBody, ResponseOptions{Output: BinaryOutput, ErrorStatus: 200,
ContentVariants: []HTTPContentVariant{{200, "image/png"}}, EmptyResponseStatuses: []int{500}}, "GET")
bundle, err := BuildBundle()
if err != nil {
@@ -58,7 +58,7 @@ func TestEmptyHTTPResponse(t *testing.T) {
func TestHTTPRedirectResponse(t *testing.T) {
previous := definitions
t.Cleanup(func() { definitions = previous })
- endpoint := define[EmptyRequest, BinaryContent]("redirect", "/test/redirect", NoBody,
+ endpoint := define[EmptyRequest, BinaryContent]("redirect", "/test/redirect", PublicAccess, NoBody,
HTTPContentOptions(HTTPContentVariant{302, "text/html"}), "GET")
response := RedirectHTTPContent(302, "/target?value=one&other=two")
if endpoint.Status(response) != 302 || response.Redirect().Location != "/target?value=one&other=two" {
@@ -82,7 +82,7 @@ func TestEmptyHTTPResponseDeclaration(t *testing.T) {
t.Cleanup(func() { definitions = previous })
for _, status := range []int{0, 101, 199, 600} {
definitions = previous
- define[EmptyRequest, Null]("empty", "/test/empty", NoBody, ResponseOptions{EmptyResponseStatuses: []int{status}}, "GET")
+ define[EmptyRequest, Null]("empty", "/test/empty", PublicAccess, NoBody, ResponseOptions{EmptyResponseStatuses: []int{status}}, "GET")
if _, err := BuildBundle(); err == nil {
t.Fatalf("invalid empty status accepted: %d", status)
}
diff --git a/kernel/apicontract/http_content_test.go b/kernel/apicontract/http_content_test.go
index 9e04f0710c..38c085c230 100644
--- a/kernel/apicontract/http_content_test.go
+++ b/kernel/apicontract/http_content_test.go
@@ -8,7 +8,7 @@ import (
func TestHTTPContentVariants(t *testing.T) {
previous := definitions
t.Cleanup(func() { definitions = previous })
- endpoint := define[EmptyRequest, BinaryContent]("page", "/test/page", NoBody, HTTPContentOptions(
+ endpoint := define[EmptyRequest, BinaryContent]("page", "/test/page", PublicAccess, NoBody, HTTPContentOptions(
HTTPContentVariant{200, "text/html"}, HTTPContentVariant{400, "text/html"}, HTTPContentVariant{403, "text/plain"}), "GET")
bundle, err := BuildBundle()
if err != nil {
@@ -62,7 +62,7 @@ func TestHTTPContentDeclarations(t *testing.T) {
{{200, "invalid"}},
} {
definitions = previous
- define[EmptyRequest, BinaryContent]("invalidPage", "/test/page", NoBody, HTTPContentOptions(variants...), "GET")
+ define[EmptyRequest, BinaryContent]("invalidPage", "/test/page", PublicAccess, NoBody, HTTPContentOptions(variants...), "GET")
if _, err := BuildBundle(); err == nil {
t.Fatalf("invalid variants accepted: %+v", variants)
}
diff --git a/kernel/apicontract/http_status_test.go b/kernel/apicontract/http_status_test.go
index d9fbae64cd..54ebc19c39 100644
--- a/kernel/apicontract/http_status_test.go
+++ b/kernel/apicontract/http_status_test.go
@@ -5,7 +5,7 @@ import "testing"
func TestAdditionalJSONErrorStatus(t *testing.T) {
previous := definitions
t.Cleanup(func() { definitions = previous })
- endpoint := define[EmptyRequest, Null]("throttled", "/test/throttled", NoBody, ResponseOptions{AdditionalErrorStatuses: []int{429}}, "POST")
+ endpoint := define[EmptyRequest, Null]("throttled", "/test/throttled", PublicAccess, NoBody, ResponseOptions{AdditionalErrorStatuses: []int{429}}, "POST")
response := endpoint.WithHTTPStatus(Failure[Null](-1, "rate limited"), 429)
if endpoint.Status(response) != 429 {
t.Fatal("error status changed")
diff --git a/kernel/apicontract/multipart_files_test.go b/kernel/apicontract/multipart_files_test.go
index 29deeacec4..5740e3beb1 100644
--- a/kernel/apicontract/multipart_files_test.go
+++ b/kernel/apicontract/multipart_files_test.go
@@ -14,7 +14,7 @@ type multiFileRequest struct {
func TestMultipartFileListAndSuccessMessage(t *testing.T) {
previous := definitions
t.Cleanup(func() { definitions = previous })
- endpoint := define[multiFileRequest, []string]("multiFiles", "/test/multi-files", MultipartBody, ResponseOptions{}, "POST")
+ endpoint := define[multiFileRequest, []string]("multiFiles", "/test/multi-files", PublicAccess, MultipartBody, ResponseOptions{}, "POST")
files := []*multipart.FileHeader{{Filename: "first.txt"}, {Filename: "second.txt"}}
request, err := endpoint.DecodeMultipart(&multipart.Form{File: map[string][]*multipart.FileHeader{"files": files}})
if err != nil || len(request.Files) != 2 || request.Files[0] != files[0] || request.Files[1] != files[1] {
diff --git a/kernel/apicontract/plugin_service_protocol_test.go b/kernel/apicontract/plugin_service_protocol_test.go
index 3ca601bae9..424af272c9 100644
--- a/kernel/apicontract/plugin_service_protocol_test.go
+++ b/kernel/apicontract/plugin_service_protocol_test.go
@@ -8,7 +8,7 @@ import (
func TestPluginServiceProtocolVariants(t *testing.T) {
previous := definitions
t.Cleanup(func() { definitions = previous })
- endpoint := define[EmptyRequest, PluginServiceContent]("pluginServiceTest", "/test/plugin/:name/*path", RawBody, PluginServiceOptions(), "ANY")
+ endpoint := define[EmptyRequest, PluginServiceContent]("pluginServiceTest", "/test/plugin/:name/*path", PublicAccess, RawBody, PluginServiceOptions(), "ANY")
bundle, err := BuildBundle()
if err != nil {
t.Fatal(err)
diff --git a/kernel/apicontract/proxy_protocol_test.go b/kernel/apicontract/proxy_protocol_test.go
index f7780c7a6d..f5d87ebdbb 100644
--- a/kernel/apicontract/proxy_protocol_test.go
+++ b/kernel/apicontract/proxy_protocol_test.go
@@ -10,9 +10,9 @@ import (
func TestProxyProtocolResponses(t *testing.T) {
previous := definitions
t.Cleanup(func() { definitions = previous })
- endpoint := define[EmptyRequest, ProxyFailure]("proxyTest", "/test/proxy", RawBody, ProxyOptions(HTTPProxy), "ANY")
- define[EmptyRequest, ProxyFailure]("eventsProxyTest", "/test/eventsProxy", NoBody, ProxyOptions(EventSourceProxy), "GET")
- define[EmptyRequest, ProxyFailure]("wsProxyTest", "/test/wsProxy", NoBody, ProxyOptions(WebSocketProxy), "GET")
+ endpoint := define[EmptyRequest, ProxyFailure]("proxyTest", "/test/proxy", PublicAccess, RawBody, ProxyOptions(HTTPProxy), "ANY")
+ define[EmptyRequest, ProxyFailure]("eventsProxyTest", "/test/eventsProxy", PublicAccess, NoBody, ProxyOptions(EventSourceProxy), "GET")
+ define[EmptyRequest, ProxyFailure]("wsProxyTest", "/test/wsProxy", PublicAccess, NoBody, ProxyOptions(WebSocketProxy), "GET")
bundle, err := BuildBundle()
if err != nil {
t.Fatal(err)
diff --git a/kernel/apicontract/routes.go b/kernel/apicontract/routes.go
index f24aaa4892..f2d89aa29b 100644
--- a/kernel/apicontract/routes.go
+++ b/kernel/apicontract/routes.go
@@ -7,15 +7,18 @@ import (
"go/token"
"os"
"path/filepath"
+ "slices"
"sort"
"strconv"
"strings"
)
type Route struct {
- Method string `json:"method"`
- Path string `json:"path"`
- Handler string `json:"handler"`
+ Method string `json:"method"`
+ Path string `json:"path"`
+ Handler string `json:"handler"`
+ Middleware []string `json:"-"`
+ Contract string `json:"-"`
}
func (r Route) Key() string { return r.Method + " " + r.Path }
@@ -36,6 +39,10 @@ func ExpandMethods(methods []string) []string {
// ReadRoutes 读取实际路由及处理函数声明,防止契约与独立登记表各自漂移。
func ReadRoutes(apiDir string) ([]Route, map[string]string, error) {
var routes []Route
+ definitionsByName := map[string]Definition{}
+ for _, definition := range Definitions() {
+ definitionsByName[definition.Name] = definition
+ }
bindings := map[string]string{}
endpointNames, err := readEndpointNames(filepath.Join(apiDir, "..", "apicontract", "contracts.go"))
if err != nil {
@@ -107,7 +114,35 @@ func ReadRoutes(apiDir string) ([]Route, map[string]string, error) {
}
pathValue, _ := strconv.Unquote(path.Value)
handler := ""
+ var middleware []string
+ contract := ""
switch value := call.Args[len(call.Args)-1].(type) {
+ case *ast.CallExpr:
+ function, ok := value.Fun.(*ast.Ident)
+ if !ok || function.Name != "contractRouteHandlers" || len(value.Args) != 2 ||
+ len(call.Args) != pathIndex+2 || !call.Ellipsis.IsValid() {
+ err = fmt.Errorf("unsupported API route handler: %s", pathValue)
+ return false
+ }
+ endpoint, endpointOK := value.Args[0].(*ast.SelectorExpr)
+ target, targetOK := value.Args[1].(*ast.Ident)
+ if !endpointOK || !targetOK {
+ err = fmt.Errorf("invalid contract route binding: %s", pathValue)
+ return false
+ }
+ pkg, packageOK := endpoint.X.(*ast.Ident)
+ if !packageOK || pkg.Name != "apicontract" {
+ err = fmt.Errorf("route must bind a declared contract: %s", pathValue)
+ return false
+ }
+ contract = endpointNames[endpoint.Sel.Name]
+ definition, found := definitionsByName[contract]
+ if !found || !definition.Authorization.Valid() {
+ err = fmt.Errorf("invalid route authorization: %s", pathValue)
+ return false
+ }
+ handler = target.Name
+ middleware = definition.Authorization.MiddlewareNames()
case *ast.Ident:
handler = value.Name
case *ast.SelectorExpr:
@@ -119,7 +154,22 @@ func ReadRoutes(apiDir string) ([]Route, map[string]string, error) {
default:
err = fmt.Errorf("unsupported API route handler: %s", pathValue)
}
- routes = append(routes, Route{methodValue, pathValue, handler})
+ if contract == "" {
+ for _, argument := range call.Args[pathIndex+1 : len(call.Args)-1] {
+ selector, ok := argument.(*ast.SelectorExpr)
+ if !ok {
+ err = fmt.Errorf("unsupported route middleware: %s", pathValue)
+ return false
+ }
+ pkg, ok := selector.X.(*ast.Ident)
+ if !ok {
+ err = fmt.Errorf("unsupported route middleware: %s", pathValue)
+ return false
+ }
+ middleware = append(middleware, pkg.Name+"."+selector.Sel.Name)
+ }
+ }
+ routes = append(routes, Route{Method: methodValue, Path: pathValue, Handler: handler, Middleware: middleware, Contract: contract})
return true
})
}
@@ -136,6 +186,9 @@ func ReadRoutes(apiDir string) ([]Route, map[string]string, error) {
func CheckRoutes(routes []Route, bindings map[string]string, legacy []Route) error {
typed := map[string]Definition{}
for _, definition := range Definitions() {
+ if !definition.Authorization.Valid() {
+ return fmt.Errorf("contract needs explicit authorization: %s", definition.Name)
+ }
for _, method := range definition.Methods {
typed[method+" "+definition.Path] = definition
}
@@ -150,6 +203,10 @@ func CheckRoutes(routes []Route, bindings map[string]string, legacy []Route) err
seen := map[string]bool{}
for _, route := range routes {
if definition, exists := typed[route.Key()]; exists {
+ if route.Contract != "" && route.Contract != definition.Name ||
+ !slices.Equal(route.Middleware, definition.Authorization.MiddlewareNames()) {
+ return fmt.Errorf("route authorization missing or mismatched: %s", route.Key())
+ }
if seen[route.Key()] {
return fmt.Errorf("duplicate typed route: %s", route.Key())
}
diff --git a/kernel/apicontract/schema.go b/kernel/apicontract/schema.go
index 6998dd6d18..c789116829 100644
--- a/kernel/apicontract/schema.go
+++ b/kernel/apicontract/schema.go
@@ -30,6 +30,7 @@ type EndpointSchema struct {
Method string `json:"method"`
Path string `json:"path"`
Handler string `json:"handler"`
+ Authorization []string `json:"authorization"`
Body BodyMode `json:"body"`
Request *Schema `json:"request"`
Response *Schema `json:"response"`
@@ -551,6 +552,9 @@ func BuildBundle() (*Bundle, error) {
b := &schemaBuilder{definitions: map[string]*Schema{}, owners: map[string]reflect.Type{}}
bundle := &Bundle{Dialect: "https://json-schema.org/draft/2020-12/schema", Definitions: b.definitions}
for _, definition := range Definitions() {
+ if !definition.Authorization.Valid() {
+ return nil, fmt.Errorf("contract needs explicit authorization: %s", definition.Name)
+ }
if err := validatePluginServiceDefinition(definition); err != nil {
return nil, err
}
@@ -703,7 +707,7 @@ func BuildBundle() (*Bundle, error) {
failure.AdditionalProperties = true
response := &Schema{AnyOf: []*Schema{success, failure}}
for _, method := range ExpandMethods(definition.Methods) {
- bundle.Endpoints = append(bundle.Endpoints, EndpointSchema{Method: method, Path: definition.Path, Handler: definition.Name,
+ bundle.Endpoints = append(bundle.Endpoints, EndpointSchema{Method: method, Path: definition.Path, Handler: definition.Name, Authorization: definition.Authorization.Policies(),
Body: definition.Body, Request: request, Response: response, Output: definition.Output, ErrorStatus: definition.ErrorStatus, NoContent: definition.NoContent, WebSocket: websocket,
AdditionalErrorStatuses: definition.AdditionalErrorStatuses, SSE: sse, Proxy: definition.Proxy, PluginService: definition.PluginService, ContentVariants: definition.ContentVariants, EmptyResponseStatuses: definition.EmptyResponseStatuses})
}
diff --git a/kernel/apicontract/schema.json b/kernel/apicontract/schema.json
index 531444f56d..ec5f6082f5 100644
--- a/kernel/apicontract/schema.json
+++ b/kernel/apicontract/schema.json
@@ -113130,6 +113130,10 @@
"method": "CONNECT",
"path": "/api/network/echo",
"handler": "echo",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "raw",
"request": {
"type": "string",
@@ -113206,6 +113210,10 @@
"method": "CONNECT",
"path": "/api/network/echo/*path",
"handler": "echoPath",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "raw",
"request": {
"type": "string",
@@ -113282,6 +113290,10 @@
"method": "CONNECT",
"path": "/api/network/proxy",
"handler": "httpProxy",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "raw",
"request": {
"type": "string",
@@ -113345,6 +113357,11 @@
"method": "CONNECT",
"path": "/plugin/private/:name/*path",
"handler": "pluginPrivateWebServer",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "raw",
"request": {
"type": "string",
@@ -113631,6 +113648,10 @@
"method": "DELETE",
"path": "/api/network/echo",
"handler": "echo",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "raw",
"request": {
"type": "string",
@@ -113707,6 +113728,10 @@
"method": "DELETE",
"path": "/api/network/echo/*path",
"handler": "echoPath",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "raw",
"request": {
"type": "string",
@@ -113783,6 +113808,10 @@
"method": "DELETE",
"path": "/api/network/proxy",
"handler": "httpProxy",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "raw",
"request": {
"type": "string",
@@ -113846,6 +113875,11 @@
"method": "DELETE",
"path": "/plugin/private/:name/*path",
"handler": "pluginPrivateWebServer",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "raw",
"request": {
"type": "string",
@@ -114132,6 +114166,9 @@
"method": "GET",
"path": "/.well-known/oauth-authorization-server",
"handler": "mcpOAuthMetadata",
+ "authorization": [
+ "public"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -114216,6 +114253,9 @@
"method": "GET",
"path": "/.well-known/oauth-protected-resource",
"handler": "mcpOAuthResourceRoot",
+ "authorization": [
+ "public"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -114300,6 +114340,9 @@
"method": "GET",
"path": "/.well-known/oauth-protected-resource/mcp",
"handler": "mcpOAuthResource",
+ "authorization": [
+ "public"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -114384,6 +114427,9 @@
"method": "GET",
"path": "/api/ai/mcp/oauth/callback/:flowID",
"handler": "mcpOAuthCallback",
+ "authorization": [
+ "public"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -114456,6 +114502,9 @@
"method": "GET",
"path": "/api/icon/getDynamicIcon",
"handler": "getDynamicIcon",
+ "authorization": [
+ "authenticated"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/DynamicIconRequestInput"
@@ -114523,6 +114572,10 @@
"method": "GET",
"path": "/api/network/echo",
"handler": "echo",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "raw",
"request": {
"type": "string",
@@ -114599,6 +114652,10 @@
"method": "GET",
"path": "/api/network/echo/*path",
"handler": "echoPath",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "raw",
"request": {
"type": "string",
@@ -114675,6 +114732,10 @@
"method": "GET",
"path": "/api/network/proxy",
"handler": "httpProxy",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "raw",
"request": {
"type": "string",
@@ -114738,6 +114799,9 @@
"method": "GET",
"path": "/api/plugin",
"handler": "listLoadedPluginsGET",
+ "authorization": [
+ "authenticated"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -114830,6 +114894,9 @@
"method": "GET",
"path": "/api/plugin/rpc",
"handler": "getLoadedPluginRPC",
+ "authorization": [
+ "authenticated"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/LoadedPluginRequestInput"
@@ -114916,6 +114983,9 @@
"method": "GET",
"path": "/api/plugin/rpc/:name",
"handler": "getLoadedPluginRPCByName",
+ "authorization": [
+ "authenticated"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/LoadedPluginRequestInput"
@@ -115002,6 +115072,9 @@
"method": "GET",
"path": "/api/system/bootProgress",
"handler": "bootProgress",
+ "authorization": [
+ "public"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -115077,6 +115150,9 @@
"method": "GET",
"path": "/api/system/bootProgressSSE",
"handler": "bootProgressSSE",
+ "authorization": [
+ "public"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -115140,6 +115216,9 @@
"method": "GET",
"path": "/api/system/getBootAppearance",
"handler": "getBootAppearance",
+ "authorization": [
+ "public"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -115225,6 +115304,9 @@
"method": "GET",
"path": "/api/system/getCaptcha",
"handler": "getCaptcha",
+ "authorization": [
+ "public"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -115292,6 +115374,9 @@
"method": "GET",
"path": "/api/system/oidc/callback",
"handler": "oidcCallback",
+ "authorization": [
+ "public"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/SystemOIDCCallbackRequestInput"
@@ -115356,6 +115441,9 @@
"method": "GET",
"path": "/api/system/version",
"handler": "version",
+ "authorization": [
+ "public"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -115431,6 +115519,10 @@
"method": "GET",
"path": "/es/broadcast/subscribe",
"handler": "broadcastSubscribe",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -115495,6 +115587,10 @@
"method": "GET",
"path": "/es/network/proxy",
"handler": "esProxy",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -115557,6 +115653,9 @@
"method": "GET",
"path": "/oauth/mcp/authorize",
"handler": "mcpOAuthServerAuthorize",
+ "authorization": [
+ "public"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -115629,6 +115728,11 @@
"method": "GET",
"path": "/plugin/private/:name/*path",
"handler": "pluginPrivateWebServer",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "raw",
"request": {
"type": "string",
@@ -115915,6 +116019,10 @@
"method": "GET",
"path": "/ws/broadcast",
"handler": "broadcast",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -115998,6 +116106,10 @@
"method": "GET",
"path": "/ws/network/proxy",
"handler": "wsProxy",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -116064,6 +116176,11 @@
"method": "GET",
"path": "/ws/plugin/rpc",
"handler": "pluginJsonRpcWebSocket",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -116164,6 +116281,11 @@
"method": "GET",
"path": "/ws/plugin/rpc/:name",
"handler": "pluginJsonRpcWebSocketByName",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -116264,6 +116386,10 @@
"method": "HEAD",
"path": "/api/network/echo",
"handler": "echo",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "raw",
"request": {
"type": "string",
@@ -116340,6 +116466,10 @@
"method": "HEAD",
"path": "/api/network/echo/*path",
"handler": "echoPath",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "raw",
"request": {
"type": "string",
@@ -116416,6 +116546,10 @@
"method": "HEAD",
"path": "/api/network/proxy",
"handler": "httpProxy",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "raw",
"request": {
"type": "string",
@@ -116479,6 +116613,11 @@
"method": "HEAD",
"path": "/plugin/private/:name/*path",
"handler": "pluginPrivateWebServer",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "raw",
"request": {
"type": "string",
@@ -116765,6 +116904,10 @@
"method": "OPTIONS",
"path": "/api/network/echo",
"handler": "echo",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "raw",
"request": {
"type": "string",
@@ -116841,6 +116984,10 @@
"method": "OPTIONS",
"path": "/api/network/echo/*path",
"handler": "echoPath",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "raw",
"request": {
"type": "string",
@@ -116917,6 +117064,10 @@
"method": "OPTIONS",
"path": "/api/network/proxy",
"handler": "httpProxy",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "raw",
"request": {
"type": "string",
@@ -116980,6 +117131,11 @@
"method": "OPTIONS",
"path": "/plugin/private/:name/*path",
"handler": "pluginPrivateWebServer",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "raw",
"request": {
"type": "string",
@@ -117266,6 +117422,10 @@
"method": "PATCH",
"path": "/api/network/echo",
"handler": "echo",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "raw",
"request": {
"type": "string",
@@ -117342,6 +117502,10 @@
"method": "PATCH",
"path": "/api/network/echo/*path",
"handler": "echoPath",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "raw",
"request": {
"type": "string",
@@ -117418,6 +117582,10 @@
"method": "PATCH",
"path": "/api/network/proxy",
"handler": "httpProxy",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "raw",
"request": {
"type": "string",
@@ -117481,6 +117649,11 @@
"method": "PATCH",
"path": "/plugin/private/:name/*path",
"handler": "pluginPrivateWebServer",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "raw",
"request": {
"type": "string",
@@ -117767,6 +117940,11 @@
"method": "POST",
"path": "/api/account/checkActivationcode",
"handler": "checkActivationcode",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/CheckActivationCodeRequestInput"
@@ -117846,6 +118024,11 @@
"method": "POST",
"path": "/api/account/deactivate",
"handler": "deactivateUser",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -117921,6 +118104,11 @@
"method": "POST",
"path": "/api/account/login",
"handler": "login",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/AccountLoginRequestInput"
@@ -118015,6 +118203,11 @@
"method": "POST",
"path": "/api/account/startFreeTrial",
"handler": "startFreeTrial",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -118090,6 +118283,11 @@
"method": "POST",
"path": "/api/account/useActivationcode",
"handler": "useActivationcode",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/ActivationCodeRequestInput"
@@ -118165,6 +118363,11 @@
"method": "POST",
"path": "/api/ai/agent/browserCapabilityResult",
"handler": "agentChatBrowserCapabilityResult",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "structJSON",
"request": {
"$ref": "#/$defs/AIBrowserCapabilityResultRequestInput"
@@ -118243,6 +118446,11 @@
"method": "POST",
"path": "/api/ai/agent/chat",
"handler": "agentChat",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "structJSON",
"request": {
"$ref": "#/$defs/AIAgentChatRequestInput"
@@ -118354,6 +118562,11 @@
"method": "POST",
"path": "/api/ai/agent/confirm",
"handler": "agentChatConfirm",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "structJSON",
"request": {
"$ref": "#/$defs/AIConfirmRequestInput"
@@ -118432,6 +118645,10 @@
"method": "POST",
"path": "/api/ai/agent/getInstructions",
"handler": "getAgentInstructions",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -118507,6 +118724,10 @@
"method": "POST",
"path": "/api/ai/agent/getSession",
"handler": "getSession",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "structJSON",
"request": {
"$ref": "#/$defs/AISessionIDRequestInput"
@@ -118592,6 +118813,10 @@
"method": "POST",
"path": "/api/ai/agent/getSkill",
"handler": "getSkill",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "structJSON",
"request": {
"$ref": "#/$defs/AISkillNameRequestInput"
@@ -118667,6 +118892,10 @@
"method": "POST",
"path": "/api/ai/agent/lsBuiltinSkills",
"handler": "lsBuiltinSkills",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -118752,6 +118981,10 @@
"method": "POST",
"path": "/api/ai/agent/lsSessions",
"handler": "lsSessions",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "structJSON",
"request": {
"$ref": "#/$defs/AISessionsRequestInput"
@@ -118827,6 +119060,10 @@
"method": "POST",
"path": "/api/ai/agent/lsSkills",
"handler": "lsSkills",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -118912,6 +119149,10 @@
"method": "POST",
"path": "/api/ai/agent/lsUserSkills",
"handler": "lsUserSkills",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -118997,6 +119238,11 @@
"method": "POST",
"path": "/api/ai/agent/manageSkills",
"handler": "manageSkills",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/AISkillFileRequestInput"
@@ -119072,6 +119318,11 @@
"method": "POST",
"path": "/api/ai/agent/question",
"handler": "agentChatQuestion",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "structJSON",
"request": {
"$ref": "#/$defs/AIQuestionRequestInput"
@@ -119150,6 +119401,11 @@
"method": "POST",
"path": "/api/ai/agent/removeSession",
"handler": "removeSession",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "structJSON",
"request": {
"$ref": "#/$defs/AISessionIDRequestInput"
@@ -119229,6 +119485,11 @@
"method": "POST",
"path": "/api/ai/agent/removeSkill",
"handler": "removeSkill",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "structJSON",
"request": {
"$ref": "#/$defs/AISkillNameRequestInput"
@@ -119304,6 +119565,11 @@
"method": "POST",
"path": "/api/ai/agent/renameSkill",
"handler": "renameSkill",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "structJSON",
"request": {
"$ref": "#/$defs/AISkillRenameRequestInput"
@@ -119379,6 +119645,11 @@
"method": "POST",
"path": "/api/ai/agent/saveSession",
"handler": "saveSession",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "structJSON",
"request": {
"$ref": "#/$defs/AISessionExtensionAISessionFieldsInput"
@@ -119462,6 +119733,11 @@
"method": "POST",
"path": "/api/ai/agent/saveSkill",
"handler": "saveSkill",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "structJSON",
"request": {
"$ref": "#/$defs/AISkillSaveRequestInput"
@@ -119537,6 +119813,11 @@
"method": "POST",
"path": "/api/ai/agent/setInstructions",
"handler": "setAgentInstructions",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/AIAgentInstructionsSaveRequestInput"
@@ -119612,6 +119893,11 @@
"method": "POST",
"path": "/api/ai/agent/setPermission",
"handler": "setAgentSessionPermission",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "structJSON",
"request": {
"$ref": "#/$defs/AIPermissionRequestInput"
@@ -119687,6 +119973,10 @@
"method": "POST",
"path": "/api/ai/agent/title",
"handler": "agentChatTitle",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "structJSON",
"request": {
"$ref": "#/$defs/AITitleRequestInput"
@@ -119762,6 +120052,10 @@
"method": "POST",
"path": "/api/ai/chatGPT",
"handler": "chatGPT",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/AIMessageRequestInput"
@@ -119837,6 +120131,10 @@
"method": "POST",
"path": "/api/ai/chatGPTWithAction",
"handler": "chatGPTWithAction",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/AIActionRequestInput"
@@ -119912,6 +120210,10 @@
"method": "POST",
"path": "/api/ai/chatgpt/accounts",
"handler": "chatGPTAccounts",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -119990,6 +120292,11 @@
"method": "POST",
"path": "/api/ai/chatgpt/cancel",
"handler": "chatGPTCancel",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/ChatGPTLoginRequestInput"
@@ -120065,6 +120372,11 @@
"method": "POST",
"path": "/api/ai/chatgpt/export",
"handler": "chatGPTExport",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/ChatGPTTransferRequestInput"
@@ -120140,6 +120452,11 @@
"method": "POST",
"path": "/api/ai/chatgpt/import",
"handler": "chatGPTImport",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/ChatGPTTransferRequestInput"
@@ -120215,6 +120532,11 @@
"method": "POST",
"path": "/api/ai/chatgpt/logout",
"handler": "chatGPTLogout",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/ChatGPTAccountRequestInput"
@@ -120290,6 +120612,11 @@
"method": "POST",
"path": "/api/ai/chatgpt/remove",
"handler": "chatGPTRemove",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/ChatGPTAccountRequestInput"
@@ -120365,6 +120692,11 @@
"method": "POST",
"path": "/api/ai/chatgpt/start",
"handler": "chatGPTStart",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/ChatGPTAccountRequestInput"
@@ -120440,6 +120772,10 @@
"method": "POST",
"path": "/api/ai/chatgpt/status",
"handler": "chatGPTStatus",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/ChatGPTLoginRequestInput"
@@ -120515,6 +120851,10 @@
"method": "POST",
"path": "/api/ai/editor/chat",
"handler": "aiEditorChat",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "structJSON",
"request": {
"$ref": "#/$defs/AIEditorChatRequestInput"
@@ -120593,6 +120933,10 @@
"method": "POST",
"path": "/api/ai/editor/lsActions",
"handler": "lsAIEditorActions",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -120685,6 +121029,11 @@
"method": "POST",
"path": "/api/ai/editor/removeAction",
"handler": "removeAIEditorAction",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/AIEditorActionIDRequestInput"
@@ -120760,6 +121109,11 @@
"method": "POST",
"path": "/api/ai/editor/saveAction",
"handler": "saveAIEditorAction",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/AIEditorActionSaveRequestInput"
@@ -120842,6 +121196,10 @@
"method": "POST",
"path": "/api/ai/embeddingStat",
"handler": "embeddingStat",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -120924,6 +121282,10 @@
"method": "POST",
"path": "/api/ai/listModels",
"handler": "listModels",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/AIProviderRequestInput"
@@ -120999,6 +121361,10 @@
"method": "POST",
"path": "/api/ai/lsCapabilities",
"handler": "lsCapabilities",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -121084,6 +121450,10 @@
"method": "POST",
"path": "/api/ai/mcpEnvironmentVariables",
"handler": "mcpEnvironmentVariables",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -121159,6 +121529,11 @@
"method": "POST",
"path": "/api/ai/mcpOAuthAuthorize",
"handler": "mcpOAuthAuthorize",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/AIMCPIDRequestInput"
@@ -121234,6 +121609,11 @@
"method": "POST",
"path": "/api/ai/mcpOAuthDisconnect",
"handler": "mcpOAuthDisconnect",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/AIMCPIDRequestInput"
@@ -121309,6 +121689,10 @@
"method": "POST",
"path": "/api/ai/mcpStatus",
"handler": "mcpStatus",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -121394,6 +121778,11 @@
"method": "POST",
"path": "/api/ai/ocr",
"handler": "aiOCR",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/AssetPathRequestInput"
@@ -121469,6 +121858,11 @@
"method": "POST",
"path": "/api/ai/reindexEmbedding",
"handler": "reindexEmbedding",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -121544,6 +121938,11 @@
"method": "POST",
"path": "/api/ai/retryFailedEmbedding",
"handler": "retryFailedEmbedding",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -121619,6 +122018,10 @@
"method": "POST",
"path": "/api/ai/testDecisionModel",
"handler": "testDecisionModel",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/AIDecisionTestRequestInput"
@@ -121694,6 +122097,10 @@
"method": "POST",
"path": "/api/ai/testEmbeddingModel",
"handler": "testEmbeddingModel",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -121769,6 +122176,10 @@
"method": "POST",
"path": "/api/ai/testModel",
"handler": "testModel",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/AIModelRequestInput"
@@ -121844,6 +122255,10 @@
"method": "POST",
"path": "/api/ai/testRerankModel",
"handler": "testRerankModel",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -121919,6 +122334,11 @@
"method": "POST",
"path": "/api/archive/unzip",
"handler": "unzip",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/UnzipRequestInput"
@@ -121994,6 +122414,11 @@
"method": "POST",
"path": "/api/archive/zip",
"handler": "zip",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/ZipRequestInput"
@@ -122069,6 +122494,11 @@
"method": "POST",
"path": "/api/asset/findAssetReferences",
"handler": "findAssetReferences",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/FindAssetReferencesRequestInput"
@@ -122147,6 +122577,11 @@
"method": "POST",
"path": "/api/asset/fullReindexAssetContent",
"handler": "fullReindexAssetContent",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -122222,6 +122657,9 @@
"method": "POST",
"path": "/api/asset/getDocAssets",
"handler": "getDocAssets",
+ "authorization": [
+ "authenticated"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/AssetDocumentAssetsRequestInput"
@@ -122307,6 +122745,9 @@
"method": "POST",
"path": "/api/asset/getDocImageAssets",
"handler": "getDocImageAssets",
+ "authorization": [
+ "authenticated"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/AssetDocumentRequestInput"
@@ -122392,6 +122833,9 @@
"method": "POST",
"path": "/api/asset/getFileAnnotation",
"handler": "getFileAnnotation",
+ "authorization": [
+ "authenticated"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/AssetPathRequestInput"
@@ -122469,6 +122913,11 @@
"method": "POST",
"path": "/api/asset/getImageOCRText",
"handler": "getImageOCRText",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/AssetOCRTextRequestInput"
@@ -122544,6 +122993,10 @@
"method": "POST",
"path": "/api/asset/getMissingAssets",
"handler": "getMissingAssets",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -122636,6 +123089,10 @@
"method": "POST",
"path": "/api/asset/getOCRConfig",
"handler": "getOCRConfig",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -122711,6 +123168,10 @@
"method": "POST",
"path": "/api/asset/getUnusedAssets",
"handler": "getUnusedAssets",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -122803,6 +123264,11 @@
"method": "POST",
"path": "/api/asset/importOCRModels",
"handler": "importOCRModels",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "multipart",
"request": {
"$ref": "#/$defs/ImportOCRModelsRequestInput"
@@ -122878,6 +123344,11 @@
"method": "POST",
"path": "/api/asset/insertCover",
"handler": "insertCover",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/InsertCoverRequestInput"
@@ -122953,6 +123424,11 @@
"method": "POST",
"path": "/api/asset/insertLocalAssets",
"handler": "insertLocalAssets",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/InsertLocalAssetsRequestInput"
@@ -123031,6 +123507,11 @@
"method": "POST",
"path": "/api/asset/ocr",
"handler": "ocr",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/AssetPathRequestInput"
@@ -123106,6 +123587,11 @@
"method": "POST",
"path": "/api/asset/relinkAsset",
"handler": "relinkAsset",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/RelinkAssetRequestInput"
@@ -123184,6 +123670,11 @@
"method": "POST",
"path": "/api/asset/removeUnusedAsset",
"handler": "removeUnusedAsset",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/AssetPathRequestInput"
@@ -123259,6 +123750,11 @@
"method": "POST",
"path": "/api/asset/removeUnusedAssets",
"handler": "removeUnusedAssets",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -123334,6 +123830,11 @@
"method": "POST",
"path": "/api/asset/renameAsset",
"handler": "renameAsset",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/RenameAssetRequestInput"
@@ -123409,6 +123910,10 @@
"method": "POST",
"path": "/api/asset/resolveAssetPath",
"handler": "resolveAssetPath",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/AssetPathRequestInput"
@@ -123484,6 +123989,11 @@
"method": "POST",
"path": "/api/asset/setFileAnnotation",
"handler": "setFileAnnotation",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/SetAssetAnnotationRequestInput"
@@ -123559,6 +124069,11 @@
"method": "POST",
"path": "/api/asset/setImageOCRText",
"handler": "setImageOCRText",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/SetAssetOCRTextRequestInput"
@@ -123634,6 +124149,11 @@
"method": "POST",
"path": "/api/asset/setOCRConfig",
"handler": "setOCRConfig",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/SettingOCRInput"
@@ -123709,6 +124229,10 @@
"method": "POST",
"path": "/api/asset/statAsset",
"handler": "statAsset",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/AssetPathRequestInput"
@@ -123785,6 +124309,11 @@
"method": "POST",
"path": "/api/asset/upload",
"handler": "uploadAsset",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "multipart",
"request": {
"$ref": "#/$defs/UploadAssetRequestInput"
@@ -123860,6 +124389,11 @@
"method": "POST",
"path": "/api/asset/uploadCloud",
"handler": "uploadCloud",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/AssetCloudUploadRequestInput"
@@ -123935,6 +124469,11 @@
"method": "POST",
"path": "/api/asset/uploadCloudByAssetsPaths",
"handler": "uploadCloudByAssetsPaths",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/AssetPathsCloudUploadRequestInput"
@@ -124010,6 +124549,9 @@
"method": "POST",
"path": "/api/attr/batchGetBlockAttrs",
"handler": "batchGetBlockAttrs",
+ "authorization": [
+ "authenticated"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/BlockIDsRequestInput"
@@ -124098,6 +124640,11 @@
"method": "POST",
"path": "/api/attr/batchSetBlockAttrs",
"handler": "batchSetBlockAttrs",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/BatchSetBlockAttrsRequestInput"
@@ -124173,6 +124720,9 @@
"method": "POST",
"path": "/api/attr/getBlockAttrs",
"handler": "getBlockAttrs",
+ "authorization": [
+ "authenticated"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/BlockIDRequestInput"
@@ -124251,6 +124801,9 @@
"method": "POST",
"path": "/api/attr/getBookmarkLabels",
"handler": "getBookmarkLabels",
+ "authorization": [
+ "authenticated"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -124336,6 +124889,11 @@
"method": "POST",
"path": "/api/attr/resetBlockAttrs",
"handler": "resetBlockAttrs",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -124411,6 +124969,11 @@
"method": "POST",
"path": "/api/attr/setBlockAttrs",
"handler": "setBlockAttrs",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/SetBlockAttrsRequestInput"
@@ -124486,6 +125049,11 @@
"method": "POST",
"path": "/api/av/addAttributeViewBlocks",
"handler": "addAttributeViewBlocks",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/AddAttributeViewBlocksRequestInput"
@@ -124561,6 +125129,11 @@
"method": "POST",
"path": "/api/av/addAttributeViewKey",
"handler": "addAttributeViewKey",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/AddAttributeViewKeyRequestInput"
@@ -124636,6 +125209,11 @@
"method": "POST",
"path": "/api/av/appendAttributeViewDetachedBlocksWithValues",
"handler": "appendAttributeViewDetachedBlocksWithValues",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/AppendAttributeViewDetachedBlocksWithValuesRequestInput"
@@ -124711,6 +125289,11 @@
"method": "POST",
"path": "/api/av/batchReplaceAttributeViewBlocks",
"handler": "batchReplaceAttributeViewBlocks",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/BatchReplaceAttributeViewBlocksRequestInput"
@@ -124786,6 +125369,11 @@
"method": "POST",
"path": "/api/av/batchSetAttributeViewBlockAttrs",
"handler": "batchSetAttributeViewBlockAttrs",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/BatchSetAttributeViewBlockAttrsRequestInput"
@@ -124861,6 +125449,11 @@
"method": "POST",
"path": "/api/av/changeAttrViewLayout",
"handler": "changeAttrViewLayout",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/ChangeAttrViewLayoutRequestInput"
@@ -124939,6 +125532,11 @@
"method": "POST",
"path": "/api/av/createAttributeViewItem",
"handler": "createAttributeViewItem",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/CreateAttributeViewItemRequestInput"
@@ -125018,6 +125616,11 @@
"method": "POST",
"path": "/api/av/createAttributeViewItemDocs",
"handler": "createAttributeViewItemDocs",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/CreateAttributeViewItemDocsRequestInput"
@@ -125097,6 +125700,11 @@
"method": "POST",
"path": "/api/av/createAttributeViewItemWithMarkdown",
"handler": "createAttributeViewItemWithMarkdown",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/CreateAttributeViewItemWithMarkdownRequestInput"
@@ -125176,6 +125784,11 @@
"method": "POST",
"path": "/api/av/createAttributeViewRelationItem",
"handler": "createAttributeViewRelationItem",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/CreateAttributeViewRelationItemRequestInput"
@@ -125255,6 +125868,11 @@
"method": "POST",
"path": "/api/av/duplicateAttributeViewBlock",
"handler": "duplicateAttributeViewBlock",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/DuplicateAttributeViewBlockRequestInput"
@@ -125330,6 +125948,10 @@
"method": "POST",
"path": "/api/av/getAttributeView",
"handler": "getAttributeView",
+ "authorization": [
+ "authenticated",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/GetAttributeViewRequestInput"
@@ -125405,6 +126027,10 @@
"method": "POST",
"path": "/api/av/getAttributeViewAddingBlockDefaultValues",
"handler": "getAttributeViewAddingBlockDefaultValues",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/GetAttributeViewAddingBlockDefaultValuesRequestInput"
@@ -125480,6 +126106,9 @@
"method": "POST",
"path": "/api/av/getAttributeViewBacklinks",
"handler": "getAttributeViewBacklinks",
+ "authorization": [
+ "authenticated"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/GetAttributeViewBacklinksRequestInput"
@@ -125562,6 +126191,10 @@
"method": "POST",
"path": "/api/av/getAttributeViewBoundBlockIDsByItemIDs",
"handler": "getAttributeViewBoundBlockIDsByItemIDs",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/GetAttributeViewBoundBlockIDsByItemIDsRequestInput"
@@ -125647,6 +126280,11 @@
"method": "POST",
"path": "/api/av/getAttributeViewCalendarUndated",
"handler": "getAttributeViewCalendarUndated",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/AVCalendarUndatedRequestInput"
@@ -125722,6 +126360,10 @@
"method": "POST",
"path": "/api/av/getAttributeViewFieldViews",
"handler": "getAttributeViewFieldViews",
+ "authorization": [
+ "authenticated",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/GetAttributeViewFieldViewsRequestInput"
@@ -125797,6 +126439,11 @@
"method": "POST",
"path": "/api/av/getAttributeViewFilterSort",
"handler": "getAttributeViewFilterSort",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/GetAttributeViewFilterSortRequestInput"
@@ -125872,6 +126519,10 @@
"method": "POST",
"path": "/api/av/getAttributeViewItemIDsByBoundIDs",
"handler": "getAttributeViewItemIDsByBoundIDs",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/GetAttributeViewItemIDsByBoundIDsRequestInput"
@@ -125957,6 +126608,11 @@
"method": "POST",
"path": "/api/av/getAttributeViewItemStatuses",
"handler": "getAttributeViewItemStatuses",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/GetAttributeViewItemStatusesRequestInput"
@@ -126042,6 +126698,9 @@
"method": "POST",
"path": "/api/av/getAttributeViewKeys",
"handler": "getAttributeViewKeys",
+ "authorization": [
+ "authenticated"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/GetAttributeViewKeysRequestInput"
@@ -126134,6 +126793,11 @@
"method": "POST",
"path": "/api/av/getAttributeViewKeysByAvID",
"handler": "getAttributeViewKeysByAvID",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/GetAttributeViewKeysByAvIDRequestInput"
@@ -126226,6 +126890,10 @@
"method": "POST",
"path": "/api/av/getAttributeViewKeysByID",
"handler": "getAttributeViewKeysByID",
+ "authorization": [
+ "authenticated",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/GetAttributeViewKeysByIDRequestInput"
@@ -126318,6 +126986,11 @@
"method": "POST",
"path": "/api/av/getAttributeViewPasteRows",
"handler": "getAttributeViewPasteRows",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/GetAttributeViewPasteRowsRequestInput"
@@ -126393,6 +127066,11 @@
"method": "POST",
"path": "/api/av/getAttributeViewPrimaryKeyValues",
"handler": "getAttributeViewPrimaryKeyValues",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/GetAttributeViewPrimaryKeyValuesRequestInput"
@@ -126468,6 +127146,11 @@
"method": "POST",
"path": "/api/av/getAttributeViewRelationCandidates",
"handler": "getAttributeViewRelationCandidates",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/GetAttributeViewRelationCandidatesRequestInput"
@@ -126543,6 +127226,10 @@
"method": "POST",
"path": "/api/av/getAttributeViewRowSort",
"handler": "getAttributeViewRowSort",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "structJSON",
"request": {
"$ref": "#/$defs/GetAttributeViewRowSortRequestInput"
@@ -126618,6 +127305,10 @@
"method": "POST",
"path": "/api/av/getAttributeViewSearchTarget",
"handler": "getAttributeViewSearchTarget",
+ "authorization": [
+ "authenticated",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/GetAttributeViewSearchTargetRequestInput"
@@ -126700,6 +127391,9 @@
"method": "POST",
"path": "/api/av/getCurrentAttrViewImages",
"handler": "getCurrentAttrViewImages",
+ "authorization": [
+ "authenticated"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/GetCurrentAttrViewImagesRequestInput"
@@ -126785,6 +127479,11 @@
"method": "POST",
"path": "/api/av/getMirrorDatabaseBlocks",
"handler": "getMirrorDatabaseBlocks",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/GetMirrorDatabaseBlocksRequestInput"
@@ -126860,6 +127559,10 @@
"method": "POST",
"path": "/api/av/getUnusedAttributeViews",
"handler": "getUnusedAttributeViews",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -126952,6 +127655,11 @@
"method": "POST",
"path": "/api/av/removeAttributeViewBlocks",
"handler": "removeAttributeViewBlocks",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/RemoveAttributeViewBlocksRequestInput"
@@ -127027,6 +127735,11 @@
"method": "POST",
"path": "/api/av/removeAttributeViewKey",
"handler": "removeAttributeViewKey",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/RemoveAttributeViewKeyRequestInput"
@@ -127102,6 +127815,11 @@
"method": "POST",
"path": "/api/av/removeUnusedAttributeView",
"handler": "removeUnusedAttributeView",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/RemoveUnusedAttributeViewRequestInput"
@@ -127177,6 +127895,11 @@
"method": "POST",
"path": "/api/av/removeUnusedAttributeViews",
"handler": "removeUnusedAttributeViews",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -127252,6 +127975,9 @@
"method": "POST",
"path": "/api/av/renderAttributeView",
"handler": "renderAttributeView",
+ "authorization": [
+ "authenticated"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/RenderAttributeViewRequestInput"
@@ -127330,6 +128056,10 @@
"method": "POST",
"path": "/api/av/renderHistoryAttributeView",
"handler": "renderHistoryAttributeView",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/RenderHistoryAttributeViewRequestInput"
@@ -127405,6 +128135,10 @@
"method": "POST",
"path": "/api/av/renderSnapshotAttributeView",
"handler": "renderSnapshotAttributeView",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/RenderSnapshotAttributeViewRequestInput"
@@ -127480,6 +128214,10 @@
"method": "POST",
"path": "/api/av/searchAttributeView",
"handler": "searchAttributeView",
+ "authorization": [
+ "authenticated",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/SearchAttributeViewRequestInput"
@@ -127555,6 +128293,11 @@
"method": "POST",
"path": "/api/av/searchAttributeViewNonRelationKey",
"handler": "searchAttributeViewNonRelationKey",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -127630,6 +128373,11 @@
"method": "POST",
"path": "/api/av/searchAttributeViewRelationKey",
"handler": "searchAttributeViewRelationKey",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/SearchAttributeViewRelationKeyRequestInput"
@@ -127705,6 +128453,11 @@
"method": "POST",
"path": "/api/av/searchAttributeViewRollupDestKeys",
"handler": "searchAttributeViewRollupDestKeys",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/SearchAttributeViewRollupDestKeysRequestInput"
@@ -127780,6 +128533,11 @@
"method": "POST",
"path": "/api/av/setAttrViewContextFilter",
"handler": "setAttrViewContextFilter",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/SetAttrViewContextFilterRequestInput"
@@ -127855,6 +128613,11 @@
"method": "POST",
"path": "/api/av/setAttrViewFilters",
"handler": "setAttrViewFilters",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/SetAttrViewFiltersRequestInput"
@@ -127930,6 +128693,11 @@
"method": "POST",
"path": "/api/av/setAttrViewGroup",
"handler": "setAttrViewGroup",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/SetAttrViewGroupRequestInput"
@@ -128008,6 +128776,11 @@
"method": "POST",
"path": "/api/av/setAttrViewSorts",
"handler": "setAttrViewSorts",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/SetAttrViewSortsRequestInput"
@@ -128083,6 +128856,11 @@
"method": "POST",
"path": "/api/av/setAttributeViewBlockAttr",
"handler": "setAttributeViewBlockAttr",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/SetAttributeViewBlockAttrRequestInput"
@@ -128158,6 +128936,11 @@
"method": "POST",
"path": "/api/av/setDatabaseBlockView",
"handler": "setDatabaseBlockView",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/SetDatabaseBlockViewRequestInput"
@@ -128233,6 +129016,11 @@
"method": "POST",
"path": "/api/av/sortAttributeViewKey",
"handler": "sortAttributeViewKey",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/SortAttributeViewKeyRequestInput"
@@ -128308,6 +129096,11 @@
"method": "POST",
"path": "/api/av/sortAttributeViewViewKey",
"handler": "sortAttributeViewViewKey",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/SortAttributeViewViewKeyRequestInput"
@@ -128383,6 +129176,11 @@
"method": "POST",
"path": "/api/bazaar/batchUpdatePackage",
"handler": "batchUpdatePackage",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/BatchUpdatePackageRequestInput"
@@ -128459,6 +129257,10 @@
"method": "POST",
"path": "/api/bazaar/getBazaarIcon",
"handler": "getBazaarIcon",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/GetBazaarIconRequestInput"
@@ -128535,6 +129337,10 @@
"method": "POST",
"path": "/api/bazaar/getBazaarPackage",
"handler": "getBazaarPackage",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/GetBazaarPackageRequestInput"
@@ -128611,6 +129417,10 @@
"method": "POST",
"path": "/api/bazaar/getBazaarPackageREADME",
"handler": "getBazaarPackageREADME",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/GetBazaarPackageREADMERequestInput"
@@ -128687,6 +129497,10 @@
"method": "POST",
"path": "/api/bazaar/getBazaarPackageRating",
"handler": "getBazaarPackageRating",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/GetBazaarPackageRatingRequestInput"
@@ -128766,6 +129580,10 @@
"method": "POST",
"path": "/api/bazaar/getBazaarPackageRatings",
"handler": "getBazaarPackageRatings",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/GetBazaarPackageRatingsRequestInput"
@@ -128842,6 +129660,10 @@
"method": "POST",
"path": "/api/bazaar/getBazaarPackageUserRatings",
"handler": "getBazaarPackageUserRatings",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/GetBazaarPackageUserRatingsRequestInput"
@@ -128921,6 +129743,10 @@
"method": "POST",
"path": "/api/bazaar/getBazaarPlugin",
"handler": "getBazaarPlugin",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/GetBazaarPluginRequestInput"
@@ -128997,6 +129823,10 @@
"method": "POST",
"path": "/api/bazaar/getBazaarTemplate",
"handler": "getBazaarTemplate",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/GetBazaarTemplateRequestInput"
@@ -129073,6 +129903,10 @@
"method": "POST",
"path": "/api/bazaar/getBazaarTheme",
"handler": "getBazaarTheme",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/GetBazaarThemeRequestInput"
@@ -129149,6 +129983,10 @@
"method": "POST",
"path": "/api/bazaar/getBazaarWidget",
"handler": "getBazaarWidget",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/GetBazaarWidgetRequestInput"
@@ -129225,6 +130063,10 @@
"method": "POST",
"path": "/api/bazaar/getInstalledIcon",
"handler": "getInstalledIcon",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/GetInstalledIconRequestInput"
@@ -129301,6 +130143,10 @@
"method": "POST",
"path": "/api/bazaar/getInstalledPackageSize",
"handler": "getInstalledPackageSize",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/GetInstalledPackageSizeRequestInput"
@@ -129377,6 +130223,10 @@
"method": "POST",
"path": "/api/bazaar/getInstalledPlugin",
"handler": "getInstalledPlugin",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/GetInstalledPluginRequestInput"
@@ -129453,6 +130303,10 @@
"method": "POST",
"path": "/api/bazaar/getInstalledTemplate",
"handler": "getInstalledTemplate",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/GetInstalledTemplateRequestInput"
@@ -129529,6 +130383,10 @@
"method": "POST",
"path": "/api/bazaar/getInstalledTheme",
"handler": "getInstalledTheme",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/GetInstalledThemeRequestInput"
@@ -129605,6 +130463,10 @@
"method": "POST",
"path": "/api/bazaar/getInstalledWidget",
"handler": "getInstalledWidget",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/GetInstalledWidgetRequestInput"
@@ -129681,6 +130543,10 @@
"method": "POST",
"path": "/api/bazaar/getUpdatedPackage",
"handler": "getUpdatedPackage",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/GetUpdatedPackageRequestInput"
@@ -129757,6 +130623,11 @@
"method": "POST",
"path": "/api/bazaar/installBazaarIcon",
"handler": "installBazaarIcon",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/InstallBazaarIconRequestInput"
@@ -129833,6 +130704,11 @@
"method": "POST",
"path": "/api/bazaar/installBazaarPlugin",
"handler": "installBazaarPlugin",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/InstallBazaarPluginRequestInput"
@@ -129909,6 +130785,11 @@
"method": "POST",
"path": "/api/bazaar/installBazaarTemplate",
"handler": "installBazaarTemplate",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/InstallBazaarTemplateRequestInput"
@@ -129985,6 +130866,11 @@
"method": "POST",
"path": "/api/bazaar/installBazaarTheme",
"handler": "installBazaarTheme",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/InstallBazaarThemeRequestInput"
@@ -130061,6 +130947,11 @@
"method": "POST",
"path": "/api/bazaar/installBazaarWidget",
"handler": "installBazaarWidget",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/InstallBazaarWidgetRequestInput"
@@ -130137,6 +131028,11 @@
"method": "POST",
"path": "/api/bazaar/installLocalBazaarPackage",
"handler": "installLocalBazaarPackage",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "multipart",
"request": {
"$ref": "#/$defs/InstallLocalBazaarPackageRequestInput"
@@ -130216,6 +131112,10 @@
"method": "POST",
"path": "/api/bazaar/setBazaarPackageRating",
"handler": "setBazaarPackageRating",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/SetBazaarPackageRatingRequestInput"
@@ -130295,6 +131195,11 @@
"method": "POST",
"path": "/api/bazaar/uninstallBazaarIcon",
"handler": "uninstallBazaarIcon",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/UninstallBazaarIconRequestInput"
@@ -130371,6 +131276,11 @@
"method": "POST",
"path": "/api/bazaar/uninstallBazaarPlugin",
"handler": "uninstallBazaarPlugin",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/UninstallBazaarPluginRequestInput"
@@ -130447,6 +131357,11 @@
"method": "POST",
"path": "/api/bazaar/uninstallBazaarTemplate",
"handler": "uninstallBazaarTemplate",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/UninstallBazaarTemplateRequestInput"
@@ -130523,6 +131438,11 @@
"method": "POST",
"path": "/api/bazaar/uninstallBazaarTheme",
"handler": "uninstallBazaarTheme",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/UninstallBazaarThemeRequestInput"
@@ -130599,6 +131519,11 @@
"method": "POST",
"path": "/api/bazaar/uninstallBazaarWidget",
"handler": "uninstallBazaarWidget",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/UninstallBazaarWidgetRequestInput"
@@ -130675,6 +131600,11 @@
"method": "POST",
"path": "/api/bazaar/updateBazaarPackage",
"handler": "updateBazaarPackage",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/UpdateBazaarPackageRequestInput"
@@ -130751,6 +131681,11 @@
"method": "POST",
"path": "/api/block/appendBlock",
"handler": "appendBlock",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/AppendBlockRequestInput"
@@ -130843,6 +131778,11 @@
"method": "POST",
"path": "/api/block/appendDailyNoteBlock",
"handler": "appendDailyNoteBlock",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/DailyNoteBlockRequestInput"
@@ -130935,6 +131875,11 @@
"method": "POST",
"path": "/api/block/appendHeadingChildren",
"handler": "appendHeadingChildren",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/AppendHeadingChildrenRequestInput"
@@ -131010,6 +131955,11 @@
"method": "POST",
"path": "/api/block/batchAppendBlock",
"handler": "batchAppendBlock",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/BatchParentBlockRequestInput"
@@ -131102,6 +132052,11 @@
"method": "POST",
"path": "/api/block/batchInsertBlock",
"handler": "batchInsertBlock",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/BatchInsertBlockRequestInput"
@@ -131194,6 +132149,11 @@
"method": "POST",
"path": "/api/block/batchPrependBlock",
"handler": "batchPrependBlock",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/BatchParentBlockRequestInput"
@@ -131286,6 +132246,11 @@
"method": "POST",
"path": "/api/block/batchUpdateBlock",
"handler": "batchUpdateBlock",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/BatchUpdateBlockRequestInput"
@@ -131378,6 +132343,11 @@
"method": "POST",
"path": "/api/block/batchUpdateTaskListItemMarker",
"handler": "batchUpdateTaskListItemMarker",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/BatchTaskListMarkerRequestInput"
@@ -131470,6 +132440,9 @@
"method": "POST",
"path": "/api/block/checkBlockExist",
"handler": "checkBlockExist",
+ "authorization": [
+ "authenticated"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/BlockQueryRequestInput"
@@ -131545,6 +132518,9 @@
"method": "POST",
"path": "/api/block/checkBlockFold",
"handler": "checkBlockFold",
+ "authorization": [
+ "authenticated"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/BlockQueryRequestInput"
@@ -131620,6 +132596,11 @@
"method": "POST",
"path": "/api/block/checkBlockRef",
"handler": "checkBlockRef",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/CheckBlockRefRequestInput"
@@ -131698,6 +132679,9 @@
"method": "POST",
"path": "/api/block/checkBlocksExist",
"handler": "checkBlocksExist",
+ "authorization": [
+ "authenticated"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/CheckBlocksExistRequestInput"
@@ -131783,6 +132767,11 @@
"method": "POST",
"path": "/api/block/deleteBlock",
"handler": "deleteBlock",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/DeleteBlockRequestInput"
@@ -131875,6 +132864,11 @@
"method": "POST",
"path": "/api/block/foldBlock",
"handler": "foldBlock",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/BlockIDRequestInput"
@@ -131950,6 +132944,9 @@
"method": "POST",
"path": "/api/block/getBlockBreadcrumb",
"handler": "getBlockBreadcrumb",
+ "authorization": [
+ "authenticated"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/BlockBreadcrumbRequestInput"
@@ -132042,6 +133039,9 @@
"method": "POST",
"path": "/api/block/getBlockBreadcrumbChildren",
"handler": "getBlockBreadcrumbChildren",
+ "authorization": [
+ "authenticated"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/BlockBreadcrumbChildrenRequestInput"
@@ -132124,6 +133124,9 @@
"method": "POST",
"path": "/api/block/getBlockDOM",
"handler": "getBlockDOM",
+ "authorization": [
+ "authenticated"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/BlockQueryRequestInput"
@@ -132199,6 +133202,9 @@
"method": "POST",
"path": "/api/block/getBlockDOMWithEmbed",
"handler": "getBlockDOMWithEmbed",
+ "authorization": [
+ "authenticated"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/BlockQueryRequestInput"
@@ -132274,6 +133280,9 @@
"method": "POST",
"path": "/api/block/getBlockDOMs",
"handler": "getBlockDOMs",
+ "authorization": [
+ "authenticated"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/BlocksQueryRequestInput"
@@ -132359,6 +133368,9 @@
"method": "POST",
"path": "/api/block/getBlockDOMsWithEmbed",
"handler": "getBlockDOMsWithEmbed",
+ "authorization": [
+ "authenticated"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/BlocksQueryRequestInput"
@@ -132444,6 +133456,9 @@
"method": "POST",
"path": "/api/block/getBlockDefIDsByRefText",
"handler": "getBlockDefIDsByRefText",
+ "authorization": [
+ "authenticated"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/RefTextQueryRequestInput"
@@ -132519,6 +133534,9 @@
"method": "POST",
"path": "/api/block/getBlockIndex",
"handler": "getBlockIndex",
+ "authorization": [
+ "authenticated"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/BlockQueryRequestInput"
@@ -132594,6 +133612,9 @@
"method": "POST",
"path": "/api/block/getBlockInfo",
"handler": "getBlockInfo",
+ "authorization": [
+ "authenticated"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/BlockInfoRequestInput"
@@ -132673,6 +133694,9 @@
"method": "POST",
"path": "/api/block/getBlockKramdown",
"handler": "getBlockKramdown",
+ "authorization": [
+ "authenticated"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/BlockKramdownRequestInput"
@@ -132748,6 +133772,9 @@
"method": "POST",
"path": "/api/block/getBlockKramdowns",
"handler": "getBlockKramdowns",
+ "authorization": [
+ "authenticated"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/BlocksKramdownRequestInput"
@@ -132833,6 +133860,9 @@
"method": "POST",
"path": "/api/block/getBlockRelevantIDs",
"handler": "getBlockRelevantIDs",
+ "authorization": [
+ "authenticated"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/BlockQueryRequestInput"
@@ -132908,6 +133938,9 @@
"method": "POST",
"path": "/api/block/getBlockSiblingID",
"handler": "getBlockSiblingID",
+ "authorization": [
+ "authenticated"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/BlockQueryRequestInput"
@@ -132983,6 +134016,9 @@
"method": "POST",
"path": "/api/block/getBlockTreeInfos",
"handler": "getBlockTreeInfos",
+ "authorization": [
+ "authenticated"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/BlocksQueryRequestInput"
@@ -133075,6 +134111,9 @@
"method": "POST",
"path": "/api/block/getBlocksIndexes",
"handler": "getBlocksIndexes",
+ "authorization": [
+ "authenticated"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/BlocksQueryRequestInput"
@@ -133160,6 +134199,9 @@
"method": "POST",
"path": "/api/block/getBlocksWordCount",
"handler": "getBlocksWordCount",
+ "authorization": [
+ "authenticated"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/BlocksWordCountRequestInput"
@@ -133235,6 +134277,10 @@
"method": "POST",
"path": "/api/block/getChildBlocks",
"handler": "getChildBlocks",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/BlockQueryRequestInput"
@@ -133320,6 +134366,9 @@
"method": "POST",
"path": "/api/block/getContentWordCount",
"handler": "getContentWordCount",
+ "authorization": [
+ "authenticated"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/ContentWordCountRequestInput"
@@ -133395,6 +134444,9 @@
"method": "POST",
"path": "/api/block/getDOMText",
"handler": "getDOMText",
+ "authorization": [
+ "authenticated"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/DOMTextRequestInput"
@@ -133470,6 +134522,9 @@
"method": "POST",
"path": "/api/block/getDocBlocksOrders",
"handler": "getDocBlocksOrders",
+ "authorization": [
+ "authenticated"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/DocOrdersRequestInput"
@@ -133555,6 +134610,11 @@
"method": "POST",
"path": "/api/block/getDocHeadingLevelTransaction",
"handler": "getDocHeadingLevelTransaction",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "structJSON",
"request": {
"$ref": "#/$defs/DocHeadingLevelRequestInput"
@@ -133637,6 +134697,9 @@
"method": "POST",
"path": "/api/block/getDocInfo",
"handler": "getDocInfo",
+ "authorization": [
+ "authenticated"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/BlockQueryRequestInput"
@@ -133719,6 +134782,9 @@
"method": "POST",
"path": "/api/block/getDocsInfo",
"handler": "getDocsInfo",
+ "authorization": [
+ "authenticated"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/DocsInfoRequestInput"
@@ -133811,6 +134877,9 @@
"method": "POST",
"path": "/api/block/getHeadingChildrenDOM",
"handler": "getHeadingChildrenDOM",
+ "authorization": [
+ "authenticated"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/HeadingChildrenRequestInput"
@@ -133886,6 +134955,9 @@
"method": "POST",
"path": "/api/block/getHeadingChildrenIDs",
"handler": "getHeadingChildrenIDs",
+ "authorization": [
+ "authenticated"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/BlockIDRequestInput"
@@ -133971,6 +135043,10 @@
"method": "POST",
"path": "/api/block/getHeadingDeleteTransaction",
"handler": "getHeadingDeleteTransaction",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/BlockIDRequestInput"
@@ -134053,6 +135129,10 @@
"method": "POST",
"path": "/api/block/getHeadingFoldTransaction",
"handler": "getHeadingFoldTransaction",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/HeadingFoldRequestInput"
@@ -134135,6 +135215,10 @@
"method": "POST",
"path": "/api/block/getHeadingInsertTransaction",
"handler": "getHeadingInsertTransaction",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/BlockIDRequestInput"
@@ -134217,6 +135301,10 @@
"method": "POST",
"path": "/api/block/getHeadingLevelTransaction",
"handler": "getHeadingLevelTransaction",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/HeadingLevelRequestInput"
@@ -134299,6 +135387,10 @@
"method": "POST",
"path": "/api/block/getOrderedListContinueStart",
"handler": "getOrderedListContinueStart",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/BlockQueryRequestInput"
@@ -134374,6 +135466,9 @@
"method": "POST",
"path": "/api/block/getRecentUpdatedBlocks",
"handler": "getRecentUpdatedBlocks",
+ "authorization": [
+ "authenticated"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -134466,6 +135561,9 @@
"method": "POST",
"path": "/api/block/getRefIDs",
"handler": "getRefIDs",
+ "authorization": [
+ "authenticated"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/RefIDsRequestInput"
@@ -134541,6 +135639,9 @@
"method": "POST",
"path": "/api/block/getRefIDsByFileAnnotationID",
"handler": "getRefIDsByFileAnnotationID",
+ "authorization": [
+ "authenticated"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/FileAnnotationRefRequestInput"
@@ -134616,6 +135717,9 @@
"method": "POST",
"path": "/api/block/getRefText",
"handler": "getRefText",
+ "authorization": [
+ "authenticated"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/BlockQueryRequestInput"
@@ -134691,6 +135795,10 @@
"method": "POST",
"path": "/api/block/getTailChildBlocks",
"handler": "getTailChildBlocks",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/TailChildBlocksRequestInput"
@@ -134776,6 +135884,9 @@
"method": "POST",
"path": "/api/block/getTreeStat",
"handler": "getTreeStat",
+ "authorization": [
+ "authenticated"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/TreeStatRequestInput"
@@ -134851,6 +135962,9 @@
"method": "POST",
"path": "/api/block/getUnfoldedParentID",
"handler": "getUnfoldedParentID",
+ "authorization": [
+ "authenticated"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/BlockQueryRequestInput"
@@ -134926,6 +136040,11 @@
"method": "POST",
"path": "/api/block/insertBlock",
"handler": "insertBlock",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/InsertBlockRequestInput"
@@ -135018,6 +136137,11 @@
"method": "POST",
"path": "/api/block/migrateLegacyMindmaps",
"handler": "migrateLegacyMindmaps",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/MigrateLegacyMindmapsRequestInput"
@@ -135093,6 +136217,11 @@
"method": "POST",
"path": "/api/block/moveBlock",
"handler": "moveBlock",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/MoveBlockRequestInput"
@@ -135168,6 +136297,11 @@
"method": "POST",
"path": "/api/block/moveOutlineHeading",
"handler": "moveOutlineHeading",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/MoveBlockRequestInput"
@@ -135260,6 +136394,11 @@
"method": "POST",
"path": "/api/block/prependBlock",
"handler": "prependBlock",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/PrependBlockRequestInput"
@@ -135352,6 +136491,11 @@
"method": "POST",
"path": "/api/block/prependDailyNoteBlock",
"handler": "prependDailyNoteBlock",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/DailyNoteBlockRequestInput"
@@ -135444,6 +136588,11 @@
"method": "POST",
"path": "/api/block/setBlockReminder",
"handler": "setBlockReminder",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/BlockReminderRequestInput"
@@ -135519,6 +136668,11 @@
"method": "POST",
"path": "/api/block/swapBlockRef",
"handler": "swapBlockRef",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/SwapBlockRefRequestInput"
@@ -135594,6 +136748,11 @@
"method": "POST",
"path": "/api/block/transferBlockRef",
"handler": "transferBlockRef",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/TransferBlockRefRequestInput"
@@ -135669,6 +136828,11 @@
"method": "POST",
"path": "/api/block/unfoldBlock",
"handler": "unfoldBlock",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/BlockIDRequestInput"
@@ -135744,6 +136908,11 @@
"method": "POST",
"path": "/api/block/updateBlock",
"handler": "updateBlock",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/UpdateBlockRequestInput"
@@ -135836,6 +137005,11 @@
"method": "POST",
"path": "/api/block/updateTaskListItemMarker",
"handler": "updateTaskListItemMarker",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/TaskListMarkerRequestInput"
@@ -135928,6 +137102,9 @@
"method": "POST",
"path": "/api/bookmark/getBookmark",
"handler": "getBookmark",
+ "authorization": [
+ "authenticated"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -136020,6 +137197,11 @@
"method": "POST",
"path": "/api/bookmark/removeBookmark",
"handler": "removeBookmark",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/RemoveBookmarkRequestInput"
@@ -136095,6 +137277,11 @@
"method": "POST",
"path": "/api/bookmark/renameBookmark",
"handler": "renameBookmark",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/RenameBookmarkRequestInput"
@@ -136170,6 +137357,10 @@
"method": "POST",
"path": "/api/broadcast/getChannelInfo",
"handler": "getChannelInfo",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/BroadcastChannelRequestInput"
@@ -136245,6 +137436,10 @@
"method": "POST",
"path": "/api/broadcast/getChannels",
"handler": "getChannels",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -136320,6 +137515,10 @@
"method": "POST",
"path": "/api/broadcast/postMessage",
"handler": "postMessage",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/BroadcastMessageRequestInput"
@@ -136396,6 +137595,10 @@
"method": "POST",
"path": "/api/broadcast/publish",
"handler": "broadcastPublish",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "multipart",
"request": {
"type": "object",
@@ -136486,6 +137689,10 @@
"method": "POST",
"path": "/api/clipboard/cleanupRichText",
"handler": "cleanupRichText",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/CleanupRichTextRequestInput"
@@ -136561,6 +137768,11 @@
"method": "POST",
"path": "/api/clipboard/preparePasteAssets",
"handler": "preparePasteAssets",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/PreparePasteAssetsRequestInput"
@@ -136639,6 +137851,10 @@
"method": "POST",
"path": "/api/clipboard/prepareRichText",
"handler": "prepareRichText",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/PrepareRichTextRequestInput"
@@ -136721,6 +137937,10 @@
"method": "POST",
"path": "/api/clipboard/readFilePaths",
"handler": "readFilePaths",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -136799,6 +138019,10 @@
"method": "POST",
"path": "/api/clipboard/writeFilePath",
"handler": "writeFilePath",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/ClipboardPathRequestInput"
@@ -136874,6 +138098,10 @@
"method": "POST",
"path": "/api/cloud/getCloudSpace",
"handler": "getCloudSpace",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -136950,6 +138178,11 @@
"method": "POST",
"path": "/api/cloud/setCloudReminder",
"handler": "setCloudReminder",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/CloudReminderRequestInput"
@@ -137025,6 +138258,11 @@
"method": "POST",
"path": "/api/convert/pandoc",
"handler": "pandoc",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/PandocRequestInput"
@@ -137100,6 +138338,11 @@
"method": "POST",
"path": "/api/export/copyExportFile",
"handler": "copyExportFile",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/CopyExportFileRequestInput"
@@ -137176,6 +138419,11 @@
"method": "POST",
"path": "/api/export/export2Liandi",
"handler": "export2Liandi",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/ExportIDRequestInput"
@@ -137251,6 +138499,10 @@
"method": "POST",
"path": "/api/export/exportAsFile",
"handler": "exportAsFile",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "multipart",
"request": {
"$ref": "#/$defs/ExportAsFileRequestInput"
@@ -137326,6 +138578,10 @@
"method": "POST",
"path": "/api/export/exportAsciiDoc",
"handler": "exportAsciiDoc",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/ExportIDRequestInput"
@@ -137401,6 +138657,10 @@
"method": "POST",
"path": "/api/export/exportAttributeView",
"handler": "exportAttributeView",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/ExportAttributeViewRequestInput"
@@ -137477,6 +138737,10 @@
"method": "POST",
"path": "/api/export/exportBrowserHTML",
"handler": "exportBrowserHTML",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/ExportBrowserHTMLRequestInput"
@@ -137552,6 +138816,10 @@
"method": "POST",
"path": "/api/export/exportCodeBlock",
"handler": "exportCodeBlock",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/ExportIDRequestInput"
@@ -137628,6 +138896,10 @@
"method": "POST",
"path": "/api/export/exportData",
"handler": "exportData",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -137704,6 +138976,10 @@
"method": "POST",
"path": "/api/export/exportDataInFolder",
"handler": "exportDataInFolder",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/ExportFolderRequestInput"
@@ -137779,6 +139055,10 @@
"method": "POST",
"path": "/api/export/exportDocx",
"handler": "exportDocx",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/ExportDocxRequestInput"
@@ -137855,6 +139135,10 @@
"method": "POST",
"path": "/api/export/exportEPUB",
"handler": "exportEPUB",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/ExportIDRequestInput"
@@ -137930,6 +139214,10 @@
"method": "POST",
"path": "/api/export/exportHTML",
"handler": "exportHTML",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/ExportHTMLRequestInput"
@@ -138005,6 +139293,10 @@
"method": "POST",
"path": "/api/export/exportMd",
"handler": "exportMd",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/ExportMarkdownRequestInput"
@@ -138080,6 +139372,10 @@
"method": "POST",
"path": "/api/export/exportMdContent",
"handler": "exportMdContent",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/ExportMarkdownContentRequestInput"
@@ -138155,6 +139451,10 @@
"method": "POST",
"path": "/api/export/exportMdHTML",
"handler": "exportMdHTML",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/ExportMarkdownHTMLRequestInput"
@@ -138230,6 +139530,10 @@
"method": "POST",
"path": "/api/export/exportMds",
"handler": "exportMds",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/ExportDocumentsMarkdownRequestInput"
@@ -138305,6 +139609,10 @@
"method": "POST",
"path": "/api/export/exportMediaWiki",
"handler": "exportMediaWiki",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/ExportIDRequestInput"
@@ -138380,6 +139688,10 @@
"method": "POST",
"path": "/api/export/exportNotebookMd",
"handler": "exportNotebookMd",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/ExportNotebookMarkdownRequestInput"
@@ -138455,6 +139767,10 @@
"method": "POST",
"path": "/api/export/exportNotebookSY",
"handler": "exportNotebookSY",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/ExportIDRequestInput"
@@ -138530,6 +139846,10 @@
"method": "POST",
"path": "/api/export/exportNotebooksMd",
"handler": "exportNotebooksMd",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/ExportNotebooksMarkdownRequestInput"
@@ -138605,6 +139925,10 @@
"method": "POST",
"path": "/api/export/exportNotebooksSY",
"handler": "exportNotebooksSY",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/ExportNotebooksRequestInput"
@@ -138680,6 +140004,10 @@
"method": "POST",
"path": "/api/export/exportODT",
"handler": "exportODT",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/ExportIDRequestInput"
@@ -138755,6 +140083,10 @@
"method": "POST",
"path": "/api/export/exportOPML",
"handler": "exportOPML",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/ExportIDRequestInput"
@@ -138830,6 +140162,10 @@
"method": "POST",
"path": "/api/export/exportOrgMode",
"handler": "exportOrgMode",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/ExportIDRequestInput"
@@ -138905,6 +140241,10 @@
"method": "POST",
"path": "/api/export/exportPreviewHTML",
"handler": "exportPreviewHTML",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/ExportPreviewHTMLRequestInput"
@@ -138980,6 +140320,10 @@
"method": "POST",
"path": "/api/export/exportRTF",
"handler": "exportRTF",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/ExportIDRequestInput"
@@ -139055,6 +140399,10 @@
"method": "POST",
"path": "/api/export/exportReStructuredText",
"handler": "exportReStructuredText",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/ExportIDRequestInput"
@@ -139130,6 +140478,10 @@
"method": "POST",
"path": "/api/export/exportResources",
"handler": "exportResources",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/ExportResourcesRequestInput"
@@ -139209,6 +140561,10 @@
"method": "POST",
"path": "/api/export/exportSY",
"handler": "exportSY",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/ExportIDRequestInput"
@@ -139284,6 +140640,10 @@
"method": "POST",
"path": "/api/export/exportSYs",
"handler": "exportSYs",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/ExportIDsRequestInput"
@@ -139359,6 +140719,10 @@
"method": "POST",
"path": "/api/export/exportTempContent",
"handler": "exportTempContent",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/ExportTempContentRequestInput"
@@ -139435,6 +140799,10 @@
"method": "POST",
"path": "/api/export/exportTextile",
"handler": "exportTextile",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/ExportIDRequestInput"
@@ -139510,6 +140878,9 @@
"method": "POST",
"path": "/api/export/preview",
"handler": "exportPreview",
+ "authorization": [
+ "authenticated"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/ExportIDRequestInput"
@@ -139585,6 +140956,10 @@
"method": "POST",
"path": "/api/export/processPDF",
"handler": "processPDF",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/ProcessPDFRequestInput"
@@ -139660,6 +141035,11 @@
"method": "POST",
"path": "/api/extension/copy",
"handler": "extensionCopy",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "multipart",
"request": {
"type": "object",
@@ -139801,6 +141181,11 @@
"method": "POST",
"path": "/api/file/copyFile",
"handler": "copyFile",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/CopyFileRequestInput"
@@ -139877,6 +141262,9 @@
"method": "POST",
"path": "/api/file/getFile",
"handler": "getFile",
+ "authorization": [
+ "authenticated"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/FilePathRequestInput"
@@ -139941,6 +141329,10 @@
"method": "POST",
"path": "/api/file/getUniqueFilename",
"handler": "getUniqueFilename",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/FilePathRequestInput"
@@ -140017,6 +141409,11 @@
"method": "POST",
"path": "/api/file/globalCopyFiles",
"handler": "globalCopyFiles",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/CopyFilesRequestInput"
@@ -140095,6 +141492,11 @@
"method": "POST",
"path": "/api/file/putFile",
"handler": "putFile",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "form",
"request": {
"$ref": "#/$defs/PutFileRequestInput"
@@ -140174,6 +141576,10 @@
"method": "POST",
"path": "/api/file/readDir",
"handler": "readDir",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/ReadDirectoryRequestInput"
@@ -140257,6 +141663,11 @@
"method": "POST",
"path": "/api/file/removeFile",
"handler": "removeFile",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/RemoveFileRequestInput"
@@ -140336,6 +141747,11 @@
"method": "POST",
"path": "/api/file/renameFile",
"handler": "renameFile",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/RenameFileRequestInput"
@@ -140416,6 +141832,11 @@
"method": "POST",
"path": "/api/file/workspaceCopyFiles",
"handler": "workspaceCopyFiles",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/CopyFilesRequestInput"
@@ -140494,6 +141915,9 @@
"method": "POST",
"path": "/api/filetree/authFilePublishAccess",
"handler": "authFilePublishAccess",
+ "authorization": [
+ "authenticated"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/FileTreeAuthPublishRequestInput"
@@ -140572,6 +141996,11 @@
"method": "POST",
"path": "/api/filetree/changeSort",
"handler": "changeSort",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/FileTreeChangeSortRequestInput"
@@ -140647,6 +142076,11 @@
"method": "POST",
"path": "/api/filetree/createDailyNote",
"handler": "createDailyNote",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/FileTreeDailyNoteRequestInput"
@@ -140723,6 +142157,11 @@
"method": "POST",
"path": "/api/filetree/createDoc",
"handler": "createDoc",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/FileTreeCreateRequestInput"
@@ -140798,6 +142237,11 @@
"method": "POST",
"path": "/api/filetree/createDocWithMd",
"handler": "createDocWithMd",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/FileTreeCreateMarkdownRequestInput"
@@ -140873,6 +142317,11 @@
"method": "POST",
"path": "/api/filetree/doc2Heading",
"handler": "doc2Heading",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/FileTreeDocHeadingRequestInput"
@@ -140948,6 +142397,11 @@
"method": "POST",
"path": "/api/filetree/duplicateDoc",
"handler": "duplicateDoc",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/FileTreeIDRequestInput"
@@ -141023,6 +142477,11 @@
"method": "POST",
"path": "/api/filetree/duplicateDocTree",
"handler": "duplicateDocTree",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/FileTreeIDRequestInput"
@@ -141098,6 +142557,10 @@
"method": "POST",
"path": "/api/filetree/getDailyNoteInfo",
"handler": "getDailyNoteInfo",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/DailyNoteInfoRequestInput"
@@ -141181,6 +142644,9 @@
"method": "POST",
"path": "/api/filetree/getDoc",
"handler": "getDoc",
+ "authorization": [
+ "authenticated"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/FileTreeGetDocRequestInput"
@@ -141258,6 +142724,9 @@
"method": "POST",
"path": "/api/filetree/getDocCreateSavePath",
"handler": "getDocCreateSavePath",
+ "authorization": [
+ "authenticated"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/FileTreeNotebookRequestInput"
@@ -141333,6 +142802,9 @@
"method": "POST",
"path": "/api/filetree/getFullHPathByID",
"handler": "getFullHPathByID",
+ "authorization": [
+ "authenticated"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/FileTreeOptionalIDRequestInput"
@@ -141415,6 +142887,9 @@
"method": "POST",
"path": "/api/filetree/getHPathByID",
"handler": "getHPathByID",
+ "authorization": [
+ "authenticated"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/FileTreeIDRequestInput"
@@ -141490,6 +142965,9 @@
"method": "POST",
"path": "/api/filetree/getHPathByPath",
"handler": "getHPathByPath",
+ "authorization": [
+ "authenticated"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/FileTreePathRequestInput"
@@ -141565,6 +143043,9 @@
"method": "POST",
"path": "/api/filetree/getHPathsByPaths",
"handler": "getHPathsByPaths",
+ "authorization": [
+ "authenticated"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/FileTreePathsRequestInput"
@@ -141650,6 +143131,9 @@
"method": "POST",
"path": "/api/filetree/getIDsByHPath",
"handler": "getIDsByHPath",
+ "authorization": [
+ "authenticated"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/FileTreeOptionalPathRequestInput"
@@ -141735,6 +143219,9 @@
"method": "POST",
"path": "/api/filetree/getPathByID",
"handler": "getPathByID",
+ "authorization": [
+ "authenticated"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/FileTreeTrimIDRequestInput"
@@ -141810,6 +143297,10 @@
"method": "POST",
"path": "/api/filetree/getPinnedDocs",
"handler": "getPinnedDocs",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -141888,6 +143379,11 @@
"method": "POST",
"path": "/api/filetree/getPublishAccess",
"handler": "getPublishAccess",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/FileTreePublishIDsRequestInput"
@@ -141963,6 +143459,9 @@
"method": "POST",
"path": "/api/filetree/getRefCreateSavePath",
"handler": "getRefCreateSavePath",
+ "authorization": [
+ "authenticated"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/FileTreeNotebookRequestInput"
@@ -142038,6 +143537,9 @@
"method": "POST",
"path": "/api/filetree/getShorthandSavePath",
"handler": "getShorthandSavePath",
+ "authorization": [
+ "authenticated"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/FileTreeNotebookRequestInput"
@@ -142113,6 +143615,11 @@
"method": "POST",
"path": "/api/filetree/heading2Doc",
"handler": "heading2Doc",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/FileTreeHeadingDocRequestInput"
@@ -142188,6 +143695,11 @@
"method": "POST",
"path": "/api/filetree/li2Doc",
"handler": "li2Doc",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/FileTreeListItemDocRequestInput"
@@ -142263,6 +143775,11 @@
"method": "POST",
"path": "/api/filetree/listDocTree",
"handler": "listDocTree",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/FileTreePathRequestInput"
@@ -142338,6 +143855,9 @@
"method": "POST",
"path": "/api/filetree/listDocsByPath",
"handler": "listDocsByPath",
+ "authorization": [
+ "authenticated"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/FileTreeListRequestInput"
@@ -142413,6 +143933,11 @@
"method": "POST",
"path": "/api/filetree/moveDocs",
"handler": "moveDocs",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/FileTreeMoveRequestInput"
@@ -142488,6 +144013,11 @@
"method": "POST",
"path": "/api/filetree/moveDocsByID",
"handler": "moveDocsByID",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/FileTreeMoveIDsRequestInput"
@@ -142563,6 +144093,11 @@
"method": "POST",
"path": "/api/filetree/moveLocalShorthands",
"handler": "moveLocalShorthands",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/FileTreeNotebookRequestInput"
@@ -142648,6 +144183,11 @@
"method": "POST",
"path": "/api/filetree/removeDoc",
"handler": "removeDoc",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/FileTreePathRequestInput"
@@ -142723,6 +144263,11 @@
"method": "POST",
"path": "/api/filetree/removeDocByID",
"handler": "removeDocByID",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/FileTreeTrimIDRequestInput"
@@ -142798,6 +144343,11 @@
"method": "POST",
"path": "/api/filetree/removeDocs",
"handler": "removeDocs",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/FileTreePathsRequestInput"
@@ -142873,6 +144423,11 @@
"method": "POST",
"path": "/api/filetree/removeIndexes",
"handler": "removeIndexes",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/FileTreePathsRequestInput"
@@ -142948,6 +144503,11 @@
"method": "POST",
"path": "/api/filetree/renameDoc",
"handler": "renameDoc",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/FileTreeRenameRequestInput"
@@ -143023,6 +144583,11 @@
"method": "POST",
"path": "/api/filetree/renameDocByID",
"handler": "renameDocByID",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/FileTreeRenameIDRequestInput"
@@ -143098,6 +144663,11 @@
"method": "POST",
"path": "/api/filetree/reorderDocs",
"handler": "reorderDocs",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "structJSON",
"request": {
"$ref": "#/$defs/FileTreeReorderRequestInput"
@@ -143190,6 +144760,9 @@
"method": "POST",
"path": "/api/filetree/searchDocs",
"handler": "searchDocs",
+ "authorization": [
+ "authenticated"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/FileTreeSearchRequestInput"
@@ -143282,6 +144855,11 @@
"method": "POST",
"path": "/api/filetree/setDocSortMode",
"handler": "setDocSortMode",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "structJSON",
"request": {
"$ref": "#/$defs/FileTreeSortModeRequestInput"
@@ -143374,6 +144952,11 @@
"method": "POST",
"path": "/api/filetree/setPublishAccess",
"handler": "setPublishAccess",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/FileTreeSetPublishRequestInput"
@@ -143449,6 +145032,11 @@
"method": "POST",
"path": "/api/filetree/setSort",
"handler": "setSort",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "structJSON",
"request": {
"$ref": "#/$defs/FileTreeSetSortRequestInput"
@@ -143541,6 +145129,11 @@
"method": "POST",
"path": "/api/filetree/updatePinnedDocs",
"handler": "updatePinnedDocs",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/UpdatePinnedDocsRequestInput"
@@ -143616,6 +145209,11 @@
"method": "POST",
"path": "/api/filetree/upsertIndexes",
"handler": "upsertIndexes",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/FileTreePathsRequestInput"
@@ -143691,6 +145289,11 @@
"method": "POST",
"path": "/api/format/autoSpace",
"handler": "autoSpace",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/TrimmedIDRequestInput"
@@ -143766,6 +145369,11 @@
"method": "POST",
"path": "/api/format/netAssets2LocalAssets",
"handler": "netAssets2LocalAssets",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/TrimmedIDRequestInput"
@@ -143841,6 +145449,11 @@
"method": "POST",
"path": "/api/format/netImg2LocalAssets",
"handler": "netImg2LocalAssets",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/NetImageAssetsRequestInput"
@@ -143916,6 +145529,9 @@
"method": "POST",
"path": "/api/graph/getGraph",
"handler": "getGraph",
+ "authorization": [
+ "authenticated"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/GlobalGraphRequestInput"
@@ -144008,6 +145624,9 @@
"method": "POST",
"path": "/api/graph/getLocalGraph",
"handler": "getLocalGraph",
+ "authorization": [
+ "authenticated"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/LocalGraphRequestInput"
@@ -144100,6 +145719,11 @@
"method": "POST",
"path": "/api/graph/resetGraph",
"handler": "resetGraph",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -144175,6 +145799,11 @@
"method": "POST",
"path": "/api/graph/resetLocalGraph",
"handler": "resetLocalGraph",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -144250,6 +145879,9 @@
"method": "POST",
"path": "/api/graph/setGraphConf",
"handler": "setGraphConf",
+ "authorization": [
+ "authenticated"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/SetGraphConfRequestInput"
@@ -144332,6 +145964,11 @@
"method": "POST",
"path": "/api/history/clearWorkspaceHistory",
"handler": "clearWorkspaceHistory",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -144407,6 +146044,11 @@
"method": "POST",
"path": "/api/history/createAssetHistory",
"handler": "createAssetHistory",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/CreateAssetHistoryRequestInput"
@@ -144482,6 +146124,11 @@
"method": "POST",
"path": "/api/history/createDocHistory",
"handler": "createDocHistory",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/CreateDocHistoryRequestInput"
@@ -144557,6 +146204,10 @@
"method": "POST",
"path": "/api/history/diffDocVersions",
"handler": "diffDocVersions",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/DiffDocVersionsRequestInput"
@@ -144639,6 +146290,10 @@
"method": "POST",
"path": "/api/history/getDocHistoryContent",
"handler": "getDocHistoryContent",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/DocHistoryContentRequestInput"
@@ -144714,6 +146369,10 @@
"method": "POST",
"path": "/api/history/getDocHistorySnapshots",
"handler": "getDocHistorySnapshots",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/DocHistorySnapshotsRequestInput"
@@ -144789,6 +146448,10 @@
"method": "POST",
"path": "/api/history/getHistoryItems",
"handler": "getHistoryItems",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/HistoryItemsRequestInput"
@@ -144864,6 +146527,10 @@
"method": "POST",
"path": "/api/history/getNotebookHistory",
"handler": "getNotebookHistory",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -144939,6 +146606,11 @@
"method": "POST",
"path": "/api/history/reindexHistory",
"handler": "reindexHistory",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -145014,6 +146686,11 @@
"method": "POST",
"path": "/api/history/rollbackAssetsHistory",
"handler": "rollbackAssetsHistory",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/HistoryPathRequestInput"
@@ -145089,6 +146766,11 @@
"method": "POST",
"path": "/api/history/rollbackAttributeViewHistory",
"handler": "rollbackAttributeViewHistory",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/HistoryPathRequestInput"
@@ -145164,6 +146846,11 @@
"method": "POST",
"path": "/api/history/rollbackDocHistory",
"handler": "rollbackDocHistory",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/HistoryPathRequestInput"
@@ -145239,6 +146926,11 @@
"method": "POST",
"path": "/api/history/rollbackNotebookHistory",
"handler": "rollbackNotebookHistory",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/HistoryPathRequestInput"
@@ -145314,6 +147006,10 @@
"method": "POST",
"path": "/api/history/searchHistory",
"handler": "searchHistory",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/SearchHistoryRequestInput"
@@ -145389,6 +147085,11 @@
"method": "POST",
"path": "/api/import/cancelImportSY",
"handler": "cancelImportSY",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/ImportTokenRequestInput"
@@ -145464,6 +147165,10 @@
"method": "POST",
"path": "/api/import/cancelObsidianVaultTask",
"handler": "cancelObsidianVaultTask",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/ObsidianTaskRequestInput"
@@ -145556,6 +147261,11 @@
"method": "POST",
"path": "/api/import/continueImportSY",
"handler": "continueImportSY",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/ContinueImportSYRequestInput"
@@ -145631,6 +147341,10 @@
"method": "POST",
"path": "/api/import/getObsidianVaultTask",
"handler": "getObsidianVaultTask",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/ObsidianTaskRequestInput"
@@ -145713,6 +147427,11 @@
"method": "POST",
"path": "/api/import/importData",
"handler": "importData",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "multipart",
"request": {
"$ref": "#/$defs/ImportDataRequestInput"
@@ -145788,6 +147507,11 @@
"method": "POST",
"path": "/api/import/importSY",
"handler": "importSY",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "multipart",
"request": {
"$ref": "#/$defs/ImportSYRequestInput"
@@ -145863,6 +147587,11 @@
"method": "POST",
"path": "/api/import/importSYAuto",
"handler": "importSYAuto",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "multipart",
"request": {
"$ref": "#/$defs/ImportSYRequestInput"
@@ -145961,6 +147690,11 @@
"method": "POST",
"path": "/api/import/importSYNotebook",
"handler": "importSYNotebook",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "multipart",
"request": {
"$ref": "#/$defs/ImportDataRequestInput"
@@ -146043,6 +147777,11 @@
"method": "POST",
"path": "/api/import/importStdMd",
"handler": "importStdMd",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/ImportMarkdownRequestInput"
@@ -146118,6 +147857,11 @@
"method": "POST",
"path": "/api/import/importZipMd",
"handler": "importZipMd",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "multipart",
"request": {
"$ref": "#/$defs/ImportZipMarkdownRequestInput"
@@ -146193,6 +147937,11 @@
"method": "POST",
"path": "/api/import/startObsidianVaultAnalysis",
"handler": "startObsidianVaultAnalysis",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/ObsidianAnalysisRequestInput"
@@ -146275,6 +148024,11 @@
"method": "POST",
"path": "/api/import/startObsidianVaultImport",
"handler": "startObsidianVaultImport",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/ObsidianImportRequestInput"
@@ -146357,6 +148111,10 @@
"method": "POST",
"path": "/api/inbox/getShorthand",
"handler": "getShorthand",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/TrimmedIDRequestInput"
@@ -146440,6 +148198,10 @@
"method": "POST",
"path": "/api/inbox/getShorthands",
"handler": "getShorthands",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/ShorthandsRequestInput"
@@ -146523,6 +148285,11 @@
"method": "POST",
"path": "/api/inbox/removeShorthands",
"handler": "removeShorthands",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/RemoveShorthandsRequestInput"
@@ -146599,6 +148366,9 @@
"method": "POST",
"path": "/api/lute/copyStdMarkdown",
"handler": "copyStdMarkdown",
+ "authorization": [
+ "authenticated"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/CopyStdMarkdownRequestInput"
@@ -146674,6 +148444,11 @@
"method": "POST",
"path": "/api/lute/html2BlockDOM",
"handler": "html2BlockDOM",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/HTMLClipboardRequestInput"
@@ -146756,6 +148531,9 @@
"method": "POST",
"path": "/api/lute/md2html",
"handler": "md2HTML",
+ "authorization": [
+ "authenticated"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/MarkdownHTMLRequestInput"
@@ -146831,6 +148609,10 @@
"method": "POST",
"path": "/api/lute/spinBlockDOM",
"handler": "spinBlockDOM",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/DOMTextRequestInput"
@@ -146907,6 +148689,11 @@
"method": "POST",
"path": "/api/lute/wpsPresentation2BlockDOM",
"handler": "wpsPresentation2BlockDOM",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/WPSPresentationRequestInput"
@@ -146985,6 +148772,11 @@
"method": "POST",
"path": "/api/mcp/addOAuthClient",
"handler": "mcpOAuthAddClient",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/MCPOAuthClientRequestInput"
@@ -147060,6 +148852,10 @@
"method": "POST",
"path": "/api/mcp/getOAuth",
"handler": "mcpOAuthGet",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -147135,6 +148931,11 @@
"method": "POST",
"path": "/api/mcp/removeOAuthClient",
"handler": "mcpOAuthRemoveClient",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/MCPOAuthRemoveRequestInput"
@@ -147210,6 +149011,11 @@
"method": "POST",
"path": "/api/mcp/setOAuth",
"handler": "mcpOAuthSet",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/MCPOAuthConfigInput"
@@ -147285,6 +149091,10 @@
"method": "POST",
"path": "/api/network/echo",
"handler": "echo",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "raw",
"request": {
"type": "string",
@@ -147361,6 +149171,10 @@
"method": "POST",
"path": "/api/network/echo/*path",
"handler": "echoPath",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "raw",
"request": {
"type": "string",
@@ -147437,6 +149251,10 @@
"method": "POST",
"path": "/api/network/forwardProxy",
"handler": "forwardProxy",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/NetworkForwardRequestInput"
@@ -147521,6 +149339,10 @@
"method": "POST",
"path": "/api/network/proxy",
"handler": "httpProxy",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "raw",
"request": {
"type": "string",
@@ -147584,6 +149406,11 @@
"method": "POST",
"path": "/api/notebook/changeMasterPassword",
"handler": "changeMasterPassword",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/ChangeMasterPasswordRequestInput"
@@ -147659,6 +149486,11 @@
"method": "POST",
"path": "/api/notebook/changeSortNotebook",
"handler": "changeSortNotebook",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/ChangeSortNotebookRequestInput"
@@ -147734,6 +149566,11 @@
"method": "POST",
"path": "/api/notebook/closeNotebook",
"handler": "closeNotebook",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/CloseNotebookRequestInput"
@@ -147809,6 +149646,11 @@
"method": "POST",
"path": "/api/notebook/commitNotebookArchive",
"handler": "commitNotebookArchive",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/CommitNotebookArchiveRequestInput"
@@ -147884,6 +149726,11 @@
"method": "POST",
"path": "/api/notebook/createEncryptedNotebook",
"handler": "createEncryptedNotebook",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/CreateEncryptedNotebookRequestInput"
@@ -147959,6 +149806,11 @@
"method": "POST",
"path": "/api/notebook/createNotebook",
"handler": "createNotebook",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/CreateNotebookRequestInput"
@@ -148034,6 +149886,11 @@
"method": "POST",
"path": "/api/notebook/disableEncryptedNotebooks",
"handler": "disableEncryptedNotebooks",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -148109,6 +149966,11 @@
"method": "POST",
"path": "/api/notebook/enableEncryptedNotebooks",
"handler": "enableEncryptedNotebooks",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/NotebookPasswordRequestInput"
@@ -148184,6 +150046,11 @@
"method": "POST",
"path": "/api/notebook/exportNotebookCryptoBackup",
"handler": "exportNotebookCryptoBackup",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -148259,6 +150126,10 @@
"method": "POST",
"path": "/api/notebook/getEncryptedNotebookStatus",
"handler": "getEncryptedNotebookStatus",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -148334,6 +150205,11 @@
"method": "POST",
"path": "/api/notebook/getNotebookArchiveCandidates",
"handler": "getNotebookArchiveCandidates",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -148409,6 +150285,9 @@
"method": "POST",
"path": "/api/notebook/getNotebookConf",
"handler": "getNotebookConf",
+ "authorization": [
+ "authenticated"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/CloseNotebookRequestInput"
@@ -148484,6 +150363,9 @@
"method": "POST",
"path": "/api/notebook/getNotebookInfo",
"handler": "getNotebookInfo",
+ "authorization": [
+ "authenticated"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/NotebookIDRequestInput"
@@ -148559,6 +150441,11 @@
"method": "POST",
"path": "/api/notebook/importNotebookArchive",
"handler": "importNotebookArchive",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "multipart",
"request": {
"$ref": "#/$defs/ImportNotebookArchiveRequestInput"
@@ -148634,6 +150521,11 @@
"method": "POST",
"path": "/api/notebook/importNotebookCryptoBackup",
"handler": "importNotebookCryptoBackup",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "multipart",
"request": {
"$ref": "#/$defs/ImportNotebookCryptoBackupRequestInput"
@@ -148709,6 +150601,11 @@
"method": "POST",
"path": "/api/notebook/lockEncryptedNotebooksOnSystemLock",
"handler": "lockEncryptedNotebooksOnSystemLock",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -148784,6 +150681,11 @@
"method": "POST",
"path": "/api/notebook/lockNotebook",
"handler": "lockNotebook",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/NotebookIDRequestInput"
@@ -148859,6 +150761,9 @@
"method": "POST",
"path": "/api/notebook/lsNotebooks",
"handler": "lsNotebooks",
+ "authorization": [
+ "authenticated"
+ ],
"body": "legacyOptional",
"request": {
"$ref": "#/$defs/ListNotebooksRequestInput"
@@ -148941,6 +150846,11 @@
"method": "POST",
"path": "/api/notebook/openNotebook",
"handler": "openNotebook",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/OpenNotebookRequestInput"
@@ -149016,6 +150926,11 @@
"method": "POST",
"path": "/api/notebook/prepareNotebookArchive",
"handler": "prepareNotebookArchive",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/PrepareNotebookArchiveRequestInput"
@@ -149091,6 +151006,11 @@
"method": "POST",
"path": "/api/notebook/removeNotebook",
"handler": "removeNotebook",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/NotebookIDRequestInput"
@@ -149166,6 +151086,11 @@
"method": "POST",
"path": "/api/notebook/renameNotebook",
"handler": "renameNotebook",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/RenameNotebookRequestInput"
@@ -149241,6 +151166,11 @@
"method": "POST",
"path": "/api/notebook/reorder",
"handler": "reorderNotebooks",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "structJSON",
"request": {
"$ref": "#/$defs/ReorderNotebooksRequestInput"
@@ -149333,6 +151263,11 @@
"method": "POST",
"path": "/api/notebook/setEncryptedNotebookFollowSystemLock",
"handler": "setEncryptedNotebookFollowSystemLock",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/EncryptedNotebookFollowSystemLockRequestInput"
@@ -149408,6 +151343,11 @@
"method": "POST",
"path": "/api/notebook/setNotebookConf",
"handler": "setNotebookConf",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/SetNotebookConfRequestInput"
@@ -149490,6 +151430,11 @@
"method": "POST",
"path": "/api/notebook/setNotebookCryptoAutoLock",
"handler": "setNotebookCryptoAutoLock",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/NotebookCryptoAutoLockRequestInput"
@@ -149565,6 +151510,11 @@
"method": "POST",
"path": "/api/notebook/setNotebookIcon",
"handler": "setNotebookIcon",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/SetNotebookIconRequestInput"
@@ -149640,6 +151590,10 @@
"method": "POST",
"path": "/api/notebook/touchEncryptedNotebooks",
"handler": "touchEncryptedNotebooks",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -149715,6 +151669,11 @@
"method": "POST",
"path": "/api/notebook/unlockAndOpenNotebook",
"handler": "unlockAndOpenNotebook",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/UnlockNotebookRequestInput"
@@ -149790,6 +151749,10 @@
"method": "POST",
"path": "/api/notebook/unlockNotebook",
"handler": "unlockNotebook",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/UnlockNotebookRequestInput"
@@ -149865,6 +151828,10 @@
"method": "POST",
"path": "/api/notification/pushErrMsg",
"handler": "pushErrMsg",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/NotificationRequestInput"
@@ -149940,6 +151907,10 @@
"method": "POST",
"path": "/api/notification/pushMsg",
"handler": "pushMsg",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/NotificationRequestInput"
@@ -150015,6 +151986,9 @@
"method": "POST",
"path": "/api/outline/getDocHeadingNumbers",
"handler": "getDocHeadingNumbers",
+ "authorization": [
+ "authenticated"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/HeadingNumbersRequestInput"
@@ -150101,6 +152075,9 @@
"method": "POST",
"path": "/api/outline/getDocOutline",
"handler": "getDocOutline",
+ "authorization": [
+ "authenticated"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/OutlineRequestInput"
@@ -150194,6 +152171,10 @@
"method": "POST",
"path": "/api/petal/getPluginPublishInfo",
"handler": "getPluginPublishInfo",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/PluginPublishRequestInput"
@@ -150272,6 +152253,9 @@
"method": "POST",
"path": "/api/petal/loadPetals",
"handler": "loadPetals",
+ "authorization": [
+ "authenticated"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/LoadPetalsRequestInput"
@@ -150364,6 +152348,9 @@
"method": "POST",
"path": "/api/petal/loadPluginPublishData",
"handler": "loadPluginPublishData",
+ "authorization": [
+ "authenticated"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/PluginPublishRequestInput"
@@ -150459,6 +152446,11 @@
"method": "POST",
"path": "/api/petal/savePluginPublishData",
"handler": "savePluginPublishData",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/SavePluginPublishDataRequestInput"
@@ -150537,6 +152529,11 @@
"method": "POST",
"path": "/api/petal/setPetalEnabled",
"handler": "setPetalEnabled",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/SetPetalEnabledRequestInput"
@@ -150619,6 +152616,11 @@
"method": "POST",
"path": "/api/petal/setPetalPublishEnabled",
"handler": "setPetalPublishEnabled",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/SetPetalPublishEnabledRequestInput"
@@ -150701,6 +152703,11 @@
"method": "POST",
"path": "/api/petal/setPluginPublishDataGrant",
"handler": "setPluginPublishDataGrant",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/SetPluginPublishDataGrantRequestInput"
@@ -150779,6 +152786,9 @@
"method": "POST",
"path": "/api/plugin/getLoadedPlugin",
"handler": "getLoadedPlugin",
+ "authorization": [
+ "authenticated"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/LoadedPluginRequestInput"
@@ -150865,6 +152875,9 @@
"method": "POST",
"path": "/api/plugin/listLoadedPlugins",
"handler": "listLoadedPlugins",
+ "authorization": [
+ "authenticated"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -150957,6 +152970,11 @@
"method": "POST",
"path": "/api/plugin/rpc",
"handler": "pluginJsonRpcHttp",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"anyOf": [
@@ -151050,6 +153068,11 @@
"method": "POST",
"path": "/api/plugin/rpc/:name",
"handler": "pluginJsonRpcHttpByName",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"anyOf": [
@@ -151143,6 +153166,11 @@
"method": "POST",
"path": "/api/query/sql",
"handler": "SQL",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/SQLQueryRequestInput"
@@ -151253,6 +153281,9 @@
"method": "POST",
"path": "/api/ref/getBacklink2",
"handler": "getBacklink2",
+ "authorization": [
+ "authenticated"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/BacklinkListRequestInput"
@@ -151352,6 +153383,9 @@
"method": "POST",
"path": "/api/ref/getBacklinkDoc",
"handler": "getBacklinkDoc",
+ "authorization": [
+ "authenticated"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/BacklinkDocumentRequestInput"
@@ -151428,6 +153462,9 @@
"method": "POST",
"path": "/api/ref/getBackmentionDoc",
"handler": "getBackmentionDoc",
+ "authorization": [
+ "authenticated"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/BackmentionDocumentRequestInput"
@@ -151504,6 +153541,9 @@
"method": "POST",
"path": "/api/ref/getGlobalBacklinkContexts",
"handler": "getGlobalBacklinkContexts",
+ "authorization": [
+ "authenticated"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/GlobalBacklinkContextRequestInput"
@@ -151580,6 +153620,9 @@
"method": "POST",
"path": "/api/ref/getGlobalBacklinks",
"handler": "getGlobalBacklinks",
+ "authorization": [
+ "authenticated"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/GlobalBacklinkListRequestInput"
@@ -151656,6 +153699,11 @@
"method": "POST",
"path": "/api/ref/refreshBacklink",
"handler": "refreshBacklink",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/RefreshBacklinkRequestInput"
@@ -151731,6 +153779,11 @@
"method": "POST",
"path": "/api/repo/checkSnapshot",
"handler": "checkSnapshot",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -151806,6 +153859,11 @@
"method": "POST",
"path": "/api/repo/checkoutRepo",
"handler": "checkoutRepo",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/CheckoutRepoRequestInput"
@@ -151881,6 +153939,11 @@
"method": "POST",
"path": "/api/repo/createSnapshot",
"handler": "createSnapshot",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/CreateSnapshotRequestInput"
@@ -151956,6 +154019,10 @@
"method": "POST",
"path": "/api/repo/diffRepoSnapshots",
"handler": "diffRepoSnapshots",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/DiffRepoSnapshotsRequestInput"
@@ -152031,6 +154098,11 @@
"method": "POST",
"path": "/api/repo/downloadCloudSnapshot",
"handler": "downloadCloudSnapshot",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/DownloadCloudSnapshotRequestInput"
@@ -152106,6 +154178,10 @@
"method": "POST",
"path": "/api/repo/exportRepoFile",
"handler": "exportRepoFile",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/ExportRepoFileRequestInput"
@@ -152181,6 +154257,10 @@
"method": "POST",
"path": "/api/repo/getCloudRepoSnapshots",
"handler": "getCloudRepoSnapshots",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/GetCloudRepoSnapshotsRequestInput"
@@ -152256,6 +154336,10 @@
"method": "POST",
"path": "/api/repo/getCloudRepoTagSnapshots",
"handler": "getCloudRepoTagSnapshots",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -152331,6 +154415,10 @@
"method": "POST",
"path": "/api/repo/getRepoDocHistory",
"handler": "getRepoDocHistory",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/GetRepoDocHistoryRequestInput"
@@ -152406,6 +154494,10 @@
"method": "POST",
"path": "/api/repo/getRepoFile",
"handler": "getRepoFile",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/GetRepoFileRequestInput"
@@ -152464,6 +154556,10 @@
"method": "POST",
"path": "/api/repo/getRepoSnapshots",
"handler": "getRepoSnapshots",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/GetRepoSnapshotsRequestInput"
@@ -152539,6 +154635,10 @@
"method": "POST",
"path": "/api/repo/getRepoTagSnapshots",
"handler": "getRepoTagSnapshots",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -152614,6 +154714,11 @@
"method": "POST",
"path": "/api/repo/importRepoKey",
"handler": "importRepoKey",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/ImportRepoKeyRequestInput"
@@ -152689,6 +154794,11 @@
"method": "POST",
"path": "/api/repo/initRepoKey",
"handler": "initRepoKey",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -152764,6 +154874,11 @@
"method": "POST",
"path": "/api/repo/initRepoKeyFromPassphrase",
"handler": "initRepoKeyFromPassphrase",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/InitRepoKeyFromPassphraseRequestInput"
@@ -152839,6 +154954,10 @@
"method": "POST",
"path": "/api/repo/openRepoSnapshotFile",
"handler": "openRepoSnapshotFile",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/OpenRepoSnapshotFileRequestInput"
@@ -152914,6 +155033,11 @@
"method": "POST",
"path": "/api/repo/purgeCloudRepo",
"handler": "purgeCloudRepo",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -152989,6 +155113,11 @@
"method": "POST",
"path": "/api/repo/purgeRepo",
"handler": "purgeRepo",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -153064,6 +155193,11 @@
"method": "POST",
"path": "/api/repo/removeCloudRepoTagSnapshot",
"handler": "removeCloudRepoTagSnapshot",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/RemoveCloudRepoTagSnapshotRequestInput"
@@ -153139,6 +155273,11 @@
"method": "POST",
"path": "/api/repo/removeRepoTagSnapshot",
"handler": "removeRepoTagSnapshot",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/RemoveRepoTagSnapshotRequestInput"
@@ -153214,6 +155353,11 @@
"method": "POST",
"path": "/api/repo/resetRepo",
"handler": "resetRepo",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -153289,6 +155433,11 @@
"method": "POST",
"path": "/api/repo/rollbackRepoSnapshotFile",
"handler": "rollbackRepoSnapshotFile",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/RollbackRepoSnapshotFileRequestInput"
@@ -153364,6 +155513,10 @@
"method": "POST",
"path": "/api/repo/searchRepoFile",
"handler": "searchRepoFile",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/SearchRepoFileRequestInput"
@@ -153439,6 +155592,10 @@
"method": "POST",
"path": "/api/repo/setRepoIndexRetentionDays",
"handler": "setRepoIndexRetentionDays",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/SetRepoIndexRetentionDaysRequestInput"
@@ -153514,6 +155671,10 @@
"method": "POST",
"path": "/api/repo/setRetentionIndexesDaily",
"handler": "setRetentionIndexesDaily",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/SetRetentionIndexesDailyRequestInput"
@@ -153589,6 +155750,11 @@
"method": "POST",
"path": "/api/repo/setSnapshotMemo",
"handler": "setSnapshotMemo",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/SetSnapshotMemoRequestInput"
@@ -153664,6 +155830,11 @@
"method": "POST",
"path": "/api/repo/tagSnapshot",
"handler": "tagSnapshot",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/TagSnapshotRequestInput"
@@ -153739,6 +155910,11 @@
"method": "POST",
"path": "/api/repo/uploadCloudSnapshot",
"handler": "uploadCloudSnapshot",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/UploadCloudSnapshotRequestInput"
@@ -153814,6 +155990,11 @@
"method": "POST",
"path": "/api/riff/addRiffCards",
"handler": "addRiffCards",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/RiffDeckCardsRequestInput"
@@ -153896,6 +156077,11 @@
"method": "POST",
"path": "/api/riff/batchSetRiffCardsDueTime",
"handler": "batchSetRiffCardsDueTime",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/SetRiffCardsDueRequestInput"
@@ -153971,6 +156157,11 @@
"method": "POST",
"path": "/api/riff/createRiffDeck",
"handler": "createRiffDeck",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/CreateRiffDeckRequestInput"
@@ -154053,6 +156244,10 @@
"method": "POST",
"path": "/api/riff/getNotebookRiffCards",
"handler": "getNotebookRiffCards",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/RiffCardsRequestInput"
@@ -154128,6 +156323,10 @@
"method": "POST",
"path": "/api/riff/getNotebookRiffDueCards",
"handler": "getNotebookRiffDueCards",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/RiffNotebookDueCardsRequestInput"
@@ -154203,6 +156402,10 @@
"method": "POST",
"path": "/api/riff/getRiffCards",
"handler": "getRiffCards",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/RiffCardsRequestInput"
@@ -154278,6 +156481,11 @@
"method": "POST",
"path": "/api/riff/getRiffCardsByBlockIDs",
"handler": "getRiffCardsByBlockIDs",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/RiffBlockIDsRequestInput"
@@ -154353,6 +156561,10 @@
"method": "POST",
"path": "/api/riff/getRiffDecks",
"handler": "getRiffDecks",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -154438,6 +156650,10 @@
"method": "POST",
"path": "/api/riff/getRiffDueCards",
"handler": "getRiffDueCards",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/RiffDueCardsRequestInput"
@@ -154513,6 +156729,10 @@
"method": "POST",
"path": "/api/riff/getTreeRiffCards",
"handler": "getTreeRiffCards",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/RiffCardsRequestInput"
@@ -154588,6 +156808,10 @@
"method": "POST",
"path": "/api/riff/getTreeRiffDueCards",
"handler": "getTreeRiffDueCards",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/RiffTreeDueCardsRequestInput"
@@ -154663,6 +156887,11 @@
"method": "POST",
"path": "/api/riff/removeRiffCards",
"handler": "removeRiffCards",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/RiffDeckCardsRequestInput"
@@ -154745,6 +156974,11 @@
"method": "POST",
"path": "/api/riff/removeRiffDeck",
"handler": "removeRiffDeck",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/RiffDeckRequestInput"
@@ -154820,6 +157054,11 @@
"method": "POST",
"path": "/api/riff/renameRiffDeck",
"handler": "renameRiffDeck",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/RenameRiffDeckRequestInput"
@@ -154895,6 +157134,11 @@
"method": "POST",
"path": "/api/riff/resetRiffCards",
"handler": "resetRiffCards",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/ResetRiffCardsRequestInput"
@@ -154970,6 +157214,11 @@
"method": "POST",
"path": "/api/riff/reviewRiffCard",
"handler": "reviewRiffCard",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/ReviewRiffCardRequestInput"
@@ -155045,6 +157294,11 @@
"method": "POST",
"path": "/api/riff/skipReviewRiffCard",
"handler": "skipReviewRiffCard",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/RiffCardRequestInput"
@@ -155120,6 +157374,11 @@
"method": "POST",
"path": "/api/search/findReplace",
"handler": "findReplace",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/FindReplaceRequestInput"
@@ -155196,6 +157455,9 @@
"method": "POST",
"path": "/api/search/fullTextSearchAssetContent",
"handler": "fullTextSearchAssetContent",
+ "authorization": [
+ "authenticated"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/SearchAssetContentRequestInput"
@@ -155271,6 +157533,9 @@
"method": "POST",
"path": "/api/search/fullTextSearchBlock",
"handler": "fullTextSearchBlock",
+ "authorization": [
+ "authenticated"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/FullTextSearchBlockRequestInput"
@@ -155353,6 +157618,9 @@
"method": "POST",
"path": "/api/search/getAssetContent",
"handler": "getAssetContent",
+ "authorization": [
+ "authenticated"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/AssetContentRequestInput"
@@ -155428,6 +157696,9 @@
"method": "POST",
"path": "/api/search/getAssetContentByPath",
"handler": "getAssetContentByPath",
+ "authorization": [
+ "authenticated"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/SearchPathRequestInput"
@@ -155503,6 +157774,9 @@
"method": "POST",
"path": "/api/search/getEmbedBlock",
"handler": "getEmbedBlock",
+ "authorization": [
+ "authenticated"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/GetEmbedBlockRequestInput"
@@ -155578,6 +157852,9 @@
"method": "POST",
"path": "/api/search/listInvalidBlockRefs",
"handler": "listInvalidBlockRefs",
+ "authorization": [
+ "authenticated"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/SearchPageRequestInput"
@@ -155653,6 +157930,11 @@
"method": "POST",
"path": "/api/search/removeTemplate",
"handler": "removeTemplate",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/SearchPathRequestInput"
@@ -155728,6 +158010,11 @@
"method": "POST",
"path": "/api/search/searchAsset",
"handler": "searchAsset",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/SearchAssetRequestInput"
@@ -155820,6 +158107,9 @@
"method": "POST",
"path": "/api/search/searchEmbedBlock",
"handler": "searchEmbedBlock",
+ "authorization": [
+ "authenticated"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/SearchEmbedBlockRequestInput"
@@ -155895,6 +158185,9 @@
"method": "POST",
"path": "/api/search/searchRefBlock",
"handler": "searchRefBlock",
+ "authorization": [
+ "authenticated"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/SearchRefBlockRequestInput"
@@ -155987,6 +158280,11 @@
"method": "POST",
"path": "/api/search/searchTag",
"handler": "searchTag",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/SearchTagRequestInput"
@@ -156062,6 +158360,11 @@
"method": "POST",
"path": "/api/search/searchTemplate",
"handler": "searchTemplate",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/SearchKeywordRequestInput"
@@ -156137,6 +158440,11 @@
"method": "POST",
"path": "/api/search/searchWidget",
"handler": "searchWidget",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/SearchKeywordRequestInput"
@@ -156212,6 +158520,9 @@
"method": "POST",
"path": "/api/search/semanticSearchBlock",
"handler": "semanticSearchBlock",
+ "authorization": [
+ "authenticated"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/SearchBlockRequestInput"
@@ -156287,6 +158598,9 @@
"method": "POST",
"path": "/api/search/updateEmbedBlock",
"handler": "updateEmbedBlock",
+ "authorization": [
+ "authenticated"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/UpdateEmbedBlockRequestInput"
@@ -156362,6 +158676,11 @@
"method": "POST",
"path": "/api/setting/addVirtualBlockRefExclude",
"handler": "addVirtualBlockRefExclude",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/VirtualBlockRefRequestInput"
@@ -156437,6 +158756,11 @@
"method": "POST",
"path": "/api/setting/addVirtualBlockRefInclude",
"handler": "addVirtualBlockRefInclude",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/VirtualBlockRefRequestInput"
@@ -156512,6 +158836,11 @@
"method": "POST",
"path": "/api/setting/confirmSettingsReset",
"handler": "confirmSettingsReset",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/ConfirmSettingsResetRequestInput"
@@ -156587,6 +158916,9 @@
"method": "POST",
"path": "/api/setting/getBootAppearances",
"handler": "getBootAppearances",
+ "authorization": [
+ "authenticated"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -156662,6 +158994,9 @@
"method": "POST",
"path": "/api/setting/getCloudUser",
"handler": "getCloudUser",
+ "authorization": [
+ "authenticated"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/SettingCloudUserRequestInput"
@@ -156756,6 +159091,10 @@
"method": "POST",
"path": "/api/setting/getPandocBin",
"handler": "getPandocBin",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -156831,6 +159170,11 @@
"method": "POST",
"path": "/api/setting/getPublish",
"handler": "getPublish",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -156906,6 +159250,11 @@
"method": "POST",
"path": "/api/setting/login2faCloudUser",
"handler": "login2faCloudUser",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/SettingLogin2faRequestInput"
@@ -156962,6 +159311,11 @@
"method": "POST",
"path": "/api/setting/logoutCloudUser",
"handler": "logoutCloudUser",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -157037,6 +159391,11 @@
"method": "POST",
"path": "/api/setting/patch",
"handler": "patchSetting",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/PatchSettingRequestInput"
@@ -157112,6 +159471,11 @@
"method": "POST",
"path": "/api/setting/refreshVirtualBlockRef",
"handler": "refreshVirtualBlockRef",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -157187,6 +159551,11 @@
"method": "POST",
"path": "/api/setting/resetSettings",
"handler": "resetSettings",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/ResetSettingsRequestInput"
@@ -157262,6 +159631,11 @@
"method": "POST",
"path": "/api/setting/setAI",
"handler": "setAI",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/SetAIRequestInput"
@@ -157344,6 +159718,11 @@
"method": "POST",
"path": "/api/setting/setAppearance",
"handler": "setAppearance",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/SetAppearanceRequestInput"
@@ -157426,6 +159805,11 @@
"method": "POST",
"path": "/api/setting/setBazaar",
"handler": "setBazaar",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/SetBazaarRequestInput"
@@ -157508,6 +159892,11 @@
"method": "POST",
"path": "/api/setting/setBazaarPetalDisabled",
"handler": "setBazaarPetalDisabled",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/SettingPetalDisabledRequestInput"
@@ -157583,6 +159972,11 @@
"method": "POST",
"path": "/api/setting/setBootAppearance",
"handler": "setBootAppearance",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/SettingBootAppearanceRequestInput"
@@ -157665,6 +160059,11 @@
"method": "POST",
"path": "/api/setting/setEditor",
"handler": "setEditor",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/SetEditorRequestInput"
@@ -157747,6 +160146,11 @@
"method": "POST",
"path": "/api/setting/setEditorReadOnly",
"handler": "setEditorReadOnly",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/EditorReadOnlyRequestInput"
@@ -157822,6 +160226,11 @@
"method": "POST",
"path": "/api/setting/setEmoji",
"handler": "setEmoji",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/SettingEmojiRequestInput"
@@ -157897,6 +160306,11 @@
"method": "POST",
"path": "/api/setting/setEntryVisibility",
"handler": "setEntryVisibility",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/SetEntryVisibilityRequestInput"
@@ -157979,6 +160393,11 @@
"method": "POST",
"path": "/api/setting/setExport",
"handler": "setExport",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/SetExportRequestInput"
@@ -158061,6 +160480,11 @@
"method": "POST",
"path": "/api/setting/setFiletree",
"handler": "setFiletree",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/SetFiletreeRequestInput"
@@ -158143,6 +160567,11 @@
"method": "POST",
"path": "/api/setting/setFlashcard",
"handler": "setFlashcard",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/SetFlashcardRequestInput"
@@ -158225,6 +160654,11 @@
"method": "POST",
"path": "/api/setting/setIcon",
"handler": "setIcon",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/SettingIconRequestInput"
@@ -158300,6 +160734,11 @@
"method": "POST",
"path": "/api/setting/setKeymap",
"handler": "setKeymap",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/SettingKeymapRequestInput"
@@ -158375,6 +160814,11 @@
"method": "POST",
"path": "/api/setting/setPublish",
"handler": "setPublish",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/SetPublishRequestInput"
@@ -158450,6 +160894,11 @@
"method": "POST",
"path": "/api/setting/setSearch",
"handler": "setSearch",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/SetSearchRequestInput"
@@ -158532,6 +160981,11 @@
"method": "POST",
"path": "/api/setting/setSecrets",
"handler": "setSecrets",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/SetSecretsRequestInput"
@@ -158614,6 +161068,11 @@
"method": "POST",
"path": "/api/setting/setSnippet",
"handler": "setConfSnippet",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/SetConfSnippetRequestInput"
@@ -158696,6 +161155,11 @@
"method": "POST",
"path": "/api/setting/setTheme",
"handler": "setTheme",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/SettingThemeRequestInput"
@@ -158771,6 +161235,11 @@
"method": "POST",
"path": "/api/setting/setVariables",
"handler": "setVariables",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/SetVariablesRequestInput"
@@ -158853,6 +161322,9 @@
"method": "POST",
"path": "/api/snippet/getSnippet",
"handler": "getSnippet",
+ "authorization": [
+ "authenticated"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/GetSnippetRequestInput"
@@ -158928,6 +161400,11 @@
"method": "POST",
"path": "/api/snippet/removeSnippet",
"handler": "removeSnippet",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/TrimmedIDRequestInput"
@@ -159010,6 +161487,11 @@
"method": "POST",
"path": "/api/snippet/setSnippet",
"handler": "setSnippet",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/SetSnippetRequestInput"
@@ -159085,6 +161567,11 @@
"method": "POST",
"path": "/api/sqlite/flushTransaction",
"handler": "flushTransaction",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -159160,6 +161647,9 @@
"method": "POST",
"path": "/api/storage/batchUpdateRecentDocCloseTime",
"handler": "batchUpdateRecentDocCloseTime",
+ "authorization": [
+ "authenticated"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/RecentDocsUpdateRequestInput"
@@ -159235,6 +161725,9 @@
"method": "POST",
"path": "/api/storage/getCriteria",
"handler": "getCriteria",
+ "authorization": [
+ "authenticated"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -159327,6 +161820,9 @@
"method": "POST",
"path": "/api/storage/getInlineStyles",
"handler": "getInlineStyles",
+ "authorization": [
+ "authenticated"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -159409,6 +161905,9 @@
"method": "POST",
"path": "/api/storage/getLocalStorage",
"handler": "getLocalStorage",
+ "authorization": [
+ "authenticated"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -159494,6 +161993,9 @@
"method": "POST",
"path": "/api/storage/getLocalStorageVal",
"handler": "getLocalStorageVal",
+ "authorization": [
+ "authenticated"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/StorageKeyRequestInput"
@@ -159569,6 +162071,9 @@
"method": "POST",
"path": "/api/storage/getLocalStorageVals",
"handler": "getLocalStorageVals",
+ "authorization": [
+ "authenticated"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/StorageKeysRequestInput"
@@ -159654,6 +162159,10 @@
"method": "POST",
"path": "/api/storage/getOutlineStorage",
"handler": "getOutlineStorage",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/OutlineStorageRequestInput"
@@ -159739,6 +162248,9 @@
"method": "POST",
"path": "/api/storage/getRecentDocs",
"handler": "getRecentDocs",
+ "authorization": [
+ "authenticated"
+ ],
"body": "legacyOptional",
"request": {
"$ref": "#/$defs/RecentDocsRequestInput"
@@ -159831,6 +162343,10 @@
"method": "POST",
"path": "/api/storage/getViewState",
"handler": "getViewState",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/StorageKeyRequestInput"
@@ -159916,6 +162432,11 @@
"method": "POST",
"path": "/api/storage/patchViewState",
"handler": "patchViewState",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/ViewStatePatchRequestInput"
@@ -160001,6 +162522,11 @@
"method": "POST",
"path": "/api/storage/removeCriterion",
"handler": "removeCriterion",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/RemoveCriterionRequestInput"
@@ -160076,6 +162602,11 @@
"method": "POST",
"path": "/api/storage/removeLocalStorageVal",
"handler": "removeLocalStorageVal",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/StorageRemoveRequestInput"
@@ -160151,6 +162682,11 @@
"method": "POST",
"path": "/api/storage/removeLocalStorageVals",
"handler": "removeLocalStorageVals",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/StorageRemoveKeysRequestInput"
@@ -160226,6 +162762,11 @@
"method": "POST",
"path": "/api/storage/removeOutlineStorage",
"handler": "removeOutlineStorage",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/OutlineStorageRequestInput"
@@ -160301,6 +162842,11 @@
"method": "POST",
"path": "/api/storage/removeViewState",
"handler": "removeViewState",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/StorageKeyRequestInput"
@@ -160376,6 +162922,11 @@
"method": "POST",
"path": "/api/storage/setCriterion",
"handler": "setCriterion",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/SetCriterionRequestInput"
@@ -160451,6 +163002,11 @@
"method": "POST",
"path": "/api/storage/setInlineStyles",
"handler": "setInlineStyles",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/SetInlineStylesRequestInput"
@@ -160533,6 +163089,11 @@
"method": "POST",
"path": "/api/storage/setLocalStorage",
"handler": "setLocalStorage",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -160608,6 +163169,11 @@
"method": "POST",
"path": "/api/storage/setLocalStorageVal",
"handler": "setLocalStorageVal",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/StorageSetRequestInput"
@@ -160683,6 +163249,11 @@
"method": "POST",
"path": "/api/storage/setLocalStorageVals",
"handler": "setLocalStorageVals",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/StorageSetKeysRequestInput"
@@ -160758,6 +163329,11 @@
"method": "POST",
"path": "/api/storage/setOutlineStorage",
"handler": "setOutlineStorage",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/OutlineStorageSetRequestInput"
@@ -160833,6 +163409,11 @@
"method": "POST",
"path": "/api/storage/setWorkspaceAVPalette",
"handler": "setWorkspaceAVPalette",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/WorkspaceAVPaletteRequestInput"
@@ -160915,6 +163496,9 @@
"method": "POST",
"path": "/api/storage/updateRecentDocCloseTime",
"handler": "updateRecentDocCloseTime",
+ "authorization": [
+ "authenticated"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/RecentDocUpdateRequestInput"
@@ -160990,6 +163574,9 @@
"method": "POST",
"path": "/api/storage/updateRecentDocOpenTime",
"handler": "updateRecentDocOpenTime",
+ "authorization": [
+ "authenticated"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/RecentDocUpdateRequestInput"
@@ -161065,6 +163652,9 @@
"method": "POST",
"path": "/api/storage/updateRecentDocViewTime",
"handler": "updateRecentDocViewTime",
+ "authorization": [
+ "authenticated"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/RecentDocUpdateRequestInput"
@@ -161140,6 +163730,11 @@
"method": "POST",
"path": "/api/sync/createCloudSyncDir",
"handler": "createCloudSyncDir",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/SyncNameRequestInput"
@@ -161215,6 +163810,10 @@
"method": "POST",
"path": "/api/sync/exportSyncProviderS3",
"handler": "exportSyncProviderS3",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -161290,6 +163889,10 @@
"method": "POST",
"path": "/api/sync/exportSyncProviderWebDAV",
"handler": "exportSyncProviderWebDAV",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -161365,6 +163968,9 @@
"method": "POST",
"path": "/api/sync/getBootSync",
"handler": "getBootSync",
+ "authorization": [
+ "authenticated"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -161441,6 +164047,10 @@
"method": "POST",
"path": "/api/sync/getSyncInfo",
"handler": "getSyncInfo",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -161516,6 +164126,10 @@
"method": "POST",
"path": "/api/sync/getSyncLANStatus",
"handler": "getSyncLANStatus",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -161591,6 +164205,11 @@
"method": "POST",
"path": "/api/sync/importSyncProviderS3",
"handler": "importSyncProviderS3",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "multipart",
"request": {
"$ref": "#/$defs/SyncProviderImportRequestInput"
@@ -161669,6 +164288,11 @@
"method": "POST",
"path": "/api/sync/importSyncProviderWebDAV",
"handler": "importSyncProviderWebDAV",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "multipart",
"request": {
"$ref": "#/$defs/SyncProviderImportRequestInput"
@@ -161747,6 +164371,10 @@
"method": "POST",
"path": "/api/sync/listCloudSyncDir",
"handler": "listCloudSyncDir",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -161823,6 +164451,11 @@
"method": "POST",
"path": "/api/sync/performBootSync",
"handler": "performBootSync",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -161899,6 +164532,11 @@
"method": "POST",
"path": "/api/sync/performSync",
"handler": "performSync",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/PerformSyncRequestInput"
@@ -161974,6 +164612,11 @@
"method": "POST",
"path": "/api/sync/removeCloudSyncDir",
"handler": "removeCloudSyncDir",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/SyncNameRequestInput"
@@ -162049,6 +164692,11 @@
"method": "POST",
"path": "/api/sync/setCloudSyncDir",
"handler": "setCloudSyncDir",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/SyncNameRequestInput"
@@ -162124,6 +164772,11 @@
"method": "POST",
"path": "/api/sync/setSyncAssetDownloadMode",
"handler": "setSyncAssetDownloadMode",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/SyncModeRequestInput"
@@ -162199,6 +164852,11 @@
"method": "POST",
"path": "/api/sync/setSyncEnable",
"handler": "setSyncEnable",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/SyncEnabledRequestInput"
@@ -162274,6 +164932,11 @@
"method": "POST",
"path": "/api/sync/setSyncGenerateConflictDoc",
"handler": "setSyncGenerateConflictDoc",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/SyncEnabledRequestInput"
@@ -162349,6 +165012,11 @@
"method": "POST",
"path": "/api/sync/setSyncInterval",
"handler": "setSyncInterval",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/SyncIntervalRequestInput"
@@ -162424,6 +165092,11 @@
"method": "POST",
"path": "/api/sync/setSyncLAN",
"handler": "setSyncLAN",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/SyncLANRequestInput"
@@ -162499,6 +165172,11 @@
"method": "POST",
"path": "/api/sync/setSyncMode",
"handler": "setSyncMode",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/SyncModeRequestInput"
@@ -162574,6 +165252,11 @@
"method": "POST",
"path": "/api/sync/setSyncPerception",
"handler": "setSyncPerception",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/SyncEnabledRequestInput"
@@ -162649,6 +165332,11 @@
"method": "POST",
"path": "/api/sync/setSyncProvider",
"handler": "setSyncProvider",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/SyncProviderRequestInput"
@@ -162724,6 +165412,11 @@
"method": "POST",
"path": "/api/sync/setSyncProviderLocal",
"handler": "setSyncProviderLocal",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/SetSyncLocalRequestInput"
@@ -162799,6 +165492,11 @@
"method": "POST",
"path": "/api/sync/setSyncProviderS3",
"handler": "setSyncProviderS3",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/SetSyncS3RequestInput"
@@ -162874,6 +165572,11 @@
"method": "POST",
"path": "/api/sync/setSyncProviderWebDAV",
"handler": "setSyncProviderWebDAV",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/SetSyncWebDAVRequestInput"
@@ -162949,6 +165652,11 @@
"method": "POST",
"path": "/api/system/addCustomEmoji",
"handler": "addCustomEmoji",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "form",
"request": {
"$ref": "#/$defs/SystemCustomEmojiRequestInput"
@@ -163026,6 +165734,11 @@
"method": "POST",
"path": "/api/system/addMicrosoftDefenderExclusion",
"handler": "addMicrosoftDefenderExclusion",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -163101,6 +165814,10 @@
"method": "POST",
"path": "/api/system/appendKeyboardLog",
"handler": "appendKeyboardLog",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/SystemKeyboardLogRequestInput"
@@ -163176,6 +165893,9 @@
"method": "POST",
"path": "/api/system/bootProgress",
"handler": "bootProgress",
+ "authorization": [
+ "public"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -163251,6 +165971,10 @@
"method": "POST",
"path": "/api/system/checkUpdate",
"handler": "checkUpdate",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/SystemCheckUpdateRequestInput"
@@ -163326,6 +166050,11 @@
"method": "POST",
"path": "/api/system/checkWorkspaceDir",
"handler": "checkWorkspaceDir",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/SystemPathRequestInput"
@@ -163401,6 +166130,11 @@
"method": "POST",
"path": "/api/system/clearTempFiles",
"handler": "clearTempFiles",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -163476,6 +166210,11 @@
"method": "POST",
"path": "/api/system/createWorkspaceDir",
"handler": "createWorkspaceDir",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/SystemPathRequestInput"
@@ -163551,6 +166290,9 @@
"method": "POST",
"path": "/api/system/currentTime",
"handler": "currentTime",
+ "authorization": [
+ "public"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -163626,6 +166368,11 @@
"method": "POST",
"path": "/api/system/dismissOnboarding",
"handler": "dismissOnboarding",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -163708,6 +166455,11 @@
"method": "POST",
"path": "/api/system/ensureOnboarding",
"handler": "ensureOnboarding",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -163790,6 +166542,10 @@
"method": "POST",
"path": "/api/system/exit",
"handler": "exit",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/SystemExitRequestInput"
@@ -163870,6 +166626,10 @@
"method": "POST",
"path": "/api/system/exportConf",
"handler": "exportConf",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -163945,6 +166705,10 @@
"method": "POST",
"path": "/api/system/exportLog",
"handler": "exportLog",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -164020,6 +166784,10 @@
"method": "POST",
"path": "/api/system/exportTLSCABundle",
"handler": "exportTLSCABundle",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -164095,6 +166863,10 @@
"method": "POST",
"path": "/api/system/exportTLSCACert",
"handler": "exportTLSCACert",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -164170,6 +166942,9 @@
"method": "POST",
"path": "/api/system/getChangelog",
"handler": "getChangelog",
+ "authorization": [
+ "authenticated"
+ ],
"body": "legacyOptional",
"request": {
"$ref": "#/$defs/SystemChangelogRequestInput"
@@ -164245,6 +167020,9 @@
"method": "POST",
"path": "/api/system/getConf",
"handler": "getConf",
+ "authorization": [
+ "authenticated"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -164320,6 +167098,9 @@
"method": "POST",
"path": "/api/system/getCustomFonts",
"handler": "getCustomFonts",
+ "authorization": [
+ "authenticated"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -164412,6 +167193,9 @@
"method": "POST",
"path": "/api/system/getEmojiConf",
"handler": "getEmojiConf",
+ "authorization": [
+ "authenticated"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -164504,6 +167288,10 @@
"method": "POST",
"path": "/api/system/getMobileWorkspaces",
"handler": "getMobileWorkspaces",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -164589,6 +167377,10 @@
"method": "POST",
"path": "/api/system/getNetwork",
"handler": "getNetwork",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -164664,6 +167456,10 @@
"method": "POST",
"path": "/api/system/getRuntimeInfo",
"handler": "getRuntimeInfo",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -164739,6 +167535,10 @@
"method": "POST",
"path": "/api/system/getSysFonts",
"handler": "getSysFonts",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -164831,6 +167631,11 @@
"method": "POST",
"path": "/api/system/getWorkspaceInfo",
"handler": "getWorkspaceInfo",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -164906,6 +167711,10 @@
"method": "POST",
"path": "/api/system/getWorkspaceStorage",
"handler": "getWorkspaceStorage",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -164981,6 +167790,9 @@
"method": "POST",
"path": "/api/system/getWorkspaces",
"handler": "getWorkspaces",
+ "authorization": [
+ "authenticated"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -165073,6 +167885,11 @@
"method": "POST",
"path": "/api/system/ignoreAddMicrosoftDefenderExclusion",
"handler": "ignoreAddMicrosoftDefenderExclusion",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -165148,6 +167965,11 @@
"method": "POST",
"path": "/api/system/importConf",
"handler": "importConf",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "multipart",
"request": {
"$ref": "#/$defs/SystemImportConfRequestInput"
@@ -165223,6 +168045,11 @@
"method": "POST",
"path": "/api/system/importCustomFont",
"handler": "importCustomFont",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "multipart",
"request": {
"$ref": "#/$defs/SystemImportFileRequestInput"
@@ -165307,6 +168134,11 @@
"method": "POST",
"path": "/api/system/importTLSCABundle",
"handler": "importTLSCABundle",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "multipart",
"request": {
"$ref": "#/$defs/SystemImportFileRequestInput"
@@ -165382,6 +168214,9 @@
"method": "POST",
"path": "/api/system/loginAuth",
"handler": "loginAuth",
+ "authorization": [
+ "public"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/SystemLoginAuthRequestInput"
@@ -165458,6 +168293,9 @@
"method": "POST",
"path": "/api/system/logoutAuth",
"handler": "logoutAuth",
+ "authorization": [
+ "public"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -165534,6 +168372,9 @@
"method": "POST",
"path": "/api/system/oidc/mobileCallback",
"handler": "oidcMobileCallback",
+ "authorization": [
+ "public"
+ ],
"body": "structJSON",
"request": {
"$ref": "#/$defs/SystemOIDCMobileRequestInput"
@@ -165609,6 +168450,9 @@
"method": "POST",
"path": "/api/system/oidc/poll",
"handler": "oidcPoll",
+ "authorization": [
+ "public"
+ ],
"body": "structJSON",
"request": {
"$ref": "#/$defs/SystemOIDCPollRequestInput"
@@ -165684,6 +168528,9 @@
"method": "POST",
"path": "/api/system/oidc/start",
"handler": "oidcStart",
+ "authorization": [
+ "public"
+ ],
"body": "structJSON",
"request": {
"$ref": "#/$defs/SystemOIDCStartRequestInput"
@@ -165759,6 +168606,11 @@
"method": "POST",
"path": "/api/system/oidc/validate",
"handler": "oidcValidateStart",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "structJSON",
"request": {
"$ref": "#/$defs/SystemOIDCRequestInput"
@@ -165834,6 +168686,11 @@
"method": "POST",
"path": "/api/system/oidc/validateActivate",
"handler": "oidcValidateActivate",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "structJSON",
"request": {
"$ref": "#/$defs/SystemOIDCPollRequestInput"
@@ -165909,6 +168766,10 @@
"method": "POST",
"path": "/api/system/oidc/validateCancel",
"handler": "oidcValidateCancel",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "structJSON",
"request": {
"$ref": "#/$defs/SystemOIDCPollRequestInput"
@@ -165984,6 +168845,9 @@
"method": "POST",
"path": "/api/system/oidc/validatePoll",
"handler": "oidcValidatePoll",
+ "authorization": [
+ "public"
+ ],
"body": "structJSON",
"request": {
"$ref": "#/$defs/SystemOIDCPollRequestInput"
@@ -166059,6 +168923,11 @@
"method": "POST",
"path": "/api/system/rebuildDataIndex",
"handler": "rebuildDataIndex",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -166134,6 +169003,11 @@
"method": "POST",
"path": "/api/system/reloadUI",
"handler": "deprecatedReloadUI",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -166209,6 +169083,11 @@
"method": "POST",
"path": "/api/system/removeCustomFont",
"handler": "removeCustomFont",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/SystemRemoveCustomFontRequestInput"
@@ -166286,6 +169165,11 @@
"method": "POST",
"path": "/api/system/removeWorkspaceDir",
"handler": "removeWorkspaceDir",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/SystemPathRequestInput"
@@ -166361,6 +169245,11 @@
"method": "POST",
"path": "/api/system/removeWorkspaceDirPhysically",
"handler": "removeWorkspaceDirPhysically",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/SystemPathRequestInput"
@@ -166436,6 +169325,11 @@
"method": "POST",
"path": "/api/system/setAPIToken",
"handler": "setAPIToken",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/SystemAPITokenRequestInput"
@@ -166511,6 +169405,11 @@
"method": "POST",
"path": "/api/system/setAccessAuthCode",
"handler": "setAccessAuthCode",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/SystemAccessAuthCodeRequestInput"
@@ -166586,6 +169485,11 @@
"method": "POST",
"path": "/api/system/setAppearanceMode",
"handler": "setAppearanceMode",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/SystemAppearanceModeRequestInput"
@@ -166661,6 +169565,11 @@
"method": "POST",
"path": "/api/system/setAutoLaunch",
"handler": "setAutoLaunch",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/AutoLaunchRequestInput"
@@ -166736,6 +169645,11 @@
"method": "POST",
"path": "/api/system/setDownloadInstallPkg",
"handler": "setDownloadInstallPkg",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/DownloadInstallPkgRequestInput"
@@ -166811,6 +169725,11 @@
"method": "POST",
"path": "/api/system/setFollowSystemLockScreen",
"handler": "setFollowSystemLockScreen",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/LockScreenRequestInput"
@@ -166886,6 +169805,11 @@
"method": "POST",
"path": "/api/system/setNetworkProxy",
"handler": "setNetworkProxy",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/NetworkProxyInput"
@@ -166961,6 +169885,11 @@
"method": "POST",
"path": "/api/system/setNetworkServe",
"handler": "setNetworkServe",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/NetworkServeRequestInput"
@@ -167036,6 +169965,11 @@
"method": "POST",
"path": "/api/system/setNetworkServeTLS",
"handler": "setNetworkServeTLS",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/NetworkServeTLSRequestInput"
@@ -167111,6 +170045,11 @@
"method": "POST",
"path": "/api/system/setOIDC",
"handler": "setOIDC",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "structJSON",
"request": {
"$ref": "#/$defs/SystemOIDCRequestInput"
@@ -167193,6 +170132,11 @@
"method": "POST",
"path": "/api/system/setSettingsWindow",
"handler": "setSettingsWindow",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/SettingsWindowRequestInput"
@@ -167268,6 +170212,11 @@
"method": "POST",
"path": "/api/system/setUILayout",
"handler": "setUILayout",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/SystemUILayoutRequestInput"
@@ -167343,6 +170292,11 @@
"method": "POST",
"path": "/api/system/setUpdateChannel",
"handler": "setUpdateChannel",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/UpdateChannelRequestInput"
@@ -167418,6 +170372,11 @@
"method": "POST",
"path": "/api/system/setWorkspaceDir",
"handler": "setWorkspaceDir",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/SystemPathRequestInput"
@@ -167493,6 +170452,9 @@
"method": "POST",
"path": "/api/system/uiproc",
"handler": "addUIProcess",
+ "authorization": [
+ "authenticated"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/SystemUIProcessRequestInput"
@@ -167571,6 +170533,11 @@
"method": "POST",
"path": "/api/system/vacuumDataIndex",
"handler": "vacuumDataIndex",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -167646,6 +170613,9 @@
"method": "POST",
"path": "/api/system/version",
"handler": "version",
+ "authorization": [
+ "public"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -167721,6 +170691,9 @@
"method": "POST",
"path": "/api/tag/getTag",
"handler": "getTag",
+ "authorization": [
+ "authenticated"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/GetTagRequestInput"
@@ -167813,6 +170786,11 @@
"method": "POST",
"path": "/api/tag/removeTag",
"handler": "removeTag",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/RemoveTagRequestInput"
@@ -167888,6 +170866,11 @@
"method": "POST",
"path": "/api/tag/renameTag",
"handler": "renameTag",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/RenameTagRequestInput"
@@ -167963,6 +170946,11 @@
"method": "POST",
"path": "/api/template/docSaveAsTemplate",
"handler": "docSaveAsTemplate",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/SaveTemplateRequestInput"
@@ -168039,6 +171027,11 @@
"method": "POST",
"path": "/api/template/getDocSaveAsTemplateInfo",
"handler": "getDocSaveAsTemplateInfo",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/TemplateDocumentRequestInput"
@@ -168114,6 +171107,11 @@
"method": "POST",
"path": "/api/template/manage",
"handler": "manageTemplateFiles",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "structJSON",
"request": {
"$ref": "#/$defs/TemplateFileRequestInput"
@@ -168205,6 +171203,11 @@
"method": "POST",
"path": "/api/template/render",
"handler": "renderTemplate",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/RenderTemplateRequestInput"
@@ -168280,6 +171283,11 @@
"method": "POST",
"path": "/api/template/renderSprig",
"handler": "renderSprig",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/RenderSprigRequestInput"
@@ -168355,6 +171363,11 @@
"method": "POST",
"path": "/api/transactions",
"handler": "performTransactions",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/PerformTransactionsRequestInput"
@@ -168447,6 +171460,11 @@
"method": "POST",
"path": "/api/transactions/clearHistory",
"handler": "clearHistory",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/TransactionClearHistoryRequestInput"
@@ -168522,6 +171540,11 @@
"method": "POST",
"path": "/api/transactions/redo",
"handler": "performRedo",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/TransactionHistoryRequestInput"
@@ -168607,6 +171630,11 @@
"method": "POST",
"path": "/api/transactions/undo",
"handler": "performUndo",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/TransactionHistoryRequestInput"
@@ -168692,6 +171720,9 @@
"method": "POST",
"path": "/api/transactions/undoState",
"handler": "undoState",
+ "authorization": [
+ "authenticated"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/TransactionUndoStateRequestInput"
@@ -168767,6 +171798,11 @@
"method": "POST",
"path": "/api/ui/reloadAttributeView",
"handler": "reloadAttributeView",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/BlockIDRequestInput"
@@ -168842,6 +171878,11 @@
"method": "POST",
"path": "/api/ui/reloadFiletree",
"handler": "reloadFiletree",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -168917,6 +171958,11 @@
"method": "POST",
"path": "/api/ui/reloadIcon",
"handler": "reloadIcon",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -168992,6 +172038,11 @@
"method": "POST",
"path": "/api/ui/reloadProtyle",
"handler": "reloadProtyle",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "json",
"request": {
"$ref": "#/$defs/BlockIDRequestInput"
@@ -169067,6 +172118,11 @@
"method": "POST",
"path": "/api/ui/reloadTag",
"handler": "reloadTag",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -169142,6 +172198,11 @@
"method": "POST",
"path": "/api/ui/reloadTheme",
"handler": "reloadTheme",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -169217,6 +172278,11 @@
"method": "POST",
"path": "/api/ui/reloadUI",
"handler": "reloadUI",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -169292,6 +172358,9 @@
"method": "POST",
"path": "/oauth/mcp/consent",
"handler": "mcpOAuthConsent",
+ "authorization": [
+ "public"
+ ],
"body": "form",
"request": {
"$ref": "#/$defs/MCPOAuthConsentRequestInput"
@@ -169360,6 +172429,9 @@
"method": "POST",
"path": "/oauth/mcp/revoke",
"handler": "mcpOAuthRevoke",
+ "authorization": [
+ "public"
+ ],
"body": "form",
"request": {
"$ref": "#/$defs/MCPOAuthTokenRequestInput"
@@ -169444,6 +172516,9 @@
"method": "POST",
"path": "/oauth/mcp/token",
"handler": "mcpOAuthToken",
+ "authorization": [
+ "public"
+ ],
"body": "form",
"request": {
"$ref": "#/$defs/MCPOAuthTokenRequestInput"
@@ -169528,6 +172603,11 @@
"method": "POST",
"path": "/plugin/private/:name/*path",
"handler": "pluginPrivateWebServer",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "raw",
"request": {
"type": "string",
@@ -169814,6 +172894,10 @@
"method": "PUT",
"path": "/api/network/echo",
"handler": "echo",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "raw",
"request": {
"type": "string",
@@ -169890,6 +172974,10 @@
"method": "PUT",
"path": "/api/network/echo/*path",
"handler": "echoPath",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "raw",
"request": {
"type": "string",
@@ -169966,6 +173054,10 @@
"method": "PUT",
"path": "/api/network/proxy",
"handler": "httpProxy",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "raw",
"request": {
"type": "string",
@@ -170029,6 +173121,11 @@
"method": "PUT",
"path": "/plugin/private/:name/*path",
"handler": "pluginPrivateWebServer",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "raw",
"request": {
"type": "string",
@@ -170315,6 +173412,10 @@
"method": "TRACE",
"path": "/api/network/echo",
"handler": "echo",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "raw",
"request": {
"type": "string",
@@ -170391,6 +173492,10 @@
"method": "TRACE",
"path": "/api/network/echo/*path",
"handler": "echoPath",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "raw",
"request": {
"type": "string",
@@ -170467,6 +173572,10 @@
"method": "TRACE",
"path": "/api/network/proxy",
"handler": "httpProxy",
+ "authorization": [
+ "authenticated",
+ "admin"
+ ],
"body": "raw",
"request": {
"type": "string",
@@ -170530,6 +173639,11 @@
"method": "TRACE",
"path": "/plugin/private/:name/*path",
"handler": "pluginPrivateWebServer",
+ "authorization": [
+ "authenticated",
+ "admin",
+ "writable"
+ ],
"body": "raw",
"request": {
"type": "string",
diff --git a/kernel/apicontract/sse_test.go b/kernel/apicontract/sse_test.go
index 6808ce1a7b..df48504328 100644
--- a/kernel/apicontract/sse_test.go
+++ b/kernel/apicontract/sse_test.go
@@ -64,7 +64,7 @@ func TestSSEHTTPResponseKinds(t *testing.T) {
t.Cleanup(func() { definitions = previous })
options := SSEOptions(SSEEvent[sseTestToken]("content"))
options.AdditionalErrorStatuses = []int{409}
- define[EmptyRequest, Null]("events", "/test/events", NoBody, options, "POST")
+ define[EmptyRequest, Null]("events", "/test/events", PublicAccess, NoBody, options, "POST")
bundle, err := BuildBundle()
if err != nil {
t.Fatal(err)
diff --git a/kernel/apicontract/typescript.go b/kernel/apicontract/typescript.go
index dfc1731550..060abd6b55 100644
--- a/kernel/apicontract/typescript.go
+++ b/kernel/apicontract/typescript.go
@@ -159,6 +159,8 @@ func (b *Bundle) TypeScript(legacy []Route) []byte {
}
fmt.Fprintf(&output, " %s: {\n request: %s;\n response: %s;\n body: %s;\n",
quote(endpoint.Path), b.typeScript(endpoint.Request), b.typeScript(endpoint.Response), quote(string(endpoint.Body)))
+ authorization, _ := json.Marshal(endpoint.Authorization)
+ fmt.Fprintf(&output, " /** 服务器路由要求;资源权限与笔记本租约仍由内核校验 */\n authorization?: readonly %s;\n", authorization)
if endpoint.Output != "" {
fmt.Fprintf(&output, " output: %s;\n", quote(string(endpoint.Output)))
}