export declare const OutboxEventType: { readonly userCreated: "user_created"; readonly userUpdated: "user_updated"; readonly workgroupCreated: "workgroup_created"; readonly workgroupUpdated: "workgroup_updated"; readonly workgroupRemoved: "workgroup_removed"; }; export type OutboxEventType = typeof OutboxEventType[keyof typeof OutboxEventType]; export interface IOutboxEventPayloadUserCreated { uuid: string; validated: boolean; } export interface IOutboxEventPayloadUserUpdated { uuid: string; validatedAssigned: boolean; } export interface IOutboxEventPayloadWorkgroupCreated { uuid: string; ownerUuid: string; name: string; } export interface IOutboxEventPayloadWorkgroupUpdated { uuid: string; name: string; } export interface IOutboxEventPayloadWorkgroupRemoved { uuid: string; } export declare const OutboxEventStatus: { readonly valid: "valid"; readonly canceled: "canceled"; }; export type OutboxEventStatus = typeof OutboxEventStatus[keyof typeof OutboxEventStatus]; export interface IOutboxEvent { id: string; idempotencyKey: string; eventType: T; payload: P; status: OutboxEventStatus; createdAt: Date; listenerProcesses?: IOutboxEventListenerProcess[]; } export declare const OutboxEventListenerProcessStatus: { readonly processing: "processing"; readonly processed: "processed"; readonly failed: "failed"; }; export type OutboxEventListenerProcessStatus = typeof OutboxEventListenerProcessStatus[keyof typeof OutboxEventListenerProcessStatus]; export interface IOutboxEventListenerProcess { id: string; listenerId: string; outboxEventId: string; outboxEvent?: IOutboxEvent; status: OutboxEventListenerProcessStatus; createdAt: Date; processedAt: Date; retryCount: number; message: string; correlationId: string; } export interface IOutboxEventNotifyPayload { id: string; event_type: string; }