UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

55 lines 1.82 kB
import { APIResource } from "../../../resource.js"; import * as Core from "../../../core.js"; export declare class Behaviours extends APIResource { /** * Update configuration for risk behaviors */ update(params: BehaviourUpdateParams, options?: Core.RequestOptions): Core.APIPromise<BehaviourUpdateResponse>; /** * Get all behaviors and associated configuration */ get(params: BehaviourGetParams, options?: Core.RequestOptions): Core.APIPromise<BehaviourGetResponse>; } export interface BehaviourUpdateResponse { behaviors: Record<string, BehaviourUpdateResponse.Behaviors>; } export declare namespace BehaviourUpdateResponse { interface Behaviors { enabled: boolean; risk_level: 'low' | 'medium' | 'high'; } } export interface BehaviourGetResponse { behaviors: Record<string, BehaviourGetResponse.Behaviors>; } export declare namespace BehaviourGetResponse { interface Behaviors { description: string; enabled: boolean; name: string; risk_level: 'low' | 'medium' | 'high'; } } export interface BehaviourUpdateParams { /** * Path param: Account ID */ account_id: string; /** * Body param: */ behaviors: Record<string, BehaviourUpdateParams.Behaviors>; } export declare namespace BehaviourUpdateParams { interface Behaviors { enabled: boolean; risk_level: 'low' | 'medium' | 'high'; } } export interface BehaviourGetParams { account_id: string; } export declare namespace Behaviours { export { type BehaviourUpdateResponse as BehaviourUpdateResponse, type BehaviourGetResponse as BehaviourGetResponse, type BehaviourUpdateParams as BehaviourUpdateParams, type BehaviourGetParams as BehaviourGetParams, }; } //# sourceMappingURL=behaviours.d.ts.map