import * as z from "zod/v3"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { WebhookEventType } from "./webhookeventtype.js"; import { WebhookStatus } from "./webhookstatus.js"; /** * A configured webhook endpoint that receives event notifications. */ export type Webhook = { /** * Unique identifier for the webhook. */ webhookID: string; /** * The URL where webhook events will be sent. */ url: string; /** * The status of a webhook. */ status: WebhookStatus; /** * The list of event types this webhook is subscribed to. */ eventTypes: Array; /** * A description of the webhook for reference. */ description: string; /** * Timestamp of when the webhook was created. */ createdOn: Date; /** * Timestamp of when the webhook was last updated. */ updatedOn: Date; /** * Timestamp of when the webhook last received an event. */ lastUsedOn?: Date | undefined; }; /** @internal */ export declare const Webhook$inboundSchema: z.ZodType; /** @internal */ export type Webhook$Outbound = { webhookID: string; url: string; status: string; eventTypes: Array; description: string; createdOn: string; updatedOn: string; lastUsedOn?: string | undefined; }; /** @internal */ export declare const Webhook$outboundSchema: z.ZodType; export declare function webhookToJSON(webhook: Webhook): string; export declare function webhookFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=webhook.d.ts.map