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 CredentialNotFound_base: S.Class, import("effect/Cause").YieldableError>; export declare class CredentialNotFound extends /*@__PURE__*/ CredentialNotFound_base { } declare const CredentialSetNotFound_base: S.Class, import("effect/Cause").YieldableError>; export declare class CredentialSetNotFound extends /*@__PURE__*/ CredentialSetNotFound_base { } declare const Forbidden_base: S.Class, import("effect/Cause").YieldableError>; export declare class Forbidden extends /*@__PURE__*/ Forbidden_base { } declare const TargetEnvironmentNotFound_base: S.Class, import("effect/Cause").YieldableError>; export declare class TargetEnvironmentNotFound extends /*@__PURE__*/ TargetEnvironmentNotFound_base { } declare const ZoneTagNotFound_base: S.Class, import("effect/Cause").YieldableError>; export declare class ZoneTagNotFound extends /*@__PURE__*/ ZoneTagNotFound_base { } export interface CreateCredentialSetRequest { /** Identifier. */ accountId: string; /** Human-readable name. */ name: string; } export declare const CreateCredentialSetRequest: S.Schema; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface CreateCredentialSetResponse { /** Credential set identifier. */ id: string; /** Human-readable name. */ name: string; } export declare const CreateCredentialSetResponse: S.Schema; export type CredentialSetsCredentialsCreateRequestLocation = "header" | "cookie"; export declare const CredentialSetsCredentialsCreateRequestLocation: any; export interface CreateCredentialSetCredentialRequest { /** Identifier. */ accountId: string; credentialSetId: string; /** Where the credential is attached in outgoing requests. */ location: CredentialSetsCredentialsCreateRequestLocation | (string & {}); /** Name of the header or cookie where the credential is attached. */ locationName: string; /** Human-readable name. */ name: string; /** The credential value (e.g. API key, session token). Write-only. */ value: string; } export declare const CreateCredentialSetCredentialRequest: S.Schema; export type CredentialSetsCredentialsCreateResponseLocation = "header" | "cookie"; export declare const CredentialSetsCredentialsCreateResponseLocation: any; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface CreateCredentialSetCredentialResponse { /** Credential identifier. */ id: string; /** Parent credential set identifier. */ credentialSetId: string; /** Where the credential is attached in outgoing requests. */ location: CredentialSetsCredentialsCreateResponseLocation; /** Name of the header or cookie where the credential is attached. */ locationName: string; /** Human-readable name. */ name: string; } export declare const CreateCredentialSetCredentialResponse: S.Schema; export interface ScansCreateRequestCredentialSets { /** Credential set ID for the attacker. */ attacker: string; /** Credential set ID for the resource owner. */ owner: string; } export declare const ScansCreateRequestCredentialSets: S.Schema; export type ScansCreateRequestScanType = "bola"; export declare const ScansCreateRequestScanType: any; export interface CreateScanRequest { /** Identifier. */ accountId: string; /** Credential set references for a BOLA scan. The scanner uses the */ credentialSets: ScansCreateRequestCredentialSets; /** OpenAPI schema definition for the API under test. The scanner */ openApi: string; scanType: ScansCreateRequestScanType | (string & {}); /** The target environment to scan. */ targetEnvironmentId: string; } export declare const CreateScanRequest: S.Schema; export type ScansCreateResponseScanType = "bola"; export declare const ScansCreateResponseScanType: any; export type ScansCreateResponseStatus = "created" | "scheduled" | "planning" | "running" | "finished" | "failed"; export declare const ScansCreateResponseStatus: any; export type ScansCreateResponseReportReportSummaryVerdict = "ok" | "warning" | "inconclusive"; export declare const ScansCreateResponseReportReportSummaryVerdict: any; export interface ScansCreateResponseReportReportSummary { /** Overall verdict of the vulnerability scan. */ verdict: ScansCreateResponseReportReportSummaryVerdict; } export declare const ScansCreateResponseReportReportSummary: S.Schema; export interface ScansCreateResponseReportReportTestsItemStepsItemAssertionsItemKindParameters { /** Maximum (inclusive) status code of the range. */ max: number; /** Minimum (inclusive) status code of the range. */ min: number; } export declare const ScansCreateResponseReportReportTestsItemStepsItemAssertionsItemKindParameters: S.Schema; export type ScansCreateResponseReportReportTestsItemStepsItemAssertionsItemKindType = "http_status_within_range"; export declare const ScansCreateResponseReportReportTestsItemStepsItemAssertionsItemKindType: any; export interface ScansCreateResponseReportReportTestsItemStepsItemAssertionsItemKind { /** Range of HTTP status codes. */ parameters: ScansCreateResponseReportReportTestsItemStepsItemAssertionsItemKindParameters; type: ScansCreateResponseReportReportTestsItemStepsItemAssertionsItemKindType; } export declare const ScansCreateResponseReportReportTestsItemStepsItemAssertionsItemKind: S.Schema; export type ScansCreateResponseReportReportTestsItemStepsItemAssertionsItemOutcome = "ok" | "fail" | "inconclusive"; export declare const ScansCreateResponseReportReportTestsItemStepsItemAssertionsItemOutcome: any; export interface ScansCreateResponseReportReportTestsItemStepsItemAssertionsItem { /** Human-readable description of the assertion, explaining what was checked. */ description: string; /** Kind of assertion. */ kind: ScansCreateResponseReportReportTestsItemStepsItemAssertionsItemKind; /** Observed value on which the assertion was made. */ observed: number; /** Outcome of the assertion. */ outcome: ScansCreateResponseReportReportTestsItemStepsItemAssertionsItemOutcome; } export declare const ScansCreateResponseReportReportTestsItemStepsItemAssertionsItem: S.Schema; export type ScansCreateResponseReportReportTestsItemStepsItemAssertionsList = Array; export declare const ScansCreateResponseReportReportTestsItemStepsItemAssertionsList: S.Schema; export interface ScansCreateResponseReportReportTestsItemStepsItemErrorsItem { /** Human-readable error description. */ description: string; /** Numeric error code identifying the class of error, if available. */ errorCode?: number | null; } export declare const ScansCreateResponseReportReportTestsItemStepsItemErrorsItem: S.Schema; export type ScansCreateResponseReportReportTestsItemStepsItemErrorsList = Array; export declare const ScansCreateResponseReportReportTestsItemStepsItemErrorsList: S.Schema; export type ScansCreateResponseReportReportTestsItemStepsItemRequestCredentialSetRole = "owner" | "attacker"; export declare const ScansCreateResponseReportReportTestsItemStepsItemRequestCredentialSetRole: any; export interface ScansCreateResponseReportReportTestsItemStepsItemRequestCredentialSet { /** ID of the credential set. */ id: string; /** Role of the credential set. */ role: ScansCreateResponseReportReportTestsItemStepsItemRequestCredentialSetRole; } export declare const ScansCreateResponseReportReportTestsItemStepsItemRequestCredentialSet: S.Schema; export type ScansCreateResponseReportReportTestsItemStepsItemRequestHeaderNamesList = Array; export declare const ScansCreateResponseReportReportTestsItemStepsItemRequestHeaderNamesList: S.Schema; export type ScansCreateResponseReportReportTestsItemStepsItemRequestMethod = "GET" | "DELETE" | "PATCH" | "POST" | "PUT"; export declare const ScansCreateResponseReportReportTestsItemStepsItemRequestMethod: any; export interface ScansCreateResponseReportReportTestsItemStepsItemRequestVariableCapturesItem { /** JSONPath expression used for capture, e.g. `"$.id"`. */ jsonPath: string; /** Variable name, e.g. `"resource_id"`. */ name: string; } export declare const ScansCreateResponseReportReportTestsItemStepsItemRequestVariableCapturesItem: S.Schema; export type ScansCreateResponseReportReportTestsItemStepsItemRequestVariableCapturesList = Array; export declare const ScansCreateResponseReportReportTestsItemStepsItemRequestVariableCapturesList: S.Schema; export interface ScansCreateResponseReportReportTestsItemStepsItemRequest { /** Credential set that was used. */ credentialSet: ScansCreateResponseReportReportTestsItemStepsItemRequestCredentialSet; /** Names of headers that were sent. */ headerNames: ScansCreateResponseReportReportTestsItemStepsItemRequestHeaderNamesList; /** HTTP method. */ method: ScansCreateResponseReportReportTestsItemStepsItemRequestMethod; /** Exact and full URL (including host, query parameters) that was requested. */ url: string; /** Variable captures requested for this step. */ variableCaptures: ScansCreateResponseReportReportTestsItemStepsItemRequestVariableCapturesList; /** Request body, if any. */ body?: unknown | null; } export declare const ScansCreateResponseReportReportTestsItemStepsItemRequest: S.Schema; export type ScansCreateResponseReportReportTestsItemStepsItemResponseBodyNotFoundKind = "not_found"; export declare const ScansCreateResponseReportReportTestsItemStepsItemResponseBodyNotFoundKind: any; export interface ScansCreateResponseReportReportTestsItemStepsItemResponseBodyNotFound { kind: ScansCreateResponseReportReportTestsItemStepsItemResponseBodyNotFoundKind; } export declare const ScansCreateResponseReportReportTestsItemStepsItemResponseBodyNotFound: S.Schema; export type ScansCreateResponseReportReportTestsItemStepsItemResponseBodyBytesKind = "bytes"; export declare const ScansCreateResponseReportReportTestsItemStepsItemResponseBodyBytesKind: any; export interface ScansCreateResponseReportReportTestsItemStepsItemResponseBodyBytes { contents: string; kind: ScansCreateResponseReportReportTestsItemStepsItemResponseBodyBytesKind; truncated: boolean; } export declare const ScansCreateResponseReportReportTestsItemStepsItemResponseBodyBytes: S.Schema; export type ScansCreateResponseReportReportTestsItemStepsItemResponseBodyTextKind = "text"; export declare const ScansCreateResponseReportReportTestsItemStepsItemResponseBodyTextKind: any; export interface ScansCreateResponseReportReportTestsItemStepsItemResponseBodyText { contents: string; kind: ScansCreateResponseReportReportTestsItemStepsItemResponseBodyTextKind; truncated: boolean; } export declare const ScansCreateResponseReportReportTestsItemStepsItemResponseBodyText: S.Schema; export type ScansCreateResponseReportReportTestsItemStepsItemResponseBodyJsonKind = "json"; export declare const ScansCreateResponseReportReportTestsItemStepsItemResponseBodyJsonKind: any; export interface ScansCreateResponseReportReportTestsItemStepsItemResponseBodyJson { contents: string; kind: ScansCreateResponseReportReportTestsItemStepsItemResponseBodyJsonKind; truncated: boolean; } export declare const ScansCreateResponseReportReportTestsItemStepsItemResponseBodyJson: S.Schema; export type ScansCreateResponseReportReportTestsItemStepsItemResponseBody = ScansCreateResponseReportReportTestsItemStepsItemResponseBodyNotFound | ScansCreateResponseReportReportTestsItemStepsItemResponseBodyBytes | ScansCreateResponseReportReportTestsItemStepsItemResponseBodyText | ScansCreateResponseReportReportTestsItemStepsItemResponseBodyJson; export declare const ScansCreateResponseReportReportTestsItemStepsItemResponseBody: any; export type ScansCreateResponseReportReportTestsItemStepsItemResponseHeaderNamesList = Array; export declare const ScansCreateResponseReportReportTestsItemStepsItemResponseHeaderNamesList: S.Schema; export interface ScansCreateResponseReportReportTestsItemStepsItemResponse { /** HTTP response body. */ body: ScansCreateResponseReportReportTestsItemStepsItemResponseBody; /** Names of headers that were received. */ headerNames: ScansCreateResponseReportReportTestsItemStepsItemResponseHeaderNamesList; /** HTTP status code. */ status: number; /** HTTP status text, if available for the status code. */ statusText?: string | null; } export declare const ScansCreateResponseReportReportTestsItemStepsItemResponse: S.Schema; export interface ScansCreateResponseReportReportTestsItemStepsItem { /** Assertions that were made against the received response. */ assertions: ScansCreateResponseReportReportTestsItemStepsItemAssertionsList; /** Errors the step encountered that may explain absent or incomplete fields. */ errors?: ScansCreateResponseReportReportTestsItemStepsItemErrorsList | null; /** HTTP request that was made, if any. */ request?: ScansCreateResponseReportReportTestsItemStepsItemRequest | null; /** HTTP response that was received, if any. */ response?: ScansCreateResponseReportReportTestsItemStepsItemResponse | null; } export declare const ScansCreateResponseReportReportTestsItemStepsItem: S.Schema; export type ScansCreateResponseReportReportTestsItemStepsList = Array; export declare const ScansCreateResponseReportReportTestsItemStepsList: S.Schema; export type ScansCreateResponseReportReportTestsItemVerdict = "ok" | "warning" | "inconclusive"; export declare const ScansCreateResponseReportReportTestsItemVerdict: any; export type ScansCreateResponseReportReportTestsItemPreflightErrorsItem = ScansCreateResponseReportReportTestsItemStepsItemErrorsItem; export declare const ScansCreateResponseReportReportTestsItemPreflightErrorsItem: S.Schema; export type ScansCreateResponseReportReportTestsItemPreflightErrorsList = Array; export declare const ScansCreateResponseReportReportTestsItemPreflightErrorsList: S.Schema; export interface ScansCreateResponseReportReportTestsItem { /** Steps that were executed. */ steps: ScansCreateResponseReportReportTestsItemStepsList; /** Verdict of this single test. */ verdict: ScansCreateResponseReportReportTestsItemVerdict; /** Errors that prevented step execution. */ preflightErrors?: ScansCreateResponseReportReportTestsItemPreflightErrorsList | null; } export declare const ScansCreateResponseReportReportTestsItem: S.Schema; export type ScansCreateResponseReportReportTestsList = Array; export declare const ScansCreateResponseReportReportTestsList: S.Schema; export interface ScansCreateResponseReportReport { /** Summary of all steps and findings. */ summary: ScansCreateResponseReportReportSummary; /** List of tests that were run. */ tests: ScansCreateResponseReportReportTestsList; } export declare const ScansCreateResponseReportReport: S.Schema; export type ScansCreateResponseReportReportSchemaVersion = "v1"; export declare const ScansCreateResponseReportReportSchemaVersion: any; export interface ScansCreateResponseReport { /** Version 1 of the BOLA vulnerability scan report. */ report: ScansCreateResponseReportReport; /** Version of the report schema. */ reportSchemaVersion: ScansCreateResponseReportReportSchemaVersion; } export declare const ScansCreateResponseReport: S.Schema; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface CreateScanResponse { /** Scan identifier. */ id: string; /** The type of vulnerability scan. */ scanType: ScansCreateResponseScanType; /** Current lifecycle status of the scan. */ status: ScansCreateResponseStatus; /** The target environment this scan runs against. */ targetEnvironmentId: string; /** Vulnerability report produced after the scan completes. The shape depends on the scan type. Present only for finished scans. */ report?: ScansCreateResponseReport | null; } export declare const CreateScanResponse: S.Schema; export type TargetEnvironmentsCreateRequestTargetType = "zone"; export declare const TargetEnvironmentsCreateRequestTargetType: any; export interface TargetEnvironmentsCreateRequestTarget { type: TargetEnvironmentsCreateRequestTargetType | (string & {}); /** Cloudflare zone tag. The zone must belong to the account. */ zoneTag: string; } export declare const TargetEnvironmentsCreateRequestTarget: S.Schema; export interface CreateTargetEnvironmentRequest { /** Identifier. */ accountId: string; /** Human-readable name. */ name: string; /** Identifies the Cloudflare asset to scan. Uses a `type` discriminator. */ target: TargetEnvironmentsCreateRequestTarget; /** Optional description. */ description?: string; } export declare const CreateTargetEnvironmentRequest: S.Schema; export type TargetEnvironmentsCreateResponseTargetType = "zone"; export declare const TargetEnvironmentsCreateResponseTargetType: any; export interface TargetEnvironmentsCreateResponseTarget { type: TargetEnvironmentsCreateResponseTargetType; /** Cloudflare zone tag. The zone must belong to the account. */ zoneTag: string; } export declare const TargetEnvironmentsCreateResponseTarget: S.Schema; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface CreateTargetEnvironmentResponse { /** Target environment identifier. */ id: string; /** Human-readable name. */ name: string; /** Identifies the Cloudflare asset to scan. Uses a `type` discriminator. */ target: TargetEnvironmentsCreateResponseTarget; /** Optional description providing additional context. */ description?: string | null; } export declare const CreateTargetEnvironmentResponse: S.Schema; export interface DeleteCredentialSetRequest { /** Identifier. */ accountId: string; credentialSetId: string; } export declare const DeleteCredentialSetRequest: S.Schema; export type DeleteCredentialSetResponse = unknown; export declare const DeleteCredentialSetResponse: S.Schema; export interface DeleteCredentialSetCredentialRequest { /** Identifier. */ accountId: string; credentialSetId: string; credentialId: string; } export declare const DeleteCredentialSetCredentialRequest: S.Schema; export type DeleteCredentialSetCredentialResponse = unknown; export declare const DeleteCredentialSetCredentialResponse: S.Schema; export interface DeleteTargetEnvironmentRequest { /** Identifier. */ accountId: string; targetEnvironmentId: string; } export declare const DeleteTargetEnvironmentRequest: S.Schema; export type DeleteTargetEnvironmentResponse = unknown; export declare const DeleteTargetEnvironmentResponse: S.Schema; export interface GetCredentialSetRequest { /** Identifier. */ accountId: string; credentialSetId: string; } export declare const GetCredentialSetRequest: S.Schema; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface GetCredentialSetResponse { /** Credential set identifier. */ id: string; /** Human-readable name. */ name: string; } export declare const GetCredentialSetResponse: S.Schema; export interface GetCredentialSetCredentialRequest { /** Identifier. */ accountId: string; credentialSetId: string; credentialId: string; } export declare const GetCredentialSetCredentialRequest: S.Schema; export type CredentialSetsCredentialsGetResponseLocation = "header" | "cookie"; export declare const CredentialSetsCredentialsGetResponseLocation: any; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface GetCredentialSetCredentialResponse { /** Credential identifier. */ id: string; /** Parent credential set identifier. */ credentialSetId: string; /** Where the credential is attached in outgoing requests. */ location: CredentialSetsCredentialsGetResponseLocation; /** Name of the header or cookie where the credential is attached. */ locationName: string; /** Human-readable name. */ name: string; } export declare const GetCredentialSetCredentialResponse: S.Schema; export interface GetScanRequest { /** Identifier. */ accountId: string; scanId: string; } export declare const GetScanRequest: S.Schema; export type ScansGetResponseScanType = "bola"; export declare const ScansGetResponseScanType: any; export type ScansGetResponseStatus = "created" | "scheduled" | "planning" | "running" | "finished" | "failed"; export declare const ScansGetResponseStatus: any; export type ScansGetResponseReportReportSummaryVerdict = "ok" | "warning" | "inconclusive"; export declare const ScansGetResponseReportReportSummaryVerdict: any; export interface ScansGetResponseReportReportSummary { /** Overall verdict of the vulnerability scan. */ verdict: ScansGetResponseReportReportSummaryVerdict; } export declare const ScansGetResponseReportReportSummary: S.Schema; export type ScansGetResponseReportReportTestsItemStepsItemAssertionsItemKindParameters = ScansCreateResponseReportReportTestsItemStepsItemAssertionsItemKindParameters; export declare const ScansGetResponseReportReportTestsItemStepsItemAssertionsItemKindParameters: S.Schema; export type ScansGetResponseReportReportTestsItemStepsItemAssertionsItemKindType = "http_status_within_range"; export declare const ScansGetResponseReportReportTestsItemStepsItemAssertionsItemKindType: any; export interface ScansGetResponseReportReportTestsItemStepsItemAssertionsItemKind { /** Range of HTTP status codes. */ parameters: ScansCreateResponseReportReportTestsItemStepsItemAssertionsItemKindParameters; type: ScansGetResponseReportReportTestsItemStepsItemAssertionsItemKindType; } export declare const ScansGetResponseReportReportTestsItemStepsItemAssertionsItemKind: S.Schema; export type ScansGetResponseReportReportTestsItemStepsItemAssertionsItemOutcome = "ok" | "fail" | "inconclusive"; export declare const ScansGetResponseReportReportTestsItemStepsItemAssertionsItemOutcome: any; export interface ScansGetResponseReportReportTestsItemStepsItemAssertionsItem { /** Human-readable description of the assertion, explaining what was checked. */ description: string; /** Kind of assertion. */ kind: ScansGetResponseReportReportTestsItemStepsItemAssertionsItemKind; /** Observed value on which the assertion was made. */ observed: number; /** Outcome of the assertion. */ outcome: ScansGetResponseReportReportTestsItemStepsItemAssertionsItemOutcome; } export declare const ScansGetResponseReportReportTestsItemStepsItemAssertionsItem: S.Schema; export type ScansGetResponseReportReportTestsItemStepsItemAssertionsList = Array; export declare const ScansGetResponseReportReportTestsItemStepsItemAssertionsList: S.Schema; export type ScansGetResponseReportReportTestsItemStepsItemErrorsItem = ScansCreateResponseReportReportTestsItemStepsItemErrorsItem; export declare const ScansGetResponseReportReportTestsItemStepsItemErrorsItem: S.Schema; export type ScansGetResponseReportReportTestsItemStepsItemErrorsList = Array; export declare const ScansGetResponseReportReportTestsItemStepsItemErrorsList: S.Schema; export type ScansGetResponseReportReportTestsItemStepsItemRequestCredentialSetRole = "owner" | "attacker"; export declare const ScansGetResponseReportReportTestsItemStepsItemRequestCredentialSetRole: any; export interface ScansGetResponseReportReportTestsItemStepsItemRequestCredentialSet { /** ID of the credential set. */ id: string; /** Role of the credential set. */ role: ScansGetResponseReportReportTestsItemStepsItemRequestCredentialSetRole; } export declare const ScansGetResponseReportReportTestsItemStepsItemRequestCredentialSet: S.Schema; export type ScansGetResponseReportReportTestsItemStepsItemRequestHeaderNamesList = Array; export declare const ScansGetResponseReportReportTestsItemStepsItemRequestHeaderNamesList: S.Schema; export type ScansGetResponseReportReportTestsItemStepsItemRequestMethod = "GET" | "DELETE" | "PATCH" | "POST" | "PUT"; export declare const ScansGetResponseReportReportTestsItemStepsItemRequestMethod: any; export type ScansGetResponseReportReportTestsItemStepsItemRequestVariableCapturesItem = ScansCreateResponseReportReportTestsItemStepsItemRequestVariableCapturesItem; export declare const ScansGetResponseReportReportTestsItemStepsItemRequestVariableCapturesItem: S.Schema; export type ScansGetResponseReportReportTestsItemStepsItemRequestVariableCapturesList = Array; export declare const ScansGetResponseReportReportTestsItemStepsItemRequestVariableCapturesList: S.Schema; export interface ScansGetResponseReportReportTestsItemStepsItemRequest { /** Credential set that was used. */ credentialSet: ScansGetResponseReportReportTestsItemStepsItemRequestCredentialSet; /** Names of headers that were sent. */ headerNames: ScansGetResponseReportReportTestsItemStepsItemRequestHeaderNamesList; /** HTTP method. */ method: ScansGetResponseReportReportTestsItemStepsItemRequestMethod; /** Exact and full URL (including host, query parameters) that was requested. */ url: string; /** Variable captures requested for this step. */ variableCaptures: ScansGetResponseReportReportTestsItemStepsItemRequestVariableCapturesList; /** Request body, if any. */ body?: unknown | null; } export declare const ScansGetResponseReportReportTestsItemStepsItemRequest: S.Schema; export type ScansGetResponseReportReportTestsItemStepsItemResponseBodyNotFoundKind = "not_found"; export declare const ScansGetResponseReportReportTestsItemStepsItemResponseBodyNotFoundKind: any; export interface ScansGetResponseReportReportTestsItemStepsItemResponseBodyNotFound { kind: ScansGetResponseReportReportTestsItemStepsItemResponseBodyNotFoundKind; } export declare const ScansGetResponseReportReportTestsItemStepsItemResponseBodyNotFound: S.Schema; export type ScansGetResponseReportReportTestsItemStepsItemResponseBodyBytesKind = "bytes"; export declare const ScansGetResponseReportReportTestsItemStepsItemResponseBodyBytesKind: any; export interface ScansGetResponseReportReportTestsItemStepsItemResponseBodyBytes { contents: string; kind: ScansGetResponseReportReportTestsItemStepsItemResponseBodyBytesKind; truncated: boolean; } export declare const ScansGetResponseReportReportTestsItemStepsItemResponseBodyBytes: S.Schema; export type ScansGetResponseReportReportTestsItemStepsItemResponseBodyTextKind = "text"; export declare const ScansGetResponseReportReportTestsItemStepsItemResponseBodyTextKind: any; export interface ScansGetResponseReportReportTestsItemStepsItemResponseBodyText { contents: string; kind: ScansGetResponseReportReportTestsItemStepsItemResponseBodyTextKind; truncated: boolean; } export declare const ScansGetResponseReportReportTestsItemStepsItemResponseBodyText: S.Schema; export type ScansGetResponseReportReportTestsItemStepsItemResponseBodyJsonKind = "json"; export declare const ScansGetResponseReportReportTestsItemStepsItemResponseBodyJsonKind: any; export interface ScansGetResponseReportReportTestsItemStepsItemResponseBodyJson { contents: string; kind: ScansGetResponseReportReportTestsItemStepsItemResponseBodyJsonKind; truncated: boolean; } export declare const ScansGetResponseReportReportTestsItemStepsItemResponseBodyJson: S.Schema; export type ScansGetResponseReportReportTestsItemStepsItemResponseBody = ScansGetResponseReportReportTestsItemStepsItemResponseBodyNotFound | ScansGetResponseReportReportTestsItemStepsItemResponseBodyBytes | ScansGetResponseReportReportTestsItemStepsItemResponseBodyText | ScansGetResponseReportReportTestsItemStepsItemResponseBodyJson; export declare const ScansGetResponseReportReportTestsItemStepsItemResponseBody: any; export type ScansGetResponseReportReportTestsItemStepsItemResponseHeaderNamesList = Array; export declare const ScansGetResponseReportReportTestsItemStepsItemResponseHeaderNamesList: S.Schema; export interface ScansGetResponseReportReportTestsItemStepsItemResponse { /** HTTP response body. */ body: ScansGetResponseReportReportTestsItemStepsItemResponseBody; /** Names of headers that were received. */ headerNames: ScansGetResponseReportReportTestsItemStepsItemResponseHeaderNamesList; /** HTTP status code. */ status: number; /** HTTP status text, if available for the status code. */ statusText?: string | null; } export declare const ScansGetResponseReportReportTestsItemStepsItemResponse: S.Schema; export interface ScansGetResponseReportReportTestsItemStepsItem { /** Assertions that were made against the received response. */ assertions: ScansGetResponseReportReportTestsItemStepsItemAssertionsList; /** Errors the step encountered that may explain absent or incomplete fields. */ errors?: ScansGetResponseReportReportTestsItemStepsItemErrorsList | null; /** HTTP request that was made, if any. */ request?: ScansGetResponseReportReportTestsItemStepsItemRequest | null; /** HTTP response that was received, if any. */ response?: ScansGetResponseReportReportTestsItemStepsItemResponse | null; } export declare const ScansGetResponseReportReportTestsItemStepsItem: S.Schema; export type ScansGetResponseReportReportTestsItemStepsList = Array; export declare const ScansGetResponseReportReportTestsItemStepsList: S.Schema; export type ScansGetResponseReportReportTestsItemVerdict = "ok" | "warning" | "inconclusive"; export declare const ScansGetResponseReportReportTestsItemVerdict: any; export type ScansGetResponseReportReportTestsItemPreflightErrorsItem = ScansCreateResponseReportReportTestsItemStepsItemErrorsItem; export declare const ScansGetResponseReportReportTestsItemPreflightErrorsItem: S.Schema; export type ScansGetResponseReportReportTestsItemPreflightErrorsList = Array; export declare const ScansGetResponseReportReportTestsItemPreflightErrorsList: S.Schema; export interface ScansGetResponseReportReportTestsItem { /** Steps that were executed. */ steps: ScansGetResponseReportReportTestsItemStepsList; /** Verdict of this single test. */ verdict: ScansGetResponseReportReportTestsItemVerdict; /** Errors that prevented step execution. */ preflightErrors?: ScansGetResponseReportReportTestsItemPreflightErrorsList | null; } export declare const ScansGetResponseReportReportTestsItem: S.Schema; export type ScansGetResponseReportReportTestsList = Array; export declare const ScansGetResponseReportReportTestsList: S.Schema; export interface ScansGetResponseReportReport { /** Summary of all steps and findings. */ summary: ScansGetResponseReportReportSummary; /** List of tests that were run. */ tests: ScansGetResponseReportReportTestsList; } export declare const ScansGetResponseReportReport: S.Schema; export type ScansGetResponseReportReportSchemaVersion = "v1"; export declare const ScansGetResponseReportReportSchemaVersion: any; export interface ScansGetResponseReport { /** Version 1 of the BOLA vulnerability scan report. */ report: ScansGetResponseReportReport; /** Version of the report schema. */ reportSchemaVersion: ScansGetResponseReportReportSchemaVersion; } export declare const ScansGetResponseReport: S.Schema; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface GetScanResponse { /** Scan identifier. */ id: string; /** The type of vulnerability scan. */ scanType: ScansGetResponseScanType; /** Current lifecycle status of the scan. */ status: ScansGetResponseStatus; /** The target environment this scan runs against. */ targetEnvironmentId: string; /** Vulnerability report produced after the scan completes. The shape depends on the scan type. Present only for finished scans. */ report?: ScansGetResponseReport | null; } export declare const GetScanResponse: S.Schema; export interface GetTargetEnvironmentRequest { /** Identifier. */ accountId: string; targetEnvironmentId: string; } export declare const GetTargetEnvironmentRequest: S.Schema; export type TargetEnvironmentsGetResponseTargetType = "zone"; export declare const TargetEnvironmentsGetResponseTargetType: any; export interface TargetEnvironmentsGetResponseTarget { type: TargetEnvironmentsGetResponseTargetType; /** Cloudflare zone tag. The zone must belong to the account. */ zoneTag: string; } export declare const TargetEnvironmentsGetResponseTarget: S.Schema; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface GetTargetEnvironmentResponse { /** Target environment identifier. */ id: string; /** Human-readable name. */ name: string; /** Identifies the Cloudflare asset to scan. Uses a `type` discriminator. */ target: TargetEnvironmentsGetResponseTarget; /** Optional description providing additional context. */ description?: string | null; } export declare const GetTargetEnvironmentResponse: S.Schema; export interface ListCredentialSetCredentialsRequest { /** Identifier. */ accountId: string; credentialSetId: string; /** Page number of paginated results. */ page?: number; /** Number of results per page. */ perPage?: number; } export declare const ListCredentialSetCredentialsRequest: S.Schema; export type CredentialSetsCredentialsListResultItemLocation = "header" | "cookie"; export declare const CredentialSetsCredentialsListResultItemLocation: any; export interface CredentialSetsCredentialsListResultItem { /** Credential identifier. */ id: string; /** Parent credential set identifier. */ credentialSetId: string; /** Where the credential is attached in outgoing requests. */ location: CredentialSetsCredentialsListResultItemLocation; /** Name of the header or cookie where the credential is attached. */ locationName: string; /** Human-readable name. */ name: string; } export declare const CredentialSetsCredentialsListResultItem: S.Schema; export type CredentialSetsCredentialsListResultList = Array; export declare const CredentialSetsCredentialsListResultList: S.Schema; export interface ListCredentialSetCredentialsResponse { /** The unwrapped `result` payload of the v4 response envelope. */ result: CredentialSetsCredentialsListResultList; /** Pagination info from the envelope's `result_info`. */ resultInfo?: ResultInfo | null; } export declare const ListCredentialSetCredentialsResponse: S.Schema; export interface ListCredentialSetsRequest { /** Identifier. */ accountId: string; /** Page number of paginated results. */ page?: number; /** Number of results per page. */ perPage?: number; } export declare const ListCredentialSetsRequest: S.Schema; export interface CredentialSetsListResultItem { /** Credential set identifier. */ id: string; /** Human-readable name. */ name: string; } export declare const CredentialSetsListResultItem: S.Schema; export type CredentialSetsListResultList = Array; export declare const CredentialSetsListResultList: S.Schema; export interface ListCredentialSetsResponse { /** The unwrapped `result` payload of the v4 response envelope. */ result: CredentialSetsListResultList; /** Pagination info from the envelope's `result_info`. */ resultInfo?: ResultInfo | null; } export declare const ListCredentialSetsResponse: S.Schema; export interface ListScansRequest { /** Identifier. */ accountId: string; /** Page number of paginated results. */ page?: number; /** Number of results per page. */ perPage?: number; } export declare const ListScansRequest: S.Schema; export type ScansListResultItemScanType = "bola"; export declare const ScansListResultItemScanType: any; export type ScansListResultItemStatus = "created" | "scheduled" | "planning" | "running" | "finished" | "failed"; export declare const ScansListResultItemStatus: any; export type ScansListResultItemReportReportSummaryVerdict = "ok" | "warning" | "inconclusive"; export declare const ScansListResultItemReportReportSummaryVerdict: any; export interface ScansListResultItemReportReportSummary { /** Overall verdict of the vulnerability scan. */ verdict: ScansListResultItemReportReportSummaryVerdict; } export declare const ScansListResultItemReportReportSummary: S.Schema; export type ScansListResultItemReportReportTestsItemStepsItemAssertionsItemKindParameters = ScansCreateResponseReportReportTestsItemStepsItemAssertionsItemKindParameters; export declare const ScansListResultItemReportReportTestsItemStepsItemAssertionsItemKindParameters: S.Schema; export type ScansListResultItemReportReportTestsItemStepsItemAssertionsItemKindType = "http_status_within_range"; export declare const ScansListResultItemReportReportTestsItemStepsItemAssertionsItemKindType: any; export interface ScansListResultItemReportReportTestsItemStepsItemAssertionsItemKind { /** Range of HTTP status codes. */ parameters: ScansCreateResponseReportReportTestsItemStepsItemAssertionsItemKindParameters; type: ScansListResultItemReportReportTestsItemStepsItemAssertionsItemKindType; } export declare const ScansListResultItemReportReportTestsItemStepsItemAssertionsItemKind: S.Schema; export type ScansListResultItemReportReportTestsItemStepsItemAssertionsItemOutcome = "ok" | "fail" | "inconclusive"; export declare const ScansListResultItemReportReportTestsItemStepsItemAssertionsItemOutcome: any; export interface ScansListResultItemReportReportTestsItemStepsItemAssertionsItem { /** Human-readable description of the assertion, explaining what was checked. */ description: string; /** Kind of assertion. */ kind: ScansListResultItemReportReportTestsItemStepsItemAssertionsItemKind; /** Observed value on which the assertion was made. */ observed: number; /** Outcome of the assertion. */ outcome: ScansListResultItemReportReportTestsItemStepsItemAssertionsItemOutcome; } export declare const ScansListResultItemReportReportTestsItemStepsItemAssertionsItem: S.Schema; export type ScansListResultItemReportReportTestsItemStepsItemAssertionsList = Array; export declare const ScansListResultItemReportReportTestsItemStepsItemAssertionsList: S.Schema; export type ScansListResultItemReportReportTestsItemStepsItemErrorsItem = ScansCreateResponseReportReportTestsItemStepsItemErrorsItem; export declare const ScansListResultItemReportReportTestsItemStepsItemErrorsItem: S.Schema; export type ScansListResultItemReportReportTestsItemStepsItemErrorsList = Array; export declare const ScansListResultItemReportReportTestsItemStepsItemErrorsList: S.Schema; export type ScansListResultItemReportReportTestsItemStepsItemRequestCredentialSetRole = "owner" | "attacker"; export declare const ScansListResultItemReportReportTestsItemStepsItemRequestCredentialSetRole: any; export interface ScansListResultItemReportReportTestsItemStepsItemRequestCredentialSet { /** ID of the credential set. */ id: string; /** Role of the credential set. */ role: ScansListResultItemReportReportTestsItemStepsItemRequestCredentialSetRole; } export declare const ScansListResultItemReportReportTestsItemStepsItemRequestCredentialSet: S.Schema; export type ScansListResultItemReportReportTestsItemStepsItemRequestHeaderNamesList = Array; export declare const ScansListResultItemReportReportTestsItemStepsItemRequestHeaderNamesList: S.Schema; export type ScansListResultItemReportReportTestsItemStepsItemRequestMethod = "GET" | "DELETE" | "PATCH" | "POST" | "PUT"; export declare const ScansListResultItemReportReportTestsItemStepsItemRequestMethod: any; export type ScansListResultItemReportReportTestsItemStepsItemRequestVariableCapturesItem = ScansCreateResponseReportReportTestsItemStepsItemRequestVariableCapturesItem; export declare const ScansListResultItemReportReportTestsItemStepsItemRequestVariableCapturesItem: S.Schema; export type ScansListResultItemReportReportTestsItemStepsItemRequestVariableCapturesList = Array; export declare const ScansListResultItemReportReportTestsItemStepsItemRequestVariableCapturesList: S.Schema; export interface ScansListResultItemReportReportTestsItemStepsItemRequest { /** Credential set that was used. */ credentialSet: ScansListResultItemReportReportTestsItemStepsItemRequestCredentialSet; /** Names of headers that were sent. */ headerNames: ScansListResultItemReportReportTestsItemStepsItemRequestHeaderNamesList; /** HTTP method. */ method: ScansListResultItemReportReportTestsItemStepsItemRequestMethod; /** Exact and full URL (including host, query parameters) that was requested. */ url: string; /** Variable captures requested for this step. */ variableCaptures: ScansListResultItemReportReportTestsItemStepsItemRequestVariableCapturesList; /** Request body, if any. */ body?: unknown | null; } export declare const ScansListResultItemReportReportTestsItemStepsItemRequest: S.Schema; export type ScansListResultItemReportReportTestsItemStepsItemResponseBodyNotFoundKind = "not_found"; export declare const ScansListResultItemReportReportTestsItemStepsItemResponseBodyNotFoundKind: any; export interface ScansListResultItemReportReportTestsItemStepsItemResponseBodyNotFound { kind: ScansListResultItemReportReportTestsItemStepsItemResponseBodyNotFoundKind; } export declare const ScansListResultItemReportReportTestsItemStepsItemResponseBodyNotFound: S.Schema; export type ScansListResultItemReportReportTestsItemStepsItemResponseBodyBytesKind = "bytes"; export declare const ScansListResultItemReportReportTestsItemStepsItemResponseBodyBytesKind: any; export interface ScansListResultItemReportReportTestsItemStepsItemResponseBodyBytes { contents: string; kind: ScansListResultItemReportReportTestsItemStepsItemResponseBodyBytesKind; truncated: boolean; } export declare const ScansListResultItemReportReportTestsItemStepsItemResponseBodyBytes: S.Schema; export type ScansListResultItemReportReportTestsItemStepsItemResponseBodyTextKind = "text"; export declare const ScansListResultItemReportReportTestsItemStepsItemResponseBodyTextKind: any; export interface ScansListResultItemReportReportTestsItemStepsItemResponseBodyText { contents: string; kind: ScansListResultItemReportReportTestsItemStepsItemResponseBodyTextKind; truncated: boolean; } export declare const ScansListResultItemReportReportTestsItemStepsItemResponseBodyText: S.Schema; export type ScansListResultItemReportReportTestsItemStepsItemResponseBodyJsonKind = "json"; export declare const ScansListResultItemReportReportTestsItemStepsItemResponseBodyJsonKind: any; export interface ScansListResultItemReportReportTestsItemStepsItemResponseBodyJson { contents: string; kind: ScansListResultItemReportReportTestsItemStepsItemResponseBodyJsonKind; truncated: boolean; } export declare const ScansListResultItemReportReportTestsItemStepsItemResponseBodyJson: S.Schema; export type ScansListResultItemReportReportTestsItemStepsItemResponseBody = ScansListResultItemReportReportTestsItemStepsItemResponseBodyNotFound | ScansListResultItemReportReportTestsItemStepsItemResponseBodyBytes | ScansListResultItemReportReportTestsItemStepsItemResponseBodyText | ScansListResultItemReportReportTestsItemStepsItemResponseBodyJson; export declare const ScansListResultItemReportReportTestsItemStepsItemResponseBody: any; export type ScansListResultItemReportReportTestsItemStepsItemResponseHeaderNamesList = Array; export declare const ScansListResultItemReportReportTestsItemStepsItemResponseHeaderNamesList: S.Schema; export interface ScansListResultItemReportReportTestsItemStepsItemResponse { /** HTTP response body. */ body: ScansListResultItemReportReportTestsItemStepsItemResponseBody; /** Names of headers that were received. */ headerNames: ScansListResultItemReportReportTestsItemStepsItemResponseHeaderNamesList; /** HTTP status code. */ status: number; /** HTTP status text, if available for the status code. */ statusText?: string | null; } export declare const ScansListResultItemReportReportTestsItemStepsItemResponse: S.Schema; export interface ScansListResultItemReportReportTestsItemStepsItem { /** Assertions that were made against the received response. */ assertions: ScansListResultItemReportReportTestsItemStepsItemAssertionsList; /** Errors the step encountered that may explain absent or incomplete fields. */ errors?: ScansListResultItemReportReportTestsItemStepsItemErrorsList | null; /** HTTP request that was made, if any. */ request?: ScansListResultItemReportReportTestsItemStepsItemRequest | null; /** HTTP response that was received, if any. */ response?: ScansListResultItemReportReportTestsItemStepsItemResponse | null; } export declare const ScansListResultItemReportReportTestsItemStepsItem: S.Schema; export type ScansListResultItemReportReportTestsItemStepsList = Array; export declare const ScansListResultItemReportReportTestsItemStepsList: S.Schema; export type ScansListResultItemReportReportTestsItemVerdict = "ok" | "warning" | "inconclusive"; export declare const ScansListResultItemReportReportTestsItemVerdict: any; export type ScansListResultItemReportReportTestsItemPreflightErrorsItem = ScansCreateResponseReportReportTestsItemStepsItemErrorsItem; export declare const ScansListResultItemReportReportTestsItemPreflightErrorsItem: S.Schema; export type ScansListResultItemReportReportTestsItemPreflightErrorsList = Array; export declare const ScansListResultItemReportReportTestsItemPreflightErrorsList: S.Schema; export interface ScansListResultItemReportReportTestsItem { /** Steps that were executed. */ steps: ScansListResultItemReportReportTestsItemStepsList; /** Verdict of this single test. */ verdict: ScansListResultItemReportReportTestsItemVerdict; /** Errors that prevented step execution. */ preflightErrors?: ScansListResultItemReportReportTestsItemPreflightErrorsList | null; } export declare const ScansListResultItemReportReportTestsItem: S.Schema; export type ScansListResultItemReportReportTestsList = Array; export declare const ScansListResultItemReportReportTestsList: S.Schema; export interface ScansListResultItemReportReport { /** Summary of all steps and findings. */ summary: ScansListResultItemReportReportSummary; /** List of tests that were run. */ tests: ScansListResultItemReportReportTestsList; } export declare const ScansListResultItemReportReport: S.Schema; export type ScansListResultItemReportReportSchemaVersion = "v1"; export declare const ScansListResultItemReportReportSchemaVersion: any; export interface ScansListResultItemReport { /** Version 1 of the BOLA vulnerability scan report. */ report: ScansListResultItemReportReport; /** Version of the report schema. */ reportSchemaVersion: ScansListResultItemReportReportSchemaVersion; } export declare const ScansListResultItemReport: S.Schema; export interface ScansListResultItem { /** Scan identifier. */ id: string; /** The type of vulnerability scan. */ scanType: ScansListResultItemScanType; /** Current lifecycle status of the scan. */ status: ScansListResultItemStatus; /** The target environment this scan runs against. */ targetEnvironmentId: string; /** Vulnerability report produced after the scan completes. The shape depends on the scan type. Present only for finished scans. */ report?: ScansListResultItemReport | null; } export declare const ScansListResultItem: S.Schema; export type ScansListResultList = Array; export declare const ScansListResultList: S.Schema; export interface ListScansResponse { /** The unwrapped `result` payload of the v4 response envelope. */ result: ScansListResultList; /** Pagination info from the envelope's `result_info`. */ resultInfo?: ResultInfo | null; } export declare const ListScansResponse: S.Schema; export interface ListTargetEnvironmentsRequest { /** Identifier. */ accountId: string; /** Page number of paginated results. */ page?: number; /** Number of results per page. */ perPage?: number; } export declare const ListTargetEnvironmentsRequest: S.Schema; export type TargetEnvironmentsListResultItemTargetType = "zone"; export declare const TargetEnvironmentsListResultItemTargetType: any; export interface TargetEnvironmentsListResultItemTarget { type: TargetEnvironmentsListResultItemTargetType; /** Cloudflare zone tag. The zone must belong to the account. */ zoneTag: string; } export declare const TargetEnvironmentsListResultItemTarget: S.Schema; export interface TargetEnvironmentsListResultItem { /** Target environment identifier. */ id: string; /** Human-readable name. */ name: string; /** Identifies the Cloudflare asset to scan. Uses a `type` discriminator. */ target: TargetEnvironmentsListResultItemTarget; /** Optional description providing additional context. */ description?: string | null; } export declare const TargetEnvironmentsListResultItem: S.Schema; export type TargetEnvironmentsListResultList = Array; export declare const TargetEnvironmentsListResultList: S.Schema; export interface ListTargetEnvironmentsResponse { /** The unwrapped `result` payload of the v4 response envelope. */ result: TargetEnvironmentsListResultList; /** Pagination info from the envelope's `result_info`. */ resultInfo?: ResultInfo | null; } export declare const ListTargetEnvironmentsResponse: S.Schema; export interface PatchCredentialSetRequest { /** Identifier. */ accountId: string; credentialSetId: string; /** Human-readable name. */ name?: string; } export declare const PatchCredentialSetRequest: S.Schema; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface PatchCredentialSetResponse { /** Credential set identifier. */ id: string; /** Human-readable name. */ name: string; } export declare const PatchCredentialSetResponse: S.Schema; export type CredentialSetsCredentialsEditRequestLocation = "header" | "cookie"; export declare const CredentialSetsCredentialsEditRequestLocation: any; export interface PatchCredentialSetCredentialRequest { /** Identifier. */ accountId: string; credentialSetId: string; credentialId: string; /** Where the credential is attached in outgoing requests. */ location?: CredentialSetsCredentialsEditRequestLocation | (string & {}); /** Name of the header or cookie where the credential is attached. */ locationName?: string; /** Human-readable name. */ name?: string; /** The credential value. Write-only. Never returned in responses. */ value?: string; } export declare const PatchCredentialSetCredentialRequest: S.Schema; export type CredentialSetsCredentialsEditResponseLocation = "header" | "cookie"; export declare const CredentialSetsCredentialsEditResponseLocation: any; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface PatchCredentialSetCredentialResponse { /** Credential identifier. */ id: string; /** Parent credential set identifier. */ credentialSetId: string; /** Where the credential is attached in outgoing requests. */ location: CredentialSetsCredentialsEditResponseLocation; /** Name of the header or cookie where the credential is attached. */ locationName: string; /** Human-readable name. */ name: string; } export declare const PatchCredentialSetCredentialResponse: S.Schema; export type TargetEnvironmentsEditRequestTargetType = "zone"; export declare const TargetEnvironmentsEditRequestTargetType: any; export interface TargetEnvironmentsEditRequestTarget { type: TargetEnvironmentsEditRequestTargetType | (string & {}); /** Cloudflare zone tag. The zone must belong to the account. */ zoneTag: string; } export declare const TargetEnvironmentsEditRequestTarget: S.Schema; export interface PatchTargetEnvironmentRequest { /** Identifier. */ accountId: string; targetEnvironmentId: string; /** Optional description. Omit to leave unchanged, set to `null` */ description?: string; /** Human-readable name. */ name?: string; /** Identifies the Cloudflare asset to scan. Uses a `type` discriminator. */ target?: TargetEnvironmentsEditRequestTarget; } export declare const PatchTargetEnvironmentRequest: S.Schema; export type TargetEnvironmentsEditResponseTargetType = "zone"; export declare const TargetEnvironmentsEditResponseTargetType: any; export interface TargetEnvironmentsEditResponseTarget { type: TargetEnvironmentsEditResponseTargetType; /** Cloudflare zone tag. The zone must belong to the account. */ zoneTag: string; } export declare const TargetEnvironmentsEditResponseTarget: S.Schema; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface PatchTargetEnvironmentResponse { /** Target environment identifier. */ id: string; /** Human-readable name. */ name: string; /** Identifies the Cloudflare asset to scan. Uses a `type` discriminator. */ target: TargetEnvironmentsEditResponseTarget; /** Optional description providing additional context. */ description?: string | null; } export declare const PatchTargetEnvironmentResponse: S.Schema; export interface UpdateCredentialSetRequest { /** Identifier. */ accountId: string; credentialSetId: string; /** Human-readable name. */ name: string; } export declare const UpdateCredentialSetRequest: S.Schema; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface UpdateCredentialSetResponse { /** Credential set identifier. */ id: string; /** Human-readable name. */ name: string; } export declare const UpdateCredentialSetResponse: S.Schema; export type CredentialSetsCredentialsUpdateRequestLocation = "header" | "cookie"; export declare const CredentialSetsCredentialsUpdateRequestLocation: any; export interface UpdateCredentialSetCredentialRequest { /** Identifier. */ accountId: string; credentialSetId: string; credentialId: string; /** Where the credential is attached in outgoing requests. */ location: CredentialSetsCredentialsUpdateRequestLocation | (string & {}); /** Name of the header or cookie where the credential is attached. */ locationName: string; /** Human-readable name. */ name: string; /** The credential value. Write-only. Never returned in responses. */ value: string; } export declare const UpdateCredentialSetCredentialRequest: S.Schema; export type CredentialSetsCredentialsUpdateResponseLocation = "header" | "cookie"; export declare const CredentialSetsCredentialsUpdateResponseLocation: any; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface UpdateCredentialSetCredentialResponse { /** Credential identifier. */ id: string; /** Parent credential set identifier. */ credentialSetId: string; /** Where the credential is attached in outgoing requests. */ location: CredentialSetsCredentialsUpdateResponseLocation; /** Name of the header or cookie where the credential is attached. */ locationName: string; /** Human-readable name. */ name: string; } export declare const UpdateCredentialSetCredentialResponse: S.Schema; export type TargetEnvironmentsUpdateRequestTargetType = "zone"; export declare const TargetEnvironmentsUpdateRequestTargetType: any; export interface TargetEnvironmentsUpdateRequestTarget { type: TargetEnvironmentsUpdateRequestTargetType | (string & {}); /** Cloudflare zone tag. The zone must belong to the account. */ zoneTag: string; } export declare const TargetEnvironmentsUpdateRequestTarget: S.Schema; export interface UpdateTargetEnvironmentRequest { /** Identifier. */ accountId: string; targetEnvironmentId: string; /** Human-readable name. */ name: string; /** Identifies the Cloudflare asset to scan. Uses a `type` discriminator. */ target: TargetEnvironmentsUpdateRequestTarget; /** Optional description. */ description?: string | null; } export declare const UpdateTargetEnvironmentRequest: S.Schema; export type TargetEnvironmentsUpdateResponseTargetType = "zone"; export declare const TargetEnvironmentsUpdateResponseTargetType: any; export interface TargetEnvironmentsUpdateResponseTarget { type: TargetEnvironmentsUpdateResponseTargetType; /** Cloudflare zone tag. The zone must belong to the account. */ zoneTag: string; } export declare const TargetEnvironmentsUpdateResponseTarget: S.Schema; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface UpdateTargetEnvironmentResponse { /** Target environment identifier. */ id: string; /** Human-readable name. */ name: string; /** Identifies the Cloudflare asset to scan. Uses a `type` discriminator. */ target: TargetEnvironmentsUpdateResponseTarget; /** Optional description providing additional context. */ description?: string | null; } export declare const UpdateTargetEnvironmentResponse: S.Schema; export type CreateCredentialSetError = CloudflareOpError; /** Creates a new credential set. */ export declare const createCredentialSet: API.OperationMethod; export type CreateCredentialSetCredentialError = CredentialSetNotFound | Forbidden | CloudflareOpError; /** Creates a new credential within a credential set. */ export declare const createCredentialSetCredential: API.OperationMethod; export type CreateScanError = CloudflareOpError; /** Creates and starts a new vulnerability scan. The response may include non-fatal warnings in the `messages` array. */ export declare const createScan: API.OperationMethod; export type CreateTargetEnvironmentError = ZoneTagNotFound | Forbidden | CloudflareOpError; /** Creates a new target environment for the account. */ export declare const createTargetEnvironment: API.OperationMethod; export type DeleteCredentialSetError = CredentialSetNotFound | Forbidden | CloudflareOpError; /** Deletes a credential set and all of its credentials. */ export declare const deleteCredentialSet: API.OperationMethod; export type DeleteCredentialSetCredentialError = CredentialNotFound | CredentialSetNotFound | Forbidden | CloudflareOpError; /** Deletes a credential. */ export declare const deleteCredentialSetCredential: API.OperationMethod; export type DeleteTargetEnvironmentError = TargetEnvironmentNotFound | Forbidden | CloudflareOpError; /** Removes a target environment. */ export declare const deleteTargetEnvironment: API.OperationMethod; export type GetCredentialSetError = CredentialSetNotFound | Forbidden | CloudflareOpError; /** Returns a single credential set by ID. */ export declare const getCredentialSet: API.OperationMethod; export type GetCredentialSetCredentialError = CredentialNotFound | CredentialSetNotFound | Forbidden | CloudflareOpError; /** Returns a single credential by ID. */ export declare const getCredentialSetCredential: API.OperationMethod; export type GetScanError = CloudflareOpError; /** Returns a single scan by ID. */ export declare const getScan: API.OperationMethod; export type GetTargetEnvironmentError = TargetEnvironmentNotFound | Forbidden | CloudflareOpError; /** Returns a single target environment by ID. */ export declare const getTargetEnvironment: API.OperationMethod; export type ListCredentialSetCredentialsError = CredentialSetNotFound | Forbidden | CloudflareOpError; /** Returns all credentials within a credential set. */ export declare const listCredentialSetCredentials: API.PaginatedOperationMethod; export type ListCredentialSetsError = CloudflareOpError; /** Returns all credential sets for the account. */ export declare const listCredentialSets: API.PaginatedOperationMethod; export type ListScansError = CloudflareOpError; /** Returns all scans for the account. */ export declare const listScans: API.PaginatedOperationMethod; export type ListTargetEnvironmentsError = CloudflareOpError; /** Returns all target environments for the account. */ export declare const listTargetEnvironments: API.PaginatedOperationMethod; export type PatchCredentialSetError = CredentialSetNotFound | Forbidden | CloudflareOpError; /** Updates a credential set with only the provided fields; omitted fields remain unchanged. */ export declare const patchCredentialSet: API.OperationMethod; export type PatchCredentialSetCredentialError = CredentialNotFound | CredentialSetNotFound | Forbidden | CloudflareOpError; /** Updates a credential with only the provided fields; omitted fields remain unchanged. */ export declare const patchCredentialSetCredential: API.OperationMethod; export type PatchTargetEnvironmentError = TargetEnvironmentNotFound | ZoneTagNotFound | Forbidden | CloudflareOpError; /** Updates a target environment with only the provided fields; omitted fields remain unchanged. */ export declare const patchTargetEnvironment: API.OperationMethod; export type UpdateCredentialSetError = CredentialSetNotFound | Forbidden | CloudflareOpError; /** Replaces a credential set. All fields must be provided. */ export declare const updateCredentialSet: API.OperationMethod; export type UpdateCredentialSetCredentialError = CredentialNotFound | CredentialSetNotFound | Forbidden | CloudflareOpError; /** Replaces a credential. All fields must be provided. */ export declare const updateCredentialSetCredential: API.OperationMethod; export type UpdateTargetEnvironmentError = TargetEnvironmentNotFound | ZoneTagNotFound | Forbidden | CloudflareOpError; /** Replaces a target environment. All fields must be provided. */ export declare const updateTargetEnvironment: API.OperationMethod; //# sourceMappingURL=vulnerability_scanner.d.ts.map