/* * 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 CreateGroupRequest = { entityType: string; lookupKey: string; name: string; }; /** @internal */ export type CreateGroupRequest$Outbound = { entity_type: string; lookup_key: string; name: string; }; /** @internal */ export const CreateGroupRequest$outboundSchema: z.ZodMiniType< CreateGroupRequest$Outbound, CreateGroupRequest > = z.pipe( z.object({ entityType: z.string(), lookupKey: z.string(), name: z.string(), }), z.transform((v) => { return remap$(v, { entityType: "entity_type", lookupKey: "lookup_key", }); }), ); export function createGroupRequestToJSON( createGroupRequest: CreateGroupRequest, ): string { return JSON.stringify( CreateGroupRequest$outboundSchema.parse(createGroupRequest), ); }