import { IncomingHttpHeaders } from "node:http"; import { HandlerFunctionEvent } from "./handler.js"; import { FunctionItem } from "./function.js"; export interface AppEventPayload { key: string; } export interface AppEventResult { } export interface EventPayload { } export interface LifecycleEventPayload extends EventPayload { installation_id: string; app: { id: string; version: string; name: string; publisher: string; links: { support?: string; }; }; environment: { id: string; type: string; name: string; }; } export interface LifecycleInstallEventPayload extends LifecycleEventPayload { installed_by: string; } export interface LifecycleUninstallEventPayload extends LifecycleEventPayload { uninstalled_by: string; } export interface LifecycleUpgradeEventPayload extends LifecycleEventPayload { upgraded_by: string; } export declare enum SystemEventSource { System = "system" } export interface SystemEventPayload extends EventPayload { data: unknown; source?: SystemEventSource; } export interface CreatedEventPayload extends SystemEventPayload { } export interface DeletedEventPayload extends SystemEventPayload { } export interface ViewedEventPayload extends SystemEventPayload { } export interface RestoredEventPayload extends SystemEventPayload { } export interface ArchivedEventPayload extends SystemEventPayload { } export interface ActivatedEventPayload extends SystemEventPayload { } export interface ChangedEventPayload extends SystemEventPayload { changelog: { origin?: unknown; target?: unknown; property?: { id?: string; key?: string; name?: string; }; }; } export interface ScheduledEventPayload extends EventPayload { } export interface WebhookPayload extends EventPayload { method: string; path: string; headers: IncomingHttpHeaders; body: unknown; queryParameters: Record; } export interface NexusEventInvocationRequest extends HandlerFunctionEvent { handler: { function: FunctionItem; }; } export interface NexusEventInvocationDto { trigger: { key: string; type: string; }; handler: { function?: FunctionItem; endpoint?: string; }; filter?: { ignoreSelf?: boolean; }; } export interface NexusEventInvocation extends Omit, "handler">, NexusEventInvocationDto { } //# sourceMappingURL=event.d.ts.map