mnapis

应用界面状态

Body {state:{…}}(差量补丁;缺键保持)。无 confirm 门,发即提交。异步(~1.5s),queued:true 仅提交,~2s 后 GET 对账。accepted/conditional(依赖缺失静默跳过)/rejected(play 与 doclayerid:new 拒收)。缺 topicid 注入当前集;无开集则拒绝。theme/panelratio 写全局偏好;immersive 弄脏同步;researchurl 加载任意 URL。

POST
/ui-state/apply

Body {state:{…}}(差量补丁;缺键保持)。无 confirm 门,发即提交。异步(~1.5s),queued:true 仅提交,~2s 后 GET 对账。accepted/conditional(依赖缺失静默跳过)/rejected(play 与 doclayerid:new 拒收)。缺 topicid 注入当前集;无开集则拒绝。theme/panelratio 写全局偏好;immersive 弄脏同步;researchurl 加载任意 URL。

Authorization

bearerAuth
AuthorizationBearer <token>

安装脚本写入 ~/.config/mn-bridge/token,或环境变量 MN_BRIDGE_TOKEN。不要带 Origin 头。

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

curl -X POST "https://example.com/ui-state/apply" \  -H "Content-Type: application/json" \  -d '{    "state": {}  }'
Empty