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

import * as z from "zod/v4";

export type WorkflowSchedulePauseRequest = {
  /**
   * Optional note recorded in Temporal when pausing or resuming a schedule
   */
  note?: string | null | undefined;
};

/** @internal */
export type WorkflowSchedulePauseRequest$Outbound = {
  note?: string | null | undefined;
};

/** @internal */
export const WorkflowSchedulePauseRequest$outboundSchema: z.ZodType<
  WorkflowSchedulePauseRequest$Outbound,
  WorkflowSchedulePauseRequest
> = z.object({
  note: z.nullable(z.string()).optional(),
});

export function workflowSchedulePauseRequestToJSON(
  workflowSchedulePauseRequest: WorkflowSchedulePauseRequest,
): string {
  return JSON.stringify(
    WorkflowSchedulePauseRequest$outboundSchema.parse(
      workflowSchedulePauseRequest,
    ),
  );
}
