/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: c0ec549bcb71 */ import * as z from "zod/v4"; import { remap as remap$ } from "../../lib/primitives.js"; export type GetWorkflowEventsV1WorkflowsEventsListGetRequest = { /** * Execution ID of the root workflow that initiated this execution chain. */ rootWorkflowExecId?: string | null | undefined; /** * Execution ID of the workflow that emitted this event. */ workflowExecId?: string | null | undefined; /** * Run ID of the workflow that emitted this event. */ workflowRunId?: string | null | undefined; /** * Maximum number of events to return. */ limit?: number | undefined; /** * Cursor for pagination. */ cursor?: string | null | undefined; }; /** @internal */ export type GetWorkflowEventsV1WorkflowsEventsListGetRequest$Outbound = { root_workflow_exec_id?: string | null | undefined; workflow_exec_id?: string | null | undefined; workflow_run_id?: string | null | undefined; limit: number; cursor?: string | null | undefined; }; /** @internal */ export const GetWorkflowEventsV1WorkflowsEventsListGetRequest$outboundSchema: z.ZodType< GetWorkflowEventsV1WorkflowsEventsListGetRequest$Outbound, GetWorkflowEventsV1WorkflowsEventsListGetRequest > = z.object({ rootWorkflowExecId: z.nullable(z.string()).optional(), workflowExecId: z.nullable(z.string()).optional(), workflowRunId: z.nullable(z.string()).optional(), limit: z.int().default(100), cursor: z.nullable(z.string()).optional(), }).transform((v) => { return remap$(v, { rootWorkflowExecId: "root_workflow_exec_id", workflowExecId: "workflow_exec_id", workflowRunId: "workflow_run_id", }); }); export function getWorkflowEventsV1WorkflowsEventsListGetRequestToJSON( getWorkflowEventsV1WorkflowsEventsListGetRequest: GetWorkflowEventsV1WorkflowsEventsListGetRequest, ): string { return JSON.stringify( GetWorkflowEventsV1WorkflowsEventsListGetRequest$outboundSchema.parse( getWorkflowEventsV1WorkflowsEventsListGetRequest, ), ); }