/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 * @generated-id: d726d7bf55c6
 */
import * as z from "zod/v4";
import { remap as remap$ } from "../../lib/primitives.js";
import { safeParse } from "../../lib/schemas.js";
import { Workflow$inboundSchema } from "./workflow.js";
/** @internal */
export const WorkflowBulkError$inboundSchema = z.object({
    workflow_id: z.string(),
    workflow: z.nullable(Workflow$inboundSchema).optional(),
    message: z.string(),
}).transform((v) => {
    return remap$(v, {
        "workflow_id": "workflowId",
    });
});
export function workflowBulkErrorFromJSON(jsonString) {
    return safeParse(jsonString, (x) => WorkflowBulkError$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'WorkflowBulkError' from JSON`);
}
//# sourceMappingURL=workflowbulkerror.js.map