/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod"; import { UrlSource, UrlSource$inboundSchema, UrlSource$Outbound, UrlSource$outboundSchema, } from "./urlsource.js"; export type FileSource = UrlSource; export type FileUploadCommand = { thoughts?: string | undefined; /** * unique identifier to this step, used for step cache */ id: string; type?: "FILE_UPLOAD" | undefined; fileSource: UrlSource; filename?: string | undefined; }; /** @internal */ export const FileSource$inboundSchema: z.ZodType< FileSource, z.ZodTypeDef, unknown > = UrlSource$inboundSchema; /** @internal */ export type FileSource$Outbound = UrlSource$Outbound; /** @internal */ export const FileSource$outboundSchema: z.ZodType< FileSource$Outbound, z.ZodTypeDef, FileSource > = UrlSource$outboundSchema; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export namespace FileSource$ { /** @deprecated use `FileSource$inboundSchema` instead. */ export const inboundSchema = FileSource$inboundSchema; /** @deprecated use `FileSource$outboundSchema` instead. */ export const outboundSchema = FileSource$outboundSchema; /** @deprecated use `FileSource$Outbound` instead. */ export type Outbound = FileSource$Outbound; } /** @internal */ export const FileUploadCommand$inboundSchema: z.ZodType< FileUploadCommand, z.ZodTypeDef, unknown > = z.object({ thoughts: z.string().optional(), id: z.string(), type: z.literal("FILE_UPLOAD").optional(), fileSource: UrlSource$inboundSchema, filename: z.string().optional(), }); /** @internal */ export type FileUploadCommand$Outbound = { thoughts?: string | undefined; id: string; type: "FILE_UPLOAD"; fileSource: UrlSource$Outbound; filename?: string | undefined; }; /** @internal */ export const FileUploadCommand$outboundSchema: z.ZodType< FileUploadCommand$Outbound, z.ZodTypeDef, FileUploadCommand > = z.object({ thoughts: z.string().optional(), id: z.string(), type: z.literal("FILE_UPLOAD").default("FILE_UPLOAD" as const), fileSource: UrlSource$outboundSchema, filename: z.string().optional(), }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export namespace FileUploadCommand$ { /** @deprecated use `FileUploadCommand$inboundSchema` instead. */ export const inboundSchema = FileUploadCommand$inboundSchema; /** @deprecated use `FileUploadCommand$outboundSchema` instead. */ export const outboundSchema = FileUploadCommand$outboundSchema; /** @deprecated use `FileUploadCommand$Outbound` instead. */ export type Outbound = FileUploadCommand$Outbound; }