import * as S from "@distilled.cloud/core/schema"; import * as API from "@distilled.cloud/core/api"; import { type CloudflareOpError, type CloudflareOpContext } from "../protocol.ts"; export type { CloudflareOpError, CloudflareOpContext }; export interface GetDmarcReportRequest { /** Identifier. */ zoneId: string; } export declare const GetDmarcReportRequest: S.Schema; export type DmarcReportsGetResponseApprovedSourcesItemIpsList = Array; export declare const DmarcReportsGetResponseApprovedSourcesItemIpsList: S.Schema; export interface DmarcReportsGetResponseApprovedSourcesItem { /** Deprecated, use created_at */ created?: string | null; /** Creation timestamp */ createdAt?: string | null; /** The source domain */ domain?: string | null; /** Resolved IP addresses from SPF */ ips?: DmarcReportsGetResponseApprovedSourcesItemIpsList | null; /** Deprecated, use modified_at */ modified?: string | null; /** Last modification timestamp */ modifiedAt?: string | null; /** Source name (typically same as domain) */ name?: string | null; /** URL-friendly identifier */ slug?: string | null; /** Source UUID */ tag?: string | null; } export declare const DmarcReportsGetResponseApprovedSourcesItem: S.Schema; export type DmarcReportsGetResponseApprovedSourcesList = Array; export declare const DmarcReportsGetResponseApprovedSourcesList: S.Schema; export interface DmarcReportsGetResponseRecordsBimiRecordsItem { /** DNS record ID */ id?: string | null; /** Record content */ content?: string | null; /** DNS record name */ name?: string | null; /** Time to live in seconds */ ttl?: number | null; /** Record type */ type?: string | null; } export declare const DmarcReportsGetResponseRecordsBimiRecordsItem: S.Schema; export type DmarcReportsGetResponseRecordsBimiRecordsList = Array; export declare const DmarcReportsGetResponseRecordsBimiRecordsList: S.Schema; export type DmarcReportsGetResponseRecordsCnameDkimRecordsItem = DmarcReportsGetResponseRecordsBimiRecordsItem; export declare const DmarcReportsGetResponseRecordsCnameDkimRecordsItem: S.Schema; export type DmarcReportsGetResponseRecordsCnameDkimRecordsList = Array; export declare const DmarcReportsGetResponseRecordsCnameDkimRecordsList: S.Schema; export type DmarcReportsGetResponseRecordsCnameDmarcRecordsItem = DmarcReportsGetResponseRecordsBimiRecordsItem; export declare const DmarcReportsGetResponseRecordsCnameDmarcRecordsItem: S.Schema; export type DmarcReportsGetResponseRecordsCnameDmarcRecordsList = Array; export declare const DmarcReportsGetResponseRecordsCnameDmarcRecordsList: S.Schema; export type DmarcReportsGetResponseRecordsCnameSpfRecordsItem = DmarcReportsGetResponseRecordsBimiRecordsItem; export declare const DmarcReportsGetResponseRecordsCnameSpfRecordsItem: S.Schema; export type DmarcReportsGetResponseRecordsCnameSpfRecordsList = Array; export declare const DmarcReportsGetResponseRecordsCnameSpfRecordsList: S.Schema; export type DmarcReportsGetResponseRecordsDkimRecordsItem = DmarcReportsGetResponseRecordsBimiRecordsItem; export declare const DmarcReportsGetResponseRecordsDkimRecordsItem: S.Schema; export type DmarcReportsGetResponseRecordsDkimRecordsList = Array; export declare const DmarcReportsGetResponseRecordsDkimRecordsList: S.Schema; export type DmarcReportsGetResponseRecordsDmarcRecordsItem = DmarcReportsGetResponseRecordsBimiRecordsItem; export declare const DmarcReportsGetResponseRecordsDmarcRecordsItem: S.Schema; export type DmarcReportsGetResponseRecordsDmarcRecordsList = Array; export declare const DmarcReportsGetResponseRecordsDmarcRecordsList: S.Schema; export type DmarcReportsGetResponseRecordsSpfRecordsItem = DmarcReportsGetResponseRecordsBimiRecordsItem; export declare const DmarcReportsGetResponseRecordsSpfRecordsItem: S.Schema; export type DmarcReportsGetResponseRecordsSpfRecordsList = Array; export declare const DmarcReportsGetResponseRecordsSpfRecordsList: S.Schema; export interface DmarcReportsGetResponseRecords { /** BIMI TXT records */ bimiRecords?: DmarcReportsGetResponseRecordsBimiRecordsList | null; /** CNAME records for DKIM */ cnameDkimRecords?: DmarcReportsGetResponseRecordsCnameDkimRecordsList | null; /** CNAME records at _dmarc (problematic) */ cnameDmarcRecords?: DmarcReportsGetResponseRecordsCnameDmarcRecordsList | null; /** CNAME records for SPF */ cnameSpfRecords?: DmarcReportsGetResponseRecordsCnameSpfRecordsList | null; /** DKIM TXT records */ dkimRecords?: DmarcReportsGetResponseRecordsDkimRecordsList | null; /** DMARC TXT records */ dmarcRecords?: DmarcReportsGetResponseRecordsDmarcRecordsList | null; /** SPF TXT records */ spfRecords?: DmarcReportsGetResponseRecordsSpfRecordsList | null; } export declare const DmarcReportsGetResponseRecords: S.Schema; export type DmarcReportsGetResponseStatus = "missing-dmarc-report" | "multiple-dmarc-reports" | "missing-dmarc-rua" | "cname-on-dmarc-record"; export declare const DmarcReportsGetResponseStatus: any; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface GetDmarcReportResponse { /** List of approved sending sources (omitted when empty) */ approvedSources?: DmarcReportsGetResponseApprovedSourcesList | null; /** Deprecated, use created_at */ created?: string | null; /** Creation timestamp */ createdAt?: string | null; /** Whether DMARC reports are enabled */ enabled?: boolean | null; /** Deprecated, use modified_at */ modified?: string | null; /** Last modification timestamp */ modifiedAt?: string | null; /** Live DNS records for the zone, grouped by type */ records?: DmarcReportsGetResponseRecords | null; /** Prefix for DMARC RUA addresses (32-char hex string) */ ruaPrefix?: string | null; /** Whether to skip the setup wizard */ skipWizard?: boolean | null; /** DMARC configuration status */ status?: DmarcReportsGetResponseStatus | null; /** Use `zone_id` instead */ tag?: string | null; /** Zone identifier */ zoneId?: string | null; } export declare const GetDmarcReportResponse: S.Schema; export interface GetSpfInspectRequest { /** Identifier. */ zoneId: string; /** DNS record ID (rec_tag) to inspect */ id: string; } export declare const GetSpfInspectRequest: S.Schema; export type SpfInspectGetResponseComponentsList = Array; export declare const SpfInspectGetResponseComponentsList: S.Schema; export interface SpfInspectGetResponseErrorsItem { /** Error code. Known values: */ code: string; /** Domain where the error occurred */ domain: string; /** Human-readable error message */ message: string; /** Additional error-specific details (optional). */ details?: string | null; } export declare const SpfInspectGetResponseErrorsItem: S.Schema; export type SpfInspectGetResponseErrorsList = Array; export declare const SpfInspectGetResponseErrorsList: S.Schema; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface GetSpfInspectResponse { /** Parsed SPF components (mechanisms) */ components: SpfInspectGetResponseComponentsList; /** Domain being inspected */ domain: string; /** Raw SPF record content */ record: string; /** Total number of DNS lookups performed across all includes */ totalLookups: number; /** All errors encountered during inspection, collected from the entire tree. */ errors?: SpfInspectGetResponseErrorsList | null; } export declare const GetSpfInspectResponse: S.Schema; export interface PatchDmarcReportRequest { /** Identifier. */ zoneId: string; /** Enable or disable DMARC reports for this zone */ enabled?: boolean; /** Skip the DMARC setup wizard */ skipWizard?: boolean; } export declare const PatchDmarcReportRequest: S.Schema; export type DmarcReportsEditResponseApprovedSourcesItemIpsList = Array; export declare const DmarcReportsEditResponseApprovedSourcesItemIpsList: S.Schema; export interface DmarcReportsEditResponseApprovedSourcesItem { /** Deprecated, use created_at */ created?: string | null; /** Creation timestamp */ createdAt?: string | null; /** The source domain */ domain?: string | null; /** Resolved IP addresses from SPF */ ips?: DmarcReportsEditResponseApprovedSourcesItemIpsList | null; /** Deprecated, use modified_at */ modified?: string | null; /** Last modification timestamp */ modifiedAt?: string | null; /** Source name (typically same as domain) */ name?: string | null; /** URL-friendly identifier */ slug?: string | null; /** Source UUID */ tag?: string | null; } export declare const DmarcReportsEditResponseApprovedSourcesItem: S.Schema; export type DmarcReportsEditResponseApprovedSourcesList = Array; export declare const DmarcReportsEditResponseApprovedSourcesList: S.Schema; export type DmarcReportsEditResponseRecordsBimiRecordsItem = DmarcReportsGetResponseRecordsBimiRecordsItem; export declare const DmarcReportsEditResponseRecordsBimiRecordsItem: S.Schema; export type DmarcReportsEditResponseRecordsBimiRecordsList = Array; export declare const DmarcReportsEditResponseRecordsBimiRecordsList: S.Schema; export type DmarcReportsEditResponseRecordsCnameDkimRecordsItem = DmarcReportsGetResponseRecordsBimiRecordsItem; export declare const DmarcReportsEditResponseRecordsCnameDkimRecordsItem: S.Schema; export type DmarcReportsEditResponseRecordsCnameDkimRecordsList = Array; export declare const DmarcReportsEditResponseRecordsCnameDkimRecordsList: S.Schema; export type DmarcReportsEditResponseRecordsCnameDmarcRecordsItem = DmarcReportsGetResponseRecordsBimiRecordsItem; export declare const DmarcReportsEditResponseRecordsCnameDmarcRecordsItem: S.Schema; export type DmarcReportsEditResponseRecordsCnameDmarcRecordsList = Array; export declare const DmarcReportsEditResponseRecordsCnameDmarcRecordsList: S.Schema; export type DmarcReportsEditResponseRecordsCnameSpfRecordsItem = DmarcReportsGetResponseRecordsBimiRecordsItem; export declare const DmarcReportsEditResponseRecordsCnameSpfRecordsItem: S.Schema; export type DmarcReportsEditResponseRecordsCnameSpfRecordsList = Array; export declare const DmarcReportsEditResponseRecordsCnameSpfRecordsList: S.Schema; export type DmarcReportsEditResponseRecordsDkimRecordsItem = DmarcReportsGetResponseRecordsBimiRecordsItem; export declare const DmarcReportsEditResponseRecordsDkimRecordsItem: S.Schema; export type DmarcReportsEditResponseRecordsDkimRecordsList = Array; export declare const DmarcReportsEditResponseRecordsDkimRecordsList: S.Schema; export type DmarcReportsEditResponseRecordsDmarcRecordsItem = DmarcReportsGetResponseRecordsBimiRecordsItem; export declare const DmarcReportsEditResponseRecordsDmarcRecordsItem: S.Schema; export type DmarcReportsEditResponseRecordsDmarcRecordsList = Array; export declare const DmarcReportsEditResponseRecordsDmarcRecordsList: S.Schema; export type DmarcReportsEditResponseRecordsSpfRecordsItem = DmarcReportsGetResponseRecordsBimiRecordsItem; export declare const DmarcReportsEditResponseRecordsSpfRecordsItem: S.Schema; export type DmarcReportsEditResponseRecordsSpfRecordsList = Array; export declare const DmarcReportsEditResponseRecordsSpfRecordsList: S.Schema; export interface DmarcReportsEditResponseRecords { /** BIMI TXT records */ bimiRecords?: DmarcReportsEditResponseRecordsBimiRecordsList | null; /** CNAME records for DKIM */ cnameDkimRecords?: DmarcReportsEditResponseRecordsCnameDkimRecordsList | null; /** CNAME records at _dmarc (problematic) */ cnameDmarcRecords?: DmarcReportsEditResponseRecordsCnameDmarcRecordsList | null; /** CNAME records for SPF */ cnameSpfRecords?: DmarcReportsEditResponseRecordsCnameSpfRecordsList | null; /** DKIM TXT records */ dkimRecords?: DmarcReportsEditResponseRecordsDkimRecordsList | null; /** DMARC TXT records */ dmarcRecords?: DmarcReportsEditResponseRecordsDmarcRecordsList | null; /** SPF TXT records */ spfRecords?: DmarcReportsEditResponseRecordsSpfRecordsList | null; } export declare const DmarcReportsEditResponseRecords: S.Schema; export type DmarcReportsEditResponseStatus = "missing-dmarc-report" | "multiple-dmarc-reports" | "missing-dmarc-rua" | "cname-on-dmarc-record"; export declare const DmarcReportsEditResponseStatus: any; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface PatchDmarcReportResponse { /** List of approved sending sources (omitted when empty) */ approvedSources?: DmarcReportsEditResponseApprovedSourcesList | null; /** Deprecated, use created_at */ created?: string | null; /** Creation timestamp */ createdAt?: string | null; /** Whether DMARC reports are enabled */ enabled?: boolean | null; /** Deprecated, use modified_at */ modified?: string | null; /** Last modification timestamp */ modifiedAt?: string | null; /** Live DNS records for the zone, grouped by type */ records?: DmarcReportsEditResponseRecords | null; /** Prefix for DMARC RUA addresses (32-char hex string) */ ruaPrefix?: string | null; /** Whether to skip the setup wizard */ skipWizard?: boolean | null; /** DMARC configuration status */ status?: DmarcReportsEditResponseStatus | null; /** Use `zone_id` instead */ tag?: string | null; /** Zone identifier */ zoneId?: string | null; } export declare const PatchDmarcReportResponse: S.Schema; export type GetDmarcReportError = CloudflareOpError; /** Retrieves the current DMARC report configuration and status for a zone. Returns the RUA prefix, enabled status, approved sources, and DNS records. */ export declare const getDmarcReport: API.OperationMethod; export type GetSpfInspectError = CloudflareOpError; /** Inspects a specific SPF TXT record and returns a parsed tree structure in the spflimit-worker format. The record ID must be provided via the `id` query parameter. Returns a recursive tree showing: - Parsed components with their qualifiers and types - Nested includes recursively resolved within components - Per-component and total lookup counts - Detailed error information with context */ export declare const getSpfInspect: API.OperationMethod; export type PatchDmarcReportError = CloudflareOpError; /** Updates the DMARC report configuration for a zone. At least one of `enabled` or `skip_wizard` must be provided. When enabling, the handler will ensure the DMARC RUA record exists in DNS. */ export declare const patchDmarcReport: API.OperationMethod; //# sourceMappingURL=email_auth.d.ts.map