import type { TriggerDefinition } from "../types" import * as z from "zod/mini" const INVOCATION_PRESENTATION_CONFIG_SCHEMA = z.object({ entrypoint: z.string(), }) export const automationInvokedTriggerDefinition = { getDetails: ({ config }) => [ { label: "Entrypoint", value: INVOCATION_PRESENTATION_CONFIG_SCHEMA.parse(config).entrypoint, }, ], icon: "automation", name: "Invocation", type: "automation.invoked", } as const satisfies TriggerDefinition