db/types.ts

second · apps/web/src/lib/db/types.ts · typescript · Apache-2.0
database, tag:embed-classified

Shared TypeScript types for workspace, audit, and user data models.

// Source: https://github.com/Second-Inc/second | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
import type {
  LoaderColorId,
  LoaderStyleId,
  ThemeMode,
} from "@/lib/user-preferences";
import type { OnboardingStepId } from "@/lib/onboarding";
import type { AgentRuntimeId } from "@/lib/agent/runtime-registry";
import type { WorkspaceAppRuntimeSettings } from "@/lib/workspace-app-runtime-settings";

export type WorkspaceRole = "owner" | "admin" | "member";

export type ResourceVisibility = "workspace" | "teams";

export type AuditEventCategory =
  | "auth"
  | "access"
  | "members"
  | "teams"
  | "apps"
  | "reviews"
  | "integrations"
  | "source_control"
  | "agents"
  | "t

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key