Skip to main content

packages/contracts/src/events/topics.ts

Metadata

Indexed Symbols

No indexed functions/methods detected in this file.

Markdown Headings (if applicable)

No markdown headings detected.

Source Preview

export const requiredEventTopics = [
"ticket.created",
"ticket.sla_breached",
"asset.state_changed",
"alert.triggered",
"invoice.overdue",
"pipeline.failed",
"workflow.completed"
] as const;

export type RequiredEventTopic = (typeof requiredEventTopics)[number];

export type PlatformEvent<TPayload = unknown> = {
id: string;
topic: RequiredEventTopic | string;
workspaceId: string;
clientId?: string;
occurredAt: string;
correlationId: string;
payload: TPayload;
};