Changeset 0.17.3 (#78)

This commit is contained in:
2026-02-28 15:20:23 +00:00
parent a008dac488
commit 12e316c234
29 changed files with 3347 additions and 65 deletions

View File

@@ -389,9 +389,58 @@ type Note struct {
Tags []string `json:"tags,omitempty" db:"tags"`
Metadata JSONMap `json:"metadata,omitempty" db:"metadata"`
SourceChannelID *string `json:"source_channel_id,omitempty" db:"source_channel_id"`
SourceMessageID *string `json:"source_message_id,omitempty" db:"source_message_id"`
TeamID *string `json:"team_id,omitempty" db:"team_id"`
}
// NoteLink represents a directed link extracted from [[wikilink]] syntax.
type NoteLink struct {
TargetNoteID *string `json:"target_note_id,omitempty"`
TargetTitle string `json:"target_title"`
DisplayText string `json:"display_text,omitempty"`
IsTransclusion bool `json:"is_transclusion"`
}
// NoteLinkResult represents a backlink — a note that links to a given note.
type NoteLinkResult struct {
SourceNoteID string `json:"id"`
Title string `json:"title"`
FolderPath string `json:"folder_path"`
UpdatedAt time.Time `json:"updated_at"`
DisplayText string `json:"display_text,omitempty"`
}
// NoteGraphNode is a lightweight note representation for graph display.
type NoteGraphNode struct {
ID string `json:"id"`
Title string `json:"title"`
FolderPath string `json:"folder_path"`
Tags []string `json:"tags"`
UpdatedAt string `json:"updated_at"`
LinkCount int `json:"link_count"`
}
// NoteGraphEdge is a resolved link between two notes.
type NoteGraphEdge struct {
Source string `json:"source"`
Target string `json:"target"`
Title string `json:"title"`
IsTransclusion bool `json:"is_transclusion"`
}
// NoteGraphDangling is an unresolved [[link]] reference.
type NoteGraphDangling struct {
Source string `json:"source"`
Title string `json:"title"`
}
// NoteGraph is the full graph topology for a user's notes.
type NoteGraph struct {
Nodes []NoteGraphNode `json:"nodes"`
Edges []NoteGraphEdge `json:"edges"`
Unresolved []NoteGraphDangling `json:"unresolved"`
}
// =========================================
// ATTACHMENTS
// =========================================