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

import * as z from "zod/v4";

/**
 * this restriction of `Function` is used to select a specific function to call
 */
export type FunctionName = {
  name: string;
};

/** @internal */
export type FunctionName$Outbound = {
  name: string;
};

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

export function functionNameToJSON(functionName: FunctionName): string {
  return JSON.stringify(FunctionName$outboundSchema.parse(functionName));
}
