cloudflare
Version:
The official TypeScript library for the Cloudflare API
187 lines • 5.15 kB
TypeScript
import * as Core from 'cloudflare/core';
import { APIResource } from 'cloudflare/resource';
import * as BrandProtectionAPI from 'cloudflare/resources/brand-protection';
export declare class BrandProtection extends APIResource {
/**
* Submit suspicious URL for scanning
*/
submit(params: BrandProtectionSubmitParams, options?: Core.RequestOptions): Core.APIPromise<IntelPhishingURLSubmit>;
/**
* Get results for a URL scan
*/
urlInfo(params: BrandProtectionURLInfoParams, options?: Core.RequestOptions): Core.APIPromise<IntelPhishingURLInfo>;
}
export interface IntelPhishingURLInfo {
/**
* List of categorizations applied to this submission.
*/
categorizations?: Array<IntelPhishingURLInfo.Categorization>;
/**
* List of model results for completed scans.
*/
model_results?: Array<IntelPhishingURLInfo.ModelResult>;
/**
* List of signatures that matched against site content found when crawling the
* URL.
*/
rule_matches?: Array<IntelPhishingURLInfo.RuleMatch>;
/**
* Status of the most recent scan found.
*/
scan_status?: IntelPhishingURLInfo.ScanStatus;
/**
* For internal use.
*/
screenshot_download_signature?: string;
/**
* For internal use.
*/
screenshot_path?: string;
/**
* URL that was submitted.
*/
url?: string;
}
export declare namespace IntelPhishingURLInfo {
interface Categorization {
/**
* Name of the category applied.
*/
category?: string;
/**
* Result of human review for this categorization.
*/
verification_status?: string;
}
interface ModelResult {
/**
* Name of the model.
*/
model_name?: string;
/**
* Score output by the model for this submission.
*/
model_score?: number;
}
interface RuleMatch {
/**
* For internal use.
*/
banning?: boolean;
/**
* For internal use.
*/
blocking?: boolean;
/**
* Description of the signature that matched.
*/
description?: string;
/**
* Name of the signature that matched.
*/
name?: string;
}
/**
* Status of the most recent scan found.
*/
interface ScanStatus {
/**
* Timestamp of when the submission was processed.
*/
last_processed?: string;
/**
* For internal use.
*/
scan_complete?: boolean;
/**
* Status code that the crawler received when loading the submitted URL.
*/
status_code?: number;
/**
* ID of the most recent submission.
*/
submission_id?: number;
}
}
export interface IntelPhishingURLSubmit {
/**
* URLs that were excluded from scanning because their domain is in our no-scan
* list.
*/
excluded_urls?: Array<IntelPhishingURLSubmit.ExcludedURL>;
/**
* URLs that were skipped because the same URL is currently being scanned
*/
skipped_urls?: Array<IntelPhishingURLSubmit.SkippedURL>;
/**
* URLs that were successfully submitted for scanning.
*/
submitted_urls?: Array<IntelPhishingURLSubmit.SubmittedURL>;
}
export declare namespace IntelPhishingURLSubmit {
interface ExcludedURL {
/**
* URL that was excluded.
*/
url?: string;
}
interface SkippedURL {
/**
* URL that was skipped.
*/
url?: string;
/**
* ID of the submission of that URL that is currently scanning.
*/
url_id?: number;
}
interface SubmittedURL {
/**
* URL that was submitted.
*/
url?: string;
/**
* ID assigned to this URL submission. Used to retrieve scanning results.
*/
url_id?: number;
}
}
export interface BrandProtectionSubmitParams {
/**
* Path param: Identifier
*/
account_id: string;
/**
* Body param: URL(s) to filter submissions results by
*/
url?: string;
}
export interface BrandProtectionURLInfoParams {
/**
* Path param: Identifier
*/
account_id: string;
/**
* Query param:
*/
url?: string;
/**
* Query param:
*/
url_id_param?: BrandProtectionURLInfoParams.URLIDParam;
}
export declare namespace BrandProtectionURLInfoParams {
interface URLIDParam {
/**
* Submission ID(s) to filter submission results by.
*/
url_id?: number;
}
}
export declare namespace BrandProtection {
export import IntelPhishingURLInfo = BrandProtectionAPI.IntelPhishingURLInfo;
export import IntelPhishingURLSubmit = BrandProtectionAPI.IntelPhishingURLSubmit;
export import BrandProtectionSubmitParams = BrandProtectionAPI.BrandProtectionSubmitParams;
export import BrandProtectionURLInfoParams = BrandProtectionAPI.BrandProtectionURLInfoParams;
}
//# sourceMappingURL=brand-protection.d.ts.map