AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents
TypeScript ai-agentai-agent-toolsai-agentsai-agents-frameworkmcpmcp-servermcp-toolsmcpsn8n-alternativeno-code-automationworkflowworkflow-automationworkflows
import { createAction } from '@activepieces/pieces-framework';
import { metabaseAiProps } from '../../ai-props';
import { metabaseApi } from '../../api';
import { metabaseAuth } from '../../auth';
import { metabaseDeleteTimelineEventOutputSchema } from '../../output-schemas';
export const deleteTimelineEventAction = createAction({
auth: metabaseAuth,
name: 'metabase_delete_timeline_event',
outputSchema: metabaseDeleteTimelineEventOutputSchema,
displayName: 'Delete Timeline Event',
description: 'Permanently delete a timeline event.',
audience: 'ai',
classification: 'DESTRUCTIVE',
aiMetadata: {
description:
'Permanently deletes a timeline event. To hide it instead (recoverable), use Update Timeline Event with Archived = Yes.',
idempotent: false,
},
props: {
eventId: metabaseAiProps.timelineEventId({ required: true }),
},
async run({ auth, propsValue }) {
await metabaseApi.deleteTimelineEvent({
auth,
eventId: propsValue.eventId,
});
return { deleted: true, eventId: propsValue.eventId };
},
});