Versions in this module Expand all Collapse all v1 v1.1.2 Aug 29, 2026 v1.1.1 Aug 29, 2026 Changes in this version + const ArchiveReasonSuperseded + const DocTypeHandoff + const DocTypeJournal + const EdgeContinuesFrom + const EdgeDerivedFrom + const EdgeRelatesTo + const EdgeSupersedes + const InstanceConfigSingletonID + const MutationOpCreate + const MutationOpDeleteDocument + const MutationOpDeleteSection + const MutationOpOverwrite + const MutationOpUpdateSection + const MutationOpUpdateTitle + const OverrideToolReadScope + const OverrideTypeCrossTenantRead + var ValidEdgeTypes = map[string]struct + func EpisodicDocTypes() []string + func IsEpisodic(docType string) bool + func IsPrunableEpisodic(docType string) bool + func PrunableEpisodicDocTypes() []string type Document + ArchiveReason string + ContentHash string + LastAccessedAt *time.Time + Pinned bool + TenantName string + TenantType string + type Edge struct + ActorSubject string + CreatedAt time.Time + EdgeType string + ID uuid.UUID + Source *Document + SourceDocumentID uuid.UUID + Target *Document + TargetDocumentID uuid.UUID + TenantID uuid.UUID + func (Edge) TableName() string + type InstanceConfig struct + AdminEmails string + CandidatePool int + CleanupEnabled bool + CleanupIntervalHours int + CleanupScanDefault bool + DuplicateGuardDefault bool + DuplicateThreshold float64 + GlobalsSeeded bool + HistoryEnabled bool + HistoryRetentionDays int + ID uint + LogLevel string + MMRLambda float64 + MaxRequestBytes int64 + RateLimitBurst int + RateLimitRPS float64 + SelfServicePolicy string + SignupDomains string + SnippetChars int + StalenessDefault string + StalenessPenalty float64 + TrustedProxyDepth int + UpdatedAt time.Time + WebhookURL string + func (InstanceConfig) TableName() string + type InstanceConfigPatch struct + AdminEmails *string + CandidatePool *int + CleanupEnabled *bool + CleanupIntervalHours *int + CleanupScanDefault *bool + DuplicateGuardDefault *bool + DuplicateThreshold *float64 + HistoryEnabled *bool + HistoryRetentionDays *int + LogLevel *string + MMRLambda *float64 + MaxRequestBytes *int64 + RateLimitBurst *int + RateLimitRPS *float64 + SelfServicePolicy *string + SignupDomains *string + SnippetChars *int + StalenessDefault *string + StalenessPenalty *float64 + TrustedProxyDepth *int + WebhookURL *string + type MutationHistory struct + APIKeyID *uuid.UUID + ActorEmail *string + ActorSubject string + Before *string + CreatedAt time.Time + DocumentID uuid.UUID + DocumentPath string + ID uint64 + OpType string + SectionID *uuid.UUID + TenantID uuid.UUID + func (MutationHistory) TableName() string type Tenant + DuplicateThreshold *float64 v1.1.0 Aug 14, 2026 v1.0.1 Aug 9, 2026 v1.0.0 Aug 8, 2026 Changes in this version + const CleanupResolutionFalsePositive + const CleanupResolutionIgnored + const CleanupResolutionMerged + const DeletionReasonRetention + const DocTypeAudit + const DocTypeLearning + const DocTypePreference + const DocTypeProjectState + const DocTypeReference + const DocTypeTool + const DuplicateGuardThreshold + const EmbeddingMetadataSingletonID + const ImportJobStatusFailed + const ImportJobStatusQueued + const ImportJobStatusRunning + const ImportJobStatusSucceeded + const MaxCategoryLen + const MaxSlugLen + const MaxSubcategoryLen + const OverrideToolGetDocument + const OverrideToolSearchMemory + const OverrideToolStoreMemory + const OverrideToolUpdateMyTenantSettings + const OverrideToolUpdateSection + const OverrideToolUpdateTenantSettings + const OverrideTypeForceCreate + const OverrideTypeForceRead + const OverrideTypeSettingsChange + const ScanThreshold + const SelfServicePolicyAdminOnly + const SelfServicePolicyOpen + const StalenessModeAdvisory + const StalenessModeHard + const StalenessModeOff + const TenantTypePersonal + const TenantTypeShared + const TenantUserRoleAdmin + const TenantUserRoleMember + const TenantUserRoleOwner + var BootstrapTenantID = uuid.MustParse("00000000-0000-0000-0000-000000000001") + var DefaultStalenessThresholds = []StalenessThreshold + var ValidDocTypes = map[string]struct + var ValidSelfServicePolicies = map[string]struct + var ValidStalenessModes = map[string]struct + var ValidTenantTypes = map[string]struct + var ValidTenantUserRoles = map[string]struct + func BuildPath(category string, subcategory *string, slug string) string + func InferDocType(category string, subcategory *string, slug string) string + func IsValidSelfServicePolicy(p string) bool + func IsValidTenantType(t string) bool + func ParsePath(path string) (category string, subcategory *string, slug string) + func ValidateDocumentPath(category, slug string, subcategory *string) error + type APIKey struct + CreatedAt time.Time + ExpiresAt *time.Time + ID uuid.UUID + KeyHash string + Label string + LastUsedAt *time.Time + Prefix string + RevokedAt *time.Time + SubjectID *string + Tenant *Tenant + TenantID uuid.UUID + func (APIKey) TableName() string + type CleanupQueue struct + DetectedAt time.Time + DocAID uuid.UUID + DocBID uuid.UUID + ID uuid.UUID + MergedInto *uuid.UUID + Resolution *string + ResolutionNote *string + ResolvedAt *time.Time + Similarity float64 + TenantID uuid.UUID + func (CleanupQueue) TableName() string + type DeletionEvent struct + ArchivedAt *time.Time + DeletedAt time.Time + DocType string + DocumentPath string + ID uint64 + Reason string + TenantID uuid.UUID + func (DeletionEvent) TableName() string + type Document struct + ArchivedAt *time.Time + Category string + CreatedAt time.Time + DocType string + ID uuid.UUID + Sections []Section + Slug string + Subcategory *string + Tenant *Tenant + TenantID uuid.UUID + Title string + UpdatedAt time.Time + func (Document) TableName() string + func (d Document) Path() string + type EmbeddingMetadata struct + Dimensions int + ID uint + Model string + Provider string + UpdatedAt time.Time + func (EmbeddingMetadata) TableName() string + type ImportJob struct + Archive []byte + CreatedAt time.Time + Error string + Failed int + ID uuid.UUID + Imported int + Skipped int + Status string + TenantID uuid.UUID + Total int + UpdatedAt time.Time + func (ImportJob) TableName() string + type OverrideLog struct + APIKeyID *uuid.UUID + CreatedAt time.Time + ID uint64 + OverrideType string + Reason string + TargetID *uuid.UUID + TenantID uuid.UUID + Tool string + func (OverrideLog) TableName() string + type Section struct + Content string + CreatedAt time.Time + Document *Document + DocumentID uuid.UUID + Embedding pgvector.Vector + Heading *string + ID uuid.UUID + Ordinal int + UpdatedAt time.Time + VerifiedAt *time.Time + func (Section) TableName() string + type StalenessThreshold struct + Days int + DocType string + func (StalenessThreshold) TableName() string + type Tenant struct + CleanupScanEnabled bool + CreatedAt time.Time + DuplicateGuard bool + EffectivePolicy string + Email string + ID uuid.UUID + Name string + SelfServicePolicy *string + StalenessMode string + Type string + UpdatedAt time.Time + func (Tenant) TableName() string + func (t Tenant) EffectiveSelfServicePolicy(globalDefault string) string + type TenantDefaults struct + CleanupScanEnabled bool + DuplicateGuard bool + StalenessMode string + func BaselineTenantDefaults() TenantDefaults + type TenantUser struct + CreatedAt time.Time + Email string + ID uuid.UUID + Role string + Tenant *Tenant + TenantID uuid.UUID + func (TenantUser) TableName() string