/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v4-mini"; import { AttachmentInput, AttachmentInput$Outbound, AttachmentInput$outboundSchema, } from "./attachment-input.js"; export type WorkflowStreamRequest = { message: string; threadId?: string | undefined; image?: string | undefined; audio?: string | undefined; attachment?: AttachmentInput | undefined; attachments?: Array | undefined; continuous?: boolean | undefined; runId?: string | undefined; lastEventIndex?: number | undefined; [additionalProperties: string]: unknown; }; /** @internal */ export type WorkflowStreamRequest$Outbound = { message: string; threadId?: string | undefined; image?: string | undefined; audio?: string | undefined; attachment?: AttachmentInput$Outbound | undefined; attachments?: Array | undefined; continuous?: boolean | undefined; runId?: string | undefined; lastEventIndex?: number | undefined; [additionalProperties: string]: unknown; }; /** @internal */ export const WorkflowStreamRequest$outboundSchema: z.ZodMiniType< WorkflowStreamRequest$Outbound, WorkflowStreamRequest > = z.catchall( z.object({ message: z.string(), threadId: z.optional(z.string()), image: z.optional(z.string()), audio: z.optional(z.string()), attachment: z.optional(AttachmentInput$outboundSchema), attachments: z.optional(z.array(AttachmentInput$outboundSchema)), continuous: z.optional(z.boolean()), runId: z.optional(z.string()), lastEventIndex: z.optional(z.int()), }), z.any(), ); export function workflowStreamRequestToJSON( workflowStreamRequest: WorkflowStreamRequest, ): string { return JSON.stringify( WorkflowStreamRequest$outboundSchema.parse(workflowStreamRequest), ); }