/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 * @generated-id: 1b4635577541
 */

import * as z from "zod/v4";
import { remap as remap$ } from "../../lib/primitives.js";

export type UnscheduleWorkflowV1WorkflowsSchedulesScheduleIdDeleteRequest = {
  scheduleId: string;
};

/** @internal */
export type UnscheduleWorkflowV1WorkflowsSchedulesScheduleIdDeleteRequest$Outbound =
  {
    schedule_id: string;
  };

/** @internal */
export const UnscheduleWorkflowV1WorkflowsSchedulesScheduleIdDeleteRequest$outboundSchema:
  z.ZodType<
    UnscheduleWorkflowV1WorkflowsSchedulesScheduleIdDeleteRequest$Outbound,
    UnscheduleWorkflowV1WorkflowsSchedulesScheduleIdDeleteRequest
  > = z.object({
    scheduleId: z.string(),
  }).transform((v) => {
    return remap$(v, {
      scheduleId: "schedule_id",
    });
  });

export function unscheduleWorkflowV1WorkflowsSchedulesScheduleIdDeleteRequestToJSON(
  unscheduleWorkflowV1WorkflowsSchedulesScheduleIdDeleteRequest:
    UnscheduleWorkflowV1WorkflowsSchedulesScheduleIdDeleteRequest,
): string {
  return JSON.stringify(
    UnscheduleWorkflowV1WorkflowsSchedulesScheduleIdDeleteRequest$outboundSchema
      .parse(unscheduleWorkflowV1WorkflowsSchedulesScheduleIdDeleteRequest),
  );
}
