import * as z from "zod/v3"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { Topics, Topics$Outbound } from "./topics.js"; import { WebhookConfig, WebhookConfig$Outbound } from "./webhookconfig.js"; import { WebhookCredentials, WebhookCredentials$Outbound } from "./webhookcredentials.js"; export type DestinationCreateWebhook = { /** * Optional user-provided ID. A UUID will be generated if empty. */ id?: string | undefined; /** * Type of the destination. Must be 'webhook'. */ type: "webhook"; /** * "*" or an array of enabled topics. */ topics: Topics; /** * Optional JSON schema filter for event matching. Events must match this filter to be delivered to this destination. * * @remarks * Supports operators: $eq, $neq, $gt, $gte, $lt, $lte, $in, $nin, $startsWith, $endsWith, $exist, $or, $and, $not. * If null or empty, all events matching the topic filter will be delivered. * To remove an existing filter when updating a destination, set filter to an empty object `{}`. */ filter?: { [k: string]: any; } | null | undefined; config: WebhookConfig; credentials?: WebhookCredentials | undefined; /** * Static key-value pairs merged into event metadata on every attempt. */ deliveryMetadata?: { [k: string]: string; } | null | undefined; /** * Arbitrary contextual information stored with the destination. */ metadata?: { [k: string]: string; } | null | undefined; }; /** @internal */ export declare const DestinationCreateWebhook$inboundSchema: z.ZodType; /** @internal */ export type DestinationCreateWebhook$Outbound = { id?: string | undefined; type: "webhook"; topics: Topics$Outbound; filter?: { [k: string]: any; } | null | undefined; config: WebhookConfig$Outbound; credentials?: WebhookCredentials$Outbound | undefined; delivery_metadata?: { [k: string]: string; } | null | undefined; metadata?: { [k: string]: string; } | null | undefined; }; /** @internal */ export declare const DestinationCreateWebhook$outboundSchema: z.ZodType; export declare function destinationCreateWebhookToJSON(destinationCreateWebhook: DestinationCreateWebhook): string; export declare function destinationCreateWebhookFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=destinationcreatewebhook.d.ts.map