import { APIResource } from "../../../../core/resource.js"; import { PagePromise, V4PagePaginationArray, type V4PagePaginationArrayParams } from "../../../../core/pagination.js"; import { RequestOptions } from "../../../../internal/request-options.js"; export declare class BaseMessages extends APIResource { static readonly _key: readonly ['emailSecurity', 'investigate', 'bulk', 'messages']; /** * List messages for a bulk action job * * @example * ```ts * // Automatically fetches more pages as needed. * for await (const messageListResponse of client.emailSecurity.investigate.bulk.messages.list( * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', * { account_id: '023e105f4ecef8ad9ca31a8372d0c353' }, * )) { * // ... * } * ``` */ list(jobID: string, params: MessageListParams, options?: RequestOptions): PagePromise; } export declare class Messages extends BaseMessages { } export type MessageListResponsesV4PagePaginationArray = V4PagePaginationArray; export interface MessageListResponse { action_params: MessageListResponse.Move | MessageListResponse.Release; action_type: 'MOVE' | 'RELEASE'; created_at: string; message_id: string; postfix_id: string; retry_count: number; status: 'PENDING' | 'DISCOVERING' | 'PROCESSING' | 'COMPLETED' | 'FAILED' | 'CANCELLED' | 'SKIPPED'; alert_id?: string | null; email_message_id?: string | null; processed_at?: string | null; /** * When to retry the action if it failed */ retry_after?: string | null; status_message?: string | null; } export declare namespace MessageListResponse { interface Move { client_recipient: string; destination: 'Inbox' | 'JunkEmail' | 'DeletedItems' | 'RecoverableItemsDeletions' | 'RecoverableItemsPurges'; type: 'MOVE'; expected_disposition?: 'MALICIOUS' | 'MALICIOUS-BEC' | 'SUSPICIOUS' | 'SPOOF' | 'SPAM' | 'BULK' | 'ENCRYPTED' | 'EXTERNAL' | 'UNKNOWN' | 'NONE'; } interface Release { client_recipient: string; type: 'RELEASE'; } } export interface MessageListParams extends V4PagePaginationArrayParams { /** * Path param: Identifier. */ account_id: string; /** * Query param */ status?: 'PENDING' | 'DISCOVERING' | 'PROCESSING' | 'COMPLETED' | 'FAILED' | 'CANCELLED' | 'SKIPPED'; } export declare namespace Messages { export { type MessageListResponse as MessageListResponse, type MessageListResponsesV4PagePaginationArray as MessageListResponsesV4PagePaginationArray, type MessageListParams as MessageListParams, }; } //# sourceMappingURL=messages.d.ts.map