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 Forbidden_base: S.Class, import("effect/Cause").YieldableError>; export declare class Forbidden extends /*@__PURE__*/ Forbidden_base { } declare const TestScheduleAlreadyExists_base: S.Class, import("effect/Cause").YieldableError>; export declare class TestScheduleAlreadyExists extends /*@__PURE__*/ TestScheduleAlreadyExists_base { } declare const TestScheduleNotFound_base: S.Class, import("effect/Cause").YieldableError>; export declare class TestScheduleNotFound extends /*@__PURE__*/ TestScheduleNotFound_base { } declare const TestScheduleQuotaReached_base: S.Class, import("effect/Cause").YieldableError>; export declare class TestScheduleQuotaReached extends /*@__PURE__*/ TestScheduleQuotaReached_base { } export type PagesTestsCreateRequestRegion = "asia-east1" | "asia-northeast1" | "asia-northeast2" | "asia-south1" | "asia-southeast1" | "australia-southeast1" | "europe-north1" | "europe-southwest1" | "europe-west1" | "europe-west2" | "europe-west3" | "europe-west4" | "europe-west8" | "europe-west9" | "me-west1" | "southamerica-east1" | "us-central1" | "us-east1" | "us-east4" | "us-south1" | "us-west1"; export declare const PagesTestsCreateRequestRegion: any; export interface CreatePageTestRequest { /** Identifier. */ zoneId: string; /** A URL. */ url: string; /** A test region. */ region?: PagesTestsCreateRequestRegion | (string & {}); } export declare const CreatePageTestRequest: S.Schema; export type PagesTestsCreateResponseDesktopReportDeviceType = "DESKTOP" | "MOBILE"; export declare const PagesTestsCreateResponseDesktopReportDeviceType: any; export type PagesTestsCreateResponseDesktopReportErrorCode = "NOT_REACHABLE" | "DNS_FAILURE" | "NOT_HTML" | "LIGHTHOUSE_TIMEOUT" | "UNKNOWN"; export declare const PagesTestsCreateResponseDesktopReportErrorCode: any; export interface PagesTestsCreateResponseDesktopReportError { /** The error code of the Lighthouse result. */ code?: PagesTestsCreateResponseDesktopReportErrorCode | null; /** Detailed error message. */ detail?: string | null; /** The final URL displayed to the user. */ finalDisplayedUrl?: string | null; } export declare const PagesTestsCreateResponseDesktopReportError: S.Schema; export type PagesTestsCreateResponseDesktopReportState = "RUNNING" | "COMPLETE" | "FAILED"; export declare const PagesTestsCreateResponseDesktopReportState: any; export interface PagesTestsCreateResponseDesktopReport { /** Cumulative Layout Shift. */ cls?: number | null; /** The type of device. */ deviceType?: PagesTestsCreateResponseDesktopReportDeviceType | null; error?: PagesTestsCreateResponseDesktopReportError | null; /** First Contentful Paint. */ fcp?: number | null; /** The URL to the full Lighthouse JSON report. */ jsonReportUrl?: string | null; /** Largest Contentful Paint. */ lcp?: number | null; /** The Lighthouse performance score. */ performanceScore?: number | null; /** Speed Index. */ si?: number | null; /** The state of the Lighthouse report. */ state?: PagesTestsCreateResponseDesktopReportState | null; /** Total Blocking Time. */ tbt?: number | null; /** Time To First Byte. */ ttfb?: number | null; /** Time To Interactive. */ tti?: number | null; } export declare const PagesTestsCreateResponseDesktopReport: S.Schema; export type PagesTestsCreateResponseRegionValue = "asia-east1" | "asia-northeast1" | "asia-northeast2" | "asia-south1" | "asia-southeast1" | "australia-southeast1" | "europe-north1" | "europe-southwest1" | "europe-west1" | "europe-west2" | "europe-west3" | "europe-west4" | "europe-west8" | "europe-west9" | "me-west1" | "southamerica-east1" | "us-central1" | "us-east1" | "us-east4" | "us-south1" | "us-west1"; export declare const PagesTestsCreateResponseRegionValue: any; export interface PagesTestsCreateResponseRegion { label?: string | null; /** A test region. */ value?: PagesTestsCreateResponseRegionValue | null; } export declare const PagesTestsCreateResponseRegion: S.Schema; export type PagesTestsCreateResponseScheduleFrequency = "DAILY" | "WEEKLY"; export declare const PagesTestsCreateResponseScheduleFrequency: any; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface CreatePageTestResponse { /** UUID. */ id?: string | null; date?: string | null; /** The Lighthouse report. */ desktopReport?: PagesTestsCreateResponseDesktopReport | null; /** The Lighthouse report. */ mobileReport?: PagesTestsCreateResponseDesktopReport | null; /** A test region with a label. */ region?: PagesTestsCreateResponseRegion | null; /** The frequency of the test. */ scheduleFrequency?: PagesTestsCreateResponseScheduleFrequency | null; /** A URL. */ url?: string | null; } export declare const CreatePageTestResponse: S.Schema; export type ScheduleCreateRequestFrequency = "DAILY" | "WEEKLY"; export declare const ScheduleCreateRequestFrequency: any; export type ScheduleCreateRequestRegion = "asia-east1" | "asia-northeast1" | "asia-northeast2" | "asia-south1" | "asia-southeast1" | "australia-southeast1" | "europe-north1" | "europe-southwest1" | "europe-west1" | "europe-west2" | "europe-west3" | "europe-west4" | "europe-west8" | "europe-west9" | "me-west1" | "southamerica-east1" | "us-central1" | "us-east1" | "us-east4" | "us-south1" | "us-west1"; export declare const ScheduleCreateRequestRegion: any; export interface CreateScheduleRequest { /** Identifier. */ zoneId: string; /** A URL. */ url: string; /** The frequency of the scheduled test. Defaults to WEEKLY for free plans, DAILY for paid plans. */ frequency?: ScheduleCreateRequestFrequency | (string & {}); /** A test region. */ region?: ScheduleCreateRequestRegion | (string & {}); } export declare const CreateScheduleRequest: S.Schema; export type ScheduleCreateResponseScheduleFrequency = "DAILY" | "WEEKLY"; export declare const ScheduleCreateResponseScheduleFrequency: any; export type ScheduleCreateResponseScheduleRegion = "asia-east1" | "asia-northeast1" | "asia-northeast2" | "asia-south1" | "asia-southeast1" | "australia-southeast1" | "europe-north1" | "europe-southwest1" | "europe-west1" | "europe-west2" | "europe-west3" | "europe-west4" | "europe-west8" | "europe-west9" | "me-west1" | "southamerica-east1" | "us-central1" | "us-east1" | "us-east4" | "us-south1" | "us-west1"; export declare const ScheduleCreateResponseScheduleRegion: any; export interface ScheduleCreateResponseSchedule { /** The frequency of the test. */ frequency?: ScheduleCreateResponseScheduleFrequency | null; /** A test region. */ region?: ScheduleCreateResponseScheduleRegion | null; /** A URL. */ url?: string | null; } export declare const ScheduleCreateResponseSchedule: S.Schema; export type ScheduleCreateResponseTestDesktopReportDeviceType = "DESKTOP" | "MOBILE"; export declare const ScheduleCreateResponseTestDesktopReportDeviceType: any; export type ScheduleCreateResponseTestDesktopReportErrorCode = "NOT_REACHABLE" | "DNS_FAILURE" | "NOT_HTML" | "LIGHTHOUSE_TIMEOUT" | "UNKNOWN"; export declare const ScheduleCreateResponseTestDesktopReportErrorCode: any; export interface ScheduleCreateResponseTestDesktopReportError { /** The error code of the Lighthouse result. */ code?: ScheduleCreateResponseTestDesktopReportErrorCode | null; /** Detailed error message. */ detail?: string | null; /** The final URL displayed to the user. */ finalDisplayedUrl?: string | null; } export declare const ScheduleCreateResponseTestDesktopReportError: S.Schema; export type ScheduleCreateResponseTestDesktopReportState = "RUNNING" | "COMPLETE" | "FAILED"; export declare const ScheduleCreateResponseTestDesktopReportState: any; export interface ScheduleCreateResponseTestDesktopReport { /** Cumulative Layout Shift. */ cls?: number | null; /** The type of device. */ deviceType?: ScheduleCreateResponseTestDesktopReportDeviceType | null; error?: ScheduleCreateResponseTestDesktopReportError | null; /** First Contentful Paint. */ fcp?: number | null; /** The URL to the full Lighthouse JSON report. */ jsonReportUrl?: string | null; /** Largest Contentful Paint. */ lcp?: number | null; /** The Lighthouse performance score. */ performanceScore?: number | null; /** Speed Index. */ si?: number | null; /** The state of the Lighthouse report. */ state?: ScheduleCreateResponseTestDesktopReportState | null; /** Total Blocking Time. */ tbt?: number | null; /** Time To First Byte. */ ttfb?: number | null; /** Time To Interactive. */ tti?: number | null; } export declare const ScheduleCreateResponseTestDesktopReport: S.Schema; export type ScheduleCreateResponseTestRegionValue = "asia-east1" | "asia-northeast1" | "asia-northeast2" | "asia-south1" | "asia-southeast1" | "australia-southeast1" | "europe-north1" | "europe-southwest1" | "europe-west1" | "europe-west2" | "europe-west3" | "europe-west4" | "europe-west8" | "europe-west9" | "me-west1" | "southamerica-east1" | "us-central1" | "us-east1" | "us-east4" | "us-south1" | "us-west1"; export declare const ScheduleCreateResponseTestRegionValue: any; export interface ScheduleCreateResponseTestRegion { label?: string | null; /** A test region. */ value?: ScheduleCreateResponseTestRegionValue | null; } export declare const ScheduleCreateResponseTestRegion: S.Schema; export type ScheduleCreateResponseTestScheduleFrequency = "DAILY" | "WEEKLY"; export declare const ScheduleCreateResponseTestScheduleFrequency: any; export interface ScheduleCreateResponseTest { /** UUID. */ id?: string | null; date?: string | null; /** The Lighthouse report. */ desktopReport?: ScheduleCreateResponseTestDesktopReport | null; /** The Lighthouse report. */ mobileReport?: ScheduleCreateResponseTestDesktopReport | null; /** A test region with a label. */ region?: ScheduleCreateResponseTestRegion | null; /** The frequency of the test. */ scheduleFrequency?: ScheduleCreateResponseTestScheduleFrequency | null; /** A URL. */ url?: string | null; } export declare const ScheduleCreateResponseTest: S.Schema; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface CreateScheduleResponse { /** The test schedule. */ schedule?: ScheduleCreateResponseSchedule | null; test?: ScheduleCreateResponseTest | null; } export declare const CreateScheduleResponse: S.Schema; export type PagesTestsDeleteRequestRegion = "asia-east1" | "asia-northeast1" | "asia-northeast2" | "asia-south1" | "asia-southeast1" | "australia-southeast1" | "europe-north1" | "europe-southwest1" | "europe-west1" | "europe-west2" | "europe-west3" | "europe-west4" | "europe-west8" | "europe-west9" | "me-west1" | "southamerica-east1" | "us-central1" | "us-east1" | "us-east4" | "us-south1" | "us-west1"; export declare const PagesTestsDeleteRequestRegion: any; export interface DeletePageTestRequest { /** Identifier. */ zoneId: string; /** A URL. */ url: string; /** A test region. */ region?: PagesTestsDeleteRequestRegion | (string & {}); } export declare const DeletePageTestRequest: S.Schema; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface DeletePageTestResponse { /** Number of items affected. */ count?: number | null; } export declare const DeletePageTestResponse: S.Schema; export type ScheduleDeleteRequestRegion = "asia-east1" | "asia-northeast1" | "asia-northeast2" | "asia-south1" | "asia-southeast1" | "australia-southeast1" | "europe-north1" | "europe-southwest1" | "europe-west1" | "europe-west2" | "europe-west3" | "europe-west4" | "europe-west8" | "europe-west9" | "me-west1" | "southamerica-east1" | "us-central1" | "us-east1" | "us-east4" | "us-south1" | "us-west1"; export declare const ScheduleDeleteRequestRegion: any; export interface DeleteScheduleRequest { /** Identifier. */ zoneId: string; /** A URL. */ url: string; /** A test region. */ region?: ScheduleDeleteRequestRegion | (string & {}); } export declare const DeleteScheduleRequest: S.Schema; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface DeleteScheduleResponse { /** Number of items affected. */ count?: number | null; } export declare const DeleteScheduleResponse: S.Schema; export interface GetPageTestRequest { /** Identifier. */ zoneId: string; /** A URL. */ url: string; testId: string; } export declare const GetPageTestRequest: S.Schema; export type PagesTestsGetResponseDesktopReportDeviceType = "DESKTOP" | "MOBILE"; export declare const PagesTestsGetResponseDesktopReportDeviceType: any; export type PagesTestsGetResponseDesktopReportErrorCode = "NOT_REACHABLE" | "DNS_FAILURE" | "NOT_HTML" | "LIGHTHOUSE_TIMEOUT" | "UNKNOWN"; export declare const PagesTestsGetResponseDesktopReportErrorCode: any; export interface PagesTestsGetResponseDesktopReportError { /** The error code of the Lighthouse result. */ code?: PagesTestsGetResponseDesktopReportErrorCode | null; /** Detailed error message. */ detail?: string | null; /** The final URL displayed to the user. */ finalDisplayedUrl?: string | null; } export declare const PagesTestsGetResponseDesktopReportError: S.Schema; export type PagesTestsGetResponseDesktopReportState = "RUNNING" | "COMPLETE" | "FAILED"; export declare const PagesTestsGetResponseDesktopReportState: any; export interface PagesTestsGetResponseDesktopReport { /** Cumulative Layout Shift. */ cls?: number | null; /** The type of device. */ deviceType?: PagesTestsGetResponseDesktopReportDeviceType | null; error?: PagesTestsGetResponseDesktopReportError | null; /** First Contentful Paint. */ fcp?: number | null; /** The URL to the full Lighthouse JSON report. */ jsonReportUrl?: string | null; /** Largest Contentful Paint. */ lcp?: number | null; /** The Lighthouse performance score. */ performanceScore?: number | null; /** Speed Index. */ si?: number | null; /** The state of the Lighthouse report. */ state?: PagesTestsGetResponseDesktopReportState | null; /** Total Blocking Time. */ tbt?: number | null; /** Time To First Byte. */ ttfb?: number | null; /** Time To Interactive. */ tti?: number | null; } export declare const PagesTestsGetResponseDesktopReport: S.Schema; export type PagesTestsGetResponseRegionValue = "asia-east1" | "asia-northeast1" | "asia-northeast2" | "asia-south1" | "asia-southeast1" | "australia-southeast1" | "europe-north1" | "europe-southwest1" | "europe-west1" | "europe-west2" | "europe-west3" | "europe-west4" | "europe-west8" | "europe-west9" | "me-west1" | "southamerica-east1" | "us-central1" | "us-east1" | "us-east4" | "us-south1" | "us-west1"; export declare const PagesTestsGetResponseRegionValue: any; export interface PagesTestsGetResponseRegion { label?: string | null; /** A test region. */ value?: PagesTestsGetResponseRegionValue | null; } export declare const PagesTestsGetResponseRegion: S.Schema; export type PagesTestsGetResponseScheduleFrequency = "DAILY" | "WEEKLY"; export declare const PagesTestsGetResponseScheduleFrequency: any; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface GetPageTestResponse { /** UUID. */ id?: string | null; date?: string | null; /** The Lighthouse report. */ desktopReport?: PagesTestsGetResponseDesktopReport | null; /** The Lighthouse report. */ mobileReport?: PagesTestsGetResponseDesktopReport | null; /** A test region with a label. */ region?: PagesTestsGetResponseRegion | null; /** The frequency of the test. */ scheduleFrequency?: PagesTestsGetResponseScheduleFrequency | null; /** A URL. */ url?: string | null; } export declare const GetPageTestResponse: S.Schema; export type ScheduleGetRequestRegion = "asia-east1" | "asia-northeast1" | "asia-northeast2" | "asia-south1" | "asia-southeast1" | "australia-southeast1" | "europe-north1" | "europe-southwest1" | "europe-west1" | "europe-west2" | "europe-west3" | "europe-west4" | "europe-west8" | "europe-west9" | "me-west1" | "southamerica-east1" | "us-central1" | "us-east1" | "us-east4" | "us-south1" | "us-west1"; export declare const ScheduleGetRequestRegion: any; export interface GetScheduleRequest { /** Identifier. */ zoneId: string; /** A URL. */ url: string; /** A test region. */ region?: ScheduleGetRequestRegion | (string & {}); } export declare const GetScheduleRequest: S.Schema; export type ScheduleGetResponseFrequency = "DAILY" | "WEEKLY"; export declare const ScheduleGetResponseFrequency: any; export type ScheduleGetResponseRegion = "asia-east1" | "asia-northeast1" | "asia-northeast2" | "asia-south1" | "asia-southeast1" | "australia-southeast1" | "europe-north1" | "europe-southwest1" | "europe-west1" | "europe-west2" | "europe-west3" | "europe-west4" | "europe-west8" | "europe-west9" | "me-west1" | "southamerica-east1" | "us-central1" | "us-east1" | "us-east4" | "us-south1" | "us-west1"; export declare const ScheduleGetResponseRegion: any; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface GetScheduleResponse { /** The frequency of the test. */ frequency?: ScheduleGetResponseFrequency | null; /** A test region. */ region?: ScheduleGetResponseRegion | null; /** A URL. */ url?: string | null; } export declare const GetScheduleResponse: S.Schema; export interface ListAvailabilitiesRequest { /** Identifier. */ zoneId: string; } export declare const ListAvailabilitiesRequest: S.Schema; export interface AvailabilitiesListResponseQuotaQuotasPerPlanValue { business?: number | null; enterprise?: number | null; free?: number | null; pro?: number | null; } export declare const AvailabilitiesListResponseQuotaQuotasPerPlanValue: S.Schema; export interface AvailabilitiesListResponseQuotaQuotasPerPlan { /** Counts per account plan. */ value?: AvailabilitiesListResponseQuotaQuotasPerPlanValue | null; } export declare const AvailabilitiesListResponseQuotaQuotasPerPlan: S.Schema; export type AvailabilitiesListResponseQuotaScheduleQuotasPerPlanValue = AvailabilitiesListResponseQuotaQuotasPerPlanValue; export declare const AvailabilitiesListResponseQuotaScheduleQuotasPerPlanValue: S.Schema; export type AvailabilitiesListResponseQuotaScheduleQuotasPerPlan = AvailabilitiesListResponseQuotaQuotasPerPlan; export declare const AvailabilitiesListResponseQuotaScheduleQuotasPerPlan: S.Schema; export interface AvailabilitiesListResponseQuota { /** Cloudflare plan. */ plan?: string | null; /** The number of tests available per plan. */ quotasPerPlan?: AvailabilitiesListResponseQuotaQuotasPerPlan | null; /** The number of remaining schedules available. */ remainingSchedules?: number | null; /** The number of remaining tests available. */ remainingTests?: number | null; /** The number of schedules available per plan. */ scheduleQuotasPerPlan?: AvailabilitiesListResponseQuotaQuotasPerPlan | null; } export declare const AvailabilitiesListResponseQuota: S.Schema; export type AvailabilitiesListResponseRegionsItemValue = "asia-east1" | "asia-northeast1" | "asia-northeast2" | "asia-south1" | "asia-southeast1" | "australia-southeast1" | "europe-north1" | "europe-southwest1" | "europe-west1" | "europe-west2" | "europe-west3" | "europe-west4" | "europe-west8" | "europe-west9" | "me-west1" | "southamerica-east1" | "us-central1" | "us-east1" | "us-east4" | "us-south1" | "us-west1"; export declare const AvailabilitiesListResponseRegionsItemValue: any; export interface AvailabilitiesListResponseRegionsItem { label?: string | null; /** A test region. */ value?: AvailabilitiesListResponseRegionsItemValue | null; } export declare const AvailabilitiesListResponseRegionsItem: S.Schema; export type AvailabilitiesListResponseRegionsList = Array; export declare const AvailabilitiesListResponseRegionsList: S.Schema; export interface AvailabilitiesListResponseRegionsPerPlanBusinessItem { label?: string | null; /** A test region. */ value?: string | null; } export declare const AvailabilitiesListResponseRegionsPerPlanBusinessItem: S.Schema; export type AvailabilitiesListResponseRegionsPerPlanBusinessList = Array; export declare const AvailabilitiesListResponseRegionsPerPlanBusinessList: S.Schema; export type AvailabilitiesListResponseRegionsPerPlanEnterpriseItem = AvailabilitiesListResponseRegionsPerPlanBusinessItem; export declare const AvailabilitiesListResponseRegionsPerPlanEnterpriseItem: S.Schema; export type AvailabilitiesListResponseRegionsPerPlanEnterpriseList = Array; export declare const AvailabilitiesListResponseRegionsPerPlanEnterpriseList: S.Schema; export type AvailabilitiesListResponseRegionsPerPlanFreeItem = AvailabilitiesListResponseRegionsPerPlanBusinessItem; export declare const AvailabilitiesListResponseRegionsPerPlanFreeItem: S.Schema; export type AvailabilitiesListResponseRegionsPerPlanFreeList = Array; export declare const AvailabilitiesListResponseRegionsPerPlanFreeList: S.Schema; export type AvailabilitiesListResponseRegionsPerPlanProItem = AvailabilitiesListResponseRegionsPerPlanBusinessItem; export declare const AvailabilitiesListResponseRegionsPerPlanProItem: S.Schema; export type AvailabilitiesListResponseRegionsPerPlanProList = Array; export declare const AvailabilitiesListResponseRegionsPerPlanProList: S.Schema; export interface AvailabilitiesListResponseRegionsPerPlan { business?: AvailabilitiesListResponseRegionsPerPlanBusinessList | null; enterprise?: AvailabilitiesListResponseRegionsPerPlanEnterpriseList | null; free?: AvailabilitiesListResponseRegionsPerPlanFreeList | null; pro?: AvailabilitiesListResponseRegionsPerPlanProList | null; } export declare const AvailabilitiesListResponseRegionsPerPlan: S.Schema; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface ListAvailabilitiesResponse { quota?: AvailabilitiesListResponseQuota | null; regions?: AvailabilitiesListResponseRegionsList | null; /** Available regions. */ regionsPerPlan?: AvailabilitiesListResponseRegionsPerPlan | null; } export declare const ListAvailabilitiesResponse: S.Schema; export interface ListPagesRequest { /** Identifier. */ zoneId: string; } export declare const ListPagesRequest: S.Schema; export type PagesListResultItemRegionValue = "asia-east1" | "asia-northeast1" | "asia-northeast2" | "asia-south1" | "asia-southeast1" | "australia-southeast1" | "europe-north1" | "europe-southwest1" | "europe-west1" | "europe-west2" | "europe-west3" | "europe-west4" | "europe-west8" | "europe-west9" | "me-west1" | "southamerica-east1" | "us-central1" | "us-east1" | "us-east4" | "us-south1" | "us-west1"; export declare const PagesListResultItemRegionValue: any; export interface PagesListResultItemRegion { label?: string | null; /** A test region. */ value?: PagesListResultItemRegionValue | null; } export declare const PagesListResultItemRegion: S.Schema; export type PagesListResultItemScheduleFrequency = "DAILY" | "WEEKLY"; export declare const PagesListResultItemScheduleFrequency: any; export type PagesListResultItemTestsItemDesktopReportDeviceType = "DESKTOP" | "MOBILE"; export declare const PagesListResultItemTestsItemDesktopReportDeviceType: any; export type PagesListResultItemTestsItemDesktopReportErrorCode = "NOT_REACHABLE" | "DNS_FAILURE" | "NOT_HTML" | "LIGHTHOUSE_TIMEOUT" | "UNKNOWN"; export declare const PagesListResultItemTestsItemDesktopReportErrorCode: any; export interface PagesListResultItemTestsItemDesktopReportError { /** The error code of the Lighthouse result. */ code?: PagesListResultItemTestsItemDesktopReportErrorCode | null; /** Detailed error message. */ detail?: string | null; /** The final URL displayed to the user. */ finalDisplayedUrl?: string | null; } export declare const PagesListResultItemTestsItemDesktopReportError: S.Schema; export type PagesListResultItemTestsItemDesktopReportState = "RUNNING" | "COMPLETE" | "FAILED"; export declare const PagesListResultItemTestsItemDesktopReportState: any; export interface PagesListResultItemTestsItemDesktopReport { /** Cumulative Layout Shift. */ cls?: number | null; /** The type of device. */ deviceType?: PagesListResultItemTestsItemDesktopReportDeviceType | null; error?: PagesListResultItemTestsItemDesktopReportError | null; /** First Contentful Paint. */ fcp?: number | null; /** The URL to the full Lighthouse JSON report. */ jsonReportUrl?: string | null; /** Largest Contentful Paint. */ lcp?: number | null; /** The Lighthouse performance score. */ performanceScore?: number | null; /** Speed Index. */ si?: number | null; /** The state of the Lighthouse report. */ state?: PagesListResultItemTestsItemDesktopReportState | null; /** Total Blocking Time. */ tbt?: number | null; /** Time To First Byte. */ ttfb?: number | null; /** Time To Interactive. */ tti?: number | null; } export declare const PagesListResultItemTestsItemDesktopReport: S.Schema; export type PagesListResultItemTestsItemScheduleFrequency = "DAILY" | "WEEKLY"; export declare const PagesListResultItemTestsItemScheduleFrequency: any; export interface PagesListResultItemTestsItem { /** UUID. */ id?: string | null; date?: string | null; /** The Lighthouse report. */ desktopReport?: PagesListResultItemTestsItemDesktopReport | null; /** The Lighthouse report. */ mobileReport?: PagesListResultItemTestsItemDesktopReport | null; /** A test region with a label. */ region?: PagesListResultItemRegion | null; /** The frequency of the test. */ scheduleFrequency?: PagesListResultItemTestsItemScheduleFrequency | null; /** A URL. */ url?: string | null; } export declare const PagesListResultItemTestsItem: S.Schema; export type PagesListResultItemTestsList = Array; export declare const PagesListResultItemTestsList: S.Schema; export interface PagesListResultItem { /** A test region with a label. */ region?: PagesListResultItemRegion | null; /** The frequency of the test. */ scheduleFrequency?: PagesListResultItemScheduleFrequency | null; tests?: PagesListResultItemTestsList | null; /** A URL. */ url?: string | null; } export declare const PagesListResultItem: S.Schema; export type PagesListResultList = Array; export declare const PagesListResultList: S.Schema; export interface ListPagesResponse { /** The unwrapped `result` payload of the v4 response envelope. */ result: PagesListResultList; /** Pagination info from the envelope's `result_info`. */ resultInfo?: ResultInfo | null; } export declare const ListPagesResponse: S.Schema; export type PagesTestsListRequestRegion = "asia-east1" | "asia-northeast1" | "asia-northeast2" | "asia-south1" | "asia-southeast1" | "australia-southeast1" | "europe-north1" | "europe-southwest1" | "europe-west1" | "europe-west2" | "europe-west3" | "europe-west4" | "europe-west8" | "europe-west9" | "me-west1" | "southamerica-east1" | "us-central1" | "us-east1" | "us-east4" | "us-south1" | "us-west1"; export declare const PagesTestsListRequestRegion: any; export interface ListPageTestsRequest { /** Identifier. */ zoneId: string; /** A URL. */ url: string; page?: number; perPage?: number; /** A test region. */ region?: PagesTestsListRequestRegion | (string & {}); } export declare const ListPageTestsRequest: S.Schema; export type PagesTestsListResultItemDesktopReportDeviceType = "DESKTOP" | "MOBILE"; export declare const PagesTestsListResultItemDesktopReportDeviceType: any; export type PagesTestsListResultItemDesktopReportErrorCode = "NOT_REACHABLE" | "DNS_FAILURE" | "NOT_HTML" | "LIGHTHOUSE_TIMEOUT" | "UNKNOWN"; export declare const PagesTestsListResultItemDesktopReportErrorCode: any; export interface PagesTestsListResultItemDesktopReportError { /** The error code of the Lighthouse result. */ code?: PagesTestsListResultItemDesktopReportErrorCode | null; /** Detailed error message. */ detail?: string | null; /** The final URL displayed to the user. */ finalDisplayedUrl?: string | null; } export declare const PagesTestsListResultItemDesktopReportError: S.Schema; export type PagesTestsListResultItemDesktopReportState = "RUNNING" | "COMPLETE" | "FAILED"; export declare const PagesTestsListResultItemDesktopReportState: any; export interface PagesTestsListResultItemDesktopReport { /** Cumulative Layout Shift. */ cls?: number | null; /** The type of device. */ deviceType?: PagesTestsListResultItemDesktopReportDeviceType | null; error?: PagesTestsListResultItemDesktopReportError | null; /** First Contentful Paint. */ fcp?: number | null; /** The URL to the full Lighthouse JSON report. */ jsonReportUrl?: string | null; /** Largest Contentful Paint. */ lcp?: number | null; /** The Lighthouse performance score. */ performanceScore?: number | null; /** Speed Index. */ si?: number | null; /** The state of the Lighthouse report. */ state?: PagesTestsListResultItemDesktopReportState | null; /** Total Blocking Time. */ tbt?: number | null; /** Time To First Byte. */ ttfb?: number | null; /** Time To Interactive. */ tti?: number | null; } export declare const PagesTestsListResultItemDesktopReport: S.Schema; export type PagesTestsListResultItemRegionValue = "asia-east1" | "asia-northeast1" | "asia-northeast2" | "asia-south1" | "asia-southeast1" | "australia-southeast1" | "europe-north1" | "europe-southwest1" | "europe-west1" | "europe-west2" | "europe-west3" | "europe-west4" | "europe-west8" | "europe-west9" | "me-west1" | "southamerica-east1" | "us-central1" | "us-east1" | "us-east4" | "us-south1" | "us-west1"; export declare const PagesTestsListResultItemRegionValue: any; export interface PagesTestsListResultItemRegion { label?: string | null; /** A test region. */ value?: PagesTestsListResultItemRegionValue | null; } export declare const PagesTestsListResultItemRegion: S.Schema; export type PagesTestsListResultItemScheduleFrequency = "DAILY" | "WEEKLY"; export declare const PagesTestsListResultItemScheduleFrequency: any; export interface PagesTestsListResultItem { /** UUID. */ id?: string | null; date?: string | null; /** The Lighthouse report. */ desktopReport?: PagesTestsListResultItemDesktopReport | null; /** The Lighthouse report. */ mobileReport?: PagesTestsListResultItemDesktopReport | null; /** A test region with a label. */ region?: PagesTestsListResultItemRegion | null; /** The frequency of the test. */ scheduleFrequency?: PagesTestsListResultItemScheduleFrequency | null; /** A URL. */ url?: string | null; } export declare const PagesTestsListResultItem: S.Schema; export type PagesTestsListResultList = Array; export declare const PagesTestsListResultList: S.Schema; export interface ListPageTestsResponse { /** The unwrapped `result` payload of the v4 response envelope. */ result: PagesTestsListResultList; /** Pagination info from the envelope's `result_info`. */ resultInfo?: ResultInfo | null; } export declare const ListPageTestsResponse: S.Schema; export type PagesTrendRequestDeviceType = "DESKTOP" | "MOBILE"; export declare const PagesTrendRequestDeviceType: any; export type PagesTrendRequestRegion = "asia-east1" | "asia-northeast1" | "asia-northeast2" | "asia-south1" | "asia-southeast1" | "australia-southeast1" | "europe-north1" | "europe-southwest1" | "europe-west1" | "europe-west2" | "europe-west3" | "europe-west4" | "europe-west8" | "europe-west9" | "me-west1" | "southamerica-east1" | "us-central1" | "us-east1" | "us-east4" | "us-south1" | "us-west1"; export declare const PagesTrendRequestRegion: any; export interface TrendPageRequest { /** Identifier. */ zoneId: string; /** A URL. */ url: string; /** The type of device. */ deviceType: PagesTrendRequestDeviceType | (string & {}); /** A comma-separated list of metrics to include in the results. */ metrics: string; /** A test region. */ region: PagesTrendRequestRegion | (string & {}); start: string; /** The timezone of the start and end timestamps. */ tz: string; end?: string; } export declare const TrendPageRequest: S.Schema; export type PagesTrendResponseClsList = Array; export declare const PagesTrendResponseClsList: S.Schema; export type PagesTrendResponseFcpList = Array; export declare const PagesTrendResponseFcpList: S.Schema; export type PagesTrendResponseLcpList = Array; export declare const PagesTrendResponseLcpList: S.Schema; export type PagesTrendResponsePerformanceScoreList = Array; export declare const PagesTrendResponsePerformanceScoreList: S.Schema; export type PagesTrendResponseSiList = Array; export declare const PagesTrendResponseSiList: S.Schema; export type PagesTrendResponseTbtList = Array; export declare const PagesTrendResponseTbtList: S.Schema; export type PagesTrendResponseTtfbList = Array; export declare const PagesTrendResponseTtfbList: S.Schema; export type PagesTrendResponseTtiList = Array; export declare const PagesTrendResponseTtiList: S.Schema; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface TrendPageResponse { /** Cumulative Layout Shift trend. */ cls?: PagesTrendResponseClsList | null; /** First Contentful Paint trend. */ fcp?: PagesTrendResponseFcpList | null; /** Largest Contentful Paint trend. */ lcp?: PagesTrendResponseLcpList | null; /** The Lighthouse score trend. */ performanceScore?: PagesTrendResponsePerformanceScoreList | null; /** Speed Index trend. */ si?: PagesTrendResponseSiList | null; /** Total Blocking Time trend. */ tbt?: PagesTrendResponseTbtList | null; /** Time To First Byte trend. */ ttfb?: PagesTrendResponseTtfbList | null; /** Time To Interactive trend. */ tti?: PagesTrendResponseTtiList | null; } export declare const TrendPageResponse: S.Schema; export type CreatePageTestError = CloudflareOpError; /** Starts a test for a specific webpage, in a specific region. */ export declare const createPageTest: API.OperationMethod; export type CreateScheduleError = TestScheduleAlreadyExists | TestScheduleQuotaReached | Forbidden | CloudflareOpError; /** Creates a scheduled test for a page. */ export declare const createSchedule: API.OperationMethod; export type DeletePageTestError = CloudflareOpError; /** Deletes all tests for a specific webpage from a specific region. Deleted tests are still counted as part of the quota. */ export declare const deletePageTest: API.OperationMethod; export type DeleteScheduleError = TestScheduleNotFound | Forbidden | CloudflareOpError; /** Deletes a scheduled test for a page. */ export declare const deleteSchedule: API.OperationMethod; export type GetPageTestError = CloudflareOpError; /** Retrieves the result of a specific test. */ export declare const getPageTest: API.OperationMethod; export type GetScheduleError = TestScheduleNotFound | Forbidden | CloudflareOpError; /** Retrieves the test schedule for a page in a specific region. */ export declare const getSchedule: API.OperationMethod; export type ListAvailabilitiesError = CloudflareOpError; /** Retrieves quota for all plans, as well as the current zone quota. */ export declare const listAvailabilities: API.OperationMethod; export type ListPagesError = CloudflareOpError; /** Lists all webpages which have been tested. */ export declare const listPages: API.PaginatedOperationMethod; export type ListPageTestsError = CloudflareOpError; /** Test history (list of tests) for a specific webpage. */ export declare const listPageTests: API.PaginatedOperationMethod; export type TrendPageError = CloudflareOpError; /** Lists the core web vital metrics trend over time for a specific page. */ export declare const trendPage: API.OperationMethod; //# sourceMappingURL=speed.d.ts.map