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 { WebhookCredentialsUpdate, WebhookCredentialsUpdate$Outbound } from "./webhookcredentialsupdate.js"; export type DestinationUpdateWebhook = { /** * "*" or an array of enabled topics. */ topics?: Topics | undefined; /** * 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 | undefined; credentials?: WebhookCredentialsUpdate | 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 DestinationUpdateWebhook$inboundSchema: z.ZodType; /** @internal */ export type DestinationUpdateWebhook$Outbound = { topics?: Topics$Outbound | undefined; filter?: { [k: string]: any; } | null | undefined; config?: WebhookConfig$Outbound | undefined; credentials?: WebhookCredentialsUpdate$Outbound | undefined; delivery_metadata?: { [k: string]: string; } | null | undefined; metadata?: { [k: string]: string; } | null | undefined; }; /** @internal */ export declare const DestinationUpdateWebhook$outboundSchema: z.ZodType; export declare function destinationUpdateWebhookToJSON(destinationUpdateWebhook: DestinationUpdateWebhook): string; export declare function destinationUpdateWebhookFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=destinationupdatewebhook.d.ts.map