UNPKG

apx-toolkit

Version:

Automatically discover APIs and generate complete integration packages: code in 12 languages, TypeScript types, test suites, SDK packages, API documentation, mock servers, performance reports, and contract tests. Saves 2-4 weeks of work in seconds.

14 lines 583 B
import type { Response } from 'playwright'; import type { DiscoveredAPI, ActorInput } from '../types.js'; /** * Checks if a response matches the criteria for an API endpoint */ export declare function isAPIResponse(response: Response, config: { apiPatterns?: string[]; minResponseSize?: number; }, cachedBody?: Buffer): Promise<boolean>; /** * Extracts API metadata from a network response */ export declare function extractAPIMetadata(response: Response, config: ActorInput, cachedBody?: Buffer): Promise<DiscoveredAPI | null>; //# sourceMappingURL=api-detector.d.ts.map