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 DuplicateMnmRuleName_base: S.Class, import("effect/Cause").YieldableError>; export declare class DuplicateMnmRuleName extends /*@__PURE__*/ DuplicateMnmRuleName_base { } declare const Forbidden_base: S.Class, import("effect/Cause").YieldableError>; export declare class Forbidden extends /*@__PURE__*/ Forbidden_base { } declare const InvalidMnmConfig_base: S.Class, import("effect/Cause").YieldableError>; export declare class InvalidMnmConfig extends /*@__PURE__*/ InvalidMnmConfig_base { } declare const MnmConfigAlreadyExists_base: S.Class, import("effect/Cause").YieldableError>; export declare class MnmConfigAlreadyExists extends /*@__PURE__*/ MnmConfigAlreadyExists_base { } declare const MnmConfigMissing_base: S.Class, import("effect/Cause").YieldableError>; export declare class MnmConfigMissing extends /*@__PURE__*/ MnmConfigMissing_base { } declare const MnmConfigNotFound_base: S.Class, import("effect/Cause").YieldableError>; export declare class MnmConfigNotFound extends /*@__PURE__*/ MnmConfigNotFound_base { } declare const MnmRuleNotFound_base: S.Class, import("effect/Cause").YieldableError>; export declare class MnmRuleNotFound extends /*@__PURE__*/ MnmRuleNotFound_base { } export type ConfigsCreateRequestRouterIpsList = Array; export declare const ConfigsCreateRequestRouterIpsList: S.Schema; export interface ConfigsCreateRequestWarpDevicesItem { /** Unique identifier for the warp device. */ id: string; /** Name of the warp device. */ name: string; /** IPv4 CIDR of the router sourcing flow data associated with this warp device. Only /32 addresses are currently supported. */ routerIp: string; } export declare const ConfigsCreateRequestWarpDevicesItem: S.Schema; export type ConfigsCreateRequestWarpDevicesList = Array; export declare const ConfigsCreateRequestWarpDevicesList: S.Schema; export interface CreateConfigRequest { accountId: string; /** Fallback sampling rate of flow messages being sent in packets per second. This should match the packet sampling rate configured on the router. */ defaultSampling: number; /** The account name. */ name: string; routerIps?: ConfigsCreateRequestRouterIpsList; warpDevices?: ConfigsCreateRequestWarpDevicesList; } export declare const CreateConfigRequest: S.Schema; export type ConfigsCreateResponseRouterIpsList = Array; export declare const ConfigsCreateResponseRouterIpsList: S.Schema; export type ConfigsCreateResponseWarpDevicesItem = ConfigsCreateRequestWarpDevicesItem; export declare const ConfigsCreateResponseWarpDevicesItem: S.Schema; export type ConfigsCreateResponseWarpDevicesList = Array; export declare const ConfigsCreateResponseWarpDevicesList: S.Schema; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface CreateConfigResponse { /** Fallback sampling rate of flow messages being sent in packets per second. This should match the packet sampling rate configured on the router. */ defaultSampling: number; /** The account name. */ name: string; routerIps: ConfigsCreateResponseRouterIpsList; warpDevices: ConfigsCreateResponseWarpDevicesList; } export declare const CreateConfigResponse: S.Schema; export type RulesCreateRequestPrefixesList = Array; export declare const RulesCreateRequestPrefixesList: S.Schema; export type RulesCreateRequestType = "threshold" | "zscore" | "advanced_ddos"; export declare const RulesCreateRequestType: any; export type RulesCreateRequestDuration = "1m" | "5m" | "10m" | "15m" | "20m" | "30m" | "45m" | "60m"; export declare const RulesCreateRequestDuration: any; export type RulesCreateRequestPrefixMatch = "exact" | "subnet" | "supernet"; export declare const RulesCreateRequestPrefixMatch: any; export type RulesCreateRequestZscoreSensitivity = "low" | "medium" | "high"; export declare const RulesCreateRequestZscoreSensitivity: any; export type RulesCreateRequestZscoreTarget = "bits" | "packets"; export declare const RulesCreateRequestZscoreTarget: any; export interface CreateRuleRequest { accountId: string; /** Toggle on if you would like Cloudflare to automatically advertise the IP Prefixes within the rule via Magic Transit when the rule is triggered. Only available for users of Magic Transit. */ automaticAdvertisement: boolean; /** The name of the rule. Must be unique. Supports characters A-Z, a-z, 0-9, underscore (_), dash (-), period (.), and tilde (~). You can’t have a space in the rule name. Max 256 characters. */ name: string; prefixes: RulesCreateRequestPrefixesList; /** MNM rule type. */ type: RulesCreateRequestType | (string & {}); /** The number of bits per second for the rule. When this value is exceeded for the set duration, an alert notification is sent. Minimum of 1 and no maximum. */ bandwidthThreshold?: number; /** The amount of time that the rule threshold must be exceeded to send an alert notification. The final value must be equivalent to one of the following 8 values ["1m","5m","10m","15m","20m","30m","45m","60m"]. */ duration?: RulesCreateRequestDuration | (string & {}); /** The number of packets per second for the rule. When this value is exceeded for the set duration, an alert notification is sent. Minimum of 1 and no maximum. */ packetThreshold?: number; /** Prefix match type to be applied for a prefix auto advertisement when using an advanced_ddos rule. */ prefixMatch?: RulesCreateRequestPrefixMatch | (string & {}); /** Level of sensitivity set for zscore rules. */ zscoreSensitivity?: RulesCreateRequestZscoreSensitivity | (string & {}); /** Target of the zscore rule analysis. */ zscoreTarget?: RulesCreateRequestZscoreTarget | (string & {}); } export declare const CreateRuleRequest: S.Schema; export type RulesCreateResponsePrefixesList = Array; export declare const RulesCreateResponsePrefixesList: S.Schema; export type RulesCreateResponseType = "threshold" | "zscore" | "advanced_ddos"; export declare const RulesCreateResponseType: any; export type RulesCreateResponseDuration = "1m" | "5m" | "10m" | "15m" | "20m" | "30m" | "45m" | "60m"; export declare const RulesCreateResponseDuration: any; export type RulesCreateResponsePrefixMatch = "exact" | "subnet" | "supernet"; export declare const RulesCreateResponsePrefixMatch: any; export type RulesCreateResponseZscoreSensitivity = "low" | "medium" | "high"; export declare const RulesCreateResponseZscoreSensitivity: any; export type RulesCreateResponseZscoreTarget = "bits" | "packets"; export declare const RulesCreateResponseZscoreTarget: any; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface CreateRuleResponse { /** The id of the rule. Must be unique. */ id: string; /** Toggle on if you would like Cloudflare to automatically advertise the IP Prefixes within the rule via Magic Transit when the rule is triggered. Only available for users of Magic Transit. */ automaticAdvertisement: boolean; /** The name of the rule. Must be unique. Supports characters A-Z, a-z, 0-9, underscore (_), dash (-), period (.), and tilde (~). You can’t have a space in the rule name. Max 256 characters. */ name: string; prefixes: RulesCreateResponsePrefixesList; /** MNM rule type. */ type: RulesCreateResponseType; /** The number of bits per second for the rule. When this value is exceeded for the set duration, an alert notification is sent. Minimum of 1 and no maximum. */ bandwidthThreshold?: number | null; /** The amount of time that the rule threshold must be exceeded to send an alert notification. The final value must be equivalent to one of the following 8 values ["1m","5m","10m","15m","20m","30m","45m","60m"]. */ duration?: RulesCreateResponseDuration | null; /** The number of packets per second for the rule. When this value is exceeded for the set duration, an alert notification is sent. Minimum of 1 and no maximum. */ packetThreshold?: number | null; /** Prefix match type to be applied for a prefix auto advertisement when using an advanced_ddos rule. */ prefixMatch?: RulesCreateResponsePrefixMatch | null; /** Level of sensitivity set for zscore rules. */ zscoreSensitivity?: RulesCreateResponseZscoreSensitivity | null; /** Target of the zscore rule analysis. */ zscoreTarget?: RulesCreateResponseZscoreTarget | null; } export declare const CreateRuleResponse: S.Schema; export interface CreateVpcFlowTokenRequest { accountId: string; } export declare const CreateVpcFlowTokenRequest: S.Schema; export type CreateVpcFlowTokenResponse = string; export declare const CreateVpcFlowTokenResponse: S.Schema; export interface DeleteConfigRequest { accountId: string; } export declare const DeleteConfigRequest: S.Schema; export type ConfigsDeleteResponseRouterIpsList = Array; export declare const ConfigsDeleteResponseRouterIpsList: S.Schema; export type ConfigsDeleteResponseWarpDevicesItem = ConfigsCreateRequestWarpDevicesItem; export declare const ConfigsDeleteResponseWarpDevicesItem: S.Schema; export type ConfigsDeleteResponseWarpDevicesList = Array; export declare const ConfigsDeleteResponseWarpDevicesList: S.Schema; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface DeleteConfigResponse { /** Fallback sampling rate of flow messages being sent in packets per second. This should match the packet sampling rate configured on the router. */ defaultSampling: number; /** The account name. */ name: string; routerIps: ConfigsDeleteResponseRouterIpsList; warpDevices: ConfigsDeleteResponseWarpDevicesList; } export declare const DeleteConfigResponse: S.Schema; export interface DeleteRuleRequest { accountId: string; /** The id of the rule. Must be unique. */ ruleId: string; } export declare const DeleteRuleRequest: S.Schema; export type RulesDeleteResponsePrefixesList = Array; export declare const RulesDeleteResponsePrefixesList: S.Schema; export type RulesDeleteResponseType = "threshold" | "zscore" | "advanced_ddos"; export declare const RulesDeleteResponseType: any; export type RulesDeleteResponseDuration = "1m" | "5m" | "10m" | "15m" | "20m" | "30m" | "45m" | "60m"; export declare const RulesDeleteResponseDuration: any; export type RulesDeleteResponsePrefixMatch = "exact" | "subnet" | "supernet"; export declare const RulesDeleteResponsePrefixMatch: any; export type RulesDeleteResponseZscoreSensitivity = "low" | "medium" | "high"; export declare const RulesDeleteResponseZscoreSensitivity: any; export type RulesDeleteResponseZscoreTarget = "bits" | "packets"; export declare const RulesDeleteResponseZscoreTarget: any; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface DeleteRuleResponse { /** The id of the rule. Must be unique. */ id: string; /** Toggle on if you would like Cloudflare to automatically advertise the IP Prefixes within the rule via Magic Transit when the rule is triggered. Only available for users of Magic Transit. */ automaticAdvertisement: boolean; /** The name of the rule. Must be unique. Supports characters A-Z, a-z, 0-9, underscore (_), dash (-), period (.), and tilde (~). You can’t have a space in the rule name. Max 256 characters. */ name: string; prefixes: RulesDeleteResponsePrefixesList; /** MNM rule type. */ type: RulesDeleteResponseType; /** The number of bits per second for the rule. When this value is exceeded for the set duration, an alert notification is sent. Minimum of 1 and no maximum. */ bandwidthThreshold?: number | null; /** The amount of time that the rule threshold must be exceeded to send an alert notification. The final value must be equivalent to one of the following 8 values ["1m","5m","10m","15m","20m","30m","45m","60m"]. */ duration?: RulesDeleteResponseDuration | null; /** The number of packets per second for the rule. When this value is exceeded for the set duration, an alert notification is sent. Minimum of 1 and no maximum. */ packetThreshold?: number | null; /** Prefix match type to be applied for a prefix auto advertisement when using an advanced_ddos rule. */ prefixMatch?: RulesDeleteResponsePrefixMatch | null; /** Level of sensitivity set for zscore rules. */ zscoreSensitivity?: RulesDeleteResponseZscoreSensitivity | null; /** Target of the zscore rule analysis. */ zscoreTarget?: RulesDeleteResponseZscoreTarget | null; } export declare const DeleteRuleResponse: S.Schema; export interface GetConfigRequest { accountId: string; } export declare const GetConfigRequest: S.Schema; export type ConfigsGetResponseRouterIpsList = Array; export declare const ConfigsGetResponseRouterIpsList: S.Schema; export type ConfigsGetResponseWarpDevicesItem = ConfigsCreateRequestWarpDevicesItem; export declare const ConfigsGetResponseWarpDevicesItem: S.Schema; export type ConfigsGetResponseWarpDevicesList = Array; export declare const ConfigsGetResponseWarpDevicesList: S.Schema; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface GetConfigResponse { /** Fallback sampling rate of flow messages being sent in packets per second. This should match the packet sampling rate configured on the router. */ defaultSampling: number; /** The account name. */ name: string; routerIps: ConfigsGetResponseRouterIpsList; warpDevices: ConfigsGetResponseWarpDevicesList; } export declare const GetConfigResponse: S.Schema; export interface GetConfigFullRequest { accountId: string; } export declare const GetConfigFullRequest: S.Schema; export type ConfigsFullGetResponseRouterIpsList = Array; export declare const ConfigsFullGetResponseRouterIpsList: S.Schema; export type ConfigsFullGetResponseWarpDevicesItem = ConfigsCreateRequestWarpDevicesItem; export declare const ConfigsFullGetResponseWarpDevicesItem: S.Schema; export type ConfigsFullGetResponseWarpDevicesList = Array; export declare const ConfigsFullGetResponseWarpDevicesList: S.Schema; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface GetConfigFullResponse { /** Fallback sampling rate of flow messages being sent in packets per second. This should match the packet sampling rate configured on the router. */ defaultSampling: number; /** The account name. */ name: string; routerIps: ConfigsFullGetResponseRouterIpsList; warpDevices: ConfigsFullGetResponseWarpDevicesList; } export declare const GetConfigFullResponse: S.Schema; export interface GetRuleRequest { accountId: string; /** The id of the rule. Must be unique. */ ruleId: string; } export declare const GetRuleRequest: S.Schema; export type RulesGetResponsePrefixesList = Array; export declare const RulesGetResponsePrefixesList: S.Schema; export type RulesGetResponseType = "threshold" | "zscore" | "advanced_ddos"; export declare const RulesGetResponseType: any; export type RulesGetResponseDuration = "1m" | "5m" | "10m" | "15m" | "20m" | "30m" | "45m" | "60m"; export declare const RulesGetResponseDuration: any; export type RulesGetResponsePrefixMatch = "exact" | "subnet" | "supernet"; export declare const RulesGetResponsePrefixMatch: any; export type RulesGetResponseZscoreSensitivity = "low" | "medium" | "high"; export declare const RulesGetResponseZscoreSensitivity: any; export type RulesGetResponseZscoreTarget = "bits" | "packets"; export declare const RulesGetResponseZscoreTarget: any; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface GetRuleResponse { /** The id of the rule. Must be unique. */ id: string; /** Toggle on if you would like Cloudflare to automatically advertise the IP Prefixes within the rule via Magic Transit when the rule is triggered. Only available for users of Magic Transit. */ automaticAdvertisement: boolean; /** The name of the rule. Must be unique. Supports characters A-Z, a-z, 0-9, underscore (_), dash (-), period (.), and tilde (~). You can’t have a space in the rule name. Max 256 characters. */ name: string; prefixes: RulesGetResponsePrefixesList; /** MNM rule type. */ type: RulesGetResponseType; /** The number of bits per second for the rule. When this value is exceeded for the set duration, an alert notification is sent. Minimum of 1 and no maximum. */ bandwidthThreshold?: number | null; /** The amount of time that the rule threshold must be exceeded to send an alert notification. The final value must be equivalent to one of the following 8 values ["1m","5m","10m","15m","20m","30m","45m","60m"]. */ duration?: RulesGetResponseDuration | null; /** The number of packets per second for the rule. When this value is exceeded for the set duration, an alert notification is sent. Minimum of 1 and no maximum. */ packetThreshold?: number | null; /** Prefix match type to be applied for a prefix auto advertisement when using an advanced_ddos rule. */ prefixMatch?: RulesGetResponsePrefixMatch | null; /** Level of sensitivity set for zscore rules. */ zscoreSensitivity?: RulesGetResponseZscoreSensitivity | null; /** Target of the zscore rule analysis. */ zscoreTarget?: RulesGetResponseZscoreTarget | null; } export declare const GetRuleResponse: S.Schema; export interface ListRulesRequest { accountId: string; } export declare const ListRulesRequest: S.Schema; export type RulesListResultItemPrefixesList = Array; export declare const RulesListResultItemPrefixesList: S.Schema; export type RulesListResultItemType = "threshold" | "zscore" | "advanced_ddos"; export declare const RulesListResultItemType: any; export type RulesListResultItemDuration = "1m" | "5m" | "10m" | "15m" | "20m" | "30m" | "45m" | "60m"; export declare const RulesListResultItemDuration: any; export type RulesListResultItemPrefixMatch = "exact" | "subnet" | "supernet"; export declare const RulesListResultItemPrefixMatch: any; export type RulesListResultItemZscoreSensitivity = "low" | "medium" | "high"; export declare const RulesListResultItemZscoreSensitivity: any; export type RulesListResultItemZscoreTarget = "bits" | "packets"; export declare const RulesListResultItemZscoreTarget: any; export interface RulesListResultItem { /** The id of the rule. Must be unique. */ id: string; /** Toggle on if you would like Cloudflare to automatically advertise the IP Prefixes within the rule via Magic Transit when the rule is triggered. Only available for users of Magic Transit. */ automaticAdvertisement: boolean; /** The name of the rule. Must be unique. Supports characters A-Z, a-z, 0-9, underscore (_), dash (-), period (.), and tilde (~). You can’t have a space in the rule name. Max 256 characters. */ name: string; prefixes: RulesListResultItemPrefixesList; /** MNM rule type. */ type: RulesListResultItemType; /** The number of bits per second for the rule. When this value is exceeded for the set duration, an alert notification is sent. Minimum of 1 and no maximum. */ bandwidthThreshold?: number | null; /** The amount of time that the rule threshold must be exceeded to send an alert notification. The final value must be equivalent to one of the following 8 values ["1m","5m","10m","15m","20m","30m","45m","60m"]. */ duration?: RulesListResultItemDuration | null; /** The number of packets per second for the rule. When this value is exceeded for the set duration, an alert notification is sent. Minimum of 1 and no maximum. */ packetThreshold?: number | null; /** Prefix match type to be applied for a prefix auto advertisement when using an advanced_ddos rule. */ prefixMatch?: RulesListResultItemPrefixMatch | null; /** Level of sensitivity set for zscore rules. */ zscoreSensitivity?: RulesListResultItemZscoreSensitivity | null; /** Target of the zscore rule analysis. */ zscoreTarget?: RulesListResultItemZscoreTarget | null; } export declare const RulesListResultItem: S.Schema; export type RulesListResultList = Array; export declare const RulesListResultList: S.Schema; export interface ListRulesResponse { /** The unwrapped `result` payload of the v4 response envelope. */ result: RulesListResultList; /** Pagination info from the envelope's `result_info`. */ resultInfo?: ResultInfo | null; } export declare const ListRulesResponse: S.Schema; export type ConfigsEditRequestRouterIpsList = Array; export declare const ConfigsEditRequestRouterIpsList: S.Schema; export type ConfigsEditRequestWarpDevicesItem = ConfigsCreateRequestWarpDevicesItem; export declare const ConfigsEditRequestWarpDevicesItem: S.Schema; export type ConfigsEditRequestWarpDevicesList = Array; export declare const ConfigsEditRequestWarpDevicesList: S.Schema; export interface PatchConfigRequest { accountId: string; /** Fallback sampling rate of flow messages being sent in packets per second. This should match the packet sampling rate configured on the router. */ defaultSampling?: number; /** The account name. */ name?: string; routerIps?: ConfigsEditRequestRouterIpsList; warpDevices?: ConfigsEditRequestWarpDevicesList; } export declare const PatchConfigRequest: S.Schema; export type ConfigsEditResponseRouterIpsList = Array; export declare const ConfigsEditResponseRouterIpsList: S.Schema; export type ConfigsEditResponseWarpDevicesItem = ConfigsCreateRequestWarpDevicesItem; export declare const ConfigsEditResponseWarpDevicesItem: S.Schema; export type ConfigsEditResponseWarpDevicesList = Array; export declare const ConfigsEditResponseWarpDevicesList: S.Schema; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface PatchConfigResponse { /** Fallback sampling rate of flow messages being sent in packets per second. This should match the packet sampling rate configured on the router. */ defaultSampling: number; /** The account name. */ name: string; routerIps: ConfigsEditResponseRouterIpsList; warpDevices: ConfigsEditResponseWarpDevicesList; } export declare const PatchConfigResponse: S.Schema; export type RulesEditRequestPrefixesList = Array; export declare const RulesEditRequestPrefixesList: S.Schema; export type RulesEditRequestType = "threshold" | "zscore" | "advanced_ddos"; export declare const RulesEditRequestType: any; export type RulesEditRequestDuration = "1m" | "5m" | "10m" | "15m" | "20m" | "30m" | "45m" | "60m"; export declare const RulesEditRequestDuration: any; export type RulesEditRequestPrefixMatch = "exact" | "subnet" | "supernet"; export declare const RulesEditRequestPrefixMatch: any; export type RulesEditRequestZscoreSensitivity = "low" | "medium" | "high"; export declare const RulesEditRequestZscoreSensitivity: any; export type RulesEditRequestZscoreTarget = "bits" | "packets"; export declare const RulesEditRequestZscoreTarget: any; export interface PatchRuleRequest { accountId: string; /** The id of the rule. Must be unique. */ ruleId: string; /** Toggle on if you would like Cloudflare to automatically advertise the IP Prefixes within the rule via Magic Transit when the rule is triggered. Only available for users of Magic Transit. */ automaticAdvertisement: boolean; /** The name of the rule. Must be unique. Supports characters A-Z, a-z, 0-9, underscore (_), dash (-), period (.), and tilde (~). You can’t have a space in the rule name. Max 256 characters. */ name: string; prefixes: RulesEditRequestPrefixesList; /** MNM rule type. */ type: RulesEditRequestType | (string & {}); /** The number of bits per second for the rule. When this value is exceeded for the set duration, an alert notification is sent. Minimum of 1 and no maximum. */ bandwidthThreshold?: number; /** The amount of time that the rule threshold must be exceeded to send an alert notification. The final value must be equivalent to one of the following 8 values ["1m","5m","10m","15m","20m","30m","45m","60m"]. */ duration?: RulesEditRequestDuration | (string & {}); /** The number of packets per second for the rule. When this value is exceeded for the set duration, an alert notification is sent. Minimum of 1 and no maximum. */ packetThreshold?: number; /** Prefix match type to be applied for a prefix auto advertisement when using an advanced_ddos rule. */ prefixMatch?: RulesEditRequestPrefixMatch | (string & {}); /** Level of sensitivity set for zscore rules. */ zscoreSensitivity?: RulesEditRequestZscoreSensitivity | (string & {}); /** Target of the zscore rule analysis. */ zscoreTarget?: RulesEditRequestZscoreTarget | (string & {}); } export declare const PatchRuleRequest: S.Schema; export type RulesEditResponsePrefixesList = Array; export declare const RulesEditResponsePrefixesList: S.Schema; export type RulesEditResponseType = "threshold" | "zscore" | "advanced_ddos"; export declare const RulesEditResponseType: any; export type RulesEditResponseDuration = "1m" | "5m" | "10m" | "15m" | "20m" | "30m" | "45m" | "60m"; export declare const RulesEditResponseDuration: any; export type RulesEditResponsePrefixMatch = "exact" | "subnet" | "supernet"; export declare const RulesEditResponsePrefixMatch: any; export type RulesEditResponseZscoreSensitivity = "low" | "medium" | "high"; export declare const RulesEditResponseZscoreSensitivity: any; export type RulesEditResponseZscoreTarget = "bits" | "packets"; export declare const RulesEditResponseZscoreTarget: any; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface PatchRuleResponse { /** The id of the rule. Must be unique. */ id: string; /** Toggle on if you would like Cloudflare to automatically advertise the IP Prefixes within the rule via Magic Transit when the rule is triggered. Only available for users of Magic Transit. */ automaticAdvertisement: boolean; /** The name of the rule. Must be unique. Supports characters A-Z, a-z, 0-9, underscore (_), dash (-), period (.), and tilde (~). You can’t have a space in the rule name. Max 256 characters. */ name: string; prefixes: RulesEditResponsePrefixesList; /** MNM rule type. */ type: RulesEditResponseType; /** The number of bits per second for the rule. When this value is exceeded for the set duration, an alert notification is sent. Minimum of 1 and no maximum. */ bandwidthThreshold?: number | null; /** The amount of time that the rule threshold must be exceeded to send an alert notification. The final value must be equivalent to one of the following 8 values ["1m","5m","10m","15m","20m","30m","45m","60m"]. */ duration?: RulesEditResponseDuration | null; /** The number of packets per second for the rule. When this value is exceeded for the set duration, an alert notification is sent. Minimum of 1 and no maximum. */ packetThreshold?: number | null; /** Prefix match type to be applied for a prefix auto advertisement when using an advanced_ddos rule. */ prefixMatch?: RulesEditResponsePrefixMatch | null; /** Level of sensitivity set for zscore rules. */ zscoreSensitivity?: RulesEditResponseZscoreSensitivity | null; /** Target of the zscore rule analysis. */ zscoreTarget?: RulesEditResponseZscoreTarget | null; } export declare const PatchRuleResponse: S.Schema; export interface PatchRuleAdvertisementRequest { accountId: string; /** The id of the rule. Must be unique. */ ruleId: string; } export declare const PatchRuleAdvertisementRequest: S.Schema; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface PatchRuleAdvertisementResponse { /** Toggle on if you would like Cloudflare to automatically advertise the IP Prefixes within the rule via Magic Transit when the rule is triggered. Only available for users of Magic Transit. */ automaticAdvertisement: boolean; } export declare const PatchRuleAdvertisementResponse: S.Schema; export type ConfigsUpdateRequestRouterIpsList = Array; export declare const ConfigsUpdateRequestRouterIpsList: S.Schema; export type ConfigsUpdateRequestWarpDevicesItem = ConfigsCreateRequestWarpDevicesItem; export declare const ConfigsUpdateRequestWarpDevicesItem: S.Schema; export type ConfigsUpdateRequestWarpDevicesList = Array; export declare const ConfigsUpdateRequestWarpDevicesList: S.Schema; export interface UpdateConfigRequest { accountId: string; /** Fallback sampling rate of flow messages being sent in packets per second. This should match the packet sampling rate configured on the router. */ defaultSampling: number; /** The account name. */ name: string; routerIps?: ConfigsUpdateRequestRouterIpsList; warpDevices?: ConfigsUpdateRequestWarpDevicesList; } export declare const UpdateConfigRequest: S.Schema; export type ConfigsUpdateResponseRouterIpsList = Array; export declare const ConfigsUpdateResponseRouterIpsList: S.Schema; export type ConfigsUpdateResponseWarpDevicesItem = ConfigsCreateRequestWarpDevicesItem; export declare const ConfigsUpdateResponseWarpDevicesItem: S.Schema; export type ConfigsUpdateResponseWarpDevicesList = Array; export declare const ConfigsUpdateResponseWarpDevicesList: S.Schema; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface UpdateConfigResponse { /** Fallback sampling rate of flow messages being sent in packets per second. This should match the packet sampling rate configured on the router. */ defaultSampling: number; /** The account name. */ name: string; routerIps: ConfigsUpdateResponseRouterIpsList; warpDevices: ConfigsUpdateResponseWarpDevicesList; } export declare const UpdateConfigResponse: S.Schema; export type RulesUpdateRequestPrefixesList = Array; export declare const RulesUpdateRequestPrefixesList: S.Schema; export type RulesUpdateRequestType = "threshold" | "zscore" | "advanced_ddos"; export declare const RulesUpdateRequestType: any; export type RulesUpdateRequestDuration = "1m" | "5m" | "10m" | "15m" | "20m" | "30m" | "45m" | "60m"; export declare const RulesUpdateRequestDuration: any; export type RulesUpdateRequestPrefixMatch = "exact" | "subnet" | "supernet"; export declare const RulesUpdateRequestPrefixMatch: any; export type RulesUpdateRequestZscoreSensitivity = "low" | "medium" | "high"; export declare const RulesUpdateRequestZscoreSensitivity: any; export type RulesUpdateRequestZscoreTarget = "bits" | "packets"; export declare const RulesUpdateRequestZscoreTarget: any; export interface UpdateRuleRequest { accountId: string; /** Toggle on if you would like Cloudflare to automatically advertise the IP Prefixes within the rule via Magic Transit when the rule is triggered. Only available for users of Magic Transit. */ automaticAdvertisement: boolean; /** The name of the rule. Must be unique. Supports characters A-Z, a-z, 0-9, underscore (_), dash (-), period (.), and tilde (~). You can’t have a space in the rule name. Max 256 characters. */ name: string; prefixes: RulesUpdateRequestPrefixesList; /** MNM rule type. */ type: RulesUpdateRequestType | (string & {}); /** The number of bits per second for the rule. When this value is exceeded for the set duration, an alert notification is sent. Minimum of 1 and no maximum. */ bandwidthThreshold?: number; /** The amount of time that the rule threshold must be exceeded to send an alert notification. The final value must be equivalent to one of the following 8 values ["1m","5m","10m","15m","20m","30m","45m","60m"]. */ duration?: RulesUpdateRequestDuration | (string & {}); /** The number of packets per second for the rule. When this value is exceeded for the set duration, an alert notification is sent. Minimum of 1 and no maximum. */ packetThreshold?: number; /** Prefix match type to be applied for a prefix auto advertisement when using an advanced_ddos rule. */ prefixMatch?: RulesUpdateRequestPrefixMatch | (string & {}); /** Level of sensitivity set for zscore rules. */ zscoreSensitivity?: RulesUpdateRequestZscoreSensitivity | (string & {}); /** Target of the zscore rule analysis. */ zscoreTarget?: RulesUpdateRequestZscoreTarget | (string & {}); } export declare const UpdateRuleRequest: S.Schema; export type RulesUpdateResponsePrefixesList = Array; export declare const RulesUpdateResponsePrefixesList: S.Schema; export type RulesUpdateResponseType = "threshold" | "zscore" | "advanced_ddos"; export declare const RulesUpdateResponseType: any; export type RulesUpdateResponseDuration = "1m" | "5m" | "10m" | "15m" | "20m" | "30m" | "45m" | "60m"; export declare const RulesUpdateResponseDuration: any; export type RulesUpdateResponsePrefixMatch = "exact" | "subnet" | "supernet"; export declare const RulesUpdateResponsePrefixMatch: any; export type RulesUpdateResponseZscoreSensitivity = "low" | "medium" | "high"; export declare const RulesUpdateResponseZscoreSensitivity: any; export type RulesUpdateResponseZscoreTarget = "bits" | "packets"; export declare const RulesUpdateResponseZscoreTarget: any; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface UpdateRuleResponse { /** The id of the rule. Must be unique. */ id: string; /** Toggle on if you would like Cloudflare to automatically advertise the IP Prefixes within the rule via Magic Transit when the rule is triggered. Only available for users of Magic Transit. */ automaticAdvertisement: boolean; /** The name of the rule. Must be unique. Supports characters A-Z, a-z, 0-9, underscore (_), dash (-), period (.), and tilde (~). You can’t have a space in the rule name. Max 256 characters. */ name: string; prefixes: RulesUpdateResponsePrefixesList; /** MNM rule type. */ type: RulesUpdateResponseType; /** The number of bits per second for the rule. When this value is exceeded for the set duration, an alert notification is sent. Minimum of 1 and no maximum. */ bandwidthThreshold?: number | null; /** The amount of time that the rule threshold must be exceeded to send an alert notification. The final value must be equivalent to one of the following 8 values ["1m","5m","10m","15m","20m","30m","45m","60m"]. */ duration?: RulesUpdateResponseDuration | null; /** The number of packets per second for the rule. When this value is exceeded for the set duration, an alert notification is sent. Minimum of 1 and no maximum. */ packetThreshold?: number | null; /** Prefix match type to be applied for a prefix auto advertisement when using an advanced_ddos rule. */ prefixMatch?: RulesUpdateResponsePrefixMatch | null; /** Level of sensitivity set for zscore rules. */ zscoreSensitivity?: RulesUpdateResponseZscoreSensitivity | null; /** Target of the zscore rule analysis. */ zscoreTarget?: RulesUpdateResponseZscoreTarget | null; } export declare const UpdateRuleResponse: S.Schema; export type CreateConfigError = MnmConfigAlreadyExists | InvalidMnmConfig | Forbidden | CloudflareOpError; /** Create a new network monitoring configuration. */ export declare const createConfig: API.OperationMethod; export type CreateRuleError = DuplicateMnmRuleName | MnmConfigMissing | Forbidden | CloudflareOpError; /** Create network monitoring rules for account. Currently only supports creating a single rule per API request. */ export declare const createRule: API.OperationMethod; export type CreateVpcFlowTokenError = CloudflareOpError; /** Generate authentication token for VPC flow logs export. */ export declare const createVpcFlowToken: API.OperationMethod; export type DeleteConfigError = MnmConfigNotFound | Forbidden | CloudflareOpError; /** Delete an existing network monitoring configuration. */ export declare const deleteConfig: API.OperationMethod; export type DeleteRuleError = MnmRuleNotFound | Forbidden | CloudflareOpError; /** Delete a network monitoring rule for account. */ export declare const deleteRule: API.OperationMethod; export type GetConfigError = Forbidden | CloudflareOpError; /** Lists default sampling, router IPs and warp devices for account. */ export declare const getConfig: API.OperationMethod; export type GetConfigFullError = CloudflareOpError; /** Lists default sampling, router IPs, warp devices, and rules for account. */ export declare const getConfigFull: API.OperationMethod; export type GetRuleError = MnmRuleNotFound | Forbidden | CloudflareOpError; /** List a single network monitoring rule for account. */ export declare const getRule: API.OperationMethod; export type ListRulesError = Forbidden | CloudflareOpError; /** Lists network monitoring rules for account. */ export declare const listRules: API.PaginatedOperationMethod; export type PatchConfigError = CloudflareOpError; /** Update fields in an existing network monitoring configuration. */ export declare const patchConfig: API.OperationMethod; export type PatchRuleError = MnmRuleNotFound | Forbidden | CloudflareOpError; /** Update a network monitoring rule for account. */ export declare const patchRule: API.OperationMethod; export type PatchRuleAdvertisementError = CloudflareOpError; /** Update advertisement for rule. */ export declare const patchRuleAdvertisement: API.OperationMethod; export type UpdateConfigError = Forbidden | InvalidMnmConfig | CloudflareOpError; /** Update an existing network monitoring configuration, requires the entire configuration to be updated at once. */ export declare const updateConfig: API.OperationMethod; export type UpdateRuleError = CloudflareOpError; /** Update network monitoring rules for account. */ export declare const updateRule: API.OperationMethod; //# sourceMappingURL=magic_network_monitoring.d.ts.map