import * as S from "@distilled.cloud/core/schema"; import * as API from "@distilled.cloud/core/api"; import { type CloudflareOpError, type CloudflareOpContext } from "../protocol.ts"; import { ResultInfo } from "../pagination.ts"; export type { CloudflareOpError, CloudflareOpContext }; declare const DestinationNotVerified_base: S.Class, import("effect/Cause").YieldableError>; export declare class DestinationNotVerified extends /*@__PURE__*/ DestinationNotVerified_base { } declare const EmailAddressCreatedTooRecently_base: S.Class, import("effect/Cause").YieldableError>; export declare class EmailAddressCreatedTooRecently extends /*@__PURE__*/ EmailAddressCreatedTooRecently_base { } declare const EmailAddressNotFound_base: S.Class, import("effect/Cause").YieldableError>; export declare class EmailAddressNotFound extends /*@__PURE__*/ EmailAddressNotFound_base { } declare const EmailRoutingRuleNotFound_base: S.Class, import("effect/Cause").YieldableError>; export declare class EmailRoutingRuleNotFound extends /*@__PURE__*/ EmailRoutingRuleNotFound_base { } declare const Forbidden_base: S.Class, import("effect/Cause").YieldableError>; export declare class Forbidden extends /*@__PURE__*/ Forbidden_base { } export type AddressesEditRequestStatus = "unverified" | "verified"; export declare const AddressesEditRequestStatus: any; export interface AddressesEditRequest { /** Identifier. */ accountId: string; /** Destination address identifier. */ destinationAddressIdentifier: string; /** Destination address status. Non-admin callers may only set verified addresses back to unverified; setting to verified requires admin privileges. */ status: AddressesEditRequestStatus | (string & {}); } export declare const AddressesEditRequest: S.Schema; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface AddressesEditResponse { /** Destination address identifier. */ id?: string | null; /** The date and time the destination address has been created. */ created?: string | null; /** The contact email address of the user. */ email?: string | null; /** The date and time the destination address was last modified. */ modified?: string | null; /** Destination address tag. (Deprecated, replaced by destination address identifier) */ tag?: string | null; /** The date and time the destination address has been verified. Null means not verified yet. */ verified?: string | null; } export declare const AddressesEditResponse: S.Schema; export interface CreateAddressRequest { /** Identifier. */ accountId: string; /** The contact email address of the user. */ email: string; } export declare const CreateAddressRequest: S.Schema; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface CreateAddressResponse { /** Destination address identifier. */ id?: string | null; /** The date and time the destination address has been created. */ created?: string | null; /** The contact email address of the user. */ email?: string | null; /** The date and time the destination address was last modified. */ modified?: string | null; /** Destination address tag. (Deprecated, replaced by destination address identifier) */ tag?: string | null; /** The date and time the destination address has been verified. Null means not verified yet. */ verified?: string | null; } export declare const CreateAddressResponse: S.Schema; export interface CreateDnsRequest { /** Identifier. */ zoneId: string; /** Domain of your zone. */ name?: string; } export declare const CreateDnsRequest: S.Schema; export type DnsCreateResponseStatus = "ready" | "unconfigured" | "misconfigured" | "misconfigured/locked" | "unlocked"; export declare const DnsCreateResponseStatus: any; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface CreateDnsResponse { /** Email Routing settings identifier. */ id: string; /** State of the zone settings for Email Routing. */ enabled: boolean; /** Domain of your zone. */ name: string; /** The date and time the settings have been created. */ created?: string | null; /** The date and time the settings have been modified. */ modified?: string | null; /** Flag to check if the user skipped the configuration wizard. */ skipWizard?: boolean | null; /** Show the state of your account, and the type or configuration error. */ status?: DnsCreateResponseStatus | null; /** Whether subaddressing (plus-addressing) is honored when matching incoming mail against routing rules. */ supportSubaddress?: boolean | null; /** Email Routing settings tag. (Deprecated, replaced by Email Routing settings identifier) */ tag?: string | null; } export declare const CreateDnsResponse: S.Schema; export type RulesCreateRequestActionsItemType = "drop" | "forward" | "worker"; export declare const RulesCreateRequestActionsItemType: any; export type RulesCreateRequestActionsItemValueList = Array; export declare const RulesCreateRequestActionsItemValueList: S.Schema; export interface RulesCreateRequestActionsItem { /** Type of supported action. */ type: RulesCreateRequestActionsItemType | (string & {}); value?: RulesCreateRequestActionsItemValueList; } export declare const RulesCreateRequestActionsItem: S.Schema; export type RulesCreateRequestActionsList = Array; export declare const RulesCreateRequestActionsList: S.Schema; export type RulesCreateRequestMatchersItemType = "all" | "literal"; export declare const RulesCreateRequestMatchersItemType: any; export type RulesCreateRequestMatchersItemField = "to"; export declare const RulesCreateRequestMatchersItemField: any; export interface RulesCreateRequestMatchersItem { /** Type of matcher. */ type: RulesCreateRequestMatchersItemType | (string & {}); /** Field for type matcher. */ field?: RulesCreateRequestMatchersItemField | (string & {}); /** Value for matcher. */ value?: string; } export declare const RulesCreateRequestMatchersItem: S.Schema; export type RulesCreateRequestMatchersList = Array; export declare const RulesCreateRequestMatchersList: S.Schema; export type RulesCreateRequestSource = "api" | "wrangler"; export declare const RulesCreateRequestSource: any; export interface CreateRuleRequest { /** Identifier. */ zoneId: string; /** List actions patterns. */ actions: RulesCreateRequestActionsList; /** Matching patterns to forward to your actions. */ matchers: RulesCreateRequestMatchersList; /** Routing rule status. */ enabled?: boolean; /** Routing rule name. */ name?: string; /** Public tag (script_tag) of the Worker that owns this rule. Required when */ ownerWorkerTag?: string; /** Priority of the routing rule. */ priority?: number; /** Who manages the rule. `api` covers dashboard, generic API, and Terraform; */ source?: RulesCreateRequestSource | (string & {}); } export declare const CreateRuleRequest: S.Schema; export type RulesCreateResponseActionsItemType = "drop" | "forward" | "worker"; export declare const RulesCreateResponseActionsItemType: any; export type RulesCreateResponseActionsItemValueList = Array; export declare const RulesCreateResponseActionsItemValueList: S.Schema; export interface RulesCreateResponseActionsItem { /** Type of supported action. */ type: RulesCreateResponseActionsItemType; value?: RulesCreateResponseActionsItemValueList | null; } export declare const RulesCreateResponseActionsItem: S.Schema; export type RulesCreateResponseActionsList = Array; export declare const RulesCreateResponseActionsList: S.Schema; export type RulesCreateResponseMatchersItemType = "all" | "literal"; export declare const RulesCreateResponseMatchersItemType: any; export type RulesCreateResponseMatchersItemField = "to"; export declare const RulesCreateResponseMatchersItemField: any; export interface RulesCreateResponseMatchersItem { /** Type of matcher. */ type: RulesCreateResponseMatchersItemType; /** Field for type matcher. */ field?: RulesCreateResponseMatchersItemField | null; /** Value for matcher. */ value?: string | null; } export declare const RulesCreateResponseMatchersItem: S.Schema; export type RulesCreateResponseMatchersList = Array; export declare const RulesCreateResponseMatchersList: S.Schema; export type RulesCreateResponseSource = "api" | "wrangler"; export declare const RulesCreateResponseSource: any; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface CreateRuleResponse { /** Routing rule identifier. */ id?: string | null; /** List actions patterns. */ actions?: RulesCreateResponseActionsList | null; /** Routing rule status. */ enabled?: boolean | null; /** Matching patterns to forward to your actions. */ matchers?: RulesCreateResponseMatchersList | null; /** Routing rule name. */ name?: string | null; /** Priority of the routing rule. */ priority?: number | null; /** Who manages the rule. `api` covers dashboard, generic API, and Terraform; */ source?: RulesCreateResponseSource | null; /** Routing rule tag. (Deprecated, replaced by routing rule identifier) */ tag?: string | null; } export declare const CreateRuleResponse: S.Schema; export interface DeleteAddressRequest { /** Identifier. */ accountId: string; /** Destination address identifier. */ destinationAddressIdentifier: string; } export declare const DeleteAddressRequest: S.Schema; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface DeleteAddressResponse { /** Destination address identifier. */ id?: string | null; /** The date and time the destination address has been created. */ created?: string | null; /** The contact email address of the user. */ email?: string | null; /** The date and time the destination address was last modified. */ modified?: string | null; /** Destination address tag. (Deprecated, replaced by destination address identifier) */ tag?: string | null; /** The date and time the destination address has been verified. Null means not verified yet. */ verified?: string | null; } export declare const DeleteAddressResponse: S.Schema; export interface DeleteDnsRequest { /** Identifier. */ zoneId: string; } export declare const DeleteDnsRequest: S.Schema; /** Raw response payload (operation does not use the standard v4 result envelope). */ export interface DeleteDnsResponse { } export declare const DeleteDnsResponse: S.Schema; export interface DeleteRuleRequest { /** Identifier. */ zoneId: string; /** Routing rule identifier. */ ruleIdentifier: string; } export declare const DeleteRuleRequest: S.Schema; export type RulesDeleteResponseActionsItemType = "drop" | "forward" | "worker"; export declare const RulesDeleteResponseActionsItemType: any; export type RulesDeleteResponseActionsItemValueList = Array; export declare const RulesDeleteResponseActionsItemValueList: S.Schema; export interface RulesDeleteResponseActionsItem { /** Type of supported action. */ type: RulesDeleteResponseActionsItemType; value?: RulesDeleteResponseActionsItemValueList | null; } export declare const RulesDeleteResponseActionsItem: S.Schema; export type RulesDeleteResponseActionsList = Array; export declare const RulesDeleteResponseActionsList: S.Schema; export type RulesDeleteResponseMatchersItemType = "all" | "literal"; export declare const RulesDeleteResponseMatchersItemType: any; export type RulesDeleteResponseMatchersItemField = "to"; export declare const RulesDeleteResponseMatchersItemField: any; export interface RulesDeleteResponseMatchersItem { /** Type of matcher. */ type: RulesDeleteResponseMatchersItemType; /** Field for type matcher. */ field?: RulesDeleteResponseMatchersItemField | null; /** Value for matcher. */ value?: string | null; } export declare const RulesDeleteResponseMatchersItem: S.Schema; export type RulesDeleteResponseMatchersList = Array; export declare const RulesDeleteResponseMatchersList: S.Schema; export type RulesDeleteResponseSource = "api" | "wrangler"; export declare const RulesDeleteResponseSource: any; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface DeleteRuleResponse { /** Routing rule identifier. */ id?: string | null; /** List actions patterns. */ actions?: RulesDeleteResponseActionsList | null; /** Routing rule status. */ enabled?: boolean | null; /** Matching patterns to forward to your actions. */ matchers?: RulesDeleteResponseMatchersList | null; /** Routing rule name. */ name?: string | null; /** Priority of the routing rule. */ priority?: number | null; /** Who manages the rule. `api` covers dashboard, generic API, and Terraform; */ source?: RulesDeleteResponseSource | null; /** Routing rule tag. (Deprecated, replaced by routing rule identifier) */ tag?: string | null; } export declare const DeleteRuleResponse: S.Schema; export interface DisableEmailRoutingRequest { /** Identifier. */ zoneId: string; } export declare const DisableEmailRoutingRequest: S.Schema; export type DisableResponseStatus = "ready" | "unconfigured" | "misconfigured" | "misconfigured/locked" | "unlocked"; export declare const DisableResponseStatus: any; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface DisableEmailRoutingResponse { /** Email Routing settings identifier. */ id: string; /** State of the zone settings for Email Routing. */ enabled: boolean; /** Domain of your zone. */ name: string; /** The date and time the settings have been created. */ created?: string | null; /** The date and time the settings have been modified. */ modified?: string | null; /** Flag to check if the user skipped the configuration wizard. */ skipWizard?: boolean | null; /** Show the state of your account, and the type or configuration error. */ status?: DisableResponseStatus | null; /** Whether subaddressing (plus-addressing) is honored when matching incoming mail against routing rules. */ supportSubaddress?: boolean | null; /** Email Routing settings tag. (Deprecated, replaced by Email Routing settings identifier) */ tag?: string | null; } export declare const DisableEmailRoutingResponse: S.Schema; export interface EnableEmailRoutingRequest { /** Identifier. */ zoneId: string; } export declare const EnableEmailRoutingRequest: S.Schema; export type EnableResponseStatus = "ready" | "unconfigured" | "misconfigured" | "misconfigured/locked" | "unlocked"; export declare const EnableResponseStatus: any; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface EnableEmailRoutingResponse { /** Email Routing settings identifier. */ id: string; /** State of the zone settings for Email Routing. */ enabled: boolean; /** Domain of your zone. */ name: string; /** The date and time the settings have been created. */ created?: string | null; /** The date and time the settings have been modified. */ modified?: string | null; /** Flag to check if the user skipped the configuration wizard. */ skipWizard?: boolean | null; /** Show the state of your account, and the type or configuration error. */ status?: EnableResponseStatus | null; /** Whether subaddressing (plus-addressing) is honored when matching incoming mail against routing rules. */ supportSubaddress?: boolean | null; /** Email Routing settings tag. (Deprecated, replaced by Email Routing settings identifier) */ tag?: string | null; } export declare const EnableEmailRoutingResponse: S.Schema; export interface GetAddressRequest { /** Identifier. */ accountId: string; /** Destination address identifier. */ destinationAddressIdentifier: string; } export declare const GetAddressRequest: S.Schema; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface GetAddressResponse { /** Destination address identifier. */ id?: string | null; /** The date and time the destination address has been created. */ created?: string | null; /** The contact email address of the user. */ email?: string | null; /** The date and time the destination address was last modified. */ modified?: string | null; /** Destination address tag. (Deprecated, replaced by destination address identifier) */ tag?: string | null; /** The date and time the destination address has been verified. Null means not verified yet. */ verified?: string | null; } export declare const GetAddressResponse: S.Schema; export interface GetDnsRequest { /** Identifier. */ zoneId: string; /** Domain of your zone. */ subdomain?: string; } export declare const GetDnsRequest: S.Schema; /** Raw response payload (operation does not use the standard v4 result envelope). */ export interface GetDnsResponse { } export declare const GetDnsResponse: S.Schema; export interface GetEmailRoutingRequest { /** Identifier. */ zoneId: string; } export declare const GetEmailRoutingRequest: S.Schema; export type GetResponseStatus = "ready" | "unconfigured" | "misconfigured" | "misconfigured/locked" | "unlocked"; export declare const GetResponseStatus: any; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface GetEmailRoutingResponse { /** Email Routing settings identifier. */ id: string; /** State of the zone settings for Email Routing. */ enabled: boolean; /** Domain of your zone. */ name: string; /** The date and time the settings have been created. */ created?: string | null; /** The date and time the settings have been modified. */ modified?: string | null; /** Flag to check if the user skipped the configuration wizard. */ skipWizard?: boolean | null; /** Show the state of your account, and the type or configuration error. */ status?: GetResponseStatus | null; /** Whether subaddressing (plus-addressing) is honored when matching incoming mail against routing rules. */ supportSubaddress?: boolean | null; /** Email Routing settings tag. (Deprecated, replaced by Email Routing settings identifier) */ tag?: string | null; } export declare const GetEmailRoutingResponse: S.Schema; export interface GetRuleRequest { /** Identifier. */ zoneId: string; /** Routing rule identifier. */ ruleIdentifier: string; } export declare const GetRuleRequest: S.Schema; export type RulesGetResponseActionsItemType = "drop" | "forward" | "worker"; export declare const RulesGetResponseActionsItemType: any; export type RulesGetResponseActionsItemValueList = Array; export declare const RulesGetResponseActionsItemValueList: S.Schema; export interface RulesGetResponseActionsItem { /** Type of supported action. */ type: RulesGetResponseActionsItemType; value?: RulesGetResponseActionsItemValueList | null; } export declare const RulesGetResponseActionsItem: S.Schema; export type RulesGetResponseActionsList = Array; export declare const RulesGetResponseActionsList: S.Schema; export type RulesGetResponseMatchersItemType = "all" | "literal"; export declare const RulesGetResponseMatchersItemType: any; export type RulesGetResponseMatchersItemField = "to"; export declare const RulesGetResponseMatchersItemField: any; export interface RulesGetResponseMatchersItem { /** Type of matcher. */ type: RulesGetResponseMatchersItemType; /** Field for type matcher. */ field?: RulesGetResponseMatchersItemField | null; /** Value for matcher. */ value?: string | null; } export declare const RulesGetResponseMatchersItem: S.Schema; export type RulesGetResponseMatchersList = Array; export declare const RulesGetResponseMatchersList: S.Schema; export type RulesGetResponseSource = "api" | "wrangler"; export declare const RulesGetResponseSource: any; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface GetRuleResponse { /** Routing rule identifier. */ id?: string | null; /** List actions patterns. */ actions?: RulesGetResponseActionsList | null; /** Routing rule status. */ enabled?: boolean | null; /** Matching patterns to forward to your actions. */ matchers?: RulesGetResponseMatchersList | null; /** Routing rule name. */ name?: string | null; /** Priority of the routing rule. */ priority?: number | null; /** Who manages the rule. `api` covers dashboard, generic API, and Terraform; */ source?: RulesGetResponseSource | null; /** Routing rule tag. (Deprecated, replaced by routing rule identifier) */ tag?: string | null; } export declare const GetRuleResponse: S.Schema; export interface GetRuleCatchAllRequest { /** Identifier. */ zoneId: string; } export declare const GetRuleCatchAllRequest: S.Schema; export type RulesCatchAllsGetResponseActionsItemType = "drop" | "forward" | "worker"; export declare const RulesCatchAllsGetResponseActionsItemType: any; export type RulesCatchAllsGetResponseActionsItemValueList = Array; export declare const RulesCatchAllsGetResponseActionsItemValueList: S.Schema; export interface RulesCatchAllsGetResponseActionsItem { /** Type of action for catch-all rule. */ type: RulesCatchAllsGetResponseActionsItemType; value?: RulesCatchAllsGetResponseActionsItemValueList | null; } export declare const RulesCatchAllsGetResponseActionsItem: S.Schema; export type RulesCatchAllsGetResponseActionsList = Array; export declare const RulesCatchAllsGetResponseActionsList: S.Schema; export type RulesCatchAllsGetResponseMatchersItemType = "all"; export declare const RulesCatchAllsGetResponseMatchersItemType: any; export interface RulesCatchAllsGetResponseMatchersItem { /** Type of matcher. Default is 'all'. */ type: RulesCatchAllsGetResponseMatchersItemType; } export declare const RulesCatchAllsGetResponseMatchersItem: S.Schema; export type RulesCatchAllsGetResponseMatchersList = Array; export declare const RulesCatchAllsGetResponseMatchersList: S.Schema; export type RulesCatchAllsGetResponseSource = "api" | "wrangler"; export declare const RulesCatchAllsGetResponseSource: any; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface GetRuleCatchAllResponse { /** Routing rule identifier. */ id?: string | null; /** List actions for the catch-all routing rule. */ actions?: RulesCatchAllsGetResponseActionsList | null; /** Routing rule status. */ enabled?: boolean | null; /** List of matchers for the catch-all routing rule. */ matchers?: RulesCatchAllsGetResponseMatchersList | null; /** Routing rule name. */ name?: string | null; /** Who manages the rule. `api` covers dashboard, generic API, and Terraform; */ source?: RulesCatchAllsGetResponseSource | null; /** Routing rule tag. (Deprecated, replaced by routing rule identifier) */ tag?: string | null; } export declare const GetRuleCatchAllResponse: S.Schema; export type AddressesListRequestDirection = "asc" | "desc"; export declare const AddressesListRequestDirection: any; export interface ListAddressesRequest { /** Identifier. */ accountId: string; /** Sorts results in an ascending or descending order. */ direction?: AddressesListRequestDirection | (string & {}); /** Page number of paginated results. */ page?: number; /** Maximum number of results per page. */ perPage?: number; /** Filter by verified destination addresses. */ verified?: string; } export declare const ListAddressesRequest: S.Schema; export interface AddressesListResultItem { /** Destination address identifier. */ id?: string | null; /** The date and time the destination address has been created. */ created?: string | null; /** The contact email address of the user. */ email?: string | null; /** The date and time the destination address was last modified. */ modified?: string | null; /** Destination address tag. (Deprecated, replaced by destination address identifier) */ tag?: string | null; /** The date and time the destination address has been verified. Null means not verified yet. */ verified?: string | null; } export declare const AddressesListResultItem: S.Schema; export type AddressesListResultList = Array; export declare const AddressesListResultList: S.Schema; export interface ListAddressesResponse { /** The unwrapped `result` payload of the v4 response envelope. */ result: AddressesListResultList; /** Pagination info from the envelope's `result_info`. */ resultInfo?: ResultInfo | null; } export declare const ListAddressesResponse: S.Schema; export interface ListRulesRequest { /** Identifier. */ zoneId: string; page?: number; perPage?: number; /** Filter by enabled routing rules. */ enabled?: boolean; } export declare const ListRulesRequest: S.Schema; export type ListRulesResponseResultList = Array; export declare const ListRulesResponseResultList: S.Schema; export interface ListRulesResponse { /** Routing rules for the zone. */ result: ListRulesResponseResultList; /** Pagination info from the envelope's `result_info`. */ resultInfo?: ResultInfo | null; } export declare const ListRulesResponse: S.Schema; export interface PatchDnsRequest { /** Identifier. */ zoneId: string; /** Domain of your zone. */ name?: string; } export declare const PatchDnsRequest: S.Schema; export type DnsEditResponseStatus = "ready" | "unconfigured" | "misconfigured" | "misconfigured/locked" | "unlocked"; export declare const DnsEditResponseStatus: any; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface PatchDnsResponse { /** Email Routing settings identifier. */ id: string; /** State of the zone settings for Email Routing. */ enabled: boolean; /** Domain of your zone. */ name: string; /** The date and time the settings have been created. */ created?: string | null; /** The date and time the settings have been modified. */ modified?: string | null; /** Flag to check if the user skipped the configuration wizard. */ skipWizard?: boolean | null; /** Show the state of your account, and the type or configuration error. */ status?: DnsEditResponseStatus | null; /** Whether subaddressing (plus-addressing) is honored when matching incoming mail against routing rules. */ supportSubaddress?: boolean | null; /** Email Routing settings tag. (Deprecated, replaced by Email Routing settings identifier) */ tag?: string | null; } export declare const PatchDnsResponse: S.Schema; export type RulesCatchAllsUpdateRequestActionsItemType = "drop" | "forward" | "worker"; export declare const RulesCatchAllsUpdateRequestActionsItemType: any; export type RulesCatchAllsUpdateRequestActionsItemValueList = Array; export declare const RulesCatchAllsUpdateRequestActionsItemValueList: S.Schema; export interface RulesCatchAllsUpdateRequestActionsItem { /** Type of action for catch-all rule. */ type: RulesCatchAllsUpdateRequestActionsItemType | (string & {}); value?: RulesCatchAllsUpdateRequestActionsItemValueList; } export declare const RulesCatchAllsUpdateRequestActionsItem: S.Schema; export type RulesCatchAllsUpdateRequestActionsList = Array; export declare const RulesCatchAllsUpdateRequestActionsList: S.Schema; export type RulesCatchAllsUpdateRequestMatchersItemType = "all"; export declare const RulesCatchAllsUpdateRequestMatchersItemType: any; export interface RulesCatchAllsUpdateRequestMatchersItem { /** Type of matcher. Default is 'all'. */ type: RulesCatchAllsUpdateRequestMatchersItemType | (string & {}); } export declare const RulesCatchAllsUpdateRequestMatchersItem: S.Schema; export type RulesCatchAllsUpdateRequestMatchersList = Array; export declare const RulesCatchAllsUpdateRequestMatchersList: S.Schema; export type RulesCatchAllsUpdateRequestSource = "api" | "wrangler"; export declare const RulesCatchAllsUpdateRequestSource: any; export interface PutRuleCatchAllRequest { /** Identifier. */ zoneId: string; /** List actions for the catch-all routing rule. */ actions: RulesCatchAllsUpdateRequestActionsList; /** List of matchers for the catch-all routing rule. */ matchers: RulesCatchAllsUpdateRequestMatchersList; /** Routing rule status. */ enabled?: boolean; /** Routing rule name. */ name?: string; /** Public tag (script_tag) of the Worker that owns this rule. Required when */ ownerWorkerTag?: string; /** Who manages the rule. `api` covers dashboard, generic API, and Terraform; */ source?: RulesCatchAllsUpdateRequestSource | (string & {}); } export declare const PutRuleCatchAllRequest: S.Schema; export type RulesCatchAllsUpdateResponseActionsItemType = "drop" | "forward" | "worker"; export declare const RulesCatchAllsUpdateResponseActionsItemType: any; export type RulesCatchAllsUpdateResponseActionsItemValueList = Array; export declare const RulesCatchAllsUpdateResponseActionsItemValueList: S.Schema; export interface RulesCatchAllsUpdateResponseActionsItem { /** Type of action for catch-all rule. */ type: RulesCatchAllsUpdateResponseActionsItemType; value?: RulesCatchAllsUpdateResponseActionsItemValueList | null; } export declare const RulesCatchAllsUpdateResponseActionsItem: S.Schema; export type RulesCatchAllsUpdateResponseActionsList = Array; export declare const RulesCatchAllsUpdateResponseActionsList: S.Schema; export type RulesCatchAllsUpdateResponseMatchersItemType = "all"; export declare const RulesCatchAllsUpdateResponseMatchersItemType: any; export interface RulesCatchAllsUpdateResponseMatchersItem { /** Type of matcher. Default is 'all'. */ type: RulesCatchAllsUpdateResponseMatchersItemType; } export declare const RulesCatchAllsUpdateResponseMatchersItem: S.Schema; export type RulesCatchAllsUpdateResponseMatchersList = Array; export declare const RulesCatchAllsUpdateResponseMatchersList: S.Schema; export type RulesCatchAllsUpdateResponseSource = "api" | "wrangler"; export declare const RulesCatchAllsUpdateResponseSource: any; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface PutRuleCatchAllResponse { /** Routing rule identifier. */ id?: string | null; /** List actions for the catch-all routing rule. */ actions?: RulesCatchAllsUpdateResponseActionsList | null; /** Routing rule status. */ enabled?: boolean | null; /** List of matchers for the catch-all routing rule. */ matchers?: RulesCatchAllsUpdateResponseMatchersList | null; /** Routing rule name. */ name?: string | null; /** Who manages the rule. `api` covers dashboard, generic API, and Terraform; */ source?: RulesCatchAllsUpdateResponseSource | null; /** Routing rule tag. (Deprecated, replaced by routing rule identifier) */ tag?: string | null; } export declare const PutRuleCatchAllResponse: S.Schema; export interface UnlockRequest { /** Identifier. */ zoneId: string; /** Domain of your zone. */ name?: string; } export declare const UnlockRequest: S.Schema; export type UnlockResponseStatus = "ready" | "unconfigured" | "misconfigured" | "misconfigured/locked" | "unlocked"; export declare const UnlockResponseStatus: any; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface UnlockResponse { /** Email Routing settings identifier. */ id: string; /** State of the zone settings for Email Routing. */ enabled: boolean; /** Domain of your zone. */ name: string; /** The date and time the settings have been created. */ created?: string | null; /** The date and time the settings have been modified. */ modified?: string | null; /** Flag to check if the user skipped the configuration wizard. */ skipWizard?: boolean | null; /** Show the state of your account, and the type or configuration error. */ status?: UnlockResponseStatus | null; /** Whether subaddressing (plus-addressing) is honored when matching incoming mail against routing rules. */ supportSubaddress?: boolean | null; /** Email Routing settings tag. (Deprecated, replaced by Email Routing settings identifier) */ tag?: string | null; } export declare const UnlockResponse: S.Schema; export type RulesUpdateRequestActionsItemType = "drop" | "forward" | "worker"; export declare const RulesUpdateRequestActionsItemType: any; export type RulesUpdateRequestActionsItemValueList = Array; export declare const RulesUpdateRequestActionsItemValueList: S.Schema; export interface RulesUpdateRequestActionsItem { /** Type of supported action. */ type: RulesUpdateRequestActionsItemType | (string & {}); value?: RulesUpdateRequestActionsItemValueList; } export declare const RulesUpdateRequestActionsItem: S.Schema; export type RulesUpdateRequestActionsList = Array; export declare const RulesUpdateRequestActionsList: S.Schema; export type RulesUpdateRequestMatchersItemType = "all" | "literal"; export declare const RulesUpdateRequestMatchersItemType: any; export type RulesUpdateRequestMatchersItemField = "to"; export declare const RulesUpdateRequestMatchersItemField: any; export interface RulesUpdateRequestMatchersItem { /** Type of matcher. */ type: RulesUpdateRequestMatchersItemType | (string & {}); /** Field for type matcher. */ field?: RulesUpdateRequestMatchersItemField | (string & {}); /** Value for matcher. */ value?: string; } export declare const RulesUpdateRequestMatchersItem: S.Schema; export type RulesUpdateRequestMatchersList = Array; export declare const RulesUpdateRequestMatchersList: S.Schema; export type RulesUpdateRequestSource = "api" | "wrangler"; export declare const RulesUpdateRequestSource: any; export interface UpdateRuleRequest { /** Identifier. */ zoneId: string; /** Routing rule identifier. */ ruleIdentifier: string; /** List actions patterns. */ actions: RulesUpdateRequestActionsList; /** Matching patterns to forward to your actions. */ matchers: RulesUpdateRequestMatchersList; /** Routing rule status. */ enabled?: boolean; /** Routing rule name. */ name?: string; /** Public tag (script_tag) of the Worker that owns this rule. Required when */ ownerWorkerTag?: string; /** Priority of the routing rule. */ priority?: number; /** Who manages the rule. `api` covers dashboard, generic API, and Terraform; */ source?: RulesUpdateRequestSource | (string & {}); } export declare const UpdateRuleRequest: S.Schema; export type RulesUpdateResponseActionsItemType = "drop" | "forward" | "worker"; export declare const RulesUpdateResponseActionsItemType: any; export type RulesUpdateResponseActionsItemValueList = Array; export declare const RulesUpdateResponseActionsItemValueList: S.Schema; export interface RulesUpdateResponseActionsItem { /** Type of supported action. */ type: RulesUpdateResponseActionsItemType; value?: RulesUpdateResponseActionsItemValueList | null; } export declare const RulesUpdateResponseActionsItem: S.Schema; export type RulesUpdateResponseActionsList = Array; export declare const RulesUpdateResponseActionsList: S.Schema; export type RulesUpdateResponseMatchersItemType = "all" | "literal"; export declare const RulesUpdateResponseMatchersItemType: any; export type RulesUpdateResponseMatchersItemField = "to"; export declare const RulesUpdateResponseMatchersItemField: any; export interface RulesUpdateResponseMatchersItem { /** Type of matcher. */ type: RulesUpdateResponseMatchersItemType; /** Field for type matcher. */ field?: RulesUpdateResponseMatchersItemField | null; /** Value for matcher. */ value?: string | null; } export declare const RulesUpdateResponseMatchersItem: S.Schema; export type RulesUpdateResponseMatchersList = Array; export declare const RulesUpdateResponseMatchersList: S.Schema; export type RulesUpdateResponseSource = "api" | "wrangler"; export declare const RulesUpdateResponseSource: any; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface UpdateRuleResponse { /** Routing rule identifier. */ id?: string | null; /** List actions patterns. */ actions?: RulesUpdateResponseActionsList | null; /** Routing rule status. */ enabled?: boolean | null; /** Matching patterns to forward to your actions. */ matchers?: RulesUpdateResponseMatchersList | null; /** Routing rule name. */ name?: string | null; /** Priority of the routing rule. */ priority?: number | null; /** Who manages the rule. `api` covers dashboard, generic API, and Terraform; */ source?: RulesUpdateResponseSource | null; /** Routing rule tag. (Deprecated, replaced by routing rule identifier) */ tag?: string | null; } export declare const UpdateRuleResponse: S.Schema; export type AddressesEditError = CloudflareOpError; /** Updates the status of a specific destination address. */ export declare const addressesEdit: API.OperationMethod; export type CreateAddressError = CloudflareOpError; /** Create a destination address to forward your emails to. Destination addresses need to be verified before they can be used. */ export declare const createAddress: API.OperationMethod; export type CreateDnsError = CloudflareOpError; /** Enable you Email Routing zone. Add and lock the necessary MX and SPF records. */ export declare const createDns: API.OperationMethod; export type CreateRuleError = CloudflareOpError; /** Rules consist of a set of criteria for matching emails (such as an email being sent to a specific custom email address) plus a set of actions to take on the email (like forwarding it to a specific destination address). Forward actions require all destination addresses to be verified. */ export declare const createRule: API.OperationMethod; export type DeleteAddressError = EmailAddressNotFound | EmailAddressCreatedTooRecently | CloudflareOpError; /** Deletes a specific destination address. */ export declare const deleteAddress: API.OperationMethod; export type DeleteDnsError = CloudflareOpError; /** Disable your Email Routing zone. Also removes additional MX records previously required for Email Routing to work. */ export declare const deleteDns: API.OperationMethod; export type DeleteRuleError = EmailRoutingRuleNotFound | CloudflareOpError; /** Delete a specific routing rule. */ export declare const deleteRule: API.OperationMethod; export type DisableEmailRoutingError = Forbidden | CloudflareOpError; /** Disable your Email Routing zone. Also removes additional MX records previously required for Email Routing to work. */ export declare const disableEmailRouting: API.OperationMethod; export type EnableEmailRoutingError = Forbidden | CloudflareOpError; /** Enable you Email Routing zone. Add and lock the necessary MX and SPF records. */ export declare const enableEmailRouting: API.OperationMethod; export type GetAddressError = CloudflareOpError; /** Gets information for a specific destination email already created. */ export declare const getAddress: API.OperationMethod; export type GetDnsError = CloudflareOpError; /** Show the DNS records needed to configure your Email Routing zone. */ export declare const getDns: API.OperationMethod; export type GetEmailRoutingError = Forbidden | CloudflareOpError; /** Get information about the settings for your Email Routing zone. */ export declare const getEmailRouting: API.OperationMethod; export type GetRuleError = CloudflareOpError; /** Get information for a specific routing rule already created. */ export declare const getRule: API.OperationMethod; export type GetRuleCatchAllError = Forbidden | CloudflareOpError; /** Get information on the default catch-all routing rule. */ export declare const getRuleCatchAll: API.OperationMethod; export type ListAddressesError = CloudflareOpError; /** Lists existing destination addresses. */ export declare const listAddresses: API.PaginatedOperationMethod; export type ListRulesError = CloudflareOpError; /** List routing rules (docs-absent endpoint). */ export declare const listRules: API.PaginatedOperationMethod; export type PatchDnsError = CloudflareOpError; /** Unlock MX Records previously locked by Email Routing. */ export declare const patchDns: API.OperationMethod; export type PutRuleCatchAllError = Forbidden | DestinationNotVerified | CloudflareOpError; /** Enable or disable catch-all routing rule, or change action to forward to specific destination address. Forward actions require all destination addresses to be verified. */ export declare const putRuleCatchAll: API.OperationMethod; export type UnlockError = CloudflareOpError; /** Unlock MX records previously locked by Email Routing. Deprecated - use PATCH /zones/{zone_id}/email/routing/dns instead. */ export declare const unlock: API.OperationMethod; export type UpdateRuleError = CloudflareOpError; /** Update actions and matches, or enable/disable specific routing rules. Forward actions require all destination addresses to be verified. */ export declare const updateRule: API.OperationMethod; //# sourceMappingURL=email_routing.d.ts.map