UNPKG

parea-ai

Version:

Client SDK library to connect to Parea AI.

37 lines (36 loc) 1.2 kB
import { HTTPClient } from './api-client'; /** * Represents a project and provides methods for managing project-related operations. */ export declare class Project { private client; private projectName; private project; constructor(); /** * Sets the HTTP client for making API requests. * @param client The HTTP client instance to be used for API calls. */ setClient(client: HTTPClient): void; /** * Sets the name of the project. * @param projectName The name to be assigned to the project. */ setProjectName(projectName: string): void; /** * Retrieves the UUID of the project. * @returns A promise that resolves to the project UUID as a string. * @throws Error if the Parea Client is not instantiated. */ getProjectUUID(): Promise<string>; /** * Retrieves an existing project or creates a new one if necessary. * @returns A promise that resolves to the project UUID as a string. * @throws Error if the Parea Client is not instantiated. */ private getOrCreateProjectIfNecessary; } /** * A singleton instance of the Project class. */ export declare const pareaProject: Project;