import type * as Extend from "../../../../index"; /** * @example * { * webhookEndpointId: "wh_Xj8mK2pL9nR4vT7qY5wZ", * resourceType: "extractor", * resourceId: "ex_Xj8mK2pL9nR4vT7qY5wZ", * enabledEvents: ["extract_run.processed", "extract_run.failed"] * } */ export interface WebhookSubscriptionsCreateRequest { /** The ID of the webhook endpoint to attach this subscription to. */ webhookEndpointId: string; resourceType: Extend.WebhookSubscriptionResourceType; /** The ID of the resource to scope this subscription to. */ resourceId: string; /** The event types to subscribe to. Must be valid for the given `resourceType`. */ enabledEvents: Extend.WebhookSubscriptionEventType[]; }