import * as v from "valibot" import { notionDateValueSchema } from "./dateValue.js" import { notionRecordPointerSchema } from "./recordPointer.js" /** * Possible types for a data source value. */ export const notionDataSourceValueSchema = v.union([ v.string(), v.number(), v.boolean(), notionDateValueSchema, v.array(v.string()), v.array(notionRecordPointerSchema), ]) export type NotionDataSourceValue = v.InferOutput< typeof notionDataSourceValueSchema >