/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 * @generated-id: 8cfe0c90abc2
 */
import * as z from "zod/v4";
import { remap as remap$ } from "../../lib/primitives.js";
import { safeParse } from "../../lib/schemas.js";
import { WorkflowMetadata$inboundSchema, } from "./workflowmetadata.js";
/** @internal */
export const WorkflowBasicDefinition$inboundSchema = z.object({
    id: z.string(),
    name: z.string(),
    display_name: z.string(),
    description: z.nullable(z.string()).optional(),
    metadata: WorkflowMetadata$inboundSchema.optional(),
    archived: z.boolean(),
}).transform((v) => {
    return remap$(v, {
        "display_name": "displayName",
    });
});
export function workflowBasicDefinitionFromJSON(jsonString) {
    return safeParse(jsonString, (x) => WorkflowBasicDefinition$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'WorkflowBasicDefinition' from JSON`);
}
//# sourceMappingURL=workflowbasicdefinition.js.map