/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 * @generated-id: 6c5fa60011b3
 */
import * as z from "zod/v4";
import { remap as remap$ } from "../../lib/primitives.js";
import { safeParse } from "../../lib/schemas.js";
import { WorkflowExecutionWithoutResultResponse$inboundSchema, } from "./workflowexecutionwithoutresultresponse.js";
/** @internal */
export const WorkflowExecutionListResponse$inboundSchema = z.object({
    executions: z.array(WorkflowExecutionWithoutResultResponse$inboundSchema),
    next_page_token: z.nullable(z.string()).optional(),
}).transform((v) => {
    return remap$(v, {
        "next_page_token": "nextPageToken",
    });
});
export function workflowExecutionListResponseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => WorkflowExecutionListResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'WorkflowExecutionListResponse' from JSON`);
}
//# sourceMappingURL=workflowexecutionlistresponse.js.map