/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; /** * The request body for creating a company admin. */ export type AdminCreateRequest = { /** * The first name of the admin. */ firstName: string; /** * The last name of the admin. */ lastName: string; /** * The email of the admin for Gusto's system. If the email matches an existing user, this will create an admin account for them. */ email: string; }; /** @internal */ export type AdminCreateRequest$Outbound = { first_name: string; last_name: string; email: string; }; /** @internal */ export const AdminCreateRequest$outboundSchema: z.ZodType< AdminCreateRequest$Outbound, z.ZodTypeDef, AdminCreateRequest > = z.object({ firstName: z.string(), lastName: z.string(), email: z.string(), }).transform((v) => { return remap$(v, { firstName: "first_name", lastName: "last_name", }); }); export function adminCreateRequestToJSON( adminCreateRequest: AdminCreateRequest, ): string { return JSON.stringify( AdminCreateRequest$outboundSchema.parse(adminCreateRequest), ); }