/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v4-mini"; /** * Schema to update the benefits granted by a product. */ export type ProductBenefitsUpdate = { /** * List of benefit IDs. Each one must be on the same organization as the product. */ benefits: Array; }; /** @internal */ export type ProductBenefitsUpdate$Outbound = { benefits: Array; }; /** @internal */ export const ProductBenefitsUpdate$outboundSchema: z.ZodMiniType< ProductBenefitsUpdate$Outbound, ProductBenefitsUpdate > = z.object({ benefits: z.array(z.string()), }); export function productBenefitsUpdateToJSON( productBenefitsUpdate: ProductBenefitsUpdate, ): string { return JSON.stringify( ProductBenefitsUpdate$outboundSchema.parse(productBenefitsUpdate), ); }