@hyperbrowser/sdk
Version:
Node SDK for Hyperbrowser API
26 lines (25 loc) • 972 B
TypeScript
import { BaseService } from "./base";
import { ExtractJobResponse, ExtractJobStatusResponse, StartExtractJobResponse } from "../types/extract";
import { StartExtractJobParams } from "../types/extract";
export declare class ExtractService extends BaseService {
/**
* Start a new extract job
* @param params The parameters for the extract job
*/
start(params: StartExtractJobParams): Promise<StartExtractJobResponse>;
/**
* Get the status of an extract job
* @param id The ID of the extract job to get
*/
getStatus(id: string): Promise<ExtractJobStatusResponse>;
/**
* Get the details of an extract job
* @param id The ID of the extract job to get
*/
get(id: string): Promise<ExtractJobResponse>;
/**
* Start an extract job and wait for it to complete
* @param params The parameters for the extract job
*/
startAndWait(params: StartExtractJobParams): Promise<ExtractJobResponse>;
}