Skip to main content
import type { WorkflowRegistration, WorkflowExecution } from '@collab-kit/utils';

WorkflowRegistration

A workflow registration.
interface WorkflowRegistration {
  id: string;
  organization_id: string;
  name: string;
  code: string;
  events: WebhookEventName[];
  room_id: string | null;
  enabled: boolean;
  created_at: string;
  updated_at: string;
}

WorkflowExecution

A workflow execution log entry.
interface WorkflowExecution {
  id: string;
  workflow_id: string;
  event: string;
  status: 'pending' | 'success' | 'failed';
  result: string | null;
  duration_ms: number | null;
  created_at: string;
}