UNPKG

@mastra/core

Version:
22 lines • 875 B
import type { CreatedAgentSignal } from '../agent/signals.js'; import type { Mastra } from '../mastra/index.js'; import type { NotificationsStorage } from './storage.js'; import type { NotificationRecord } from './types.js'; export type DispatchDueNotificationsInput = { mastra: Mastra; storage: NotificationsStorage; now?: Date; limit?: number; /** Only dispatch notifications for this resource's threads. */ resourceId?: string; }; export type DispatchDueNotificationsResult = { delivered: NotificationRecord[]; failed: Array<{ record: NotificationRecord; error: string; }>; signals: CreatedAgentSignal[]; }; export declare function dispatchDueNotifications({ mastra, storage, now, limit, resourceId, }: DispatchDueNotificationsInput): Promise<DispatchDueNotificationsResult>; //# sourceMappingURL=dispatcher.d.ts.map