/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 * @generated-id: 8757c3910943
 */
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";
import { WorkflowCodeDefinition$inboundSchema, } from "./workflowcodedefinition.js";
/** @internal */
export const WorkflowRegistration$inboundSchema = z.object({
    id: z.string(),
    deployment_id: z.nullable(z.string()).optional(),
    task_queue: z.nullable(z.string()).optional(),
    definition: WorkflowCodeDefinition$inboundSchema,
    workflow_id: z.string(),
    workflow: z.nullable(Workflow$inboundSchema).optional(),
    compatible_with_chat_assistant: z.boolean().default(false),
}).transform((v) => {
    return remap$(v, {
        "deployment_id": "deploymentId",
        "task_queue": "taskQueue",
        "workflow_id": "workflowId",
        "compatible_with_chat_assistant": "compatibleWithChatAssistant",
    });
});
export function workflowRegistrationFromJSON(jsonString) {
    return safeParse(jsonString, (x) => WorkflowRegistration$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'WorkflowRegistration' from JSON`);
}
//# sourceMappingURL=workflowregistration.js.map