import * as v from "valibot" import type { CustomBlockErrorInfo } from "../errors" // The schema accepts any string code. The type lists known codes for // autocomplete, with an open string fallback for newer senders. export const customBlockDataSourceResolutionErrorCodeSchema = v.string() export type CustomBlockDataSourceResolutionErrorCode = | "unknown_data_source_key" | "unmapped_data_source" | (string & {}) export type CustomBlockDataSourceResolutionErrorInfo = CustomBlockErrorInfo