package testkit

import (
	"context"
	"time"

	"github.com/tidbcloud/AgentTeam/internal/store/workspace"
)

// GetWorkspaceForUser keeps older test helpers compiling while routing through
// the owning workspace store.
func (root *Store) GetWorkspaceForUser(ctx context.Context, userID string, workspaceID string) (workspace.Summary, error) {
	return root.Workspace().GetWorkspaceForUser(ctx, userID, workspaceID)
}

// CreateWorkspaceInvite keeps older test helpers compiling while routing
// through the owning workspace store.
func (root *Store) CreateWorkspaceInvite(ctx context.Context, userID string, workspaceID string, email string, tokenHash string, expiresAt time.Time) (string, error) {
	return root.Workspace().CreateWorkspaceInvite(ctx, userID, workspaceID, email, tokenHash, expiresAt)
}
