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 }; export interface CreateAssetForAccountRequest { /** The Account ID to use for this endpoint. Mutually exclusive with the Zone ID. */ accountId: string; /** A short description of the custom asset. */ description: string; /** The unique name of the custom asset. Can only contain letters (A-Z, a-z), numbers (0-9), and underscores (_). */ name: string; /** The URL where the asset content is fetched from. */ url: string; } export declare const CreateAssetForAccountRequest: S.Schema; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface CreateAssetResponse { /** A short description of the custom asset. */ description?: string | null; lastUpdated?: string | null; /** The unique name of the custom asset. Can only contain letters (A-Z, a-z), numbers (0-9), and underscores (_). */ name?: string | null; /** The size of the asset content in bytes. */ sizeBytes?: number | null; /** The URL where the asset content is fetched from. */ url?: string | null; } export declare const CreateAssetResponse: S.Schema; export interface CreateAssetForZoneRequest { /** The Zone ID to use for this endpoint. Mutually exclusive with the Account ID. */ zoneId: string; /** A short description of the custom asset. */ description: string; /** The unique name of the custom asset. Can only contain letters (A-Z, a-z), numbers (0-9), and underscores (_). */ name: string; /** The URL where the asset content is fetched from. */ url: string; } export declare const CreateAssetForZoneRequest: S.Schema; export interface DeleteAssetForAccountRequest { /** The Account ID to use for this endpoint. Mutually exclusive with the Zone ID. */ accountId: string; /** The unique name of the custom asset. Can only contain letters (A-Z, a-z), numbers (0-9), and underscores (_). */ assetName: string; } export declare const DeleteAssetForAccountRequest: S.Schema; export interface DeleteAssetForAccountResponse { } export declare const DeleteAssetForAccountResponse: S.Schema; export interface DeleteAssetForZoneRequest { /** The Zone ID to use for this endpoint. Mutually exclusive with the Account ID. */ zoneId: string; /** The unique name of the custom asset. Can only contain letters (A-Z, a-z), numbers (0-9), and underscores (_). */ assetName: string; } export declare const DeleteAssetForZoneRequest: S.Schema; export interface DeleteAssetForZoneResponse { } export declare const DeleteAssetForZoneResponse: S.Schema; export interface GetAssetForAccountRequest { /** The Account ID to use for this endpoint. Mutually exclusive with the Zone ID. */ accountId: string; /** The unique name of the custom asset. Can only contain letters (A-Z, a-z), numbers (0-9), and underscores (_). */ assetName: string; } export declare const GetAssetForAccountRequest: S.Schema; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface GetAssetResponse { /** A short description of the custom asset. */ description?: string | null; lastUpdated?: string | null; /** The unique name of the custom asset. Can only contain letters (A-Z, a-z), numbers (0-9), and underscores (_). */ name?: string | null; /** The size of the asset content in bytes. */ sizeBytes?: number | null; /** The URL where the asset content is fetched from. */ url?: string | null; } export declare const GetAssetResponse: S.Schema; export interface GetAssetForZoneRequest { /** The Zone ID to use for this endpoint. Mutually exclusive with the Account ID. */ zoneId: string; /** The unique name of the custom asset. Can only contain letters (A-Z, a-z), numbers (0-9), and underscores (_). */ assetName: string; } export declare const GetAssetForZoneRequest: S.Schema; export type GetRequestIdentifier = "1000_errors" | "500_errors" | "basic_challenge" | "country_challenge" | "ip_block" | "managed_challenge" | "ratelimit_block" | "under_attack" | "waf_block" | "waf_challenge"; export declare const GetRequestIdentifier: any; export interface GetCustomPageForAccountRequest { /** The Account ID to use for this endpoint. Mutually exclusive with the Zone ID. */ accountId: string; /** Error Page Types */ identifier: GetRequestIdentifier | (string & {}); } export declare const GetCustomPageForAccountRequest: S.Schema; export type GetResponseRequiredTokensList = Array; export declare const GetResponseRequiredTokensList: S.Schema; export type GetResponseState = "default" | "customized"; export declare const GetResponseState: any; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface GetCustomPageResponse { id?: string | null; createdOn?: string | null; description?: string | null; modifiedOn?: string | null; previewTarget?: string | null; requiredTokens?: GetResponseRequiredTokensList | null; /** The custom page state. */ state?: GetResponseState | null; /** The URL associated with the custom page. */ url?: string | null; } export declare const GetCustomPageResponse: S.Schema; export interface GetCustomPageForZoneRequest { /** The Zone ID to use for this endpoint. Mutually exclusive with the Account ID. */ zoneId: string; /** Error Page Types */ identifier: GetRequestIdentifier | (string & {}); } export declare const GetCustomPageForZoneRequest: S.Schema; export interface ListAssetsForAccountRequest { /** The Account ID to use for this endpoint. Mutually exclusive with the Zone ID. */ accountId: string; page?: number; perPage?: number; } export declare const ListAssetsForAccountRequest: S.Schema; export interface AssetsListResultItem { /** A short description of the custom asset. */ description?: string | null; lastUpdated?: string | null; /** The unique name of the custom asset. Can only contain letters (A-Z, a-z), numbers (0-9), and underscores (_). */ name?: string | null; /** The size of the asset content in bytes. */ sizeBytes?: number | null; /** The URL where the asset content is fetched from. */ url?: string | null; } export declare const AssetsListResultItem: S.Schema; export type AssetsListResultList = Array; export declare const AssetsListResultList: S.Schema; export interface ListAssetsResponse { /** The unwrapped `result` payload of the v4 response envelope. */ result: AssetsListResultList; /** Pagination info from the envelope's `result_info`. */ resultInfo?: ResultInfo | null; } export declare const ListAssetsResponse: S.Schema; export interface ListAssetsForZoneRequest { /** The Zone ID to use for this endpoint. Mutually exclusive with the Account ID. */ zoneId: string; page?: number; perPage?: number; } export declare const ListAssetsForZoneRequest: S.Schema; export interface ListCustomPagesForAccountRequest { /** The Account ID to use for this endpoint. Mutually exclusive with the Zone ID. */ accountId: string; } export declare const ListCustomPagesForAccountRequest: S.Schema; export type ListResultItemRequiredTokensList = Array; export declare const ListResultItemRequiredTokensList: S.Schema; export type ListResultItemState = "default" | "customized"; export declare const ListResultItemState: any; export interface ListResultItem { id?: string | null; createdOn?: string | null; description?: string | null; modifiedOn?: string | null; previewTarget?: string | null; requiredTokens?: ListResultItemRequiredTokensList | null; /** The custom page state. */ state?: ListResultItemState | null; /** The URL associated with the custom page. */ url?: string | null; } export declare const ListResultItem: S.Schema; export type ListResultList = Array; export declare const ListResultList: S.Schema; export interface ListCustomPagesResponse { /** The unwrapped `result` payload of the v4 response envelope. */ result: ListResultList; /** Pagination info from the envelope's `result_info`. */ resultInfo?: ResultInfo | null; } export declare const ListCustomPagesResponse: S.Schema; export interface ListCustomPagesForZoneRequest { /** The Zone ID to use for this endpoint. Mutually exclusive with the Account ID. */ zoneId: string; } export declare const ListCustomPagesForZoneRequest: S.Schema; export type UpdateRequestIdentifier = "1000_errors" | "500_errors" | "basic_challenge" | "country_challenge" | "ip_block" | "managed_challenge" | "ratelimit_block" | "under_attack" | "waf_block" | "waf_challenge"; export declare const UpdateRequestIdentifier: any; export type UpdateRequestState = "default" | "customized"; export declare const UpdateRequestState: any; export interface PutCustomPageForAccountRequest { /** The Account ID to use for this endpoint. Mutually exclusive with the Zone ID. */ accountId: string; /** Error Page Types */ identifier: UpdateRequestIdentifier | (string & {}); /** The custom page state. */ state: UpdateRequestState | (string & {}); /** The URL associated with the custom page. */ url: string; } export declare const PutCustomPageForAccountRequest: S.Schema; export type UpdateResponseRequiredTokensList = Array; export declare const UpdateResponseRequiredTokensList: S.Schema; export type UpdateResponseState = "default" | "customized"; export declare const UpdateResponseState: any; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface PutCustomPageResponse { id?: string | null; createdOn?: string | null; description?: string | null; modifiedOn?: string | null; previewTarget?: string | null; requiredTokens?: UpdateResponseRequiredTokensList | null; /** The custom page state. */ state?: UpdateResponseState | null; /** The URL associated with the custom page. */ url?: string | null; } export declare const PutCustomPageResponse: S.Schema; export interface PutCustomPageForZoneRequest { /** The Zone ID to use for this endpoint. Mutually exclusive with the Account ID. */ zoneId: string; /** Error Page Types */ identifier: UpdateRequestIdentifier | (string & {}); /** The custom page state. */ state: UpdateRequestState | (string & {}); /** The URL associated with the custom page. */ url: string; } export declare const PutCustomPageForZoneRequest: S.Schema; export interface UpdateAssetForAccountRequest { /** The Account ID to use for this endpoint. Mutually exclusive with the Zone ID. */ accountId: string; /** The unique name of the custom asset. Can only contain letters (A-Z, a-z), numbers (0-9), and underscores (_). */ assetName: string; /** A short description of the custom asset. */ description: string; /** The URL where the asset content is fetched from. */ url: string; } export declare const UpdateAssetForAccountRequest: S.Schema; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface UpdateAssetResponse { /** A short description of the custom asset. */ description?: string | null; lastUpdated?: string | null; /** The unique name of the custom asset. Can only contain letters (A-Z, a-z), numbers (0-9), and underscores (_). */ name?: string | null; /** The size of the asset content in bytes. */ sizeBytes?: number | null; /** The URL where the asset content is fetched from. */ url?: string | null; } export declare const UpdateAssetResponse: S.Schema; export interface UpdateAssetForZoneRequest { /** The Zone ID to use for this endpoint. Mutually exclusive with the Account ID. */ zoneId: string; /** The unique name of the custom asset. Can only contain letters (A-Z, a-z), numbers (0-9), and underscores (_). */ assetName: string; /** A short description of the custom asset. */ description: string; /** The URL where the asset content is fetched from. */ url: string; } export declare const UpdateAssetForZoneRequest: S.Schema; export type CreateAssetForAccountError = CloudflareOpError; /** Creates a new custom asset. */ export declare const createAssetForAccount: API.OperationMethod; export type CreateAssetForZoneError = CloudflareOpError; /** Creates a new custom asset. */ export declare const createAssetForZone: API.OperationMethod; export type DeleteAssetForAccountError = CloudflareOpError; /** Deletes an existing custom asset. */ export declare const deleteAssetForAccount: API.OperationMethod; export type DeleteAssetForZoneError = CloudflareOpError; /** Deletes an existing custom asset. */ export declare const deleteAssetForZone: API.OperationMethod; export type GetAssetForAccountError = CloudflareOpError; /** Fetches the details of a custom asset. */ export declare const getAssetForAccount: API.OperationMethod; export type GetAssetForZoneError = CloudflareOpError; /** Fetches the details of a custom asset. */ export declare const getAssetForZone: API.OperationMethod; export type GetCustomPageForAccountError = CloudflareOpError; /** Fetches the details of a custom page. */ export declare const getCustomPageForAccount: API.OperationMethod; export type GetCustomPageForZoneError = CloudflareOpError; /** Fetches the details of a custom page. */ export declare const getCustomPageForZone: API.OperationMethod; export type ListAssetsForAccountError = CloudflareOpError; /** Fetches all the custom assets. */ export declare const listAssetsForAccount: API.PaginatedOperationMethod; export type ListAssetsForZoneError = CloudflareOpError; /** Fetches all the custom assets. */ export declare const listAssetsForZone: API.PaginatedOperationMethod; export type ListCustomPagesForAccountError = CloudflareOpError; /** Fetches all the custom pages. */ export declare const listCustomPagesForAccount: API.PaginatedOperationMethod; export type ListCustomPagesForZoneError = CloudflareOpError; /** Fetches all the custom pages. */ export declare const listCustomPagesForZone: API.PaginatedOperationMethod; export type PutCustomPageForAccountError = CloudflareOpError; /** Updates the configuration of an existing custom page. */ export declare const putCustomPageForAccount: API.OperationMethod; export type PutCustomPageForZoneError = CloudflareOpError; /** Updates the configuration of an existing custom page. */ export declare const putCustomPageForZone: API.OperationMethod; export type UpdateAssetForAccountError = CloudflareOpError; /** Updates the configuration of an existing custom asset. */ export declare const updateAssetForAccount: API.OperationMethod; export type UpdateAssetForZoneError = CloudflareOpError; /** Updates the configuration of an existing custom asset. */ export declare const updateAssetForZone: API.OperationMethod; //# sourceMappingURL=custom_pages.d.ts.map