import * as z from "zod"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type WebhookSubscription = { /** * The ID of the downstream service */ downstreamId?: string | undefined; /** * The list of Unify Events this connection is subscribed to */ unifyEventTypes?: Array | undefined; /** * The list of downstream Events this connection is subscribed to */ downstreamEventTypes?: Array | undefined; /** * The URL the downstream is sending to when the event is triggered */ executeUrl?: string | undefined; /** * The date and time the webhook subscription was created downstream */ createdAt?: string | undefined; }; /** @internal */ export declare const WebhookSubscription$inboundSchema: z.ZodType; /** @internal */ export type WebhookSubscription$Outbound = { downstream_id?: string | undefined; unify_event_types?: Array | undefined; downstream_event_types?: Array | undefined; execute_url?: string | undefined; created_at?: string | undefined; }; /** @internal */ export declare const WebhookSubscription$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace WebhookSubscription$ { /** @deprecated use `WebhookSubscription$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `WebhookSubscription$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `WebhookSubscription$Outbound` instead. */ type Outbound = WebhookSubscription$Outbound; } export declare function webhookSubscriptionToJSON(webhookSubscription: WebhookSubscription): string; export declare function webhookSubscriptionFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=webhooksubscription.d.ts.map