dood-stream-client
Version:
๐ A feature-rich client for the DoodStream API with caching, logging, and error handling
58 lines (57 loc) โข 1.31 kB
TypeScript
import { AccountApi, FileApi, FolderApi, RemoteUploadApi, UploadApi } from "./api";
import { ClientOptions } from "./interfaces/client-options";
/**
* ๐ DoodStream API client
*
* Provides access to all DoodStream API functionality with robust error handling,
* caching, and logging.
*/
export declare class DoodStreamClient {
/**
* ๐ Logger instance
*/
private logger;
/**
* ๐ง Cache manager
*/
private cacheManager;
/**
* ๐ HTTP client
*/
private httpClient;
/**
* ๐ค Account API
*/
readonly account: AccountApi;
/**
* ๐ File API
*/
readonly file: FileApi;
/**
* ๐ Folder API
*/
readonly folder: FolderApi;
/**
* ๐ Remote upload API
*/
readonly remoteUpload: RemoteUploadApi;
/**
* ๐ค Upload API
*/
readonly upload: UploadApi;
/**
* Create a new DoodStream client
*
* @param options - Client options
*/
constructor(options: ClientOptions);
/**
* ๐งน Clear all cached data
*/
clearCache(): void;
}
export * from "./interfaces/client-options";
export * from "./interfaces/api-params";
export * from "./interfaces/api-responses";
export * from "./errors";
export default DoodStreamClient;