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 EndpointHealthcheckNotFound_base: S.Class, import("effect/Cause").YieldableError>; export declare class EndpointHealthcheckNotFound extends /*@__PURE__*/ EndpointHealthcheckNotFound_base { } declare const Forbidden_base: S.Class, import("effect/Cause").YieldableError>; export declare class Forbidden extends /*@__PURE__*/ Forbidden_base { } declare const InvalidHealthcheckEndpoint_base: S.Class, import("effect/Cause").YieldableError>; export declare class InvalidHealthcheckEndpoint extends /*@__PURE__*/ InvalidHealthcheckEndpoint_base { } export type EndpointHealthchecksCreateRequestCheckType = "icmp"; export declare const EndpointHealthchecksCreateRequestCheckType: any; export interface CreateEndpointHealthcheckRequest { /** Identifier */ accountId: string; /** type of check to perform */ checkType: EndpointHealthchecksCreateRequestCheckType | (string & {}); /** the IP address of the host to perform checks against */ endpoint: string; /** Optional name associated with this check */ name?: string; } export declare const CreateEndpointHealthcheckRequest: S.Schema; export type EndpointHealthchecksCreateResponseCheckType = "icmp"; export declare const EndpointHealthchecksCreateResponseCheckType: any; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface CreateEndpointHealthcheckResponse { /** type of check to perform */ checkType: EndpointHealthchecksCreateResponseCheckType; /** the IP address of the host to perform checks against */ endpoint: string; /** UUID. */ id?: string | null; /** Optional name associated with this check */ name?: string | null; } export declare const CreateEndpointHealthcheckResponse: S.Schema; export type TraceroutesCreateRequestTargetsList = Array; export declare const TraceroutesCreateRequestTargetsList: S.Schema; export type TraceroutesCreateRequestColosList = Array; export declare const TraceroutesCreateRequestColosList: S.Schema; export type TraceroutesCreateRequestOptionsPacketType = "icmp" | "tcp" | "udp" | "gre" | "gre+icmp"; export declare const TraceroutesCreateRequestOptionsPacketType: any; export interface TraceroutesCreateRequestOptions { /** Max TTL. */ maxTtl?: number; /** Type of packet sent. */ packetType?: TraceroutesCreateRequestOptionsPacketType | (string & {}); /** Number of packets sent at each TTL. */ packetsPerTtl?: number; /** For UDP and TCP, specifies the destination port. For ICMP, specifies the initial ICMP sequence value. Default value 0 will choose the best value to use for each protocol. */ port?: number; /** Set the time (in seconds) to wait for a response to a probe. */ waitTime?: number; } export declare const TraceroutesCreateRequestOptions: S.Schema; export interface CreateTracerouteRequest { /** Identifier */ accountId: string; targets: TraceroutesCreateRequestTargetsList; /** If no source colo names specified, all colos will be used. China colos are unavailable for traceroutes. */ colos?: TraceroutesCreateRequestColosList; options?: TraceroutesCreateRequestOptions; } export declare const CreateTracerouteRequest: S.Schema; export interface TraceroutesCreateResultItemColosItemColo { /** Source colo city. */ city?: string | null; /** Source colo name. */ name?: string | null; } export declare const TraceroutesCreateResultItemColosItemColo: S.Schema; export type TraceroutesCreateResultItemColosItemError = "" | "Could not gather traceroute data: Code 1" | "Could not gather traceroute data: Code 2" | "Could not gather traceroute data: Code 3" | "Could not gather traceroute data: Code 4"; export declare const TraceroutesCreateResultItemColosItemError: any; export type TraceroutesCreateResultItemColosItemHopsItemNodesItemLabelsList = Array; export declare const TraceroutesCreateResultItemColosItemHopsItemNodesItemLabelsList: S.Schema; export interface TraceroutesCreateResultItemColosItemHopsItemNodesItem { /** AS number associated with the node object. */ asn?: string | null; /** IP address of the node. */ ip?: string | null; /** Field appears if there is an additional annotation printed when the probe returns. Field also appears when running a GRE+ICMP traceroute to denote which traceroute a node comes from. */ labels?: TraceroutesCreateResultItemColosItemHopsItemNodesItemLabelsList | null; /** Maximum RTT in ms. */ maxRttMs?: number | null; /** Mean RTT in ms. */ meanRttMs?: number | null; /** Minimum RTT in ms. */ minRttMs?: number | null; /** Host name of the address, this may be the same as the IP address. */ name?: string | null; /** Number of packets with a response from this node. */ packetCount?: number | null; /** Standard deviation of the RTTs in ms. */ stdDevRttMs?: number | null; } export declare const TraceroutesCreateResultItemColosItemHopsItemNodesItem: S.Schema; export type TraceroutesCreateResultItemColosItemHopsItemNodesList = Array; export declare const TraceroutesCreateResultItemColosItemHopsItemNodesList: S.Schema; export interface TraceroutesCreateResultItemColosItemHopsItem { /** An array of node objects. */ nodes?: TraceroutesCreateResultItemColosItemHopsItemNodesList | null; /** Number of packets where no response was received. */ packetsLost?: number | null; /** Number of packets sent with specified TTL. */ packetsSent?: number | null; /** The time to live (TTL). */ packetsTtl?: number | null; } export declare const TraceroutesCreateResultItemColosItemHopsItem: S.Schema; export type TraceroutesCreateResultItemColosItemHopsList = Array; export declare const TraceroutesCreateResultItemColosItemHopsList: S.Schema; export interface TraceroutesCreateResultItemColosItem { colo?: TraceroutesCreateResultItemColosItemColo | null; /** Errors resulting from collecting traceroute from colo to target. */ error?: TraceroutesCreateResultItemColosItemError | null; hops?: TraceroutesCreateResultItemColosItemHopsList | null; /** Aggregated statistics from all hops about the target. */ targetSummary?: unknown | null; /** Total time of traceroute in ms. */ tracerouteTimeMs?: number | null; } export declare const TraceroutesCreateResultItemColosItem: S.Schema; export type TraceroutesCreateResultItemColosList = Array; export declare const TraceroutesCreateResultItemColosList: S.Schema; export interface TraceroutesCreateResultItem { colos?: TraceroutesCreateResultItemColosList | null; /** The target hostname, IPv6, or IPv6 address. */ target?: string | null; } export declare const TraceroutesCreateResultItem: S.Schema; export type TraceroutesCreateResultList = Array; export declare const TraceroutesCreateResultList: S.Schema; export interface CreateTracerouteResponse { /** The unwrapped `result` payload of the v4 response envelope. */ result: TraceroutesCreateResultList; /** Pagination info from the envelope's `result_info`. */ resultInfo?: ResultInfo | null; } export declare const CreateTracerouteResponse: S.Schema; export interface DeleteEndpointHealthcheckRequest { /** Identifier */ accountId: string; /** UUID. */ id: string; } export declare const DeleteEndpointHealthcheckRequest: S.Schema; export interface DeleteEndpointHealthcheckResponse { } export declare const DeleteEndpointHealthcheckResponse: S.Schema; export interface GetEndpointHealthcheckRequest { /** Identifier */ accountId: string; /** UUID. */ id: string; } export declare const GetEndpointHealthcheckRequest: S.Schema; export type EndpointHealthchecksGetResponseCheckType = "icmp"; export declare const EndpointHealthchecksGetResponseCheckType: any; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface GetEndpointHealthcheckResponse { /** type of check to perform */ checkType: EndpointHealthchecksGetResponseCheckType; /** the IP address of the host to perform checks against */ endpoint: string; /** UUID. */ id?: string | null; /** Optional name associated with this check */ name?: string | null; } export declare const GetEndpointHealthcheckResponse: S.Schema; export interface ListEndpointHealthchecksRequest { /** Identifier */ accountId: string; } export declare const ListEndpointHealthchecksRequest: S.Schema; export type EndpointHealthchecksListResponseCheckType = "icmp"; export declare const EndpointHealthchecksListResponseCheckType: any; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface ListEndpointHealthchecksItem { /** type of check to perform */ checkType: EndpointHealthchecksListResponseCheckType; /** the IP address of the host to perform checks against */ endpoint: string; /** UUID. */ id?: string | null; /** Optional name associated with this check */ name?: string | null; } export declare const ListEndpointHealthchecksItem: S.Schema; export type ListEndpointHealthchecksItemsList = Array; export declare const ListEndpointHealthchecksItemsList: S.Schema; export type ListEndpointHealthchecksResponse = ListEndpointHealthchecksItemsList; export declare const ListEndpointHealthchecksResponse: S.Schema; export type EndpointHealthchecksUpdateRequestCheckType = "icmp"; export declare const EndpointHealthchecksUpdateRequestCheckType: any; export interface UpdateEndpointHealthcheckRequest { /** Identifier */ accountId: string; /** UUID. */ id: string; /** type of check to perform */ checkType: EndpointHealthchecksUpdateRequestCheckType | (string & {}); /** the IP address of the host to perform checks against */ endpoint: string; /** Optional name associated with this check */ name?: string; } export declare const UpdateEndpointHealthcheckRequest: S.Schema; export type EndpointHealthchecksUpdateResponseCheckType = "icmp"; export declare const EndpointHealthchecksUpdateResponseCheckType: any; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface UpdateEndpointHealthcheckResponse { /** type of check to perform */ checkType: EndpointHealthchecksUpdateResponseCheckType; /** the IP address of the host to perform checks against */ endpoint: string; /** UUID. */ id?: string | null; /** Optional name associated with this check */ name?: string | null; } export declare const UpdateEndpointHealthcheckResponse: S.Schema; export type CreateEndpointHealthcheckError = InvalidHealthcheckEndpoint | Forbidden | CloudflareOpError; /** Create Endpoint Health Check. */ export declare const createEndpointHealthcheck: API.OperationMethod; export type CreateTracerouteError = CloudflareOpError; /** Run traceroutes from Cloudflare colos. */ export declare const createTraceroute: API.PaginatedOperationMethod; export type DeleteEndpointHealthcheckError = EndpointHealthcheckNotFound | Forbidden | CloudflareOpError; /** Delete Endpoint Health Check. */ export declare const deleteEndpointHealthcheck: API.OperationMethod; export type GetEndpointHealthcheckError = EndpointHealthcheckNotFound | Forbidden | CloudflareOpError; /** Get a single Endpoint Health Check. */ export declare const getEndpointHealthcheck: API.OperationMethod; export type ListEndpointHealthchecksError = Forbidden | CloudflareOpError; /** List Endpoint Health Checks. */ export declare const listEndpointHealthchecks: API.OperationMethod; export type UpdateEndpointHealthcheckError = EndpointHealthcheckNotFound | InvalidHealthcheckEndpoint | Forbidden | CloudflareOpError; /** Update a Endpoint Health Check. */ export declare const updateEndpointHealthcheck: API.OperationMethod; //# sourceMappingURL=diagnostics.d.ts.map