import { CrudSchemaFromOptions, CrudTypeOf } from "../../crud.js"; import * as yup from "yup"; //#region src/interface/crud/email-outbox.d.ts declare const emailOutboxReadSchema: yup.MixedSchema<{ id: string; created_at_millis: number; updated_at_millis: number; tsx_source: string; theme_id: string | null; to: { type: "user-primary-email"; user_id: string; } | { type: "user-custom-emails"; user_id: string; emails: string[]; } | { type: "custom-emails"; emails: string[]; }; variables: Record; skip_deliverability_check: boolean; scheduled_at_millis: number; created_with: "draft" | "programmatic-call"; email_draft_id: string | null; email_programmatic_call_template_id: string | null; send_retries: number; next_send_retry_at_millis: number | null; send_attempt_errors: { attempt_number: number; timestamp: string; external_message: string; external_details: Record; internal_message: string; internal_details: Record; }[] | null; status: "paused"; simple_status: "in-progress"; is_paused: boolean; has_rendered: boolean; has_delivered: boolean; } | { id: string; created_at_millis: number; updated_at_millis: number; tsx_source: string; theme_id: string | null; to: { type: "user-primary-email"; user_id: string; } | { type: "user-custom-emails"; user_id: string; emails: string[]; } | { type: "custom-emails"; emails: string[]; }; variables: Record; skip_deliverability_check: boolean; scheduled_at_millis: number; created_with: "draft" | "programmatic-call"; email_draft_id: string | null; email_programmatic_call_template_id: string | null; send_retries: number; next_send_retry_at_millis: number | null; send_attempt_errors: { attempt_number: number; timestamp: string; external_message: string; external_details: Record; internal_message: string; internal_details: Record; }[] | null; status: "preparing"; simple_status: "in-progress"; is_paused: boolean; has_rendered: boolean; has_delivered: boolean; } | { id: string; created_at_millis: number; updated_at_millis: number; tsx_source: string; theme_id: string | null; to: { type: "user-primary-email"; user_id: string; } | { type: "user-custom-emails"; user_id: string; emails: string[]; } | { type: "custom-emails"; emails: string[]; }; variables: Record; skip_deliverability_check: boolean; scheduled_at_millis: number; created_with: "draft" | "programmatic-call"; email_draft_id: string | null; email_programmatic_call_template_id: string | null; send_retries: number; next_send_retry_at_millis: number | null; send_attempt_errors: { attempt_number: number; timestamp: string; external_message: string; external_details: Record; internal_message: string; internal_details: Record; }[] | null; status: "rendering"; simple_status: "in-progress"; is_paused: boolean; has_rendered: boolean; has_delivered: boolean; started_rendering_at_millis: number; } | { id: string; created_at_millis: number; updated_at_millis: number; tsx_source: string; theme_id: string | null; to: { type: "user-primary-email"; user_id: string; } | { type: "user-custom-emails"; user_id: string; emails: string[]; } | { type: "custom-emails"; emails: string[]; }; variables: Record; skip_deliverability_check: boolean; scheduled_at_millis: number; created_with: "draft" | "programmatic-call"; email_draft_id: string | null; email_programmatic_call_template_id: string | null; send_retries: number; next_send_retry_at_millis: number | null; send_attempt_errors: { attempt_number: number; timestamp: string; external_message: string; external_details: Record; internal_message: string; internal_details: Record; }[] | null; status: "render-error"; simple_status: "error"; is_paused: boolean; has_rendered: boolean; has_delivered: boolean; started_rendering_at_millis: number; rendered_at_millis: number; render_error: string; } | { id: string; created_at_millis: number; updated_at_millis: number; tsx_source: string; theme_id: string | null; to: { type: "user-primary-email"; user_id: string; } | { type: "user-custom-emails"; user_id: string; emails: string[]; } | { type: "custom-emails"; emails: string[]; }; variables: Record; skip_deliverability_check: boolean; scheduled_at_millis: number; created_with: "draft" | "programmatic-call"; email_draft_id: string | null; email_programmatic_call_template_id: string | null; send_retries: number; next_send_retry_at_millis: number | null; send_attempt_errors: { attempt_number: number; timestamp: string; external_message: string; external_details: Record; internal_message: string; internal_details: Record; }[] | null; status: "scheduled"; simple_status: "in-progress"; is_paused: boolean; has_rendered: boolean; has_delivered: boolean; started_rendering_at_millis: number; rendered_at_millis: number; subject: string; html: string | null; text: string | null; is_transactional: boolean; is_high_priority: boolean; notification_category_id: string | null; } | { id: string; created_at_millis: number; updated_at_millis: number; tsx_source: string; theme_id: string | null; to: { type: "user-primary-email"; user_id: string; } | { type: "user-custom-emails"; user_id: string; emails: string[]; } | { type: "custom-emails"; emails: string[]; }; variables: Record; skip_deliverability_check: boolean; scheduled_at_millis: number; created_with: "draft" | "programmatic-call"; email_draft_id: string | null; email_programmatic_call_template_id: string | null; send_retries: number; next_send_retry_at_millis: number | null; send_attempt_errors: { attempt_number: number; timestamp: string; external_message: string; external_details: Record; internal_message: string; internal_details: Record; }[] | null; status: "queued"; simple_status: "in-progress"; is_paused: boolean; has_rendered: boolean; has_delivered: boolean; started_rendering_at_millis: number; rendered_at_millis: number; subject: string; html: string | null; text: string | null; is_transactional: boolean; is_high_priority: boolean; notification_category_id: string | null; } | { id: string; created_at_millis: number; updated_at_millis: number; tsx_source: string; theme_id: string | null; to: { type: "user-primary-email"; user_id: string; } | { type: "user-custom-emails"; user_id: string; emails: string[]; } | { type: "custom-emails"; emails: string[]; }; variables: Record; skip_deliverability_check: boolean; scheduled_at_millis: number; created_with: "draft" | "programmatic-call"; email_draft_id: string | null; email_programmatic_call_template_id: string | null; send_retries: number; next_send_retry_at_millis: number | null; send_attempt_errors: { attempt_number: number; timestamp: string; external_message: string; external_details: Record; internal_message: string; internal_details: Record; }[] | null; status: "sending"; simple_status: "in-progress"; is_paused: boolean; has_rendered: boolean; has_delivered: boolean; started_rendering_at_millis: number; rendered_at_millis: number; subject: string; html: string | null; text: string | null; is_transactional: boolean; is_high_priority: boolean; notification_category_id: string | null; started_sending_at_millis: number; } | { id: string; created_at_millis: number; updated_at_millis: number; tsx_source: string; theme_id: string | null; to: { type: "user-primary-email"; user_id: string; } | { type: "user-custom-emails"; user_id: string; emails: string[]; } | { type: "custom-emails"; emails: string[]; }; variables: Record; skip_deliverability_check: boolean; scheduled_at_millis: number; created_with: "draft" | "programmatic-call"; email_draft_id: string | null; email_programmatic_call_template_id: string | null; send_retries: number; next_send_retry_at_millis: number | null; send_attempt_errors: { attempt_number: number; timestamp: string; external_message: string; external_details: Record; internal_message: string; internal_details: Record; }[] | null; status: "server-error"; simple_status: "error"; is_paused: boolean; has_rendered: boolean; has_delivered: boolean; started_rendering_at_millis: number; rendered_at_millis: number; subject: string; html: string | null; text: string | null; is_transactional: boolean; is_high_priority: boolean; notification_category_id: string | null; started_sending_at_millis: number; error_at_millis: number; server_error: string; } | { started_rendering_at_millis?: number | undefined; rendered_at_millis?: number | undefined; subject?: string | undefined; html?: string | null | undefined; text?: string | null | undefined; is_transactional?: boolean | undefined; is_high_priority?: boolean | undefined; notification_category_id?: string | null | undefined; started_sending_at_millis?: number | undefined; id: string; created_at_millis: number; updated_at_millis: number; tsx_source: string; theme_id: string | null; to: { type: "user-primary-email"; user_id: string; } | { type: "user-custom-emails"; user_id: string; emails: string[]; } | { type: "custom-emails"; emails: string[]; }; variables: Record; skip_deliverability_check: boolean; scheduled_at_millis: number; created_with: "draft" | "programmatic-call"; email_draft_id: string | null; email_programmatic_call_template_id: string | null; send_retries: number; next_send_retry_at_millis: number | null; send_attempt_errors: { attempt_number: number; timestamp: string; external_message: string; external_details: Record; internal_message: string; internal_details: Record; }[] | null; status: "skipped"; simple_status: "ok"; is_paused: boolean; has_rendered: boolean; has_delivered: boolean; skipped_at_millis: number; skipped_reason: string; skipped_details: Record; } | { id: string; created_at_millis: number; updated_at_millis: number; tsx_source: string; theme_id: string | null; to: { type: "user-primary-email"; user_id: string; } | { type: "user-custom-emails"; user_id: string; emails: string[]; } | { type: "custom-emails"; emails: string[]; }; variables: Record; skip_deliverability_check: boolean; scheduled_at_millis: number; created_with: "draft" | "programmatic-call"; email_draft_id: string | null; email_programmatic_call_template_id: string | null; send_retries: number; next_send_retry_at_millis: number | null; send_attempt_errors: { attempt_number: number; timestamp: string; external_message: string; external_details: Record; internal_message: string; internal_details: Record; }[] | null; status: "bounced"; simple_status: "error"; is_paused: boolean; has_rendered: boolean; has_delivered: boolean; started_rendering_at_millis: number; rendered_at_millis: number; subject: string; html: string | null; text: string | null; is_transactional: boolean; is_high_priority: boolean; notification_category_id: string | null; started_sending_at_millis: number; bounced_at_millis: number; } | { id: string; created_at_millis: number; updated_at_millis: number; tsx_source: string; theme_id: string | null; to: { type: "user-primary-email"; user_id: string; } | { type: "user-custom-emails"; user_id: string; emails: string[]; } | { type: "custom-emails"; emails: string[]; }; variables: Record; skip_deliverability_check: boolean; scheduled_at_millis: number; created_with: "draft" | "programmatic-call"; email_draft_id: string | null; email_programmatic_call_template_id: string | null; send_retries: number; next_send_retry_at_millis: number | null; send_attempt_errors: { attempt_number: number; timestamp: string; external_message: string; external_details: Record; internal_message: string; internal_details: Record; }[] | null; status: "delivery-delayed"; simple_status: "ok"; is_paused: boolean; has_rendered: boolean; has_delivered: boolean; started_rendering_at_millis: number; rendered_at_millis: number; subject: string; html: string | null; text: string | null; is_transactional: boolean; is_high_priority: boolean; notification_category_id: string | null; started_sending_at_millis: number; delivery_delayed_at_millis: number; } | { id: string; created_at_millis: number; updated_at_millis: number; tsx_source: string; theme_id: string | null; to: { type: "user-primary-email"; user_id: string; } | { type: "user-custom-emails"; user_id: string; emails: string[]; } | { type: "custom-emails"; emails: string[]; }; variables: Record; skip_deliverability_check: boolean; scheduled_at_millis: number; created_with: "draft" | "programmatic-call"; email_draft_id: string | null; email_programmatic_call_template_id: string | null; send_retries: number; next_send_retry_at_millis: number | null; send_attempt_errors: { attempt_number: number; timestamp: string; external_message: string; external_details: Record; internal_message: string; internal_details: Record; }[] | null; status: "sent"; simple_status: "ok"; is_paused: boolean; has_rendered: boolean; has_delivered: boolean; started_rendering_at_millis: number; rendered_at_millis: number; subject: string; html: string | null; text: string | null; is_transactional: boolean; is_high_priority: boolean; notification_category_id: string | null; started_sending_at_millis: number; delivered_at_millis: number; can_have_delivery_info: boolean; } | { id: string; created_at_millis: number; updated_at_millis: number; tsx_source: string; theme_id: string | null; to: { type: "user-primary-email"; user_id: string; } | { type: "user-custom-emails"; user_id: string; emails: string[]; } | { type: "custom-emails"; emails: string[]; }; variables: Record; skip_deliverability_check: boolean; scheduled_at_millis: number; created_with: "draft" | "programmatic-call"; email_draft_id: string | null; email_programmatic_call_template_id: string | null; send_retries: number; next_send_retry_at_millis: number | null; send_attempt_errors: { attempt_number: number; timestamp: string; external_message: string; external_details: Record; internal_message: string; internal_details: Record; }[] | null; status: "opened"; simple_status: "ok"; is_paused: boolean; has_rendered: boolean; has_delivered: boolean; started_rendering_at_millis: number; rendered_at_millis: number; subject: string; html: string | null; text: string | null; is_transactional: boolean; is_high_priority: boolean; notification_category_id: string | null; started_sending_at_millis: number; delivered_at_millis: number; can_have_delivery_info: boolean; opened_at_millis: number; } | { id: string; created_at_millis: number; updated_at_millis: number; tsx_source: string; theme_id: string | null; to: { type: "user-primary-email"; user_id: string; } | { type: "user-custom-emails"; user_id: string; emails: string[]; } | { type: "custom-emails"; emails: string[]; }; variables: Record; skip_deliverability_check: boolean; scheduled_at_millis: number; created_with: "draft" | "programmatic-call"; email_draft_id: string | null; email_programmatic_call_template_id: string | null; send_retries: number; next_send_retry_at_millis: number | null; send_attempt_errors: { attempt_number: number; timestamp: string; external_message: string; external_details: Record; internal_message: string; internal_details: Record; }[] | null; status: "clicked"; simple_status: "ok"; is_paused: boolean; has_rendered: boolean; has_delivered: boolean; started_rendering_at_millis: number; rendered_at_millis: number; subject: string; html: string | null; text: string | null; is_transactional: boolean; is_high_priority: boolean; notification_category_id: string | null; started_sending_at_millis: number; delivered_at_millis: number; can_have_delivery_info: boolean; clicked_at_millis: number; } | { id: string; created_at_millis: number; updated_at_millis: number; tsx_source: string; theme_id: string | null; to: { type: "user-primary-email"; user_id: string; } | { type: "user-custom-emails"; user_id: string; emails: string[]; } | { type: "custom-emails"; emails: string[]; }; variables: Record; skip_deliverability_check: boolean; scheduled_at_millis: number; created_with: "draft" | "programmatic-call"; email_draft_id: string | null; email_programmatic_call_template_id: string | null; send_retries: number; next_send_retry_at_millis: number | null; send_attempt_errors: { attempt_number: number; timestamp: string; external_message: string; external_details: Record; internal_message: string; internal_details: Record; }[] | null; status: "marked-as-spam"; simple_status: "ok"; is_paused: boolean; has_rendered: boolean; has_delivered: boolean; started_rendering_at_millis: number; rendered_at_millis: number; subject: string; html: string | null; text: string | null; is_transactional: boolean; is_high_priority: boolean; notification_category_id: string | null; started_sending_at_millis: number; delivered_at_millis: number; can_have_delivery_info: boolean; marked_as_spam_at_millis: number; }, yup.AnyObject, undefined, "">; declare const emailOutboxUpdateSchema: yup.ObjectSchema<{ tsx_source: string | undefined; theme_id: string | null | undefined; to: { type: "user-primary-email"; user_id: string; } | { type: "user-custom-emails"; user_id: string; emails: string[]; } | { type: "custom-emails"; emails: string[]; } | undefined; variables: Record | undefined; skip_deliverability_check: boolean | undefined; scheduled_at_millis: number | undefined; is_paused: boolean | undefined; cancel: boolean | undefined; }, yup.AnyObject, { tsx_source: undefined; theme_id: undefined; to: undefined; variables: undefined; skip_deliverability_check: undefined; scheduled_at_millis: undefined; is_paused: undefined; cancel: undefined; }, "">; declare const emailOutboxCrud: CrudSchemaFromOptions<{ serverReadSchema: yup.MixedSchema<{ id: string; created_at_millis: number; updated_at_millis: number; tsx_source: string; theme_id: string | null; to: { type: "user-primary-email"; user_id: string; } | { type: "user-custom-emails"; user_id: string; emails: string[]; } | { type: "custom-emails"; emails: string[]; }; variables: Record; skip_deliverability_check: boolean; scheduled_at_millis: number; created_with: "draft" | "programmatic-call"; email_draft_id: string | null; email_programmatic_call_template_id: string | null; send_retries: number; next_send_retry_at_millis: number | null; send_attempt_errors: { attempt_number: number; timestamp: string; external_message: string; external_details: Record; internal_message: string; internal_details: Record; }[] | null; status: "paused"; simple_status: "in-progress"; is_paused: boolean; has_rendered: boolean; has_delivered: boolean; } | { id: string; created_at_millis: number; updated_at_millis: number; tsx_source: string; theme_id: string | null; to: { type: "user-primary-email"; user_id: string; } | { type: "user-custom-emails"; user_id: string; emails: string[]; } | { type: "custom-emails"; emails: string[]; }; variables: Record; skip_deliverability_check: boolean; scheduled_at_millis: number; created_with: "draft" | "programmatic-call"; email_draft_id: string | null; email_programmatic_call_template_id: string | null; send_retries: number; next_send_retry_at_millis: number | null; send_attempt_errors: { attempt_number: number; timestamp: string; external_message: string; external_details: Record; internal_message: string; internal_details: Record; }[] | null; status: "preparing"; simple_status: "in-progress"; is_paused: boolean; has_rendered: boolean; has_delivered: boolean; } | { id: string; created_at_millis: number; updated_at_millis: number; tsx_source: string; theme_id: string | null; to: { type: "user-primary-email"; user_id: string; } | { type: "user-custom-emails"; user_id: string; emails: string[]; } | { type: "custom-emails"; emails: string[]; }; variables: Record; skip_deliverability_check: boolean; scheduled_at_millis: number; created_with: "draft" | "programmatic-call"; email_draft_id: string | null; email_programmatic_call_template_id: string | null; send_retries: number; next_send_retry_at_millis: number | null; send_attempt_errors: { attempt_number: number; timestamp: string; external_message: string; external_details: Record; internal_message: string; internal_details: Record; }[] | null; status: "rendering"; simple_status: "in-progress"; is_paused: boolean; has_rendered: boolean; has_delivered: boolean; started_rendering_at_millis: number; } | { id: string; created_at_millis: number; updated_at_millis: number; tsx_source: string; theme_id: string | null; to: { type: "user-primary-email"; user_id: string; } | { type: "user-custom-emails"; user_id: string; emails: string[]; } | { type: "custom-emails"; emails: string[]; }; variables: Record; skip_deliverability_check: boolean; scheduled_at_millis: number; created_with: "draft" | "programmatic-call"; email_draft_id: string | null; email_programmatic_call_template_id: string | null; send_retries: number; next_send_retry_at_millis: number | null; send_attempt_errors: { attempt_number: number; timestamp: string; external_message: string; external_details: Record; internal_message: string; internal_details: Record; }[] | null; status: "render-error"; simple_status: "error"; is_paused: boolean; has_rendered: boolean; has_delivered: boolean; started_rendering_at_millis: number; rendered_at_millis: number; render_error: string; } | { id: string; created_at_millis: number; updated_at_millis: number; tsx_source: string; theme_id: string | null; to: { type: "user-primary-email"; user_id: string; } | { type: "user-custom-emails"; user_id: string; emails: string[]; } | { type: "custom-emails"; emails: string[]; }; variables: Record; skip_deliverability_check: boolean; scheduled_at_millis: number; created_with: "draft" | "programmatic-call"; email_draft_id: string | null; email_programmatic_call_template_id: string | null; send_retries: number; next_send_retry_at_millis: number | null; send_attempt_errors: { attempt_number: number; timestamp: string; external_message: string; external_details: Record; internal_message: string; internal_details: Record; }[] | null; status: "scheduled"; simple_status: "in-progress"; is_paused: boolean; has_rendered: boolean; has_delivered: boolean; started_rendering_at_millis: number; rendered_at_millis: number; subject: string; html: string | null; text: string | null; is_transactional: boolean; is_high_priority: boolean; notification_category_id: string | null; } | { id: string; created_at_millis: number; updated_at_millis: number; tsx_source: string; theme_id: string | null; to: { type: "user-primary-email"; user_id: string; } | { type: "user-custom-emails"; user_id: string; emails: string[]; } | { type: "custom-emails"; emails: string[]; }; variables: Record; skip_deliverability_check: boolean; scheduled_at_millis: number; created_with: "draft" | "programmatic-call"; email_draft_id: string | null; email_programmatic_call_template_id: string | null; send_retries: number; next_send_retry_at_millis: number | null; send_attempt_errors: { attempt_number: number; timestamp: string; external_message: string; external_details: Record; internal_message: string; internal_details: Record; }[] | null; status: "queued"; simple_status: "in-progress"; is_paused: boolean; has_rendered: boolean; has_delivered: boolean; started_rendering_at_millis: number; rendered_at_millis: number; subject: string; html: string | null; text: string | null; is_transactional: boolean; is_high_priority: boolean; notification_category_id: string | null; } | { id: string; created_at_millis: number; updated_at_millis: number; tsx_source: string; theme_id: string | null; to: { type: "user-primary-email"; user_id: string; } | { type: "user-custom-emails"; user_id: string; emails: string[]; } | { type: "custom-emails"; emails: string[]; }; variables: Record; skip_deliverability_check: boolean; scheduled_at_millis: number; created_with: "draft" | "programmatic-call"; email_draft_id: string | null; email_programmatic_call_template_id: string | null; send_retries: number; next_send_retry_at_millis: number | null; send_attempt_errors: { attempt_number: number; timestamp: string; external_message: string; external_details: Record; internal_message: string; internal_details: Record; }[] | null; status: "sending"; simple_status: "in-progress"; is_paused: boolean; has_rendered: boolean; has_delivered: boolean; started_rendering_at_millis: number; rendered_at_millis: number; subject: string; html: string | null; text: string | null; is_transactional: boolean; is_high_priority: boolean; notification_category_id: string | null; started_sending_at_millis: number; } | { id: string; created_at_millis: number; updated_at_millis: number; tsx_source: string; theme_id: string | null; to: { type: "user-primary-email"; user_id: string; } | { type: "user-custom-emails"; user_id: string; emails: string[]; } | { type: "custom-emails"; emails: string[]; }; variables: Record; skip_deliverability_check: boolean; scheduled_at_millis: number; created_with: "draft" | "programmatic-call"; email_draft_id: string | null; email_programmatic_call_template_id: string | null; send_retries: number; next_send_retry_at_millis: number | null; send_attempt_errors: { attempt_number: number; timestamp: string; external_message: string; external_details: Record; internal_message: string; internal_details: Record; }[] | null; status: "server-error"; simple_status: "error"; is_paused: boolean; has_rendered: boolean; has_delivered: boolean; started_rendering_at_millis: number; rendered_at_millis: number; subject: string; html: string | null; text: string | null; is_transactional: boolean; is_high_priority: boolean; notification_category_id: string | null; started_sending_at_millis: number; error_at_millis: number; server_error: string; } | { started_rendering_at_millis?: number | undefined; rendered_at_millis?: number | undefined; subject?: string | undefined; html?: string | null | undefined; text?: string | null | undefined; is_transactional?: boolean | undefined; is_high_priority?: boolean | undefined; notification_category_id?: string | null | undefined; started_sending_at_millis?: number | undefined; id: string; created_at_millis: number; updated_at_millis: number; tsx_source: string; theme_id: string | null; to: { type: "user-primary-email"; user_id: string; } | { type: "user-custom-emails"; user_id: string; emails: string[]; } | { type: "custom-emails"; emails: string[]; }; variables: Record; skip_deliverability_check: boolean; scheduled_at_millis: number; created_with: "draft" | "programmatic-call"; email_draft_id: string | null; email_programmatic_call_template_id: string | null; send_retries: number; next_send_retry_at_millis: number | null; send_attempt_errors: { attempt_number: number; timestamp: string; external_message: string; external_details: Record; internal_message: string; internal_details: Record; }[] | null; status: "skipped"; simple_status: "ok"; is_paused: boolean; has_rendered: boolean; has_delivered: boolean; skipped_at_millis: number; skipped_reason: string; skipped_details: Record; } | { id: string; created_at_millis: number; updated_at_millis: number; tsx_source: string; theme_id: string | null; to: { type: "user-primary-email"; user_id: string; } | { type: "user-custom-emails"; user_id: string; emails: string[]; } | { type: "custom-emails"; emails: string[]; }; variables: Record; skip_deliverability_check: boolean; scheduled_at_millis: number; created_with: "draft" | "programmatic-call"; email_draft_id: string | null; email_programmatic_call_template_id: string | null; send_retries: number; next_send_retry_at_millis: number | null; send_attempt_errors: { attempt_number: number; timestamp: string; external_message: string; external_details: Record; internal_message: string; internal_details: Record; }[] | null; status: "bounced"; simple_status: "error"; is_paused: boolean; has_rendered: boolean; has_delivered: boolean; started_rendering_at_millis: number; rendered_at_millis: number; subject: string; html: string | null; text: string | null; is_transactional: boolean; is_high_priority: boolean; notification_category_id: string | null; started_sending_at_millis: number; bounced_at_millis: number; } | { id: string; created_at_millis: number; updated_at_millis: number; tsx_source: string; theme_id: string | null; to: { type: "user-primary-email"; user_id: string; } | { type: "user-custom-emails"; user_id: string; emails: string[]; } | { type: "custom-emails"; emails: string[]; }; variables: Record; skip_deliverability_check: boolean; scheduled_at_millis: number; created_with: "draft" | "programmatic-call"; email_draft_id: string | null; email_programmatic_call_template_id: string | null; send_retries: number; next_send_retry_at_millis: number | null; send_attempt_errors: { attempt_number: number; timestamp: string; external_message: string; external_details: Record; internal_message: string; internal_details: Record; }[] | null; status: "delivery-delayed"; simple_status: "ok"; is_paused: boolean; has_rendered: boolean; has_delivered: boolean; started_rendering_at_millis: number; rendered_at_millis: number; subject: string; html: string | null; text: string | null; is_transactional: boolean; is_high_priority: boolean; notification_category_id: string | null; started_sending_at_millis: number; delivery_delayed_at_millis: number; } | { id: string; created_at_millis: number; updated_at_millis: number; tsx_source: string; theme_id: string | null; to: { type: "user-primary-email"; user_id: string; } | { type: "user-custom-emails"; user_id: string; emails: string[]; } | { type: "custom-emails"; emails: string[]; }; variables: Record; skip_deliverability_check: boolean; scheduled_at_millis: number; created_with: "draft" | "programmatic-call"; email_draft_id: string | null; email_programmatic_call_template_id: string | null; send_retries: number; next_send_retry_at_millis: number | null; send_attempt_errors: { attempt_number: number; timestamp: string; external_message: string; external_details: Record; internal_message: string; internal_details: Record; }[] | null; status: "sent"; simple_status: "ok"; is_paused: boolean; has_rendered: boolean; has_delivered: boolean; started_rendering_at_millis: number; rendered_at_millis: number; subject: string; html: string | null; text: string | null; is_transactional: boolean; is_high_priority: boolean; notification_category_id: string | null; started_sending_at_millis: number; delivered_at_millis: number; can_have_delivery_info: boolean; } | { id: string; created_at_millis: number; updated_at_millis: number; tsx_source: string; theme_id: string | null; to: { type: "user-primary-email"; user_id: string; } | { type: "user-custom-emails"; user_id: string; emails: string[]; } | { type: "custom-emails"; emails: string[]; }; variables: Record; skip_deliverability_check: boolean; scheduled_at_millis: number; created_with: "draft" | "programmatic-call"; email_draft_id: string | null; email_programmatic_call_template_id: string | null; send_retries: number; next_send_retry_at_millis: number | null; send_attempt_errors: { attempt_number: number; timestamp: string; external_message: string; external_details: Record; internal_message: string; internal_details: Record; }[] | null; status: "opened"; simple_status: "ok"; is_paused: boolean; has_rendered: boolean; has_delivered: boolean; started_rendering_at_millis: number; rendered_at_millis: number; subject: string; html: string | null; text: string | null; is_transactional: boolean; is_high_priority: boolean; notification_category_id: string | null; started_sending_at_millis: number; delivered_at_millis: number; can_have_delivery_info: boolean; opened_at_millis: number; } | { id: string; created_at_millis: number; updated_at_millis: number; tsx_source: string; theme_id: string | null; to: { type: "user-primary-email"; user_id: string; } | { type: "user-custom-emails"; user_id: string; emails: string[]; } | { type: "custom-emails"; emails: string[]; }; variables: Record; skip_deliverability_check: boolean; scheduled_at_millis: number; created_with: "draft" | "programmatic-call"; email_draft_id: string | null; email_programmatic_call_template_id: string | null; send_retries: number; next_send_retry_at_millis: number | null; send_attempt_errors: { attempt_number: number; timestamp: string; external_message: string; external_details: Record; internal_message: string; internal_details: Record; }[] | null; status: "clicked"; simple_status: "ok"; is_paused: boolean; has_rendered: boolean; has_delivered: boolean; started_rendering_at_millis: number; rendered_at_millis: number; subject: string; html: string | null; text: string | null; is_transactional: boolean; is_high_priority: boolean; notification_category_id: string | null; started_sending_at_millis: number; delivered_at_millis: number; can_have_delivery_info: boolean; clicked_at_millis: number; } | { id: string; created_at_millis: number; updated_at_millis: number; tsx_source: string; theme_id: string | null; to: { type: "user-primary-email"; user_id: string; } | { type: "user-custom-emails"; user_id: string; emails: string[]; } | { type: "custom-emails"; emails: string[]; }; variables: Record; skip_deliverability_check: boolean; scheduled_at_millis: number; created_with: "draft" | "programmatic-call"; email_draft_id: string | null; email_programmatic_call_template_id: string | null; send_retries: number; next_send_retry_at_millis: number | null; send_attempt_errors: { attempt_number: number; timestamp: string; external_message: string; external_details: Record; internal_message: string; internal_details: Record; }[] | null; status: "marked-as-spam"; simple_status: "ok"; is_paused: boolean; has_rendered: boolean; has_delivered: boolean; started_rendering_at_millis: number; rendered_at_millis: number; subject: string; html: string | null; text: string | null; is_transactional: boolean; is_high_priority: boolean; notification_category_id: string | null; started_sending_at_millis: number; delivered_at_millis: number; can_have_delivery_info: boolean; marked_as_spam_at_millis: number; }, yup.AnyObject, undefined, "">; serverUpdateSchema: yup.ObjectSchema<{ tsx_source: string | undefined; theme_id: string | null | undefined; to: { type: "user-primary-email"; user_id: string; } | { type: "user-custom-emails"; user_id: string; emails: string[]; } | { type: "custom-emails"; emails: string[]; } | undefined; variables: Record | undefined; skip_deliverability_check: boolean | undefined; scheduled_at_millis: number | undefined; is_paused: boolean | undefined; cancel: boolean | undefined; }, yup.AnyObject, { tsx_source: undefined; theme_id: undefined; to: undefined; variables: undefined; skip_deliverability_check: undefined; scheduled_at_millis: undefined; is_paused: undefined; cancel: undefined; }, "">; docs: { serverRead: { tags: string[]; summary: string; description: string; }; serverUpdate: { tags: string[]; summary: string; description: string; }; serverList: { tags: string[]; summary: string; description: string; }; }; }>; type EmailOutboxCrud = CrudTypeOf; //#endregion export { EmailOutboxCrud, emailOutboxCrud, emailOutboxReadSchema, emailOutboxUpdateSchema }; //# sourceMappingURL=email-outbox.d.ts.map