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

import * as z from "zod/v4-mini";

export type WebhooksDeleteWebhookEndpointRequest = {
  /**
   * The webhook endpoint ID.
   */
  id: string;
};

/** @internal */
export type WebhooksDeleteWebhookEndpointRequest$Outbound = {
  id: string;
};

/** @internal */
export const WebhooksDeleteWebhookEndpointRequest$outboundSchema: z.ZodMiniType<
  WebhooksDeleteWebhookEndpointRequest$Outbound,
  WebhooksDeleteWebhookEndpointRequest
> = z.object({
  id: z.string(),
});

export function webhooksDeleteWebhookEndpointRequestToJSON(
  webhooksDeleteWebhookEndpointRequest: WebhooksDeleteWebhookEndpointRequest,
): string {
  return JSON.stringify(
    WebhooksDeleteWebhookEndpointRequest$outboundSchema.parse(
      webhooksDeleteWebhookEndpointRequest,
    ),
  );
}
