oxylabs-ai-studio
Version:
JavaScript SDK for Oxylabs AI Studio API services
35 lines • 1.25 kB
TypeScript
import { OxylabsAIStudioClient } from '../client.js';
import { GenerateSchemaOptions, CrawlOptions, CrawlWithAutoSchemaOptions, RunResponse, SchemaResponse } from '../types.js';
/**
* AI-Crawl Service
* Handles all AI-Crawl related API calls
*/
export declare class AiCrawlerService {
private client;
constructor(client: OxylabsAIStudioClient);
/**
* Generate schema for crawling (POST /crawl/schema)
*/
generateSchema(options: GenerateSchemaOptions): Promise<SchemaResponse>;
/**
* Submit crawling request (POST /extract/run)
*/
submitCrawlRequest(options: CrawlOptions): Promise<RunResponse>;
/**
* Get crawling steps (GET /extract/run/steps)
*/
getCrawlRunSteps(runId: string): Promise<any>;
/**
* Get crawling run data/results (GET /extract/run/data)
*/
getCrawlRunData(runId: string): Promise<any>;
/**
* Synchronous crawling (wait for results)
*/
crawl(options: CrawlOptions, timeout?: number, pollInterval?: number): Promise<any>;
/**
* Complete workflow with auto-schema and sync results
*/
crawlWithAutoSchema(options: CrawlWithAutoSchemaOptions, timeout?: number): Promise<any>;
}
//# sourceMappingURL=aiCrawler.d.ts.map