An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
// SiYuan - https://github.com/siyuan-note/siyuan
// Copyright (c) 2020-present, b3log.org
// SPDX-License-Identifier: AGPL-3.0-or-later
package apicontract
type DocInfo struct {
ID string `json:"id"`
RootID string `json:"rootID"`
Name string `json:"name"`
RefCount int `json:"refCount"`
SubFileCount int `json:"subFileCount"`
RefIDs []string `json:"refIDs"`
IAL map[string]string `json:"ial"`
Icon string `json:"icon"`
AttrViews []*DocAttrView `json:"attrViews"`
}
type DocAttrView struct {
ID string `json:"id"`
Name string `json:"name"`
}
type DocsInfoRequest struct {
IDs []string `json:"ids"`
RefCount bool `json:"refCount"`
AV bool `json:"av"`
}
type TreeStatRequest struct {
BlockQueryRequest
IncludeEmbed bool `json:"includeEmbed" api:"optional,nullable"`
ReqID JSONValue `json:"reqId" api:"optional,nullable"`
}
type TreeStatData struct {
ReqID JSONValue `json:"reqId"`
Stat *BlockStat `json:"stat"`
ContainsEmbed *bool `json:"containsEmbed,omitempty"`
StatWithEmbed **BlockStat `json:"statWithEmbed,omitempty"`
EmbedStat **EmbedStat `json:"embedStat,omitempty"`
}
type EmbedStat struct {
Complete bool `json:"complete"`
QueryEmbedCount int `json:"queryEmbedCount"`
JSEmbedCount int `json:"jsEmbedCount"`
ResultCount int `json:"resultCount"`
FailedQueryCount int `json:"failedQueryCount"`
FailedResultCount int `json:"failedResultCount"`
TruncatedQueryCount int `json:"truncatedQueryCount"`
CycleCount int `json:"cycleCount"`
DepthLimitCount int `json:"depthLimitCount"`
}