Repository navigation
Expand file tree
/
Copy pathopenapi.json
More file actions
1 lines (1 loc) · 42.9 KB
/
Copy pathopenapi.json
File metadata and controls
1 lines (1 loc) · 42.9 KB
1
{"components":{"schemas":{"BindWorktreeBody":{"additionalProperties":false,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["https://example.com/schemas/BindWorktreeBody.json"],"format":"uri","readOnly":true,"type":"string"},"worktreeId":{"description":"Worktree ID(null 表示解绑)","type":"string"}},"type":"object"},"BranchInfo":{"additionalProperties":false,"properties":{"hasWorktree":{"type":"boolean"},"headCommit":{"type":"string"},"isCurrent":{"type":"boolean"},"isRemote":{"type":"boolean"},"name":{"type":"string"}},"required":["name","isCurrent","isRemote","headCommit","hasWorktree"],"type":"object"},"BranchListResult":{"additionalProperties":false,"properties":{"local":{"items":{"$ref":"#/components/schemas/BranchInfo"},"type":["array","null"]},"remote":{"items":{"$ref":"#/components/schemas/BranchInfo"},"type":["array","null"]}},"required":["local","remote"],"type":"object"},"CreateBranchBody":{"additionalProperties":false,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["https://example.com/schemas/CreateBranchBody.json"],"format":"uri","readOnly":true,"type":"string"},"base":{"description":"基础分支","type":"string"},"createWorktree":{"default":false,"description":"同时创建 Worktree","type":"boolean"},"name":{"description":"分支名称","minLength":1,"type":"string"}},"required":["name","base","createWorktree"],"type":"object"},"CreateNotePadBody":{"additionalProperties":false,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["https://example.com/schemas/CreateNotePadBody.json"],"format":"uri","readOnly":true,"type":"string"},"content":{"description":"内容","type":"string"},"name":{"description":"标签页名称","type":"string"},"projectId":{"description":"项目ID(为空表示全局笔记)","type":"string"}},"required":["name","content"],"type":"object"},"CreateProjectInputBody":{"additionalProperties":false,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["https://example.com/schemas/CreateProjectInputBody.json"],"format":"uri","readOnly":true,"type":"string"},"description":{"description":"项目描述","type":"string"},"name":{"description":"项目名称","maxLength":100,"minLength":1,"type":"string"},"path":{"description":"本地项目目录路径(可非 Git 仓库)","minLength":1,"type":"string"},"worktreeBasePath":{"description":"Worktree 基础路径(可选,默认为项目目录下的 worktrees 子目录)","type":"string"}},"required":["name","path","description"],"type":"object"},"DeletedAt":{"additionalProperties":false,"properties":{"Time":{"format":"date-time","type":"string"},"Valid":{"type":"boolean"}},"required":["Time","Valid"],"type":"object"},"ErrorDetail":{"additionalProperties":false,"properties":{"location":{"description":"Where the error occurred, e.g. 'body.items[3].tags' or 'path.thing-id'","type":"string"},"message":{"description":"Error message text","type":"string"},"value":{"additionalProperties":{},"description":"The value at the given location","type":"object"}},"type":"object"},"ErrorModel":{"additionalProperties":false,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["https://example.com/schemas/ErrorModel.json"],"format":"uri","readOnly":true,"type":"string"},"detail":{"description":"A human-readable explanation specific to this occurrence of the problem.","examples":["Property foo is required but is missing."],"type":"string"},"errors":{"description":"Optional list of individual error details","items":{"$ref":"#/components/schemas/ErrorDetail"},"type":["array","null"]},"instance":{"description":"A URI reference that identifies the specific occurrence of the problem.","examples":["https://example.com/error-log/abc123"],"format":"uri","type":"string"},"status":{"description":"HTTP status code","examples":[400],"format":"int64","type":"integer"},"title":{"description":"A short, human-readable summary of the problem type. This value should not change between occurrences of the error.","examples":["Bad Request"],"type":"string"},"type":{"default":"about:blank","description":"A URI reference to human-readable documentation for the error.","examples":["https://example.com/errors/example"],"format":"uri","type":"string"}},"type":"object"},"ItemResponseBranchListResultBody":{"additionalProperties":false,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["https://example.com/schemas/ItemResponseBranchListResultBody.json"],"format":"uri","readOnly":true,"type":"string"},"item":{"$ref":"#/components/schemas/BranchListResult","description":"响应对象"}},"required":["item"],"type":"object"},"ItemResponseMergeResultBody":{"additionalProperties":false,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["https://example.com/schemas/ItemResponseMergeResultBody.json"],"format":"uri","readOnly":true,"type":"string"},"item":{"$ref":"#/components/schemas/MergeResult","description":"响应对象"}},"required":["item"],"type":"object"},"ItemResponseNotePadTableBody":{"additionalProperties":false,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["https://example.com/schemas/ItemResponseNotePadTableBody.json"],"format":"uri","readOnly":true,"type":"string"},"item":{"$ref":"#/components/schemas/NotePadTable","description":"响应对象"}},"required":["item"],"type":"object"},"ItemResponseProjectBody":{"additionalProperties":false,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["https://example.com/schemas/ItemResponseProjectBody.json"],"format":"uri","readOnly":true,"type":"string"},"item":{"$ref":"#/components/schemas/Project","description":"响应对象"}},"required":["item"],"type":"object"},"ItemResponsePtyTestSessionViewBody":{"additionalProperties":false,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["https://example.com/schemas/ItemResponsePtyTestSessionViewBody.json"],"format":"uri","readOnly":true,"type":"string"},"item":{"$ref":"#/components/schemas/PtyTestSessionView","description":"响应对象"}},"required":["item"],"type":"object"},"ItemResponseRefreshAllResultBody":{"additionalProperties":false,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["https://example.com/schemas/ItemResponseRefreshAllResultBody.json"],"format":"uri","readOnly":true,"type":"string"},"item":{"$ref":"#/components/schemas/RefreshAllResult","description":"响应对象"}},"required":["item"],"type":"object"},"ItemResponseTerminalSessionViewBody":{"additionalProperties":false,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["https://example.com/schemas/ItemResponseTerminalSessionViewBody.json"],"format":"uri","readOnly":true,"type":"string"},"item":{"$ref":"#/components/schemas/TerminalSessionView","description":"响应对象"}},"required":["item"],"type":"object"},"ItemResponseUploadImageResponseBody":{"additionalProperties":false,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["https://example.com/schemas/ItemResponseUploadImageResponseBody.json"],"format":"uri","readOnly":true,"type":"string"},"item":{"$ref":"#/components/schemas/UploadImageResponse","description":"响应对象"}},"required":["item"],"type":"object"},"ItemResponseWorktreeBody":{"additionalProperties":false,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["https://example.com/schemas/ItemResponseWorktreeBody.json"],"format":"uri","readOnly":true,"type":"string"},"item":{"$ref":"#/components/schemas/Worktree","description":"响应对象"}},"required":["item"],"type":"object"},"ItemsResponseNotePadTableBody":{"additionalProperties":false,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["https://example.com/schemas/ItemsResponseNotePadTableBody.json"],"format":"uri","readOnly":true,"type":"string"},"items":{"description":"响应列表","items":{"$ref":"#/components/schemas/NotePadTable"},"type":["array","null"]}},"required":["items"],"type":"object"},"ItemsResponseProjectBody":{"additionalProperties":false,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["https://example.com/schemas/ItemsResponseProjectBody.json"],"format":"uri","readOnly":true,"type":"string"},"items":{"description":"响应列表","items":{"$ref":"#/components/schemas/Project"},"type":["array","null"]}},"required":["items"],"type":"object"},"ItemsResponseTerminalSessionViewBody":{"additionalProperties":false,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["https://example.com/schemas/ItemsResponseTerminalSessionViewBody.json"],"format":"uri","readOnly":true,"type":"string"},"items":{"description":"响应列表","items":{"$ref":"#/components/schemas/TerminalSessionView"},"type":["array","null"]}},"required":["items"],"type":"object"},"ItemsResponseWorktreeBody":{"additionalProperties":false,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["https://example.com/schemas/ItemsResponseWorktreeBody.json"],"format":"uri","readOnly":true,"type":"string"},"items":{"description":"响应列表","items":{"$ref":"#/components/schemas/Worktree"},"type":["array","null"]}},"required":["items"],"type":"object"},"MergeBranchBody":{"additionalProperties":false,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["https://example.com/schemas/MergeBranchBody.json"],"format":"uri","readOnly":true,"type":"string"},"commit":{"default":false,"description":"Squash 合并后立即提交","type":"boolean"},"commitMessage":{"description":"提交信息(仅 squash 合并生效)","type":"string"},"sourceBranch":{"description":"源分支","minLength":1,"type":"string"},"strategy":{"default":"merge","description":"合并策略","enum":["merge","rebase","squash"],"type":"string"},"targetBranch":{"description":"目标分支","minLength":1,"type":"string"}},"required":["targetBranch","sourceBranch","strategy","commit","commitMessage"],"type":"object"},"MergeResult":{"additionalProperties":false,"properties":{"conflicts":{"items":{"type":"string"},"type":["array","null"]},"message":{"type":"string"},"success":{"type":"boolean"}},"required":["success","conflicts","message"],"type":"object"},"MessageResponseBody":{"additionalProperties":false,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["https://example.com/schemas/MessageResponseBody.json"],"format":"uri","readOnly":true,"type":"string"},"message":{"description":"提示信息","type":"string"}},"required":["message"],"type":"object"},"MoveNotePadBody":{"additionalProperties":false,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["https://example.com/schemas/MoveNotePadBody.json"],"format":"uri","readOnly":true,"type":"string"},"orderIndex":{"description":"排序索引","format":"double","type":"number"}},"required":["orderIndex"],"type":"object"},"NotePadTable":{"additionalProperties":false,"properties":{"content":{"type":"string"},"createdAt":{"format":"date-time","type":"string"},"deletedAt":{"$ref":"#/components/schemas/DeletedAt"},"id":{"type":"string"},"name":{"type":"string"},"orderIndex":{"format":"double","type":"number"},"projectId":{"type":["string","null"]},"updatedAt":{"format":"date-time","type":"string"}},"required":["projectId","name","content","orderIndex","id","createdAt","updatedAt","deletedAt"],"type":"object"},"OpenPathInputBody":{"additionalProperties":false,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["https://example.com/schemas/OpenPathInputBody.json"],"format":"uri","readOnly":true,"type":"string"},"path":{"description":"目标路径","type":"string"}},"required":["path"],"type":"object"},"Project":{"additionalProperties":false,"properties":{"createdAt":{"format":"date-time","type":"string"},"defaultBranch":{"type":["string","null"]},"deletedAt":{"format":"date-time","type":["string","null"]},"description":{"type":["string","null"]},"id":{"type":"string"},"lastSyncAt":{"format":"date-time","type":["string","null"]},"name":{"type":"string"},"path":{"type":"string"},"remoteUrl":{"type":["string","null"]},"updatedAt":{"format":"date-time","type":"string"},"worktreeBasePath":{"type":["string","null"]}},"required":["id","createdAt","updatedAt","deletedAt","name","path","description","defaultBranch","worktreeBasePath","remoteUrl","lastSyncAt"],"type":"object"},"ProjectTable":{"additionalProperties":false,"properties":{"createdAt":{"format":"date-time","type":"string"},"defaultBranch":{"type":"string"},"deletedAt":{"$ref":"#/components/schemas/DeletedAt"},"description":{"type":"string"},"id":{"type":"string"},"lastSyncAt":{"format":"date-time","type":["string","null"]},"name":{"type":"string"},"path":{"type":"string"},"remoteUrl":{"type":"string"},"updatedAt":{"format":"date-time","type":"string"},"worktreeBasePath":{"type":"string"}},"required":["name","path","description","defaultBranch","worktreeBasePath","remoteUrl","lastSyncAt","id","createdAt","updatedAt","deletedAt"],"type":"object"},"PtyTestCreateInputBody":{"additionalProperties":false,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["https://example.com/schemas/PtyTestCreateInputBody.json"],"format":"uri","readOnly":true,"type":"string"},"cols":{"description":"终端列数","format":"int64","type":"integer"},"encoding":{"description":"xpty 输出编码,默认 utf-8","type":"string"},"rows":{"description":"终端行数","format":"int64","type":"integer"},"shell":{"description":"自定义 shell 命令,留空使用默认配置","type":"string"},"workingDir":{"description":"工作目录,可选","type":"string"}},"required":["workingDir","shell","rows","cols","encoding"],"type":"object"},"PtyTestSessionView":{"additionalProperties":false,"properties":{"cols":{"format":"int64","type":"integer"},"createdAt":{"format":"date-time","type":"string"},"encoding":{"type":"string"},"id":{"type":"string"},"rows":{"format":"int64","type":"integer"},"shell":{"items":{"type":"string"},"type":["array","null"]},"workingDir":{"type":"string"},"wsPath":{"type":"string"},"wsUrl":{"type":"string"}},"required":["id","workingDir","shell","rows","cols","createdAt","encoding","wsPath","wsUrl"],"type":"object"},"RefreshAllResult":{"additionalProperties":false,"properties":{"failed":{"description":"刷新失败数量","format":"int64","type":"integer"},"updated":{"description":"刷新成功数量","format":"int64","type":"integer"}},"required":["updated","failed"],"type":"object"},"TerminalCreateInputBody":{"additionalProperties":false,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["https://example.com/schemas/TerminalCreateInputBody.json"],"format":"uri","readOnly":true,"type":"string"},"cols":{"description":"终端列数","format":"int64","type":"integer"},"rows":{"description":"终端行数","format":"int64","type":"integer"},"title":{"description":"终端标题","type":"string"},"workingDir":{"description":"工作目录","type":"string"}},"required":["workingDir","title","rows","cols"],"type":"object"},"TerminalRenameInputBody":{"additionalProperties":false,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["https://example.com/schemas/TerminalRenameInputBody.json"],"format":"uri","readOnly":true,"type":"string"},"title":{"description":"新的终端标签名","type":"string"}},"required":["title"],"type":"object"},"TerminalSessionView":{"additionalProperties":false,"properties":{"cols":{"format":"int64","type":"integer"},"createdAt":{"format":"date-time","type":"string"},"encoding":{"type":"string"},"id":{"type":"string"},"lastActive":{"format":"date-time","type":"string"},"projectId":{"type":"string"},"rows":{"format":"int64","type":"integer"},"status":{"type":"string"},"title":{"type":"string"},"workingDir":{"type":"string"},"worktreeId":{"type":"string"},"wsPath":{"type":"string"},"wsUrl":{"type":"string"}},"required":["id","projectId","worktreeId","workingDir","title","createdAt","lastActive","status","wsPath","wsUrl","rows","cols","encoding"],"type":"object"},"UpdateNotePadBody":{"additionalProperties":false,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["https://example.com/schemas/UpdateNotePadBody.json"],"format":"uri","readOnly":true,"type":"string"},"content":{"description":"内容","type":["string","null"]},"name":{"description":"标签页名称","type":["string","null"]}},"required":["name","content"],"type":"object"},"UploadClipboardImageInputBody":{"additionalProperties":false,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["https://example.com/schemas/UploadClipboardImageInputBody.json"],"format":"uri","readOnly":true,"type":"string"},"data":{"description":"图片数据(base64 编码)","type":"string"},"fileName":{"description":"文件名","type":"string"}},"required":["fileName","data"],"type":"object"},"UploadImageResponse":{"additionalProperties":false,"properties":{"fileName":{"description":"文件名","type":"string"},"path":{"description":"文件路径","type":"string"},"size":{"description":"文件大小(字节)","format":"int64","type":"integer"}},"required":["path","fileName","size"],"type":"object"},"Worktree":{"additionalProperties":false,"properties":{"branchName":{"type":"string"},"createdAt":{"format":"date-time","type":"string"},"deletedAt":{"format":"date-time","type":["string","null"]},"headCommit":{"type":["string","null"]},"headCommitDate":{"format":"date-time","type":["string","null"]},"id":{"type":"string"},"isBare":{"type":"boolean"},"isMain":{"type":"boolean"},"path":{"type":"string"},"projectId":{"type":"string"},"statusAhead":{"format":"int64","type":["integer","null"]},"statusBehind":{"format":"int64","type":["integer","null"]},"statusConflicts":{"format":"int64","type":["integer","null"]},"statusModified":{"format":"int64","type":["integer","null"]},"statusStaged":{"format":"int64","type":["integer","null"]},"statusUntracked":{"format":"int64","type":["integer","null"]},"statusUpdatedAt":{"format":"date-time","type":["string","null"]},"updatedAt":{"format":"date-time","type":"string"}},"required":["id","createdAt","updatedAt","deletedAt","projectId","branchName","path","isMain","isBare","headCommit","headCommitDate","statusAhead","statusBehind","statusModified","statusStaged","statusUntracked","statusConflicts","statusUpdatedAt"],"type":"object"},"Worktree-commitRequest":{"additionalProperties":false,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["https://example.com/schemas/Worktree-commitRequest.json"],"format":"uri","readOnly":true,"type":"string"},"message":{"description":"提交信息","minLength":1,"type":"string"}},"required":["message"],"type":"object"},"Worktree-createRequest":{"additionalProperties":false,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["https://example.com/schemas/Worktree-createRequest.json"],"format":"uri","readOnly":true,"type":"string"},"baseBranch":{"description":"基础分支","type":"string"},"branchName":{"description":"分支名称","type":"string"},"createBranch":{"default":true,"description":"是否创建新分支","type":"boolean"}},"required":["branchName","baseBranch","createBranch"],"type":"object"},"WorktreeTable":{"additionalProperties":false,"properties":{"branchName":{"type":"string"},"createdAt":{"format":"date-time","type":"string"},"deletedAt":{"$ref":"#/components/schemas/DeletedAt"},"headCommit":{"type":"string"},"headCommitDate":{"format":"date-time","type":["string","null"]},"id":{"type":"string"},"isBare":{"type":"boolean"},"isMain":{"type":"boolean"},"path":{"type":"string"},"project":{"$ref":"#/components/schemas/ProjectTable"},"projectId":{"type":"string"},"statusAhead":{"format":"int64","type":"integer"},"statusBehind":{"format":"int64","type":"integer"},"statusConflicts":{"format":"int64","type":"integer"},"statusModified":{"format":"int64","type":"integer"},"statusStaged":{"format":"int64","type":"integer"},"statusUntracked":{"format":"int64","type":"integer"},"statusUpdatedAt":{"format":"date-time","type":["string","null"]},"updatedAt":{"format":"date-time","type":"string"}},"required":["projectId","branchName","path","isMain","isBare","headCommit","headCommitDate","statusAhead","statusBehind","statusModified","statusStaged","statusUntracked","statusConflicts","statusUpdatedAt","id","createdAt","updatedAt","deletedAt"],"type":"object"},"CapabilityReason":{"additionalProperties":false,"properties":{"code":{"type":"string"},"detail":{"type":"string"}},"required":["code"],"type":"object"},"GitCapabilityResult":{"additionalProperties":false,"properties":{"engines":{"$ref":"#/components/schemas/OperationEngines"},"mode":{"type":"string"},"operations":{"$ref":"#/components/schemas/OperationCapabilities"},"reasons":{"items":{"$ref":"#/components/schemas/CapabilityReason"},"type":["array","null"]},"repository":{"type":"boolean"},"worktrees":{"items":{"$ref":"#/components/schemas/GitWorktreeCapabilityResult"},"type":["array","null"]}},"required":["repository","mode","operations","engines","reasons","worktrees"],"type":"object"},"GitWorktreeCapabilityResult":{"additionalProperties":false,"properties":{"engines":{"$ref":"#/components/schemas/OperationEngines"},"id":{"type":"string"},"operations":{"$ref":"#/components/schemas/OperationCapabilities"},"reasons":{"items":{"$ref":"#/components/schemas/CapabilityReason"},"type":["array","null"]}},"required":["id","operations","engines","reasons"],"type":"object"},"ItemResponseGitCapabilityResultBody":{"additionalProperties":false,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["https://example.com/schemas/ItemResponseGitCapabilityResultBody.json"],"format":"uri","readOnly":true,"type":"string"},"item":{"$ref":"#/components/schemas/GitCapabilityResult","description":"响应对象"}},"required":["item"],"type":"object"},"OperationCapabilities":{"additionalProperties":false,"properties":{"branchesRead":{"type":"boolean"},"branchesWrite":{"type":"boolean"},"commit":{"type":"boolean"},"diff":{"type":"boolean"},"fastForwardMerge":{"type":"boolean"},"merge":{"type":"boolean"},"rebase":{"type":"boolean"},"squash":{"type":"boolean"},"status":{"type":"boolean"},"worktreesRead":{"type":"boolean"},"worktreesWrite":{"type":"boolean"}},"required":["branchesRead","branchesWrite","status","diff","worktreesRead","worktreesWrite","commit","fastForwardMerge","merge","rebase","squash"],"type":"object"},"OperationEngines":{"additionalProperties":false,"properties":{"branchesRead":{"type":"string"},"branchesWrite":{"type":"string"},"commit":{"type":"string"},"diff":{"type":"string"},"fastForwardMerge":{"type":"string"},"merge":{"type":"string"},"rebase":{"type":"string"},"squash":{"type":"string"},"status":{"type":"string"},"worktreesRead":{"type":"string"},"worktreesWrite":{"type":"string"}},"required":["branchesRead","branchesWrite","status","diff","worktreesRead","worktreesWrite","commit","fastForwardMerge","merge","rebase","squash"],"type":"object"},"SystemGitInfo":{"additionalProperties":false,"properties":{"available":{"type":"boolean"},"error":{"type":"string"},"executable":{"type":"string"},"version":{"type":"string"}},"required":["available"],"type":"object"},"GitConfig":{"additionalProperties":false,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["https://example.com/schemas/GitConfig.json"],"format":"uri","readOnly":true,"type":"string"},"executable":{"type":"string"},"readEngine":{"enum":["auto","builtin","system"],"type":"string"},"writeEngine":{"enum":["auto","builtin","system"],"type":"string"}},"required":["readEngine","writeEngine","executable"],"type":"object"},"ItemResponseGitSettingsResultBody":{"additionalProperties":false,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["https://example.com/schemas/ItemResponseGitSettingsResultBody.json"],"format":"uri","readOnly":true,"type":"string"},"item":{"$ref":"#/components/schemas/GitSettingsResult","description":"响应对象"}},"required":["item"],"type":"object"},"GitSettingsResult":{"additionalProperties":false,"properties":{"executable":{"type":"string"},"readEngine":{"enum":["auto","builtin","system"],"type":"string"},"systemGit":{"$ref":"#/components/schemas/SystemGitInfo"},"writeEngine":{"enum":["auto","builtin","system"],"type":"string"}},"required":["readEngine","writeEngine","systemGit"],"type":"object"}}},"info":{"title":"Go Template API","version":"1.0.0"},"openapi":"3.1.0","paths":{"/api/v1/health":{"get":{"operationId":"health-check","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageResponseBody"}}},"description":"OK"},"default":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Error"}},"summary":"健康探测","tags":["health-健康检查"]}},"/api/v1/notepads":{"get":{"operationId":"notepad-list","parameters":[{"description":"项目ID(为空或global表示全局笔记)","explode":false,"in":"query","name":"projectId","schema":{"description":"项目ID(为空或global表示全局笔记)","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsResponseNotePadTableBody"}}},"description":"OK"},"default":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Error"}},"summary":"获取记事板标签","tags":["notepad-记事板"]},"post":{"operationId":"notepad-create","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateNotePadBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemResponseNotePadTableBody"}}},"description":"OK"},"default":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Error"}},"summary":"创建记事板标签","tags":["notepad-记事板"]}},"/api/v1/notepads/{id}":{"delete":{"operationId":"notepad-delete","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageResponseBody"}}},"description":"OK"},"default":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Error"}},"summary":"删除记事板标签","tags":["notepad-记事板"]},"get":{"operationId":"notepad-get","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemResponseNotePadTableBody"}}},"description":"OK"},"default":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Error"}},"summary":"获取记事板标签详情","tags":["notepad-记事板"]},"patch":{"operationId":"notepad-update","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateNotePadBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemResponseNotePadTableBody"}}},"description":"OK"},"default":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Error"}},"summary":"更新记事板标签","tags":["notepad-记事板"]}},"/api/v1/notepads/{id}/move":{"post":{"operationId":"notepad-move","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MoveNotePadBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemResponseNotePadTableBody"}}},"description":"OK"},"default":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Error"}},"summary":"移动记事板标签顺序","tags":["notepad-记事板"]}},"/api/v1/projects":{"get":{"operationId":"project-list","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsResponseProjectBody"}}},"description":"OK"},"default":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Error"}},"summary":"项目列表","tags":["project-项目管理"]},"post":{"operationId":"project-create","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateProjectInputBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemResponseProjectBody"}}},"description":"OK"},"default":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Error"}},"summary":"创建项目","tags":["project-项目管理"]}},"/api/v1/projects/{id}":{"delete":{"operationId":"project-delete","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageResponseBody"}}},"description":"OK"},"default":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Error"}},"summary":"删除项目","tags":["project-项目管理"]},"get":{"operationId":"project-get-by-id","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemResponseProjectBody"}}},"description":"OK"},"default":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Error"}},"summary":"获取项目详情","tags":["project-项目管理"]}},"/api/v1/projects/{projectId}/git-capabilities":{"get":{"operationId":"project-git-capabilities","parameters":[{"in":"path","name":"projectId","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemResponseGitCapabilityResultBody"}}},"description":"OK"},"default":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Error"}},"summary":"获取项目 Git 能力","tags":["worktree-工作树"]}},"/api/v1/projects/{projectId}/branches":{"get":{"operationId":"branch-list","parameters":[{"in":"path","name":"projectId","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemResponseBranchListResultBody"}}},"description":"OK"},"default":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Error"}},"summary":"获取分支列表","tags":["branch-分支管理"]},"post":{"operationId":"branch-create","parameters":[{"in":"path","name":"projectId","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateBranchBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageResponseBody"}}},"description":"OK"},"default":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Error"}},"summary":"创建分支","tags":["branch-分支管理"]}},"/api/v1/projects/{projectId}/branches/{branchName}":{"delete":{"operationId":"branch-delete","parameters":[{"in":"path","name":"projectId","required":true,"schema":{"type":"string"}},{"in":"path","name":"branchName","required":true,"schema":{"type":"string"}},{"description":"强制删除","explode":false,"in":"query","name":"force","schema":{"default":false,"description":"强制删除","type":"boolean"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageResponseBody"}}},"description":"OK"},"default":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Error"}},"summary":"删除分支","tags":["branch-分支管理"]}},"/api/v1/projects/{projectId}/refresh-all-worktrees":{"post":{"operationId":"worktree-refresh-all-by-project","parameters":[{"in":"path","name":"projectId","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemResponseRefreshAllResultBody"}}},"description":"OK"},"default":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Error"}},"summary":"刷新所有 Worktree 状态","tags":["worktree-工作树"]}},"/api/v1/projects/{projectId}/sync-worktrees":{"post":{"operationId":"worktree-sync-by-project","parameters":[{"in":"path","name":"projectId","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageResponseBody"}}},"description":"OK"},"default":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Error"}},"summary":"同步 Worktree","tags":["worktree-工作树"]}},"/api/v1/projects/{projectId}/terminals":{"get":{"operationId":"terminal-session-list","parameters":[{"in":"path","name":"projectId","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsResponseTerminalSessionViewBody"}}},"description":"OK"},"default":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Error"}},"summary":"获取终端会话列表","tags":["terminal-session-终端会话"]}},"/api/v1/projects/{projectId}/terminals/{sessionId}":{"delete":{"operationId":"terminal-session-close","parameters":[{"in":"path","name":"projectId","required":true,"schema":{"type":"string"}},{"in":"path","name":"sessionId","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageResponseBody"}}},"description":"OK"},"default":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Error"}},"summary":"关闭终端会话","tags":["terminal-session-终端会话"]},"patch":{"operationId":"terminal-session-rename","parameters":[{"in":"path","name":"projectId","required":true,"schema":{"type":"string"}},{"in":"path","name":"sessionId","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TerminalRenameInputBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemResponseTerminalSessionViewBody"}}},"description":"OK"},"default":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Error"}},"summary":"终端标签重命名","tags":["terminal-session-终端会话"]}},"/api/v1/projects/{projectId}/worktrees":{"get":{"operationId":"worktree-list-by-project","parameters":[{"in":"path","name":"projectId","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsResponseWorktreeBody"}}},"description":"OK"},"default":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Error"}},"summary":"获取 Worktree 列表","tags":["worktree-工作树"]},"post":{"operationId":"worktree-create","parameters":[{"in":"path","name":"projectId","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Worktree-createRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemResponseWorktreeBody"}}},"description":"OK"},"default":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Error"}},"summary":"创建 Worktree","tags":["worktree-工作树"]}},"/api/v1/projects/{projectId}/worktrees/{worktreeId}/terminals":{"post":{"operationId":"terminal-session-create","parameters":[{"in":"path","name":"projectId","required":true,"schema":{"type":"string"}},{"in":"path","name":"worktreeId","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TerminalCreateInputBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemResponseTerminalSessionViewBody"}}},"description":"OK"},"default":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Error"}},"summary":"创建终端会话","tags":["terminal-session-终端会话"]}},"/api/v1/pty-test/sessions":{"post":{"operationId":"pty-test-session-create","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PtyTestCreateInputBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemResponsePtyTestSessionViewBody"}}},"description":"OK"},"default":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Error"}},"summary":"创建 PTY 测试会话","tags":["pty-test-终端测试"]}},"/api/v1/pty-test/sessions/{sessionId}":{"delete":{"operationId":"pty-test-session-close","parameters":[{"in":"path","name":"sessionId","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageResponseBody"}}},"description":"OK"},"default":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Error"}},"summary":"关闭 PTY 测试会话","tags":["pty-test-终端测试"]}},"/api/v1/system/open-explorer":{"post":{"operationId":"system-open-explorer","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenPathInputBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageResponseBody"}}},"description":"OK"},"default":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Error"}},"summary":"打开文件管理器","tags":["system-系统工具"]}},"/api/v1/system/open-terminal":{"post":{"operationId":"system-open-terminal","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenPathInputBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageResponseBody"}}},"description":"OK"},"default":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Error"}},"summary":"打开终端","tags":["system-系统工具"]}},"/api/v1/upload/clipboard-image":{"post":{"operationId":"upload-clipboard-image","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadClipboardImageInputBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemResponseUploadImageResponseBody"}}},"description":"OK"},"default":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Error"}},"summary":"上传剪贴板图片","tags":["upload-上传"]}},"/api/v1/worktrees/{id}":{"delete":{"operationId":"worktree-delete","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"explode":false,"in":"query","name":"force","schema":{"default":false,"type":"boolean"}},{"explode":false,"in":"query","name":"deleteBranch","schema":{"default":true,"type":"boolean"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageResponseBody"}}},"description":"OK"},"default":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Error"}},"summary":"删除 Worktree","tags":["worktree-工作树"]}},"/api/v1/worktrees/{id}/commit":{"post":{"operationId":"worktree-commit","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Worktree-commitRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemResponseWorktreeBody"}}},"description":"OK"},"default":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Error"}},"summary":"提交 Worktree 更改","tags":["worktree-工作树"]}},"/api/v1/worktrees/{id}/merge":{"post":{"operationId":"branch-merge","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MergeBranchBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemResponseMergeResultBody"}}},"description":"OK"},"default":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Error"}},"summary":"合并分支","tags":["branch-分支管理"]}},"/api/v1/worktrees/{id}/refresh-status":{"post":{"operationId":"worktree-refresh-status","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemResponseWorktreeBody"}}},"description":"OK"},"default":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Error"}},"summary":"刷新 Worktree 状态","tags":["worktree-工作树"]}},"/api/v1/system/git-settings":{"get":{"operationId":"system-git-settings-get","parameters":[{"explode":false,"in":"query","name":"refresh","schema":{"type":"boolean"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemResponseGitSettingsResultBody"}}},"description":"OK"},"default":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Error"}},"summary":"获取 Git 引擎设置","tags":["system-系统工具"]}},"/api/v1/system/git-settings/update":{"post":{"operationId":"system-git-settings-update","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GitConfig"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemResponseGitSettingsResultBody"}}},"description":"OK"},"default":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Error"}},"summary":"更新 Git 引擎设置","tags":["system-系统工具"]}}}}