/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */

import * as z from "zod/v3";

/**
 * 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,
  z.ZodTypeDef,
  FunctionName
> = z.object({
  name: z.string(),
});

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