import { z } from "zod";
import { TriggerInboxPropertySchema, LeasePropertySchema, } from "../../../types/properties";
import { TriggerMessageItemSchema, } from "../../../schemas/TriggerMessage";
export const ReleaseTriggerInboxMessagesSchema = z
    .object({
    inbox: TriggerInboxPropertySchema,
    lease: LeasePropertySchema,
    messages: z
        .array(z.string().min(1))
        .optional()
        .describe("Specific message IDs to release. Omit to release every message in the lease."),
})
    .describe("Release messages from a lease back to the inbox without acknowledging them. Released messages become immediately available for re-leasing. The lease attempt still counts against the per-message lease limit; releasing does not refund the attempt.");
export const ReleaseTriggerInboxMessagesItemSchema = z.object({
    released_id: z.string().nullable(),
    results: z.array(TriggerMessageItemSchema),
});
