cloudflare
Version:
The official TypeScript library for the Cloudflare API
32 lines • 1.13 kB
TypeScript
import { APIResource } from "../../resource.js";
import * as Core from "../../core.js";
export declare class Schemas extends APIResource {
/**
* Retrieve operations and features as OpenAPI schemas
*/
list(params: SchemaListParams, options?: Core.RequestOptions): Core.APIPromise<SchemaListResponse>;
}
export interface SchemaListResponse {
schemas?: Array<unknown>;
timestamp?: string;
}
export interface SchemaListParams {
/**
* Path param: Identifier
*/
zone_id: string;
/**
* Query param: Add feature(s) to the results. The feature name that is given here
* corresponds to the resulting feature object. Have a look at the top-level object
* description for more details on the specific meaning.
*/
feature?: Array<'thresholds' | 'parameter_schemas' | 'schema_info'>;
/**
* Query param: Receive schema only for the given host(s).
*/
host?: Array<string>;
}
export declare namespace Schemas {
export { type SchemaListResponse as SchemaListResponse, type SchemaListParams as SchemaListParams };
}
//# sourceMappingURL=schemas.d.ts.map