import * as z from "zod"; 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"; export type CreateWebhookRequest = { /** * A description of the object. */ description?: string | null | undefined; /** * Name of Apideck Unified API */ unifiedApi: UnifiedApiId; /** * The status of the webhook. */ status: Status; /** * The delivery url of the webhook endpoint. */ deliveryUrl: string; /** * The list of subscribed events for this webhook. [`*`] indicates that all events are enabled. */ events: Array; }; /** @internal */ export declare const CreateWebhookRequest$inboundSchema: z.ZodType; /** @internal */ export type CreateWebhookRequest$Outbound = { description?: string | null | undefined; unified_api: string; status: string; delivery_url: string; events: Array; }; /** @internal */ export declare const CreateWebhookRequest$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 CreateWebhookRequest$ { /** @deprecated use `CreateWebhookRequest$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `CreateWebhookRequest$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `CreateWebhookRequest$Outbound` instead. */ type Outbound = CreateWebhookRequest$Outbound; } export declare function createWebhookRequestToJSON(createWebhookRequest: CreateWebhookRequest): string; export declare function createWebhookRequestFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=createwebhookrequest.d.ts.map