import type { Id } from "./_generated/dataModel.js"; export declare const createPushTemplate: import("convex/server").RegisteredMutation<"public", { nowMs?: number | undefined; enabled?: boolean | undefined; actorUserId: string; text: string; title: string; companyId: string; periodicity: "manual" | "daily" | "weekly" | "monthly"; suggestedTimes: ({ kind: "daily"; time: string; } | { kind: "weekly"; time: string; weekday: number; } | { kind: "monthly"; time: string; dayOfMonth: number | "last"; })[]; templateKey: string; }, Promise>>; export declare const updatePushTemplate: import("convex/server").RegisteredMutation<"public", { nowMs?: number | undefined; enabled?: boolean | undefined; text?: string | undefined; title?: string | undefined; periodicity?: "manual" | "daily" | "weekly" | "monthly" | undefined; suggestedTimes?: ({ kind: "daily"; time: string; } | { kind: "weekly"; time: string; weekday: number; } | { kind: "monthly"; time: string; dayOfMonth: number | "last"; })[] | undefined; actorUserId: string; templateId: import("convex/values").GenericId<"messagePushTemplates">; }, Promise>; export declare const deletePushTemplate: import("convex/server").RegisteredMutation<"public", { templateId: import("convex/values").GenericId<"messagePushTemplates">; }, Promise>; export declare const listPushTemplatesByCompany: import("convex/server").RegisteredQuery<"public", { includeDisabled?: boolean | undefined; companyId: string; }, Promise<{ _id: import("convex/values").GenericId<"messagePushTemplates">; companyId: string; templateKey: string; title: string; text: string; periodicity: "manual" | "daily" | "weekly" | "monthly"; suggestedTimes: ({ kind: "daily"; time: string; } | { kind: "weekly"; time: string; weekday: number; } | { kind: "monthly"; time: string; dayOfMonth: number | "last"; })[]; enabled: boolean; createdBy: string; updatedBy: string; createdAt: number; updatedAt: number; }[]>>; export declare const createPushJobFromTemplate: import("convex/server").RegisteredMutation<"public", { nowMs?: number | undefined; enabled?: boolean | undefined; schedule?: { kind: "manual"; } | { kind: "daily"; time: string; } | { kind: "weekly"; time: string; weekday: number; } | { kind: "monthly"; time: string; dayOfMonth: number | "last"; } | undefined; consumerUserId: string; companyId: string; timezone: string; templateId: import("convex/values").GenericId<"messagePushTemplates">; }, Promise>>; export declare const createPushJobCustom: import("convex/server").RegisteredMutation<"public", { nowMs?: number | undefined; enabled?: boolean | undefined; consumerUserId: string; text: string; title: string; companyId: string; periodicity: "manual" | "daily" | "weekly" | "monthly"; schedule: { kind: "manual"; } | { kind: "daily"; time: string; } | { kind: "weekly"; time: string; weekday: number; } | { kind: "monthly"; time: string; dayOfMonth: number | "last"; }; timezone: string; }, Promise>>; export declare const updatePushJob: import("convex/server").RegisteredMutation<"public", { nowMs?: number | undefined; enabled?: boolean | undefined; text?: string | undefined; title?: string | undefined; periodicity?: "manual" | "daily" | "weekly" | "monthly" | undefined; schedule?: { kind: "manual"; } | { kind: "daily"; time: string; } | { kind: "weekly"; time: string; weekday: number; } | { kind: "monthly"; time: string; dayOfMonth: number | "last"; } | undefined; timezone?: string | undefined; jobId: import("convex/values").GenericId<"messagePushJobs">; }, Promise>; export declare const deletePushJob: import("convex/server").RegisteredMutation<"public", { jobId: import("convex/values").GenericId<"messagePushJobs">; }, Promise>; export declare const setPushJobEnabled: import("convex/server").RegisteredMutation<"public", { nowMs?: number | undefined; enabled: boolean; jobId: import("convex/values").GenericId<"messagePushJobs">; }, Promise>; export declare const listPushJobsForUser: import("convex/server").RegisteredQuery<"public", { includeDisabled?: boolean | undefined; consumerUserId: string; }, Promise<{ _id: import("convex/values").GenericId<"messagePushJobs">; companyId: string; consumerUserId: string; agentKey: string | null; sourceTemplateId: import("convex/values").GenericId<"messagePushTemplates"> | null; title: string; text: string; periodicity: "manual" | "daily" | "weekly" | "monthly"; timezone: string; schedule: { kind: "manual"; } | { kind: "daily"; time: string; } | { kind: "weekly"; time: string; weekday: number; } | { kind: "monthly"; time: string; dayOfMonth: number | "last"; }; enabled: boolean; nextRunAt: number | null; lastRunAt: number | null; lastRunKey: string | null; createdAt: number; updatedAt: number; }[]>>; export declare const triggerPushJobNow: import("convex/server").RegisteredMutation<"public", { providerConfig?: { appName: string; kind: "fly" | "runpod" | "ecs"; organizationSlug: string; image: string; region: string; volumeName: string; volumePath: string; volumeSizeGb: number; } | undefined; nowMs?: number | undefined; jobId: import("convex/values").GenericId<"messagePushJobs">; }, Promise<{ enqueuedMessageId: Id<"messageQueue">; runKey: string; }>>; export declare const dispatchDuePushJobs: import("convex/server").RegisteredMutation<"public", { providerConfig?: { appName: string; kind: "fly" | "runpod" | "ecs"; organizationSlug: string; image: string; region: string; volumeName: string; volumePath: string; volumeSizeGb: number; } | undefined; nowMs?: number | undefined; limit?: number | undefined; }, Promise<{ scanned: number; enqueued: number; skipped: number; failed: number; }>>; export declare const sendBroadcastToAllActiveAgents: import("convex/server").RegisteredMutation<"public", { providerConfig?: { appName: string; kind: "fly" | "runpod" | "ecs"; organizationSlug: string; image: string; region: string; volumeName: string; volumePath: string; volumeSizeGb: number; } | undefined; nowMs?: number | undefined; text: string; title: string; companyId: string; requestedBy: string; }, Promise<{ broadcastId: import("convex/values").GenericId<"messagePushBroadcasts">; totalTargets: number; enqueued: number; failed: number; }>>; export declare const listPushDispatchesByJob: import("convex/server").RegisteredQuery<"public", { limit?: number | undefined; jobId: import("convex/values").GenericId<"messagePushJobs">; }, Promise<{ _id: import("convex/values").GenericId<"messagePushDispatches">; runKey: string; status: "failed" | "enqueued" | "skipped"; scheduledFor: number; createdAt: number; error: string | null; }[]>>; export declare const listPushJobsForAgent: import("convex/server").RegisteredQuery<"public", { includeDisabled?: boolean | undefined; agentKey: string; consumerUserId: string; }, Promise<{ _id: import("convex/values").GenericId<"messagePushJobs">; companyId: string; consumerUserId: string; agentKey: string | null; sourceTemplateId: import("convex/values").GenericId<"messagePushTemplates"> | null; title: string; text: string; periodicity: "manual" | "daily" | "weekly" | "monthly"; timezone: string; schedule: { kind: "manual"; } | { kind: "daily"; time: string; } | { kind: "weekly"; time: string; weekday: number; } | { kind: "monthly"; time: string; dayOfMonth: number | "last"; }; enabled: boolean; nextRunAt: number | null; lastRunAt: number | null; lastRunKey: string | null; createdAt: number; updatedAt: number; }[]>>; export declare const createPushJobFromTemplateForAgent: import("convex/server").RegisteredMutation<"public", { nowMs?: number | undefined; enabled?: boolean | undefined; schedule?: { kind: "manual"; } | { kind: "daily"; time: string; } | { kind: "weekly"; time: string; weekday: number; } | { kind: "monthly"; time: string; dayOfMonth: number | "last"; } | undefined; agentKey: string; consumerUserId: string; companyId: string; timezone: string; templateId: import("convex/values").GenericId<"messagePushTemplates">; }, Promise>>; export declare const createPushJobCustomForAgent: import("convex/server").RegisteredMutation<"public", { nowMs?: number | undefined; enabled?: boolean | undefined; agentKey: string; consumerUserId: string; text: string; title: string; companyId: string; periodicity: "manual" | "daily" | "weekly" | "monthly"; schedule: { kind: "manual"; } | { kind: "daily"; time: string; } | { kind: "weekly"; time: string; weekday: number; } | { kind: "monthly"; time: string; dayOfMonth: number | "last"; }; timezone: string; }, Promise>>; export declare const updatePushJobForAgent: import("convex/server").RegisteredMutation<"public", { nowMs?: number | undefined; enabled?: boolean | undefined; text?: string | undefined; title?: string | undefined; periodicity?: "manual" | "daily" | "weekly" | "monthly" | undefined; schedule?: { kind: "manual"; } | { kind: "daily"; time: string; } | { kind: "weekly"; time: string; weekday: number; } | { kind: "monthly"; time: string; dayOfMonth: number | "last"; } | undefined; timezone?: string | undefined; agentKey: string; consumerUserId: string; jobId: import("convex/values").GenericId<"messagePushJobs">; }, Promise>; export declare const triggerPushJobNowForAgent: import("convex/server").RegisteredMutation<"public", { providerConfig?: { appName: string; kind: "fly" | "runpod" | "ecs"; organizationSlug: string; image: string; region: string; volumeName: string; volumePath: string; volumeSizeGb: number; } | undefined; nowMs?: number | undefined; agentKey: string; consumerUserId: string; jobId: import("convex/values").GenericId<"messagePushJobs">; }, Promise<{ enqueuedMessageId: Id<"messageQueue">; runKey: string; }>>; export declare const listPushDispatchesForAgent: import("convex/server").RegisteredQuery<"public", { limit?: number | undefined; agentKey: string; consumerUserId: string; }, Promise<{ _id: import("convex/values").GenericId<"messagePushDispatches">; jobId: import("convex/values").GenericId<"messagePushJobs">; runKey: string; status: "failed" | "enqueued" | "skipped"; scheduledFor: number; createdAt: number; error: string | null; }[]>>; export declare const getUserAgentPushStats: import("convex/server").RegisteredQuery<"public", { agentKey: string; consumerUserId: string; }, Promise<{ totalPushJobs: number; activePushJobs: number; totalDispatches: number; latestDispatchAt: number; }>>; export declare const getUserAgentConversationStats: import("convex/server").RegisteredQuery<"public", { agentKey: string; consumerUserId: string; }, Promise<{ contextMessages: number; queuedMessages: number; failedMessages: number; }>>; export declare const getUserAgentUsageStats: import("convex/server").RegisteredQuery<"public", { agentKey: string; consumerUserId: string; }, Promise<{ contextMessages: number; queuedMessages: number; failedMessages: number; totalPushJobs: number; activePushJobs: number; totalDispatches: number; latestDispatchAt: number; }>>; //# sourceMappingURL=pushing.d.ts.map