import { automateTriggerDefinitions as triggerDefinitions } from "@automate.ax/catalog/triggers/automate"; import { type TriggerOptions } from "../../automation/create-trigger.js"; import { type AutomationSelector } from "../../automation/automation-descriptor.js"; type CanonicalAutomationTriggerOptions = TriggerOptions; /** Shared public options for automation-scoped lifecycle triggers. */ type AutomationTriggerOptions = Omit & { /** Automation descriptor, description, or ID to watch. */ automation: AutomationSelector; }; /** Subscribes to every logical action-attempt transition. */ export declare const onAutomateActionAttemptEvent: (options: AutomationTriggerOptions) => import("../..").Signal<{ action: { id: string; maxAttempts: number; name: string; replaySafety: "safe" | "unsafe" | null; slot: number; status: "failed" | "succeeded" | "pending" | "skipped"; }; attempt: { completedAt: Date | null; id: string; ordinal: number; retryAt: Date | null; startedAt: Date; status: "failed" | "succeeded" | "indeterminate" | "retrying" | "running"; }; automation: { id: string; identityKey: string; }; execution: { id: string; }; failure: { code: string; message: string; details?: import("zod").JSONType | undefined; name?: string | undefined; cause?: { code: string; message: string; details?: import("zod").JSONType | undefined; name?: string | undefined; cause?: { code: string; message: string; details?: import("zod").JSONType | undefined; name?: string | undefined; cause?: { code: string; message: string; details?: import("zod").JSONType | undefined; name?: string | undefined; cause?: undefined; } | undefined; } | undefined; } | undefined; } | null; organization: { id: string; name: string; }; project: { id: string; name: string; }; transitionedAt: Date; }>; /** Subscribes when an action schedules another logical attempt. */ export declare const onAutomateActionRetryScheduled: (options: AutomationTriggerOptions) => import("../..").Signal<{ action: { id: string; maxAttempts: number; name: string; replaySafety: "safe" | "unsafe" | null; slot: number; status: "failed" | "succeeded" | "pending" | "skipped"; }; automation: { id: string; identityKey: string; }; execution: { id: string; }; organization: { id: string; name: string; }; project: { id: string; name: string; }; transitionedAt: Date; attempt: { id: string; ordinal: number; startedAt: Date; completedAt: Date; retryAt: Date; status: "retrying"; }; failure: { code: string; message: string; details?: import("zod").JSONType | undefined; name?: string | undefined; cause?: { code: string; message: string; details?: import("zod").JSONType | undefined; name?: string | undefined; cause?: { code: string; message: string; details?: import("zod").JSONType | undefined; name?: string | undefined; cause?: { code: string; message: string; details?: import("zod").JSONType | undefined; name?: string | undefined; cause?: undefined; } | undefined; } | undefined; } | undefined; }; }>; /** Subscribes when an action reaches a certain terminal failure. */ export declare const onAutomateActionFailed: (options: AutomationTriggerOptions) => import("../..").Signal<{ automation: { id: string; identityKey: string; }; execution: { id: string; }; organization: { id: string; name: string; }; project: { id: string; name: string; }; transitionedAt: Date; action: { id: string; maxAttempts: number; name: string; replaySafety: "safe" | "unsafe" | null; slot: number; status: "failed"; }; attempt: { id: string; ordinal: number; retryAt: Date | null; startedAt: Date; completedAt: Date; status: "failed"; }; failure: { code: string; message: string; details?: import("zod").JSONType | undefined; name?: string | undefined; cause?: { code: string; message: string; details?: import("zod").JSONType | undefined; name?: string | undefined; cause?: { code: string; message: string; details?: import("zod").JSONType | undefined; name?: string | undefined; cause?: { code: string; message: string; details?: import("zod").JSONType | undefined; name?: string | undefined; cause?: undefined; } | undefined; } | undefined; } | undefined; }; }>; /** Subscribes when an unsafe action delivery has an ambiguous outcome. */ export declare const onAutomateActionIndeterminate: (options: AutomationTriggerOptions) => import("../..").Signal<{ automation: { id: string; identityKey: string; }; execution: { id: string; }; organization: { id: string; name: string; }; project: { id: string; name: string; }; transitionedAt: Date; action: { id: string; maxAttempts: number; name: string; replaySafety: "safe" | "unsafe" | null; slot: number; status: "failed"; }; attempt: { id: string; ordinal: number; retryAt: Date | null; startedAt: Date; completedAt: Date; status: "indeterminate"; }; failure: { code: string; message: string; details?: import("zod").JSONType | undefined; name?: string | undefined; cause?: { code: string; message: string; details?: import("zod").JSONType | undefined; name?: string | undefined; cause?: { code: string; message: string; details?: import("zod").JSONType | undefined; name?: string | undefined; cause?: { code: string; message: string; details?: import("zod").JSONType | undefined; name?: string | undefined; cause?: undefined; } | undefined; } | undefined; } | undefined; }; }>; /** Subscribes to enabled-state changes for one Automate.ax automation. */ export declare const onAutomateAutomationStateChanged: (options: AutomationTriggerOptions) => import("../..").Signal<{ automation: { description: string; id: string; identityKey: string; }; enabled: boolean; organization: { id: string; name: string; }; previousEnabled: boolean; project: { id: string; name: string; }; transitionedAt: Date; }>; /** Subscribes when one Automate.ax automation becomes enabled. */ export declare const onAutomateAutomationEnabled: (options: AutomationTriggerOptions) => import("../..").Signal<{ automation: { description: string; id: string; identityKey: string; }; organization: { id: string; name: string; }; project: { id: string; name: string; }; transitionedAt: Date; enabled: true; previousEnabled: false; }>; /** Subscribes when one Automate.ax automation becomes disabled. */ export declare const onAutomateAutomationDisabled: (options: AutomationTriggerOptions) => import("../..").Signal<{ automation: { description: string; id: string; identityKey: string; }; organization: { id: string; name: string; }; project: { id: string; name: string; }; transitionedAt: Date; enabled: false; previousEnabled: true; }>; /** Subscribes to every deployment status transition for one project. */ export declare const onAutomateDeploymentEvent: import("../../automation/create-trigger").TriggerFactory<{ readonly account: { readonly connectionOptions: readonly [{ readonly connectionMethodId: "organization-api-key"; readonly requiredScopes: readonly ["deployment:read"]; }]; readonly planDefaultBinding: false; readonly serviceId: "automate"; }; readonly getDetails: ({ config }: import("@automate.ax/catalog").TriggerPresentationContext) => { label: string; value: string; }[]; readonly type: "automate.deployment.event"; }>; /** Subscribes when a deployment needs integration-account authorization. */ export declare const onAutomateDeploymentAwaitingAuthorization: import("../../automation/create-trigger").TriggerFactory<{ readonly account: { readonly connectionOptions: readonly [{ readonly connectionMethodId: "organization-api-key"; readonly requiredScopes: readonly ["deployment:read"]; }]; readonly planDefaultBinding: false; readonly serviceId: "automate"; }; readonly getDetails: ({ config }: import("@automate.ax/catalog").TriggerPresentationContext) => { label: string; value: string; }[]; readonly type: "automate.deployment.awaitingAuthorization"; }>; /** Subscribes when a deployment succeeds. */ export declare const onAutomateDeploymentSucceeded: import("../../automation/create-trigger").TriggerFactory<{ readonly account: { readonly connectionOptions: readonly [{ readonly connectionMethodId: "organization-api-key"; readonly requiredScopes: readonly ["deployment:read"]; }]; readonly planDefaultBinding: false; readonly serviceId: "automate"; }; readonly getDetails: ({ config }: import("@automate.ax/catalog").TriggerPresentationContext) => { label: string; value: string; }[]; readonly type: "automate.deployment.succeeded"; }>; /** Subscribes when a deployment permanently fails. */ export declare const onAutomateDeploymentFailed: import("../../automation/create-trigger").TriggerFactory<{ readonly account: { readonly connectionOptions: readonly [{ readonly connectionMethodId: "organization-api-key"; readonly requiredScopes: readonly ["deployment:read"]; }]; readonly planDefaultBinding: false; readonly serviceId: "automate"; }; readonly getDetails: ({ config }: import("@automate.ax/catalog").TriggerPresentationContext) => { label: string; value: string; }[]; readonly type: "automate.deployment.failed"; }>; /** Subscribes when a deployment is cancelled. */ export declare const onAutomateDeploymentCancelled: import("../../automation/create-trigger").TriggerFactory<{ readonly account: { readonly connectionOptions: readonly [{ readonly connectionMethodId: "organization-api-key"; readonly requiredScopes: readonly ["deployment:read"]; }]; readonly planDefaultBinding: false; readonly serviceId: "automate"; }; readonly getDetails: ({ config }: import("@automate.ax/catalog").TriggerPresentationContext) => { label: string; value: string; }[]; readonly type: "automate.deployment.cancelled"; }>; /** Subscribes to every execution lifecycle transition. */ export declare const onAutomateExecutionEvent: (options: AutomationTriggerOptions) => import("../..").Signal<{ automation: { description: string; id: string; identityKey: string; }; eventTypes: string[]; execution: { createdAt: Date; id: string; settledAt: Date | null; status: "failed" | "settled" | "running"; }; failure: { code: string; message: string; details?: import("zod").JSONType | undefined; name?: string | undefined; cause?: { code: string; message: string; details?: import("zod").JSONType | undefined; name?: string | undefined; cause?: { code: string; message: string; details?: import("zod").JSONType | undefined; name?: string | undefined; cause?: { code: string; message: string; details?: import("zod").JSONType | undefined; name?: string | undefined; cause?: undefined; } | undefined; } | undefined; } | undefined; } | null; organization: { id: string; name: string; }; project: { id: string; name: string; }; transitionedAt: Date; }>; /** Subscribes when an execution settles successfully. */ export declare const onAutomateExecutionSettled: (options: AutomationTriggerOptions) => import("../..").Signal<{ automation: { description: string; id: string; identityKey: string; }; eventTypes: string[]; organization: { id: string; name: string; }; project: { id: string; name: string; }; transitionedAt: Date; execution: { createdAt: Date; id: string; settledAt: Date; status: "settled"; }; failure: null; }>; /** Subscribes when an execution permanently fails. */ export declare const onAutomateExecutionFailed: (options: AutomationTriggerOptions) => import("../..").Signal<{ automation: { description: string; id: string; identityKey: string; }; eventTypes: string[]; organization: { id: string; name: string; }; project: { id: string; name: string; }; transitionedAt: Date; execution: { createdAt: Date; id: string; settledAt: Date; status: "failed"; }; failure: { code: string; message: string; details?: import("zod").JSONType | undefined; name?: string | undefined; cause?: { code: string; message: string; details?: import("zod").JSONType | undefined; name?: string | undefined; cause?: { code: string; message: string; details?: import("zod").JSONType | undefined; name?: string | undefined; cause?: { code: string; message: string; details?: import("zod").JSONType | undefined; name?: string | undefined; cause?: undefined; } | undefined; } | undefined; } | undefined; }; }>; export {}; //# sourceMappingURL=triggers.d.ts.map