/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v4-mini"; import { MemberRole, MemberRole$outboundSchema } from "./memberrole.js"; /** * Schema for updating a member's role in the customer portal. */ export type CustomerPortalMemberUpdate = { /** * The new role for the member. */ role?: MemberRole | null | undefined; }; /** @internal */ export type CustomerPortalMemberUpdate$Outbound = { role?: string | null | undefined; }; /** @internal */ export const CustomerPortalMemberUpdate$outboundSchema: z.ZodMiniType< CustomerPortalMemberUpdate$Outbound, CustomerPortalMemberUpdate > = z.object({ role: z.optional(z.nullable(MemberRole$outboundSchema)), }); export function customerPortalMemberUpdateToJSON( customerPortalMemberUpdate: CustomerPortalMemberUpdate, ): string { return JSON.stringify( CustomerPortalMemberUpdate$outboundSchema.parse(customerPortalMemberUpdate), ); }