Changeset 0.29.0 (#195)
This commit is contained in:
@@ -2,6 +2,7 @@ package store
|
||||
|
||||
import (
|
||||
"context"
|
||||
"time"
|
||||
|
||||
"git.gobha.me/xcaliber/chat-switchboard/models"
|
||||
)
|
||||
@@ -44,4 +45,26 @@ type ProjectStore interface {
|
||||
|
||||
// Get KB IDs bound to a project (used for virtual injection at completion)
|
||||
GetKBIDs(ctx context.Context, projectID string) ([]string, error)
|
||||
|
||||
// ── CS5c additions (v0.29.0) ──
|
||||
|
||||
// AdminList returns all projects with counts and owner names (admin only).
|
||||
AdminList(ctx context.Context, includeArchived bool) ([]AdminProject, error)
|
||||
}
|
||||
|
||||
// AdminProject is returned by ProjectStore.AdminList.
|
||||
type AdminProject struct {
|
||||
ID string
|
||||
Name string
|
||||
Description string
|
||||
Scope string
|
||||
OwnerID string
|
||||
TeamID *string
|
||||
IsArchived bool
|
||||
CreatedAt time.Time
|
||||
UpdatedAt time.Time
|
||||
ChannelCount int
|
||||
KBCount int
|
||||
NoteCount int
|
||||
OwnerName string
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user