import { z } from 'zod';
import { defineTool, } from '../toolDefinition.js';
import { AgentToolNames } from '../shared/agentToolNames.js';
export const listPermanentMailboxesArgumentsSchema = z.object({});
const mailboxSummarySchema = z.object({
    name: z.string().meta({
        description: 'The display name of the permanent mailbox',
    }),
    email_address: z.string().meta({
        description: 'The email address of the permanent mailbox. Use this with execute_open_mabl_email mailboxAddress parameter.',
    }),
    description: z.string().optional().meta({
        description: 'Optional description of the permanent mailbox',
    }),
});
export const listPermanentMailboxesResponseSchema = z.object({
    mailboxes_found: z.number().meta({
        description: 'Number of permanent mailboxes found in the workspace',
    }),
    mailboxes: z.array(mailboxSummarySchema).meta({
        description: 'List of permanent mailboxes available in the workspace',
    }),
});
export const ListPermanentMailboxesDefinition = defineTool({
    name: AgentToolNames.ListPermanentMailboxes,
    description: 'Lists the permanent mabl mailboxes available in the current workspace. Permanent mailboxes are long-lived email addresses that persist across test runs, unlike variable mailboxes created with execute_create_mabl_mailbox. Use this to discover available permanent mailbox addresses, then use their email_address with execute_open_mabl_email to open emails sent to them.',
    argumentsSchema: listPermanentMailboxesArgumentsSchema,
    responseSchema: listPermanentMailboxesResponseSchema,
});
//# sourceMappingURL=ListPermanentMailboxesDefinition.js.map