/* * 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 EventTypeUpdate = { /** * The label for the event type. */ label: string; /** * Property path to extract dynamic label from event metadata (e.g., 'subject' or 'metadata.subject'). */ labelPropertySelector?: string | null | undefined; }; /** @internal */ export type EventTypeUpdate$Outbound = { label: string; label_property_selector?: string | null | undefined; }; /** @internal */ export const EventTypeUpdate$outboundSchema: z.ZodMiniType< EventTypeUpdate$Outbound, EventTypeUpdate > = z.pipe( z.object({ label: z.string(), labelPropertySelector: z.optional(z.nullable(z.string())), }), z.transform((v) => { return remap$(v, { labelPropertySelector: "label_property_selector", }); }), ); export function eventTypeUpdateToJSON( eventTypeUpdate: EventTypeUpdate, ): string { return JSON.stringify(EventTypeUpdate$outboundSchema.parse(eventTypeUpdate)); }