diff --git a/packages/types/src/message.ts b/packages/types/src/message.ts index e244660..a2b87e1 100644 --- a/packages/types/src/message.ts +++ b/packages/types/src/message.ts @@ -77,3 +77,14 @@ export interface ForwardJobData { toGroupJid: string; fromAccountId: string; // which bot account to send the forward from } + +export interface IndexJobData { + messageId: string; // DB Message.id (cuid) + content: string; + senderName: string | null; + sourceGroupId: string; // DB Group.id + sourceGroupName: string; + tags: string[]; + platform: string; + approvedAt: string; // ISO 8601 — converted to Unix ms in the index processor +}