import { z } from 'zod'; /** * Dataset Schema * * Define your input dataset structure here. Each dataset represents * one unit of work for your workflow. * * Tips: * - Use .describe() on every field for documentation * - Use .optional() for nullable fields * - Use .default() for sensible defaults * - Create nested schemas for complex structures */ // Example: Search parameters (remove if not needed) export const SearchParamsSchema = z.object({ checkIn: z.string().describe('Check-in date in YYYY-MM-DD format'), nights: z.number().int().positive().describe('Number of nights'), guests: z.number().int().positive().describe('Number of guests'), }); export type SearchParams = z.infer; // Main dataset schema export const DatasetSchema = z.object({ serviceId: z.string().describe('Unique identifier for this dataset'), url: z.string().url().describe('URL to process'), // Add your fields here: // search: SearchParamsSchema.optional().describe('Search parameters'), // externalId: z.string().optional().describe('External ID for API lookups'), }); export type Dataset = z.infer;