import type * as Extend from "../../../../index"; /** * @example * { * url: "https://example.com/webhooks", * name: "Production webhook", * enabledEvents: ["extract_run.processed", "workflow.created"], * apiVersion: "apiVersion" * } */ export interface WebhookEndpointsCreateRequest { /** The URL that webhook events will be sent to. */ url: string; /** A human-readable name for the webhook endpoint. */ name: string; status?: Extend.WebhookEndpointStatus; /** The list of global event types to subscribe to. Pass an empty array to create an endpoint with no global events (useful if you only plan to use resource-scoped subscriptions). */ enabledEvents: Extend.WebhookEndpointEventType[]; apiVersion: Extend.ApiVersionEnum; advancedOptions?: Extend.WebhookAdvancedOptions; }