Interfazhost
MailService
Correo del usuario (READ_EMAIL / MAIL_LABEL; 60 llamadas por invocacion).
Firma
export interface MailService {
listRecent(args?: { limit?: number; maxAgeDays?: number; }): Promise<any>;
getEmail(args: { emailId: string; }): Promise<any>;
applyBatch(args: { items: MailApplyItem[]; source?: "manual" | "hook"; minConfidence?: number; runId?: string; }): Promise<any>;
undoRun(args?: { runId?: string; }): Promise<any>;
}Miembros (4)
| Nombre | Tipo | Descripción |
|---|---|---|
| listRecent | listRecent(args?: { limit?: number; maxAgeDays?: number; }): Promise<any> | READ_EMAIL. limit 1..100 (def. 50), maxAgeDays 1..90 (def. 30). [INCIERTO: forma de cada correo] |
| getEmail | getEmail(args: { emailId: string; }): Promise<any> | READ_EMAIL. |
| applyBatch | applyBatch(args: { items: MailApplyItem[]; source?: "manual" | "hook"; minConfidence?: number; runId?: string; }): Promise<any> | MAIL_LABEL. items 1..50; minConfidence 0.5..0.99 (def. 0.7). [INCIERTO: resultado] |
| undoRun | undoRun(args?: { runId?: string; }): Promise<any> | MAIL_LABEL. Sin runId deshace la ultima ejecucion. [INCIERTO: resultado] |
Ejemplos
const recent = await ctx.services.mail.listRecent({ limit: 10, maxAgeDays: 7 });Usado en / Referenciado por
Referencia a
Fuente: bloomx-extensions/_shared/sdk/ctx.d.ts:351 · ctx.d.ts