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 DetectionNotFound_base: S.Class, import("effect/Cause").YieldableError>; export declare class DetectionNotFound extends /*@__PURE__*/ DetectionNotFound_base { } declare const DetectionQuotaExceeded_base: S.Class, import("effect/Cause").YieldableError>; export declare class DetectionQuotaExceeded extends /*@__PURE__*/ DetectionQuotaExceeded_base { } declare const Forbidden_base: S.Class, import("effect/Cause").YieldableError>; export declare class Forbidden extends /*@__PURE__*/ Forbidden_base { } declare const LeakedCredentialChecksDisabled_base: S.Class, import("effect/Cause").YieldableError>; export declare class LeakedCredentialChecksDisabled extends /*@__PURE__*/ LeakedCredentialChecksDisabled_base { } export interface CreateDetectionRequest { /** Defines an identifier. */ zoneId: string; /** Defines ehe ruleset expression to use in matching the password in a request. */ password?: string; /** Defines the ruleset expression to use in matching the username in a request. */ username?: string; } export declare const CreateDetectionRequest: S.Schema; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface CreateDetectionResponse { /** Defines the unique ID for this custom detection. */ id?: string | null; /** Defines ehe ruleset expression to use in matching the password in a request. */ password?: string | null; /** Defines the ruleset expression to use in matching the username in a request. */ username?: string | null; } export declare const CreateDetectionResponse: S.Schema; export interface CreateLeakedCredentialCheckRequest { /** Defines an identifier. */ zoneId: string; /** Determines whether or not Leaked Credential Checks are enabled. */ enabled?: boolean; } export declare const CreateLeakedCredentialCheckRequest: S.Schema; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface CreateLeakedCredentialCheckResponse { /** Determines whether or not Leaked Credential Checks are enabled. */ enabled?: boolean | null; } export declare const CreateLeakedCredentialCheckResponse: S.Schema; export interface DeleteDetectionRequest { /** Defines an identifier. */ zoneId: string; /** Defines the unique ID for this custom detection. */ detectionId: string; } export declare const DeleteDetectionRequest: S.Schema; export type DeleteDetectionResponse = unknown; export declare const DeleteDetectionResponse: S.Schema; export interface GetDetectionRequest { /** Defines an identifier. */ zoneId: string; /** Defines the unique ID for this custom detection. */ detectionId: string; } export declare const GetDetectionRequest: S.Schema; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface GetDetectionResponse { /** Defines the unique ID for this custom detection. */ id?: string | null; /** Defines ehe ruleset expression to use in matching the password in a request. */ password?: string | null; /** Defines the ruleset expression to use in matching the username in a request. */ username?: string | null; } export declare const GetDetectionResponse: S.Schema; export interface GetLeakedCredentialCheckRequest { /** Defines an identifier. */ zoneId: string; } export declare const GetLeakedCredentialCheckRequest: S.Schema; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface GetLeakedCredentialCheckResponse { /** Determines whether or not Leaked Credential Checks are enabled. */ enabled?: boolean | null; } export declare const GetLeakedCredentialCheckResponse: S.Schema; export interface ListDetectionsRequest { /** Defines an identifier. */ zoneId: string; } export declare const ListDetectionsRequest: S.Schema; export interface DetectionsListResultItem { /** Defines the unique ID for this custom detection. */ id?: string | null; /** Defines ehe ruleset expression to use in matching the password in a request. */ password?: string | null; /** Defines the ruleset expression to use in matching the username in a request. */ username?: string | null; } export declare const DetectionsListResultItem: S.Schema; export type DetectionsListResultList = Array; export declare const DetectionsListResultList: S.Schema; export interface ListDetectionsResponse { /** The unwrapped `result` payload of the v4 response envelope. */ result: DetectionsListResultList; /** Pagination info from the envelope's `result_info`. */ resultInfo?: ResultInfo | null; } export declare const ListDetectionsResponse: S.Schema; export interface UpdateDetectionRequest { /** Defines an identifier. */ zoneId: string; /** Defines the unique ID for this custom detection. */ detectionId: string; /** Defines ehe ruleset expression to use in matching the password in a request. */ password?: string; /** Defines the ruleset expression to use in matching the username in a request. */ username?: string; } export declare const UpdateDetectionRequest: S.Schema; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface UpdateDetectionResponse { /** Defines the unique ID for this custom detection. */ id?: string | null; /** Defines ehe ruleset expression to use in matching the password in a request. */ password?: string | null; /** Defines the ruleset expression to use in matching the username in a request. */ username?: string | null; } export declare const UpdateDetectionResponse: S.Schema; export type CreateDetectionError = DetectionQuotaExceeded | LeakedCredentialChecksDisabled | Forbidden | CloudflareOpError; /** Create user-defined detection pattern for Leaked Credential Checks. */ export declare const createDetection: API.OperationMethod; export type CreateLeakedCredentialCheckError = Forbidden | CloudflareOpError; /** Updates the current status of Leaked Credential Checks. */ export declare const createLeakedCredentialCheck: API.OperationMethod; export type DeleteDetectionError = DetectionNotFound | LeakedCredentialChecksDisabled | Forbidden | CloudflareOpError; /** Remove user-defined detection pattern for Leaked Credential Checks. */ export declare const deleteDetection: API.OperationMethod; export type GetDetectionError = DetectionNotFound | LeakedCredentialChecksDisabled | Forbidden | CloudflareOpError; /** Get user-defined detection pattern for Leaked Credential Checks. */ export declare const getDetection: API.OperationMethod; export type GetLeakedCredentialCheckError = Forbidden | CloudflareOpError; /** Retrieves the current status of Leaked Credential Checks. */ export declare const getLeakedCredentialCheck: API.OperationMethod; export type ListDetectionsError = LeakedCredentialChecksDisabled | Forbidden | CloudflareOpError; /** List user-defined detection patterns for Leaked Credential Checks. */ export declare const listDetections: API.PaginatedOperationMethod; export type UpdateDetectionError = DetectionNotFound | LeakedCredentialChecksDisabled | Forbidden | CloudflareOpError; /** Update user-defined detection pattern for Leaked Credential Checks. */ export declare const updateDetection: API.OperationMethod; //# sourceMappingURL=leaked_credential_checks.d.ts.map