/* * 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"; import * as components from "../components/index.js"; export type UpdateWebhookRequest = { /** * Object ID of the webhook to retrieve */ webhookId: string; webhookUpdateRequest: components.WebhookUpdateRequest; }; /** @internal */ export type UpdateWebhookRequest$Outbound = { webhookId: string; WebhookUpdateRequest: components.WebhookUpdateRequest$Outbound; }; /** @internal */ export const UpdateWebhookRequest$outboundSchema: z.ZodMiniType< UpdateWebhookRequest$Outbound, UpdateWebhookRequest > = z.pipe( z.object({ webhookId: z.string(), webhookUpdateRequest: components.WebhookUpdateRequest$outboundSchema, }), z.transform((v) => { return remap$(v, { webhookUpdateRequest: "WebhookUpdateRequest", }); }), ); export function updateWebhookRequestToJSON( updateWebhookRequest: UpdateWebhookRequest, ): string { return JSON.stringify( UpdateWebhookRequest$outboundSchema.parse(updateWebhookRequest), ); }