πͺ’ Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.
TypeScript analyticsautogenevaluationlangchainlarge-language-modelsllama-indexllmllm-evaluationllm-observabilityllmopsmonitoringobservabilityopen-sourceopenaiplaygroundprompt-engineeringprompt-managementself-hostedycombinator
refactor: Enable knip types checking (#16695)
Ben Bachemc75131ea8aaa
diff --git a/knip.jsonc b/knip.jsoncindex 2a0c0329f3..1cb5d48f1d 100644--- a/knip.jsonc+++ b/knip.jsonc@@ -4,11 +4,6 @@"rules": {"catalog": "off",},- "ignoreIssues": {- "web/**": ["types"],- "packages/shared/**": ["types"],- "worker/**": ["types"],- },"workspaces": {"packages/shared": {"ignoreFiles": [diff --git a/packages/shared/scripts/seeder/doctor.ts b/packages/shared/scripts/seeder/doctor.tsindex 7179b5a1d7..3b06d65e14 100644--- a/packages/shared/scripts/seeder/doctor.ts+++ b/packages/shared/scripts/seeder/doctor.ts@@ -2,7 +2,7 @@ import { prisma } from "../../src/db";import { clickhouseClient, redis } from "../../src/server";import { SeedError } from "./scenarios/types";-export type CheckStatus = "pass" | "warn" | "fail";+type CheckStatus = "pass" | "warn" | "fail";export type CheckResult = {name: string;diff --git a/packages/shared/scripts/seeder/scenarios/types.ts b/packages/shared/scripts/seeder/scenarios/types.tsindex 8538ea2a31..10d294328b 100644--- a/packages/shared/scripts/seeder/scenarios/types.ts+++ b/packages/shared/scripts/seeder/scenarios/types.ts@@ -6,7 +6,7 @@* remove fields; add new ones instead. See ../README.md.*/-export type ScenarioFlagType = "string" | "number" | "boolean";+type ScenarioFlagType = "string" | "number" | "boolean";export type ScenarioFlag = {/** kebab-case CLI flag name, e.g. "observations-per-trace" */diff --git a/packages/shared/src/features/scores/interfaces/api/v2/schemas.ts b/packages/shared/src/features/scores/interfaces/api/v2/schemas.tsindex e60c79f831..281b41b0ab 100644--- a/packages/shared/src/features/scores/interfaces/api/v2/schemas.ts+++ b/packages/shared/src/features/scores/interfaces/api/v2/schemas.ts@@ -44,5 +44,3 @@ export const APIScoreSchemaV2 = z.discriminatedUnion("dataType", [// a numeric value does not make sense for TEXT scores, so we omit the propertyScoreFoundationSchemaV2.omit({ value: true }).extend(TextData.shape),]);--export type APIScoreV2 = z.infer<typeof APIScoreSchemaV2>;diff --git a/packages/shared/src/server/queries/clickhouse-sql/event-query-builder.ts b/packages/shared/src/server/queries/clickhouse-sql/event-query-builder.tsindex c8cca91e4d..c7c75a955d 100644--- a/packages/shared/src/server/queries/clickhouse-sql/event-query-builder.ts+++ b/packages/shared/src/server/queries/clickhouse-sql/event-query-builder.ts@@ -57,7 +57,7 @@ export interface SplitQueryBuilder extends QueryWithParams {*/export type OrderByDirection = "ASC" | "DESC";export type OrderByEntry = { column: string; direction: OrderByDirection };-export type OrderByColumnsOptions = {+type OrderByColumnsOptions = {eventTableAlias?: string;/*** Prepend `<alias>.project_id, toStartOfMinute(<alias>.start_time)` so thediff --git a/packages/shared/src/server/queries/clickhouse-sql/fts.ts b/packages/shared/src/server/queries/clickhouse-sql/fts.tsindex 71691b268d..8df554f50c 100644--- a/packages/shared/src/server/queries/clickhouse-sql/fts.ts+++ b/packages/shared/src/server/queries/clickhouse-sql/fts.ts@@ -10,7 +10,7 @@ export { FTS_MATCH_OPERATOR } from "../../../interfaces/filters";type StringOperator = (typeof filterOperators)["string"][number];export type FtsStringOperator = StringOperator | FtsMatchOperator;-export type FtsAcceleratedStringOperator = "=" | FtsMatchOperator;+type FtsAcceleratedStringOperator = "=" | FtsMatchOperator;const FTS_MATCH_TOKEN_ERROR = "`matches` requires at least one search token.";const FTS_MATCH_TARGET_ERROR =diff --git a/packages/shared/src/server/queries/createGenerationsQuery.ts b/packages/shared/src/server/queries/createGenerationsQuery.tsindex da3e7e21f7..7c76581edd 100644--- a/packages/shared/src/server/queries/createGenerationsQuery.ts+++ b/packages/shared/src/server/queries/createGenerationsQuery.ts@@ -21,7 +21,7 @@ type AdditionalObservationFields = {toolCallsCount: number | null;} & ObservationPriceFields;-export type FullObservation = AdditionalObservationFields & Observation;+type FullObservation = AdditionalObservationFields & Observation;export type FullObservations = Array<FullObservation>;diff --git a/packages/shared/src/server/redis/redisErrorContext.ts b/packages/shared/src/server/redis/redisErrorContext.tsindex 65eedf172f..aa8ec051ba 100644--- a/packages/shared/src/server/redis/redisErrorContext.ts+++ b/packages/shared/src/server/redis/redisErrorContext.ts@@ -5,7 +5,7 @@* tried, on `lastNodeError`.*/-export type RedisFailureMode =+type RedisFailureMode =| "timeout"| "connection-refused"| "connection-reset"diff --git a/packages/shared/src/utils/chatml/adapters/index.ts b/packages/shared/src/utils/chatml/adapters/index.tsindex bb5f9eb673..1e45f3f9cd 100644--- a/packages/shared/src/utils/chatml/adapters/index.ts+++ b/packages/shared/src/utils/chatml/adapters/index.ts@@ -39,7 +39,7 @@ function selectAdapter(ctx: NormalizerContext): ProviderAdapter {// Export selectAdapter and individual adapters for direct useexport { selectAdapter };-export type { NormalizerContext, ProviderAdapter } from "../types";+export type { NormalizerContext } from "../types";export { langgraphAdapter } from "./langgraph";export { aisdkAdapter } from "./aisdk";export { openAIAdapter } from "./openai";diff --git a/web/src/__tests__/test-utils.ts b/web/src/__tests__/test-utils.tsindex 1c546096de..831ac8fb2d 100644--- a/web/src/__tests__/test-utils.ts+++ b/web/src/__tests__/test-utils.ts@@ -116,12 +116,12 @@ export type IngestionAPIResponse = {successes: SuccessfulIngestion[];};-export type SuccessfulIngestion = {+type SuccessfulIngestion = {id: string;status: number;};-export type ErrorIngestion = {+type ErrorIngestion = {id: string;status: number;message: string;diff --git a/web/src/components/ChatMessages/MessageSearch.tsx b/web/src/components/ChatMessages/MessageSearch.tsxindex 6c2cdbd497..20685b316e 100644--- a/web/src/components/ChatMessages/MessageSearch.tsx+++ b/web/src/components/ChatMessages/MessageSearch.tsx@@ -7,9 +7,3 @@ export {useSyncMessageSearchMessages,} from "./messageSearch/context";export { MessageSearchToolbar } from "./messageSearch/toolbar";-export type {- MessageSearchController,- MessageSearchMatch,- MessageSearchPageLabelResolver,- MessageSearchSnapshot,-} from "./messageSearch/controller";diff --git a/web/src/components/ChatMessages/messageSearch/controller.ts b/web/src/components/ChatMessages/messageSearch/controller.tsindex b30f8c6fff..8f4ffc9a53 100644--- a/web/src/components/ChatMessages/messageSearch/controller.ts+++ b/web/src/components/ChatMessages/messageSearch/controller.ts@@ -13,7 +13,7 @@ import {setActiveSearchMarkCodeMirrorRange,} from "@/src/components/editor";-export type MessageSearchMatch = {+type MessageSearchMatch = {key: string;pageId: string;messageId: string;@@ -24,7 +24,7 @@ export type MessageSearchMatch = {text: string;};-export type MessageSearchSnapshot = {+type MessageSearchSnapshot = {isOpen: boolean;openRequestCount: number;queryInput: string;diff --git a/web/src/components/MediaTag/MediaTag.tsx b/web/src/components/MediaTag/MediaTag.tsxindex a663048f18..7d6cd17da2 100644--- a/web/src/components/MediaTag/MediaTag.tsx+++ b/web/src/components/MediaTag/MediaTag.tsx@@ -29,7 +29,7 @@ import { getMappedMediaLabel } from "@/src/fns/getMappedMediaLabel";* itself never fetches, which keeps it pure and Storybook-able.*/export type MediaTagStatus = "idle" | "loading" | "ready" | "error";-export type MediaTagIntent = "default" | "attachment";+type MediaTagIntent = "default" | "attachment";export interface MediaTagProps {/**diff --git a/web/src/components/design-system/Table/columns/utils/createTableColumn.tsx b/web/src/components/design-system/Table/columns/utils/createTableColumn.tsxindex 97de57b5d0..c3f707a337 100644--- a/web/src/components/design-system/Table/columns/utils/createTableColumn.tsx+++ b/web/src/components/design-system/Table/columns/utils/createTableColumn.tsx@@ -4,7 +4,7 @@ import { type LangfuseColumnDef } from "@/src/components/table/types";type NullableTableColumnValue<TValue> = TValue | null | undefined;-export type TableColumnAccessorKey<TData, TValue> = {+type TableColumnAccessorKey<TData, TValue> = {[TKey in keyof TData]-?: [NonNullable<TData[TKey]>] extends [never]? never: NonNullable<TData[TKey]> extends TValue@@ -13,7 +13,7 @@ export type TableColumnAccessorKey<TData, TValue> = {}[keyof TData] &string;-export type TableColumnAccessor<TData, TValue> =+type TableColumnAccessor<TData, TValue> =| {accessorKey: TableColumnAccessorKey<TData, TValue>;accessorFn?: never;diff --git a/web/src/components/layouts/app-layout/hooks/useAuthGuard.ts b/web/src/components/layouts/app-layout/hooks/useAuthGuard.tsindex 17ab64b274..11883cf7ef 100644--- a/web/src/components/layouts/app-layout/hooks/useAuthGuard.ts+++ b/web/src/components/layouts/app-layout/hooks/useAuthGuard.ts@@ -9,9 +9,6 @@ import { PATH_CONSTANTS } from "../utils/pathClassification";import { getSafeRedirectPath, stripBasePath } from "@/src/utils/redirect";import type { SessionContextValue } from "next-auth/react";-/** Actions the auth guard can request */-export type AuthGuardAction = "allow" | "loading" | "redirect" | "sign-out";-/** Result of auth guard evaluation */export type AuthGuardResult =| { action: "allow" }diff --git a/web/src/components/layouts/app-layout/utils/navigationFilters.types.ts b/web/src/components/layouts/app-layout/utils/navigationFilters.types.tsindex 87d778b024..11a1fc32ea 100644--- a/web/src/components/layouts/app-layout/utils/navigationFilters.types.ts+++ b/web/src/components/layouts/app-layout/utils/navigationFilters.types.ts@@ -3,7 +3,6 @@*/import type { Session } from "next-auth";-import type { Route } from "@/src/components/layouts/routes";import type { Entitlement } from "@/src/features/entitlements/constants/entitlements";/**@@ -30,12 +29,3 @@ export type NavigationFilterContext = {/** Current router path for active state detection */currentPath: string;};--/**- * Filter function that processes a route and returns it (if visible) or null (if hidden)- * Filters are composable and should be pure functions- */-export type NavigationFilter = (- route: Route,- context: NavigationFilterContext,-) => Route | null;diff --git a/web/src/components/layouts/page-tabs.tsx b/web/src/components/layouts/page-tabs.tsxindex f42964fd67..52cad55eae 100644--- a/web/src/components/layouts/page-tabs.tsx+++ b/web/src/components/layouts/page-tabs.tsx@@ -4,7 +4,7 @@ import Link from "next/link";import { useRouter } from "next/router";import { type ParsedUrlQuery } from "querystring";-export type TabDefinition = {+type TabDefinition = {value: string;label: string;href?: string;diff --git a/web/src/components/magicui/rainbow-button.tsx b/web/src/components/magicui/rainbow-button.tsxindex f220af53c2..4b020f7a62 100644--- a/web/src/components/magicui/rainbow-button.tsx+++ b/web/src/components/magicui/rainbow-button.tsx@@ -65,4 +65,4 @@ const RainbowButton = React.forwardRef<HTMLButtonElement, RainbowButtonProps>(RainbowButton.displayName = "RainbowButton";-export { RainbowButton, type RainbowButtonProps };+export { RainbowButton };diff --git a/web/src/components/movable-resizable-panel.tsx b/web/src/components/movable-resizable-panel.tsxindex c9ad4ef9fb..4af166910a 100644--- a/web/src/components/movable-resizable-panel.tsx+++ b/web/src/components/movable-resizable-panel.tsx@@ -71,7 +71,7 @@ export type MovableResizablePanelViewportBounds = {maxBottom: number;};-export type MovableResizablePanelResizeContext = {+type MovableResizablePanelResizeContext = {bounds: MovableResizablePanelViewportBounds;constraints: MovableResizablePanelSizeConstraints;};diff --git a/web/src/components/session/sessionDetailStore.ts b/web/src/components/session/sessionDetailStore.tsindex 0347d46644..6381425193 100644--- a/web/src/components/session/sessionDetailStore.ts+++ b/web/src/components/session/sessionDetailStore.ts@@ -1,6 +1,6 @@import { createStore, type StoreApi } from "zustand/vanilla";-export type LoadedTraceIds = Record<string, true>;+type LoadedTraceIds = Record<string, true>;export interface SessionDetailStoreState {loadedTraceIds: LoadedTraceIds;diff --git a/web/src/components/table/peek.tsx b/web/src/components/table/peek.tsxindex 1f0c239ad7..c714783736 100644--- a/web/src/components/table/peek.tsx+++ b/web/src/components/table/peek.tsx@@ -32,7 +32,7 @@ type PeekViewItemType = Extract<* Options to control peek event behavior.* Ignore close events from certain clickable elements to ensure integrity of table row actions.*/-export type PeekEventControlOptions = {+type PeekEventControlOptions = {ignoredSelectors?: string[];};diff --git a/web/src/components/table/table-view-presets/hooks/useTableViewManager.ts b/web/src/components/table/table-view-presets/hooks/useTableViewManager.tsindex 9a82ae518a..11cac9f42a 100644--- a/web/src/components/table/table-view-presets/hooks/useTableViewManager.ts+++ b/web/src/components/table/table-view-presets/hooks/useTableViewManager.ts@@ -26,7 +26,7 @@ import type { FilterStateMigration } from "@/src/features/filters/lib/filter-con/** How a saved view / preset apply was initiated β the `trigger` analytics* dimension on `saved_views:applied` (LFE-10781). `system_preset_cleared` is a* v4 category-chip toggle-off (applies the cleared/default state). */-export type SavedViewApplyTrigger =+type SavedViewApplyTrigger =| "select"| "permalink"| "default"@@ -38,11 +38,6 @@ export type SavedViewApplyMeta = {viewId?: string | null;};-export type ApplyViewStateFn = (- viewData: TableViewPresetState,- meta?: SavedViewApplyMeta,-) => void;-interface TableStateUpdaters {setColumnOrder: (columnOrder: string[]) => void;setColumnVisibility: (columnVisibility: VisibilityState) => void;diff --git a/web/src/components/table/types.ts b/web/src/components/table/types.tsindex 7a507e5577..4793484a6a 100644--- a/web/src/components/table/types.ts+++ b/web/src/components/table/types.ts@@ -1,10 +1,4 @@import { type RowData, type ColumnDef } from "@tanstack/react-table";-import { type LucideIcon } from "lucide-react";--export type TableRowOptions = {- columnId: string;- options: { label: string; value: number; icon?: LucideIcon }[];-};export type DataTableCellPadding = "compact" | "comfortable" | "none";diff --git a/web/src/components/ui/calendar.tsx b/web/src/components/ui/calendar.tsxindex ad41920c2d..29c46c6b20 100644--- a/web/src/components/ui/calendar.tsx+++ b/web/src/components/ui/calendar.tsx@@ -13,7 +13,7 @@ import { DayPicker, UI, SelectionState, DayFlag } from "react-day-picker";import { cn } from "@/src/utils/tailwind";import { buttonVariants } from "@/src/components/ui/button";-export type CalendarProps = React.ComponentProps<typeof DayPicker>;+type CalendarProps = React.ComponentProps<typeof DayPicker>;function Calendar({className,diff --git a/web/src/components/ui/combobox.tsx b/web/src/components/ui/combobox.tsxindex b1fcceb21e..020fcac4bf 100644--- a/web/src/components/ui/combobox.tsx+++ b/web/src/components/ui/combobox.tsx@@ -21,9 +21,7 @@ import {} from "@/src/components/ui/popover";import { Badge } from "@/src/components/ui/badge";-export interface ComboboxOption<- T extends string | number | boolean | { id: string },-> {+interface ComboboxOption<T extends string | number | boolean | { id: string }> {value: T;label?: string;/** Rendered before the label (e.g. a brand/ownership icon). */diff --git a/web/src/components/ui/input.tsx b/web/src/components/ui/input.tsxindex 1cc950d6f3..0cafb33531 100644--- a/web/src/components/ui/input.tsx+++ b/web/src/components/ui/input.tsx@@ -3,7 +3,7 @@ import * as React from "react";import { cn } from "@/src/utils/tailwind";-export interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {+interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {allowPasswordManager?: boolean;}diff --git a/web/src/components/ui/resizable.tsx b/web/src/components/ui/resizable.tsxindex a0f6b4e116..65d9ee91a6 100644--- a/web/src/components/ui/resizable.tsx+++ b/web/src/components/ui/resizable.tsx@@ -60,5 +60,3 @@ export {usePanelRef,useDefaultLayout,};-type ImperativePanelHandle = ResizablePrimitive.PanelImperativeHandle;-export type { ImperativePanelHandle };diff --git a/web/src/components/ui/slider.tsx b/web/src/components/ui/slider.tsxindex 71e2dda0ae..58ec98ea4e 100644--- a/web/src/components/ui/slider.tsx+++ b/web/src/components/ui/slider.tsx@@ -7,7 +7,7 @@ import { Input } from "./input";import { cn } from "@/src/utils/tailwind";-export interface SliderProps extends React.ComponentPropsWithoutRef<+interface SliderProps extends React.ComponentPropsWithoutRef<typeof SliderPrimitive.Root> {showInput?: boolean;diff --git a/web/src/components/ui/splash-screen.tsx b/web/src/components/ui/splash-screen.tsxindex bfef16f582..0b9a3a4b5c 100644--- a/web/src/components/ui/splash-screen.tsx+++ b/web/src/components/ui/splash-screen.tsx@@ -19,7 +19,7 @@ export interface ActionConfig {component?: React.ReactNode;}-export interface Step {+interface Step {title: string;description?: string;badge?: React.ReactNode;diff --git a/web/src/components/ui/textarea.tsx b/web/src/components/ui/textarea.tsxindex 9c558124f7..70f8efd8eb 100644--- a/web/src/components/ui/textarea.tsx+++ b/web/src/components/ui/textarea.tsx@@ -3,7 +3,7 @@ import * as React from "react";import { cn } from "@/src/utils/tailwind";-export interface TextareaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {}+interface TextareaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {}const Textarea = React.forwardRef<HTMLTextAreaElement, TextareaProps>(({ className, ...props }, ref) => {diff --git a/web/src/components/ui/time-picker-input.tsx b/web/src/components/ui/time-picker-input.tsxindex 621fac44a6..c3ced53118 100644--- a/web/src/components/ui/time-picker-input.tsx+++ b/web/src/components/ui/time-picker-input.tsx@@ -11,7 +11,7 @@ import {import { Input } from "@/src/components/ui/input";import { cn } from "@/src/utils/tailwind";-export interface TimePickerInputProps extends React.InputHTMLAttributes<HTMLInputElement> {+interface TimePickerInputProps extends React.InputHTMLAttributes<HTMLInputElement> {picker: TimePickerType;date: Date | undefined;setDate: (date: Date | undefined) => void;diff --git a/web/src/ee/features/billing/components/useBillingInformation.tsx b/web/src/ee/features/billing/components/useBillingInformation.tsxindex 7fe5d947ba..c9400c4cf3 100644--- a/web/src/ee/features/billing/components/useBillingInformation.tsx+++ b/web/src/ee/features/billing/components/useBillingInformation.tsx@@ -7,13 +7,13 @@ import { stripeProducts } from "@/src/ee/features/billing/utils/stripeCatalogue"import { mapChbPlanCodeToStripeProductId } from "@/src/ee/features/billing/utils/chbCatalogue";import { api } from "@/src/utils/api";-export type BillingCancellationInfo = {+type BillingCancellationInfo = {isCancelled: boolean;date: Date | null;formatted: string | null;};-export type BillingScheduledSwitchInfo = {+type BillingScheduledSwitchInfo = {isScheduled: boolean;date: Date | null;formatted: string | null;diff --git a/web/src/ee/features/billing/server/chb/chbApiClient.ts b/web/src/ee/features/billing/server/chb/chbApiClient.tsindex 8408e49f5f..f61d3e26e4 100644--- a/web/src/ee/features/billing/server/chb/chbApiClient.ts+++ b/web/src/ee/features/billing/server/chb/chbApiClient.ts@@ -45,7 +45,6 @@ const ChbScheduledChangeSchema = z.object({planCode: z.string().nullish(),startDate: z.string().nullish(),});-export type ChbScheduledChange = z.infer<typeof ChbScheduledChangeSchema>;const ChbBundleSchema = z.object({id: z.string(),diff --git a/web/src/ee/features/sfdc-sync/server/index.ts b/web/src/ee/features/sfdc-sync/server/index.tsindex 9e541f2e8d..f8ba03c1f3 100644--- a/web/src/ee/features/sfdc-sync/server/index.ts+++ b/web/src/ee/features/sfdc-sync/server/index.ts@@ -5,12 +5,4 @@ export {toSfdcPlan,} from "./sfdcService";export { syncOrgPlanChangeToSfdc } from "./planChangeSync";-export type {- UpsertUserInput,- UpsertOrgInput,- SetUserRoleInput,- RemoveUserInput,- LangfuseRole,- SfdcLeadSource,- SfdcPlan,-} from "./sfdcService";+export type { SfdcLeadSource } from "./sfdcService";diff --git a/web/src/ee/features/sfdc-sync/server/sfdcService.ts b/web/src/ee/features/sfdc-sync/server/sfdcService.tsindex 401cdd823d..7fede55fa9 100644--- a/web/src/ee/features/sfdc-sync/server/sfdcService.ts+++ b/web/src/ee/features/sfdc-sync/server/sfdcService.ts@@ -54,7 +54,7 @@ import {* a NONE member must hold no org-member bridge in SFDC.*/const LangfuseRole = z.enum(["OWNER", "ADMIN", "MEMBER", "VIEWER", "NONE"]);-export type LangfuseRole = z.infer<typeof LangfuseRole>;+type LangfuseRole = z.infer<typeof LangfuseRole>;// The SFDC org-member role picklist allows only ADMIN and DEVELOPER.const LANGFUSE_TO_SFDC_ROLE = {diff --git a/web/src/ee/features/ui-customization/useUiCustomization.ts b/web/src/ee/features/ui-customization/useUiCustomization.tsindex 72ca7c88dc..89d379b363 100644--- a/web/src/ee/features/ui-customization/useUiCustomization.ts+++ b/web/src/ee/features/ui-customization/useUiCustomization.ts@@ -13,7 +13,3 @@ export const useUiCustomization = () => {if (!hasEntitlement) return null;return customization.data ?? null;};--export type UiCustomizationOption = keyof NonNullable<- ReturnType<typeof useUiCustomization>->;diff --git a/web/src/features/audit-logs/auditLog.ts b/web/src/features/audit-logs/auditLog.tsindex 97a85151a3..17654ab7a2 100644--- a/web/src/features/audit-logs/auditLog.ts+++ b/web/src/features/audit-logs/auditLog.ts@@ -4,7 +4,7 @@ import {AuditLogRecordType,} from "@langfuse/shared/src/db";-export type AuditableResource =+type AuditableResource =| "annotationQueue"| "annotationQueueItem"| "annotationQueueAssignment"diff --git a/web/src/features/automations/components/actions/WebhookActionForm.tsx b/web/src/features/automations/components/actions/WebhookActionForm.tsxindex 435fccea88..7dd8b67066 100644--- a/web/src/features/automations/components/actions/WebhookActionForm.tsx+++ b/web/src/features/automations/components/actions/WebhookActionForm.tsx@@ -60,8 +60,6 @@ export const webhookSchema = z.object({),});-export type WebhookFormValues = z.infer<typeof webhookSchema>;-interface WebhookActionFormProps {form: UseFormReturn<any>;disabled: boolean;diff --git a/web/src/features/automations/components/actions/index.ts b/web/src/features/automations/components/actions/index.tsindex ae742156f0..1ba92d637c 100644--- a/web/src/features/automations/components/actions/index.ts+++ b/web/src/features/automations/components/actions/index.ts@@ -1,2 +1 @@-export { type BaseActionHandler } from "./BaseActionHandler";export { ActionHandlerRegistry } from "./ActionHandlerRegistry";diff --git a/web/src/features/batch-actions/components/AddObservationsToDatasetDialog/types.ts b/web/src/features/batch-actions/components/AddObservationsToDatasetDialog/types.tsindex 2ef5db0fe9..c7da69d64a 100644--- a/web/src/features/batch-actions/components/AddObservationsToDatasetDialog/types.ts+++ b/web/src/features/batch-actions/components/AddObservationsToDatasetDialog/types.ts@@ -2,13 +2,7 @@ import type { RefObject } from "react";import type { DatasetFormRef } from "@/src/features/datasets/components/DatasetForm";// Re-export base types from shared-export type {- SourceField,- MappingMode,- MappingTarget,- RootMappingConfig,- AddToDatasetMapping,-} from "@langfuse/shared";+export type { SourceField, MappingMode, MappingTarget } from "@langfuse/shared";import type {SourceField,@@ -130,14 +124,6 @@ export type FinalPreviewStepProps = {onEditStep: (step: DialogStep) => void;};-export type StatusStepProps = {- projectId: string;- batchActionId: string;- dataset: { id: string; name: string };- expectedCount: number;- onClose: () => void;-};-// Dataset info for selection/creationexport type DatasetInfo = {id: string;diff --git a/web/src/features/chart-view-prototype/components/ChartViewPrototype.tsx b/web/src/features/chart-view-prototype/components/ChartViewPrototype.tsxindex ef5ccafa7f..35e6f0a0ea 100644--- a/web/src/features/chart-view-prototype/components/ChartViewPrototype.tsx+++ b/web/src/features/chart-view-prototype/components/ChartViewPrototype.tsx@@ -34,7 +34,7 @@ import {import { aggregateEvents } from "../lib/aggregate";import { MockEventsTable } from "./MockEventsTable";-export type ChartViewAffordance = "inline" | "panel";+type ChartViewAffordance = "inline" | "panel";export interface ChartViewPrototypeProps {events: PrototypeEvent[];diff --git a/web/src/features/chart-view-prototype/lib/fixtures.ts b/web/src/features/chart-view-prototype/lib/fixtures.tsindex 39e5bbb6c7..6a60d772a8 100644--- a/web/src/features/chart-view-prototype/lib/fixtures.ts+++ b/web/src/features/chart-view-prototype/lib/fixtures.ts@@ -182,5 +182,3 @@ export const SCENARIOS = {sparse: generateEvents({ seed: 3, count: 28, windowHours: 6 }),empty: [] as PrototypeEvent[],} satisfies Record<string, PrototypeEvent[]>;--export type ScenarioKey = keyof typeof SCENARIOS;diff --git a/web/src/features/column-visibility/hooks/useColumnOrder.ts b/web/src/features/column-visibility/hooks/useColumnOrder.tsindex d3b9e8560c..4c8f18ecb5 100644--- a/web/src/features/column-visibility/hooks/useColumnOrder.ts+++ b/web/src/features/column-visibility/hooks/useColumnOrder.ts@@ -28,7 +28,7 @@ const readStoredColumnOrder = (localStorageKey: string): string[] => {* Migrations are entirely opt-in (passed per-call): tables that omit them keep* the previous behavior byte-for-byte.*/-export type ColumnOrderMigration = {+type ColumnOrderMigration = {/*** localStorage key for the one-time guard flag. Should be unique per table +* migration, e.g. `experimentsColumnOrder-metadataReorder-v1-${projectId}`.diff --git a/web/src/features/dashboard/utils/dashboard-import-export.ts b/web/src/features/dashboard/utils/dashboard-import-export.tsindex 30084f31e5..a7ce0f90b6 100644--- a/web/src/features/dashboard/utils/dashboard-import-export.ts+++ b/web/src/features/dashboard/utils/dashboard-import-export.ts@@ -211,7 +211,7 @@ export function buildDashboardExport(params: {};}-export type ParsedDashboardImportPlacement =+type ParsedDashboardImportPlacement =| ({ type: "widget"; widget: WidgetImport } & PlacementPosition)| ({ type: "preset"; presetId: HomeDashboardPresetId } & PlacementPosition);diff --git a/web/src/features/datasets/components/CreateDatasetDialogContent.tsx b/web/src/features/datasets/components/CreateDatasetDialogContent.tsxindex 27dadf2b67..f9c50302e3 100644--- a/web/src/features/datasets/components/CreateDatasetDialogContent.tsx+++ b/web/src/features/datasets/components/CreateDatasetDialogContent.tsx@@ -5,7 +5,7 @@ import {} from "@/src/components/ui/dialog";import { DatasetForm } from "@/src/features/datasets/components/DatasetForm";-export type CreateDatasetTarget =+type CreateDatasetTarget =| { type: "root" }| { type: "folder"; prefix: string };diff --git a/web/src/features/datasets/server/service.ts b/web/src/features/datasets/server/service.tsindex 5c2c762eea..5d4cd373c9 100644--- a/web/src/features/datasets/server/service.ts+++ b/web/src/features/datasets/server/service.ts@@ -38,11 +38,6 @@ export const datasetRunTableMetricsSchema = z.object({filter: z.array(singleFilter),});-export type DatasetRunsTableInput = z.infer<typeof datasetRunsTableSchema>;-export type DatasetRunTableMetricsInput = z.infer<- typeof datasetRunTableMetricsSchema->;-export type DatasetRunItemsTableInput = {projectId: string;datasetId: string;diff --git a/web/src/features/datasets/store/datasetsTableStore.ts b/web/src/features/datasets/store/datasetsTableStore.tsindex 720e900fc7..da6a47ed85 100644--- a/web/src/features/datasets/store/datasetsTableStore.ts+++ b/web/src/features/datasets/store/datasetsTableStore.ts@@ -37,7 +37,7 @@ type DatasetsTableScope = {searchQuery: string | null;};-export interface DatasetsTableStoreState extends TableSelectionStoreState {+interface DatasetsTableStoreState extends TableSelectionStoreState {actions: TableSelectionStoreState["actions"] & {syncPageRows: (payload: {pageRowIds: string[];diff --git a/web/src/features/events/components/outlier-strip/lib/binning.ts b/web/src/features/events/components/outlier-strip/lib/binning.tsindex 6c30350abb..811f7376fb 100644--- a/web/src/features/events/components/outlier-strip/lib/binning.ts+++ b/web/src/features/events/components/outlier-strip/lib/binning.ts@@ -115,8 +115,8 @@ export function pickChartGranularity(params: {// ---------------------------------------------------------------------------export type OutlierStripMetricKey = "count" | "cost" | "latency";-export type OutlierStripLatencyAgg = "p95" | "p50";-export type OutlierStripCostAgg = "sum";+type OutlierStripLatencyAgg = "p95" | "p50";+type OutlierStripCostAgg = "sum";export type OutlierStripAggKey =| "count"| OutlierStripLatencyAggdiff --git a/web/src/features/events/lib/eventsToTraceAdapter.ts b/web/src/features/events/lib/eventsToTraceAdapter.tsindex 42b9f832f9..355419a930 100644--- a/web/src/features/events/lib/eventsToTraceAdapter.ts+++ b/web/src/features/events/lib/eventsToTraceAdapter.ts@@ -6,7 +6,7 @@ import {type WithStringifiedMetadata,} from "@/src/utils/clientSideDomainTypes";-export type SyntheticTrace = WithStringifiedMetadata<+type SyntheticTrace = WithStringifiedMetadata<Omit<TraceDomain, "input" | "output">> & {input: string | null;diff --git a/web/src/features/experiments/components/table/types.ts b/web/src/features/experiments/components/table/types.tsindex 30a14e39a1..a354ebc4dc 100644--- a/web/src/features/experiments/components/table/types.ts+++ b/web/src/features/experiments/components/table/types.ts@@ -173,7 +173,7 @@ export type ExperimentItemsTableRow = {/*** Available experiment option for filter targeting.*/-export type ExperimentOption = {+type ExperimentOption = {id: string;name: string;};diff --git a/web/src/features/experiments/store/experimentsTableStore.ts b/web/src/features/experiments/store/experimentsTableStore.tsindex a420bc75a9..f1171e2dc2 100644--- a/web/src/features/experiments/store/experimentsTableStore.ts+++ b/web/src/features/experiments/store/experimentsTableStore.ts@@ -5,7 +5,7 @@ import { type TableSelectionStoreState } from "@/src/components/table/table-seletype RowSelectionUpdater = Updater<RowSelectionState>;type BooleanUpdater = Updater<boolean>;-export interface ExperimentsTableStoreState extends TableSelectionStoreState {+interface ExperimentsTableStoreState extends TableSelectionStoreState {actions: TableSelectionStoreState["actions"] & {syncPageRows: (payload: {pageRowIds: string[];diff --git a/web/src/features/experiments/types/charts.ts b/web/src/features/experiments/types/charts.tsindex 7d954a6c26..6d146338a5 100644--- a/web/src/features/experiments/types/charts.ts+++ b/web/src/features/experiments/types/charts.ts@@ -1,14 +1,3 @@-import type { WidgetConfig } from "@/src/features/widgets/hooks/useWidgetQuery";--// Extended widget config for experiment charts with query-building fields-// Omit conflicting properties from WidgetConfig that have readonly/mutable mismatches-export interface ExperimentWidgetConfig extends WidgetConfig {- orderBy: readonly { field: string; direction: "asc" | "desc" }[];- timeDimension: null;- entityDimension: { field: string };- schedulerId?: string;-}-// Metric option for the per-slot dropdownexport type MetricOption = {id: string;diff --git a/web/src/features/experiments/types/stepProps.ts b/web/src/features/experiments/types/stepProps.tsindex c1bd33fadd..cff276f02a 100644--- a/web/src/features/experiments/types/stepProps.ts+++ b/web/src/features/experiments/types/stepProps.ts@@ -33,21 +33,21 @@ interface EvaluatorData {}// Shared state types-export type FormState = {+type FormState = {form: UseFormReturn<CreateExperiment>;};-export type NavigationState = {+type NavigationState = {setActiveStep: (step: string) => void;};-export type PermissionsState = {+type PermissionsState = {hasEvalReadAccess: boolean;hasEvalWriteAccess: boolean;};// Domain-specific grouped state-export type PromptModelState = {+type PromptModelState = {selectedPromptName: string;setSelectedPromptName: (name: string) => void;selectedPromptVersion: number | null;@@ -58,7 +58,7 @@ export type PromptModelState = {selectedPromptToolConfig: PromptToolConfig;};-export type ModelState = {+type ModelState = {modelParams: UIModelParams;updateModelParamValue: ModelParamsContext["updateModelParamValue"];setModelParamEnabled: ModelParamsContext["setModelParamEnabled"];@@ -67,14 +67,14 @@ export type ModelState = {availableProviders: string[];};-export type StructuredOutputState = {+type StructuredOutputState = {structuredOutputEnabled: boolean;setStructuredOutputEnabled: (enabled: boolean) => void;selectedSchemaName: string | null;setSelectedSchemaName: (name: string | null) => void;};-export type DatasetState = {+type DatasetState = {datasets: Array<{ id: string; name: string }> | undefined;selectedDatasetId: string | null;selectedDataset: { id: string; name: string } | undefined;@@ -112,7 +112,7 @@ type V2EvaluatorState = {isUpdating: boolean;};-export type EvaluatorState = LegacyEvaluatorState | V2EvaluatorState;+type EvaluatorState = LegacyEvaluatorState | V2EvaluatorState;// Step-specific prop interfacesexport interface PromptModelStepProps {diff --git a/web/src/features/filters/hooks/useSidebarFilterState.tsx b/web/src/features/filters/hooks/useSidebarFilterState.tsxindex 93ece9b355..ed4e4b58dc 100644--- a/web/src/features/filters/hooks/useSidebarFilterState.tsx+++ b/web/src/features/filters/hooks/useSidebarFilterState.tsx@@ -147,7 +147,7 @@ function computeNumericRange(return [minValue, maxValue];}-export interface BaseUIFilter {+interface BaseUIFilter {column: string;label: string;tooltip?: string;@@ -259,7 +259,7 @@ export type {StringKeyValueFilterEntry,} from "../lib/sidebar-filter-actions";-export interface KeyValueUIFilter extends BaseUIFilter {+interface KeyValueUIFilter extends BaseUIFilter {type: "keyValue";value: KeyValueFilterEntry[]; // Array of active filter rowskeyOptions?: string[];@@ -268,7 +268,7 @@ export interface KeyValueUIFilter extends BaseUIFilter {onChange: (filters: KeyValueFilterEntry[]) => void;}-export interface NumericKeyValueUIFilter extends BaseUIFilter {+interface NumericKeyValueUIFilter extends BaseUIFilter {type: "numericKeyValue";value: NumericKeyValueFilterEntry[]; // Array of active filter rowskeyOptions?: string[];@@ -276,7 +276,7 @@ export interface NumericKeyValueUIFilter extends BaseUIFilter {onChange: (filters: NumericKeyValueFilterEntry[]) => void;}-export interface BooleanKeyValueUIFilter extends BaseUIFilter {+interface BooleanKeyValueUIFilter extends BaseUIFilter {type: "booleanKeyValue";value: BooleanKeyValueFilterEntry[]; // Array of active filter rowskeyOptions?: string[];diff --git a/web/src/features/filters/lib/sidebar-filter-actions.ts b/web/src/features/filters/lib/sidebar-filter-actions.tsindex 86d8110c07..ebe0be3357 100644--- a/web/src/features/filters/lib/sidebar-filter-actions.ts+++ b/web/src/features/filters/lib/sidebar-filter-actions.ts@@ -16,7 +16,7 @@ export type TextFilterOperator = "contains" | "does not contain";/** Options as the sidebar hook receives them (per-column value lists, or* nested keyβvalues records for keyed facets). */-export type SidebarFilterOptions = Record<+type SidebarFilterOptions = Record<string,(string | SingleValueOption)[] | Record<string, string[]> | undefined>;diff --git a/web/src/features/folders/hooks/useFolderPagination.ts b/web/src/features/folders/hooks/useFolderPagination.tsindex 3b7ef4ef7c..5a8c90854e 100644--- a/web/src/features/folders/hooks/useFolderPagination.ts+++ b/web/src/features/folders/hooks/useFolderPagination.ts@@ -88,5 +88,3 @@ export const useFolderPagination = () => {resetPaginationAndFolder,};};--export type UseFolderPaginationReturn = ReturnType<typeof useFolderPagination>;diff --git a/web/src/features/in-app-agent/components/InAppAgentWindow.tsx b/web/src/features/in-app-agent/components/InAppAgentWindow.tsxindex 8a1ca4a81b..3ca7e62175 100644--- a/web/src/features/in-app-agent/components/InAppAgentWindow.tsx+++ b/web/src/features/in-app-agent/components/InAppAgentWindow.tsx@@ -839,7 +839,7 @@ type InAppAgentWindowCloseButtonProps =onClose: () => void;};-export type InAppAgentWindowNotice = {+type InAppAgentWindowNotice = {text: string;tone: "info" | "warning";};diff --git a/web/src/features/in-app-agent/components/InAppAiAgentProvider.tsx b/web/src/features/in-app-agent/components/InAppAiAgentProvider.tsxindex a0415eb718..6a2cd1ecb0 100644--- a/web/src/features/in-app-agent/components/InAppAiAgentProvider.tsx+++ b/web/src/features/in-app-agent/components/InAppAiAgentProvider.tsx@@ -159,7 +159,7 @@ export type InAppAgentPendingToolApproval = {runId?: string;};-export type InAppAiAgentConversation = {+type InAppAiAgentConversation = {id: string;title: string | null;updatedAt: Date;diff --git a/web/src/features/in-app-agent/lib/backgroundExecutionSession.ts b/web/src/features/in-app-agent/lib/backgroundExecutionSession.tsindex 1bd46654c8..d4ee98db7c 100644--- a/web/src/features/in-app-agent/lib/backgroundExecutionSession.ts+++ b/web/src/features/in-app-agent/lib/backgroundExecutionSession.ts@@ -43,7 +43,7 @@ export type BackgroundExecutionApprovalView = {status: "pending" | "submitting";};-export type BackgroundExecutionAttachment =+type BackgroundExecutionAttachment =| { status: "detached" }| { status: "attaching" }| { status: "attached" }@@ -596,7 +596,7 @@ function getBackgroundRunFailureMessage(errorCode: string | null): string {);}-export type BackgroundRunNoticeTone = "info" | "warning";+type BackgroundRunNoticeTone = "info" | "warning";export type BackgroundRunNotice = {text: string;diff --git a/web/src/features/in-app-agent/lib/inAppAgentActivity.ts b/web/src/features/in-app-agent/lib/inAppAgentActivity.tsindex 190d769d64..bc85cd871a 100644--- a/web/src/features/in-app-agent/lib/inAppAgentActivity.ts+++ b/web/src/features/in-app-agent/lib/inAppAgentActivity.ts@@ -37,7 +37,7 @@ export type InAppAgentActivityAcknowledgement = {activityKey: string;};-export type InAppAgentActivityEntry = {+type InAppAgentActivityEntry = {activityKey: string;runId: string;title: string | null;diff --git a/web/src/features/llm-api-key/types.ts b/web/src/features/llm-api-key/types.tsindex 7a0caca40e..fcd9764f95 100644--- a/web/src/features/llm-api-key/types.ts+++ b/web/src/features/llm-api-key/types.ts@@ -57,5 +57,3 @@ export const SafeLlmApiKeySchema = LLMApiKeySchema.extend({extraHeaders: z.undefined(),authMethod: BedrockAuthMethodSchema.optional(),});--export type SafeLlmApiKey = z.infer<typeof SafeLlmApiKeySchema>;diff --git a/web/src/features/mcp/server/bootstrap.ts b/web/src/features/mcp/server/bootstrap.tsindex bdd6d2cb1f..3c9998d0bb 100644--- a/web/src/features/mcp/server/bootstrap.ts+++ b/web/src/features/mcp/server/bootstrap.ts@@ -47,7 +47,7 @@ const MCP_FEATURES = [v4MigrationFeature,] as const satisfies readonly McpFeatureModule[];-export type McpFeature = (typeof MCP_FEATURES)[number];+type McpFeature = (typeof MCP_FEATURES)[number];export type McpToolName = McpFeature["tools"][number]["definition"]["name"];/**diff --git a/web/src/features/mcp/server/registry.ts b/web/src/features/mcp/server/registry.tsindex 16669b2967..553adcf00b 100644--- a/web/src/features/mcp/server/registry.ts+++ b/web/src/features/mcp/server/registry.ts@@ -19,7 +19,7 @@ import { logger } from "@langfuse/shared/src/server";** Combines tool definition (for MCP protocol) with handler (for execution)*/-export interface RegisteredTool<TName extends string = string> {+interface RegisteredTool<TName extends string = string> {/** Tool definition for MCP protocol */definition: ToolDefinition<TName>;diff --git a/web/src/features/mcp/types.ts b/web/src/features/mcp/types.tsindex 9694069d49..1d07b08267 100644--- a/web/src/features/mcp/types.ts+++ b/web/src/features/mcp/types.ts@@ -66,7 +66,7 @@ export interface ServerContext {}/** In-app agent MCP access is read-only unless a prior approval mints a mutating-tool allowlist. */-export type InAppAgentContext =+type InAppAgentContext =| {permissions: "read";}diff --git a/web/src/features/media/validation.ts b/web/src/features/media/validation.tsindex 66e6851687..88f3ced8dd 100644--- a/web/src/features/media/validation.ts+++ b/web/src/features/media/validation.ts@@ -86,8 +86,6 @@ export const GetMediaQuerySchema = z.object({mediaId: z.string(),});-export type GetMediaQuery = z.infer<typeof GetMediaQuerySchema>;-export const GetMediaResponseSchema = z.object({mediaId: z.string(),contentType: z.string(),diff --git a/web/src/features/models/validation.ts b/web/src/features/models/validation.tsindex fd4afc4ded..3676488571 100644--- a/web/src/features/models/validation.ts+++ b/web/src/features/models/validation.ts@@ -33,8 +33,6 @@ const PricingTierSchema = z.object({prices: PriceMapSchema,});-export type PricingTier = z.infer<typeof PricingTierSchema>;-/*** A usage type row is identified by its opaque `key`, never by its name: the* name is the value being edited, and deriving row identity from it is what@@ -111,7 +109,6 @@ export const UpsertModelSchema = zpath: ["pricingTiers"],},);-export type UpsertModel = z.infer<typeof UpsertModelSchema>;export const FormUpsertModelSchema = z.object({diff --git a/web/src/features/natural-language-filters/server/validation.ts b/web/src/features/natural-language-filters/server/validation.tsindex 87b1b51f9a..76855446fd 100644--- a/web/src/features/natural-language-filters/server/validation.ts+++ b/web/src/features/natural-language-filters/server/validation.ts@@ -4,7 +4,3 @@ export const CreateNaturalLanguageFilterCompletion = z.object({projectId: z.string(),prompt: z.string().min(1).max(2048),});--export type CreateNaturalLanguageFilterCompletionInput = z.infer<- typeof CreateNaturalLanguageFilterCompletion->;diff --git a/web/src/features/navigate-detail-pages/context.tsx b/web/src/features/navigate-detail-pages/context.tsxindex 73e091e546..f3e8496c0e 100644--- a/web/src/features/navigate-detail-pages/context.tsx+++ b/web/src/features/navigate-detail-pages/context.tsx@@ -15,9 +15,6 @@ export const detailPageListKeys = {evalTemplates: "eval-templates",} as const;-export type DetailPageListKey =- (typeof detailPageListKeys)[keyof typeof detailPageListKeys];-export type ListEntry<TParams extends Partial<Record<string, string>> = Record<string, string>,> = {diff --git a/web/src/features/navigation/utils/dashboard-tabs.ts b/web/src/features/navigation/utils/dashboard-tabs.tsindex 37e3d1fb1b..c2431a1491 100644--- a/web/src/features/navigation/utils/dashboard-tabs.ts+++ b/web/src/features/navigation/utils/dashboard-tabs.ts@@ -3,8 +3,6 @@ export const DASHBOARD_TABS = {WIDGETS: "widgets",} as const;-export type DashboardTab = (typeof DASHBOARD_TABS)[keyof typeof DASHBOARD_TABS];-export const getDashboardTabs = (projectId: string) => [{value: DASHBOARD_TABS.DASHBOARDS,diff --git a/web/src/features/navigation/utils/dataset-run-compare-tabs.ts b/web/src/features/navigation/utils/dataset-run-compare-tabs.tsindex 565a166800..0fc2c6e9b9 100644--- a/web/src/features/navigation/utils/dataset-run-compare-tabs.ts+++ b/web/src/features/navigation/utils/dataset-run-compare-tabs.ts@@ -5,9 +5,6 @@ export const DATASET_RUN_COMPARE_TABS = {CHARTS: "charts",} as const;-export type DatasetRunCompareTab =- (typeof DATASET_RUN_COMPARE_TABS)[keyof typeof DATASET_RUN_COMPARE_TABS];-export const getDatasetRunCompareTabs = (projectId: string,datasetId: string,diff --git a/web/src/features/navigation/utils/dataset-tabs.ts b/web/src/features/navigation/utils/dataset-tabs.tsindex b0995ac2e8..b56dd485a9 100644--- a/web/src/features/navigation/utils/dataset-tabs.ts+++ b/web/src/features/navigation/utils/dataset-tabs.ts@@ -3,8 +3,6 @@ export const DATASET_TABS = {EXPERIMENTS: "experiments",} as const;-export type DatasetTab = (typeof DATASET_TABS)[keyof typeof DATASET_TABS];-export const getDatasetTabs = (projectId: string, datasetId: string) => {return [{diff --git a/web/src/features/navigation/utils/evals-tabs.ts b/web/src/features/navigation/utils/evals-tabs.tsindex c571bd80f0..98aa16224e 100644--- a/web/src/features/navigation/utils/evals-tabs.ts+++ b/web/src/features/navigation/utils/evals-tabs.ts@@ -3,8 +3,6 @@ export const EVALS_TABS = {TEMPLATES: "templates",} as const;-export type EvalsTab = (typeof EVALS_TABS)[keyof typeof EVALS_TABS];-export const getEvalsTabs = (projectId: string) => [{value: EVALS_TABS.CONFIGS,diff --git a/web/src/features/navigation/utils/experiment-run-tabs.ts b/web/src/features/navigation/utils/experiment-run-tabs.tsindex 595a0b7dcc..a0fa5aed5b 100644--- a/web/src/features/navigation/utils/experiment-run-tabs.ts+++ b/web/src/features/navigation/utils/experiment-run-tabs.ts@@ -3,9 +3,6 @@ export const EXPERIMENT_RUN_TABS = {ANALYTICS: "analytics",} as const;-export type ExperimentRunTab =- (typeof EXPERIMENT_RUN_TABS)[keyof typeof EXPERIMENT_RUN_TABS];-export const getExperimentRunTabs = (projectId: string,onResultsClick?: () => void,diff --git a/web/src/features/navigation/utils/prompt-tabs.ts b/web/src/features/navigation/utils/prompt-tabs.tsindex 6e3fba0cda..9d147436a6 100644--- a/web/src/features/navigation/utils/prompt-tabs.ts+++ b/web/src/features/navigation/utils/prompt-tabs.ts@@ -3,8 +3,6 @@ export const PROMPT_TABS = {METRICS: "metrics",} as const;-export type PromptTab = (typeof PROMPT_TABS)[keyof typeof PROMPT_TABS];-export const getPromptTabs = (projectId: string, promptName: string) => [{value: PROMPT_TABS.VERSIONS,diff --git a/web/src/features/navigation/utils/scores-tabs.ts b/web/src/features/navigation/utils/scores-tabs.tsindex 2368ee22a6..affbce9337 100644--- a/web/src/features/navigation/utils/scores-tabs.ts+++ b/web/src/features/navigation/utils/scores-tabs.ts@@ -3,8 +3,6 @@ export const SCORES_TABS = {ANALYTICS: "analytics",} as const;-export type ScoresTab = (typeof SCORES_TABS)[keyof typeof SCORES_TABS];-export const getScoresTabs = (projectId: string) => [{value: SCORES_TABS.SCORES,diff --git a/web/src/features/navigation/utils/tracing-tabs.ts b/web/src/features/navigation/utils/tracing-tabs.tsindex db1c30598a..486fc66268 100644--- a/web/src/features/navigation/utils/tracing-tabs.ts+++ b/web/src/features/navigation/utils/tracing-tabs.ts@@ -3,8 +3,6 @@ export const TRACING_TABS = {OBSERVATIONS: "observations",} as const;-export type TracingTab = (typeof TRACING_TABS)[keyof typeof TRACING_TABS];-export const getTracingTabs = (projectId: string) => [{value: TRACING_TABS.TRACES,diff --git a/web/src/features/playground/server/validateChatCompletionBody.ts b/web/src/features/playground/server/validateChatCompletionBody.tsindex 16e72e11da..127cad90f5 100644--- a/web/src/features/playground/server/validateChatCompletionBody.ts+++ b/web/src/features/playground/server/validateChatCompletionBody.ts@@ -30,7 +30,3 @@ const ChatCompletionBodySchema = z.object({export const validateChatCompletionBody = (input: unknown) => {return ChatCompletionBodySchema.parse(input);};--export type ValidatedChatCompletionBody = z.infer<- typeof ChatCompletionBodySchema->;diff --git a/web/src/features/projects/components/TransferProjectDialogContent.tsx b/web/src/features/projects/components/TransferProjectDialogContent.tsxindex a5ed0a6847..d0f2f4c76e 100644--- a/web/src/features/projects/components/TransferProjectDialogContent.tsx+++ b/web/src/features/projects/components/TransferProjectDialogContent.tsx@@ -29,7 +29,7 @@ import { TriangleAlert } from "lucide-react";import { useForm } from "react-hook-form";import * as z from "zod";-export type TransferProjectDialogOrganization = {+type TransferProjectDialogOrganization = {id: string;name: string;};diff --git a/web/src/features/public-api/types/evaluation/publicEvalsContract.ts b/web/src/features/public-api/types/evaluation/publicEvalsContract.tsindex dd90d23a70..7cdd3b68c1 100644--- a/web/src/features/public-api/types/evaluation/publicEvalsContract.ts+++ b/web/src/features/public-api/types/evaluation/publicEvalsContract.ts@@ -315,46 +315,15 @@ export const StableEvaluationRuleFilter = createTargetFilterSchema(STABLE_EVALUATION_RULE_FILTER_COLUMNS,);-export type PublicEvaluatorModelConfigType = z.infer<- typeof _PublicEvaluatorModelConfig->;export type PublicEvaluatorOutputDefinitionType = z.infer<typeof PublicEvaluatorOutputDefinition>;-export type PublicEvaluatorTypeType = z.infer<typeof PublicEvaluatorType>;-export type PublicEvaluationRuleTargetType = z.infer<- typeof PublicEvaluationRuleTarget->;-export type PublicEvaluationRuleLegacyTargetType = z.infer<- typeof PublicEvaluationRuleLegacyTarget->;-export type PublicEvaluationRuleReadTargetType = z.infer<- typeof _PublicEvaluationRuleReadTarget->;-export type PublicEvaluationRuleStatusType = z.infer<- typeof _PublicEvaluationRuleStatus->;-export type PublicEvaluationRuleEvaluatorReferenceType = z.infer<- typeof PublicEvaluationRuleEvaluatorReference->;-export type PublicEvaluationRuleEvaluatorType = z.infer<- typeof _PublicEvaluationRuleEvaluator->;export type PromptVariableMappingInputType = z.infer<typeof PromptVariableMappingInput>;export type PromptVariableMappingReadType = z.infer<typeof PromptVariableMappingRead>;-export type ObservationPromptVariableMappingInputType = z.infer<- typeof ObservationPromptVariableMappingInput->;export type LegacyPromptVariableMappingType = z.infer<typeof LegacyPromptVariableMapping>;-export type PublicEvaluationRuleFilterType = z.infer<- typeof _PublicEvaluationRuleFilter->;-export type PublicCodeEvaluatorSourceCodeLanguageType = z.infer<- typeof PublicCodeEvaluatorSourceCodeLanguage->;diff --git a/web/src/features/public-api/types/observations.ts b/web/src/features/public-api/types/observations.tsindex 68f611f54b..95f6f5fd17 100644--- a/web/src/features/public-api/types/observations.ts+++ b/web/src/features/public-api/types/observations.ts@@ -12,7 +12,6 @@ import {publicApiPaginationZod,singleFilter,InvalidRequestError,- type ObservationFieldGroupPublicApi,} from "@langfuse/shared";import {reduceUsageOrCostDetails,@@ -23,8 +22,6 @@ import { z } from "zod";import { useEventsTableSchema } from "@langfuse/shared/query";// Re-export for convenience-export { type ObservationFieldGroupPublicApi };-/*** Objects*/diff --git a/web/src/features/public-api/types/scores.ts b/web/src/features/public-api/types/scores.tsindex d0bbcf3af2..dc97375add 100644--- a/web/src/features/public-api/types/scores.ts+++ b/web/src/features/public-api/types/scores.ts@@ -2,4 +2,3 @@ export {EncodedScoresCursorV3,encodeCursorV3,} from "@langfuse/shared/src/server";-export type { ScoresCursorV3Type } from "@langfuse/shared/src/server";diff --git a/web/src/features/public-api/types/unstable-public-evals-contract.ts b/web/src/features/public-api/types/unstable-public-evals-contract.tsindex 09fdab098b..f2ffaaa6be 100644--- a/web/src/features/public-api/types/unstable-public-evals-contract.ts+++ b/web/src/features/public-api/types/unstable-public-evals-contract.ts@@ -17,10 +17,6 @@ import {} from "@langfuse/shared";import { z } from "zod";export { StructuredPublicApiErrorResponse } from "./structuredPublicApiErrorSchema";-import type {- StructuredPublicApiErrorCodeType,- StructuredPublicApiErrorDetailsType,-} from "./structuredPublicApiErrorSchema";const PUBLIC_EVALUATOR_TYPES = ["llm_as_judge", "code"] as const;export const [PUBLIC_EVALUATOR_TYPE_LLM_AS_JUDGE, PUBLIC_EVALUATOR_TYPE_CODE] =@@ -303,20 +299,12 @@ export type PromptVariableMappingInputType = z.infer<export type PromptVariableMappingReadType = z.infer<typeof PromptVariableMappingRead>;-export type ObservationPromptVariableMappingInputType = z.infer<- typeof ObservationPromptVariableMappingInput->;export type LegacyPromptVariableMappingType = z.infer<typeof LegacyPromptVariableMapping>;export type PublicEvaluationRuleFilterType = z.infer<typeof PublicEvaluationRuleFilter>;-export type {- StructuredPublicApiErrorCodeType,- StructuredPublicApiErrorDetailsType,-};-export const UnstablePublicApiPaginationQuery = z.object({page: z.preprocess((x) => (x === "" ? undefined : x),diff --git a/web/src/features/rbac/components/MembershipInvitesPage.tsx b/web/src/features/rbac/components/MembershipInvitesPage.tsxindex 6648c0c7c6..bf0c81184e 100644--- a/web/src/features/rbac/components/MembershipInvitesPage.tsx+++ b/web/src/features/rbac/components/MembershipInvitesPage.tsx@@ -6,13 +6,12 @@ import { api } from "@/src/utils/api";import { safeExtract } from "@/src/utils/map-utils";import type { RouterOutput } from "@/src/utils/types";import { Trash } from "lucide-react";-import { type Organization, type Role } from "@langfuse/shared";+import { type Role } from "@langfuse/shared";import { useHasProjectAccess } from "@/src/features/rbac/utils/checkProjectAccess";import Header from "@/src/components/layouts/header";import useSessionStorage from "@/src/components/useSessionStorage";import { createUserTableColumn } from "@/src/components/design-system/Table/columns/createUserTableColumn";-export type tmp = Organization;export type InvitesTableRow = {email: string;createdAt: Date;diff --git a/web/src/features/score-analytics/components/ScoreAnalyticsProvider.tsx b/web/src/features/score-analytics/components/ScoreAnalyticsProvider.tsxindex ab54740995..c8d5b8ba3c 100644--- a/web/src/features/score-analytics/components/ScoreAnalyticsProvider.tsx+++ b/web/src/features/score-analytics/components/ScoreAnalyticsProvider.tsx@@ -13,27 +13,17 @@ import {import { api } from "@/src/utils/api";// Re-export types for convenience-export type {- ScoreAnalyticsQueryParams,- ScoreAnalyticsData,- ParsedScore,- DataType,- ObjectType,- ScoreStatistics,- ComparisonStatistics,- Distribution,- TimeSeries,-} from "../hooks/useScoreAnalyticsQuery";+export type { DataType } from "../hooks/useScoreAnalyticsQuery";// ============================================================================// Color Schemes// ============================================================================-export interface SingleScoreColors {+interface SingleScoreColors {score: string;}-export interface TwoScoreColors {+interface TwoScoreColors {score1: string;score2: string;}@@ -56,7 +46,7 @@ function getScoreColors(mode: "single" | "two" | undefined): ScoreColors {// Context Definition// ============================================================================-export interface EstimateData {+interface EstimateData {score1Count: number;score2Count: number;estimatedMatchedCount: number;diff --git a/web/src/features/score-analytics/hooks/useScoreAnalyticsQuery.ts b/web/src/features/score-analytics/hooks/useScoreAnalyticsQuery.tsindex 123b1f82b2..c50f0c186a 100644--- a/web/src/features/score-analytics/hooks/useScoreAnalyticsQuery.ts+++ b/web/src/features/score-analytics/hooks/useScoreAnalyticsQuery.ts@@ -19,17 +19,12 @@ import {export type DataType = "NUMERIC" | "CATEGORICAL" | "BOOLEAN";-export type ObjectType =- | "all"- | "trace"- | "session"- | "observation"- | "dataset_run";+type ObjectType = "all" | "trace" | "session" | "observation" | "dataset_run";/*** Parsed score identifier*/-export interface ParsedScore {+interface ParsedScore {name: string;dataType: DataType;source: string;@@ -58,7 +53,7 @@ export interface ScoreAnalyticsQueryParams {/*** Statistics for a single score*/-export interface ScoreStatistics {+interface ScoreStatistics {total: number;mean: number | null;std: number | null;@@ -69,7 +64,7 @@ export interface ScoreStatistics {/*** Comparison statistics between two scores*/-export interface ComparisonStatistics {+interface ComparisonStatistics {matchedCount: number;pearsonCorrelation: number | null;spearmanCorrelation: number | null;@@ -85,7 +80,7 @@ export interface ComparisonStatistics {/*** Distribution data structure*/-export interface Distribution {+interface Distribution {score1: Array<{ binIndex: number; count: number }>;score2: Array<{ binIndex: number; count: number }> | null;categories?: string[]; // For categorical/boolean@@ -118,7 +113,7 @@ export interface Distribution {/*** Time series data structure*/-export interface TimeSeries {+interface TimeSeries {numeric: {all: Array<{ timestamp: Date; [key: string]: unknown }>;matched: Array<{ timestamp: Date; [key: string]: unknown }>;@@ -136,7 +131,7 @@ export interface TimeSeries {/*** Sampling metadata for query transparency*/-export interface SamplingMetadata {+interface SamplingMetadata {isSampled: boolean;samplingMethod: "none" | "hash" | "limit";samplingRate: number; // 0-1 (e.g., 0.1 = 10% sample)@@ -159,7 +154,7 @@ export interface SamplingMetadata {/*** Complete transformed score analytics data*/-export interface ScoreAnalyticsData {+interface ScoreAnalyticsData {statistics: {score1: ScoreStatistics;score2: ScoreStatistics | null;diff --git a/web/src/features/score-analytics/lib/color-scales.ts b/web/src/features/score-analytics/lib/color-scales.tsindex 9afc4d0c33..0e59b65e22 100644--- a/web/src/features/score-analytics/lib/color-scales.ts+++ b/web/src/features/score-analytics/lib/color-scales.ts@@ -21,8 +21,6 @@ const HEATMAP_BASE_COLORS = {accent: { l: 65, c: 0.1, h: 240 }, // --accent (blue-ish, muted but visible)} as const;-export type HeatmapColorVariant = keyof typeof HEATMAP_BASE_COLORS;-/*** Get contrasting text color (black or white) for an OKLCH background color* Uses lightness threshold to determine contrastdiff --git a/web/src/features/scores-chart-view/index.ts b/web/src/features/scores-chart-view/index.tsindex ffcbca8c2b..067b4a4f69 100644--- a/web/src/features/scores-chart-view/index.ts+++ b/web/src/features/scores-chart-view/index.ts@@ -4,4 +4,3 @@export { ScoresChartView } from "@/src/features/scores-chart-view/components/ScoresChartView";export { ScoresOutlierStrip } from "@/src/features/scores-chart-view/components/ScoresOutlierStrip";export { useScoresChartViewState } from "@/src/features/scores-chart-view/hooks/useScoresChartViewState";-export type { ScoreChartViewConfig } from "@/src/features/scores-chart-view/types";diff --git a/web/src/features/scores/lib/types.ts b/web/src/features/scores/lib/types.tsindex f7e0c1703f..ed5dc35697 100644--- a/web/src/features/scores/lib/types.ts+++ b/web/src/features/scores/lib/types.ts@@ -1,23 +1,5 @@-import { type ObservationsTableRow } from "@/src/components/table/use-cases/observations";-import { type SessionTableRow } from "@/src/components/table/use-cases/sessions";-import { type TracesTableRow } from "@/src/components/table/use-cases/traces";-import { type DatasetRunRowData } from "@/src/features/datasets/components/DatasetRunsTable";-import {- type DatasetRunItemByItemRowData,- type DatasetRunItemByRunRowData,-} from "@/src/features/datasets/lib/types";-import { type PromptVersionTableRow } from "@/src/pages/project/[projectId]/prompts/metrics";import { type ScoreDataTypeType, type ScoreSourceType } from "@langfuse/shared";-export type TableRowTypesWithIndividualScoreColumns =- | ObservationsTableRow- | TracesTableRow- | DatasetRunItemByItemRowData- | DatasetRunItemByRunRowData- | DatasetRunRowData- | PromptVersionTableRow- | SessionTableRow;-export type ScoreData = {key: string;name: string;diff --git a/web/src/features/scores/types.ts b/web/src/features/scores/types.tsindex d598eed9b6..a59aab9865 100644--- a/web/src/features/scores/types.ts+++ b/web/src/features/scores/types.ts@@ -14,19 +14,9 @@ import {} from "@langfuse/shared";import { type z } from "zod";-export type HistogramBin = { binLabel: string; count: number };export type CategoryCounts = Record<string, number>;export type ChartBin = { binLabel: string } & CategoryCounts;-export type TimeseriesChartProps = {- chartData: ChartBin[];- chartLabels: string[];- title: string;- type: "numeric" | "categorical";- index?: string;- maxFractionDigits?: number;-};-export type ChartData = {chartData: ChartBin[];chartLabels: string[];@@ -44,12 +34,12 @@ export interface TimeseriesDataTransformer {toChartData(): ChartData;}-export type SessionScoreTarget = {+type SessionScoreTarget = {type: "session";sessionId: string;};-export type TraceScoreTarget = {+type TraceScoreTarget = {type: "trace";traceId: string;observationId?: string;diff --git a/web/src/features/search-bar/hooks/useEventsSearchBar.ts b/web/src/features/search-bar/hooks/useEventsSearchBar.tsindex 7f0ce4cb7a..a3a6d46184 100644--- a/web/src/features/search-bar/hooks/useEventsSearchBar.ts+++ b/web/src/features/search-bar/hooks/useEventsSearchBar.ts@@ -39,8 +39,8 @@ import {import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";/** How a search-bar commit was triggered β the `trigger` analytics dimension. */-export type SearchCommitTrigger = "enter" | "blur" | "pick";-export type SearchCommitOptions = { replaceHidden?: boolean };+type SearchCommitTrigger = "enter" | "blur" | "pick";+type SearchCommitOptions = { replaceHidden?: boolean };export type SearchCommit = (trigger?: SearchCommitTrigger,options?: SearchCommitOptions,diff --git a/web/src/features/search-bar/lib/adapter.ts b/web/src/features/search-bar/lib/adapter.tsindex 1972174f4d..5fc5606763 100644--- a/web/src/features/search-bar/lib/adapter.ts+++ b/web/src/features/search-bar/lib/adapter.ts@@ -43,7 +43,7 @@ import { quoteIfNeeded } from "./quoting";export const OR_NOT_SUPPORTED_MESSAGE ="OR is not supported yet, filters combine with AND. Use field:(a OR b) for any-of values";-export type SingleEventsFilter = FilterState[number];+type SingleEventsFilter = FilterState[number];export type AstToFilterStateResult = {filters: FilterState;diff --git a/web/src/features/search-bar/lib/ast.ts b/web/src/features/search-bar/lib/ast.tsindex c032fe7bfe..907124a1b8 100644--- a/web/src/features/search-bar/lib/ast.ts+++ b/web/src/features/search-bar/lib/ast.ts@@ -25,9 +25,9 @@ export type CompareOp =| ">="| "<=";-export type AndNode = { kind: "and"; children: ASTNode[]; parenSpan?: Span };-export type OrNode = { kind: "or"; children: ASTNode[]; parenSpan?: Span };-export type NotNode = {+type AndNode = { kind: "and"; children: ASTNode[]; parenSpan?: Span };+type OrNode = { kind: "or"; children: ASTNode[]; parenSpan?: Span };+type NotNode = {kind: "not";child: ASTNode;span?: Span;diff --git a/web/src/features/search-bar/lib/completions.ts b/web/src/features/search-bar/lib/completions.tsindex 2cc41de194..23df4f59d9 100644--- a/web/src/features/search-bar/lib/completions.ts+++ b/web/src/features/search-bar/lib/completions.ts@@ -30,12 +30,7 @@ import { quoteIfNeeded } from "./quoting";import { rankFilter } from "./rank";import type { ObservedOptions } from "./observed-options";-export type CompletionStage =- | "empty"- | "field"- | "value"- | "operator"- | "recent";+type CompletionStage = "empty" | "field" | "value" | "operator" | "recent";export type CompletionOption =| {@@ -83,7 +78,7 @@ export type CompletionOption =query: string;};-export type CompletionSection = { title: string; options: CompletionOption[] };+type CompletionSection = { title: string; options: CompletionOption[] };export type QueryPresetSection = {title: string;diff --git a/web/src/features/search-bar/lib/composer-segments.ts b/web/src/features/search-bar/lib/composer-segments.tsindex d9ab22db0e..a36d5efccc 100644--- a/web/src/features/search-bar/lib/composer-segments.ts+++ b/web/src/features/search-bar/lib/composer-segments.ts@@ -31,7 +31,7 @@ export type FilterSegment = {editable: true;};-export type PlainSegment = {+type PlainSegment = {id: string;kind: "freeText" | "operator" | "paren";from: number;@@ -40,7 +40,7 @@ export type PlainSegment = {editable: boolean;};-export type InvalidSegment = {+type InvalidSegment = {id: string;kind: "invalid";from: number;diff --git a/web/src/features/search-bar/lib/fields.ts b/web/src/features/search-bar/lib/fields.tsindex 46afd30552..9b3f647424 100644--- a/web/src/features/search-bar/lib/fields.ts+++ b/web/src/features/search-bar/lib/fields.ts@@ -21,8 +21,8 @@ import { eventsTableCols, type ColumnDefinition } from "@langfuse/shared";import type { CompareOp } from "./ast";import { quoteIfNeeded, unquote } from "./quoting";-export type FieldKind = "text" | "number" | "datetime" | "boolean";-export type SyncMode = "exactOption" | "arrayOption" | "textSearch";+type FieldKind = "text" | "number" | "datetime" | "boolean";+type SyncMode = "exactOption" | "arrayOption" | "textSearch";export type FieldDef = {/** Canonical field id; also the filter `column` sent to the API. */diff --git a/web/src/features/search-bar/lib/observed-options.ts b/web/src/features/search-bar/lib/observed-options.tsindex 3b05b80cb5..0e0f1fc4c3 100644--- a/web/src/features/search-bar/lib/observed-options.ts+++ b/web/src/features/search-bar/lib/observed-options.ts@@ -16,7 +16,7 @@ import {type StoredKeyInfo,} from "../../../fns/observedMetadata/metadataPaths";-export type ObservedValue = {+type ObservedValue = {value: string;count?: number;/** Display-only type hint (observed metadata paths: "number", "string", β¦). */diff --git a/web/src/features/search-bar/server/parseOutcomeScoring.ts b/web/src/features/search-bar/server/parseOutcomeScoring.tsindex 5d15231aa4..f989bd96c2 100644--- a/web/src/features/search-bar/server/parseOutcomeScoring.ts+++ b/web/src/features/search-bar/server/parseOutcomeScoring.ts@@ -15,7 +15,7 @@ import { logger } from "@langfuse/shared/src/server";import { getProductBaseUrl } from "@/src/utils/base-url";import type { GeneratedFilters } from "./parseFilterCompletion";-export type ParseOutcomeScoreName =+type ParseOutcomeScoreName =| "parse-empty-result"| "parse-dropped-filters"| "parse-unknown-score-names"diff --git a/web/src/features/support-chat/formConstants.ts b/web/src/features/support-chat/formConstants.tsindex 68789573ae..1bff7ff254 100644--- a/web/src/features/support-chat/formConstants.ts+++ b/web/src/features/support-chat/formConstants.ts@@ -8,7 +8,6 @@ export type MessageType = z.infer<typeof MessageTypeSchema>;/** ββ Form Sections (for your stepper/wizard) βββββββββββββββββββββββββββββββ */// eslint-disable-next-line @typescript-eslint/no-unused-vars -- Used via z.inferconst FormSectionSchema = z.enum(["intro", "form", "success"]);-export type FormSection = z.infer<typeof FormSectionSchema>;/** ββ Topics (grouped + flattened) ββββββββββββββββββββββββββββββββββββββββββ */export const TopicGroups = {@@ -30,8 +29,6 @@ export const TopicGroups = {],} as const;-export type TopicGroup = keyof typeof TopicGroups;-const ALL_TOPICS = [...TopicGroups.Operations,...TopicGroups["Product Features"],@@ -50,8 +47,6 @@ export const SeveritySchema = z.enum(["Severity 2 (Major Business Impact)","Severity 3 (Minor Business Impact or General Questions)",]);-export type Severity = z.infer<typeof SeveritySchema>;-export const SEVERITY_1 = SeveritySchema.options[0];export const SEVERITY_2 = SeveritySchema.options[1];export const SEVERITY_3 = SeveritySchema.options[2];@@ -110,8 +105,6 @@ const IntegrationTypeSchema = z.enum(["3rd Party (Dify / LangFlow / Flowise)","Other (please specify)",]);-export type IntegrationType = z.infer<typeof IntegrationTypeSchema>;-export const SupportFormSchema = z.object({messageType: MessageTypeSchema.default("Question"),severity: SeveritySchema,@@ -125,8 +118,6 @@ export const SupportFormSchema = z.object({.trim().min(1, "Please provide a description of your issue."),});-export type SupportFormValues = z.infer<typeof SupportFormSchema>;-export const MESSAGE_TYPES = MessageTypeSchema.options;export const SEVERITIES = SeveritySchema.options;export const INTEGRATION_TYPES = IntegrationTypeSchema.options;diff --git a/web/src/features/table/types.ts b/web/src/features/table/types.tsindex 1077728598..8913cc9c32 100644--- a/web/src/features/table/types.ts+++ b/web/src/features/table/types.ts@@ -25,7 +25,7 @@ type BaseTableAction = {};};-export type CreateTableAction = BaseTableAction & {+type CreateTableAction = BaseTableAction & {type: BatchActionType.Create;targetLabel: string;execute: ({diff --git a/web/src/features/trace-graph-view/layout/elkLayout.ts b/web/src/features/trace-graph-view/layout/elkLayout.tsindex a20e1b7785..b2a41b66b9 100644--- a/web/src/features/trace-graph-view/layout/elkLayout.ts+++ b/web/src/features/trace-graph-view/layout/elkLayout.ts@@ -10,7 +10,7 @@ import {} from "../types";import { measureNode } from "./measureNode";-export interface PositionedNode {+interface PositionedNode {id: string;x: number;y: number;@@ -18,7 +18,7 @@ export interface PositionedNode {height: number;}-export interface PositionedEdge {+interface PositionedEdge {id: string;source: string;target: string;diff --git a/web/src/features/traces/components/AdvancedJsonViewer/lazy/byteJsonIndex.ts b/web/src/features/traces/components/AdvancedJsonViewer/lazy/byteJsonIndex.tsindex 7d7f2c7933..bb5a3f68e9 100644--- a/web/src/features/traces/components/AdvancedJsonViewer/lazy/byteJsonIndex.ts+++ b/web/src/features/traces/components/AdvancedJsonViewer/lazy/byteJsonIndex.ts@@ -162,14 +162,14 @@ const DOUBLE_SAFE_SIG_DIGITS = 15;// WASM seam: low-level byte scanner// ============================================================================-export interface ScanResult {+interface ScanResult {/** Exclusive end byte offset of the scanned value. */end: number;/** Compact type tag (T_*). */type: number;}-export interface ScannedContainer {+interface ScannedContainer {isObject: boolean;/** Start byte offset of each child value (Uint32 => docs up to 4GB). */starts: Uint32Array;diff --git a/web/src/features/traces/components/AdvancedJsonViewer/lazy/react/rowModelStore.ts b/web/src/features/traces/components/AdvancedJsonViewer/lazy/react/rowModelStore.tsindex 47c9255a9a..1229fc477d 100644--- a/web/src/features/traces/components/AdvancedJsonViewer/lazy/react/rowModelStore.ts+++ b/web/src/features/traces/components/AdvancedJsonViewer/lazy/react/rowModelStore.ts@@ -33,9 +33,9 @@ import { reportError } from "@/src/utils/reportError";/** Rows fetched for the first paint before the virtualizer reports a range. */const INITIAL_ROW_COUNT = 200;-export type LoadStatus = "loading" | "ready" | "error";+type LoadStatus = "loading" | "ready" | "error";-export interface RowModelState {+interface RowModelState {status: LoadStatus;error: string | null;/** Mirrors the model's revision; a bump re-renders the list and its rows. */diff --git a/web/src/features/traces/components/AdvancedJsonViewer/types.ts b/web/src/features/traces/components/AdvancedJsonViewer/types.tsindex 1f43802e22..8fcf5e4758 100644--- a/web/src/features/traces/components/AdvancedJsonViewer/types.ts+++ b/web/src/features/traces/components/AdvancedJsonViewer/types.ts@@ -4,26 +4,19 @@* All TypeScript interfaces and types used throughout the component.*/-import type { RefObject } from "react";import type { CommentRange } from "./utils/commentRanges";// ============================================================================// JSON Value Types// ============================================================================-export type JSONValue =- | string- | number- | boolean- | null- | JSONObject- | JSONArray;+type JSONValue = string | number | boolean | null | JSONObject | JSONArray;-export interface JSONObject {+interface JSONObject {[key: string]: JSONValue;}-export interface JSONArray extends Array<JSONValue> {}+interface JSONArray extends Array<JSONValue> {}export type JSONType =| "string"@@ -192,120 +185,6 @@ export type PartialJSONTheme = Partial<JSONTheme>;/*** Main AdvancedJsonViewer props*/-export interface AdvancedJsonViewerProps {- /** Data to display */- data: unknown;-- /** Field name for sessionStorage persistence (e.g., "input", "output"). If null, no persistence. */- field?: string | null;-- /** Enable virtualization (default: true for >500 rows) */- virtualized?: boolean;-- /** Theme customization */- theme?: PartialJSONTheme;-- /** Initial expansion state (only used if field is null, otherwise read from storage) */- initialExpansion?: ExpansionState;-- /** Enable search functionality */- enableSearch?: boolean;-- /** Search placeholder text */- searchPlaceholder?: string;-- /** Controlled search query */- searchQuery?: string;-- /** Callback when search query changes */- onSearchQueryChange?: (query: string) => void;-- /** Controlled current match index */- currentMatchIndex?: number;-- /** Callback when current match index changes */- onCurrentMatchIndexChange?: (index: number) => void;-- /** Match counts per row (including descendants) for visual indicators */- matchCounts?: Map<string, number>;-- /** Show line numbers */- showLineNumbers?: boolean;-- /** Enable copy buttons */- enableCopy?: boolean;-- /** String wrapping mode (default: "truncate") */- stringWrapMode?: StringWrapMode;-- /** Callback when string wrap mode changes */- onStringWrapModeChange?: (mode: StringWrapMode) => void;-- /** Truncate strings longer than this (null = no truncation) - used internally for "truncate" mode */- truncateStringsAt?: number | null;-- /** Custom CSS class */- className?: string;-- /** Loading state */- isLoading?: boolean;-- /** Error state */- error?: Error | string;-- /** Ref to the scroll container (for proper scroll-to behavior) */- scrollContainerRef?: RefObject<HTMLDivElement | null>;-- commentedPaths?: Map<string, Array<{ start: number; end: number }>>;-}--/**- * Props for JsonRow component- */-export interface JsonRowProps {- /** Row data */- row: FlatJSONRow;-- /** Theme */- theme: JSONTheme;-- /** Search match for this row (if any) */- searchMatch?: SearchMatch;-- /** Whether this is the current search match */- isCurrentMatch?: boolean;-- /** Number of search matches in this row and its descendants */- matchCount?: number;-- /** Current match index within this row (1-based) */- currentMatchIndexInRow?: number;-- /** Show line number */- showLineNumber?: boolean;-- /** Line number (1-indexed) */- lineNumber?: number;-- /** Enable copy button */- enableCopy?: boolean;-- /** String wrapping mode */- stringWrapMode?: StringWrapMode;-- /** Truncate strings at this length (for "truncate" mode) */- truncateStringsAt?: number | null;-- /** Callback when expand/collapse is toggled */- onToggleExpansion?: (rowId: string) => void;-- /** Maximum number of digits for line numbers (for fixed width) */- maxLineNumberDigits?: number;-- /** Custom CSS class */- className?: string;-}-/*** Props for JsonValue component*/@@ -375,45 +254,6 @@ export interface JsonKeyProps {/*** Configuration for flattening algorithm*/-export interface FlattenConfig {- /** Root key name */- rootKey?: string;-- /** Maximum depth to flatten (null = unlimited) */- maxDepth?: number | null;-- /** Maximum number of rows (null = unlimited) */- maxRows?: number | null;-}--/**- * Configuration for row height estimation- */-export interface RowHeightConfig {- /** Base row height in pixels */- baseHeight: number;-- /** Threshold for considering a string "long" */- longStringThreshold: number;-- /** Characters per line for wrapped strings */- charsPerLine: number;-- /** String wrap mode (affects whether long strings are multi-line) */- stringWrapMode?: StringWrapMode;-}--/**- * Result of height estimation- */-export interface RowHeightEstimate {- /** Estimated height in pixels */- height: number;-- /** Whether height is dynamic (might change on render) */- isDynamic: boolean;-}-// ============================================================================// Multi-Section Support// ============================================================================@@ -421,13 +261,6 @@ export interface RowHeightEstimate {/*** Node type discriminator for multi-section trees*/-export type TreeNodeType =- | "meta"- | "section-header"- | "section-footer"- | "section-spacer"- | "json";-/*** Section definition for MultiSectionJsonViewer*/diff --git a/web/src/features/traces/components/AdvancedJsonViewer/utils/searchJson.ts b/web/src/features/traces/components/AdvancedJsonViewer/utils/searchJson.tsindex b2d8aeaf57..3f0b30488c 100644--- a/web/src/features/traces/components/AdvancedJsonViewer/utils/searchJson.ts+++ b/web/src/features/traces/components/AdvancedJsonViewer/utils/searchJson.ts@@ -84,13 +84,6 @@ export function getCurrentMatchIndexInRow(/*** Get search statistics*/-export interface SearchStats {- totalMatches: number;- matchedRows: number;- keyMatches: number;- valueMatches: number;-}-/*** Highlight text with search match positions* Returns array of segments with highlight infodiff --git a/web/src/features/traces/components/AdvancedJsonViewer/utils/treeExpansion.ts b/web/src/features/traces/components/AdvancedJsonViewer/utils/treeExpansion.tsindex d2f99ceeaa..1d27684612 100644--- a/web/src/features/traces/components/AdvancedJsonViewer/utils/treeExpansion.ts+++ b/web/src/features/traces/components/AdvancedJsonViewer/utils/treeExpansion.ts@@ -377,10 +377,3 @@ export function applyExpansionState(* @param tree - Current tree state* @returns Stats object*/-export interface ExpansionStats {- totalExpandable: number;- totalExpanded: number;- totalCollapsed: number;- visibleNodes: number;- maxVisibleDepth: number;-}diff --git a/web/src/features/traces/components/JSONTableView/index.ts b/web/src/features/traces/components/JSONTableView/index.tsindex 7e9e7eff70..fe0b3095ed 100644--- a/web/src/features/traces/components/JSONTableView/index.ts+++ b/web/src/features/traces/components/JSONTableView/index.ts@@ -18,9 +18,4 @@*/export { JSONTableView } from "./JSONTableView";-export type {- JSONTableViewProps,- JSONTableViewColumn,- JSONTableViewRowProps,- JSONTableViewHeaderProps,-} from "./json-table-view-types";+export type { JSONTableViewColumn } from "./json-table-view-types";diff --git a/web/src/features/traces/components/TraceLogView/log-view-types.ts b/web/src/features/traces/components/TraceLogView/log-view-types.tsindex 2064169008..7117795928 100644--- a/web/src/features/traces/components/TraceLogView/log-view-types.ts+++ b/web/src/features/traces/components/TraceLogView/log-view-types.ts@@ -19,13 +19,3 @@ export interface FlatLogItem {/** Whether this node is the last sibling at its level */isLastSibling: boolean;}--/**- * View mode for log view display.- */-export type LogViewMode = "chronological" | "tree-order";--/**- * Tree style for tree-order view.- */-export type LogViewTreeStyle = "flat" | "indented";diff --git a/web/src/features/traces/contexts/ViewPreferencesContext.tsx b/web/src/features/traces/contexts/ViewPreferencesContext.tsxindex 1c3608a193..a1dd5dbe6a 100644--- a/web/src/features/traces/contexts/ViewPreferencesContext.tsx+++ b/web/src/features/traces/contexts/ViewPreferencesContext.tsx@@ -30,7 +30,7 @@ export type LogViewTreeStyle = "flat" | "indented";export type JsonViewPreference = "pretty" | "json" | "json-beta";/** Context in which trace is rendered - affects feature availability */-export type TraceRenderContext = "fullscreen" | "peek" | "annotation";+type TraceRenderContext = "fullscreen" | "peek" | "annotation";interface ViewPreferencesContextValue {showDuration: boolean;diff --git a/web/src/features/traces/fns/timeline/__tests__/timelineV2.fixtures.ts b/web/src/features/traces/fns/timeline/__tests__/timelineV2.fixtures.tsindex 09da4ea405..a7867c60d9 100644--- a/web/src/features/traces/fns/timeline/__tests__/timelineV2.fixtures.ts+++ b/web/src/features/traces/fns/timeline/__tests__/timelineV2.fixtures.ts@@ -315,8 +315,6 @@ export const TIMELINE_SHAPES = {huge: () => manySpans(10_000),} satisfies Record<string, () => LayoutNode[]>;-export type TimelineShapeKey = keyof typeof TIMELINE_SHAPES;-/*** One streaming model call: a quarter of its time waiting for the first token,* the rest producing. The wide timeline splits such a bar into two shades; thisdiff --git a/web/src/features/traces/fns/timeline/layout.ts b/web/src/features/traces/fns/timeline/layout.tsindex f2565090bf..72d1bd5b8e 100644--- a/web/src/features/traces/fns/timeline/layout.ts+++ b/web/src/features/traces/fns/timeline/layout.ts@@ -62,7 +62,7 @@ export type LayoutNode = {children: LayoutNode[];};-export type TimelineRow<TNode extends LayoutNode = LayoutNode> = {+type TimelineRow<TNode extends LayoutNode = LayoutNode> = {node: TNode;depth: number;treeLines: boolean[];@@ -71,7 +71,7 @@ export type TimelineRow<TNode extends LayoutNode = LayoutNode> = {isCollapsed: boolean;};-export type LabelPlacement = "inside" | "after" | "before" | "hidden";+type LabelPlacement = "inside" | "after" | "before" | "hidden";export type PositionedNode<TNode extends LayoutNode = LayoutNode> = {/** The input node, carried through so callers keep their own richer type. */@@ -110,7 +110,7 @@ export type PositionedNode<TNode extends LayoutNode = LayoutNode> = {export type Tick = { realMs: number; x: number; label: string };-export type GapMarker = {+type GapMarker = {x: number;width: number;durationMs: number;diff --git a/web/src/features/traces/fns/timeline/timeCompression.ts b/web/src/features/traces/fns/timeline/timeCompression.tsindex e27bb3f9c9..a9276e91ee 100644--- a/web/src/features/traces/fns/timeline/timeCompression.ts+++ b/web/src/features/traces/fns/timeline/timeCompression.ts@@ -27,7 +27,7 @@ const MARKER_PADDING_MAX_MS = 500;type Interval = [start: number, end: number];-export type CompressedGap = {+type CompressedGap = {/** real ms offsets */start: number;end: number;diff --git a/web/src/features/traces/fns/timeline/viewport.ts b/web/src/features/traces/fns/timeline/viewport.tsindex ae3a98c392..32bf20c520 100644--- a/web/src/features/traces/fns/timeline/viewport.ts+++ b/web/src/features/traces/fns/timeline/viewport.ts@@ -50,7 +50,7 @@ export function presentationForRowHeight(rowHeight: number): RowPresentation {return "hairline";}-export type RowWindow = {+type RowWindow = {/** Index of the topmost visible row; fractional while panning. */start: number;/** How many rows are visible. */diff --git a/web/src/features/traces/hooks/useChatMLParser.ts b/web/src/features/traces/hooks/useChatMLParser.tsindex 8c30679da9..e0bdbcd8ac 100644--- a/web/src/features/traces/hooks/useChatMLParser.ts+++ b/web/src/features/traces/hooks/useChatMLParser.ts@@ -11,10 +11,10 @@ import {import type { ChatMlMessageSchema } from "@/src/components/schemas/ChatMlSchema";// ChatML message type from schema-export type ChatMlMessage = z.infer<typeof ChatMlMessageSchema>;+type ChatMlMessage = z.infer<typeof ChatMlMessageSchema>;// Tool definition extracted from messages-export interface ToolDefinition {+interface ToolDefinition {name: string;description?: string;parameters?: Record<string, unknown>;diff --git a/web/src/features/traces/stores/playheadStore.ts b/web/src/features/traces/stores/playheadStore.tsindex d6415b7da9..a3781899ed 100644--- a/web/src/features/traces/stores/playheadStore.ts+++ b/web/src/features/traces/stores/playheadStore.ts@@ -41,7 +41,7 @@ const END_EPSILON_SECONDS = 0.05;// span Γ the playback rate).const MIN_GLOW_WALL_SECONDS = 0.2;-export interface PlayheadState {+interface PlayheadState {/** Total trace span in seconds (0 = no timeline to play). */traceDuration: number;/** Padded activation windows for every node in the tree. */diff --git a/web/src/features/v4-migration/sdkVersionStatus.ts b/web/src/features/v4-migration/sdkVersionStatus.tsindex 922127974b..d45c850caf 100644--- a/web/src/features/v4-migration/sdkVersionStatus.ts+++ b/web/src/features/v4-migration/sdkVersionStatus.ts@@ -1,7 +1,7 @@import { type RouterOutputs } from "@/src/utils/api";import { type SdkVersionInfo } from "@/src/features/sdk-version/lib/sdkVersionCapabilities";-export type V4MigrationSdkStatus =+type V4MigrationSdkStatus =| "checking"| "error"| "no_data"diff --git a/web/src/features/v4-migration/useV4UpgradeAssistantSupport.ts b/web/src/features/v4-migration/useV4UpgradeAssistantSupport.tsindex 4bcb953318..d5a31e9fb7 100644--- a/web/src/features/v4-migration/useV4UpgradeAssistantSupport.ts+++ b/web/src/features/v4-migration/useV4UpgradeAssistantSupport.ts@@ -36,10 +36,7 @@ ${V4_CODING_AGENT_PROMPT}"""Also ask me whether I would instead like to complete the upgrade by deactivating or deleting all deprecated evaluators β if I say yes, help me do that here, confirming each one with me first.`;-export type V4UpgradeAssistantMode =- | "evals-ready"- | "sdk-first-choice"- | "outside";+type V4UpgradeAssistantMode = "evals-ready" | "sdk-first-choice" | "outside";/*** Plans how the in-app assistant participates in the v4 upgrade:diff --git a/web/src/features/version-update/index.ts b/web/src/features/version-update/index.tsindex a4a716fc66..275260baf6 100644--- a/web/src/features/version-update/index.ts+++ b/web/src/features/version-update/index.ts@@ -1,2 +1 @@export { VersionUpdateBanner } from "./VersionUpdateBanner";-export { type VersionUpdateStore } from "./versionUpdateStore";diff --git a/web/src/features/widgets/chart-library/chart-props.ts b/web/src/features/widgets/chart-library/chart-props.tsindex 1306b5d944..75249022e6 100644--- a/web/src/features/widgets/chart-library/chart-props.ts+++ b/web/src/features/widgets/chart-library/chart-props.ts@@ -87,10 +87,10 @@ export type MetricFormatterFunction = () => FormattedMetric;/** ChartThresholdOperator picks the violation region a chart tints around a threshold. */-export type ChartThresholdOperator = "GT" | "GTE" | "LT" | "LTE" | "EQ" | "NEQ";+type ChartThresholdOperator = "GT" | "GTE" | "LT" | "LTE" | "EQ" | "NEQ";/** ChartThresholdColor is one of Tailwind's palette family names. */-export type ChartThresholdColor = {+type ChartThresholdColor = {[K in keyof typeof tailwindColors]: (typeof tailwindColors)[K] extends Record<string,stringdiff --git a/web/src/features/widgets/components/InlineWidget.tsx b/web/src/features/widgets/components/InlineWidget.tsxindex a98a40ec60..d297787e7c 100644--- a/web/src/features/widgets/components/InlineWidget.tsx+++ b/web/src/features/widgets/components/InlineWidget.tsx@@ -29,12 +29,12 @@ import { cn } from "@/src/utils/tailwind";// Types// ============================================================================-export interface WidgetMetricConfig {+interface WidgetMetricConfig {measure: string;agg: string;}-export interface WidgetDimensionConfig {+interface WidgetDimensionConfig {field: string;}@@ -84,21 +84,6 @@ export interface WidgetContentProps {hideXAxisLabels?: boolean;}-export interface WidgetHeaderProps {- title: string;- description?: string;- /**- * Action buttons to render on the right side of the header- */- actions?: React.ReactNode;- className?: string;-}--export interface WidgetWrapperProps {- children: React.ReactNode;- className?: string;-}-// ============================================================================// Components// ============================================================================diff --git a/web/src/features/widgets/constants/widgetFilterPresets.ts b/web/src/features/widgets/constants/widgetFilterPresets.tsindex c4ae3f7691..de4d74a254 100644--- a/web/src/features/widgets/constants/widgetFilterPresets.ts+++ b/web/src/features/widgets/constants/widgetFilterPresets.ts@@ -41,5 +41,3 @@ export const WIDGET_FILTER_PRESETS = {],},} as const satisfies Record<string, WidgetFilterPreset>;--export type WidgetFilterPresetKey = keyof typeof WIDGET_FILTER_PRESETS;diff --git a/web/src/features/widgets/hooks/useWidgetQuery.ts b/web/src/features/widgets/hooks/useWidgetQuery.tsindex f1c55abff3..a6d7ca6758 100644--- a/web/src/features/widgets/hooks/useWidgetQuery.ts+++ b/web/src/features/widgets/hooks/useWidgetQuery.ts@@ -1,69 +1,7 @@-import { type z } from "zod";-import { type FilterState } from "@langfuse/shared";-import { type DashboardWidgetChartType } from "@langfuse/shared/src/db";-import {- type QueryType,- type ViewVersion,- type views,- type QueryValidationResult,-} from "@langfuse/shared/query";-// ============================================================================// Types// ============================================================================-export interface WidgetMetricConfig {- measure: string;- agg: string;-}-export interface WidgetDimensionConfig {field: string;}--export interface WidgetChartConfig {- type: DashboardWidgetChartType;- row_limit?: number;- bins?: number;- defaultSort?: {- column: string;- order: "ASC" | "DESC";- };-}--/**- * Widget configuration - the shape of data stored in DB or passed programmatically.- */-export interface WidgetConfig {- view: z.infer<typeof views>;- dimensions: WidgetDimensionConfig[];- metrics: WidgetMetricConfig[];- filters: FilterState;- chartType: DashboardWidgetChartType;- chartConfig: WidgetChartConfig;- /**- * Minimum version required by this widget config.- * When >= 2, forces v2 regardless of beta toggle.- */- minVersion?: number;-}--export interface UseWidgetQueryParams {- widgetConfig: WidgetConfig;- dateRange: { from: Date; to: Date } | undefined;- /**- * Additional filters from parent context (e.g., dashboard-level filters).- * These are merged with widget filters.- */- filterState?: FilterState;- /**- * Sort state for pivot tables.- */- sortState?: { column: string; order: string } | null;-}--export interface UseWidgetQueryResult {- query: QueryType;- version: ViewVersion;- validation: QueryValidationResult;-}diff --git a/web/src/features/widgets/index.ts b/web/src/features/widgets/index.tsindex acc7cb4c22..d83630e053 100644--- a/web/src/features/widgets/index.ts+++ b/web/src/features/widgets/index.ts@@ -1,9 +1,7 @@// Export the DataPoint type-export { type DataPoint } from "./chart-library/chart-props";// Export componentsexport { WidgetForm } from "./components/WidgetForm";export { DashboardWidgetTable } from "./components/WidgetTable";export { DashboardWidget } from "./components/DashboardWidget";// Export types and utilities-export { type WidgetChartConfig } from "./utils";diff --git a/web/src/fns/observedMetadata/metadataPaths.ts b/web/src/fns/observedMetadata/metadataPaths.tsindex bcfb32bc5b..33a7df6719 100644--- a/web/src/fns/observedMetadata/metadataPaths.ts+++ b/web/src/fns/observedMetadata/metadataPaths.ts@@ -25,12 +25,7 @@// are rejected), so a key observed with more than one type simply drops its// hint rather than changing any filter behavior.-export type MetadataLeafType =- | "string"- | "number"- | "boolean"- | "array"- | "object";+type MetadataLeafType = "string" | "number" | "boolean" | "array" | "object";/*** Stored per-key type: one observed value type, `"mixed"` once more than onediff --git a/web/src/server/api/definitions/scoresTable.ts b/web/src/server/api/definitions/scoresTable.tsindex 276e75f331..a2c2ffee3f 100644--- a/web/src/server/api/definitions/scoresTable.ts+++ b/web/src/server/api/definitions/scoresTable.ts@@ -1,12 +1,3 @@-import { type SingleValueOption, scoresTableCols } from "@langfuse/shared";+import { scoresTableCols } from "@langfuse/shared";export { scoresTableCols };--export type ScoreOptions = {- name: Array<SingleValueOption>;- tags: Array<SingleValueOption>;- traceName: Array<SingleValueOption>;- userId: Array<SingleValueOption>;- stringValue: Array<SingleValueOption>;- booleanValue: Array<SingleValueOption>;-};diff --git a/web/src/server/api/trpc.ts b/web/src/server/api/trpc.tsindex 526c3164e7..03045e28b6 100644--- a/web/src/server/api/trpc.ts+++ b/web/src/server/api/trpc.ts@@ -770,14 +770,11 @@ export const adminProcedure = withOtelTracingProcedure// Export context types for easier reuse// Base context from createTRPCContext-export type TRPCContext = Awaited<ReturnType<typeof createTRPCContext>>;+type TRPCContext = Awaited<ReturnType<typeof createTRPCContext>>;// After `enforceUserIsAuthed`: session & user are non-nullexport type AuthedSession = NonNullable<TRPCContext["session"]> & {user: NonNullable<NonNullable<TRPCContext["session"]>["user"]>;};-export type AuthedContext = Omit<TRPCContext, "session"> & {- session: AuthedSession;-};// After `enforceUserIsAuthedAndProjectMember`: extra fields guaranteedexport type ProjectAuthedContext = Omit<TRPCContext, "session"> & {session: AuthedSession & {diff --git a/web/src/utils/chatml/index.ts b/web/src/utils/chatml/index.tsindex 914cc7a684..0f2a829e7f 100644--- a/web/src/utils/chatml/index.ts+++ b/web/src/utils/chatml/index.ts@@ -5,7 +5,4 @@ export {combineInputOutputMessages,normalizeInput,normalizeOutput,- type NormalizerContext,- type ProviderAdapter,- type ToolEvent,} from "@langfuse/shared";diff --git a/web/src/utils/date-range-utils.ts b/web/src/utils/date-range-utils.tsindex 69fed64379..75fcb39d92 100644--- a/web/src/utils/date-range-utils.ts+++ b/web/src/utils/date-range-utils.ts@@ -6,10 +6,8 @@ import { addMinutes, format } from "date-fns";// existing web import surface.export {TIME_RANGES,- type TimeRangePresets,TABLE_AGGREGATION_OPTIONS,type TableDateRangeAggregationOption,- type RelativeTimeRange,type AbsoluteTimeRange,type TimeRange,getAbbreviatedTimeRange,@@ -56,7 +54,7 @@ export type DashboardDateRange = {to: Date;};-export type DateRangeAggregationOption =+type DateRangeAggregationOption =| DashboardDateRangeAggregationOption| TableDateRangeAggregationOption;@@ -64,8 +62,6 @@ export type DashboardDateRangeOptions =| DashboardDateRangeAggregationOption| typeof DASHBOARD_AGGREGATION_PLACEHOLDER;-export type TableDateRangeOptions = TableDateRangeAggregationOption | "custom";-export type DashboardDateRangeAggregationSettings = Record<DashboardDateRangeAggregationOption,TimeRangeDefinition@@ -219,13 +215,7 @@ export const formatDateRange = (from: Date, to: Date) => {/*** Supported interval units for time series aggregation*/-export type IntervalUnit =- | "second"- | "minute"- | "hour"- | "day"- | "month"- | "year";+type IntervalUnit = "second" | "minute" | "hour" | "day" | "month" | "year";/*** Interval configuration with count and unitdiff --git a/web/src/utils/types.ts b/web/src/utils/types.tsindex 01ccf33648..115f7ded8b 100644--- a/web/src/utils/types.ts+++ b/web/src/utils/types.ts@@ -1,7 +1,5 @@-import { type Observation } from "@langfuse/shared";import { type inferRouterInputs, type inferRouterOutputs } from "@trpc/server";import { type AppRouter } from "@/src/server/api/root";-import { type ObservationReturnType } from "@/src/server/api/routers/traces";// unreachable code check@@ -13,59 +11,6 @@ export function isString(value: unknown): value is string {return typeof value === "string";}-// non-primitive type checks--export type NestedObservation = ObservationReturnType & {- children: NestedObservation[];-};--export type Event = Observation & {- type: "EVENT";-};--export type Span = Observation & {- type: "SPAN";- endTime: Date; // not null-};--export type Generation = Observation & {- type: "GENERATION";- promptTokens: number;- completionTokens: number;- totalTokens: number;- modelParameters: {- [key: string]: string | number | boolean;- };-};--export type Agent = Observation & {- type: "AGENT";-};--export type Tool = Observation & {- type: "TOOL";-};--export type Chain = Observation & {- type: "CHAIN";-};--export type Retriever = Observation & {- type: "RETRIEVER";-};--export type Evaluator = Observation & {- type: "EVALUATOR";-};--export type Embedding = Observation & {- type: "EMBEDDING";-};--export type Guardrail = Observation & {- type: "GUARDRAIL";-};-export type RouterInput = inferRouterInputs<AppRouter>;export type RouterOutput = inferRouterOutputs<AppRouter>;diff --git a/worker/src/__tests__/helpers/localLlmServer.ts b/worker/src/__tests__/helpers/localLlmServer.tsindex 77740a5489..32fa696acf 100644--- a/worker/src/__tests__/helpers/localLlmServer.ts+++ b/worker/src/__tests__/helpers/localLlmServer.ts@@ -5,7 +5,7 @@ import {} from "node:http";import type { AddressInfo } from "node:net";-export type RecordedRequest = {+type RecordedRequest = {method: string;url: string;headers: Record<string, string | string[] | undefined>;diff --git a/worker/src/backgroundMigrations/utils/backfillBase.ts b/worker/src/backgroundMigrations/utils/backfillBase.tsindex 45f4003628..d2847bdd98 100644--- a/worker/src/backgroundMigrations/utils/backfillBase.ts+++ b/worker/src/backgroundMigrations/utils/backfillBase.ts@@ -29,7 +29,7 @@ export interface BaseChunkTodo {retryCount?: number;}-export interface ChunkedBackfillArgs {+interface ChunkedBackfillArgs {concurrency?: number;pollIntervalMs?: number;maxRetries?: number;@@ -211,7 +211,7 @@ export async function loadPartitionsFromClickhouse(// Fire query (long-running, abort-and-poll pattern)// ============================================================================-export interface FireQueryRetrySettings {+interface FireQueryRetrySettings {retry0?: Record<string, string | number>;retry1?: Record<string, string | number>;retry2?: Record<string, string | number>;@@ -223,7 +223,7 @@ const DEFAULT_RETRY_SETTINGS: FireQueryRetrySettings = {retry2: { max_threads: 1, max_insert_threads: "1", max_block_size: "2048" },};-export interface FireQueryOptions {+interface FireQueryOptions {query: string;queryId: string;params?: Record<string, unknown>;diff --git a/worker/src/ee/usageThresholds/constants.ts b/worker/src/ee/usageThresholds/constants.tsindex de37a0d5dd..5ca5d58925 100644--- a/worker/src/ee/usageThresholds/constants.ts+++ b/worker/src/ee/usageThresholds/constants.ts@@ -26,5 +26,3 @@ export const NOTIFICATION_THRESHOLDS = [export const BLOCKING_THRESHOLD = MAX_EVENTS_FREE_PLAN * 5; // 250,000export type NotificationThreshold = (typeof NOTIFICATION_THRESHOLDS)[number];-export type BlockingThreshold = typeof BLOCKING_THRESHOLD;-export type Threshold = NotificationThreshold | BlockingThreshold;diff --git a/worker/src/features/blobstorage/abortClassification.ts b/worker/src/features/blobstorage/abortClassification.tsindex f075738c21..6352ef06bc 100644--- a/worker/src/features/blobstorage/abortClassification.ts+++ b/worker/src/features/blobstorage/abortClassification.ts@@ -18,7 +18,7 @@ export type BlobExportAbortStage =| "shutdown"| "unknown";-export type BlobExportAbortReason =+type BlobExportAbortReason =| "ch-error"| "upload-error"| "stall"diff --git a/worker/src/features/evaluation/observationEval/observationEvalProcessor.ts b/worker/src/features/evaluation/observationEval/observationEvalProcessor.tsindex a3869f29ae..9353375ae1 100644--- a/worker/src/features/evaluation/observationEval/observationEvalProcessor.ts+++ b/worker/src/features/evaluation/observationEval/observationEvalProcessor.ts@@ -71,7 +71,7 @@ function createObservationEvalProcessorDeps(): ObservationEvalProcessorDeps {* 4. Executes the evaluator-specific implementation* 5. Completes the eval execution with shared score persistence*/-export type ObservationEvalExecutionType =+type ObservationEvalExecutionType =| typeof EvalTemplateType.LLM_AS_JUDGE| typeof EvalTemplateType.CODE;diff --git a/worker/src/features/in-app-agent/runtime/agent.ts b/worker/src/features/in-app-agent/runtime/agent.tsindex 3ab74da850..755384169d 100644--- a/worker/src/features/in-app-agent/runtime/agent.ts+++ b/worker/src/features/in-app-agent/runtime/agent.ts@@ -256,7 +256,7 @@ class EnsureFinalResponseProcessor implements Processor {}}-export type InAppAgentCompleteOutcome = {+type InAppAgentCompleteOutcome = {/** The turn reached the step cap, whether or not wrap-up rescued it. */reachedStepLimit: boolean;truncatedByStepLimit: boolean;diff --git a/worker/src/features/in-app-agent/runtime/sandbox/index.ts b/worker/src/features/in-app-agent/runtime/sandbox/index.tsindex e235b6055a..cdc002154d 100644--- a/worker/src/features/in-app-agent/runtime/sandbox/index.ts+++ b/worker/src/features/in-app-agent/runtime/sandbox/index.ts@@ -1,9 +1,6 @@export { createInAppAgentSandbox } from "./service";export type {InAppAgentSandbox,- InAppAgentSandboxProviderType,- InAppAgentSandboxSessionReplacementReason,- SandboxFile,SandboxProvider,SandboxSession,} from "./types";diff --git a/worker/src/services/exportVolumeMetric.ts b/worker/src/services/exportVolumeMetric.tsindex c1b2e4ce15..543accf9c1 100644--- a/worker/src/services/exportVolumeMetric.ts+++ b/worker/src/services/exportVolumeMetric.ts@@ -2,11 +2,7 @@ import { recordIncrement } from "@langfuse/shared/src/server";export const EXPORT_VOLUME_METRIC = "langfuse.export.serialized_bytes";-export type ExportIntegration =- | "blob_storage"- | "posthog"- | "mixpanel"- | "llmaj";+type ExportIntegration = "blob_storage" | "posthog" | "mixpanel" | "llmaj";type ExportVolume = {integration: ExportIntegration;