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

import * as z from "zod/v4-mini";
import { remap as remap$ } from "../../lib/primitives.js";

export type CustomerBenefitGrantSlackSharedChannelPropertiesUpdate = {
  invitedEmail: string;
};

/** @internal */
export type CustomerBenefitGrantSlackSharedChannelPropertiesUpdate$Outbound = {
  invited_email: string;
};

/** @internal */
export const CustomerBenefitGrantSlackSharedChannelPropertiesUpdate$outboundSchema:
  z.ZodMiniType<
    CustomerBenefitGrantSlackSharedChannelPropertiesUpdate$Outbound,
    CustomerBenefitGrantSlackSharedChannelPropertiesUpdate
  > = z.pipe(
    z.object({
      invitedEmail: z.string(),
    }),
    z.transform((v) => {
      return remap$(v, {
        invitedEmail: "invited_email",
      });
    }),
  );

export function customerBenefitGrantSlackSharedChannelPropertiesUpdateToJSON(
  customerBenefitGrantSlackSharedChannelPropertiesUpdate:
    CustomerBenefitGrantSlackSharedChannelPropertiesUpdate,
): string {
  return JSON.stringify(
    CustomerBenefitGrantSlackSharedChannelPropertiesUpdate$outboundSchema.parse(
      customerBenefitGrantSlackSharedChannelPropertiesUpdate,
    ),
  );
}
