@webgpt/sdk
Version:
WebGPT SDK is a TypeScript / JavaScript library for interacting with the WebGPT API.
28 lines (27 loc) • 991 B
TypeScript
import type { MakeAssignmentOptions, MakeAssignmentTask } from './types/MakeAssignment';
import type { MakeWebsiteOptions, MakeWebsiteTask } from './types/MakeWebsite';
import type { TaskId } from './types/type-aliases';
import type { WebgptSdkOptions } from './types/WebgptSdkOptions';
export declare class WebgptSdk {
private options;
constructor(options: WebgptSdkOptions);
/**
* Creates a connection to the remote proxy server.
*/
private makeConnection;
/**
* Creates a new assignment based on the idea.
*
* @throws {IdeaNotAccepted} If the idea is not good enough
*/
makeAssignment(options: MakeAssignmentOptions): MakeAssignmentTask;
/**
* Connects to the existing task based on id
*/
recoverAssignmentMaking(id: TaskId): MakeAssignmentTask;
makeWebsite(options: MakeWebsiteOptions): MakeWebsiteTask;
recoverWebsiteMaking(id: TaskId): MakeWebsiteTask;
}
/**
* TODO: !!! Annotate all (+with @throws)
*/