Feat v0.6.3 dead code sweep (#38)
All checks were successful
All checks were successful
Co-authored-by: Jeffrey Smith <jasafpro@gmail.com> Co-committed-by: Jeffrey Smith <jasafpro@gmail.com>
This commit was merged in pull request #38.
This commit is contained in:
@@ -42,19 +42,19 @@ type Stores struct {
|
||||
ResourceGrants ResourceGrantStore
|
||||
Notifications NotificationStore
|
||||
NotifPrefs NotificationPreferenceStore
|
||||
Presence PresenceStore // v0.29.0: User online/offline status
|
||||
Health HealthStore // v0.29.0: Provider health window management
|
||||
Connections ConnectionStore // v0.38.1: Extension connection credentials
|
||||
Dependencies DependencyStore // v0.38.2: Library package dependency graph
|
||||
Packages PackageStore // v0.28.7: Unified package registry (surfaces + extensions)
|
||||
Workflows WorkflowStore // v0.26.1: Workflow definitions + stages
|
||||
ExtPermissions ExtensionPermissionStore // v0.29.0: Extension declared/granted capabilities
|
||||
ExtData ExtDataStore // v0.29.2: Extension namespaced table catalog
|
||||
Tickets TicketStore // v0.32.0: WS auth tickets (PG-backed for cross-pod)
|
||||
RateLimits RateLimitStore // v0.32.0: Distributed rate limiting
|
||||
Triggers TriggerStore // v0.2.2: Extension event/webhook triggers
|
||||
ScheduledTasks ScheduledTaskStore // v0.2.2: User-created cron tasks
|
||||
Cluster ClusterStore // v0.6.0: PG-backed cluster node registry (nil on SQLite)
|
||||
Presence PresenceStore
|
||||
Health HealthStore
|
||||
Connections ConnectionStore
|
||||
Dependencies DependencyStore
|
||||
Packages PackageStore
|
||||
Workflows WorkflowStore
|
||||
ExtPermissions ExtensionPermissionStore
|
||||
ExtData ExtDataStore
|
||||
Tickets TicketStore
|
||||
RateLimits RateLimitStore
|
||||
Triggers TriggerStore
|
||||
ScheduledTasks ScheduledTaskStore
|
||||
Cluster ClusterStore
|
||||
}
|
||||
|
||||
// TeamAvailableModel is returned by CatalogStore.ListTeamAvailable.
|
||||
@@ -85,7 +85,7 @@ type UserStore interface {
|
||||
RevokeAllRefreshTokens(ctx context.Context, userID string) error
|
||||
CleanExpiredTokens(ctx context.Context) error
|
||||
|
||||
// ── CS1 additions (v0.29.0) ──
|
||||
// ── CS1 additions ──
|
||||
|
||||
// Exists returns true if a user with the given ID exists and is active.
|
||||
Exists(ctx context.Context, userID string) (bool, error)
|
||||
@@ -94,7 +94,7 @@ type UserStore interface {
|
||||
// Excludes the calling user. Max 20 results.
|
||||
SearchActive(ctx context.Context, excludeUserID, query string) ([]UserSearchResult, error)
|
||||
|
||||
// ── CS2 additions (v0.29.0) ──
|
||||
// ── CS2 additions ──
|
||||
|
||||
// CountAll returns the total number of users.
|
||||
CountAll(ctx context.Context) (int, error)
|
||||
@@ -108,7 +108,7 @@ type UserStore interface {
|
||||
// UpdateVaultKeys re-wraps the user's vault keys (password change).
|
||||
UpdateVaultKeys(ctx context.Context, userID string, encUEK, salt, nonce []byte) error
|
||||
|
||||
// ── CS4 additions (v0.29.0) ──
|
||||
// ── CS4 additions ──
|
||||
|
||||
// ClearVaultKeys nulls out vault columns and sets vault_set = false.
|
||||
ClearVaultKeys(ctx context.Context, userID string) error
|
||||
@@ -147,7 +147,7 @@ type TeamStore interface {
|
||||
IsTeamAdmin(ctx context.Context, teamID, userID string) (bool, error)
|
||||
IsMember(ctx context.Context, teamID, userID string) (bool, error)
|
||||
|
||||
// ── CS1 additions (v0.29.0) ──
|
||||
// ── CS1 additions ──
|
||||
|
||||
// Exists returns true if a team with the given ID exists.
|
||||
Exists(ctx context.Context, teamID string) (bool, error)
|
||||
@@ -161,12 +161,12 @@ type TeamStore interface {
|
||||
// ListTeamAuditActions returns distinct audit actions for a team's members.
|
||||
ListTeamAuditActions(ctx context.Context, teamID string) ([]string, error)
|
||||
|
||||
// ── CS5b additions (v0.29.0) ──
|
||||
// ── CS5b additions ──
|
||||
|
||||
// GetFirstTeamIDForUser returns the first team_id the user belongs to, or "" if none.
|
||||
GetFirstTeamIDForUser(ctx context.Context, userID string) (string, error)
|
||||
|
||||
// ── CS6 additions (v0.29.0) ──
|
||||
// ── CS6 additions ──
|
||||
|
||||
// AddMemberReturningID inserts a team member and returns the row ID.
|
||||
AddMemberReturningID(ctx context.Context, teamID, userID, role string) (string, error)
|
||||
@@ -175,11 +175,6 @@ type TeamStore interface {
|
||||
MergeSettings(ctx context.Context, teamID, settingsJSON string) error
|
||||
}
|
||||
|
||||
// ChannelListFilter holds filter options for ChannelStore.ListFiltered.
|
||||
// ChannelListItem is returned by ListFiltered and GetForUser.
|
||||
// ArchivedChannel is a view model for the admin archived channels list.
|
||||
// MessageWithSender is returned by MessageStore.ListWithSenderInfo.
|
||||
// ChannelSearchResult is returned by MessageStore.SearchInChannel.
|
||||
// =========================================
|
||||
// AUDIT STORE
|
||||
// =========================================
|
||||
@@ -212,7 +207,7 @@ type GlobalConfigStore interface {
|
||||
Set(ctx context.Context, key string, value models.JSONMap, updatedBy string) error
|
||||
GetAll(ctx context.Context) (map[string]models.JSONMap, error)
|
||||
|
||||
// ── OIDC state (v0.29.0-cs4) ──
|
||||
// ── OIDC state ──
|
||||
|
||||
// SaveOIDCState stores a state+nonce pair for OIDC callback verification.
|
||||
SaveOIDCState(ctx context.Context, state, nonce, redirectTo string) error
|
||||
@@ -224,7 +219,7 @@ type GlobalConfigStore interface {
|
||||
// CleanupOIDCState removes stale OIDC states older than 10 minutes.
|
||||
CleanupOIDCState(ctx context.Context) error
|
||||
|
||||
// ── CS6 additions (v0.29.0) ──
|
||||
// ── CS6 additions ──
|
||||
|
||||
// GetString returns the raw value column as a string for simple settings
|
||||
// (e.g. bare JSON booleans like "true"/"false").
|
||||
@@ -232,7 +227,7 @@ type GlobalConfigStore interface {
|
||||
}
|
||||
|
||||
// =========================================
|
||||
// GROUP STORE (v0.16.0)
|
||||
// GROUP STORE
|
||||
// =========================================
|
||||
|
||||
type GroupStore interface {
|
||||
@@ -257,7 +252,7 @@ type GroupStore interface {
|
||||
}
|
||||
|
||||
// =========================================
|
||||
// RESOURCE GRANT STORE (v0.16.0)
|
||||
// RESOURCE GRANT STORE
|
||||
// =========================================
|
||||
|
||||
type ResourceGrantStore interface {
|
||||
@@ -270,7 +265,7 @@ type ResourceGrantStore interface {
|
||||
}
|
||||
|
||||
// =========================================
|
||||
// NOTIFICATION STORE (v0.20.0)
|
||||
// NOTIFICATION STORE
|
||||
// =========================================
|
||||
|
||||
type NotificationStore interface {
|
||||
@@ -284,7 +279,7 @@ type NotificationStore interface {
|
||||
}
|
||||
|
||||
// =========================================
|
||||
// NOTIFICATION PREFERENCES STORE (v0.20.0)
|
||||
// NOTIFICATION PREFERENCES STORE
|
||||
// =========================================
|
||||
|
||||
type NotificationPreferenceStore interface {
|
||||
@@ -299,12 +294,12 @@ type NotificationPreferenceStore interface {
|
||||
}
|
||||
|
||||
// =========================================
|
||||
// SESSION STORE (v0.24.3)
|
||||
// SESSION STORE
|
||||
// =========================================
|
||||
|
||||
|
||||
// =========================================
|
||||
// HEALTH STORE (v0.29.0)
|
||||
// HEALTH STORE
|
||||
// =========================================
|
||||
|
||||
// HealthStore manages provider health windows. The full interface is used
|
||||
@@ -315,7 +310,7 @@ type HealthStore interface {
|
||||
}
|
||||
|
||||
// =========================================
|
||||
// PRESENCE STORE (v0.29.0)
|
||||
// PRESENCE STORE
|
||||
// =========================================
|
||||
|
||||
// PresenceStore manages user online/offline status.
|
||||
@@ -334,7 +329,7 @@ type PresenceStore interface {
|
||||
// =========================================
|
||||
// SHARED TYPES
|
||||
// =========================================
|
||||
// CONNECTION STORE (v0.38.1)
|
||||
// CONNECTION STORE
|
||||
// =========================================
|
||||
|
||||
type ConnectionStore interface {
|
||||
@@ -367,7 +362,7 @@ type ConnectionStore interface {
|
||||
}
|
||||
|
||||
// =========================================
|
||||
// DEPENDENCY STORE (v0.38.2)
|
||||
// DEPENDENCY STORE
|
||||
// =========================================
|
||||
|
||||
type DependencyStore interface {
|
||||
|
||||
Reference in New Issue
Block a user