import * as z from "zod/v3"; import { OpenEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { Status } from "./status.js"; import { UnifiedApiId } from "./unifiedapiid.js"; import { WebhookEventType } from "./webhookeventtype.js"; /** * Indicates why the webhook has been disabled. `retry_limit`: webhook reached its retry limit. `usage_limit`: account is over its usage limit. `delivery_url_validation_failed`: delivery URL failed validation during webhook creation or update. */ export declare const DisabledReason: { readonly None: "none"; readonly RetryLimit: "retry_limit"; readonly UsageLimit: "usage_limit"; readonly DeliveryUrlValidationFailed: "delivery_url_validation_failed"; }; /** * Indicates why the webhook has been disabled. `retry_limit`: webhook reached its retry limit. `usage_limit`: account is over its usage limit. `delivery_url_validation_failed`: delivery URL failed validation during webhook creation or update. */ export type DisabledReason = OpenEnum; export type Webhook = { id?: string | undefined; /** * A description of the object. */ description?: string | null | undefined; /** * Name of Apideck Unified API */ unifiedApi: UnifiedApiId; /** * The status of the webhook. */ status: Status; /** * Indicates why the webhook has been disabled. `retry_limit`: webhook reached its retry limit. `usage_limit`: account is over its usage limit. `delivery_url_validation_failed`: delivery URL failed validation during webhook creation or update. */ disabledReason?: DisabledReason | undefined; /** * The delivery url of the webhook endpoint. The endpoint must respond within 60 seconds or the delivery is recorded as failed. */ deliveryUrl: string; /** * The Unify Base URL events from connectors will be sent to after service id is appended. */ executeBaseUrl: string; /** * The list of subscribed events for this webhook. [`*`] indicates that all events are enabled. */ events: Array; /** * The date and time when the object was last updated. */ updatedAt?: Date | null | undefined; /** * The date and time when the object was created. */ createdAt?: Date | null | undefined; }; /** @internal */ export declare const DisabledReason$inboundSchema: z.ZodType; /** @internal */ export declare const Webhook$inboundSchema: z.ZodType; export declare function webhookFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=webhook.d.ts.map