/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 * @generated-id: acf1c4ab5488
 */
import * as z from "zod/v4";
import { remap as remap$ } from "../../lib/primitives.js";
import { safeParse } from "../../lib/schemas.js";
import { WorkflowType$inboundSchema } from "./workflowtype.js";
/** @internal */
export const WorkflowWithWorkerStatus$inboundSchema = z.object({
    id: z.string(),
    name: z.string(),
    display_name: z.string(),
    type: WorkflowType$inboundSchema,
    description: z.nullable(z.string()).optional(),
    customer_id: z.string(),
    workspace_id: z.string(),
    shared_namespace: z.nullable(z.string()).optional(),
    available_in_chat_assistant: z.boolean().default(false),
    is_technical: z.boolean().default(false),
    on_behalf_of: z.boolean().default(false),
    archived: z.boolean().default(false),
    active: z.boolean(),
}).transform((v) => {
    return remap$(v, {
        "display_name": "displayName",
        "customer_id": "customerId",
        "workspace_id": "workspaceId",
        "shared_namespace": "sharedNamespace",
        "available_in_chat_assistant": "availableInChatAssistant",
        "is_technical": "isTechnical",
        "on_behalf_of": "onBehalfOf",
    });
});
export function workflowWithWorkerStatusFromJSON(jsonString) {
    return safeParse(jsonString, (x) => WorkflowWithWorkerStatus$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'WorkflowWithWorkerStatus' from JSON`);
}
//# sourceMappingURL=workflowwithworkerstatus.js.map