🪢 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
chore: upgrade zod to v4 (#7271)
Steffen Schmitz8a0b3962acb8
diff --git a/ee/package.json b/ee/package.jsonindex 33a4b0c590..b620d91c2a 100644--- a/ee/package.json+++ b/ee/package.json@@ -30,7 +30,7 @@"https-proxy-agent": "^7.0.6","next": "^14.2.26","next-auth": "^4.24.11",- "zod": "^3.24.4"+ "zod": "^3.25.62"},"devDependencies": {"@repo/eslint-config": "workspace:*",diff --git a/ee/src/env.ts b/ee/src/env.tsindex 4bb1137405..5be56edd50 100644--- a/ee/src/env.ts+++ b/ee/src/env.ts@@ -1,4 +1,4 @@-import { z } from "zod";+import { z } from "zod/v4";import { removeEmptyEnvVariables } from "@langfuse/shared";const EnvSchema = z.object({diff --git a/packages/shared/package.json b/packages/shared/package.jsonindex 8f8e35054c..f0d4f4585d 100644--- a/packages/shared/package.json+++ b/packages/shared/package.json@@ -91,7 +91,7 @@"prisma-extension-kysely": "^2.1.0","uuid": "^9.0.1","winston": "^3.15.0",- "zod": "^3.24.4",+ "zod": "^3.25.62","zod-to-json-schema": "^3.23.5"},"devDependencies": {diff --git a/packages/shared/src/domain/observations.ts b/packages/shared/src/domain/observations.tsindex 0e034e1df9..62b04f6db8 100644--- a/packages/shared/src/domain/observations.ts+++ b/packages/shared/src/domain/observations.ts@@ -1,4 +1,4 @@-import z from "zod";+import z from "zod/v4";import { jsonSchema } from "../utils/zod";import { MetadataDomain } from "./traces";diff --git a/packages/shared/src/domain/scores.ts b/packages/shared/src/domain/scores.tsindex a7fcf172e7..5ef43b606a 100644--- a/packages/shared/src/domain/scores.ts+++ b/packages/shared/src/domain/scores.ts@@ -1,5 +1,5 @@import { ScoreDataType } from "@prisma/client";-import z from "zod";+import z from "zod/v4";import { MetadataDomain } from "./traces";export const ScoreSource = {@@ -31,7 +31,7 @@ export const ScoreSchema = z.object({queueId: z.string().nullable(),createdAt: z.date(),updatedAt: z.date(),- dataType: z.nativeEnum(ScoreDataType),+ dataType: z.enum(ScoreDataType),});export type ScoreDomain = z.infer<typeof ScoreSchema>;diff --git a/packages/shared/src/domain/table-view-presets.ts b/packages/shared/src/domain/table-view-presets.tsindex 030bd33ab5..adb6d0e8f6 100644--- a/packages/shared/src/domain/table-view-presets.ts+++ b/packages/shared/src/domain/table-view-presets.ts@@ -1,6 +1,6 @@import { singleFilter } from "../interfaces/filters";import { orderBy } from "../interfaces/orderBy";-import z from "zod";+import z from "zod/v4";export enum TableViewPresetTableName {Traces = "traces",@@ -17,7 +17,7 @@ const TableViewPresetDomainSchema = z.object({updatedAt: z.date(),createdBy: z.string().nullable(),name: z.string(),- tableName: z.nativeEnum(TableViewPresetTableName),+ tableName: z.enum(TableViewPresetTableName),filters: z.array(singleFilter),columnOrder: z.array(z.string()),columnVisibility: z.record(z.string(), z.boolean()),diff --git a/packages/shared/src/domain/traces.ts b/packages/shared/src/domain/traces.tsindex 5e0c39c671..75300bef90 100644--- a/packages/shared/src/domain/traces.ts+++ b/packages/shared/src/domain/traces.ts@@ -1,4 +1,4 @@-import z from "zod";+import z from "zod/v4";import { jsonSchema, jsonSchemaNullable } from "../utils/zod";export const MetadataDomain = z.record(diff --git a/packages/shared/src/env.ts b/packages/shared/src/env.tsindex 92a3cc7d9a..8af856e1ea 100644--- a/packages/shared/src/env.ts+++ b/packages/shared/src/env.ts@@ -1,4 +1,4 @@-import { z } from "zod";+import { z } from "zod/v4";import { removeEmptyEnvVariables } from "./utils/environment";const EnvSchema = z.object({@@ -9,10 +9,7 @@ const EnvSchema = z.object({NEXTAUTH_URL: z.string().url().optional(),REDIS_HOST: z.string().nullish(),REDIS_PORT: z.coerce- .number({- description:- ".env files convert numbers to strings, therefore we have to enforce them to be numbers",- })+ .number() // .env files convert numbers to strings, therefore we have to enforce them to be numbers.positive().max(65536, `options.port should be >= 0 and < 65536`).default(6379)@@ -60,9 +57,7 @@ const EnvSchema = z.object({.enum(["true", "false"]).default("false"),LANGFUSE_S3_CONCURRENT_WRITES: z.coerce.number().positive().default(50),- LANGFUSE_S3_EVENT_UPLOAD_BUCKET: z.string({- required_error: "Langfuse requires a bucket name for S3 Event Uploads.",- }),+ LANGFUSE_S3_EVENT_UPLOAD_BUCKET: z.string(), // Langfuse requires a bucket name for S3 Event Uploads.LANGFUSE_S3_EVENT_UPLOAD_PREFIX: z.string().default(""),LANGFUSE_S3_EVENT_UPLOAD_REGION: z.string().optional(),LANGFUSE_S3_EVENT_UPLOAD_ENDPOINT: z.string().optional(),diff --git a/packages/shared/src/features/annotation/types.ts b/packages/shared/src/features/annotation/types.tsindex 0b8455900d..4385101ed6 100644--- a/packages/shared/src/features/annotation/types.ts+++ b/packages/shared/src/features/annotation/types.ts@@ -1,4 +1,4 @@-import z from "zod";+import z from "zod/v4";import { type ScoreDataType } from "../../db";const NUMERIC: ScoreDataType = "NUMERIC";diff --git a/packages/shared/src/features/batchAction/types.ts b/packages/shared/src/features/batchAction/types.tsindex ba04c4b85e..dceda6924c 100644--- a/packages/shared/src/features/batchAction/types.ts+++ b/packages/shared/src/features/batchAction/types.ts@@ -1,4 +1,4 @@-import z from "zod";+import z from "zod/v4";import { singleFilter } from "../../interfaces/filters";import { orderBy } from "../../interfaces/orderBy";import { BatchTableNames } from "../../interfaces/tableNames";@@ -32,11 +32,11 @@ export const CreateBatchActionSchema = z.object({actionId: ActionIdSchema,targetId: z.string().optional(),query: BatchActionQuerySchema,- tableName: z.nativeEnum(BatchTableNames),+ tableName: z.enum(BatchTableNames),});export const GetIsBatchActionInProgressSchema = z.object({projectId: z.string(),actionId: ActionIdSchema,- tableName: z.nativeEnum(BatchTableNames),+ tableName: z.enum(BatchTableNames),});diff --git a/packages/shared/src/features/batchExport/types.ts b/packages/shared/src/features/batchExport/types.tsindex 2dddaf4662..48591a8e43 100644--- a/packages/shared/src/features/batchExport/types.ts+++ b/packages/shared/src/features/batchExport/types.ts@@ -1,4 +1,4 @@-import z from "zod";+import z from "zod/v4";import { BatchExport } from "@prisma/client";@@ -41,7 +41,7 @@ export const exportOptions: Record<} as const;export const BatchExportQuerySchema = z.object({- tableName: z.nativeEnum(BatchTableNames),+ tableName: z.enum(BatchTableNames),filter: z.array(singleFilter).nullable(),orderBy,limit: z.number().optional(),@@ -54,7 +54,7 @@ export const CreateBatchExportSchema = z.object({projectId: z.string(),name: z.string(),query: BatchExportQuerySchema,- format: z.nativeEnum(BatchExportFileFormat),+ format: z.enum(BatchExportFileFormat),});export const BatchExportSchema = z.object({@@ -66,9 +66,9 @@ export const BatchExportSchema = z.object({finishedAt: z.date().nullable(),expiresAt: z.date().nullable(),name: z.string(),- status: z.nativeEnum(BatchExportStatus),+ status: z.enum(BatchExportStatus),query: BatchExportQuerySchema,- format: z.nativeEnum(BatchExportFileFormat),+ format: z.enum(BatchExportFileFormat),url: z.string().nullable(),log: z.string().nullable(),});diff --git a/packages/shared/src/features/comments/types.ts b/packages/shared/src/features/comments/types.tsindex 756bf146b2..208c07f02b 100644--- a/packages/shared/src/features/comments/types.ts+++ b/packages/shared/src/features/comments/types.ts@@ -1,4 +1,4 @@-import { z } from "zod";+import { z } from "zod/v4";const MAX_COMMENT_LENGTH = 3000;diff --git a/packages/shared/src/features/evals/types.ts b/packages/shared/src/features/evals/types.tsindex e9b93458f5..0c099c3069 100644--- a/packages/shared/src/features/evals/types.ts+++ b/packages/shared/src/features/evals/types.ts@@ -1,4 +1,4 @@-import z from "zod";+import z from "zod/v4";export const langfuseObjects = ["trace",diff --git a/packages/shared/src/features/evals/utilities.ts b/packages/shared/src/features/evals/utilities.tsindex 7bcb7610bc..f06786d1e5 100644--- a/packages/shared/src/features/evals/utilities.ts+++ b/packages/shared/src/features/evals/utilities.ts@@ -1,4 +1,4 @@-import z from "zod";+import z from "zod/v4";import { variableMapping } from "./types";/**diff --git a/packages/shared/src/features/prompts/parsePromptDependencyTags.ts b/packages/shared/src/features/prompts/parsePromptDependencyTags.tsindex b706a59d96..72b907dac8 100644--- a/packages/shared/src/features/prompts/parsePromptDependencyTags.ts+++ b/packages/shared/src/features/prompts/parsePromptDependencyTags.ts@@ -1,4 +1,4 @@-import { z } from "zod";+import { z } from "zod/v4";export const PromptDependencyRegex = /@@@langfusePrompt:(.*?)@@@/g;diff --git a/packages/shared/src/features/scores/interfaces/api/shared.ts b/packages/shared/src/features/scores/interfaces/api/shared.tsindex 74e3c79f8e..5811835ecb 100644--- a/packages/shared/src/features/scores/interfaces/api/shared.ts+++ b/packages/shared/src/features/scores/interfaces/api/shared.ts@@ -1,4 +1,4 @@-import { z } from "zod";+import { z } from "zod/v4";import { jsonSchema, publicApiPaginationZod } from "../../../../utils/zod";import { stringDateTime } from "../../../../utils/typeChecks";import { applyScoreValidation } from "../../../../utils/scores";diff --git a/packages/shared/src/features/scores/interfaces/api/v1/endpoints.ts b/packages/shared/src/features/scores/interfaces/api/v1/endpoints.tsindex a1c4ccf6ee..46e25d750f 100644--- a/packages/shared/src/features/scores/interfaces/api/v1/endpoints.ts+++ b/packages/shared/src/features/scores/interfaces/api/v1/endpoints.ts@@ -1,4 +1,4 @@-import { z } from "zod";+import { z } from "zod/v4";import { paginationMetaResponseZod } from "../../../../../utils/zod";import {DeleteScoreQuery,diff --git a/packages/shared/src/features/scores/interfaces/api/v1/schemas.ts b/packages/shared/src/features/scores/interfaces/api/v1/schemas.tsindex 68d0de376a..973e23be20 100644--- a/packages/shared/src/features/scores/interfaces/api/v1/schemas.ts+++ b/packages/shared/src/features/scores/interfaces/api/v1/schemas.ts@@ -1,4 +1,4 @@-import { z } from "zod";+import { z } from "zod/v4";import {CategoricalData,NumericData,diff --git a/packages/shared/src/features/scores/interfaces/api/v1/validation.ts b/packages/shared/src/features/scores/interfaces/api/v1/validation.tsindex 18c087d810..9a3f685680 100644--- a/packages/shared/src/features/scores/interfaces/api/v1/validation.ts+++ b/packages/shared/src/features/scores/interfaces/api/v1/validation.ts@@ -1,4 +1,4 @@-import z from "zod";+import z from "zod/v4";import { GetScoreResponseDataV1 } from "./endpoints";/**diff --git a/packages/shared/src/features/scores/interfaces/api/v2/endpoints.ts b/packages/shared/src/features/scores/interfaces/api/v2/endpoints.tsindex 920d42fc5e..03101b012e 100644--- a/packages/shared/src/features/scores/interfaces/api/v2/endpoints.ts+++ b/packages/shared/src/features/scores/interfaces/api/v2/endpoints.ts@@ -1,4 +1,4 @@-import z from "zod";+import z from "zod/v4";import { paginationMetaResponseZod } from "../../../../../utils/zod";import { GetScoreQuery, GetScoresQuery } from "../shared";import { APIScoreSchemaV2 } from "./schemas";diff --git a/packages/shared/src/features/scores/interfaces/api/v2/schemas.ts b/packages/shared/src/features/scores/interfaces/api/v2/schemas.tsindex 67f985025f..5d9dc466a8 100644--- a/packages/shared/src/features/scores/interfaces/api/v2/schemas.ts+++ b/packages/shared/src/features/scores/interfaces/api/v2/schemas.ts@@ -1,4 +1,4 @@-import { z } from "zod";+import { z } from "zod/v4";import {CategoricalData,NumericData,diff --git a/packages/shared/src/features/scores/interfaces/api/v2/validation.ts b/packages/shared/src/features/scores/interfaces/api/v2/validation.tsindex b6c37fc67d..49861f676f 100644--- a/packages/shared/src/features/scores/interfaces/api/v2/validation.ts+++ b/packages/shared/src/features/scores/interfaces/api/v2/validation.ts@@ -1,4 +1,4 @@-import z from "zod";+import z from "zod/v4";import { GetScoreResponseDataV2 } from "./endpoints";/**diff --git a/packages/shared/src/features/scores/interfaces/application/validation.ts b/packages/shared/src/features/scores/interfaces/application/validation.tsindex 0ba499e743..d3bbbd64a1 100644--- a/packages/shared/src/features/scores/interfaces/application/validation.ts+++ b/packages/shared/src/features/scores/interfaces/application/validation.ts@@ -1,4 +1,4 @@-import z from "zod";+import z from "zod/v4";import { APIScoreSchemaV2, APIScoreV2 } from "../api/v2/schemas";import { APIScoreSchemaV1, APIScoreV1 } from "../api/v1/schemas";import { ScoreDomain } from "../../../../domain";diff --git a/packages/shared/src/features/scores/interfaces/ingestion/validation.ts b/packages/shared/src/features/scores/interfaces/ingestion/validation.tsindex 15832efd77..103f30d575 100644--- a/packages/shared/src/features/scores/interfaces/ingestion/validation.ts+++ b/packages/shared/src/features/scores/interfaces/ingestion/validation.ts@@ -1,4 +1,4 @@-import z from "zod";+import z from "zod/v4";import { applyScoreValidation } from "../../../../utils/scores";import { PostScoreBodyFoundationSchema } from "../shared";import { isPresent } from "../../../../utils/typeChecks";diff --git a/packages/shared/src/features/scores/interfaces/shared.ts b/packages/shared/src/features/scores/interfaces/shared.tsindex 8573be9e77..b84000e37f 100644--- a/packages/shared/src/features/scores/interfaces/shared.ts+++ b/packages/shared/src/features/scores/interfaces/shared.ts@@ -1,5 +1,5 @@import { jsonSchema } from "../../../utils/zod";-import z from "zod";+import z from "zod/v4";import { NonEmptyString } from "../../../utils/zod";/**diff --git a/packages/shared/src/features/scores/scoreConfigTypes.ts b/packages/shared/src/features/scores/scoreConfigTypes.tsindex 5060cd3fca..420d441247 100644--- a/packages/shared/src/features/scores/scoreConfigTypes.ts+++ b/packages/shared/src/features/scores/scoreConfigTypes.ts@@ -1,4 +1,4 @@-import { z } from "zod";+import { z } from "zod/v4";import { ScoreConfig as ScoreConfigDbType } from "@prisma/client";@@ -68,10 +68,10 @@ const CategoricalScoreConfig = z.object({const parseResult = Categories.safeParse(categories);if (!parseResult.success) {ctx.addIssue({- code: z.ZodIssueCode.custom,+ code: "custom",message:"Category must be an array of objects with label value pairs, where labels and values are unique.",- });+ } as z.core.$ZodIssueCustom);return;}@@ -198,7 +198,7 @@ export const GetScoreConfigResponse = ValidatedScoreConfigSchema;// POST /score-configsexport const PostScoreConfigBody = z- .union([+ .discriminatedUnion("dataType", [ScoreConfigPostBase.merge(CategoricalScoreConfig),ScoreConfigPostBase.merge(NumericScoreConfig),ScoreConfigPostBase.merge(diff --git a/packages/shared/src/interfaces/cloudConfigSchema.ts b/packages/shared/src/interfaces/cloudConfigSchema.tsindex 044ca800d8..b1aa7bff72 100644--- a/packages/shared/src/interfaces/cloudConfigSchema.ts+++ b/packages/shared/src/interfaces/cloudConfigSchema.ts@@ -1,4 +1,4 @@-import { z } from "zod";+import { z } from "zod/v4";import { CloudConfigRateLimit } from "./rate-limits";import { cloudConfigPlans } from "../features/entitlements/plans";diff --git a/packages/shared/src/interfaces/customLLMProviderConfigSchemas.ts b/packages/shared/src/interfaces/customLLMProviderConfigSchemas.tsindex cd5df67b53..15da41445e 100644--- a/packages/shared/src/interfaces/customLLMProviderConfigSchemas.ts+++ b/packages/shared/src/interfaces/customLLMProviderConfigSchemas.ts@@ -1,4 +1,4 @@-import { z } from "zod";+import { z } from "zod/v4";export const BedrockConfigSchema = z.object({ region: z.string() });export type BedrockConfig = z.infer<typeof BedrockConfigSchema>;diff --git a/packages/shared/src/interfaces/filters.ts b/packages/shared/src/interfaces/filters.tsindex 117ee56c2d..85144ea979 100644--- a/packages/shared/src/interfaces/filters.ts+++ b/packages/shared/src/interfaces/filters.ts@@ -1,4 +1,4 @@-import { z } from "zod";+import { z } from "zod/v4";export const filterOperators = {datetime: [">", "<", ">=", "<="],diff --git a/packages/shared/src/interfaces/orderBy.ts b/packages/shared/src/interfaces/orderBy.tsindex 31b1e320ad..8c704cdd04 100644--- a/packages/shared/src/interfaces/orderBy.ts+++ b/packages/shared/src/interfaces/orderBy.ts@@ -1,4 +1,4 @@-import { z } from "zod";+import { z } from "zod/v4";export const orderBy = z.object({diff --git a/packages/shared/src/interfaces/rate-limits.ts b/packages/shared/src/interfaces/rate-limits.tsindex de35d76aa7..15284dda00 100644--- a/packages/shared/src/interfaces/rate-limits.ts+++ b/packages/shared/src/interfaces/rate-limits.ts@@ -1,4 +1,4 @@-import z from "zod";+import z from "zod/v4";import { ApiAccessScope } from "../server";export const RateLimitResource = z.enum([diff --git a/packages/shared/src/interfaces/search.ts b/packages/shared/src/interfaces/search.tsindex bb7ad65592..f5be88641c 100644--- a/packages/shared/src/interfaces/search.ts+++ b/packages/shared/src/interfaces/search.ts@@ -1,4 +1,4 @@-import { z } from "zod";+import { z } from "zod/v4";export const TracingSearchType = z.enum(["id", "content"]);// id: for searching smaller columns like IDs, types, and other metadatadiff --git a/packages/shared/src/server/auth/types.ts b/packages/shared/src/server/auth/types.tsindex a9e25a31f9..a0fe1f1d7e 100644--- a/packages/shared/src/server/auth/types.ts+++ b/packages/shared/src/server/auth/types.ts@@ -1,4 +1,4 @@-import z from "zod";+import z from "zod/v4";import { Plan, plans } from "../../features/entitlements/plans";import { CloudConfigRateLimit } from "../../interfaces/rate-limits";import { ApiKeyScope } from "../../";diff --git a/packages/shared/src/server/filterToPrisma.ts b/packages/shared/src/server/filterToPrisma.tsindex 601e9077d6..0c0905bc1e 100644--- a/packages/shared/src/server/filterToPrisma.ts+++ b/packages/shared/src/server/filterToPrisma.ts@@ -2,7 +2,7 @@ import { Prisma } from "@prisma/client";import { ColumnDefinition, type TableNames } from "../tableDefinitions";import { FilterState } from "../types";import { filterOperators, timeFilter } from "../interfaces/filters";-import { z } from "zod";+import { z } from "zod/v4";import { logger } from "./index";const operatorReplacements = {diff --git a/packages/shared/src/server/ingestion/processEventBatch.ts b/packages/shared/src/server/ingestion/processEventBatch.tsindex 41c613fdd1..c64f11d04e 100644--- a/packages/shared/src/server/ingestion/processEventBatch.ts+++ b/packages/shared/src/server/ingestion/processEventBatch.ts@@ -1,5 +1,5 @@import { randomUUID } from "crypto";-import { z } from "zod";+import { z } from "zod/v4";import { type Model } from "../../db";import { env } from "../../env";diff --git a/packages/shared/src/server/ingestion/types.ts b/packages/shared/src/server/ingestion/types.tsindex 9b8ff6db3a..3f058bc9fc 100644--- a/packages/shared/src/server/ingestion/types.ts+++ b/packages/shared/src/server/ingestion/types.ts@@ -1,5 +1,5 @@import lodash from "lodash";-import { z } from "zod";+import { z } from "zod/v4";import { NonEmptyString, jsonSchema } from "../../utils/zod";import { ModelUsageUnit } from "../../constants";@@ -20,7 +20,7 @@ export const Usage = z.object({input: z.number().int().nullish(),output: z.number().int().nullish(),total: z.number().int().nullish(),- unit: z.nativeEnum(ModelUsageUnit).nullish(),+ unit: z.enum(ModelUsageUnit).nullish(),inputCost: z.number().nullish(),outputCost: z.number().nullish(),totalCost: z.number().nullish(),@@ -30,7 +30,7 @@ const MixedUsage = z.object({input: z.number().int().nullish(),output: z.number().int().nullish(),total: z.number().int().nullish(),- unit: z.nativeEnum(ModelUsageUnit).nullish(),+ unit: z.enum(ModelUsageUnit).nullish(),promptTokens: z.number().int().nullish(),completionTokens: z.number().int().nullish(),totalTokens: z.number().int().nullish(),@@ -128,8 +128,7 @@ const OpenAICompletionUsageSchema = z}return result;- })- .pipe(RawUsageDetails);+ });// The new OpenAI Response API uses a new Usage schema that departs from the Completion API Usage schemaconst OpenAIResponseUsageSchema = z@@ -184,8 +183,7 @@ const OpenAIResponseUsageSchema = z}return result;- })- .pipe(RawUsageDetails);+ });export const UsageDetails = z.union([@@ -266,7 +264,7 @@ export const CreateGenerationBody = CreateSpanBody.extend({z.number(),z.boolean(),z.array(z.string()),- z.record(z.string()),+ z.record(z.string(), z.string()),]).nullish(),)@@ -296,7 +294,7 @@ export const UpdateGenerationBody = UpdateSpanBody.extend({z.number(),z.boolean(),z.array(z.string()),- z.record(z.string()),+ z.record(z.string(), z.string()),]).nullish(),)diff --git a/packages/shared/src/server/ingestion/validateAndInflateScore.ts b/packages/shared/src/server/ingestion/validateAndInflateScore.tsindex f80f68124f..fd439f78f9 100644--- a/packages/shared/src/server/ingestion/validateAndInflateScore.ts+++ b/packages/shared/src/server/ingestion/validateAndInflateScore.ts@@ -162,7 +162,7 @@ function validateConfigAgainstBody(});if (!rangeValidation.success) {- const errorDetails = rangeValidation.error.errors+ const errorDetails = rangeValidation.error.issues.map((error) => `${error.path.join(".")} - ${error.message}`).join(", ");diff --git a/packages/shared/src/server/llm/fetchLLMCompletion.ts b/packages/shared/src/server/llm/fetchLLMCompletion.tsindex e7d1e11f1e..4adf8bacf9 100644--- a/packages/shared/src/server/llm/fetchLLMCompletion.ts+++ b/packages/shared/src/server/llm/fetchLLMCompletion.ts@@ -1,4 +1,4 @@-import { type ZodSchema } from "zod";+import { type ZodSchema } from "zod/v4";import { ChatAnthropic } from "@langchain/anthropic";import { ChatVertexAI } from "@langchain/google-vertexai";diff --git a/packages/shared/src/server/llm/types.ts b/packages/shared/src/server/llm/types.tsindex 2ad23b5302..5fa355595e 100644--- a/packages/shared/src/server/llm/types.ts+++ b/packages/shared/src/server/llm/types.ts@@ -1,5 +1,5 @@import { LlmApiKeys } from "@prisma/client";-import z from "zod";+import z from "zod/v4";import { BedrockConfigSchema } from "../../interfaces/customLLMProviderConfigSchemas";import { TokenCountDelegate } from "../ingestion/processEventBatch";import { AuthHeaderValidVerificationResult } from "../auth/types";@@ -28,7 +28,7 @@ export const JSONSchemaFormSchema = zz.object({type: z.literal("object"),- properties: z.record(z.any()),+ properties: z.record(z.string(), z.any()),required: z.array(z.string()).optional(),additionalProperties: z.boolean().optional(),})@@ -168,7 +168,7 @@ export const ToolResultMessageSchema = z.object({});export type ToolResultMessage = z.infer<typeof ToolResultMessageSchema>;-export const ChatMessageDefaultRoleSchema = z.nativeEnum(ChatMessageRole);+export const ChatMessageDefaultRoleSchema = z.enum(ChatMessageRole);export const ChatMessageSchema = z.union([SystemMessageSchema,DeveloperMessageSchema,@@ -370,7 +370,7 @@ export const LLMApiKeySchema = zprojectId: z.string(),createdAt: z.date(),updatedAt: z.date(),- adapter: z.nativeEnum(LLMAdapter),+ adapter: z.enum(LLMAdapter),provider: z.string(),displaySecretKey: z.string(),secretKey: z.string(),diff --git a/packages/shared/src/server/llm/utils.ts b/packages/shared/src/server/llm/utils.tsindex 896c37d8db..5ac452ded7 100644--- a/packages/shared/src/server/llm/utils.ts+++ b/packages/shared/src/server/llm/utils.ts@@ -1,4 +1,4 @@-import { z } from "zod";+import { z } from "zod/v4";import { decrypt } from "../../encryption";diff --git a/packages/shared/src/server/orderByToPrisma.ts b/packages/shared/src/server/orderByToPrisma.tsindex 2e588d6a8d..2dd51903b8 100644--- a/packages/shared/src/server/orderByToPrisma.ts+++ b/packages/shared/src/server/orderByToPrisma.ts@@ -1,4 +1,4 @@-import { z } from "zod";+import { z } from "zod/v4";import { Prisma } from "@prisma/client";diff --git a/packages/shared/src/server/queries/clickhouse-sql/factory.ts b/packages/shared/src/server/queries/clickhouse-sql/factory.tsindex 688797ccee..a3906b8bc8 100644--- a/packages/shared/src/server/queries/clickhouse-sql/factory.ts+++ b/packages/shared/src/server/queries/clickhouse-sql/factory.ts@@ -1,4 +1,4 @@-import z from "zod";+import z from "zod/v4";import { singleFilter } from "../../../interfaces/filters";import { FilterCondition } from "../../../types";import { isValidTableName } from "../../clickhouse/schemaUtils";diff --git a/packages/shared/src/server/queries/clickhouse-sql/orderby-factory.ts b/packages/shared/src/server/queries/clickhouse-sql/orderby-factory.tsindex fa5e8a995d..8a8fc2bd93 100644--- a/packages/shared/src/server/queries/clickhouse-sql/orderby-factory.ts+++ b/packages/shared/src/server/queries/clickhouse-sql/orderby-factory.ts@@ -1,4 +1,4 @@-import z from "zod";+import z from "zod/v4";import { OrderByState } from "../../../interfaces/orderBy";import { UiColumnMappings } from "../../../tableDefinitions";import { logger } from "../../logger";diff --git a/packages/shared/src/server/queries/createSessionsAllQuery.ts b/packages/shared/src/server/queries/createSessionsAllQuery.tsindex 7ef93442dd..d9b3cee5b1 100644--- a/packages/shared/src/server/queries/createSessionsAllQuery.ts+++ b/packages/shared/src/server/queries/createSessionsAllQuery.ts@@ -1,4 +1,4 @@-import { z } from "zod";+import { z } from "zod/v4";import { Prisma } from "@prisma/client";import { tableColumnsToSqlFilterAndPrefix } from "../filterToPrisma";diff --git a/packages/shared/src/server/queries/types.ts b/packages/shared/src/server/queries/types.tsindex a54fefbc44..760b5c61a1 100644--- a/packages/shared/src/server/queries/types.ts+++ b/packages/shared/src/server/queries/types.ts@@ -1,4 +1,4 @@-import z from "zod";+import z from "zod/v4";import { singleFilter } from "../../interfaces/filters";import { orderBy } from "../../interfaces/orderBy";import { optionalPaginationZod } from "../../utils/zod";diff --git a/packages/shared/src/server/queues.ts b/packages/shared/src/server/queues.tsindex 1218c50eb0..b286c5e705 100644--- a/packages/shared/src/server/queues.ts+++ b/packages/shared/src/server/queues.ts@@ -1,6 +1,6 @@/* eslint-disable no-unused-vars */-import { z } from "zod";-import { eventTypes } from ".";+import { z } from "zod/v4";+import { eventTypes } from "./ingestion/types";import {BatchActionQuerySchema,BatchActionType,@@ -9,7 +9,7 @@ import { BatchTableNames } from "../interfaces/tableNames";export const IngestionEvent = z.object({data: z.object({- type: z.nativeEnum(eventTypes),+ type: z.enum(Object.values(eventTypes)),eventBodyId: z.string(),fileKey: z.string().optional(),skipS3List: z.boolean().optional(),@@ -76,28 +76,28 @@ export const BatchActionProcessingEventSchema = z.discriminatedUnion(actionId: z.literal("score-delete"),projectId: z.string(),query: BatchActionQuerySchema,- tableName: z.nativeEnum(BatchTableNames),+ tableName: z.enum(BatchTableNames),cutoffCreatedAt: z.date(),targetId: z.string().optional(),- type: z.nativeEnum(BatchActionType),+ type: z.enum(BatchActionType),}),z.object({actionId: z.literal("trace-delete"),projectId: z.string(),query: BatchActionQuerySchema,- tableName: z.nativeEnum(BatchTableNames),+ tableName: z.enum(BatchTableNames),cutoffCreatedAt: z.date(),targetId: z.string().optional(),- type: z.nativeEnum(BatchActionType),+ type: z.enum(BatchActionType),}),z.object({actionId: z.literal("trace-add-to-annotation-queue"),projectId: z.string(),query: BatchActionQuerySchema,- tableName: z.nativeEnum(BatchTableNames),+ tableName: z.enum(BatchTableNames),cutoffCreatedAt: z.date(),targetId: z.string().optional(),- type: z.nativeEnum(BatchActionType),+ type: z.enum(BatchActionType),}),z.object({actionId: z.literal("eval-create"),diff --git a/packages/shared/src/server/repositories/definitions.ts b/packages/shared/src/server/repositories/definitions.tsindex 99342b015f..66322ec844 100644--- a/packages/shared/src/server/repositories/definitions.ts+++ b/packages/shared/src/server/repositories/definitions.ts@@ -1,4 +1,4 @@-import z from "zod";+import z from "zod/v4";export const clickhouseStringDateSchema = z.string()@@ -38,7 +38,7 @@ export const observationRecordBaseSchema = z.object({parent_observation_id: z.string().nullish(),environment: z.string().default("default"),name: z.string().nullish(),- metadata: z.record(z.string()),+ metadata: z.record(z.string(), z.string()),level: z.string().nullish(),status_message: z.string().nullish(),version: z.string().nullish(),@@ -92,7 +92,7 @@ export const traceRecordBaseSchema = z.object({id: z.string(),name: z.string().nullish(),user_id: z.string().nullish(),- metadata: z.record(z.string()),+ metadata: z.record(z.string(), z.string()),release: z.string().nullish(),version: z.string().nullish(),project_id: z.string(),@@ -134,7 +134,7 @@ export const scoreRecordBaseSchema = z.object({value: z.number().nullish(),source: z.string(),comment: z.string().nullish(),- metadata: z.record(z.string()),+ metadata: z.record(z.string(), z.string()),author_user_id: z.string().nullish(),config_id: z.string().nullish(),data_type: z.enum(["NUMERIC", "CATEGORICAL", "BOOLEAN"]).nullish(),diff --git a/packages/shared/src/server/repositories/trace-sessions.ts b/packages/shared/src/server/repositories/trace-sessions.tsindex 34be083467..742c6ffcc9 100644--- a/packages/shared/src/server/repositories/trace-sessions.ts+++ b/packages/shared/src/server/repositories/trace-sessions.ts@@ -1,4 +1,4 @@-import z from "zod";+import z from "zod/v4";import { prisma } from "../../db";import { singleFilter } from "../../interfaces/filters";diff --git a/packages/shared/src/server/services/DashboardService/DashboardService.ts b/packages/shared/src/server/services/DashboardService/DashboardService.tsindex d91cf57bac..7d8c0eb4a4 100644--- a/packages/shared/src/server/services/DashboardService/DashboardService.ts+++ b/packages/shared/src/server/services/DashboardService/DashboardService.ts@@ -14,7 +14,7 @@ import {WidgetDomainSchema,DashboardDefinitionSchema,} from "./types";-import { z } from "zod";+import { z } from "zod/v4";export class DashboardService {/**diff --git a/packages/shared/src/server/services/DashboardService/types.ts b/packages/shared/src/server/services/DashboardService/types.tsindex bf58d860fd..b1c8e0008e 100644--- a/packages/shared/src/server/services/DashboardService/types.ts+++ b/packages/shared/src/server/services/DashboardService/types.ts@@ -1,5 +1,5 @@import { DashboardWidgetChartType, DashboardWidgetViews } from "@prisma/client";-import { z } from "zod";+import { z } from "zod/v4";import { singleFilter } from "../../../";export const BaseTimeSeriesChartConfig = z.object({});@@ -105,11 +105,11 @@ export const WidgetDomainSchema = z.object({projectId: z.string().nullable(),name: z.string(),description: z.string(),- view: z.nativeEnum(DashboardWidgetViews),+ view: z.enum(DashboardWidgetViews),dimensions: z.array(DimensionSchema),metrics: z.array(MetricSchema),filters: z.array(singleFilter),- chartType: z.nativeEnum(DashboardWidgetChartType),+ chartType: z.enum(DashboardWidgetChartType),chartConfig: ChartConfigSchema,owner: OwnerEnum,});@@ -118,11 +118,11 @@ export const WidgetDomainSchema = z.object({export const CreateWidgetInputSchema = z.object({name: z.string().min(1, "Widget name is required"),description: z.string(),- view: z.nativeEnum(DashboardWidgetViews),+ view: z.enum(DashboardWidgetViews),dimensions: z.array(DimensionSchema),metrics: z.array(MetricSchema),filters: z.array(singleFilter),- chartType: z.nativeEnum(DashboardWidgetChartType),+ chartType: z.enum(DashboardWidgetChartType),chartConfig: ChartConfigSchema,});diff --git a/packages/shared/src/server/services/DefaultEvaluationModelService/DefaultEvalModelService.ts b/packages/shared/src/server/services/DefaultEvaluationModelService/DefaultEvalModelService.tsindex e29c0864c1..b806453811 100644--- a/packages/shared/src/server/services/DefaultEvaluationModelService/DefaultEvalModelService.ts+++ b/packages/shared/src/server/services/DefaultEvaluationModelService/DefaultEvalModelService.ts@@ -1,4 +1,4 @@-import z from "zod";+import z from "zod/v4";import { prisma } from "../../../db";import { LangfuseNotFoundError } from "../../../errors";import { LLMApiKeySchema, ZodModelConfig } from "../../llm/types";@@ -90,7 +90,7 @@ export class DefaultEvalModelService {const result = ZodModelConfig.safeParse(config.modelParams);if (!result.success) {errors.push(- ...result.error.errors.map(+ ...result.error.issues.map((err) => `Model parameter error: ${err.message}`,),);diff --git a/packages/shared/src/server/services/TableViewService/types.ts b/packages/shared/src/server/services/TableViewService/types.tsindex ed4cac7773..e255012657 100644--- a/packages/shared/src/server/services/TableViewService/types.ts+++ b/packages/shared/src/server/services/TableViewService/types.ts@@ -1,4 +1,4 @@-import z from "zod";+import z from "zod/v4";import { orderBy, singleFilter } from "../../..";export const CreateTableViewPresetsInput = z.object({diff --git a/packages/shared/src/types.ts b/packages/shared/src/types.tsindex fba56b5e0f..dda9069287 100644--- a/packages/shared/src/types.ts+++ b/packages/shared/src/types.ts@@ -1,4 +1,4 @@-import { type z } from "zod";+import { type z } from "zod/v4";import { singleFilter, timeFilter } from "./interfaces/filters";// to be sent to the serverdiff --git a/packages/shared/src/utils/scores.ts b/packages/shared/src/utils/scores.tsindex e132cee60d..495e9878b4 100644--- a/packages/shared/src/utils/scores.ts+++ b/packages/shared/src/utils/scores.ts@@ -1,4 +1,4 @@-import z from "zod";+import z from "zod/v4";export const applyScoreValidation = <T extends z.ZodType<any, any, any>>(schema: T,diff --git a/packages/shared/src/utils/typeChecks.ts b/packages/shared/src/utils/typeChecks.tsindex c4cc71bc0b..8f2cfbe810 100644--- a/packages/shared/src/utils/typeChecks.ts+++ b/packages/shared/src/utils/typeChecks.ts@@ -1,4 +1,4 @@-import { z } from "zod";+import { z } from "zod/v4";export const isPresent = <T>(value: T | null | undefined): value is T =>value !== null && value !== undefined && value !== "";diff --git a/packages/shared/src/utils/zod.ts b/packages/shared/src/utils/zod.tsindex f1612ba013..a766d28e83 100644--- a/packages/shared/src/utils/zod.ts+++ b/packages/shared/src/utils/zod.ts@@ -1,4 +1,4 @@-import * as z from "zod";+import { z } from "zod/v4";// to be used for Prisma JSON type// @see: https://github.com/colinhacks/zod#json-type@@ -24,7 +24,7 @@ type Json = Root | { [key: string]: JsonNested } | JsonNested[];export const jsonSchemaNullable: z.ZodType<JsonNested> = z.lazy(() =>z.union([z.array(jsonSchemaNullable),- z.record(jsonSchemaNullable),+ z.record(z.string(), jsonSchemaNullable),nestedLiteralSchema,]),);@@ -33,7 +33,7 @@ export const jsonSchemaNullable: z.ZodType<JsonNested> = z.lazy(() =>export const jsonSchema: z.ZodType<Json> = z.lazy(() =>z.union([z.array(jsonSchemaNullable),- z.record(jsonSchemaNullable),+ z.record(z.string(), jsonSchemaNullable),rootLiteralSchema,]),);diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 3ace5123b5..ae3ca1791e 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -62,8 +62,8 @@ importers:specifier: ^4.24.11version: 4.24.11(patch_hash=cczsf6i6qe2m2htirvgxjtoclu)([email protected](@babel/[email protected])(@opentelemetry/[email protected])(@playwright/[email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected])([email protected]([email protected]))([email protected])zod:- specifier: ^3.24.4- version: 3.24.4+ specifier: ^3.25.62+ version: 3.25.62devDependencies:'@repo/eslint-config':specifier: workspace:*@@ -159,22 +159,22 @@ importers:version: 7.15.2'@langchain/anthropic':specifier: ^0.3.21'@langchain/aws':specifier: ^0.1.10'@langchain/core':specifier: ^0.3.57- version: 0.3.57([email protected]([email protected]))+ version: 0.3.57([email protected]([email protected]))'@langchain/google-genai':specifier: ^0.2.10- version: 0.2.10(@langchain/[email protected]([email protected]([email protected])))([email protected])+ version: 0.2.10(@langchain/[email protected]([email protected]([email protected])))([email protected])'@langchain/google-vertexai':specifier: ^0.2.10- version: 0.2.10(@langchain/[email protected]([email protected]([email protected])))([email protected])+ version: 0.2.10(@langchain/[email protected]([email protected]([email protected])))([email protected])'@langchain/openai':specifier: ^0.5.12'@opentelemetry/api':specifier: '>=1.0.0 <1.10.0'version: 1.9.0@@ -222,10 +222,10 @@ importers:version: 0.27.4langchain:specifier: ^0.3.27- version: 0.3.27(@langchain/[email protected](@langchain/[email protected]([email protected]([email protected]))))(@langchain/[email protected](@langchain/[email protected]([email protected]([email protected]))))(@langchain/[email protected]([email protected]([email protected])))(@langchain/[email protected](@langchain/[email protected]([email protected]([email protected])))([email protected]))(@langchain/[email protected](@langchain/[email protected]([email protected]([email protected])))([email protected]))([email protected])([email protected])([email protected])([email protected]([email protected]))+ version: 0.3.27(@langchain/[email protected](@langchain/[email protected]([email protected]([email protected]))))(@langchain/[email protected](@langchain/[email protected]([email protected]([email protected]))))(@langchain/[email protected]([email protected]([email protected])))(@langchain/[email protected](@langchain/[email protected]([email protected]([email protected])))([email protected]))(@langchain/[email protected](@langchain/[email protected]([email protected]([email protected])))([email protected]))([email protected])([email protected])([email protected])([email protected]([email protected]))langfuse-langchain:specifier: 3.37.4- version: 3.37.4([email protected](@langchain/[email protected](@langchain/[email protected]([email protected]([email protected]))))(@langchain/[email protected](@langchain/[email protected]([email protected]([email protected]))))(@langchain/[email protected]([email protected]([email protected])))(@langchain/[email protected](@langchain/[email protected]([email protected]([email protected])))([email protected]))(@langchain/[email protected](@langchain/[email protected]([email protected]([email protected])))([email protected]))([email protected])([email protected])([email protected])([email protected]([email protected])))+ version: 3.37.4([email protected](@langchain/[email protected](@langchain/[email protected]([email protected]([email protected]))))(@langchain/[email protected](@langchain/[email protected]([email protected]([email protected]))))(@langchain/[email protected]([email protected]([email protected])))(@langchain/[email protected](@langchain/[email protected]([email protected]([email protected])))([email protected]))(@langchain/[email protected](@langchain/[email protected]([email protected]([email protected])))([email protected]))([email protected])([email protected])([email protected])([email protected]([email protected])))lodash:specifier: ^4.17.21version: 4.17.21@@ -251,11 +251,11 @@ importers:specifier: ^3.15.0version: 3.15.0zod:- specifier: ^3.24.4- version: 3.24.4+ specifier: ^3.25.62+ version: 3.25.62zod-to-json-schema:specifier: ^3.23.5- version: 3.23.5([email protected])+ version: 3.23.5([email protected])devDependencies:'@repo/eslint-config':specifier: workspace:*@@ -325,7 +325,7 @@ importers:version: 5.4.5vitest:specifier: ^2.1.2- version: 2.1.2(@types/[email protected])([email protected])([email protected](@types/[email protected])([email protected]))([email protected])+ version: 2.1.2(@types/[email protected])([email protected])([email protected](@types/[email protected])([email protected]))([email protected])web:dependencies:@@ -369,17 +369,17 @@ importers:specifier: ^2.1.5version: 2.1.5([email protected])'@hookform/resolvers':- specifier: ^3.3.4- version: 3.3.4([email protected]([email protected]))+ specifier: ^5.1.1+ version: 5.1.1([email protected]([email protected]))'@langchain/anthropic':specifier: ^0.3.21'@langchain/core':specifier: ^0.3.57- version: 0.3.57([email protected]([email protected]))+ version: 0.3.57([email protected]([email protected]))'@langchain/openai':specifier: ^0.5.12'@langfuse/ee':specifier: workspace:*version: link:../ee@@ -529,7 +529,7 @@ importers:version: 8.55.0(@opentelemetry/[email protected](@opentelemetry/[email protected]))(@opentelemetry/[email protected](@opentelemetry/[email protected]))(@opentelemetry/[email protected](@opentelemetry/[email protected]))(@opentelemetry/[email protected](@opentelemetry/[email protected]))([email protected](@babel/[email protected])(@opentelemetry/[email protected])(@playwright/[email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected])([email protected])'@t3-oss/env-nextjs':specifier: ^0.11.1- version: 0.11.1([email protected])([email protected])+ version: 0.11.1([email protected])([email protected])'@tailwindcss/container-queries':specifier: ^0.1.1@@ -562,10 +562,10 @@ importers:version: 4.23.7(@codemirror/[email protected])(@codemirror/[email protected])(@codemirror/[email protected])'@uiw/react-codemirror':specifier: ^4.21.24- version: 4.23.7(@babel/[email protected])(@codemirror/[email protected](@codemirror/[email protected])(@codemirror/[email protected])(@codemirror/[email protected])(@lezer/[email protected]))(@codemirror/[email protected])(@codemirror/[email protected])(@codemirror/[email protected])(@codemirror/[email protected])(@codemirror/[email protected])(@codemirror/[email protected])([email protected](@lezer/[email protected]))([email protected]([email protected]))([email protected])+ version: 4.23.7(@babel/[email protected])(@codemirror/[email protected](@codemirror/[email protected])(@codemirror/[email protected])(@codemirror/[email protected])(@lezer/[email protected]))(@codemirror/[email protected])(@codemirror/[email protected])(@codemirror/[email protected])(@codemirror/[email protected])(@codemirror/[email protected])(@codemirror/[email protected])([email protected](@lezer/[email protected]))([email protected]([email protected]))([email protected])ai:specifier: ^3.4.9- version: 3.4.9([email protected]([email protected]))([email protected])([email protected])([email protected]([email protected]))([email protected])([email protected]([email protected]))([email protected])+ version: 3.4.9([email protected]([email protected]))([email protected])([email protected])([email protected]([email protected]))([email protected])([email protected]([email protected]))([email protected])bcryptjs:specifier: ^2.4.3version: 2.4.3@@ -625,7 +625,7 @@ importers:version: 0.27.4langchain:specifier: ^0.3.27- version: 0.3.27(@langchain/[email protected](@langchain/[email protected]([email protected]([email protected]))))(@langchain/[email protected](@langchain/[email protected]([email protected]([email protected]))))(@langchain/[email protected]([email protected]([email protected])))(@langchain/[email protected](@langchain/[email protected]([email protected]([email protected])))([email protected]))(@langchain/[email protected](@langchain/[email protected]([email protected]([email protected])))([email protected]))([email protected])([email protected])([email protected])([email protected]([email protected]))+ version: 0.3.27(@langchain/[email protected](@langchain/[email protected]([email protected]([email protected]))))(@langchain/[email protected](@langchain/[email protected]([email protected]([email protected]))))(@langchain/[email protected]([email protected]([email protected])))(@langchain/[email protected](@langchain/[email protected]([email protected]([email protected])))([email protected]))(@langchain/[email protected](@langchain/[email protected]([email protected]([email protected])))([email protected]))([email protected])([email protected])([email protected])([email protected]([email protected]))lodash:specifier: ^4.17.21version: 4.17.21@@ -675,8 +675,8 @@ importers:specifier: ^1.5.1react-hook-form:- specifier: ^7.51.5- version: 7.51.5([email protected])+ specifier: ^7.57.0+ version: 7.57.0([email protected])react-icons:specifier: ^5.2.1version: 5.2.1([email protected])@@ -744,8 +744,8 @@ importers:specifier: ^9.1.9version: 9.1.9(@egjs/[email protected])([email protected])([email protected])([email protected])([email protected]([email protected])([email protected](@egjs/[email protected])([email protected])))([email protected](@egjs/[email protected])([email protected]))zod:- specifier: ^3.24.4- version: 3.24.4+ specifier: ^3.25.62+ version: 3.25.62devDependencies:'@jedmao/location':specifier: ^3.0.0@@ -970,8 +970,8 @@ importers:specifier: ^9.0.1version: 9.0.1zod:- specifier: ^3.24.4- version: 3.24.4+ specifier: ^3.25.62+ version: 3.25.62devDependencies:'@repo/eslint-config':specifier: workspace:*@@ -1041,7 +1041,7 @@ importers:version: 5.4.5vitest:specifier: ^2.1.2- version: 2.1.2(@types/[email protected])([email protected])([email protected](@types/[email protected])([email protected]))([email protected])+ version: 2.1.2(@types/[email protected])([email protected])([email protected](@types/[email protected])([email protected]))([email protected])wait-for-expect:specifier: ^3.0.2version: 3.0.2@@ -1513,6 +1513,10 @@ packages:resolution: {integrity: sha512-RJlIHRueQgwWitWgF8OdFYGZX328Ax5BCemNGlqHfplnRT9ESi8JkFlvaVYbS+UubVY6dpv87Fs2u5M29iNFVQ==}engines: {node: '>=6.9.0'}+ '@babel/[email protected]':+ resolution: {integrity: sha512-cjQ7ZlQ0Mv3b47hABuTevyTuYN4i+loJKGeV9flcCgIK37cCXRh+L1bd3iBHlynerhQ7BhCkn2BPbQUL+rGqFg==}+ engines: {node: '>=6.9.0'}+'@babel/[email protected]':resolution: {integrity: sha512-uU27kfDRlhfKl+w1U6vp16IuvSLtjAxdArVXPa9BvLkrr7CYIsxH5adpHObeAGY/41+syctUWOZ140a2Rvkgjw==}engines: {node: '>=6.9.0'}@@ -1532,8 +1536,8 @@ packages:resolution: {integrity: sha512-DfCRfZsBcrPEHUfuBMgbJ1Ut01Y/itOs+hY2nFLgqsqXd52/iSiVq5TITtUasIUgm+IIKdY2/1I7auiQOEeC9A==}engines: {node: '>=6.9.0'}- '@babel/[email protected]':- resolution: {integrity: sha512-VybsKvpiN1gU1sdMZIp7FcqphVVKEwcuj02x73uvcHE0PTihx1nlBcowYWhDwjpoAXRv43+gDzyggGnn1XZhVw==}+ '@babel/[email protected]':+ resolution: {integrity: sha512-ZGhA37l0e/g2s1Cnzdix0O3aLYm66eF8aufiVteOgnwxgnRP8GoyMj7VWsgWnQbVKXyge7hqrFh2K2TQM6t1Hw==}engines: {node: '>=6.9.0'}'@babel/[email protected]':@@ -1556,8 +1560,8 @@ packages:resolution: {integrity: sha512-0pYVBnDKZO2fnSPCrgM/6WMc7eS20Fbok+0r88fp+YtWVLZrp4CkafFGIp+W0VKw4a22sgebPT99y+FDNMdP4w==}engines: {node: '>=6.9.0'}- '@babel/[email protected]':- resolution: {integrity: sha512-tnUA4RsrmflIM6W6RFTLFSXITtl0wKjgpnLgXyowocVPrbYrLUXSBXDgTs8BlbmIzIdlBySRQjINYs2BAkiLtw==}+ '@babel/[email protected]':+ resolution: {integrity: sha512-0gSFWUPNXNopqtIPQvlD5WgXYI5GY2kP2cCvoT8kczjbfcfuIljTbcWrulD1CIPIX2gt1wghbDy08yE1p+/r3w==}engines: {node: '>=6.9.0'}'@babel/[email protected]':@@ -1582,8 +1586,8 @@ packages:resolution: {integrity: sha512-803gmbQdqwdf4olxrX4AJyFBV/RTr3rSmOj0rKwesmzlfhYNDEs+/iOcznzpNWlJlIlTJC2QfPFcHB6DlzdVLQ==}engines: {node: '>=6.9.0'}- '@babel/[email protected]':- resolution: {integrity: sha512-4A/SCr/2KLd5jrtOMFzaKjVtAei3+2r/NChoBNoZ3EyP/+GlhoaEGoWOZUmFmoITP7zOJyHIMm+DYRd8o3PvHA==}+ '@babel/[email protected]':+ resolution: {integrity: sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==}engines: {node: '>=6.9.0'}'@babel/[email protected]':@@ -1594,6 +1598,10 @@ packages:resolution: {integrity: sha512-Ed61U6XJc3CVRfkERJWDz4dJwKe7iLmmJsbOGu9wSloNSFttHV0I8g6UAgb7qnK5ly5bGLPd4oXZlxCdANBOWQ==}engines: {node: '>=6.9.0'}+ '@babel/[email protected]':+ resolution: {integrity: sha512-D2hP9eA+Sqx1kBZgzxZh0y1trbuU+JoDkiEwqhQ36nodYqJwyEIhPSdMNd7lOm/4io72luTPWH20Yda0xOuUow==}+ engines: {node: '>=6.9.0'}+'@babel/[email protected]':resolution: {integrity: sha512-85ttAOMLsr53VgXkTbkx8oA6YTfT4q7/HzXSLEYmjcSTJPMPQtvq1BD79Byep5xMUYbGRzEpDsjUf3dyp54IKw==}engines: {node: '>=6.9.0'}@@ -1611,8 +1619,8 @@ packages:engines: {node: '>=6.0.0'}hasBin: true- '@babel/[email protected]':- resolution: {integrity: sha512-iaepho73/2Pz7w2eMS0Q5f83+0RKI7i4xmiYeBmDzfRVbQtTOG7Ts0S4HzJVsTMGI9keU8rNfuZr8DKfSt7Yyg==}+ '@babel/[email protected]':+ resolution: {integrity: sha512-OsQd175SxWkGlzbny8J3K8TnnDD0N3lrIUtB92xwyRpzaenGZhxDvxN/JgU00U3CDZNj9tPuDJ5H0WS4Nt3vKg==}engines: {node: '>=6.0.0'}hasBin: true@@ -1705,32 +1713,32 @@ packages:resolution: {integrity: sha512-FDSOghenHTiToteC/QRlv2q3DhPZ/oOXTBoirfWNx1Cx3TMVcGWQtMMmQcSvb/JjpNeGzx8Pq/b4fKEJuWm1sw==}engines: {node: '>=6.9.0'}- '@babel/[email protected]':- resolution: {integrity: sha512-VtPOkrdPHZsKc/clNqyi9WUA8TINkZ4cGk63UUE3u4pmB2k+ZMQRDuIOagv8UVd6j7k0T3+RRIb7beKTebNbcw==}+ '@babel/[email protected]':+ resolution: {integrity: sha512-vbavdySgbTTrmFE+EsiqUTzlOr5bzlnJtUv9PynGCAKvfQqjIXbvFdumPM/GxMDfyuGMJaJAU6TO4zc1Jf1i8Q==}engines: {node: '>=6.9.0'}'@babel/[email protected]':resolution: {integrity: sha512-Bkf2q8lMB0AFpX0NFEqSbx1OkTHf0f+0j82mkw+ZpzBnkk7e9Ql0891vlfgi+kHwOk8tQjiQHpqh4LaSa0fKEA==}engines: {node: '>=6.9.0'}- '@babel/[email protected]':- resolution: {integrity: sha512-2ncevenBqXI6qRMukPlXwHKHchC7RyMuu4xv5JBXRfOGVcTy1mXCD12qrp7Jsoxll1EV3+9sE4GugBVRjT2jFA==}+ '@babel/[email protected]':+ resolution: {integrity: sha512-LPDZ85aEJyYSd18/DkjNh4/y1ntkE5KwUHWTiqgRxruuZL2F1yuHligVHLvcHY2vMHXttKFpJn6LwfI7cw7ODw==}engines: {node: '>=6.9.0'}'@babel/[email protected]':resolution: {integrity: sha512-xuU6o9m68KeqZbQuDt2TcKSxUw/mrsvavlEqQ1leZ/B+C9tk6E4sRWy97WaXgvq5E+nU3cXMxv3WKOCanVMCmQ==}engines: {node: '>=6.9.0'}- '@babel/[email protected]':- resolution: {integrity: sha512-19lYZFzYVQkkHkl4Cy4WrAVcqBkgvV2YM2TU3xG6DIwO7O3ecbDPfW3yM3bjAGcqcQHi+CCtjMR3dIEHxsd6bA==}+ '@babel/[email protected]':+ resolution: {integrity: sha512-oNcu2QbHqts9BtOWJosOVJapWjBDSxGCpFvikNR5TGDYDQf3JwpIoMzIKrvfoti93cLfPJEG4tH9SPVeyCGgdA==}engines: {node: '>=6.9.0'}'@babel/[email protected]':resolution: {integrity: sha512-+j7a5c253RfKh8iABBhywc8NSfP5LURe7Uh4qpsh6jc+aLJguvmIUBdjSdEMQv2bENrCR5MfRdjGo7vzS/ob7w==}engines: {node: '>=6.9.0'}- '@babel/[email protected]':- resolution: {integrity: sha512-H45s8fVLYjbhFH62dIJ3WtmJ6RSPt/3DRO0ZcT2SUiYiQyz3BLVb9ADEnLl91m74aQPS3AzzeajZHYOalWe3bg==}+ '@babel/[email protected]':+ resolution: {integrity: sha512-ETyHEk2VHHvl9b9jZP5IHPavHYk57EhanlRRuae9XCpb/j5bDCbPPMOBfCWhnl/7EDJz0jEMCi/RhccCE8r1+Q==}engines: {node: '>=6.9.0'}'@baselime/[email protected]':@@ -1811,8 +1819,8 @@ packages:'@codemirror/[email protected]':resolution: {integrity: sha512-wcP8XPPhDH2vTqf181U8MbZnW+tDyPYy0UzVOa+oHORjyT+mhhom9vBd7dApJwoDz9Nb/a8kHjJIsuA/t8vNFw==}- '@codemirror/[email protected]':- resolution: {integrity: sha512-A7+f++LodNNc1wGgoRDTt78cOwWm9KVezApgjOMp1W4hM0898nsqBXwF+sbePE7ZRcjN7Sa1Z5m2oN27XkmEjQ==}+ '@codemirror/[email protected]':+ resolution: {integrity: sha512-5kS1U7emOGV84vxC+ruBty5sUgcD0te6dyupyRVG2zaSjhTDM73LhVKUtVwiqSe6QwmEoA4SCiU8AKPFyumAWQ==}'@codemirror/[email protected]':resolution: {integrity: sha512-u4q7PnZlJUojeRe8FJa/njJcMctISGgPQ4PnWsd9268R4ZTtU+tfFYmwkBvgcrK2+QQ8tYFVALVb5fVJykKc5A==}@@ -2245,8 +2253,8 @@ packages:peerDependencies:eslint: ^6.0.0 || ^7.0.0 || >=8.0.0- '@eslint-community/[email protected]':- resolution: {integrity: sha512-soEIOALTfTK6EjmKMMoLugwaP0rzkad90iIWd1hMO9ARkSAyjfMfkRRhLvD5qH7vvM0Cg72pieUfR6yh6XxC4w==}+ '@eslint-community/[email protected]':+ resolution: {integrity: sha512-dyybb3AcajC7uha6CvhdVRJqaKyn7w2YKqKyAN37NKYgZT36w+iRb0Dymmc5qEJ549c/S31cMMSFd75bteCpCw==}engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}peerDependencies:eslint: ^6.0.0 || ^7.0.0 || >=8.0.0@@ -2273,12 +2281,18 @@ packages:'@floating-ui/[email protected]':resolution: {integrity: sha512-7XJ9cPU+yI2QeLS+FCSlqNFZJq8arvswefkZrYI1yQBbftw6FyrZOxYSh+9S7z7TpeWlRt9zJ5IhM1WIL334jA==}+ '@floating-ui/[email protected]':+ resolution: {integrity: sha512-azI0DrjMMfIug/ExbBaeDVJXcY0a7EPvPjb2xAJPa4HeimBX+Z18HK8QQR3jb6356SnDDdxx+hinMLcJEDdOjw==}+'@floating-ui/[email protected]':resolution: {integrity: sha512-qkMCxSR24v2vGkhYDo/UzxfJN3D4syqSjyuTFz6C7XcpU1pASPRieNI0Kj5VP3/503mOfYiGY891ugBX1GlABQ==}'@floating-ui/[email protected]':resolution: {integrity: sha512-RnDthu3mzPlQ31Ss/BTwQ1zjzIhr3lk1gZB1OC56h/1vEtaXkESrOqL5fQVMfXpwGtRwX+YsZBdyHtJMQnkArw==}+ '@floating-ui/[email protected]':+ resolution: {integrity: sha512-cwsmW/zyw5ltYTUeeYJ60CnQuPqmGwuGVhG9w0PRaRKkAyi38BT5CKrpIbb+jtahSwUl04cWzSx9ZOIxeS6RsQ==}+'@floating-ui/[email protected]':resolution: {integrity: sha512-htwHm67Ji5E/pROEAr7f8IKFShuiCKHwUC/UY4vC3I5jiSvGFAYnSYiZO5MlGmads+QqvUkR9ANHEguGrDv72g==}peerDependencies:@@ -2291,6 +2305,12 @@ packages:react: '>=16.8.0'react-dom: '>=16.8.0'+ '@floating-ui/[email protected]':+ resolution: {integrity: sha512-huMBfiU9UnQ2oBwIhgzyIiSpVgvlDstU8CX0AF+wS+KzmYMs0J2a3GwuFHV1Lz+jlrQGeC1fF+Nv0QoumyV0bA==}+ peerDependencies:+ react: '>=16.8.0'+ react-dom: '>=16.8.0'+'@floating-ui/[email protected]':resolution: {integrity: sha512-JyNk4A0Ezirq8FlXECvRtQOX/iBe5Ize0W/pLkrZjfHW9GUV7Xnq6zm6fyZuQzaHHqEnVizmvlA96e1/CkZv+w==}peerDependencies:@@ -2306,6 +2326,9 @@ packages:'@floating-ui/[email protected]':resolution: {integrity: sha512-kym7SodPp8/wloecOpcmSnWJsK7M0E5Wg8UcFA+uO4B9s5d0ywXOEro/8HM9x0rW+TljRzul/14UYz3TleT3ig==}+ '@floating-ui/[email protected]':+ resolution: {integrity: sha512-MDWhGtE+eHw5JW7lq4qhc5yRLS11ERl1c7Z6Xd0a58DozHES6EnNNwUWbMiG4J9Cgj053Bhk8zvlhFYKVhULwg==}+'@google-cloud/[email protected]':resolution: {integrity: sha512-DJS3s0OVH4zFDB1PzjxAsHqJT6sKVbRwwML0ZBP9PbU7Yebtu/7SWMRzvO2J3nUi9pRNITCfu4LJeooM2w4pjg==}engines: {node: '>=14.0.0'}@@ -2365,10 +2388,10 @@ packages:peerDependencies:react: '>= 16'- '@hookform/[email protected]':- resolution: {integrity: sha512-o5cgpGOuJYrd+iMKvkttOclgwRW86EsWJZZRC23prf0uU2i48Htq4PuT73AVb9ionFyZrwYEITuOFGF+BydEtQ==}+ '@hookform/[email protected]':+ resolution: {integrity: sha512-J/NVING3LMAEvexJkyTLjruSm7aOFx7QX21pzkiJfMoNG0wl5aFEjLTl7ay7IQb9EWY6AkrBy7tHL2Alijpdcg==}peerDependencies:- react-hook-form: ^7.0.0+ react-hook-form: ^7.55.0'@humanwhocodes/[email protected]':resolution: {integrity: sha512-3T8LkOmg45BV5FICb15QQMsyUSWrQ8AygVfC7ZG32zOalnqrilm018ZVCw0eapXux8FtA33q8PSRSstjee3jSg==}@@ -2886,8 +2909,8 @@ packages:'@types/react':optional: true- '@mui/[email protected]':- resolution: {integrity: sha512-TxJ4ezEeedWHBjOmLtxI203a9DII9l4k83RXmz1PYSAmnyEcK2PglTNmJGxswC/wM5cdl9ap2h8lnXvt2swAGQ==}+ '@mui/[email protected]':+ resolution: {integrity: sha512-2UCEiK29vtiZTeLdS2d4GndBKacVyxGvReznGXGr+CzW/YhjIX+OHUdCIczZjzcRAgKBGmE9zCIgoV9FleuyRQ==}peerDependencies:'@types/react': ^17.0.0 || ^18.0.0 || ^19.0.0peerDependenciesMeta:@@ -5022,6 +5045,9 @@ packages:resolution: {integrity: sha512-xs/KAwWOeCklq8aMlnpk25LgxEYHKOEodfjfKclDMLcBJEVEKzDLxZxBQyztcuPJ7F54213NJS8PxoiHNMdItQ==}engines: {node: '>=16.0.0'}+ '@standard-schema/[email protected]':+ resolution: {integrity: sha512-e7Mew686owMaPJVNNLs55PUvgz371nKgwsc4vxE49zsODpJEnxgxRo2y/OKrqueavXgZNMDVj3DdHFlaSAeU8g==}+'@swc/[email protected]':resolution: {integrity: sha512-e2BR4lsJkkRlKZ/qCHPw9ZaSxc0MVUd7gtbtaB7aMvHeJVYe8sOB8DBZkP2DtISHGSku9sCK6T6cnY0CtXrOCQ==}@@ -5285,6 +5311,9 @@ packages:'@types/[email protected]':resolution: {integrity: sha512-w28IoSUCJpidD/TGviZwwMJckNESJZXFu7NBZ5YJ4mEUnNraUn9Pm8HSZm/jDF1pDWYKspWE7oVphigUPRakIQ==}+ '@types/[email protected]':+ resolution: {integrity: sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==}+'@types/[email protected]':resolution: {integrity: sha512-KOzM7MhcBFlmnlr/fzISFF5vGWVSvN6fTd4T+ExOt08bA/dA5kpSzY52nMsI1KDFmUREpJelPYyuslLRSjjgCg==}@@ -5396,8 +5425,8 @@ packages:'@types/[email protected]':resolution: {integrity: sha512-hCZTSvwbzWGvhqxp/RqVqwU999pBf2vp7hzIjiYOsl8wqOmUxkQ6ddw1cV3l8811+kdUFus/q4d1Y3E3SyEifA==}- '@types/[email protected]':- resolution: {integrity: sha512-gNMvNH49DJ7OJYv+KAKn0Xp45p8PLl6zo2YnvDIbTd4J6MER2BmWN49TG7n9LvkyihINxeKW8+3bfS2yDC9dzQ==}+ '@types/[email protected]':+ resolution: {integrity: sha512-F6bEyamV9jKGAFBEmlQnesRPGOQqS2+Uwi0Em15xenOxHaf2hv6L8YCVn3rPdPJOiJfPiCnLIRyvwVaqMY3MIw==}'@types/[email protected]':resolution: {integrity: sha512-iLR+1vTTJ3p0QaOUq6ACbY1mzKTODFDT/XedZI8BksOotFmL4ForwDfRQ/DZeuTHR7/2i4lI1D203gdfxuqTlA==}@@ -5847,8 +5876,8 @@ packages:engines: {node: '>=0.4.0'}hasBin: true- resolution: {integrity: sha512-OvQ/2pUDKmgfCg++xsTX1wGxfTaszcHVcTctW4UJB4hibJx2HXxxO5UmVgyjMa+ZDsiaf5wWLXYpRWMmBI0QHg==}+ resolution: {integrity: sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==}engines: {node: '>=0.4.0'}hasBin: true@@ -6179,8 +6208,8 @@ packages:engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7}hasBin: true- resolution: {integrity: sha512-KDi1Ny1gSePi1vm0q4oxSF8b4DR44GF4BbmS2YdhPLOEqd8pDviZOGH/GsmRwoWJ2+5Lr085X7naowMwKHDG1A==}+ resolution: {integrity: sha512-PJ8gYKeS5e/whHBh8xrwYK+dAvEj7JXtz6uTucnMRB8OiGTsKccFekoRrjajPBHV8oOY+2tI4uxeceSimKwMFA==}engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7}hasBin: true@@ -6262,6 +6291,9 @@ packages:resolution: {integrity: sha512-B5C0I0UmaGqHgo5FuqJ7hBd4L57A4dDD+Xi+XX1nXOoxGeDdY4Ko38qJYOyqznBVJEqON5p8P1x5zRR3+rsnxA==}+ resolution: {integrity: sha512-DCQHBBZtiK6JVkAGw7drvAMK0Q0POD/xZvEmDp6baiMMP6QXXk9HpD6mNYBZWhOPG6LvIDb82ITqtWjhDckHCA==}+resolution: {integrity: sha512-eyrF0jiFpY+3drT6383f1qhkbGsLSifNAjA61IUjZjmLCWjItY6LB9ft9YhoDgwfmclB2zhu51Lc7+95b8NRAg==}@@ -6929,6 +6961,15 @@ packages:supports-color:optional: true+ resolution: {integrity: sha512-KcKCqiftBJcZr++7ykoDIEwSa3XWowTfNPo92BYxjXiyYEVrUQh2aLyhxBCwww+heortUFxEJYcRzosstTEBYQ==}+ engines: {node: '>=6.0'}+ peerDependencies:+ supports-color: '*'+ peerDependenciesMeta:+ supports-color:+ optional: true+resolution: {integrity: sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==}engines: {node: '>=0.10.0'}@@ -7174,8 +7215,8 @@ packages:resolution: {integrity: sha512-w+9yAVHoHhysCa+gln7AzbO9CdjFcL/wN/5dd+XW/Msl2d/4+WisEaCF1nty0xbAKaxdaJfgLB2296U7zZB7BA==}- resolution: {integrity: sha512-QgX9EBvWGmvSRa74zqfnG7+Eno0Ak0vftBll0Pt2/z5b3bEGYL6OUXLgKPtvx73dn3dvwrlyVkjPKRRlhLYTEg==}+ resolution: {integrity: sha512-QPWqHL0BglzPYyJJ1zSSmwFFL6MFXhbACOCcsCdUMCkzPdS9/OIBVxg516X/Ado2qwAq8k0nJJ7phQPCqiaFAw==}resolution: {integrity: sha512-+cYTcFB1QqD4j4LegwLfpCNxifb6dDFUAwk6RsLusCwIaZI6or2f+q8rs5tTB2YC53HhOlIbEaqHMAAC8IOIwA==}@@ -7249,8 +7290,8 @@ packages:resolution: {integrity: sha512-scxAJaewsahbqTYrGKJihhViaM6DDZDDoucfvzNbK0pOren1g/daDQ3IAhzn+1G14rBG7w+i5N+qul60++zlKA==}engines: {node: '>= 0.4'}- resolution: {integrity: sha512-qqnD1yMU6tk/jnaMosogGySTZP8YtUgAffA9nMN+E/rjxcfRQ6IEk7IiozUjgxKoFHBGjTLnrHB/YC45r/59EQ==}+ resolution: {integrity: sha512-jEQoCwk8hyb2AZziIOLhDqpm5+2ww5uIE6lkO/6jcOCusfk6LhMHpXXfBLXTZ7Ydyt0j4VoUQv6uGNYbdW+kBA==}resolution: {integrity: sha512-MZ4iQ6JwHOBQjahnjwaC1ZtIBH+2ohjamzAO3oaHcXYup7qxjF2fixyH+Q71voWHeOkI2q/TnJao/KfXYIZWbw==}@@ -7917,8 +7958,8 @@ packages:resolution: {integrity: sha512-g0QYk1dZBxGwk+Ngc+ltRH2IBp2f7zBkBMBJZCDerh6EhlhSR6+9irMCuT/09zD6qkarHUSn529sK/yL4S27mg==}engines: {node: '>= 0.4'}- resolution: {integrity: sha512-kGzZ3LWWQcGIAmg6iWvXn0ei6WDtV26wzHRMwDSzmAbcXrTEXxHy6IehI6/4eT6VRKyMP1eF1VqwrVUmE/LR7A==}+ resolution: {integrity: sha512-auHyJ4AgMz7vgS8Hp3N6HXSmlMdUyhSUrfBF16w153rxtLIEOE+HGqaBppczZvnHLqQJfiHotCYpNhl0lUROFQ==}resolution: {integrity: sha512-k9PN+cFBmaLWtVz29SkUoqU5O0slLuHJXt/2P+tMVFT+phsSGXGkp9t3rQIqdz0e+06EHNGs3oM6ZX1s2zHxRg==}@@ -10517,11 +10558,11 @@ packages:react: '>= 16.3.0'react-dom: '>= 16.3.0'- resolution: {integrity: sha512-J2ILT5gWx1XUIJRETiA7M19iXHlG74+6O3KApzvqB/w8S5NQR7AbU8HVZrMALdmDgWpRPYiZJl0zx8Z4L2mP6Q==}- engines: {node: '>=12.22.0'}+ resolution: {integrity: sha512-RbEks3+cbvTP84l/VXGUZ+JMrKOS8ykQCRYdm5aYsxnDquL0vspsyNhGRO7pcH6hsZqWlPOjLye7rJqdtdAmlg==}+ engines: {node: '>=18.0.0'}peerDependencies:- react: ^16.8.0 || ^17 || ^18+ react: ^16.8.0 || ^17 || ^18 || ^19resolution: {integrity: sha512-zdbW5GstTzXaVKvGSyTaBalt7HSfuK5ovrzlpyiWHAFXndXTdd/1hdDHI4xBM1Mn7YriT6aqESucFl9kEXzrdw==}@@ -10888,8 +10929,8 @@ packages:resolution: {integrity: sha512-pN/yOAvcC+5rQ5nERGuwrjLlYvLTbCibnZ1I7B1LaiAz9BRBlE9GMgE/eqV30P7aJQUf7Ddimy/RsbYO/GrVGg==}engines: {node: '>= 10.13.0'}- resolution: {integrity: sha512-Gf9qqc58SpCA/xdziiHz35F4GNIWYWZrEshUc/G/r5BnLph6xpKuLeoJoQuj5WfBIx/eQLf+hmVPYHaxJu7V2g==}+ resolution: {integrity: sha512-Gn/JaSk/Mt9gYubxTtSn/QCV4em9mpAPiR1rqy/Ocu19u/G9J5WWdNoUT4SiV6mFC3y6cxyFcFwdzPM3FgxGAQ==}engines: {node: '>= 10.13.0'}@@ -10921,6 +10962,11 @@ packages:engines: {node: '>=10'}hasBin: true+ resolution: {integrity: sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==}+ engines: {node: '>=10'}+ hasBin: true+resolution: {integrity: sha512-dW41u5VfLXu8SJh5bwRmyYUbAoSB3c9uQh6L8h/KtsFREPWpbX1lrljJo186Jc4nmci/sGUZ9a0a0J2zgfq2hw==}engines: {node: '>= 0.8.0'}@@ -10931,14 +10977,14 @@ packages:resolution: {integrity: sha512-1chMo1dST4pFA9RDXAtF0Rbjaut4is7bzFbI1Z26IuMub68pNCILku85aYmeFhvnY//BXUPUhoRMjYcsT93J/Q==}- resolution: {integrity: sha512-H5vs53+39+x4Udwp4J5rNZfgFuA+Lt+uU+09w1gYBVWomtAl98B+E9w7yC05Xc81/HgLvJdlyqJbU0fJCKCmdw==}+ resolution: {integrity: sha512-0QvCV2lM3aj/U3YozDiVwx9zpH0q8A60CTWIv4Jszj/givcudPb48B+rkU5D51NJ0pTpweGMttHjboPa9/zoIQ==}engines: {node: '>=10'}peerDependencies:seroval: ^1.0- resolution: {integrity: sha512-yBxFFs3zmkvKNmR0pFSU//rIsYjuX418TnlDmc2weaq5XFDqDIV/NOMPBoLrbxjLH42p4UzRuXHryXh9dYcKcw==}+ resolution: {integrity: sha512-RbcPH1n5cfwKrru7v7+zrZvjLurgHhGyso3HTyGtRivGWgYjbOmGuivCQaORNELjNONoK35nj28EoWul9sb1zQ==}engines: {node: '>=10'}@@ -11359,6 +11405,10 @@ packages:resolution: {integrity: sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==}engines: {node: '>=6'}+ resolution: {integrity: sha512-Re10+NauLTMCudc7T5WLFLAwDhQ0JWdrMK+9B2M8zR5hRExKmsRDCBA7/aV/pNJFltmBFO5BAMlQFi/vq3nKOg==}+ engines: {node: '>=6'}+resolution: {integrity: sha512-090nwYJDmlhwFwEW3QQl+vaNnxsO2yVsd45eTKRBzSzu+hlb1w2K9inVq5b0ngXuLVqQ4ApvsUHHnu/zQNkWAg==}@@ -11398,8 +11448,8 @@ packages:uglify-js:optional: true- resolution: {integrity: sha512-LBAhFyLho16harJoWMg/nZsQYgTrg5jXOn2nCYjRUcZZEdE3qa2zb8QEDRUGVZBW4rlazf2fxkg8tztybTaqWw==}+ resolution: {integrity: sha512-UYCvU9YQW2f/Vwl+P0GfhxJxbUGLwd+5QrrGgLajzWAtC/23AX0vcise32kkP7Eu0Wu9VlzzHAXkLObgjQfFlQ==}engines: {node: '>=10'}hasBin: true@@ -11999,8 +12049,8 @@ packages:resolution: {integrity: sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ==}- resolution: {integrity: sha512-TnbFSbcOCcDgjZ4piURLCbJ3nJhznVh9kw6F6iokjiFPl8ONxe9A6nMDVXDiNbrSfLILs6vB07F7wLBrwPYzJw==}+ resolution: {integrity: sha512-c5EGNOiyxxV5qmTtAB7rbiXxi1ooX1pQKMLX/MIabJjRA0SJBQOjKF+KSVfHkr9U1cADPon0mRiVe/riyaiDUA==}engines: {node: '>=10.13.0'}@@ -12021,6 +12071,10 @@ packages:resolution: {integrity: sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w==}engines: {node: '>=10.13.0'}+ resolution: {integrity: sha512-ykKKus8lqlgXX/1WjudpIEjqsafjOTcOJqxnAbMLAu/KCsDCJ6GBtvscewvTkrn24HsnvFwrSCbenFrhtcCsAA==}+ engines: {node: '>=10.13.0'}+resolution: {integrity: sha512-kyDivFZ7ZM0BVOUteVbDFhlRt7Ah/CSPwJdi8hBpkK7QLumUqdLtVfm/PX/hkcnrvr0i77fO5+TjZ94Pe+C9iw==}@@ -12236,8 +12290,8 @@ packages:resolution: {integrity: sha512-iC+8Io04lddc+mVqQ9AZ7OQ2MrUKGN+oIQyq1vemgt46jwCwLfhq7/pwnBnNXXXZb8VTVLKwp9EDkx+ryxIWmg==}- resolution: {integrity: sha512-OdqJE9UDRPwWsrHjLN2F8bPxvwJBK22EHLWtanu0LSYr5YqzsaaW3RMgmjwr8Rypg5k+meEJdSPXJZXE/yqOMg==}+ resolution: {integrity: sha512-YCxsr4DmhPcrKPC9R1oBHQNlQzlJEyPAId//qTau/vBee9uO8K6prmRq4eMkOyxvBfH4wDPIPdLx9HVMWIY3xA==}resolution: {integrity: sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A==}@@ -12248,61 +12302,61 @@ snapshots:'@adobe/[email protected]': {}- '@ai-sdk/[email protected]([email protected])':+ '@ai-sdk/[email protected]([email protected])':dependencies:'@ai-sdk/provider': 0.0.24eventsource-parser: 1.1.2nanoid: 3.3.8secure-json-parse: 2.7.0optionalDependencies:- zod: 3.24.4+ zod: 3.25.62'@ai-sdk/[email protected]':dependencies:json-schema: 0.4.0dependencies:- '@ai-sdk/provider-utils': 1.0.20([email protected])- '@ai-sdk/ui-utils': 0.0.46([email protected])+ '@ai-sdk/provider-utils': 1.0.20([email protected])+ '@ai-sdk/ui-utils': 0.0.46([email protected])swr: 2.2.5([email protected])optionalDependencies:react: 18.2.0- zod: 3.24.4+ zod: 3.25.62dependencies:- '@ai-sdk/provider-utils': 1.0.20([email protected])- '@ai-sdk/ui-utils': 0.0.46([email protected])+ '@ai-sdk/provider-utils': 1.0.20([email protected])+ '@ai-sdk/ui-utils': 0.0.46([email protected])optionalDependencies:solid-js: 1.8.18transitivePeerDependencies:- zoddependencies:- '@ai-sdk/provider-utils': 1.0.20([email protected])- '@ai-sdk/ui-utils': 0.0.46([email protected])+ '@ai-sdk/provider-utils': 1.0.20([email protected])+ '@ai-sdk/ui-utils': 0.0.46([email protected])sswr: 2.1.0([email protected])optionalDependencies:svelte: 4.2.19transitivePeerDependencies:- zod- '@ai-sdk/[email protected]([email protected])':+ '@ai-sdk/[email protected]([email protected])':dependencies:'@ai-sdk/provider': 0.0.24- '@ai-sdk/provider-utils': 1.0.20([email protected])+ '@ai-sdk/provider-utils': 1.0.20([email protected])json-schema: 0.4.0secure-json-parse: 2.7.0- zod-to-json-schema: 3.23.2([email protected])+ zod-to-json-schema: 3.23.2([email protected])optionalDependencies:- zod: 3.24.4+ zod: 3.25.62dependencies:- '@ai-sdk/provider-utils': 1.0.20([email protected])- '@ai-sdk/ui-utils': 0.0.46([email protected])+ '@ai-sdk/provider-utils': 1.0.20([email protected])+ '@ai-sdk/ui-utils': 0.0.46([email protected])swrv: 1.0.4([email protected]([email protected]))optionalDependencies:vue: 3.4.27([email protected])@@ -13520,6 +13574,13 @@ snapshots:js-tokens: 4.0.0picocolors: 1.1.1+ '@babel/[email protected]':+ dependencies:+ '@babel/helper-validator-identifier': 7.27.1+ js-tokens: 4.0.0+ picocolors: 1.1.1+ optional: true+'@babel/[email protected]': {}'@babel/[email protected]':@@ -13557,10 +13618,10 @@ snapshots:'@jridgewell/trace-mapping': 0.3.25jsesc: 2.5.2- '@babel/[email protected]':+ '@babel/[email protected]':dependencies:- '@babel/parser': 7.27.0- '@babel/types': 7.27.0+ '@babel/parser': 7.27.5+ '@babel/types': 7.27.6'@jridgewell/gen-mapping': 0.3.8'@jridgewell/trace-mapping': 0.3.25jsesc: 3.1.0@@ -13589,10 +13650,10 @@ snapshots:dependencies:'@babel/types': 7.24.0- '@babel/[email protected]':+ '@babel/[email protected]':dependencies:- '@babel/traverse': 7.27.0- '@babel/types': 7.27.0+ '@babel/traverse': 7.27.4+ '@babel/types': 7.27.6transitivePeerDependencies:- supports-coloroptional: true@@ -13618,12 +13679,14 @@ snapshots:'@babel/[email protected]': {}- '@babel/[email protected]': {}+ '@babel/[email protected]': {}'@babel/[email protected]': {}'@babel/[email protected]': {}+ '@babel/[email protected]': {}+'@babel/[email protected]': {}'@babel/[email protected]':@@ -13645,9 +13708,9 @@ snapshots:dependencies:'@babel/types': 7.24.0- '@babel/[email protected]':+ '@babel/[email protected]':dependencies:- '@babel/types': 7.27.0+ '@babel/types': 7.27.6'@babel/[email protected](@babel/[email protected])':dependencies:@@ -13735,9 +13798,7 @@ snapshots:dependencies:regenerator-runtime: 0.14.1- '@babel/[email protected]':- dependencies:- regenerator-runtime: 0.14.1+ '@babel/[email protected]': {}'@babel/[email protected]':dependencies:@@ -13745,11 +13806,11 @@ snapshots:'@babel/parser': 7.24.1'@babel/types': 7.24.0- '@babel/[email protected]':+ '@babel/[email protected]':dependencies:- '@babel/code-frame': 7.26.2- '@babel/parser': 7.27.0- '@babel/types': 7.27.0+ '@babel/code-frame': 7.27.1+ '@babel/parser': 7.27.5+ '@babel/types': 7.27.6optional: true'@babel/[email protected]':@@ -13767,14 +13828,14 @@ snapshots:transitivePeerDependencies:- supports-color- '@babel/[email protected]':+ '@babel/[email protected]':dependencies:- '@babel/code-frame': 7.26.2- '@babel/generator': 7.27.0- '@babel/parser': 7.27.0- '@babel/template': 7.27.0- '@babel/types': 7.27.0- debug: 4.4.0+ '@babel/code-frame': 7.27.1+ '@babel/generator': 7.27.5+ '@babel/parser': 7.27.5+ '@babel/template': 7.27.2+ '@babel/types': 7.27.6+ debug: 4.4.1globals: 11.12.0transitivePeerDependencies:- supports-color@@ -13786,10 +13847,10 @@ snapshots:'@babel/helper-validator-identifier': 7.24.5to-fast-properties: 2.0.0- '@babel/[email protected]':+ '@babel/[email protected]':dependencies:- '@babel/helper-string-parser': 7.25.9- '@babel/helper-validator-identifier': 7.25.9+ '@babel/helper-string-parser': 7.27.1+ '@babel/helper-validator-identifier': 7.27.1dependencies:@@ -13861,9 +13922,9 @@ snapshots:'@codemirror/view': 6.36.2'@lezer/common': 1.2.3- '@codemirror/[email protected](@codemirror/[email protected])(@codemirror/[email protected])(@codemirror/[email protected])(@lezer/[email protected])':+ '@codemirror/[email protected](@codemirror/[email protected])(@codemirror/[email protected])(@codemirror/[email protected])(@lezer/[email protected])':dependencies:- '@codemirror/language': 6.11.0+ '@codemirror/language': 6.11.1'@codemirror/state': 6.5.1'@codemirror/view': 6.36.2'@lezer/common': 1.2.3@@ -13877,7 +13938,7 @@ snapshots:'@codemirror/[email protected]':dependencies:- '@codemirror/language': 6.11.0+ '@codemirror/language': 6.11.1'@codemirror/state': 6.5.1'@codemirror/view': 6.36.2'@lezer/common': 1.2.3@@ -13896,7 +13957,7 @@ snapshots:'@lezer/lr': 1.4.2style-mod: 4.1.2- '@codemirror/[email protected]':+ '@codemirror/[email protected]':dependencies:'@codemirror/state': 6.5.1'@codemirror/view': 6.36.2@@ -13929,7 +13990,7 @@ snapshots:'@codemirror/[email protected]':dependencies:- '@codemirror/language': 6.11.0+ '@codemirror/language': 6.11.1'@codemirror/state': 6.5.1'@codemirror/view': 6.36.2'@lezer/highlight': 1.2.1@@ -14020,8 +14081,8 @@ snapshots:'@emotion/[email protected]':dependencies:- '@babel/helper-module-imports': 7.25.9- '@babel/runtime': 7.27.0+ '@babel/helper-module-imports': 7.27.1+ '@babel/runtime': 7.27.6'@emotion/hash': 0.9.2'@emotion/memoize': 0.9.0'@emotion/serialize': 1.3.3@@ -14055,7 +14116,7 @@ snapshots:dependencies:- '@babel/runtime': 7.27.0+ '@babel/runtime': 7.27.6'@emotion/babel-plugin': 11.13.5'@emotion/cache': 11.14.0'@emotion/serialize': 1.3.3@@ -14083,7 +14144,7 @@ snapshots:'@emotion/[email protected](@emotion/[email protected](@types/[email protected])([email protected]))(@types/[email protected])([email protected])':dependencies:- '@babel/runtime': 7.27.0+ '@babel/runtime': 7.27.6'@emotion/babel-plugin': 11.13.5'@emotion/is-prop-valid': 1.3.1'@emotion/react': 11.11.4(@types/[email protected])([email protected])@@ -14258,7 +14319,7 @@ snapshots:eslint: 8.57.0eslint-visitor-keys: 3.4.3- '@eslint-community/[email protected]([email protected])':+ '@eslint-community/[email protected]([email protected])':dependencies:eslint: 8.57.0eslint-visitor-keys: 3.4.3@@ -14291,6 +14352,10 @@ snapshots:dependencies:'@floating-ui/utils': 0.2.8+ '@floating-ui/[email protected]':+ dependencies:+ '@floating-ui/utils': 0.2.9+'@floating-ui/[email protected]':dependencies:'@floating-ui/core': 1.6.8@@ -14301,6 +14366,11 @@ snapshots:'@floating-ui/core': 1.6.0'@floating-ui/utils': 0.2.8+ '@floating-ui/[email protected]':+ dependencies:+ '@floating-ui/core': 1.7.1+ '@floating-ui/utils': 0.2.9+dependencies:'@floating-ui/dom': 1.6.3@@ -14313,6 +14383,12 @@ snapshots:react: 18.2.0react-dom: 18.2.0([email protected])+ dependencies:+ '@floating-ui/dom': 1.7.1+ react: 18.2.0+ react-dom: 18.2.0([email protected])+dependencies:@@ -14331,6 +14407,8 @@ snapshots:'@floating-ui/[email protected]': {}+ '@floating-ui/[email protected]': {}+'@google-cloud/[email protected]':dependencies:arrify: 2.0.1@@ -14403,9 +14481,10 @@ snapshots:dependencies:react: 18.2.0dependencies:- react-hook-form: 7.51.5([email protected])+ '@standard-schema/utils': 0.3.0+ react-hook-form: 7.57.0([email protected])'@humanwhocodes/[email protected]':dependencies:@@ -14809,95 +14888,95 @@ snapshots:dependencies:jsep: 1.4.0- '@langchain/[email protected](@langchain/[email protected]([email protected]([email protected])))':+ '@langchain/[email protected](@langchain/[email protected]([email protected]([email protected])))':dependencies:'@anthropic-ai/sdk': 0.39.0- '@langchain/core': 0.3.57([email protected]([email protected]))+ '@langchain/core': 0.3.57([email protected]([email protected]))fast-xml-parser: 4.5.0- zod: 3.24.4- zod-to-json-schema: 3.23.5([email protected])+ zod: 3.25.62+ zod-to-json-schema: 3.23.5([email protected])transitivePeerDependencies:- encoding- '@langchain/[email protected](@langchain/[email protected]([email protected]([email protected])))':+ '@langchain/[email protected](@langchain/[email protected]([email protected]([email protected])))':dependencies:'@aws-sdk/client-bedrock-agent-runtime': 3.825.0'@aws-sdk/client-bedrock-runtime': 3.825.0'@aws-sdk/client-kendra': 3.825.0'@aws-sdk/credential-provider-node': 3.825.0- '@langchain/core': 0.3.57([email protected]([email protected]))- zod: 3.24.4- zod-to-json-schema: 3.23.5([email protected])+ '@langchain/core': 0.3.57([email protected]([email protected]))+ zod: 3.25.62+ zod-to-json-schema: 3.23.5([email protected])transitivePeerDependencies:- aws-crtdependencies:'@cfworker/json-schema': 4.1.1ansi-styles: 5.2.0camelcase: 6.3.0decamelize: 1.2.0js-tiktoken: 1.0.15- langsmith: 0.3.30([email protected]([email protected]))+ langsmith: 0.3.30([email protected]([email protected]))mustache: 4.2.0p-queue: 6.6.2p-retry: 4.6.2uuid: 10.0.0- zod: 3.24.4- zod-to-json-schema: 3.23.5([email protected])+ zod: 3.25.62+ zod-to-json-schema: 3.23.5([email protected])transitivePeerDependencies:- openai- '@langchain/[email protected](@langchain/[email protected]([email protected]([email protected])))([email protected])':+ '@langchain/[email protected](@langchain/[email protected]([email protected]([email protected])))([email protected])':dependencies:- '@langchain/core': 0.3.57([email protected]([email protected]))+ '@langchain/core': 0.3.57([email protected]([email protected]))uuid: 10.0.0- zod-to-json-schema: 3.23.5([email protected])+ zod-to-json-schema: 3.23.5([email protected])transitivePeerDependencies:- zod- '@langchain/[email protected](@langchain/[email protected]([email protected]([email protected])))([email protected])':+ '@langchain/[email protected](@langchain/[email protected]([email protected]([email protected])))([email protected])':dependencies:- '@langchain/core': 0.3.57([email protected]([email protected]))- '@langchain/google-common': 0.2.10(@langchain/[email protected]([email protected]([email protected])))([email protected])+ '@langchain/core': 0.3.57([email protected]([email protected]))+ '@langchain/google-common': 0.2.10(@langchain/[email protected]([email protected]([email protected])))([email protected])google-auth-library: 9.15.1transitivePeerDependencies:- encoding- supports-color- zod- '@langchain/[email protected](@langchain/[email protected]([email protected]([email protected])))([email protected])':+ '@langchain/[email protected](@langchain/[email protected]([email protected]([email protected])))([email protected])':dependencies:'@google/generative-ai': 0.24.1- '@langchain/core': 0.3.57([email protected]([email protected]))+ '@langchain/core': 0.3.57([email protected]([email protected]))uuid: 11.1.0- zod-to-json-schema: 3.23.5([email protected])+ zod-to-json-schema: 3.23.5([email protected])transitivePeerDependencies:- zod- '@langchain/[email protected](@langchain/[email protected]([email protected]([email protected])))([email protected])':+ '@langchain/[email protected](@langchain/[email protected]([email protected]([email protected])))([email protected])':dependencies:- '@langchain/core': 0.3.57([email protected]([email protected]))- '@langchain/google-gauth': 0.2.10(@langchain/[email protected]([email protected]([email protected])))([email protected])+ '@langchain/core': 0.3.57([email protected]([email protected]))+ '@langchain/google-gauth': 0.2.10(@langchain/[email protected]([email protected]([email protected])))([email protected])transitivePeerDependencies:- encoding- supports-color- zod- '@langchain/[email protected](@langchain/[email protected]([email protected]([email protected])))':+ '@langchain/[email protected](@langchain/[email protected]([email protected]([email protected])))':dependencies:- '@langchain/core': 0.3.57([email protected]([email protected]))+ '@langchain/core': 0.3.57([email protected]([email protected]))js-tiktoken: 1.0.15- openai: 4.104.0([email protected])- zod: 3.24.4- zod-to-json-schema: 3.23.5([email protected])+ openai: 4.104.0([email protected])+ zod: 3.25.62+ zod-to-json-schema: 3.23.5([email protected])transitivePeerDependencies:- encoding- ws- '@langchain/[email protected](@langchain/[email protected]([email protected]([email protected])))':+ '@langchain/[email protected](@langchain/[email protected]([email protected]([email protected])))':dependencies:- '@langchain/core': 0.3.57([email protected]([email protected]))+ '@langchain/core': 0.3.57([email protected]([email protected]))js-tiktoken: 1.0.15'@lezer/[email protected]': {}@@ -14991,9 +15070,9 @@ snapshots:'@mui/[email protected](@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:- '@babel/runtime': 7.27.0- '@mui/types': 7.4.0(@types/[email protected])+ '@babel/runtime': 7.27.6+ '@mui/types': 7.4.3(@types/[email protected])'@mui/utils': 5.17.1(@types/[email protected])([email protected])'@popperjs/core': 2.11.8clsx: 2.1.1@@ -15007,11 +15086,11 @@ snapshots:'@mui/[email protected](@emotion/[email protected](@types/[email protected])([email protected]))(@emotion/[email protected](@emotion/[email protected](@types/[email protected])([email protected]))(@types/[email protected])([email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:- '@babel/runtime': 7.27.0+ '@babel/runtime': 7.27.6'@mui/base': 5.0.0-beta.40(@types/[email protected])([email protected]([email protected]))([email protected])'@mui/core-downloads-tracker': 5.17.1'@mui/system': 5.16.7(@emotion/[email protected](@types/[email protected])([email protected]))(@emotion/[email protected](@emotion/[email protected](@types/[email protected])([email protected]))(@types/[email protected])([email protected]))(@types/[email protected])([email protected])- '@mui/types': 7.4.0(@types/[email protected])+ '@mui/types': 7.4.3(@types/[email protected])'@mui/utils': 5.17.1(@types/[email protected])([email protected])'@types/react-transition-group': 4.4.12(@types/[email protected])clsx: 2.1.1@@ -15028,7 +15107,7 @@ snapshots:dependencies:- '@babel/runtime': 7.27.0+ '@babel/runtime': 7.27.6'@mui/utils': 5.17.1(@types/[email protected])([email protected])prop-types: 15.8.1react: 18.2.0@@ -15037,7 +15116,7 @@ snapshots:'@mui/[email protected](@emotion/[email protected](@types/[email protected])([email protected]))(@emotion/[email protected](@emotion/[email protected](@types/[email protected])([email protected]))(@types/[email protected])([email protected]))([email protected])':dependencies:- '@babel/runtime': 7.27.0+ '@babel/runtime': 7.27.6'@emotion/cache': 11.14.0csstype: 3.1.3prop-types: 15.8.1@@ -15048,10 +15127,10 @@ snapshots:'@mui/[email protected](@emotion/[email protected](@types/[email protected])([email protected]))(@emotion/[email protected](@emotion/[email protected](@types/[email protected])([email protected]))(@types/[email protected])([email protected]))(@types/[email protected])([email protected])':dependencies:- '@babel/runtime': 7.27.0+ '@babel/runtime': 7.27.6'@mui/private-theming': 5.17.1(@types/[email protected])([email protected])'@mui/styled-engine': 5.16.14(@emotion/[email protected](@types/[email protected])([email protected]))(@emotion/[email protected](@emotion/[email protected](@types/[email protected])([email protected]))(@types/[email protected])([email protected]))([email protected])- '@mui/types': 7.4.0(@types/[email protected])+ '@mui/types': 7.4.3(@types/[email protected])'@mui/utils': 5.17.1(@types/[email protected])([email protected])clsx: 2.1.1csstype: 3.1.3@@ -15070,9 +15149,9 @@ snapshots:optionalDependencies:'@types/react': 18.2.79- '@mui/[email protected](@types/[email protected])':+ '@mui/[email protected](@types/[email protected])':dependencies:- '@babel/runtime': 7.27.0+ '@babel/runtime': 7.27.6optionalDependencies:'@types/react': 18.2.79@@ -15090,9 +15169,9 @@ snapshots:dependencies:- '@babel/runtime': 7.27.0+ '@babel/runtime': 7.27.6'@mui/types': 7.2.24(@types/[email protected])- '@types/prop-types': 15.7.14+ '@types/prop-types': 15.7.15clsx: 2.1.1prop-types: 15.8.1react: 18.2.0@@ -17717,6 +17796,8 @@ snapshots:'@smithy/types': 3.5.0tslib: 2.6.3+ '@standard-schema/[email protected]': {}+'@swc/[email protected]': {}'@swc/[email protected]':@@ -17728,16 +17809,16 @@ snapshots:'@swc/counter': 0.1.3tslib: 2.8.1dependencies:- zod: 3.24.4+ zod: 3.25.62optionalDependencies:typescript: 5.4.5dependencies:- '@t3-oss/env-core': 0.11.1([email protected])([email protected])- zod: 3.24.4+ '@t3-oss/env-core': 0.11.1([email protected])([email protected])+ zod: 3.25.62optionalDependencies:typescript: 5.4.5@@ -17962,11 +18043,11 @@ snapshots:'@types/[email protected]':dependencies:'@types/eslint': 8.56.12- '@types/estree': 1.0.7+ '@types/estree': 1.0.8'@types/[email protected]':dependencies:- '@types/estree': 1.0.7+ '@types/estree': 1.0.8'@types/json-schema': 7.0.15'@types/[email protected]':@@ -17984,6 +18065,8 @@ snapshots:'@types/[email protected]': {}+ '@types/[email protected]': {}+'@types/[email protected]':dependencies:'@types/node': 20.12.11@@ -18117,7 +18200,7 @@ snapshots:'@types/[email protected]': {}- '@types/[email protected]': {}+ '@types/[email protected]': {}'@types/[email protected]': {}@@ -18448,9 +18531,9 @@ snapshots:'@codemirror/state': 6.5.1'@codemirror/view': 6.36.2- '@uiw/[email protected](@babel/[email protected])(@codemirror/[email protected](@codemirror/[email protected])(@codemirror/[email protected])(@codemirror/[email protected])(@lezer/[email protected]))(@codemirror/[email protected])(@codemirror/[email protected])(@codemirror/[email protected])(@codemirror/[email protected])(@codemirror/[email protected])(@codemirror/[email protected])([email protected](@lezer/[email protected]))([email protected]([email protected]))([email protected])':+ '@uiw/[email protected](@babel/[email protected])(@codemirror/[email protected](@codemirror/[email protected])(@codemirror/[email protected])(@codemirror/[email protected])(@lezer/[email protected]))(@codemirror/[email protected])(@codemirror/[email protected])(@codemirror/[email protected])(@codemirror/[email protected])(@codemirror/[email protected])(@codemirror/[email protected])([email protected](@lezer/[email protected]))([email protected]([email protected]))([email protected])':dependencies:- '@babel/runtime': 7.27.0+ '@babel/runtime': 7.27.6'@codemirror/commands': 6.7.1'@codemirror/state': 6.5.1'@codemirror/theme-one-dark': 6.1.2@@ -18508,14 +18591,14 @@ snapshots:chai: 5.1.1tinyrainbow: 1.2.0- '@vitest/[email protected](@vitest/[email protected])([email protected](@types/[email protected])([email protected]))([email protected](@types/[email protected])([email protected]))':+ '@vitest/[email protected](@vitest/[email protected])([email protected](@types/[email protected])([email protected]))([email protected](@types/[email protected])([email protected]))':dependencies:'@vitest/spy': 2.1.2estree-walker: 3.0.3magic-string: 0.30.11optionalDependencies:msw: 2.6.5(@types/[email protected])([email protected])- vite: 5.2.14(@types/[email protected])([email protected])+ vite: 5.2.14(@types/[email protected])([email protected])'@vitest/[email protected](@vitest/[email protected])([email protected](@types/[email protected]))':dependencies:@@ -18562,7 +18645,7 @@ snapshots:'@vue/[email protected]':dependencies:- '@babel/parser': 7.27.0+ '@babel/parser': 7.27.5'@vue/shared': 3.4.27entities: 4.5.0estree-walker: 2.0.2@@ -18575,7 +18658,7 @@ snapshots:'@vue/[email protected]':dependencies:- '@babel/parser': 7.27.0+ '@babel/parser': 7.27.5'@vue/compiler-core': 3.4.27'@vue/compiler-dom': 3.4.27'@vue/compiler-ssr': 3.4.27@@ -18733,7 +18816,7 @@ snapshots:- [email protected]: {}+ [email protected]: {}dependencies:@@ -18752,28 +18835,28 @@ snapshots:clean-stack: 2.2.0indent-string: 4.0.0- [email protected]([email protected]([email protected]))([email protected])([email protected])([email protected]([email protected]))([email protected])([email protected]([email protected]))([email protected]):+ [email protected]([email protected]([email protected]))([email protected])([email protected])([email protected]([email protected]))([email protected])([email protected]([email protected]))([email protected]):dependencies:'@ai-sdk/provider': 0.0.24- '@ai-sdk/provider-utils': 1.0.20([email protected])- '@ai-sdk/react': 0.0.62([email protected])([email protected])- '@ai-sdk/solid': 0.0.49([email protected])([email protected])- '@ai-sdk/svelte': 0.0.51([email protected])([email protected])- '@ai-sdk/ui-utils': 0.0.46([email protected])+ '@ai-sdk/provider-utils': 1.0.20([email protected])+ '@ai-sdk/react': 0.0.62([email protected])([email protected])+ '@ai-sdk/solid': 0.0.49([email protected])([email protected])+ '@ai-sdk/svelte': 0.0.51([email protected])([email protected])+ '@ai-sdk/ui-utils': 0.0.46([email protected])'@opentelemetry/api': 1.9.0eventsource-parser: 1.1.2json-schema: 0.4.0jsondiffpatch: 0.6.0nanoid: 3.3.8secure-json-parse: 2.7.0- zod-to-json-schema: 3.23.2([email protected])+ zod-to-json-schema: 3.23.2([email protected])optionalDependencies:- openai: 4.104.0([email protected])+ openai: 4.104.0([email protected])react: 18.2.0sswr: 2.1.0([email protected])svelte: 4.2.19- zod: 3.24.4+ zod: 3.25.62transitivePeerDependencies:- solid-js- vue@@ -19052,7 +19135,7 @@ snapshots:dependencies:- '@babel/runtime': 7.27.0+ '@babel/runtime': 7.27.6cosmiconfig: 7.1.0resolve: 1.22.10optional: true@@ -19164,12 +19247,12 @@ snapshots:node-releases: 2.0.18update-browserslist-db: 1.1.1([email protected])dependencies:- caniuse-lite: 1.0.30001710- electron-to-chromium: 1.5.132+ caniuse-lite: 1.0.30001722+ electron-to-chromium: 1.5.166node-releases: 2.0.19- update-browserslist-db: 1.1.3([email protected])+ update-browserslist-db: 1.1.3([email protected])dependencies:@@ -19195,7 +19278,7 @@ snapshots:dependencies:- semver: 7.7.1+ semver: 7.7.2dependencies:@@ -19248,6 +19331,8 @@ snapshots:+ [email protected]: {}+@@ -19444,16 +19529,16 @@ snapshots:dependencies:'@jridgewell/sourcemap-codec': 1.5.0- '@types/estree': 1.0.7- acorn: 8.14.1+ '@types/estree': 1.0.8+ acorn: 8.15.0estree-walker: 3.0.3periscopic: 3.1.0[email protected](@lezer/[email protected]):dependencies:- '@codemirror/autocomplete': 6.17.0(@codemirror/[email protected])(@codemirror/[email protected])(@codemirror/[email protected])(@lezer/[email protected])+ '@codemirror/autocomplete': 6.17.0(@codemirror/[email protected])(@codemirror/[email protected])(@codemirror/[email protected])(@lezer/[email protected])'@codemirror/commands': 6.8.1- '@codemirror/language': 6.11.0+ '@codemirror/language': 6.11.1'@codemirror/lint': 6.8.5'@codemirror/search': 6.5.6'@codemirror/state': 6.5.1@@ -19996,6 +20081,11 @@ snapshots:dependencies:ms: 2.1.3+ dependencies:+ ms: 2.1.3+ optional: true+@@ -20214,7 +20304,7 @@ snapshots:- [email protected]: {}+ [email protected]: {}@@ -20249,7 +20339,7 @@ snapshots:dependencies:graceful-fs: 4.2.11- tapable: 2.2.1+ tapable: 2.2.2@@ -20333,7 +20423,7 @@ snapshots:iterator.prototype: 1.1.2safe-array-concat: 1.1.2- [email protected]: {}+ [email protected]: {}dependencies:@@ -20438,7 +20528,7 @@ snapshots:dependencies:eslint: 8.57.0- semver: 7.7.1+ semver: 7.7.2dependencies:@@ -20545,7 +20635,7 @@ snapshots:dependencies:- '@eslint-community/eslint-utils': 4.5.1([email protected])+ '@eslint-community/eslint-utils': 4.7.0([email protected])'@eslint-community/regexpp': 4.12.1eslint: 8.57.0eslint-compat-utils: 0.5.1([email protected])@@ -20643,18 +20733,18 @@ snapshots:dependencies:- '@eslint-community/eslint-utils': 4.5.1([email protected])+ '@eslint-community/eslint-utils': 4.7.0([email protected])builtins: 5.1.0eslint: 8.57.0eslint-plugin-es-x: 7.8.0([email protected])- get-tsconfig: 4.10.0+ get-tsconfig: 4.10.1globals: 13.24.0ignore: 5.3.2is-builtin-module: 3.2.1is-core-module: 2.16.1minimatch: 3.1.2resolve: 1.22.10- semver: 7.7.1+ semver: 7.7.2@@ -21254,7 +21344,7 @@ snapshots:es-errors: 1.3.0get-intrinsic: 1.3.0dependencies:resolve-pkg-maps: 1.0.0@@ -21872,7 +21962,7 @@ snapshots:dependencies:- '@types/estree': 1.0.7+ '@types/estree': 1.0.8dependencies:@@ -22581,26 +22671,26 @@ snapshots:- [email protected](@langchain/[email protected](@langchain/[email protected]([email protected]([email protected]))))(@langchain/[email protected](@langchain/[email protected]([email protected]([email protected]))))(@langchain/[email protected]([email protected]([email protected])))(@langchain/[email protected](@langchain/[email protected]([email protected]([email protected])))([email protected]))(@langchain/[email protected](@langchain/[email protected]([email protected]([email protected])))([email protected]))([email protected])([email protected])([email protected])([email protected]([email protected])):+ [email protected](@langchain/[email protected](@langchain/[email protected]([email protected]([email protected]))))(@langchain/[email protected](@langchain/[email protected]([email protected]([email protected]))))(@langchain/[email protected]([email protected]([email protected])))(@langchain/[email protected](@langchain/[email protected]([email protected]([email protected])))([email protected]))(@langchain/[email protected](@langchain/[email protected]([email protected]([email protected])))([email protected]))([email protected])([email protected])([email protected])([email protected]([email protected])):dependencies:- '@langchain/core': 0.3.57([email protected]([email protected]))- '@langchain/textsplitters': 0.1.0(@langchain/[email protected]([email protected]([email protected])))+ '@langchain/core': 0.3.57([email protected]([email protected]))+ '@langchain/textsplitters': 0.1.0(@langchain/[email protected]([email protected]([email protected])))js-tiktoken: 1.0.15js-yaml: 4.1.0jsonpointer: 5.0.1- langsmith: 0.3.30([email protected]([email protected]))+ langsmith: 0.3.30([email protected]([email protected]))openapi-types: 12.1.3p-retry: 4.6.2uuid: 10.0.0yaml: 2.5.1- zod: 3.24.4- zod-to-json-schema: 3.23.5([email protected])+ zod: 3.25.62+ zod-to-json-schema: 3.23.5([email protected])optionalDependencies:- '@langchain/anthropic': 0.3.21(@langchain/[email protected]([email protected]([email protected])))- '@langchain/google-genai': 0.2.10(@langchain/[email protected]([email protected]([email protected])))([email protected])- '@langchain/google-vertexai': 0.2.10(@langchain/[email protected]([email protected]([email protected])))([email protected])+ '@langchain/anthropic': 0.3.21(@langchain/[email protected]([email protected]([email protected])))+ '@langchain/google-genai': 0.2.10(@langchain/[email protected]([email protected]([email protected])))([email protected])+ '@langchain/google-vertexai': 0.2.10(@langchain/[email protected]([email protected]([email protected])))([email protected])axios: 1.8.2cheerio: 1.0.0handlebars: 4.7.8@@ -22613,9 +22703,9 @@ snapshots:dependencies:mustache: 4.2.0- [email protected]([email protected](@langchain/[email protected](@langchain/[email protected]([email protected]([email protected]))))(@langchain/[email protected](@langchain/[email protected]([email protected]([email protected]))))(@langchain/[email protected]([email protected]([email protected])))(@langchain/[email protected](@langchain/[email protected]([email protected]([email protected])))([email protected]))(@langchain/[email protected](@langchain/[email protected]([email protected]([email protected])))([email protected]))([email protected])([email protected])([email protected])([email protected]([email protected]))):+ [email protected]([email protected](@langchain/[email protected](@langchain/[email protected]([email protected]([email protected]))))(@langchain/[email protected](@langchain/[email protected]([email protected]([email protected]))))(@langchain/[email protected]([email protected]([email protected])))(@langchain/[email protected](@langchain/[email protected]([email protected]([email protected])))([email protected]))(@langchain/[email protected](@langchain/[email protected]([email protected]([email protected])))([email protected]))([email protected])([email protected])([email protected])([email protected]([email protected]))):dependencies:- langchain: 0.3.27(@langchain/[email protected](@langchain/[email protected]([email protected]([email protected]))))(@langchain/[email protected](@langchain/[email protected]([email protected]([email protected]))))(@langchain/[email protected]([email protected]([email protected])))(@langchain/[email protected](@langchain/[email protected]([email protected]([email protected])))([email protected]))(@langchain/[email protected](@langchain/[email protected]([email protected]([email protected])))([email protected]))([email protected])([email protected])([email protected])([email protected]([email protected]))+ langchain: 0.3.27(@langchain/[email protected](@langchain/[email protected]([email protected]([email protected]))))(@langchain/[email protected](@langchain/[email protected]([email protected]([email protected]))))(@langchain/[email protected]([email protected]([email protected])))(@langchain/[email protected](@langchain/[email protected]([email protected]([email protected])))([email protected]))(@langchain/[email protected](@langchain/[email protected]([email protected]([email protected])))([email protected]))([email protected])([email protected])([email protected])([email protected]([email protected]))langfuse: 3.37.4langfuse-core: 3.37.4@@ -22631,7 +22721,7 @@ snapshots:vscode-languageserver-textdocument: 1.0.12vscode-uri: 3.0.8dependencies:'@types/uuid': 10.0.0chalk: 4.1.2@@ -22641,7 +22731,7 @@ snapshots:semver: 7.7.1uuid: 10.0.0optionalDependencies:- openai: 4.104.0([email protected])+ openai: 4.104.0([email protected])@@ -23641,7 +23731,7 @@ snapshots:is-docker: 2.2.1is-wsl: 2.2.0dependencies:'@types/node': 18.19.74'@types/node-fetch': 2.6.12@@ -23651,7 +23741,7 @@ snapshots:formdata-node: 4.4.1node-fetch: 2.7.0optionalDependencies:- zod: 3.24.4+ zod: 3.25.62transitivePeerDependencies:- encoding@@ -23881,7 +23971,7 @@ snapshots:dependencies:- '@types/estree': 1.0.7+ '@types/estree': 1.0.8estree-walker: 3.0.3is-reference: 3.0.3@@ -24134,7 +24224,7 @@ snapshots:'@prisma/generator-helper': 5.3.1'@prisma/internals': 5.3.1typescript: 5.4.5- zod: 3.24.4+ zod: 3.25.62transitivePeerDependencies:- encoding- supports-color@@ -24331,7 +24421,7 @@ snapshots:resize-observer-polyfill: 1.5.1dependencies:react: 18.2.0@@ -24820,7 +24910,7 @@ snapshots:ajv: 6.12.6ajv-keywords: 3.5.2([email protected])dependencies:'@types/json-schema': 7.0.15ajv: 8.17.1@@ -24845,6 +24935,8 @@ snapshots:+ [email protected]: {}+dependencies:debug: 2.6.9@@ -24869,12 +24961,12 @@ snapshots:dependencies:- seroval: 1.2.1+ seroval: 1.3.2optional: trueoptional: true@@ -24979,8 +25071,8 @@ snapshots:dependencies:csstype: 3.1.3- seroval: 1.2.1- seroval-plugins: 1.2.1([email protected])+ seroval: 1.3.2+ seroval-plugins: 1.3.2([email protected])optional: true@@ -25253,8 +25345,8 @@ snapshots:'@ampproject/remapping': 2.3.0'@jridgewell/sourcemap-codec': 1.5.0'@jridgewell/trace-mapping': 0.3.25- '@types/estree': 1.0.7- acorn: 8.14.1+ '@types/estree': 1.0.8+ acorn: 8.15.0aria-query: 5.3.2axobject-query: 4.1.0code-red: 1.0.4@@ -25328,6 +25420,8 @@ snapshots:+ [email protected]: {}+dependencies:chownr: 1.1.4@@ -25373,15 +25467,15 @@ snapshots:dependencies:'@jridgewell/trace-mapping': 0.3.25jest-worker: 27.5.1- schema-utils: 4.3.0+ schema-utils: 4.3.2serialize-javascript: 6.0.2- terser: 5.39.0+ terser: 5.42.0webpack: 5.97.1dependencies:'@jridgewell/source-map': 0.3.6- acorn: 8.14.1+ acorn: 8.15.0commander: 2.20.3source-map-support: 0.5.21@@ -25739,9 +25833,9 @@ snapshots:escalade: 3.2.0picocolors: 1.1.1dependencies:- browserslist: 4.24.4+ browserslist: 4.25.0escalade: 3.2.0picocolors: 1.1.1@@ -25900,12 +25994,12 @@ snapshots:- terseroptional: truedependencies:cac: 6.7.14debug: 4.3.7([email protected])pathe: 1.1.2- vite: 5.2.14(@types/[email protected])([email protected])+ vite: 5.2.14(@types/[email protected])([email protected])transitivePeerDependencies:- '@types/node'- less@@ -25943,7 +26037,7 @@ snapshots:fsevents: 2.3.3optional: truedependencies:esbuild: 0.20.2postcss: 8.5.3@@ -25951,7 +26045,7 @@ snapshots:optionalDependencies:'@types/node': 20.11.29fsevents: 2.3.3- terser: 5.39.0+ terser: 5.42.0[email protected](@types/[email protected]):dependencies:@@ -25997,10 +26091,10 @@ snapshots:- terseroptional: true- [email protected](@types/[email protected])([email protected])([email protected](@types/[email protected])([email protected]))([email protected]):+ [email protected](@types/[email protected])([email protected])([email protected](@types/[email protected])([email protected]))([email protected]):dependencies:'@vitest/expect': 2.1.2- '@vitest/mocker': 2.1.2(@vitest/[email protected])([email protected](@types/[email protected])([email protected]))([email protected](@types/[email protected])([email protected]))+ '@vitest/mocker': 2.1.2(@vitest/[email protected])([email protected](@types/[email protected])([email protected]))([email protected](@types/[email protected])([email protected]))'@vitest/pretty-format': 2.1.2'@vitest/runner': 2.1.2'@vitest/snapshot': 2.1.2@@ -26015,8 +26109,8 @@ snapshots:tinyexec: 0.3.0tinypool: 1.0.1tinyrainbow: 1.2.0- vite: 5.2.14(@types/[email protected])([email protected])- vite-node: 2.1.2(@types/[email protected])([email protected])+ vite: 5.2.14(@types/[email protected])([email protected])+ vite-node: 2.1.2(@types/[email protected])([email protected])why-is-node-running: 2.3.0optionalDependencies:'@types/node': 20.11.29@@ -26104,7 +26198,7 @@ snapshots:dependencies:makeerror: 1.0.12dependencies:glob-to-regexp: 0.4.1graceful-fs: 4.2.11@@ -26119,20 +26213,22 @@ snapshots:+ [email protected]: {}+dependencies:'@types/eslint-scope': 3.7.7- '@types/estree': 1.0.7+ '@types/estree': 1.0.8'@webassemblyjs/ast': 1.14.1'@webassemblyjs/wasm-edit': 1.14.1'@webassemblyjs/wasm-parser': 1.14.1- acorn: 8.14.1- browserslist: 4.24.4+ acorn: 8.15.0+ browserslist: 4.25.0chrome-trace-event: 1.0.4enhanced-resolve: 5.18.1- es-module-lexer: 1.6.0+ es-module-lexer: 1.7.0eslint-scope: 5.1.1events: 3.3.0glob-to-regexp: 0.4.1@@ -26142,10 +26238,10 @@ snapshots:mime-types: 2.1.35neo-async: 2.6.2schema-utils: 3.3.0- tapable: 2.2.1+ tapable: 2.2.2terser-webpack-plugin: 5.3.14([email protected])- watchpack: 2.4.2- webpack-sources: 3.2.3+ watchpack: 2.4.4+ webpack-sources: 3.3.2transitivePeerDependencies:- '@swc/core'- esbuild@@ -26349,16 +26445,16 @@ snapshots:compress-commons: 4.1.2readable-stream: 3.6.2dependencies:- zod: 3.24.4+ zod: 3.25.62dependencies:- zod: 3.24.4+ zod: 3.25.62- [email protected]: {}+ [email protected]: {}diff --git a/web/package.json b/web/package.jsonindex 83e5696af1..ed1023fc03 100644--- a/web/package.json+++ b/web/package.json@@ -35,7 +35,7 @@"@headlessui/react": "2.1.9","@headlessui/tailwindcss": "0.2.1","@heroicons/react": "^2.1.5",- "@hookform/resolvers": "^3.3.4",+ "@hookform/resolvers": "^5.1.1","@langchain/anthropic": "^0.3.21","@langchain/core": "^0.3.57","@langchain/openai": "^0.5.12",@@ -137,7 +137,7 @@"react-day-picker": "^8.10.1","react-dom": "18.2.0","react-grid-layout": "^1.5.1",- "react-hook-form": "^7.51.5",+ "react-hook-form": "^7.57.0","react-icons": "^5.2.1","react-markdown": "^9.0.1","react-resizable-panels": "^2.1.1",@@ -160,7 +160,7 @@"uuid": "^9.0.1","vaul": "^1.1.2","vis-network": "^9.1.9",- "zod": "^3.24.4"+ "zod": "^3.25.62"},"devDependencies": {"@jedmao/location": "^3.0.0",diff --git a/web/src/__tests__/api-auth.servertest.ts b/web/src/__tests__/api-auth.servertest.tsindex a4e47282f6..308c23b2fc 100644--- a/web/src/__tests__/api-auth.servertest.ts+++ b/web/src/__tests__/api-auth.servertest.ts@@ -395,7 +395,7 @@ describe("Authenticate API calls", () => {// Parse should fail because the scope is missingexpect(() => {OrgEnrichedApiKey.parse(JSON.parse(cachedKey!));- }).toThrow("invalid_union_discriminator");+ }).toThrow("invalid_union");// Auth should still succeed by falling back to Postgresconst verification = await new ApiAuthService(diff --git a/web/src/__tests__/async/comments-api.servertest.ts b/web/src/__tests__/async/comments-api.servertest.tsindex 5f675bca68..9417689d77 100644--- a/web/src/__tests__/async/comments-api.servertest.ts+++ b/web/src/__tests__/async/comments-api.servertest.ts@@ -7,7 +7,7 @@ import {PostCommentsV1Response,} from "@/src/features/public-api/types/comments";import { prisma } from "@langfuse/shared/src/db";-import { z } from "zod";+import { z } from "zod/v4";import {createObservationsCh,createTracesCh,@@ -101,7 +101,7 @@ describe("Create and get comments", () => {);} catch (error) {expect((error as Error).message).toBe(- `API call did not return 200, returned status 400, body {\"message\":\"Invalid request data\",\"error\":[{\"code\":\"too_small\",\"minimum\":1,\"type\":\"string\",\"inclusive\":true,\"exact\":false,\"message\":\"String must contain at least 1 character(s)\",\"path\":[\"content\"]}]}`,+ `API call did not return 200, returned status 400, body {\"message\":\"Invalid request data\",\"error\":[{\"origin\":\"string\",\"code\":\"too_small\",\"minimum\":1,\"inclusive\":true,\"path\":[\"content\"],\"message\":\"Too small: expected string to have >=1 characters\"}]}`,);}});@@ -124,7 +124,7 @@ describe("Create and get comments", () => {);} catch (error) {expect((error as Error).message).toBe(- `API call did not return 200, returned status 400, body {\"message\":\"Invalid request data\",\"error\":[{\"code\":\"too_big\",\"maximum\":3000,\"type\":\"string\",\"inclusive\":true,\"exact\":false,\"message\":\"String must contain at most 3000 character(s)\",\"path\":[\"content\"]}]}`,+ `API call did not return 200, returned status 400, body {\"message\":\"Invalid request data\",\"error\":[{\"origin\":\"string\",\"code\":\"too_big\",\"maximum\":3000,\"inclusive\":true,\"path\":[\"content\"],\"message\":\"Too big: expected string to have <=3000 characters\"}]}`,);}});@@ -302,7 +302,7 @@ describe("GET /api/public/comments API Endpoint", () => {);} catch (error) {expect((error as Error).message).toBe(- `API call did not return 200, returned status 400, body {\"message\":\"Invalid request data\",\"error\":[{\"code\":\"custom\",\"message\":\"objectType is required when objectId is provided\",\"path\":[\"objectType\"]}]}`,+ `API call did not return 200, returned status 400, body {\"message\":\"Invalid request data\",\"error\":[{\"code\":\"custom\",\"path\":[\"objectType\"],\"message\":\"objectType is required when objectId is provided\"}]}`,);}});diff --git a/web/src/__tests__/async/memberships-api.servertest.ts b/web/src/__tests__/async/memberships-api.servertest.tsindex 40e3fff537..d12d89c275 100644--- a/web/src/__tests__/async/memberships-api.servertest.ts+++ b/web/src/__tests__/async/memberships-api.servertest.ts@@ -5,7 +5,7 @@ import {makeAPICall,} from "@/src/__tests__/test-utils";import { prisma } from "@langfuse/shared/src/db";-import { z } from "zod";+import { z } from "zod/v4";import { randomUUID } from "crypto";import { Role } from "@langfuse/shared";import {@@ -16,7 +16,7 @@ import {// Schema for membership responseconst MembershipResponseSchema = z.object({userId: z.string(),- role: z.nativeEnum(Role),+ role: z.enum(Role),email: z.string().email(),name: z.string().nullable(),});diff --git a/web/src/__tests__/async/organizations-api.servertest.ts b/web/src/__tests__/async/organizations-api.servertest.tsindex c69aa919ed..31dcd7d51e 100644--- a/web/src/__tests__/async/organizations-api.servertest.ts+++ b/web/src/__tests__/async/organizations-api.servertest.ts@@ -5,7 +5,7 @@ import {makeAPICall,} from "@/src/__tests__/test-utils";import { prisma } from "@langfuse/shared/src/db";-import { z } from "zod";+import { z } from "zod/v4";import { randomUUID } from "crypto";import {createAndAddApiKeysToDb,@@ -749,7 +749,7 @@ describe("Admin Organizations API", () => {const OrganizationProjectSchema = z.object({id: z.string(),name: z.string(),- metadata: z.record(z.unknown()).nullable(),+ metadata: z.record(z.string(), z.unknown()).nullable(),createdAt: z.string().datetime(),updatedAt: z.string().datetime(),});diff --git a/web/src/__tests__/async/projects-api.servertest.ts b/web/src/__tests__/async/projects-api.servertest.tsindex 008fa43125..0da7686768 100644--- a/web/src/__tests__/async/projects-api.servertest.ts+++ b/web/src/__tests__/async/projects-api.servertest.ts@@ -4,7 +4,7 @@ import {makeZodVerifiedAPICall,makeAPICall,} from "@/src/__tests__/test-utils";-import { z } from "zod";+import { z } from "zod/v4";import {createAndAddApiKeysToDb,createBasicAuthHeader,diff --git a/web/src/__tests__/async/scim-api.servertest.ts b/web/src/__tests__/async/scim-api.servertest.tsindex 870cadc350..7d8616f241 100644--- a/web/src/__tests__/async/scim-api.servertest.ts+++ b/web/src/__tests__/async/scim-api.servertest.ts@@ -4,7 +4,7 @@ import {makeZodVerifiedAPICall,makeAPICall,} from "@/src/__tests__/test-utils";-import { z } from "zod";+import { z } from "zod/v4";import {createAndAddApiKeysToDb,createBasicAuthHeader,diff --git a/web/src/__tests__/async/scores-api-v1.servertest.ts b/web/src/__tests__/async/scores-api-v1.servertest.tsindex b83470e1cd..0a880597a5 100644--- a/web/src/__tests__/async/scores-api-v1.servertest.ts+++ b/web/src/__tests__/async/scores-api-v1.servertest.ts@@ -19,7 +19,7 @@ import {} from "@langfuse/shared";import { prisma } from "@langfuse/shared/src/db";import { v4 } from "uuid";-import { z } from "zod";+import { z } from "zod/v4";import waitForExpect from "wait-for-expect";describe("/api/public/scores API Endpoint", () => {@@ -916,7 +916,7 @@ describe("/api/public/scores API Endpoint", () => {);} catch (error) {expect((error as Error).message).toBe(- `API call did not return 200, returned status 400, body {\"message\":\"Invalid request data\",\"error\":[{\"received\":\"op\",\"code\":\"invalid_enum_value\",\"options\":[\"<\",\">\",\"<=\",\">=\",\"!=\",\"=\"],\"path\":[\"operator\"],\"message\":\"Invalid enum value. Expected '<' | '>' | '<=' | '>=' | '!=' | '=', received 'op'\"}]}`,+ `API call did not return 200, returned status 400, body {\"message\":\"Invalid request data\",\"error\":[{\"code\":\"invalid_value\",\"values\":[\"<\",\">\",\"<=\",\">=\",\"!=\",\"=\"],\"path\":[\"operator\"],\"message\":\"Invalid option: expected one of \\\"<\\\"|\\\">\\\"|\\\"<=\\\"|\\\">=\\\"|\\\"!=\\\"|\\\"=\\\"\"}]}`,);}});@@ -935,7 +935,7 @@ describe("/api/public/scores API Endpoint", () => {);} catch (error) {expect((error as Error).message).toBe(- 'API call did not return 200, returned status 400, body {"message":"Invalid request data","error":[{"code":"invalid_type","expected":"number","received":"nan","path":["value"],"message":"Expected number, received nan"}]}',+ 'API call did not return 200, returned status 400, body {"message":"Invalid request data","error":[{"expected":"number","code":"invalid_type","received":"NaN","path":["value"],"message":"Invalid input: expected number, received NaN"}]}',);}});diff --git a/web/src/__tests__/async/scores-api-v2.servertest.ts b/web/src/__tests__/async/scores-api-v2.servertest.tsindex 83efe51be2..ea66dd5941 100644--- a/web/src/__tests__/async/scores-api-v2.servertest.ts+++ b/web/src/__tests__/async/scores-api-v2.servertest.ts@@ -15,7 +15,7 @@ import { makeZodVerifiedAPICall } from "@/src/__tests__/test-utils";import { GetScoreResponseV2, GetScoresResponseV2 } from "@langfuse/shared";import { prisma } from "@langfuse/shared/src/db";import { v4 } from "uuid";-import { z } from "zod";+import { z } from "zod/v4";describe("/api/public/v2/scores API Endpoint", () => {describe("GET /api/public/v2/scores/:scoreId", () => {@@ -811,7 +811,7 @@ describe("/api/public/v2/scores API Endpoint", () => {);} catch (error) {expect((error as Error).message).toBe(- `API call did not return 200, returned status 400, body {\"message\":\"Invalid request data\",\"error\":[{\"received\":\"op\",\"code\":\"invalid_enum_value\",\"options\":[\"<\",\">\",\"<=\",\">=\",\"!=\",\"=\"],\"path\":[\"operator\"],\"message\":\"Invalid enum value. Expected '<' | '>' | '<=' | '>=' | '!=' | '=', received 'op'\"}]}`,+ `API call did not return 200, returned status 400, body {\"message\":\"Invalid request data\",\"error\":[{\"code\":\"invalid_value\",\"values\":[\"<\",\">\",\"<=\",\">=\",\"!=\",\"=\"],\"path\":[\"operator\"],\"message\":\"Invalid option: expected one of \\\"<\\\"|\\\">\\\"|\\\"<=\\\"|\\\">=\\\"|\\\"!=\\\"|\\\"=\\\"\"}]}`,);}});@@ -830,7 +830,7 @@ describe("/api/public/v2/scores API Endpoint", () => {);} catch (error) {expect((error as Error).message).toBe(- 'API call did not return 200, returned status 400, body {"message":"Invalid request data","error":[{"code":"invalid_type","expected":"number","received":"nan","path":["value"],"message":"Expected number, received nan"}]}',+ 'API call did not return 200, returned status 400, body {"message":"Invalid request data","error":[{"expected":"number","code":"invalid_type","received":"NaN","path":["value"],"message":"Invalid input: expected number, received NaN"}]}',);}});diff --git a/web/src/__tests__/llm-api-key.servertest.ts b/web/src/__tests__/llm-api-key.servertest.tsindex 28cee4afc9..c0365205b8 100644--- a/web/src/__tests__/llm-api-key.servertest.ts+++ b/web/src/__tests__/llm-api-key.servertest.ts@@ -132,7 +132,8 @@ describe("llmApiKey.all RPC", () => {expect(llmApiKeys[0].displaySecretKey).toMatch(/^...[a-zA-Z0-9]{4}$/);// response must not contain the secret key itself- expect(llmApiKeys[0]).not.toHaveProperty("secretKey");+ const secretKey = llmApiKeys[0].secretKey;+ expect(secretKey).toBeUndefined();});it("should create and update an llm api key", async () => {diff --git a/web/src/__tests__/media.servertest.ts b/web/src/__tests__/media.servertest.tsindex b30b9f1363..80b5c5efeb 100644--- a/web/src/__tests__/media.servertest.ts+++ b/web/src/__tests__/media.servertest.ts@@ -1,7 +1,7 @@import crypto from "crypto";import fs from "fs";import path from "path";-import { z } from "zod";+import { z } from "zod/v4";import { makeZodVerifiedAPICallSilent } from "@/src/__tests__/test-utils";import { env } from "@/src/env.mjs";diff --git a/web/src/__tests__/test-utils.ts b/web/src/__tests__/test-utils.tsindex 458c25d8c3..da60820570 100644--- a/web/src/__tests__/test-utils.ts+++ b/web/src/__tests__/test-utils.ts@@ -4,7 +4,7 @@ import {clickhouseClient,createBasicAuthHeader,} from "@langfuse/shared/src/server";-import { type z } from "zod";+import { type z } from "zod/v4";export const pruneDatabase = async () => {if (!env.DATABASE_URL.includes("localhost:5432")) {diff --git a/web/src/__tests__/zod.servertest.ts b/web/src/__tests__/zod.servertest.tsindex 61f5542a46..ad9be889d2 100644--- a/web/src/__tests__/zod.servertest.ts+++ b/web/src/__tests__/zod.servertest.ts@@ -1,5 +1,5 @@import { paginationZod, parseJsonPrioritised } from "@langfuse/shared";-import { ZodError } from "zod";+import { ZodError } from "zod/v4";// Create test casesdescribe("Pagination Zod Schema", () => {diff --git a/web/src/components/ItemBadge.tsx b/web/src/components/ItemBadge.tsxindex 49a8475a1e..7576076390 100644--- a/web/src/components/ItemBadge.tsx+++ b/web/src/components/ItemBadge.tsx@@ -16,7 +16,7 @@ import {Bot,} from "lucide-react";import { cva } from "class-variance-authority";-import { ObservationType } from "@langfuse/shared";+import { type ObservationType } from "@langfuse/shared";import { cn } from "@/src/utils/tailwind";export type LangfuseItemType =@@ -33,11 +33,11 @@ export type LangfuseItemType =| "EVALUATOR"| "RUNNING_EVALUATOR";-const iconMap: Record<LangfuseItemType, React.ElementType> = {+const iconMap = {TRACE: ListTree,- [ObservationType.GENERATION]: Fan,- [ObservationType.EVENT]: CircleDot,- [ObservationType.SPAN]: MoveHorizontal,+ GENERATION: Fan,+ EVENT: CircleDot,+ SPAN: MoveHorizontal,SESSION: Clock,USER: User,QUEUE_ITEM: ClipboardPen,@@ -54,9 +54,9 @@ const iconVariants = cva(cn("h-4 w-4"), {variants: {type: {TRACE: "text-dark-green",- [ObservationType.GENERATION]: "text-muted-magenta",- [ObservationType.EVENT]: "text-muted-green",- [ObservationType.SPAN]: "text-muted-blue",+ GENERATION: "text-muted-magenta",+ EVENT: "text-muted-green",+ SPAN: "text-muted-blue",SESSION: "text-primary-accent",USER: "text-primary-accent",QUEUE_ITEM: "text-primary-accent",@@ -91,7 +91,8 @@ export function ItemBadge({className,);- const label = type.charAt(0).toUpperCase() + type.slice(1).toLowerCase();+ const label =+ String(type).charAt(0).toUpperCase() + String(type).slice(1).toLowerCase();return (<Badgediff --git a/web/src/components/ModelParameters/index.tsx b/web/src/components/ModelParameters/index.tsxindex 7f25088bb4..cd730499a1 100644--- a/web/src/components/ModelParameters/index.tsx+++ b/web/src/components/ModelParameters/index.tsx@@ -61,7 +61,7 @@ export const ModelParameters: React.FC<ModelParamsContext> = ({const hasEnabledModelSetting = Object.keys(modelParams).some((key) =>!["adapter", "provider", "model"].includes(key) &&- modelParams[key as keyof typeof modelParams].enabled === true,+ modelParams[key as keyof typeof modelParams].enabled,);if (hasEnabledModelSetting) {diff --git a/web/src/components/schemas/ChatMlSchema.ts b/web/src/components/schemas/ChatMlSchema.tsindex c9f11e30a1..2aff31ac13 100644--- a/web/src/components/schemas/ChatMlSchema.ts+++ b/web/src/components/schemas/ChatMlSchema.ts@@ -1,4 +1,4 @@-import { z } from "zod";+import { z } from "zod/v4";// OpenAI API Content Schema defined as per https://platform.openai.com/docs/api-reference/chat/create#chat-create-messages, 28.04.2025const OpenAITextContentPart = z.object({@@ -110,14 +110,14 @@ export const ChatMlMessageSchema = zname: z.string().optional(),content: z.union([- z.record(z.any()),+ z.record(z.string(), z.any()),z.string(),z.array(z.any()),OpenAIContentSchema,]).nullish(),audio: OpenAIOutputAudioSchema.optional(),- additional_kwargs: z.record(z.any()).optional(),+ additional_kwargs: z.record(z.string(), z.any()).optional(),}).passthrough().refine((value) => value.content !== null || value.role !== undefined)diff --git a/web/src/components/schemas/MarkdownSchema.ts b/web/src/components/schemas/MarkdownSchema.tsindex 575bb3bb9d..59cfaa043c 100644--- a/web/src/components/schemas/MarkdownSchema.ts+++ b/web/src/components/schemas/MarkdownSchema.ts@@ -1,4 +1,4 @@-import { z } from "zod";+import { z } from "zod/v4";const MARKDOWN_PATTERNS = ["(\\*\\*?|__?)(.*?)\\1", // Matches bold (** or __) and italic (* or _) with proper escapingdiff --git a/web/src/components/table/table-view-presets/components/data-table-view-presets-drawer.tsx b/web/src/components/table/table-view-presets/components/data-table-view-presets-drawer.tsxindex 9d551ae381..2fed1e76cd 100644--- a/web/src/components/table/table-view-presets/components/data-table-view-presets-drawer.tsx+++ b/web/src/components/table/table-view-presets/components/data-table-view-presets-drawer.tsx@@ -73,7 +73,7 @@ import {} from "@/src/components/ui/form";import { useForm } from "react-hook-form";import { zodResolver } from "@hookform/resolvers/zod";-import { z } from "zod";+import { z } from "zod/v4";import { showErrorToast } from "@/src/features/notifications/showErrorToast";import { useUniqueNameValidation } from "@/src/hooks/useUniqueNameValidation";import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";@@ -120,7 +120,7 @@ export function TableViewPresetsDrawer({const utils = api.useUtils();const capture = usePostHogClientCapture();- const form = useForm<{ name: string }>({+ const form = useForm({resolver: zodResolver(z.object({ name: z.string().min(1) })),defaultValues: {name: "",diff --git a/web/src/components/trace/IOPreview.tsx b/web/src/components/trace/IOPreview.tsxindex 15b830cd01..3a28c8f67e 100644--- a/web/src/components/trace/IOPreview.tsx+++ b/web/src/components/trace/IOPreview.tsx@@ -1,5 +1,5 @@import { JSONView } from "@/src/components/ui/CodeJsonViewer";-import { z } from "zod";+import { z } from "zod/v4";import { type Prisma, deepParseJson } from "@langfuse/shared";import { cn } from "@/src/utils/tailwind";import { useEffect, useMemo, useState } from "react";diff --git a/web/src/components/ui/MarkdownJsonView.tsx b/web/src/components/ui/MarkdownJsonView.tsxindex 502eba6848..7a99970bb7 100644--- a/web/src/components/ui/MarkdownJsonView.tsx+++ b/web/src/components/ui/MarkdownJsonView.tsx@@ -10,7 +10,7 @@ import { type MediaReturnType } from "@/src/features/media/validation";import { useMarkdownContext } from "@/src/features/theming/useMarkdownContext";import { Check, Copy } from "lucide-react";import { useMemo, useState } from "react";-import { type z } from "zod";+import { type z } from "zod/v4";import { BsMarkdown } from "react-icons/bs";import { cn } from "@/src/utils/tailwind";@@ -77,10 +77,7 @@ export function MarkdownJsonViewHeader({const isSupportedMarkdownFormat = (content: unknown,- contentValidation: z.SafeParseReturnType<- string,- z.infer<typeof OpenAIContentSchema>- >,+ contentValidation: z.ZodSafeParseResult<z.infer<typeof OpenAIContentSchema>>,): content is z.infer<typeof OpenAIContentSchema> => contentValidation.success;// MarkdownJsonView will render markdown if `isMarkdownEnabled` (global context) is true and the content is valid markdowndiff --git a/web/src/components/ui/MarkdownViewer.tsx b/web/src/components/ui/MarkdownViewer.tsxindex 56efd9eae0..0544bd864d 100644--- a/web/src/components/ui/MarkdownViewer.tsx+++ b/web/src/components/ui/MarkdownViewer.tsx@@ -27,7 +27,7 @@ import {isOpenAITextContentPart,isOpenAIImageContentPart,} from "@/src/components/schemas/ChatMlSchema";-import { type z } from "zod";+import { type z } from "zod/v4";import { ResizableImage } from "@/src/components/ui/resizable-image";import { LangfuseMediaView } from "@/src/components/ui/LangfuseMediaView";import { type MediaReturnType } from "@/src/features/media/validation";diff --git a/web/src/ee/features/billing/server/cloudBillingRouter.ts b/web/src/ee/features/billing/server/cloudBillingRouter.tsindex f83b413c9f..32ebc5f39f 100644--- a/web/src/ee/features/billing/server/cloudBillingRouter.ts+++ b/web/src/ee/features/billing/server/cloudBillingRouter.ts@@ -9,7 +9,7 @@ import {protectedOrganizationProcedure,} from "@/src/server/api/trpc";import { TRPCError } from "@trpc/server";-import * as z from "zod";+import * as z from "zod/v4";import { throwIfNoOrganizationAccess } from "@/src/features/rbac/utils/checkOrganizationAccess";import { auditLog } from "@/src/features/audit-logs/auditLog";import {diff --git a/web/src/ee/features/multi-tenant-sso/types.ts b/web/src/ee/features/multi-tenant-sso/types.tsindex fabf77678e..668e95a52f 100644--- a/web/src/ee/features/multi-tenant-sso/types.ts+++ b/web/src/ee/features/multi-tenant-sso/types.ts@@ -1,4 +1,4 @@-import { z } from "zod";+import { z } from "zod/v4";const base = z.object({domain: z.string().refine((v) => v === v.toLowerCase(), {diff --git a/web/src/ee/features/ui-customization/productModuleSchema.ts b/web/src/ee/features/ui-customization/productModuleSchema.tsindex f363b7e803..132d5cc2ad 100644--- a/web/src/ee/features/ui-customization/productModuleSchema.ts+++ b/web/src/ee/features/ui-customization/productModuleSchema.ts@@ -1,4 +1,4 @@-import { z } from "zod";+import { z } from "zod/v4";/*** All available product modules in Langfusediff --git a/web/src/features/admin-api/memberships.ts b/web/src/features/admin-api/memberships.tsindex 54e2d4cf91..c3ad5353a7 100644--- a/web/src/features/admin-api/memberships.ts+++ b/web/src/features/admin-api/memberships.ts@@ -1,12 +1,12 @@import { type NextApiRequest, type NextApiResponse } from "next";import { prisma } from "@langfuse/shared/src/db";import { Role } from "@langfuse/shared";-import { z } from "zod";+import { z } from "zod/v4";// Schema for request body validationconst MembershipSchema = z.object({userId: z.string(),- role: z.nativeEnum(Role),+ role: z.enum(Role),});// GET - Retrieve all organization memberships@@ -50,7 +50,7 @@ export async function handleUpdateMembership(if (!validatedBody.success) {return res.status(400).json({error: "Invalid request body",- details: validatedBody.error.errors,+ details: validatedBody.error.issues,});}diff --git a/web/src/features/admin-api/organizations/apiKeys/apiKeyById.ts b/web/src/features/admin-api/organizations/apiKeys/apiKeyById.tsindex dbf7df9ec9..bf4c2ad409 100644--- a/web/src/features/admin-api/organizations/apiKeys/apiKeyById.ts+++ b/web/src/features/admin-api/organizations/apiKeys/apiKeyById.ts@@ -2,7 +2,7 @@ import { type NextApiRequest, type NextApiResponse } from "next";import { prisma } from "@langfuse/shared/src/db";import { logger, redis } from "@langfuse/shared/src/server";import { auditLog } from "@/src/features/audit-logs/auditLog";-import { z } from "zod";+import { z } from "zod/v4";import { ApiAuthService } from "@/src/features/public-api/server/apiAuth";export const validateQueryParams = (diff --git a/web/src/features/admin-api/organizations/apiKeys/index.ts b/web/src/features/admin-api/organizations/apiKeys/index.tsindex 50f0c7bf39..824dae8687 100644--- a/web/src/features/admin-api/organizations/apiKeys/index.ts+++ b/web/src/features/admin-api/organizations/apiKeys/index.ts@@ -2,7 +2,7 @@ import { type NextApiRequest, type NextApiResponse } from "next";import { prisma } from "@langfuse/shared/src/db";import { logger } from "@langfuse/shared/src/server";import { auditLog } from "@/src/features/audit-logs/auditLog";-import { z } from "zod";+import { z } from "zod/v4";import { createAndAddApiKeysToDb } from "@langfuse/shared/src/server/auth/apiKeys";export const validateQueryAndExtractId = (query: unknown): string | null => {diff --git a/web/src/features/admin-api/organizations/organizationById.ts b/web/src/features/admin-api/organizations/organizationById.tsindex 5fcca189f1..09d5e45189 100644--- a/web/src/features/admin-api/organizations/organizationById.ts+++ b/web/src/features/admin-api/organizations/organizationById.ts@@ -3,7 +3,7 @@ import { prisma } from "@langfuse/shared/src/db";import { logger } from "@langfuse/shared/src/server";import { organizationNameSchema } from "@/src/features/organizations/utils/organizationNameSchema";import { auditLog } from "@/src/features/audit-logs/auditLog";-import { z } from "zod";+import { z } from "zod/v4";export const validateQueryAndExtractId = (query: unknown): string | null => {const inputQuerySchema = z.object({diff --git a/web/src/features/admin-api/projects/projectById/apiKeys/apiKeyById.ts b/web/src/features/admin-api/projects/projectById/apiKeys/apiKeyById.tsindex 97a30bba51..876e8aa29a 100644--- a/web/src/features/admin-api/projects/projectById/apiKeys/apiKeyById.ts+++ b/web/src/features/admin-api/projects/projectById/apiKeys/apiKeyById.ts@@ -3,7 +3,7 @@ import { prisma } from "@langfuse/shared/src/db";import { logger, redis } from "@langfuse/shared/src/server";import { ApiAuthService } from "@/src/features/public-api/server/apiAuth";import { auditLog } from "@/src/features/audit-logs/auditLog";-import { z } from "zod";+import { z } from "zod/v4";export const validateQueryParams = (query: unknown,diff --git a/web/src/features/admin-api/projects/projectById/apiKeys/index.ts b/web/src/features/admin-api/projects/projectById/apiKeys/index.tsindex a0ccdf3f19..a77bed62bf 100644--- a/web/src/features/admin-api/projects/projectById/apiKeys/index.ts+++ b/web/src/features/admin-api/projects/projectById/apiKeys/index.ts@@ -2,7 +2,7 @@ import { type NextApiRequest, type NextApiResponse } from "next";import { prisma } from "@langfuse/shared/src/db";import { logger } from "@langfuse/shared/src/server";import { auditLog } from "@/src/features/audit-logs/auditLog";-import { z } from "zod";+import { z } from "zod/v4";import { createAndAddApiKeysToDb } from "@langfuse/shared/src/server/auth/apiKeys";export const validateQueryAndExtractId = (query: unknown): string | null => {diff --git a/web/src/features/admin-api/projects/projectById/memberships/index.ts b/web/src/features/admin-api/projects/projectById/memberships/index.tsindex c817058531..60db793049 100644--- a/web/src/features/admin-api/projects/projectById/memberships/index.ts+++ b/web/src/features/admin-api/projects/projectById/memberships/index.ts@@ -1,12 +1,12 @@import { type NextApiRequest, type NextApiResponse } from "next";import { prisma } from "@langfuse/shared/src/db";import { Role } from "@langfuse/shared";-import { z } from "zod";+import { z } from "zod/v4";// Schema for request body validationconst MembershipSchema = z.object({userId: z.string(),- role: z.nativeEnum(Role),+ role: z.enum(Role),});// GET - Retrieve all project memberships@@ -55,7 +55,7 @@ export async function handleUpdateMembership(if (!validatedBody.success) {return res.status(400).json({error: "Invalid request body",- details: validatedBody.error.errors,+ details: validatedBody.error.issues,});}diff --git a/web/src/features/annotation-queues/components/CreateOrEditAnnotationQueueButton.tsx b/web/src/features/annotation-queues/components/CreateOrEditAnnotationQueueButton.tsxindex 417649c7fd..09b18f99dd 100644--- a/web/src/features/annotation-queues/components/CreateOrEditAnnotationQueueButton.tsx+++ b/web/src/features/annotation-queues/components/CreateOrEditAnnotationQueueButton.tsx@@ -65,7 +65,7 @@ export const CreateOrEditAnnotationQueueButton = ({{ enabled: !!queueId && hasAccess },);- const form = useForm<CreateQueue>({+ const form = useForm({resolver: zodResolver(CreateQueueData),});diff --git a/web/src/features/annotation-queues/server/annotationQueueItems.ts b/web/src/features/annotation-queues/server/annotationQueueItems.tsindex 8e6a4def1b..9d29352eb5 100644--- a/web/src/features/annotation-queues/server/annotationQueueItems.ts+++ b/web/src/features/annotation-queues/server/annotationQueueItems.ts@@ -21,7 +21,7 @@ import {logger,} from "@langfuse/shared/src/server";import { TRPCError } from "@trpc/server";-import { z } from "zod";+import { z } from "zod/v4";const isItemLocked = (item: AnnotationQueueItem) => {return (@@ -232,7 +232,7 @@ export const queueItemRouter = createTRPCRouter({objectIds: z.array(z.string()).min(1, "Minimum 1 object_id is required."),- objectType: z.nativeEnum(AnnotationQueueObjectType),+ objectType: z.enum(AnnotationQueueObjectType),query: BatchActionQuerySchema.optional(),isBatchAction: z.boolean().default(false),}),diff --git a/web/src/features/annotation-queues/server/annotationQueues.ts b/web/src/features/annotation-queues/server/annotationQueues.tsindex a66e4572ac..85504cbbfb 100644--- a/web/src/features/annotation-queues/server/annotationQueues.ts+++ b/web/src/features/annotation-queues/server/annotationQueues.ts@@ -15,7 +15,7 @@ import {} from "@langfuse/shared";import { getObservationById, logger } from "@langfuse/shared/src/server";import { TRPCError } from "@trpc/server";-import { z } from "zod";+import { z } from "zod/v4";export const queueRouter = createTRPCRouter({hasAny: protectedProjectProcedure@@ -217,7 +217,7 @@ export const queueRouter = createTRPCRouter({z.object({projectId: z.string(),objectId: z.string(),- objectType: z.nativeEnum(AnnotationQueueObjectType),+ objectType: z.enum(AnnotationQueueObjectType),}),).query(async ({ input, ctx }) => {diff --git a/web/src/features/auth-credentials/components/ResetPasswordButton.tsx b/web/src/features/auth-credentials/components/ResetPasswordButton.tsxindex b55e6db85e..16cdb49cf3 100644--- a/web/src/features/auth-credentials/components/ResetPasswordButton.tsx+++ b/web/src/features/auth-credentials/components/ResetPasswordButton.tsx@@ -2,7 +2,7 @@ import { signIn, useSession } from "next-auth/react";import { Button } from "@/src/components/ui/button";import { Input } from "@/src/components/ui/input";import { useEffect, useState } from "react";-import { z } from "zod";+import { z } from "zod/v4";import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";import { env } from "@/src/env.mjs";diff --git a/web/src/features/auth-credentials/components/ResetPasswordPage.tsx b/web/src/features/auth-credentials/components/ResetPasswordPage.tsxindex dfe8afea09..531237ec2c 100644--- a/web/src/features/auth-credentials/components/ResetPasswordPage.tsx+++ b/web/src/features/auth-credentials/components/ResetPasswordPage.tsx@@ -1,7 +1,7 @@import { useState } from "react";import { useForm } from "react-hook-form";import { zodResolver } from "@hookform/resolvers/zod";-import * as z from "zod";+import * as z from "zod/v4";import Head from "next/head";import { Button } from "@/src/components/ui/button";import {@@ -57,7 +57,7 @@ export function ResetPasswordPage({session.data?.user?.emailVerified,);- const form = useForm<z.infer<typeof resetPasswordSchema>>({+ const form = useForm({resolver: zodResolver(resetPasswordSchema),defaultValues: {email: session.data?.user?.email ?? "",diff --git a/web/src/features/auth-credentials/lib/credentialsUtils.ts b/web/src/features/auth-credentials/lib/credentialsUtils.tsindex f24a1c3630..f1da904609 100644--- a/web/src/features/auth-credentials/lib/credentialsUtils.ts+++ b/web/src/features/auth-credentials/lib/credentialsUtils.ts@@ -1,4 +1,4 @@-import { z } from "zod";+import { z } from "zod/v4";const CUTOFF_MINUTES = 5;diff --git a/web/src/features/auth-credentials/server/credentialsRouter.ts b/web/src/features/auth-credentials/server/credentialsRouter.tsindex b5470bf3d1..1b1c1ab285 100644--- a/web/src/features/auth-credentials/server/credentialsRouter.ts+++ b/web/src/features/auth-credentials/server/credentialsRouter.ts@@ -1,4 +1,4 @@-import { z } from "zod";+import { z } from "zod/v4";import {createTRPCRouter,protectedProcedureWithoutTracing,diff --git a/web/src/features/auth/lib/projectNameSchema.ts b/web/src/features/auth/lib/projectNameSchema.tsindex d076151001..d509013a92 100644--- a/web/src/features/auth/lib/projectNameSchema.ts+++ b/web/src/features/auth/lib/projectNameSchema.ts@@ -1,5 +1,5 @@import { noHtmlCheck } from "@langfuse/shared";-import * as z from "zod";+import * as z from "zod/v4";export const projectNameSchema = z.object({name: zdiff --git a/web/src/features/auth/lib/projectRetentionSchema.ts b/web/src/features/auth/lib/projectRetentionSchema.tsindex 752cf55f2d..472424e07a 100644--- a/web/src/features/auth/lib/projectRetentionSchema.ts+++ b/web/src/features/auth/lib/projectRetentionSchema.ts@@ -1,4 +1,4 @@-import * as z from "zod";+import * as z from "zod/v4";export const projectRetentionSchema = z.object({retention: z.coercediff --git a/web/src/features/auth/lib/signupSchema.ts b/web/src/features/auth/lib/signupSchema.tsindex a98f76c0dd..4285adf9a5 100644--- a/web/src/features/auth/lib/signupSchema.ts+++ b/web/src/features/auth/lib/signupSchema.ts@@ -1,5 +1,5 @@import { noHtmlCheck, noUrlCheck } from "@langfuse/shared";-import * as z from "zod";+import * as z from "zod/v4";export const passwordSchema = z.string()diff --git a/web/src/features/background-migrations/server/background-migrations-router.ts b/web/src/features/background-migrations/server/background-migrations-router.tsindex de73b283bc..5db3ae1a2e 100644--- a/web/src/features/background-migrations/server/background-migrations-router.ts+++ b/web/src/features/background-migrations/server/background-migrations-router.ts@@ -1,4 +1,4 @@-import { z } from "zod";+import { z } from "zod/v4";import { createTRPCRouter, protectedProcedure } from "@/src/server/api/trpc";import { TRPCError } from "@trpc/server";diff --git a/web/src/features/batch-exports/server/batchExport.ts b/web/src/features/batch-exports/server/batchExport.tsindex baa0e5a994..0bb50b21ff 100644--- a/web/src/features/batch-exports/server/batchExport.ts+++ b/web/src/features/batch-exports/server/batchExport.ts@@ -15,7 +15,7 @@ import {QueueJobs,} from "@langfuse/shared/src/server";import { TRPCError } from "@trpc/server";-import { z } from "zod";+import { z } from "zod/v4";export const batchExportRouter = createTRPCRouter({create: protectedProjectProcedurediff --git a/web/src/features/blobstorage-integration/blobstorage-integration-router.ts b/web/src/features/blobstorage-integration/blobstorage-integration-router.tsindex 87d7599ad9..182fb98fa7 100644--- a/web/src/features/blobstorage-integration/blobstorage-integration-router.ts+++ b/web/src/features/blobstorage-integration/blobstorage-integration-router.ts@@ -1,4 +1,4 @@-import { z } from "zod";+import { z } from "zod/v4";import { auditLog } from "@/src/features/audit-logs/auditLog";import { throwIfNoProjectAccess } from "@/src/features/rbac/utils/checkProjectAccess";diff --git a/web/src/features/blobstorage-integration/types.ts b/web/src/features/blobstorage-integration/types.tsindex 71d4118539..9b535eeb1f 100644--- a/web/src/features/blobstorage-integration/types.ts+++ b/web/src/features/blobstorage-integration/types.ts@@ -1,11 +1,11 @@-import { z } from "zod";+import { z } from "zod/v4";import {BlobStorageIntegrationType,BlobStorageIntegrationFileType,} from "@langfuse/shared";export const blobStorageIntegrationFormSchema = z.object({- type: z.nativeEnum(BlobStorageIntegrationType),+ type: z.enum(BlobStorageIntegrationType),bucketName: z.string().min(1, { message: "Bucket name is required" }),endpoint: z.string().url().optional().nullable(),region: z.string().default("auto"),@@ -22,7 +22,7 @@ export const blobStorageIntegrationFormSchema = z.object({enabled: z.boolean(),forcePathStyle: z.boolean(),fileType: z- .nativeEnum(BlobStorageIntegrationFileType)+ .enum(BlobStorageIntegrationFileType).default(BlobStorageIntegrationFileType.JSONL),});diff --git a/web/src/features/cloud-status-notification/server/cloud-status-router.ts b/web/src/features/cloud-status-notification/server/cloud-status-router.tsindex ce1570e0f0..afd0d2f750 100644--- a/web/src/features/cloud-status-notification/server/cloud-status-router.ts+++ b/web/src/features/cloud-status-notification/server/cloud-status-router.ts@@ -2,7 +2,7 @@ import { createTRPCRouter, publicProcedure } from "@/src/server/api/trpc";import { env } from "@/src/env.mjs";import { logger } from "@langfuse/shared/src/server";import { CloudStatus } from "@/src/features/cloud-status-notification/types";-import { z } from "zod";+import { z } from "zod/v4";// Cache the response for 1 minutelet statusCache: { status: CloudStatus | null; timestamp: number } | null =diff --git a/web/src/features/cloud-status-notification/types.ts b/web/src/features/cloud-status-notification/types.tsindex 855cd66de4..c22d747f47 100644--- a/web/src/features/cloud-status-notification/types.ts+++ b/web/src/features/cloud-status-notification/types.ts@@ -1,4 +1,4 @@-import { z } from "zod";+import { z } from "zod/v4";export const CloudStatus = z.enum(["operational", "downtime", "degraded", "maintenance"])diff --git a/web/src/features/command-k-menu/CommandMenu.tsx b/web/src/features/command-k-menu/CommandMenu.tsxindex 6152f4c09f..3327353d95 100644--- a/web/src/features/command-k-menu/CommandMenu.tsx+++ b/web/src/features/command-k-menu/CommandMenu.tsx@@ -90,6 +90,7 @@ export function CommandMenu({order: "DESC",},limit: 100,+ page: 0,},{enabled: open && Boolean(project?.id),diff --git a/web/src/features/comments/CommentList.tsx b/web/src/features/comments/CommentList.tsxindex 0701bb4afb..ca4960a4e8 100644--- a/web/src/features/comments/CommentList.tsx+++ b/web/src/features/comments/CommentList.tsx@@ -24,7 +24,7 @@ import { useSession } from "next-auth/react";import React, { useEffect, useMemo } from "react";import { useForm } from "react-hook-form";import { BsMarkdown } from "react-icons/bs";-import { type z } from "zod";+import { type z } from "zod/v4";export function CommentList({projectId,@@ -59,7 +59,7 @@ export function CommentList({{ enabled: hasReadAccess && session.status === "authenticated" },);- const form = useForm<z.infer<typeof CreateCommentData>>({+ const form = useForm({resolver: zodResolver(CreateCommentData),defaultValues: {content: "",diff --git a/web/src/features/comments/validateCommentReferenceObject.ts b/web/src/features/comments/validateCommentReferenceObject.tsindex c0de40d9df..fb062dd91c 100644--- a/web/src/features/comments/validateCommentReferenceObject.ts+++ b/web/src/features/comments/validateCommentReferenceObject.ts@@ -1,5 +1,5 @@import { CommentObjectType, type CreateCommentData } from "@langfuse/shared";-import { type z } from "zod";+import { type z } from "zod/v4";import { getObservationById, getTraceById } from "@langfuse/shared/src/server";const isObservationOrTrace = (objectType: CommentObjectType) => {diff --git a/web/src/features/dashboard/components/SelectDashboardDialog.tsx b/web/src/features/dashboard/components/SelectDashboardDialog.tsxindex 21595c13a0..b08270409c 100644--- a/web/src/features/dashboard/components/SelectDashboardDialog.tsx+++ b/web/src/features/dashboard/components/SelectDashboardDialog.tsx@@ -44,6 +44,8 @@ export function SelectDashboardDialog({column: "updatedAt",order: "DESC",},+ page: 0,+ limit: 100,},{enabled: Boolean(projectId) && open,diff --git a/web/src/features/dashboard/server/dashboard-router.ts b/web/src/features/dashboard/server/dashboard-router.tsindex 442e8ee56f..25b005535d 100644--- a/web/src/features/dashboard/server/dashboard-router.ts+++ b/web/src/features/dashboard/server/dashboard-router.ts@@ -1,4 +1,4 @@-import { z } from "zod";+import { z } from "zod/v4";import {createTRPCRouter,protectedProjectProcedure,diff --git a/web/src/features/datasets/components/DatasetForm.tsx b/web/src/features/datasets/components/DatasetForm.tsxindex b7b2033461..56dbcaba03 100644--- a/web/src/features/datasets/components/DatasetForm.tsx+++ b/web/src/features/datasets/components/DatasetForm.tsx@@ -1,5 +1,5 @@import { Button } from "@/src/components/ui/button";-import * as z from "zod";+import * as z from "zod/v4";import { zodResolver } from "@hookform/resolvers/zod";import { useForm } from "react-hook-form";import {@@ -80,7 +80,7 @@ export const DatasetForm = (props: DatasetFormProps) => {const [formError, setFormError] = useState<string | null>(null);const capture = usePostHogClientCapture();const [deleteConfirmationInput, setDeleteConfirmationInput] = useState("");- const form = useForm<z.infer<typeof formSchema>>({+ const form = useForm({resolver: zodResolver(formSchema),defaultValues:props.mode === "update"diff --git a/web/src/features/datasets/components/EditDatasetItem.tsx b/web/src/features/datasets/components/EditDatasetItem.tsxindex bfb4e5295b..18f3d7c889 100644--- a/web/src/features/datasets/components/EditDatasetItem.tsx+++ b/web/src/features/datasets/components/EditDatasetItem.tsx@@ -1,5 +1,5 @@import { api } from "@/src/utils/api";-import * as z from "zod";+import * as z from "zod/v4";import { zodResolver } from "@hookform/resolvers/zod";import { useForm } from "react-hook-form";import { useEffect, useState } from "react";@@ -96,7 +96,7 @@ export const EditDatasetItem = ({// eslint-disable-next-line react-hooks/exhaustive-deps}, [datasetItem?.id]);- const form = useForm<z.infer<typeof formSchema>>({+ const form = useForm({resolver: zodResolver(formSchema),defaultValues: {input: "",diff --git a/web/src/features/datasets/components/NewDatasetItemForm.tsx b/web/src/features/datasets/components/NewDatasetItemForm.tsxindex c49f9b2f3a..933b6c3e3b 100644--- a/web/src/features/datasets/components/NewDatasetItemForm.tsx+++ b/web/src/features/datasets/components/NewDatasetItemForm.tsx@@ -1,5 +1,5 @@import { Button } from "@/src/components/ui/button";-import * as z from "zod";+import * as z from "zod/v4";import { zodResolver } from "@hookform/resolvers/zod";import { useForm } from "react-hook-form";import {@@ -112,7 +112,7 @@ export const NewDatasetItemForm = (props: {}) => {const [formError, setFormError] = useState<string | null>(null);const capture = usePostHogClientCapture();- const form = useForm<z.infer<typeof formSchema>>({+ const form = useForm({resolver: zodResolver(formSchema),defaultValues: {datasetIds: props.datasetId ? [props.datasetId] : [],diff --git a/web/src/features/datasets/components/PreviewCsvImport.tsx b/web/src/features/datasets/components/PreviewCsvImport.tsxindex 2d2c248289..2efac938e0 100644--- a/web/src/features/datasets/components/PreviewCsvImport.tsx+++ b/web/src/features/datasets/components/PreviewCsvImport.tsx@@ -9,7 +9,7 @@ import { ImportCard } from "./ImportCard";import { DndContext, closestCenter } from "@dnd-kit/core";import { findDefaultColumn } from "../lib/findDefaultColumn";import { type DragEndEvent } from "@dnd-kit/core";-import { z } from "zod";+import { z } from "zod/v4";import { useEffect, useState } from "react";import {parseCsvClient,diff --git a/web/src/features/datasets/components/UploadDatasetCsv.tsx b/web/src/features/datasets/components/UploadDatasetCsv.tsxindex bc668b3803..2a444d0f3d 100644--- a/web/src/features/datasets/components/UploadDatasetCsv.tsx+++ b/web/src/features/datasets/components/UploadDatasetCsv.tsx@@ -9,7 +9,7 @@ import { Input } from "@/src/components/ui/input";import { UploadIcon } from "lucide-react";import { useRef } from "react";import { showErrorToast } from "@/src/features/notifications/showErrorToast";-import { z } from "zod";+import { z } from "zod/v4";import {type CsvPreviewResult,parseCsvClient,diff --git a/web/src/features/datasets/server/dataset-router.ts b/web/src/features/datasets/server/dataset-router.tsindex a7445ec3dc..dfef052738 100644--- a/web/src/features/datasets/server/dataset-router.ts+++ b/web/src/features/datasets/server/dataset-router.ts@@ -1,4 +1,4 @@-import { z } from "zod";+import { z } from "zod/v4";import {createTRPCRouter,protectedProjectProcedure,diff --git a/web/src/features/datasets/server/service.ts b/web/src/features/datasets/server/service.tsindex 9e8ebaed29..76ed310b2a 100644--- a/web/src/features/datasets/server/service.ts+++ b/web/src/features/datasets/server/service.ts@@ -6,7 +6,7 @@ import {optionalPaginationZod,} from "@langfuse/shared";import { prisma } from "@langfuse/shared/src/db";-import { z } from "zod";+import { z } from "zod/v4";import {clickhouseClient,clickhouseCompliantRandomCharacters,diff --git a/web/src/features/evals/components/evaluator-table.tsx b/web/src/features/evals/components/evaluator-table.tsxindex 8ac2d53870..f9d1df6d6e 100644--- a/web/src/features/evals/components/evaluator-table.tsx+++ b/web/src/features/evals/components/evaluator-table.tsx@@ -18,7 +18,7 @@ import {useQueryParam,StringParam,} from "use-query-params";-import { z } from "zod";+import { z } from "zod/v4";import { generateJobExecutionCounts } from "@/src/features/evals/utils/job-execution-utils";import { useOrderByState } from "@/src/features/orderBy/hooks/useOrderByState";import TableIdOrName from "@/src/components/table/table-id";diff --git a/web/src/features/evals/components/inner-evaluator-form.tsx b/web/src/features/evals/components/inner-evaluator-form.tsxindex 58057f8ac7..6a8b24e2b8 100644--- a/web/src/features/evals/components/inner-evaluator-form.tsx+++ b/web/src/features/evals/components/inner-evaluator-form.tsx@@ -1,4 +1,4 @@-import { useFieldArray, useForm } from "react-hook-form";+import { type UseFormReturn, useFieldArray, useForm } from "react-hook-form";import { Input } from "@/src/components/ui/input";import { Button } from "@/src/components/ui/button";import {@@ -29,7 +29,7 @@ import {availableDatasetEvalVariables,type ObservationType,} from "@langfuse/shared";-import * as z from "zod";+import { z } from "zod/v4";import { useEffect, useMemo, useState } from "react";import { api } from "@/src/utils/api";import { InlineFilterBuilder } from "@/src/features/filters/components/filter-builder";@@ -44,6 +44,7 @@ import { cn } from "@/src/utils/tailwind";import { Checkbox } from "@/src/components/ui/checkbox";import {evalConfigFormSchema,+ type EvalFormType,isTraceOrDatasetObject,isTraceTarget,type LangfuseObject,@@ -139,7 +140,7 @@ export const InnerEvaluatorForm = (props: {const router = useRouter();const traceId = router.query.traceId as string;- const form = useForm<z.infer<typeof evalConfigFormSchema>>({+ const form = useForm({resolver: zodResolver(evalConfigFormSchema),disabled: props.disabled,defaultValues: {@@ -173,7 +174,7 @@ export const InnerEvaluatorForm = (props: {["NEW", "EXISTING"].includes(option),),},- });+ }) as UseFormReturn<EvalFormType>;const traceFilterOptionsResponse = api.traces.filterOptions.useQuery({ projectId: props.projectId },diff --git a/web/src/features/evals/components/template-form.tsx b/web/src/features/evals/components/template-form.tsxindex a232e19b4e..d2920e58ce 100644--- a/web/src/features/evals/components/template-form.tsx+++ b/web/src/features/evals/components/template-form.tsx@@ -1,6 +1,6 @@import { useEffect, useState } from "react";import { useForm } from "react-hook-form";-import * as z from "zod";+import { z } from "zod/v4";import { Input } from "@/src/components/ui/input";import { Button } from "@/src/components/ui/button";import {@@ -124,7 +124,7 @@ const formSchema = z.object({outputScore: z.string().min(1, "Enter a score function"),outputReasoning: z.string().min(1, "Enter a reasoning function"),referencedEvaluators: z- .nativeEnum(EvalReferencedEvaluators)+ .enum(EvalReferencedEvaluators).optional().default(EvalReferencedEvaluators.PERSIST),shouldUseDefaultModel: z.boolean().default(true),@@ -199,7 +199,7 @@ export const InnerEvalTemplateForm = (props: {// updates the form based on the pre-filled data// either form update or from langfuse-generated template- const form = useForm<z.infer<typeof formSchema>>({+ const form = useForm({resolver: zodResolver(formSchema),disabled: !props.isEditing,defaultValues: {@@ -302,7 +302,7 @@ export const InnerEvalTemplateForm = (props: {if (!parsedModel.success) {setFormError(- `${parsedModel.error.errors[0].path}: ${parsedModel.error.errors[0].message}`,+ `${parsedModel.error.issues[0].path}: ${parsedModel.error.issues[0].message}`,);return;}diff --git a/web/src/features/evals/hooks/useEvalTargetCount.ts b/web/src/features/evals/hooks/useEvalTargetCount.tsindex 6e4f788d21..ac53b60779 100644--- a/web/src/features/evals/hooks/useEvalTargetCount.ts+++ b/web/src/features/evals/hooks/useEvalTargetCount.ts@@ -35,6 +35,8 @@ export function useEvalTargetCount({searchQuery: null,searchType: ["id" as const],orderBy: null,+ page: 0,+ limit: 1,};const tracesCountQuery = api.traces.countAll.useQuery(tracesAllCountFilter, {diff --git a/web/src/features/evals/server/defaultEvalModelRouter.ts b/web/src/features/evals/server/defaultEvalModelRouter.tsindex cacc19d90d..ae0ceef06f 100644--- a/web/src/features/evals/server/defaultEvalModelRouter.ts+++ b/web/src/features/evals/server/defaultEvalModelRouter.ts@@ -3,7 +3,7 @@ import {createTRPCRouter,protectedProjectProcedure,} from "@/src/server/api/trpc";-import { z } from "zod";+import { z } from "zod/v4";import {InvalidRequestError,LangfuseNotFoundError,diff --git a/web/src/features/evals/server/router.ts b/web/src/features/evals/server/router.tsindex d657c07aed..0347e70e5f 100644--- a/web/src/features/evals/server/router.ts+++ b/web/src/features/evals/server/router.ts@@ -1,4 +1,4 @@-import { z } from "zod";+import { z } from "zod/v4";import {createTRPCRouter,protectedProjectProcedure,@@ -59,8 +59,8 @@ const ConfigWithTemplateSchema = z.object({variableMapping: z.array(variableMapping),sampling: z.instanceof(Prisma.Decimal),delay: z.number(),- status: z.nativeEnum(JobConfigState),- jobType: z.nativeEnum(JobType),+ status: z.enum(JobConfigState),+ jobType: z.enum(JobType),createdAt: z.date(),updatedAt: z.date(),timeScope: TimeScopeSchema,@@ -120,7 +120,7 @@ export const CreateEvalTemplate = z.object({}),cloneSourceId: z.string().optional(),referencedEvaluators: z- .nativeEnum(EvalReferencedEvaluators)+ .enum(EvalReferencedEvaluators).optional().default(EvalReferencedEvaluators.PERSIST),});@@ -129,7 +129,7 @@ const CreateEvalJobSchema = z.object({projectId: z.string(),evalTemplateId: z.string(),scoreName: z.string().min(1),- target: z.string(z.enum(["trace", "dataset-run-item"])),+ target: z.string(), // should be z.enum(["trace", "dataset-run-item"])filter: z.array(singleFilter).nullable(), // reusing the filter type from the tablesmapping: z.array(variableMapping),sampling: z.number().gt(0).lte(1),@@ -143,7 +143,7 @@ const UpdateEvalJobSchema = z.object({variableMapping: z.array(variableMapping).optional(),sampling: z.number().gt(0).lte(1).optional(),delay: z.number().gte(0).optional(),- status: z.nativeEnum(EvaluatorStatus).optional(),+ status: z.enum(EvaluatorStatus).optional(),timeScope: TimeScopeSchema.optional(),});@@ -991,7 +991,7 @@ export const evalRouter = createTRPCRouter({projectId: z.string(),evalTemplateId: z.string(),datasetId: z.string(),- newStatus: z.nativeEnum(EvaluatorStatus),+ newStatus: z.enum(EvaluatorStatus),}),).mutation(diff --git a/web/src/features/evals/types.ts b/web/src/features/evals/types.tsindex 54af47d9b3..1e38bb6864 100644--- a/web/src/features/evals/types.ts+++ b/web/src/features/evals/types.ts@@ -1,4 +1,4 @@-import { z } from "zod";+import { z } from "zod/v4";import { JobConfigState, type JobConfiguration } from "@langfuse/shared";export enum EvalReferencedEvaluators {@@ -7,7 +7,7 @@ export enum EvalReferencedEvaluators {}export const EvaluatorStatus = JobConfigState;-export const EvaluatorStatusSchema = z.nativeEnum(EvaluatorStatus);+export const EvaluatorStatusSchema = z.enum(EvaluatorStatus);export type EvaluatorStatusType = z.infer<typeof EvaluatorStatusSchema>;export type PartialConfig = Pick<diff --git a/web/src/features/evals/utils/evaluator-form-utils.ts b/web/src/features/evals/utils/evaluator-form-utils.tsindex 6f6b75b610..a1129554f7 100644--- a/web/src/features/evals/utils/evaluator-form-utils.ts+++ b/web/src/features/evals/utils/evaluator-form-utils.ts@@ -1,4 +1,4 @@-import { z } from "zod";+import { z } from "zod/v4";import {singleFilter,type langfuseObjects,diff --git a/web/src/features/experiments/components/CreateExperimentsForm.tsx b/web/src/features/experiments/components/CreateExperimentsForm.tsxindex e6e16b89cd..5a5670904d 100644--- a/web/src/features/experiments/components/CreateExperimentsForm.tsx+++ b/web/src/features/experiments/components/CreateExperimentsForm.tsx@@ -71,7 +71,7 @@ import { TemplateSelector } from "@/src/features/evals/components/template-selecimport { EvaluatorForm } from "@/src/features/evals/components/evaluator-form";import { useEvaluatorDefaults } from "@/src/features/experiments/hooks/useEvaluatorDefaults";import { useExperimentEvaluatorData } from "@/src/features/experiments/hooks/useExperimentEvaluatorData";-import { z } from "zod";+import { z } from "zod/v4";import { zodResolver } from "@hookform/resolvers/zod";import { useForm } from "react-hook-form";import { getFinalModelParams } from "@/src/utils/getFinalModelParams";@@ -147,7 +147,7 @@ export const CreateExperimentsForm = ({availableProviders,} = useModelParams();- const form = useForm<CreateExperiment>({+ const form = useForm({resolver: zodResolver(CreateExperimentData),defaultValues: {promptId: "",diff --git a/web/src/features/experiments/server/router.ts b/web/src/features/experiments/server/router.tsindex 5afd956ed6..7deb486ecc 100644--- a/web/src/features/experiments/server/router.ts+++ b/web/src/features/experiments/server/router.ts@@ -1,4 +1,4 @@-import { z } from "zod";+import { z } from "zod/v4";import { randomUUID } from "crypto";import {type ExperimentMetadata,diff --git a/web/src/features/llm-api-key/server/router.ts b/web/src/features/llm-api-key/server/router.tsindex 1316e0ad95..6d1d350c7f 100644--- a/web/src/features/llm-api-key/server/router.ts+++ b/web/src/features/llm-api-key/server/router.ts@@ -1,4 +1,4 @@-import { z } from "zod";+import { z } from "zod/v4";import { auditLog } from "@/src/features/audit-logs/auditLog";import {CreateLlmApiKey,diff --git a/web/src/features/llm-api-key/types.ts b/web/src/features/llm-api-key/types.tsindex d673d86c69..4f38eb8cbc 100644--- a/web/src/features/llm-api-key/types.ts+++ b/web/src/features/llm-api-key/types.ts@@ -1,10 +1,10 @@-import { z } from "zod";+import { z } from "zod/v4";import { LLMAdapter, BedrockConfigSchema } from "@langfuse/shared";export const LlmApiKeySchema = z.object({projectId: z.string(),provider: z.string().min(1),- adapter: z.nativeEnum(LLMAdapter),+ adapter: z.enum(LLMAdapter),baseURL: z.string().url().optional(),withDefaultModels: z.boolean().optional(),customModels: z.array(z.string().min(1)).optional(),diff --git a/web/src/features/llm-schemas/server/router.ts b/web/src/features/llm-schemas/server/router.tsindex 2c5fce69f7..28960c1071 100644--- a/web/src/features/llm-schemas/server/router.ts+++ b/web/src/features/llm-schemas/server/router.ts@@ -1,5 +1,5 @@import { type Prisma } from "@langfuse/shared";-import { z } from "zod";+import { z } from "zod/v4";import {createTRPCRouter,protectedProjectProcedure,diff --git a/web/src/features/llm-schemas/validation.ts b/web/src/features/llm-schemas/validation.tsindex 602301a9a1..a42f9f6a5b 100644--- a/web/src/features/llm-schemas/validation.ts+++ b/web/src/features/llm-schemas/validation.ts@@ -1,4 +1,4 @@-import { z } from "zod";+import { z } from "zod/v4";import { LLMJSONSchema } from "@langfuse/shared";export const LLMSchemaNameSchema = zdiff --git a/web/src/features/llm-tools/server/router.ts b/web/src/features/llm-tools/server/router.tsindex 0e48bd9035..87a40a3c95 100644--- a/web/src/features/llm-tools/server/router.ts+++ b/web/src/features/llm-tools/server/router.ts@@ -1,5 +1,5 @@import { type Prisma } from "@langfuse/shared";-import { z } from "zod";+import { z } from "zod/v4";import {createTRPCRouter,protectedProjectProcedure,diff --git a/web/src/features/llm-tools/validation.ts b/web/src/features/llm-tools/validation.tsindex bf34aad179..9ce5cece4a 100644--- a/web/src/features/llm-tools/validation.ts+++ b/web/src/features/llm-tools/validation.ts@@ -1,4 +1,4 @@-import { z } from "zod";+import { z } from "zod/v4";import { LLMJSONSchema } from "@langfuse/shared";export const LLMToolNameSchema = zdiff --git a/web/src/features/media/validation.ts b/web/src/features/media/validation.tsindex df155c5843..1ff5b22efe 100644--- a/web/src/features/media/validation.ts+++ b/web/src/features/media/validation.ts@@ -1,4 +1,4 @@-import { z } from "zod";+import { z } from "zod/v4";export enum MediaEnabledFields {Input = "input",@@ -76,7 +76,7 @@ export enum MediaFileExtension {export const GetMediaUploadUrlQuerySchema = z.object({traceId: z.string(),observationId: z.string().nullish(),- contentType: z.nativeEnum(MediaContentType, {+ contentType: z.enum(MediaContentType, {message: `Invalid content type. Only supporting ${Object.values(MediaContentType,).join(", ")}`,@@ -88,7 +88,7 @@ export const GetMediaUploadUrlQuerySchema = z.object({/^[A-Za-z0-9+/=]{44}$/,"Must be a 44 character base64 encoded SHA-256 hash",),- field: z.nativeEnum(MediaEnabledFields, {+ field: z.enum(MediaEnabledFields, {message: `Invalid field. Only supporting ${Object.values(MediaEnabledFields,).join(", ")}`,@@ -136,11 +136,11 @@ export type GetMediaResponse = z.infer<typeof GetMediaResponseSchema>;export const MediaReturnSchema = z.object({mediaId: z.string(),- contentType: z.nativeEnum(MediaContentType),+ contentType: z.enum(MediaContentType),contentLength: z.coerce.number(),url: z.string(),urlExpiry: z.string(),- field: z.nativeEnum(MediaEnabledFields),+ field: z.enum(MediaEnabledFields),});export type MediaReturnType = z.infer<typeof MediaReturnSchema>;diff --git a/web/src/features/models/components/UpsertModelFormDrawer.tsx b/web/src/features/models/components/UpsertModelFormDrawer.tsxindex 8c62356673..22e89d894a 100644--- a/web/src/features/models/components/UpsertModelFormDrawer.tsx+++ b/web/src/features/models/components/UpsertModelFormDrawer.tsx@@ -2,7 +2,7 @@ import { MinusCircle, PlusCircle, X } from "lucide-react";import Link from "next/link";import { useEffect, useState } from "react";import { useForm } from "react-hook-form";-import * as z from "zod";+import * as z from "zod/v4";import { CodeMirrorEditor } from "@/src/components/editor";import { Button } from "@/src/components/ui/button";@@ -98,7 +98,7 @@ export const UpsertModelFormDrawer = ({};}- const form = useForm<FormUpsertModel>({+ const form = useForm({resolver: zodResolver(props.action === "edit"? FormUpsertModelSchema.omit({ modelName: true }).extend({diff --git a/web/src/features/models/validation.ts b/web/src/features/models/validation.tsindex 598f34fce6..ba5762f4ce 100644--- a/web/src/features/models/validation.ts+++ b/web/src/features/models/validation.ts@@ -1,4 +1,4 @@-import { z } from "zod";+import { z } from "zod/v4";export const UsageTypeSchema = z.string().regex(/^[a-zA-Z0-9_-]+$/);export const PriceSchema = z.number().nonnegative();@@ -18,7 +18,7 @@ export const GetModelResultSchema = z.object({modelName: z.string(),matchPattern: z.string(),tokenizerConfig: z.union([- z.record(z.union([z.string(), z.coerce.number()])).nullable(),+ z.record(z.string(), z.union([z.string(), z.coerce.number()])).nullable(),z.string(),]),tokenizerId: TokenizerSchema,@@ -41,7 +41,7 @@ export const UpsertModelSchema = z.object({}).pipe(TokenizerSchema.nullish()),tokenizerConfig: z- .record(z.union([z.string(), z.coerce.number()]))+ .record(z.string(), z.union([z.string(), z.coerce.number()])).optional(),prices: PriceMapSchema,});diff --git a/web/src/features/organizations/components/DeleteOrganizationButton.tsx b/web/src/features/organizations/components/DeleteOrganizationButton.tsxindex cab5d2bb47..a64a167885 100644--- a/web/src/features/organizations/components/DeleteOrganizationButton.tsx+++ b/web/src/features/organizations/components/DeleteOrganizationButton.tsx@@ -18,7 +18,7 @@ import {} from "@/src/components/ui/form";import { Input } from "@/src/components/ui/input";import { api } from "@/src/utils/api";-import * as z from "zod";+import * as z from "zod/v4";import { useForm } from "react-hook-form";import { zodResolver } from "@hookform/resolvers/zod";import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";@@ -48,7 +48,7 @@ export function DeleteOrganizationButton() {const deleteOrganization = api.organizations.delete.useMutation();const hasProjects = !!organization && organization.projects.length > 0;- const form = useForm<z.infer<typeof formSchema>>({+ const form = useForm({resolver: zodResolver(formSchema),defaultValues: {name: "",diff --git a/web/src/features/organizations/components/NewOrganizationForm.tsx b/web/src/features/organizations/components/NewOrganizationForm.tsxindex c46b3cce71..8094219d76 100644--- a/web/src/features/organizations/components/NewOrganizationForm.tsx+++ b/web/src/features/organizations/components/NewOrganizationForm.tsx@@ -1,5 +1,5 @@import { Button } from "@/src/components/ui/button";-import type * as z from "zod";+import type * as z from "zod/v4";import { zodResolver } from "@hookform/resolvers/zod";import { useForm } from "react-hook-form";import {@@ -23,7 +23,7 @@ export const NewOrganizationForm = ({}) => {const { update: updateSession } = useSession();- const form = useForm<z.infer<typeof organizationNameSchema>>({+ const form = useForm({resolver: zodResolver(organizationNameSchema),defaultValues: {name: "",diff --git a/web/src/features/organizations/components/RenameOrganization.tsx b/web/src/features/organizations/components/RenameOrganization.tsxindex e87529748e..11ce5c6108 100644--- a/web/src/features/organizations/components/RenameOrganization.tsx+++ b/web/src/features/organizations/components/RenameOrganization.tsx@@ -1,7 +1,7 @@import { Button } from "@/src/components/ui/button";import { Input } from "@/src/components/ui/input";import { api } from "@/src/utils/api";-import type * as z from "zod";+import type * as z from "zod/v4";import { zodResolver } from "@hookform/resolvers/zod";import { useForm } from "react-hook-form";import {@@ -32,7 +32,7 @@ export default function RenameOrganization() {const orgName =organization && "name" in organization ? organization.name : "";- const form = useForm<z.infer<typeof projectNameSchema>>({+ const form = useForm({resolver: zodResolver(projectNameSchema),defaultValues: {name: "",diff --git a/web/src/features/organizations/server/organizationRouter.ts b/web/src/features/organizations/server/organizationRouter.tsindex 9acc0a934c..077a6ad5b0 100644--- a/web/src/features/organizations/server/organizationRouter.ts+++ b/web/src/features/organizations/server/organizationRouter.ts@@ -5,7 +5,7 @@ import {} from "@/src/server/api/trpc";import { auditLog } from "@/src/features/audit-logs/auditLog";import { organizationNameSchema } from "@/src/features/organizations/utils/organizationNameSchema";-import * as z from "zod";+import * as z from "zod/v4";import { throwIfNoOrganizationAccess } from "@/src/features/rbac/utils/checkOrganizationAccess";import { TRPCError } from "@trpc/server";import { ApiAuthService } from "@/src/features/public-api/server/apiAuth";diff --git a/web/src/features/organizations/utils/organizationNameSchema.ts b/web/src/features/organizations/utils/organizationNameSchema.tsindex f31de7fce1..f29fed5d5d 100644--- a/web/src/features/organizations/utils/organizationNameSchema.ts+++ b/web/src/features/organizations/utils/organizationNameSchema.ts@@ -1,5 +1,5 @@import { noHtmlCheck } from "@langfuse/shared";-import * as z from "zod";+import * as z from "zod/v4";export const organizationNameSchema = z.object({name: zdiff --git a/web/src/features/playground/page/components/CreateOrEditLLMSchemaDialog.tsx b/web/src/features/playground/page/components/CreateOrEditLLMSchemaDialog.tsxindex 0c6451b01f..24df4e646d 100644--- a/web/src/features/playground/page/components/CreateOrEditLLMSchemaDialog.tsx+++ b/web/src/features/playground/page/components/CreateOrEditLLMSchemaDialog.tsx@@ -2,7 +2,7 @@ import React, { useEffect, useState } from "react";import { useForm } from "react-hook-form";import { zodResolver } from "@hookform/resolvers/zod";import { ArrowUpRight } from "lucide-react";-import * as z from "zod";+import * as z from "zod/v4";import { Button } from "@/src/components/ui/button";import {@@ -65,7 +65,7 @@ export const CreateOrEditLLMSchemaDialog: React.FC<const [open, setOpen] = useState(false);- const form = useForm<FormValues>({+ const form = useForm({resolver: zodResolver(formSchema),defaultValues: props.defaultValues ?? {name: "",diff --git a/web/src/features/playground/page/components/CreateOrEditLLMToolDialog.tsx b/web/src/features/playground/page/components/CreateOrEditLLMToolDialog.tsxindex f1f19f06dc..fb8122b9a7 100644--- a/web/src/features/playground/page/components/CreateOrEditLLMToolDialog.tsx+++ b/web/src/features/playground/page/components/CreateOrEditLLMToolDialog.tsx@@ -2,7 +2,7 @@ import React, { useEffect, useState } from "react";import { useForm } from "react-hook-form";import { zodResolver } from "@hookform/resolvers/zod";import { ArrowUpRight } from "lucide-react";-import * as z from "zod";+import * as z from "zod/v4";import { Button } from "@/src/components/ui/button";import {@@ -65,7 +65,7 @@ export const CreateOrEditLLMToolDialog: React.FC<CreateOrEditLLMToolDialog> = (const [open, setOpen] = useState(false);- const form = useForm<FormValues>({+ const form = useForm({resolver: zodResolver(formSchema),defaultValues: props.defaultValues ?? {name: "",diff --git a/web/src/features/playground/page/components/JumpToPlaygroundButton.tsx b/web/src/features/playground/page/components/JumpToPlaygroundButton.tsxindex 4b141b0145..ede194aafe 100644--- a/web/src/features/playground/page/components/JumpToPlaygroundButton.tsx+++ b/web/src/features/playground/page/components/JumpToPlaygroundButton.tsx@@ -1,7 +1,7 @@import { Terminal } from "lucide-react";import { useEffect, useState, useMemo } from "react";import { useRouter } from "next/router";-import { z } from "zod";+import { z } from "zod/v4";import { createEmptyMessage } from "@/src/components/ChatMessages/utils/createEmptyMessage";import { Button } from "@/src/components/ui/button";@@ -139,7 +139,7 @@ export const JumpToPlaygroundButton: React.FC<JumpToPlaygroundButtonProps> = (const ParsedChatMessageListSchema = z.array(z.object({- role: z.nativeEnum(ChatMessageRole),+ role: z.enum(ChatMessageRole),content: z.union([z.string(),zdiff --git a/web/src/features/playground/server/validateChatCompletionBody.ts b/web/src/features/playground/server/validateChatCompletionBody.tsindex 7813aa7504..73135d6403 100644--- a/web/src/features/playground/server/validateChatCompletionBody.ts+++ b/web/src/features/playground/server/validateChatCompletionBody.ts@@ -1,4 +1,4 @@-import { z } from "zod";+import { z } from "zod/v4";import {LLMAdapter,LLMJSONSchema,@@ -8,7 +8,7 @@ import {const ModelParamsSchema = z.object({provider: z.string(),- adapter: z.nativeEnum(LLMAdapter),+ adapter: z.enum(LLMAdapter),model: z.string(),temperature: z.number().optional(),max_tokens: z.number().optional(),diff --git a/web/src/features/posthog-integration/posthog-integration-router.ts b/web/src/features/posthog-integration/posthog-integration-router.tsindex 7d228018c0..8ebe8cd3c1 100644--- a/web/src/features/posthog-integration/posthog-integration-router.ts+++ b/web/src/features/posthog-integration/posthog-integration-router.ts@@ -1,4 +1,4 @@-import { z } from "zod";+import { z } from "zod/v4";import { auditLog } from "@/src/features/audit-logs/auditLog";import { throwIfNoProjectAccess } from "@/src/features/rbac/utils/checkProjectAccess";diff --git a/web/src/features/posthog-integration/types.ts b/web/src/features/posthog-integration/types.tsindex b5fcedd496..dd8dfaf904 100644--- a/web/src/features/posthog-integration/types.ts+++ b/web/src/features/posthog-integration/types.ts@@ -1,4 +1,4 @@-import { z } from "zod";+import { z } from "zod/v4";export const posthogIntegrationFormSchema = z.object({posthogHostname: z.string().url(),diff --git a/web/src/features/projects/components/ConfigureRetention.tsx b/web/src/features/projects/components/ConfigureRetention.tsxindex 9345741259..a094f13f19 100644--- a/web/src/features/projects/components/ConfigureRetention.tsx+++ b/web/src/features/projects/components/ConfigureRetention.tsx@@ -1,7 +1,7 @@import { Card } from "@/src/components/ui/card";import { Input } from "@/src/components/ui/input";import { api } from "@/src/utils/api";-import type * as z from "zod";+import type * as z from "zod/v4";import { zodResolver } from "@hookform/resolvers/zod";import { useForm } from "react-hook-form";import {@@ -31,7 +31,7 @@ export default function ConfigureRetention() {});const hasEntitlement = useHasEntitlement("data-retention");- const form = useForm<z.infer<typeof projectRetentionSchema>>({+ const form = useForm({resolver: zodResolver(projectRetentionSchema),defaultValues: {retention: project?.retentionDays ?? 0,@@ -66,8 +66,8 @@ export default function ConfigureRetention() {<Card className="mb-4 p-3"><p className="mb-4 text-sm text-primary">Data retention automatically deletes events older than the specified- number of days. The value must be 0 or at least 3 days. Set to 0- to retain data indefinitely. The deletion happens asynchronously, i.e.+ number of days. The value must be 0 or at least 3 days. Set to 0 to+ retain data indefinitely. The deletion happens asynchronously, i.e.event may be available for a while after they expired.</p>{Boolean(form.getValues().retention) &&@@ -76,9 +76,9 @@ export default function ConfigureRetention() {Your Project's retention will be set from "{project?.retentionDays ?? "Indefinite"}" to "- {Number(form.watch().retention) === 0+ {Number(form.watch("retention")) === 0? "Indefinite"- : form.watch().retention}+ : Number(form.watch("retention"))}" days.</p>) : !Boolean(project?.retentionDays) ? (@@ -111,7 +111,7 @@ export default function ConfigureRetention() {step="1"placeholder={project?.retentionDays?.toString() ?? ""}{...field}- value={field.value ?? ""}+ value={(field.value as number) ?? ""}className="flex-1"disabled={!hasAccess || !hasEntitlement}/>diff --git a/web/src/features/projects/components/DeleteProjectButton.tsx b/web/src/features/projects/components/DeleteProjectButton.tsxindex 5e3e4e7fcd..f5dfe1f69f 100644--- a/web/src/features/projects/components/DeleteProjectButton.tsx+++ b/web/src/features/projects/components/DeleteProjectButton.tsx@@ -18,7 +18,7 @@ import {} from "@/src/components/ui/form";import { Input } from "@/src/components/ui/input";import { api } from "@/src/utils/api";-import * as z from "zod";+import * as z from "zod/v4";import { useForm } from "react-hook-form";import { zodResolver } from "@hookform/resolvers/zod";import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";@@ -48,7 +48,7 @@ export function DeleteProjectButton() {const deleteProject = api.projects.delete.useMutation();- const form = useForm<z.infer<typeof formSchema>>({+ const form = useForm({resolver: zodResolver(formSchema),defaultValues: {name: "",diff --git a/web/src/features/projects/components/NewProjectForm.tsx b/web/src/features/projects/components/NewProjectForm.tsxindex 5ec3d74027..ff93064156 100644--- a/web/src/features/projects/components/NewProjectForm.tsx+++ b/web/src/features/projects/components/NewProjectForm.tsx@@ -1,5 +1,5 @@import { Button } from "@/src/components/ui/button";-import type * as z from "zod";+import type * as z from "zod/v4";import { zodResolver } from "@hookform/resolvers/zod";import { useForm } from "react-hook-form";import {@@ -28,7 +28,7 @@ export const NewProjectForm = ({const capture = usePostHogClientCapture();const { update: updateSession } = useSession();- const form = useForm<z.infer<typeof projectNameSchema>>({+ const form = useForm({resolver: zodResolver(projectNameSchema),defaultValues: {name: "",diff --git a/web/src/features/projects/components/RenameProject.tsx b/web/src/features/projects/components/RenameProject.tsxindex 9e0449c1ba..63cf634d56 100644--- a/web/src/features/projects/components/RenameProject.tsx+++ b/web/src/features/projects/components/RenameProject.tsx@@ -2,7 +2,7 @@ import { Card } from "@/src/components/ui/card";import { Button } from "@/src/components/ui/button";import { Input } from "@/src/components/ui/input";import { api } from "@/src/utils/api";-import type * as z from "zod";+import type * as z from "zod/v4";import { zodResolver } from "@hookform/resolvers/zod";import { useForm } from "react-hook-form";import {@@ -29,7 +29,7 @@ export default function RenameProject() {scope: "project:update",});- const form = useForm<z.infer<typeof projectNameSchema>>({+ const form = useForm({resolver: zodResolver(projectNameSchema),defaultValues: {name: "",diff --git a/web/src/features/projects/components/TransferProjectButton.tsx b/web/src/features/projects/components/TransferProjectButton.tsxindex 0faeb29836..739a4c3d5d 100644--- a/web/src/features/projects/components/TransferProjectButton.tsx+++ b/web/src/features/projects/components/TransferProjectButton.tsx@@ -19,7 +19,7 @@ import {} from "@/src/components/ui/form";import { Input } from "@/src/components/ui/input";import { api } from "@/src/utils/api";-import * as z from "zod";+import * as z from "zod/v4";import { useForm } from "react-hook-form";import { zodResolver } from "@hookform/resolvers/zod";import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";@@ -81,7 +81,7 @@ export function TransferProjectButton() {},});- const form = useForm<z.infer<typeof formSchema>>({+ const form = useForm({resolver: zodResolver(formSchema),defaultValues: {name: "",diff --git a/web/src/features/projects/server/projectsRouter.ts b/web/src/features/projects/server/projectsRouter.tsindex cf985c50be..00cbf194e4 100644--- a/web/src/features/projects/server/projectsRouter.ts+++ b/web/src/features/projects/server/projectsRouter.ts@@ -3,7 +3,7 @@ import {protectedOrganizationProcedure,protectedProjectProcedure,} from "@/src/server/api/trpc";-import * as z from "zod";+import * as z from "zod/v4";import { throwIfNoProjectAccess } from "@/src/features/rbac/utils/checkProjectAccess";import { TRPCError } from "@trpc/server";import { projectNameSchema } from "@/src/features/auth/lib/projectNameSchema";diff --git a/web/src/features/prompts/components/NewPromptForm/index.tsx b/web/src/features/prompts/components/NewPromptForm/index.tsxindex ac5ef3892d..53ed798042 100644--- a/web/src/features/prompts/components/NewPromptForm/index.tsx+++ b/web/src/features/prompts/components/NewPromptForm/index.tsx@@ -78,7 +78,7 @@ export const NewPromptForm: React.FC<NewPromptFormProps> = (props) => {initialPromptVariant = null;}- const defaultValues: NewPromptFormSchemaType = {+ const defaultValues = {type: initialPromptVariant?.type ?? PromptType.Text,chatPrompt:initialPromptVariant?.type === PromptType.Chat@@ -91,9 +91,10 @@ export const NewPromptForm: React.FC<NewPromptFormProps> = (props) => {name: initialPrompt?.name ?? "",config: JSON.stringify(initialPrompt?.config?.valueOf(), null, 2) || "{}",isActive: !Boolean(initialPrompt),+ commitMessage: initialPrompt?.commitMessage ?? undefined,};- const form = useForm<NewPromptFormSchemaType>({+ const form = useForm({resolver: zodResolver(NewPromptFormSchema),mode: "onTouched",defaultValues,diff --git a/web/src/features/prompts/components/NewPromptForm/validation.ts b/web/src/features/prompts/components/NewPromptForm/validation.tsindex 4067195f31..31e764bf03 100644--- a/web/src/features/prompts/components/NewPromptForm/validation.ts+++ b/web/src/features/prompts/components/NewPromptForm/validation.ts@@ -1,4 +1,4 @@-import { z } from "zod";+import { z } from "zod/v4";import { PromptType } from "@/src/features/prompts/server/utils/validation";import {PromptChatMessageListSchema,@@ -12,7 +12,7 @@ const NewPromptBaseSchema = z.object({.min(1, "Enter a name").regex(/^[^|]*$/, "Prompt name cannot contain '|' character"),isActive: z.boolean({- required_error: "Enter whether the prompt should go live",+ error: "Enter whether the prompt should go live",}),config: z.string().refine(validateJson, "Config needs to be valid JSON"),commitMessage: z@@ -38,7 +38,7 @@ const NewTextPromptSchema = NewPromptBaseSchema.extend({textPrompt: TextPromptSchema,});-export const NewPromptFormSchema = z.union([+export const NewPromptFormSchema = z.discriminatedUnion("type", [NewChatPromptSchema,NewTextPromptSchema,]);diff --git a/web/src/features/prompts/components/ProtectedLabelsSettings.tsx b/web/src/features/prompts/components/ProtectedLabelsSettings.tsxindex 95fe24c693..e6872a927b 100644--- a/web/src/features/prompts/components/ProtectedLabelsSettings.tsx+++ b/web/src/features/prompts/components/ProtectedLabelsSettings.tsx@@ -15,7 +15,7 @@ import { useHasProjectAccess } from "@/src/features/rbac/utils/checkProjectAccesimport { useHasEntitlement } from "@/src/features/entitlements/hooks";import { PromptLabelSchema } from "@/src/features/prompts/server/utils/validation";import { zodResolver } from "@hookform/resolvers/zod";-import { z } from "zod";+import { z } from "zod/v4";import { XIcon, Check, ChevronsUpDown } from "lucide-react";import { ActionButton } from "@/src/components/ActionButton";import { cn } from "@/src/utils/tailwind";@@ -54,7 +54,7 @@ export default function ProtectedLabelsSettings({});const hasEntitlement = useHasEntitlement("prompt-protected-labels");- const form = useForm<AddLabelFormSchemaType>({+ const form = useForm({resolver: zodResolver(AddLabelFormSchema),defaultValues: {label: "",diff --git a/web/src/features/prompts/components/SetPromptVersionLabels/AddLabelForm.tsx b/web/src/features/prompts/components/SetPromptVersionLabels/AddLabelForm.tsxindex 435b27759c..ee855025ef 100644--- a/web/src/features/prompts/components/SetPromptVersionLabels/AddLabelForm.tsx+++ b/web/src/features/prompts/components/SetPromptVersionLabels/AddLabelForm.tsx@@ -1,7 +1,7 @@import React from "react";import { PlusIcon } from "lucide-react";import { useForm } from "react-hook-form";-import { z } from "zod";+import { z } from "zod/v4";import {Form,FormControl,@@ -23,8 +23,6 @@ const AddLabelFormSchema = z.object({),});-type AddLabelFromSchemaType = z.infer<typeof AddLabelFormSchema>;-export const AddLabelForm = (props: {setLabels: React.Dispatch<React.SetStateAction<string[]>>;setSelectedLabels: React.Dispatch<React.SetStateAction<string[]>>;@@ -32,7 +30,7 @@ export const AddLabelForm = (props: {}) => {const capture = usePostHogClientCapture();- const form = useForm<AddLabelFromSchemaType>({+ const form = useForm({resolver: zodResolver(AddLabelFormSchema),defaultValues: {newLabel: "",diff --git a/web/src/features/prompts/components/duplicate-prompt.tsx b/web/src/features/prompts/components/duplicate-prompt.tsxindex 710bec8545..32de577791 100644--- a/web/src/features/prompts/components/duplicate-prompt.tsx+++ b/web/src/features/prompts/components/duplicate-prompt.tsx@@ -25,7 +25,7 @@ import {FormMessage,} from "@/src/components/ui/form";import { useForm } from "react-hook-form";-import { z } from "zod";+import { z } from "zod/v4";import { zodResolver } from "@hookform/resolvers/zod";import { Input } from "@/src/components/ui/input";import { RadioGroup, RadioGroupItem } from "@/src/components/ui/radio-group";@@ -38,7 +38,7 @@ enum CopySettings {const formSchema = z.object({name: z.string().min(1, "Name is required"),- isCopySingleVersion: z.nativeEnum(CopySettings),+ isCopySingleVersion: z.enum(CopySettings),});const DuplicatePromptForm: React.FC<{@@ -50,7 +50,7 @@ const DuplicatePromptForm: React.FC<{}> = ({ projectId, promptId, promptName, promptVersion, onFormSuccess }) => {const capture = usePostHogClientCapture();const router = useRouter();- const form = useForm<z.infer<typeof formSchema>>({+ const form = useForm({resolver: zodResolver(formSchema),defaultValues: {name: promptName + "-copy",diff --git a/web/src/features/prompts/components/prompt-detail.tsx b/web/src/features/prompts/components/prompt-detail.tsxindex 3bb45ee33b..be6953b24f 100644--- a/web/src/features/prompts/components/prompt-detail.tsx+++ b/web/src/features/prompts/components/prompt-detail.tsx@@ -6,7 +6,7 @@ import {useQueryParam,withDefault,} from "use-query-params";-import type { z } from "zod";+import type { z } from "zod/v4";import { OpenAiMessageView } from "@/src/components/trace/IOPreview";import {TabsBar,diff --git a/web/src/features/prompts/components/prompts-table.tsx b/web/src/features/prompts/components/prompts-table.tsxindex 448131eb9f..597ddecb26 100644--- a/web/src/features/prompts/components/prompts-table.tsx+++ b/web/src/features/prompts/components/prompts-table.tsx@@ -207,7 +207,8 @@ export function PromptTable() {projectId={projectId as string}promptName={promptName}promptsFilter={{- ...filterOptionTags,+ page: 0,+ limit: 50,projectId: projectId as string,filter: filterState,orderBy: orderByState,diff --git a/web/src/features/prompts/server/handlers/promptVersionHandler.ts b/web/src/features/prompts/server/handlers/promptVersionHandler.tsindex 884fc4f612..6b61c540bb 100644--- a/web/src/features/prompts/server/handlers/promptVersionHandler.ts+++ b/web/src/features/prompts/server/handlers/promptVersionHandler.ts@@ -1,5 +1,5 @@import { logger } from "@langfuse/shared/src/server";-import { z } from "zod";+import { z } from "zod/v4";import { withMiddlewares } from "@/src/features/public-api/server/withMiddlewares";import { createAuthedProjectAPIRoute } from "@/src/features/public-api/server/createAuthedProjectAPIRoute";diff --git a/web/src/features/prompts/server/routers/promptRouter.ts b/web/src/features/prompts/server/routers/promptRouter.tsindex afae135a2f..de36ec4769 100644--- a/web/src/features/prompts/server/routers/promptRouter.ts+++ b/web/src/features/prompts/server/routers/promptRouter.ts@@ -1,4 +1,4 @@-import { z } from "zod";+import { z } from "zod/v4";import { auditLog } from "@/src/features/audit-logs/auditLog";import {@@ -790,7 +790,7 @@ export const promptRouter = createTRPCRouter({.input(z.object({projectId: z.string(),- type: z.nativeEnum(PromptType).optional(),+ type: z.enum(PromptType).optional(),}),).query(async ({ input, ctx }) => {diff --git a/web/src/features/prompts/server/utils/validation.ts b/web/src/features/prompts/server/utils/validation.tsindex e5467850b9..2bf8bd0afe 100644--- a/web/src/features/prompts/server/utils/validation.ts+++ b/web/src/features/prompts/server/utils/validation.ts@@ -1,4 +1,4 @@-import { z } from "zod";+import { z } from "zod/v4";import { jsonSchema } from "@langfuse/shared";import type { Prompt } from "@langfuse/shared";import { COMMIT_MESSAGE_MAX_LENGTH } from "@/src/features/prompts/constants";diff --git a/web/src/features/public-api/components/CreateLLMApiKeyForm.tsx b/web/src/features/public-api/components/CreateLLMApiKeyForm.tsxindex 87a9e7f39b..a3bd1e98e8 100644--- a/web/src/features/public-api/components/CreateLLMApiKeyForm.tsx+++ b/web/src/features/public-api/components/CreateLLMApiKeyForm.tsx@@ -137,7 +137,7 @@ export function CreateLLMApiKeyForm({const formSchema = createFormSchema(mode);- const form = useForm<z.infer<typeof formSchema>>({+ const form = useForm({resolver: zodResolver(formSchema),defaultValues:mode === "update" && existingKeydiff --git a/web/src/features/public-api/server/RateLimitService.ts b/web/src/features/public-api/server/RateLimitService.tsindex a04e1e562d..29e2db040c 100644--- a/web/src/features/public-api/server/RateLimitService.ts+++ b/web/src/features/public-api/server/RateLimitService.ts@@ -1,5 +1,5 @@import type Redis from "ioredis";-import { type z } from "zod";+import { type z } from "zod/v4";import { RateLimiterRedis, RateLimiterRes } from "rate-limiter-flexible";import { env } from "@/src/env.mjs";import {diff --git a/web/src/features/public-api/server/apiAuth.ts b/web/src/features/public-api/server/apiAuth.tsindex 8d95e4e998..bd4dae770d 100644--- a/web/src/features/public-api/server/apiAuth.ts+++ b/web/src/features/public-api/server/apiAuth.ts@@ -19,7 +19,7 @@ import { isPrismaException } from "@/src/utils/exceptions";import { type Redis } from "ioredis";import { getOrganizationPlanServerSide } from "@/src/features/entitlements/server/getPlan";import { API_KEY_NON_EXISTENT } from "@langfuse/shared/src/server";-import { type z } from "zod";+import { type z } from "zod/v4";import { CloudConfigSchema, isPlan } from "@langfuse/shared";export class ApiAuthService {diff --git a/web/src/features/public-api/server/createAuthedProjectAPIRoute.ts b/web/src/features/public-api/server/createAuthedProjectAPIRoute.tsindex b05012ba8e..651211fb38 100644--- a/web/src/features/public-api/server/createAuthedProjectAPIRoute.ts+++ b/web/src/features/public-api/server/createAuthedProjectAPIRoute.ts@@ -1,5 +1,5 @@import { type NextApiRequest, type NextApiResponse } from "next";-import { type ZodType, type z } from "zod";+import { type ZodType, type z } from "zod/v4";import { ApiAuthService } from "@/src/features/public-api/server/apiAuth";import { prisma } from "@langfuse/shared/src/db";import {@@ -86,10 +86,10 @@ export const createAuthedProjectAPIRoute = <const query = routeConfig.querySchema? routeConfig.querySchema.parse(req.query)- : {};+ : ({} as z.infer<TQuery>);const body = routeConfig.bodySchema? routeConfig.bodySchema.parse(req.body)- : {};+ : ({} as z.infer<TBody>);const ctx = contextWithLangfuseProps({headers: req.headers,diff --git a/web/src/features/public-api/server/filter-builder.ts b/web/src/features/public-api/server/filter-builder.tsindex c5440b8a2b..cb6f0f676b 100644--- a/web/src/features/public-api/server/filter-builder.ts+++ b/web/src/features/public-api/server/filter-builder.ts@@ -9,7 +9,7 @@ import {NumberFilter,type ClickhouseOperator,} from "@langfuse/shared/src/server";-import { z } from "zod";+import { z } from "zod/v4";export type ApiColumnMapping = {id: string;diff --git a/web/src/features/public-api/server/organizationApiKeyRouter.ts b/web/src/features/public-api/server/organizationApiKeyRouter.tsindex d130c96906..2e8f57a119 100644--- a/web/src/features/public-api/server/organizationApiKeyRouter.ts+++ b/web/src/features/public-api/server/organizationApiKeyRouter.ts@@ -4,7 +4,7 @@ import {createTRPCRouter,protectedOrganizationProcedure,} from "@/src/server/api/trpc";-import * as z from "zod";+import * as z from "zod/v4";import { ApiAuthService } from "@/src/features/public-api/server/apiAuth";import { redis } from "@langfuse/shared/src/server";import { createAndAddApiKeysToDb } from "@langfuse/shared/src/server/auth/apiKeys";diff --git a/web/src/features/public-api/server/projectApiKeyRouter.ts b/web/src/features/public-api/server/projectApiKeyRouter.tsindex c0eeedb0ae..ef528d139a 100644--- a/web/src/features/public-api/server/projectApiKeyRouter.ts+++ b/web/src/features/public-api/server/projectApiKeyRouter.ts@@ -4,7 +4,7 @@ import {createTRPCRouter,protectedProjectProcedure,} from "@/src/server/api/trpc";-import * as z from "zod";+import * as z from "zod/v4";import { ApiAuthService } from "@/src/features/public-api/server/apiAuth";import { redis } from "@langfuse/shared/src/server";import { createAndAddApiKeysToDb } from "@langfuse/shared/src/server/auth/apiKeys";diff --git a/web/src/features/public-api/server/withMiddlewares.ts b/web/src/features/public-api/server/withMiddlewares.tsindex 450143884f..5e787ac1b0 100644--- a/web/src/features/public-api/server/withMiddlewares.ts+++ b/web/src/features/public-api/server/withMiddlewares.ts@@ -1,7 +1,7 @@import { isPrismaException } from "@/src/utils/exceptions";import { cors, runMiddleware } from "@/src/features/public-api/server/cors";import { type NextApiRequest, type NextApiResponse } from "next";-import { type ZodError } from "zod";+import { type ZodError } from "zod/v4";import { BaseError, MethodNotAllowedError } from "@langfuse/shared";import { logger, traceException } from "@langfuse/shared/src/server";@@ -63,7 +63,7 @@ export function withMiddlewares(handlers: Handlers) {if (isZodError(error)) {return res.status(400).json({message: "Invalid request data",- error: error.errors,+ error: error.issues,});}diff --git a/web/src/features/public-api/types/annotation-queues.ts b/web/src/features/public-api/types/annotation-queues.tsindex f0b0320b82..0f9e934d4e 100644--- a/web/src/features/public-api/types/annotation-queues.ts+++ b/web/src/features/public-api/types/annotation-queues.ts@@ -1,4 +1,4 @@-import { z } from "zod";+import { z } from "zod/v4";import {paginationMetaResponseZod,publicApiPaginationZod,@@ -17,8 +17,8 @@ export const AnnotationQueueItemSchema = zid: z.string(),queueId: z.string(),objectId: z.string(),- objectType: z.nativeEnum(AnnotationQueueObjectType),- status: z.nativeEnum(AnnotationQueueStatus),+ objectType: z.enum(AnnotationQueueObjectType),+ status: z.enum(AnnotationQueueStatus),completedAt: z.coerce.date().nullable(),createdAt: z.coerce.date(),updatedAt: z.coerce.date(),@@ -71,7 +71,7 @@ export const GetAnnotationQueueItemsQuery = z.object({...publicApiPaginationZod,queueId: z.string(),- status: z.nativeEnum(AnnotationQueueStatus).optional(),+ status: z.enum(AnnotationQueueStatus).optional(),}).strict();@@ -96,9 +96,9 @@ export const GetAnnotationQueueItemByIdResponse = AnnotationQueueItemSchema;export const CreateAnnotationQueueItemBody = z.object({objectId: z.string(),- objectType: z.nativeEnum(AnnotationQueueObjectType),+ objectType: z.enum(AnnotationQueueObjectType),status: z- .nativeEnum(AnnotationQueueStatus)+ .enum(AnnotationQueueStatus).optional().default(AnnotationQueueStatus.PENDING),})@@ -109,7 +109,7 @@ export const CreateAnnotationQueueItemResponse = AnnotationQueueItemSchema;// PATCH /annotation-queues/:queueId/items/:itemIdexport const UpdateAnnotationQueueItemBody = z.object({- status: z.nativeEnum(AnnotationQueueStatus).optional(),+ status: z.enum(AnnotationQueueStatus).optional(),}).strict();diff --git a/web/src/features/public-api/types/comments.ts b/web/src/features/public-api/types/comments.tsindex 139ba0bf2a..b234d77ac1 100644--- a/web/src/features/public-api/types/comments.ts+++ b/web/src/features/public-api/types/comments.ts@@ -3,19 +3,19 @@ import {CreateCommentData,publicApiPaginationZod,} from "@langfuse/shared";-import { z } from "zod";+import { z } from "zod/v4";/*** Objects*/const APIComment = z- .strictObject({+ .object({id: z.string(),projectId: z.string(),createdAt: z.coerce.date(),updatedAt: z.coerce.date(),- objectType: z.nativeEnum(CommentObjectType),+ objectType: z.enum(CommentObjectType),objectId: z.string(),content: z.string().min(1).max(3000),authorUserId: z.string().nullish(),@@ -35,7 +35,7 @@ export const PostCommentsV1Response = z.object({ id: z.string() }).strict();// GET /commentsexport const GetCommentsV1Query = z.object({- objectType: z.nativeEnum(CommentObjectType).nullish(),+ objectType: z.enum(CommentObjectType).nullish(),objectId: z.string().nullish(),authorUserId: z.string().nullish(),...publicApiPaginationZod,diff --git a/web/src/features/public-api/types/datasets.ts b/web/src/features/public-api/types/datasets.tsindex 088ed8dfe9..5728ba372b 100644--- a/web/src/features/public-api/types/datasets.ts+++ b/web/src/features/public-api/types/datasets.ts@@ -9,7 +9,7 @@ import {type DatasetRunItems as DbDatasetRunItems,removeObjectKeys,} from "@langfuse/shared";-import { z } from "zod";+import { z } from "zod/v4";/*** Objectsdiff --git a/web/src/features/public-api/types/events.ts b/web/src/features/public-api/types/events.tsindex 7f808111aa..cfab5f0dbb 100644--- a/web/src/features/public-api/types/events.ts+++ b/web/src/features/public-api/types/events.ts@@ -1,4 +1,4 @@-import { z } from "zod";+import { z } from "zod/v4";import { CreateEventEvent } from "@langfuse/shared/src/server";// POST /eventsdiff --git a/web/src/features/public-api/types/generations.ts b/web/src/features/public-api/types/generations.tsindex 590f6bbf26..f4d1bcced1 100644--- a/web/src/features/public-api/types/generations.ts+++ b/web/src/features/public-api/types/generations.ts@@ -1,6 +1,6 @@// src/features/public-api/types/generations.ts-import { z } from "zod";+import { z } from "zod/v4";import {LegacyGenerationsCreateSchema,LegacyGenerationPatchSchema,diff --git a/web/src/features/public-api/types/metrics.ts b/web/src/features/public-api/types/metrics.tsindex 4dde694b27..15c3aeae44 100644--- a/web/src/features/public-api/types/metrics.ts+++ b/web/src/features/public-api/types/metrics.ts@@ -5,7 +5,7 @@ import {singleFilter,} from "@langfuse/shared";import { stringDateTime } from "@langfuse/shared/src/server";-import { z } from "zod";+import { z } from "zod/v4";import { dimension, granularities, metric, views } from "@/src/features/query";/**@@ -77,7 +77,7 @@ export const GetMetricsV1Query = z.object({});export const GetMetricsV1Response = z.object({- data: z.array(z.record(z.unknown())),+ data: z.array(z.record(z.string(), z.unknown())),// meta: paginationMetaResponseZod,});diff --git a/web/src/features/public-api/types/models.ts b/web/src/features/public-api/types/models.tsindex 9939363876..25900c3fea 100644--- a/web/src/features/public-api/types/models.ts+++ b/web/src/features/public-api/types/models.ts@@ -5,7 +5,7 @@ import {jsonSchema,publicApiPaginationZod,} from "@langfuse/shared";-import { z } from "zod";+import { z } from "zod/v4";import { type Decimal } from "decimal.js";/**diff --git a/web/src/features/public-api/types/observations.ts b/web/src/features/public-api/types/observations.tsindex 0cdc2339a6..565c03cd3e 100644--- a/web/src/features/public-api/types/observations.ts+++ b/web/src/features/public-api/types/observations.ts@@ -9,7 +9,7 @@ import {stringDateTime,} from "@langfuse/shared/src/server";import type Decimal from "decimal.js";-import { z } from "zod";+import { z } from "zod/v4";/*** Objectsdiff --git a/web/src/features/public-api/types/sessions.ts b/web/src/features/public-api/types/sessions.tsindex cb11fc38da..419f4bd8ea 100644--- a/web/src/features/public-api/types/sessions.ts+++ b/web/src/features/public-api/types/sessions.ts@@ -5,7 +5,7 @@ import {} from "@langfuse/shared";import { stringDateTime } from "@langfuse/shared/src/server";-import { z } from "zod";+import { z } from "zod/v4";/*** Objectsdiff --git a/web/src/features/public-api/types/spans.ts b/web/src/features/public-api/types/spans.tsindex 7a6a8ed977..73c2365f2c 100644--- a/web/src/features/public-api/types/spans.ts+++ b/web/src/features/public-api/types/spans.ts@@ -1,4 +1,4 @@-import { z } from "zod";+import { z } from "zod/v4";import {LegacySpanPatchSchema,LegacySpanPostSchema,diff --git a/web/src/features/public-api/types/traces.ts b/web/src/features/public-api/types/traces.tsindex 67745d4489..b611c8cfd5 100644--- a/web/src/features/public-api/types/traces.ts+++ b/web/src/features/public-api/types/traces.ts@@ -6,7 +6,7 @@ import {publicApiPaginationZod,} from "@langfuse/shared";import { stringDateTime, TraceBody } from "@langfuse/shared/src/server";-import { z } from "zod";+import { z } from "zod/v4";/*** Objects@@ -67,7 +67,7 @@ export const GetTracesV1Query = z.object({const [column, order] = v.split(".");return { column, order: order?.toUpperCase() };})- .pipe(orderBy.nullish()),+ .pipe(orderBy.nullable()),});export const GetTracesV1Response = z.object({diff --git a/web/src/features/query/dashboardUiTableToViewMapping.ts b/web/src/features/query/dashboardUiTableToViewMapping.tsindex 9b045457c3..9bae0cd9e6 100644--- a/web/src/features/query/dashboardUiTableToViewMapping.ts+++ b/web/src/features/query/dashboardUiTableToViewMapping.ts@@ -1,4 +1,4 @@-import { z } from "zod";+import { z } from "zod/v4";import { dashboardColumnDefinitions, singleFilter } from "@langfuse/shared";import { type views } from "@/src/features/query/types";diff --git a/web/src/features/query/dataModel.ts b/web/src/features/query/dataModel.tsindex 3f55b00685..298be13e4c 100644--- a/web/src/features/query/dataModel.ts+++ b/web/src/features/query/dataModel.ts@@ -1,4 +1,4 @@-import { type z } from "zod";+import { type z } from "zod/v4";import {type views,type ViewDeclarationType,diff --git a/web/src/features/query/server/queryBuilder.ts b/web/src/features/query/server/queryBuilder.tsindex e918fedda7..5ec4041333 100644--- a/web/src/features/query/server/queryBuilder.ts+++ b/web/src/features/query/server/queryBuilder.ts@@ -1,4 +1,4 @@-import { type z } from "zod";+import { type z } from "zod/v4";import { convertDateToClickhouseDateTime } from "@langfuse/shared/src/server";import {type QueryType,@@ -727,7 +727,7 @@ export class QueryBuilder {const parseResult = queryModel.safeParse(query);if (!parseResult.success) {throw new InvalidRequestError(- `Invalid query: ${JSON.stringify(parseResult.error.errors)}`,+ `Invalid query: ${JSON.stringify(parseResult.error.issues)}`,);}diff --git a/web/src/features/query/types.ts b/web/src/features/query/types.tsindex b3ebdde1c8..0417a8440a 100644--- a/web/src/features/query/types.ts+++ b/web/src/features/query/types.ts@@ -1,4 +1,4 @@-import { z } from "zod";+import { z } from "zod/v4";import { singleFilter } from "@langfuse/shared";export type ViewDeclarationType = z.infer<typeof viewDeclaration>;@@ -12,6 +12,7 @@ export const viewDeclaration = z.object({// This is the basic statement that we query from. Usually, this should be the view_name + FINAL or a more complex subquery.baseCte: z.string(),dimensions: z.record(+ z.string(),z.object({sql: z.string(),alias: z.string().optional(),@@ -22,6 +23,7 @@ export const viewDeclaration = z.object({}),),measures: z.record(+ z.string(),z.object({sql: z.string(),alias: z.string().optional(),@@ -32,6 +34,7 @@ export const viewDeclaration = z.object({}),),tableRelations: z.record(+ z.string(),z.object({name: z.string(),joinConditionSql: z.string(),diff --git a/web/src/features/rbac/components/CreateProjectMemberButton.tsx b/web/src/features/rbac/components/CreateProjectMemberButton.tsxindex 580eee9dae..3fb5c9f294 100644--- a/web/src/features/rbac/components/CreateProjectMemberButton.tsx+++ b/web/src/features/rbac/components/CreateProjectMemberButton.tsx@@ -2,7 +2,7 @@ import { Button } from "@/src/components/ui/button";import { api } from "@/src/utils/api";import { useState } from "react";import { PlusIcon } from "lucide-react";-import * as z from "zod";+import * as z from "zod/v4";import { zodResolver } from "@hookform/resolvers/zod";import { useForm } from "react-hook-form";import {@@ -43,8 +43,8 @@ import { ActionButton } from "@/src/components/ActionButton";const formSchema = z.object({email: z.string().trim().email(),- orgRole: z.nativeEnum(Role),- projectRole: z.nativeEnum(Role),+ orgRole: z.enum(Role),+ projectRole: z.enum(Role),});export function CreateProjectMemberButton(props: {@@ -65,6 +65,8 @@ export function CreateProjectMemberButton(props: {const orgMemberCount = api.members.allFromOrg.useQuery({orgId: props.orgId,+ page: 0,+ limit: 1,},{enabled: hasOrgAccess,@@ -73,6 +75,8 @@ export function CreateProjectMemberButton(props: {const inviteCount = api.members.allInvitesFromOrg.useQuery({orgId: props.orgId,+ page: 0,+ limit: 1,},{enabled: hasOrgAccess,@@ -92,7 +96,7 @@ export function CreateProjectMemberButton(props: {}),});- const form = useForm<z.infer<typeof formSchema>>({+ const form = useForm({resolver: zodResolver(formSchema),defaultValues: {email: "",diff --git a/web/src/features/rbac/server/allInvitesRoutes.ts b/web/src/features/rbac/server/allInvitesRoutes.tsindex 2ebb5457c0..bd79f5ca92 100644--- a/web/src/features/rbac/server/allInvitesRoutes.ts+++ b/web/src/features/rbac/server/allInvitesRoutes.ts@@ -9,7 +9,7 @@ import {} from "@/src/server/api/trpc";import { paginationZod, type PrismaClient, Role } from "@langfuse/shared";import { TRPCError } from "@trpc/server";-import { z } from "zod";+import { z } from "zod/v4";const orgLevelInviteQuery = z.object({orgId: z.string(),diff --git a/web/src/features/rbac/server/allMembersRoutes.ts b/web/src/features/rbac/server/allMembersRoutes.tsindex 776ea92e34..156b26ab6a 100644--- a/web/src/features/rbac/server/allMembersRoutes.ts+++ b/web/src/features/rbac/server/allMembersRoutes.ts@@ -9,7 +9,7 @@ import {} from "@/src/server/api/trpc";import { paginationZod, type PrismaClient, Role } from "@langfuse/shared";import { TRPCError } from "@trpc/server";-import { z } from "zod";+import { z } from "zod/v4";const orgLevelMemberQuery = z.object({orgId: z.string(),diff --git a/web/src/features/rbac/server/membersRouter.ts b/web/src/features/rbac/server/membersRouter.tsindex c361ed176b..8cb28ebe31 100644--- a/web/src/features/rbac/server/membersRouter.ts+++ b/web/src/features/rbac/server/membersRouter.ts@@ -4,7 +4,7 @@ import {protectedOrganizationProcedure,} from "@/src/server/api/trpc";import { TRPCError } from "@trpc/server";-import * as z from "zod";+import * as z from "zod/v4";import {hasOrganizationAccess,throwIfNoOrganizationAccess,@@ -86,10 +86,10 @@ export const membersRouter = createTRPCRouter({z.object({orgId: z.string(),email: z.string().email(),- orgRole: z.nativeEnum(Role),+ orgRole: z.enum(Role),// in case a projectRole should be set for a specific projectprojectId: z.string().optional(),- projectRole: z.nativeEnum(Role).optional(),+ projectRole: z.enum(Role).optional(),}),).mutation(async ({ input, ctx }) => {@@ -465,7 +465,7 @@ export const membersRouter = createTRPCRouter({z.object({orgId: z.string(),orgMembershipId: z.string(),- role: z.nativeEnum(Role),+ role: z.enum(Role),}),).mutation(async ({ input, ctx }) => {@@ -539,7 +539,7 @@ export const membersRouter = createTRPCRouter({orgMembershipId: z.string(),userId: z.string(),projectId: z.string(),- projectRole: z.nativeEnum(Role).nullable(),+ projectRole: z.enum(Role).nullable(),}),).mutation(async ({ input, ctx }) => {diff --git a/web/src/features/scores/components/AnnotateDrawer.tsx b/web/src/features/scores/components/AnnotateDrawer.tsxindex aeb31fcd20..22b4775281 100644--- a/web/src/features/scores/components/AnnotateDrawer.tsx+++ b/web/src/features/scores/components/AnnotateDrawer.tsx@@ -14,7 +14,7 @@ import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePosimport { useHasProjectAccess } from "@/src/features/rbac/utils/checkProjectAccess";import { AnnotateDrawerContent } from "@/src/features/scores/components/AnnotateDrawerContent";import { useIsMutating } from "@tanstack/react-query";-import { z } from "zod";+import { z } from "zod/v4";import { type AnnotateDrawerProps } from "@/src/features/scores/types";import { type ScoreTarget } from "@/src/features/scores/types";import { formatAnnotateDescription } from "@/src/features/scores/lib/helpers";diff --git a/web/src/features/scores/components/AnnotateDrawerContent.tsx b/web/src/features/scores/components/AnnotateDrawerContent.tsxindex 01e4ee38b0..eefbdd4617 100644--- a/web/src/features/scores/components/AnnotateDrawerContent.tsx+++ b/web/src/features/scores/components/AnnotateDrawerContent.tsx@@ -194,7 +194,7 @@ export function AnnotateDrawerContent<Target extends ScoreTarget>({const capture = usePostHogClientCapture();const router = useRouter();- const form = useForm<AnnotateFormSchemaType>({+ const form = useForm({resolver: zodResolver(AnnotateFormSchema),defaultValues: {scoreData: getDefaultAnnotationScoreData({diff --git a/web/src/features/scores/components/CreateScoreConfigButton.tsx b/web/src/features/scores/components/CreateScoreConfigButton.tsxindex 92bc307fd9..259b78e92c 100644--- a/web/src/features/scores/components/CreateScoreConfigButton.tsx+++ b/web/src/features/scores/components/CreateScoreConfigButton.tsx@@ -11,7 +11,7 @@ import {DialogTrigger,} from "@/src/components/ui/dialog";import { PlusIcon, Trash } from "lucide-react";-import { useFieldArray, useForm } from "react-hook-form";+import { type UseFormReturn, useFieldArray, useForm } from "react-hook-form";import { zodResolver } from "@hookform/resolvers/zod";import {Form,@@ -39,7 +39,7 @@ import {} from "@/src/features/scores/lib/helpers";import DocPopup from "@/src/components/layouts/doc-popup";import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";-import { z } from "zod";+import { z } from "zod/v4";const Category = z.object({label: z.string().min(1),@@ -118,7 +118,7 @@ export function CreateScoreConfigButton({ projectId }: { projectId: string }) {setFormError(error.message ?? "An error occurred while creating config."),});- const form = useForm<CreateConfig>({+ const form = useForm({resolver: zodResolver(createConfigSchema),defaultValues: {dataType: ScoreDataType.NUMERIC,@@ -126,7 +126,7 @@ export function CreateScoreConfigButton({ projectId }: { projectId: string }) {maxValue: undefined,name: "",},- });+ }) as UseFormReturn<CreateConfig>;const { fields, append, remove, replace } = useFieldArray({control: form.control,diff --git a/web/src/features/scores/lib/getDefaultScoreData.ts b/web/src/features/scores/lib/getDefaultScoreData.tsindex d97e262cb0..ab95ac1a7b 100644--- a/web/src/features/scores/lib/getDefaultScoreData.ts+++ b/web/src/features/scores/lib/getDefaultScoreData.ts@@ -6,6 +6,8 @@ import {import { ScoreSource } from "@langfuse/shared";import { type APIScoreV2, type ValidatedScoreConfig } from "@langfuse/shared";import { isTraceScore } from "@/src/features/scores/lib/helpers";+import { type AnnotationScoreDataSchema } from "@/src/features/scores/schema";+import { type z } from "zod/v4";const filterTraceAnnotationScores =({ traceId, observationId }: ScoreTargetTrace) =>@@ -31,7 +33,7 @@ export const getDefaultAnnotationScoreData = ({emptySelectedConfigIds: string[];configs: ValidatedScoreConfig[];scoreTarget: ScoreTarget;-}) => {+}): z.infer<typeof AnnotationScoreDataSchema>[] => {const isValidScore = isTraceScore(scoreTarget)? filterTraceAnnotationScores(scoreTarget): filterSessionAnnotationScores(scoreTarget);diff --git a/web/src/features/scores/schema.ts b/web/src/features/scores/schema.tsindex 2e5e6f46bf..c7d633022a 100644--- a/web/src/features/scores/schema.ts+++ b/web/src/features/scores/schema.ts@@ -1,12 +1,12 @@import { ScoreDataType } from "@langfuse/shared";-import { z } from "zod";+import { z } from "zod/v4";export const AnnotationScoreDataSchema = z.object({name: z.string(),scoreId: z.string().optional(),value: z.number().nullable().optional(),stringValue: z.string().optional(),- dataType: z.nativeEnum(ScoreDataType),+ dataType: z.enum(ScoreDataType),configId: z.string().optional(),comment: z.string().optional(),});diff --git a/web/src/features/scores/types.ts b/web/src/features/scores/types.tsindex adadcb8d7f..6a8a3e9a8a 100644--- a/web/src/features/scores/types.ts+++ b/web/src/features/scores/types.ts@@ -1,7 +1,7 @@import { type AnnotationScoreDataSchema } from "@/src/features/scores/schema";import { type AnnotateFormSchema } from "@/src/features/scores/schema";import { type APIScoreV2, type ScoreDataType } from "@langfuse/shared";-import { type z } from "zod";+import { type z } from "zod/v4";export type HistogramBin = { binLabel: string; count: number };export type CategoryCounts = Record<string, number>;diff --git a/web/src/features/trace-graph-view/types.ts b/web/src/features/trace-graph-view/types.tsindex 7fc203d6a4..39c136fd30 100644--- a/web/src/features/trace-graph-view/types.ts+++ b/web/src/features/trace-graph-view/types.ts@@ -1,4 +1,4 @@-import { z } from "zod";+import { z } from "zod/v4";export type GraphCanvasData = {nodes: string[];diff --git a/web/src/features/widgets/components/DashboardWidget.tsx b/web/src/features/widgets/components/DashboardWidget.tsxindex acf94820ff..3930b9b72e 100644--- a/web/src/features/widgets/components/DashboardWidget.tsx+++ b/web/src/features/widgets/components/DashboardWidget.tsx@@ -5,7 +5,7 @@ import {type metricAggregations,mapLegacyUiTableFilterToView,} from "@/src/features/query";-import { type z } from "zod";+import { type z } from "zod/v4";import { Chart } from "@/src/features/widgets/chart-library/Chart";import { type FilterState } from "@langfuse/shared";import { isTimeSeriesChart } from "@/src/features/widgets/chart-library/utils";diff --git a/web/src/features/widgets/components/WidgetForm.tsx b/web/src/features/widgets/components/WidgetForm.tsxindex 09fc447ac4..7bad1be203 100644--- a/web/src/features/widgets/components/WidgetForm.tsx+++ b/web/src/features/widgets/components/WidgetForm.tsx@@ -25,7 +25,7 @@ import {import { WidgetPropertySelectItem } from "@/src/features/widgets/components/WidgetPropertySelectItem";import { Label } from "@/src/components/ui/label";import { viewDeclarations } from "@/src/features/query/dataModel";-import { type z } from "zod";+import { type z } from "zod/v4";import { views } from "@/src/features/query/types";import { Input } from "@/src/components/ui/input";import { startCase } from "lodash";diff --git a/web/src/pages/api/admin/api-keys/index.ts b/web/src/pages/api/admin/api-keys/index.tsindex 80c111c723..9af91c8a97 100644--- a/web/src/pages/api/admin/api-keys/index.ts+++ b/web/src/pages/api/admin/api-keys/index.ts@@ -1,5 +1,5 @@import { type NextApiRequest, type NextApiResponse } from "next";-import { z } from "zod";+import { z } from "zod/v4";import { prisma } from "@langfuse/shared/src/db";import { logger, redis } from "@langfuse/shared/src/server";import { ApiAuthService } from "@/src/features/public-api/server/apiAuth";diff --git a/web/src/pages/api/admin/bullmq/index.ts b/web/src/pages/api/admin/bullmq/index.tsindex 5dcbc02f1f..ca1fd4a77c 100644--- a/web/src/pages/api/admin/bullmq/index.ts+++ b/web/src/pages/api/admin/bullmq/index.ts@@ -1,5 +1,5 @@import { type NextApiRequest, type NextApiResponse } from "next";-import { z } from "zod";+import { z } from "zod/v4";import { logger, QueueName, getQueue } from "@langfuse/shared/src/server";import { AdminApiAuthService } from "@/src/features/admin-api/server/adminApiAuth";diff --git a/web/src/pages/api/auth/check-sso.ts b/web/src/pages/api/auth/check-sso.tsindex c6bbd1e2b8..dba5cf5357 100644--- a/web/src/pages/api/auth/check-sso.ts+++ b/web/src/pages/api/auth/check-sso.ts@@ -6,7 +6,7 @@import { getSsoAuthProviderIdForDomain } from "@/src/ee/features/multi-tenant-sso/utils";import type { NextApiRequest, NextApiResponse } from "next";-import { z } from "zod";+import { z } from "zod/v4";const requestSchema = z.object({domain: z.string().min(1),diff --git a/web/src/pages/api/public/ingestion.ts b/web/src/pages/api/public/ingestion.tsindex 3e2d5f09d7..965b3726db 100644--- a/web/src/pages/api/public/ingestion.ts+++ b/web/src/pages/api/public/ingestion.ts@@ -1,6 +1,6 @@import { cors, runMiddleware } from "@/src/features/public-api/server/cors";import { type NextApiRequest, type NextApiResponse } from "next";-import { z } from "zod";+import { z } from "zod/v4";import {traceException,redis,@@ -150,10 +150,10 @@ export default async function handler(}if (error instanceof z.ZodError) {- logger.error(`Zod exception`, error.errors);+ logger.error(`Zod exception`, error.issues);return res.status(400).json({message: "Invalid request data",- error: error.errors,+ error: error.issues,});}diff --git a/web/src/pages/api/public/media/[mediaId].ts b/web/src/pages/api/public/media/[mediaId].tsindex 0ac6ef4cfa..7b17a28ddc 100644--- a/web/src/pages/api/public/media/[mediaId].ts+++ b/web/src/pages/api/public/media/[mediaId].ts@@ -1,4 +1,4 @@-import { z } from "zod";+import { z } from "zod/v4";import { env } from "@/src/env.mjs";import { getMediaStorageServiceClient } from "@/src/features/media/server/getMediaStorageClient";diff --git a/web/src/pages/api/public/otel/v1/metrics/index.ts b/web/src/pages/api/public/otel/v1/metrics/index.tsindex 652460ad12..74608f6da0 100644--- a/web/src/pages/api/public/otel/v1/metrics/index.ts+++ b/web/src/pages/api/public/otel/v1/metrics/index.ts@@ -1,6 +1,6 @@import { withMiddlewares } from "@/src/features/public-api/server/withMiddlewares";import { createAuthedProjectAPIRoute } from "@/src/features/public-api/server/createAuthedProjectAPIRoute";-import { z } from "zod";+import { z } from "zod/v4";export const config = {api: {diff --git a/web/src/pages/api/public/otel/v1/traces/index.ts b/web/src/pages/api/public/otel/v1/traces/index.tsindex 4eb137aeec..641ab074e8 100644--- a/web/src/pages/api/public/otel/v1/traces/index.ts+++ b/web/src/pages/api/public/otel/v1/traces/index.ts@@ -5,7 +5,7 @@ import {logger,processEventBatch,} from "@langfuse/shared/src/server";-import { z } from "zod";+import { z } from "zod/v4";import { $root } from "@/src/pages/api/public/otel/otlp-proto/generated/root";import { OtelIngestionProcessor } from "@/src/features/otel/server/OtelIngestionProcessor";import { gunzip } from "node:zlib";diff --git a/web/src/pages/api/public/prompts.ts b/web/src/pages/api/public/prompts.tsindex a5115df7ca..c11b528fae 100644--- a/web/src/pages/api/public/prompts.ts+++ b/web/src/pages/api/public/prompts.ts@@ -4,7 +4,7 @@ import { cors, runMiddleware } from "@/src/features/public-api/server/cors";import { prisma } from "@langfuse/shared/src/db";import { isPrismaException } from "@/src/utils/exceptions";import { type NextApiRequest, type NextApiResponse } from "next";-import { z } from "zod";+import { z } from "zod/v4";import {LegacyCreatePromptSchema,GetPromptSchema,@@ -139,7 +139,7 @@ export default async function handler(if (error instanceof z.ZodError) {return res.status(400).json({message: "Invalid request data",- error: error.errors,+ error: error.issues,});}diff --git a/web/src/pages/api/public/score-configs/index.ts b/web/src/pages/api/public/score-configs/index.tsindex 3c5a0c5086..b427694ca2 100644--- a/web/src/pages/api/public/score-configs/index.ts+++ b/web/src/pages/api/public/score-configs/index.ts@@ -1,5 +1,5 @@import { v4 } from "uuid";-import { type z } from "zod";+import { type z } from "zod/v4";import { createAuthedProjectAPIRoute } from "@/src/features/public-api/server/createAuthedProjectAPIRoute";import { withMiddlewares } from "@/src/features/public-api/server/withMiddlewares";diff --git a/web/src/pages/auth/sign-in.tsx b/web/src/pages/auth/sign-in.tsxindex 8338755c99..de7ec36a3d 100644--- a/web/src/pages/auth/sign-in.tsx+++ b/web/src/pages/auth/sign-in.tsx@@ -21,7 +21,7 @@ import Head from "next/head";import Link from "next/link";import { useState, useEffect } from "react";import { useForm } from "react-hook-form";-import * as z from "zod";+import * as z from "zod/v4";import { Divider } from "@tremor/react";import { CloudPrivacyNotice } from "@/src/features/auth/components/AuthCloudPrivacyNotice";import { CloudRegionSwitch } from "@/src/features/auth/components/AuthCloudRegionSwitch";@@ -434,7 +434,7 @@ export default function SignIn({);// Credentials- const credentialsForm = useForm<z.infer<typeof credentialAuthForm>>({+ const credentialsForm = useForm({resolver: zodResolver(credentialAuthForm),defaultValues: {email: "",diff --git a/web/src/pages/auth/sign-up.tsx b/web/src/pages/auth/sign-up.tsxindex e7ad773e50..806af55d57 100644--- a/web/src/pages/auth/sign-up.tsx+++ b/web/src/pages/auth/sign-up.tsx@@ -14,7 +14,7 @@ import { signIn } from "next-auth/react";import Head from "next/head";import Link from "next/link";import { useForm } from "react-hook-form";-import type * as z from "zod";+import type * as z from "zod/v4";import { env } from "@/src/env.mjs";import { useState } from "react";import { LangfuseIcon } from "@/src/components/LangfuseLogo";@@ -45,7 +45,7 @@ export default function SignIn({);const [formError, setFormError] = useState<string | null>(null);- const form = useForm<z.infer<typeof signupSchema>>({+ const form = useForm({resolver: zodResolver(signupSchema),defaultValues: {name: "",diff --git a/web/src/pages/onboarding.tsx b/web/src/pages/onboarding.tsxindex ca83adf705..9aa3c4f85f 100644--- a/web/src/pages/onboarding.tsx+++ b/web/src/pages/onboarding.tsx@@ -3,7 +3,7 @@import { useForm } from "react-hook-form";import { zodResolver } from "@hookform/resolvers/zod";-import { z } from "zod";+import { z } from "zod/v4";import { Button } from "@/src/components/ui/button";import {Form,@@ -25,7 +25,7 @@ const referralSourceSchema = z.object({export default function ReferralSource() {const posthog = usePostHog();const router = useRouter();- const form = useForm<z.infer<typeof referralSourceSchema>>({+ const form = useForm({resolver: zodResolver(referralSourceSchema),defaultValues: {referralSource: "",diff --git a/web/src/pages/project/[projectId]/settings/integrations/blobstorage.tsx b/web/src/pages/project/[projectId]/settings/integrations/blobstorage.tsxindex 0ed933b5e5..0f234a0eb8 100644--- a/web/src/pages/project/[projectId]/settings/integrations/blobstorage.tsx+++ b/web/src/pages/project/[projectId]/settings/integrations/blobstorage.tsx@@ -145,7 +145,7 @@ const BlobStorageIntegrationSettingsForm = ({// Check if this is a self-hosted instance (no cloud region set)const isSelfHosted = !env.NEXT_PUBLIC_LANGFUSE_CLOUD_REGION;- const blobStorageForm = useForm<BlobStorageIntegrationFormSchema>({+ const blobStorageForm = useForm({resolver: zodResolver(blobStorageIntegrationFormSchema),defaultValues: {type: state?.type || BlobStorageIntegrationType.S3,diff --git a/web/src/pages/project/[projectId]/settings/integrations/posthog.tsx b/web/src/pages/project/[projectId]/settings/integrations/posthog.tsxindex 1a3b484ca6..17c09cf721 100644--- a/web/src/pages/project/[projectId]/settings/integrations/posthog.tsx+++ b/web/src/pages/project/[projectId]/settings/integrations/posthog.tsx@@ -26,7 +26,7 @@ import Link from "next/link";import { useRouter } from "next/router";import { useEffect } from "react";import { useForm } from "react-hook-form";-import { type z } from "zod";+import { type z } from "zod/v4";export default function PosthogIntegrationSettings() {const router = useRouter();@@ -122,7 +122,7 @@ const PostHogIntegrationSettings = ({isLoading: boolean;}) => {const capture = usePostHogClientCapture();- const posthogForm = useForm<z.infer<typeof posthogIntegrationFormSchema>>({+ const posthogForm = useForm({resolver: zodResolver(posthogIntegrationFormSchema),defaultValues: {posthogHostname: state?.posthogHostName ?? "",diff --git a/web/src/pages/project/[projectId]/widgets/[widgetId]/index.tsx b/web/src/pages/project/[projectId]/widgets/[widgetId]/index.tsxindex fa591178e0..5e130ac785 100644--- a/web/src/pages/project/[projectId]/widgets/[widgetId]/index.tsx+++ b/web/src/pages/project/[projectId]/widgets/[widgetId]/index.tsx@@ -6,7 +6,7 @@ import { showErrorToast } from "@/src/features/notifications/showErrorToast";import { showSuccessToast } from "@/src/features/notifications/showSuccessToast";import { type DashboardWidgetChartType } from "@langfuse/shared/src/db";import { type views, type metricAggregations } from "@/src/features/query";-import { type z } from "zod";+import { type z } from "zod/v4";export default function EditWidget() {const router = useRouter();diff --git a/web/src/pages/project/[projectId]/widgets/new.tsx b/web/src/pages/project/[projectId]/widgets/new.tsxindex 3196a3dd66..0f871f9e26 100644--- a/web/src/pages/project/[projectId]/widgets/new.tsx+++ b/web/src/pages/project/[projectId]/widgets/new.tsx@@ -9,7 +9,7 @@ import {type views,type metricAggregations,} from "@/src/features/query/types";-import { type z } from "zod";+import { type z } from "zod/v4";import { SelectDashboardDialog } from "@/src/features/dashboard/components/SelectDashboardDialog";import { useState } from "react";diff --git a/web/src/server/api/routers/auditLogs.ts b/web/src/server/api/routers/auditLogs.tsindex fbb8d9d17a..a252b645b7 100644--- a/web/src/server/api/routers/auditLogs.ts+++ b/web/src/server/api/routers/auditLogs.ts@@ -1,4 +1,4 @@-import { z } from "zod";+import { z } from "zod/v4";import { createTRPCRouter, protectedProjectProcedure } from "../trpc";import { throwIfNoProjectAccess } from "@/src/features/rbac/utils/checkProjectAccess";import { throwIfNoEntitlement } from "@/src/features/entitlements/server/hasEntitlement";diff --git a/web/src/server/api/routers/comments.ts b/web/src/server/api/routers/comments.tsindex b25dfc40f5..8a11ae6c65 100644--- a/web/src/server/api/routers/comments.ts+++ b/web/src/server/api/routers/comments.ts@@ -1,4 +1,4 @@-import { z } from "zod";+import { z } from "zod/v4";import { throwIfNoProjectAccess } from "@/src/features/rbac/utils/checkProjectAccess";import {@@ -132,7 +132,7 @@ export const commentsRouter = createTRPCRouter({z.object({projectId: z.string(),objectId: z.string(),- objectType: z.nativeEnum(CommentObjectType),+ objectType: z.enum(CommentObjectType),}),).query(async ({ input, ctx }) => {@@ -189,7 +189,7 @@ export const commentsRouter = createTRPCRouter({z.object({projectId: z.string(),objectId: z.string(),- objectType: z.nativeEnum(CommentObjectType),+ objectType: z.enum(CommentObjectType),}),).query(async ({ input, ctx }) => {@@ -223,7 +223,7 @@ export const commentsRouter = createTRPCRouter({.input(z.object({projectId: z.string(),- objectType: z.nativeEnum(CommentObjectType),+ objectType: z.enum(CommentObjectType),}),).query(async ({ input, ctx }) => {diff --git a/web/src/server/api/routers/dashboardWidgets.ts b/web/src/server/api/routers/dashboardWidgets.tsindex f1bdf02e60..b5c988bc37 100644--- a/web/src/server/api/routers/dashboardWidgets.ts+++ b/web/src/server/api/routers/dashboardWidgets.ts@@ -1,9 +1,9 @@-import { z } from "zod";+import { z } from "zod/v4";import {createTRPCRouter,protectedProjectProcedure,} from "@/src/server/api/trpc";-import { paginationZod, orderBy, singleFilter } from "@langfuse/shared";+import { orderBy, singleFilter, optionalPaginationZod } from "@langfuse/shared";import { throwIfNoProjectAccess } from "@/src/features/rbac/utils/checkProjectAccess";import {DashboardWidgetChartType,@@ -27,7 +27,7 @@ const CreateDashboardWidgetInput = z.object({dimensions: z.array(DimensionSchema),metrics: z.array(MetricSchema),filters: z.array(singleFilter),- chartType: z.nativeEnum(DashboardWidgetChartType),+ chartType: z.enum(DashboardWidgetChartType),chartConfig: ChartConfigSchema,});@@ -41,14 +41,14 @@ const UpdateDashboardWidgetInput = z.object({dimensions: z.array(DimensionSchema),metrics: z.array(MetricSchema),filters: z.array(singleFilter),- chartType: z.nativeEnum(DashboardWidgetChartType),+ chartType: z.enum(DashboardWidgetChartType),chartConfig: ChartConfigSchema,});// Define the widget list input schemaconst ListDashboardWidgetsInput = z.object({projectId: z.string(),- ...paginationZod,+ ...optionalPaginationZod,orderBy: orderBy,});diff --git a/web/src/server/api/routers/generations/filterOptionsQuery.ts b/web/src/server/api/routers/generations/filterOptionsQuery.tsindex 535fdb7b8d..0df5d25dcf 100644--- a/web/src/server/api/routers/generations/filterOptionsQuery.ts+++ b/web/src/server/api/routers/generations/filterOptionsQuery.ts@@ -1,4 +1,4 @@-import { z } from "zod";+import { z } from "zod/v4";import {timeFilter,diff --git a/web/src/server/api/routers/generations/getAllQueries.ts b/web/src/server/api/routers/generations/getAllQueries.tsindex 33ce9329dc..a9e0ff9ffc 100644--- a/web/src/server/api/routers/generations/getAllQueries.ts+++ b/web/src/server/api/routers/generations/getAllQueries.ts@@ -1,4 +1,4 @@-import { type z } from "zod";+import { type z } from "zod/v4";import { protectedProjectProcedure } from "@/src/server/api/trpc";import { paginationZod } from "@langfuse/shared";import { GenerationTableOptions } from "./utils/GenerationTableOptions";diff --git a/web/src/server/api/routers/generations/utils/GenerationTableOptions.ts b/web/src/server/api/routers/generations/utils/GenerationTableOptions.tsindex 01b523e56c..f728ea20e1 100644--- a/web/src/server/api/routers/generations/utils/GenerationTableOptions.ts+++ b/web/src/server/api/routers/generations/utils/GenerationTableOptions.ts@@ -1,4 +1,4 @@-import { z } from "zod";+import { z } from "zod/v4";import { singleFilter, TracingSearchType } from "@langfuse/shared";import { orderBy } from "@langfuse/shared";diff --git a/web/src/server/api/routers/media.ts b/web/src/server/api/routers/media.tsindex 14cf266722..6c5064d962 100644--- a/web/src/server/api/routers/media.ts+++ b/web/src/server/api/routers/media.ts@@ -1,4 +1,4 @@-import { z } from "zod";+import { z } from "zod/v4";import { env } from "@/src/env.mjs";import { getMediaStorageServiceClient } from "@/src/features/media/server/getMediaStorageClient";diff --git a/web/src/server/api/routers/models.ts b/web/src/server/api/routers/models.tsindex 17431cf5d0..1404ead95a 100644--- a/web/src/server/api/routers/models.ts+++ b/web/src/server/api/routers/models.ts@@ -1,5 +1,5 @@import { v4 as uuidv4 } from "uuid";-import { z } from "zod";+import { z } from "zod/v4";import { auditLog } from "@/src/features/audit-logs/auditLog";import { isValidPostgresRegex } from "@/src/features/models/server/isValidPostgresRegex";diff --git a/web/src/server/api/routers/observations.ts b/web/src/server/api/routers/observations.tsindex e312eb29cd..c12abb07cc 100644--- a/web/src/server/api/routers/observations.ts+++ b/web/src/server/api/routers/observations.ts@@ -5,7 +5,7 @@ import {import { LangfuseNotFoundError } from "@langfuse/shared";import { getObservationById } from "@langfuse/shared/src/server";import { TRPCError } from "@trpc/server";-import { z } from "zod";+import { z } from "zod/v4";export const observationsRouter = createTRPCRouter({byId: protectedGetTraceProcedurediff --git a/web/src/server/api/routers/public.ts b/web/src/server/api/routers/public.tsindex 5fe32a7fca..fad42c5af8 100644--- a/web/src/server/api/routers/public.ts+++ b/web/src/server/api/routers/public.ts@@ -3,7 +3,7 @@ import { env } from "@/src/env.mjs";import { createTRPCRouter, publicProcedure } from "@/src/server/api/trpc";import { logger } from "@langfuse/shared/src/server";import { TRPCError } from "@trpc/server";-import { z } from "zod";+import { z } from "zod/v4";const versionSchema = z.string().regex(/^v\d+\.\d+\.\d+(?:[-+].+)?$/); // e.g. v1.2.3, v1.2.3-rc.1, v1.2.3+build.123diff --git a/web/src/server/api/routers/scoreConfigs.ts b/web/src/server/api/routers/scoreConfigs.tsindex 92e519f186..42357de6f8 100644--- a/web/src/server/api/routers/scoreConfigs.ts+++ b/web/src/server/api/routers/scoreConfigs.ts@@ -1,4 +1,4 @@-import { z } from "zod";+import { z } from "zod/v4";import { throwIfNoProjectAccess } from "@/src/features/rbac/utils/checkProjectAccess";import {@@ -62,7 +62,7 @@ export const scoreConfigsRouter = createTRPCRouter({z.object({projectId: z.string(),name: z.string().min(1).max(35),- dataType: z.nativeEnum(ScoreDataType),+ dataType: z.enum(ScoreDataType),minValue: z.number().optional(),maxValue: z.number().optional(),categories: z.array(Category).optional(),diff --git a/web/src/server/api/routers/scores.ts b/web/src/server/api/routers/scores.tsindex 436455c367..e8c3d1fdb0 100644--- a/web/src/server/api/routers/scores.ts+++ b/web/src/server/api/routers/scores.ts@@ -1,4 +1,4 @@-import { z } from "zod";+import { z } from "zod/v4";import { throwIfNoProjectAccess } from "@/src/features/rbac/utils/checkProjectAccess";import { auditLog } from "@/src/features/audit-logs/auditLog";diff --git a/web/src/server/api/routers/sessions.ts b/web/src/server/api/routers/sessions.tsindex 03d6f43cd5..eb121b3812 100644--- a/web/src/server/api/routers/sessions.ts+++ b/web/src/server/api/routers/sessions.ts@@ -1,4 +1,4 @@-import { z } from "zod";+import { z } from "zod/v4";import { auditLog } from "@/src/features/audit-logs/auditLog";import { throwIfNoProjectAccess } from "@/src/features/rbac/utils/checkProjectAccess";import {diff --git a/web/src/server/api/routers/tableViewPresets.ts b/web/src/server/api/routers/tableViewPresets.tsindex 3a10de9fd2..f1499aa883 100644--- a/web/src/server/api/routers/tableViewPresets.ts+++ b/web/src/server/api/routers/tableViewPresets.ts@@ -1,4 +1,4 @@-import { z } from "zod";+import { z } from "zod/v4";import {createTRPCRouter,protectedProjectProcedure,@@ -187,7 +187,7 @@ export const TableViewPresetsRouter = createTRPCRouter({z.object({projectId: z.string(),viewId: z.string(),- tableName: z.nativeEnum(TableViewPresetTableName),+ tableName: z.enum(TableViewPresetTableName),baseUrl: z.string(),}),)diff --git a/web/src/server/api/routers/traces.ts b/web/src/server/api/routers/traces.tsindex 2414ec7585..696d606dae 100644--- a/web/src/server/api/routers/traces.ts+++ b/web/src/server/api/routers/traces.ts@@ -1,4 +1,4 @@-import { z } from "zod";+import { z } from "zod/v4";import { auditLog } from "@/src/features/audit-logs/auditLog";import { throwIfNoProjectAccess } from "@/src/features/rbac/utils/checkProjectAccess";import { aggregateScores } from "@/src/features/scores/lib/aggregateScores";diff --git a/web/src/server/api/routers/users.ts b/web/src/server/api/routers/users.tsindex 4d355aefd3..38605f3efe 100644--- a/web/src/server/api/routers/users.ts+++ b/web/src/server/api/routers/users.ts@@ -1,4 +1,4 @@-import { z } from "zod";+import { z } from "zod/v4";import {createTRPCRouter,diff --git a/web/src/server/api/routers/utilities.ts b/web/src/server/api/routers/utilities.tsindex bef2dc46a9..f578ef894f 100644--- a/web/src/server/api/routers/utilities.ts+++ b/web/src/server/api/routers/utilities.ts@@ -1,5 +1,5 @@import { createTRPCRouter, protectedProcedure } from "@/src/server/api/trpc";-import { z } from "zod";+import { z } from "zod/v4";import { promises as dns } from "dns";import { Address4, Address6 } from "ip-address";import { logger } from "@langfuse/shared/src/server";diff --git a/web/src/server/api/services/sqlInterface.ts b/web/src/server/api/services/sqlInterface.tsindex 813be1f686..77372c3e09 100644--- a/web/src/server/api/services/sqlInterface.ts+++ b/web/src/server/api/services/sqlInterface.ts@@ -1,5 +1,5 @@import { singleFilter } from "@langfuse/shared";-import { z } from "zod";+import { z } from "zod/v4";export type DatabaseRow = {[key: string]: string | number | Date | Record<string, unknown> | null;diff --git a/web/src/server/api/trpc.ts b/web/src/server/api/trpc.tsindex 39f655d633..a467891c68 100644--- a/web/src/server/api/trpc.ts+++ b/web/src/server/api/trpc.ts@@ -20,7 +20,7 @@ import { tracing } from "@baselime/trpc-opentelemetry-middleware";import { contextWithLangfuseProps } from "@langfuse/shared/src/server";import { getServerAuthSession } from "@/src/server/auth";import { prisma, Role } from "@langfuse/shared/src/db";-import * as z from "zod";+import * as z from "zod/v4";import * as opentelemetry from "@opentelemetry/api";import { type IncomingHttpHeaders } from "node:http";@@ -75,7 +75,7 @@ export const createTRPCContext = async (opts: CreateNextContextOptions) => {*/import { initTRPC, TRPCError } from "@trpc/server";import superjson from "superjson";-import { ZodError } from "zod";+import { ZodError } from "zod/v4";import { setUpSuperjson } from "@/src/utils/superjson";import { DB } from "@/src/server/db";import { getTraceById, logger } from "@langfuse/shared/src/server";diff --git a/web/src/server/auth.ts b/web/src/server/auth.tsindex a93eb31bd7..7637e01bba 100644--- a/web/src/server/auth.ts+++ b/web/src/server/auth.ts@@ -37,7 +37,7 @@ import {getSsoAuthProviderIdForDomain,loadSsoProviders,} from "@/src/ee/features/multi-tenant-sso/utils";-import { z } from "zod";+import { z } from "zod/v4";import { CloudConfigSchema } from "@langfuse/shared";import {CustomSSOProvider,diff --git a/web/src/utils/date-range-utils.ts b/web/src/utils/date-range-utils.tsindex b5696c5616..53b797a13d 100644--- a/web/src/utils/date-range-utils.ts+++ b/web/src/utils/date-range-utils.ts@@ -1,5 +1,5 @@import { type DateRange } from "react-day-picker";-import { z } from "zod";+import { z } from "zod/v4";import { addMinutes } from "date-fns";import { type DateTrunc } from "@langfuse/shared/src/server";diff --git a/worker/package.json b/worker/package.jsonindex e2e37bcaaf..44d9acbf8e 100644--- a/worker/package.json+++ b/worker/package.json@@ -56,7 +56,7 @@"stripe": "^17.4.0","tiktoken": "^1.0.20","uuid": "^9.0.1",- "zod": "^3.24.4"+ "zod": "^3.25.62"},"devDependencies": {"@repo/eslint-config": "workspace:*",diff --git a/worker/src/__tests__/evalService.filtering.test.ts b/worker/src/__tests__/evalService.filtering.test.tsindex 24dd0f3fa0..cf4746e8a3 100644--- a/worker/src/__tests__/evalService.filtering.test.ts+++ b/worker/src/__tests__/evalService.filtering.test.ts@@ -14,7 +14,7 @@ import {import { randomUUID } from "crypto";import Decimal from "decimal.js";import { afterAll, test as baseTest, beforeAll, describe } from "vitest";-import { z } from "zod";+import { z } from "zod/v4";import { createEvalJobs } from "../features/evaluation/evalService";import { OpenAIServer } from "./network";import { pruneDatabase } from "./utils";diff --git a/worker/src/env.ts b/worker/src/env.tsindex 61ba886b2e..deb4a23d3c 100644--- a/worker/src/env.ts+++ b/worker/src/env.ts@@ -1,5 +1,5 @@import { removeEmptyEnvVariables } from "@langfuse/shared";-import { z } from "zod";+import { z } from "zod/v4";const EnvSchema = z.object({BUILD_ID: z.string().optional(),@@ -9,10 +9,7 @@ const EnvSchema = z.object({DATABASE_URL: z.string(),HOSTNAME: z.string().default("0.0.0.0"),PORT: z.coerce- .number({- description:- ".env files convert numbers to strings, therefore we have to enforce them to be numbers",- })+ .number() // ".env files convert numbers to strings, therefore we have to enforce them to be numbers".positive().max(65536, `options.port should be >= 0 and < 65536`).default(3030),@@ -32,7 +29,7 @@ const EnvSchema = z.object({LANGFUSE_S3_BATCH_EXPORT_SSE_KMS_KEY_ID: z.string().optional(),LANGFUSE_S3_EVENT_UPLOAD_BUCKET: z.string({- required_error: "Langfuse requires a bucket name for S3 Event Uploads.",+ error: "Langfuse requires a bucket name for S3 Event Uploads.",}),LANGFUSE_S3_EVENT_UPLOAD_PREFIX: z.string().default(""),LANGFUSE_S3_EVENT_UPLOAD_REGION: z.string().optional(),@@ -81,10 +78,7 @@ const EnvSchema = z.object({.default(3),REDIS_HOST: z.string().nullish(),REDIS_PORT: z.coerce- .number({- description:- ".env files convert numbers to strings, therefore we have to enforce them to be numbers",- })+ .number() // .env files convert numbers to strings, therefore we have to enforce them to be numbers.positive().max(65536, `options.port should be >= 0 and < 65536`).default(6379)diff --git a/worker/src/features/evaluation/evalService.ts b/worker/src/features/evaluation/evalService.tsindex eb0683e2b7..9e1f40bb9a 100644--- a/worker/src/features/evaluation/evalService.ts+++ b/worker/src/features/evaluation/evalService.ts@@ -1,6 +1,6 @@import { randomUUID } from "crypto";import { sql } from "kysely";-import { z } from "zod";+import { z } from "zod/v4";import { JobConfigState } from "@prisma/client";import {QueueJobs,diff --git a/worker/src/features/experiments/experimentService.ts b/worker/src/features/experiments/experimentService.tsindex b586933204..305fb3eb6b 100644--- a/worker/src/features/experiments/experimentService.ts+++ b/worker/src/features/experiments/experimentService.ts@@ -1,4 +1,4 @@-import { z } from "zod";+import { z } from "zod/v4";import {ChatMessageRole,LLMApiKeySchema,diff --git a/worker/src/features/tokenisation/usage.ts b/worker/src/features/tokenisation/usage.tsindex 5c59024b41..714162514c 100644--- a/worker/src/features/tokenisation/usage.ts+++ b/worker/src/features/tokenisation/usage.ts@@ -9,7 +9,7 @@ import {encoding_for_model,} from "tiktoken";-import { z } from "zod";+import { z } from "zod/v4";import {instrumentSync,logger,@@ -124,9 +124,12 @@ function openAiTokenCount(p: { model: Model; text: unknown }) {});} else {result = isString(parsedText)- ? getTokensByModel(config.data.tokenizerModel, parsedText)+ ? getTokensByModel(+ config.data.tokenizerModel as TiktokenModel,+ parsedText,+ ): getTokensByModel(- config.data.tokenizerModel,+ config.data.tokenizerModel as TiktokenModel,JSON.stringify(parsedText),);}diff --git a/worker/src/features/utilities.ts b/worker/src/features/utilities.tsindex 258460e971..6521652927 100644--- a/worker/src/features/utilities.ts+++ b/worker/src/features/utilities.ts@@ -6,7 +6,7 @@ import {type TraceParams,} from "@langfuse/shared/src/server";import { ApiError, LLMApiKeySchema, ZodModelConfig } from "@langfuse/shared";-import { z, ZodSchema } from "zod";+import { z, ZodSchema } from "zod/v4";import { decrypt } from "@langfuse/shared/encryption";import { tokenCount } from "./tokenisation/usage";import Handlebars from "handlebars";diff --git a/worker/src/scripts/upsertDefaultModelPrices.ts b/worker/src/scripts/upsertDefaultModelPrices.tsindex 740e2ce3e5..efcdbbf5ad 100644--- a/worker/src/scripts/upsertDefaultModelPrices.ts+++ b/worker/src/scripts/upsertDefaultModelPrices.ts@@ -1,4 +1,4 @@-import { z } from "zod";+import { z } from "zod/v4";import { prisma } from "@langfuse/shared/src/db";import defaultModelPrices from "../constants/default-model-prices.json";import { logger } from "@langfuse/shared/src/server";@@ -9,8 +9,10 @@ const DefaultModelPriceSchema = z.object({match_pattern: z.string(),created_at: z.coerce.date(),updated_at: z.coerce.date(),- prices: z.record(z.number()),- tokenizer_config: z.record(z.union([z.string(), z.number()])).nullish(),+ prices: z.record(z.string(), z.number()),+ tokenizer_config: z+ .record(z.string(), z.union([z.string(), z.number()]))+ .nullish(),tokenizer_id: z.string().nullish(),});type DefaultModelPrice = z.infer<typeof DefaultModelPriceSchema>;diff --git a/worker/src/scripts/upsertLangfuseDashboards.ts b/worker/src/scripts/upsertLangfuseDashboards.tsindex 2f308c8155..0f2366c294 100644--- a/worker/src/scripts/upsertLangfuseDashboards.ts+++ b/worker/src/scripts/upsertLangfuseDashboards.ts@@ -1,4 +1,4 @@-import { z } from "zod";+import { z } from "zod/v4";import { prisma } from "@langfuse/shared/src/db";import langfuseDashboards from "../constants/langfuse-dashboards.json";import {diff --git a/worker/src/scripts/upsertManagedEvaluators.ts b/worker/src/scripts/upsertManagedEvaluators.tsindex faf4a1befc..77219370f1 100644--- a/worker/src/scripts/upsertManagedEvaluators.ts+++ b/worker/src/scripts/upsertManagedEvaluators.ts@@ -1,4 +1,4 @@-import { z } from "zod";+import { z } from "zod/v4";import { prisma } from "@langfuse/shared/src/db";import managedEvaluators from "../constants/managed-evaluators.json";import { logger } from "@langfuse/shared/src/server";diff --git a/worker/src/services/IngestionService/tests/IngestionService.integration.test.ts b/worker/src/services/IngestionService/tests/IngestionService.integration.test.tsindex af524f8084..0c34111553 100644--- a/worker/src/services/IngestionService/tests/IngestionService.integration.test.ts+++ b/worker/src/services/IngestionService/tests/IngestionService.integration.test.ts@@ -1,6 +1,6 @@import { randomUUID } from "node:crypto";import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";-import { z } from "zod";+import { z } from "zod/v4";import { prisma } from "@langfuse/shared/src/db";import {clickhouseClient,