Defines types and schemas for blob storage integrations, including validation rules and export modes.
// Source: https://github.com/langfuse/langfuse | License: MIT | Copyright 2023-2026 ClickHouse, Inc
// Provided via justclaw.it.com; keep this notice with the code.
import { z } from "zod";
import {
AnalyticsIntegrationExportSource,
EXPORT_FIELD_GROUPS,
BLOB_STORAGE_REGION_INVALID_MESSAGE,
BLOB_STORAGE_REGION_REGEX,
} from "@langfuse/shared";
import {
validateAzureContainerName,
validateExportFieldGroups,
exportStartDateNotInFuture,
EXPORT_START_DATE_FUTURE_ERROR,
} from "@/src/features/blobstorage-integration";
/**
* Enums
*/
const BlobStorageIntegrationType = z.enum([
"S3",
"S3_COMPATIBLE",
"AZURE_BLOB_STORAGE",
"GOOGLE_CLOUD_STORAGE",
]);
const BlobStorageIntegrationFileType = z.enum([
"JSON",
"CSV",
"JSONL",
"PARQUET",
]);
// Kept as a separate exp
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key