Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* scheduled_action
* API for managing scheduled actions
* OpenAPI spec version: 0.1.0
*/
import type { ActionKind } from './actionKind';
import type { ActionTrigger } from './actionTrigger';
import type { RunVisibility } from './runVisibility';
import type { ScheduledActionClaimed } from './scheduledActionClaimed';
import type { ScheduledActionEventActivatedAt } from './scheduledActionEventActivatedAt';
import type { ScheduledActionId } from './scheduledActionId';
import type { ScheduledActionNextRunAt } from './scheduledActionNextRunAt';
import type { ScheduledActionTask } from './scheduledActionTask';
import type { ScheduledActionTemplateId } from './scheduledActionTemplateId';
export interface ScheduledAction {
claimed?: ScheduledActionClaimed;
/** Independent of execution bookkeeping in `updated_at`. */
configuration_revision: number;
created_at: string;
/** What the routine is for, in the owner's words; empty when unset. */
description?: string;
/** When false, automatic dispatch skips this action. `run_now` remains
available regardless. */
enabled: boolean;
/** Event publication boundary; absent for cron actions. */
event_activated_at?: ScheduledActionEventActivatedAt;
id?: ScheduledActionId;
kind: ActionKind;
name: string;
/** Next cron firing, absent for event-triggered actions. */
next_run_at?: ScheduledActionNextRunAt;
/** Who the action belongs to. Every action is user-owned today, but the
type no longer says so: the principal string on the wire and in the
`owner` column is the same, and a bot- or team-owned row decodes
rather than failing to parse. */
owner: string;
/** Whether the action's runs are listed in Home and the Agents list. */
run_visibility: RunVisibility;
task: ScheduledActionTask;
/** The shared template this routine was activated from, if any. */
template_id?: ScheduledActionTemplateId;
trigger: ActionTrigger;
updated_at: string;
}