import { z } from "zod";
import { TriggerInboxPropertySchema, LeasePropertySchema, } from "../../../types/properties";
import { TriggerMessageItemSchema, } from "../../../schemas/TriggerMessage";
export const AckTriggerInboxMessagesSchema = z
    .object({
    inbox: TriggerInboxPropertySchema,
    lease: LeasePropertySchema,
    messages: z
        .array(z.string().min(1))
        .optional()
        .describe("Specific message IDs to ack. Omit to ack every message in the lease."),
})
    .describe("Acknowledge messages from a lease. Acked messages are removed from the inbox; unacked ones return to the available pool when the lease expires.");
export const AckTriggerInboxMessagesItemSchema = z.object({
    acked_id: z.string().nullable(),
    results: z.array(TriggerMessageItemSchema),
});
