UNPKG

@ejazullah/smart-browser-automation

Version:

A smart AI-driven browser automation library and REST API server using MCP (Model Context Protocol) and LangChain for multi-step task execution. Includes both programmatic library usage and HTTP API server for remote automation.

28 lines (24 loc) 666 B
import StorageFileApi from './packages/StorageFileApi' import StorageBucketApi from './packages/StorageBucketApi' import { Fetch } from './lib/fetch' export interface StorageClientOptions { useNewHostname?: boolean } export class StorageClient extends StorageBucketApi { constructor( url: string, headers: { [key: string]: string } = {}, fetch?: Fetch, opts?: StorageClientOptions ) { super(url, headers, fetch, opts) } /** * Perform file operation in a bucket. * * @param id The bucket id to operate on. */ from(id: string): StorageFileApi { return new StorageFileApi(this.url, this.headers, id, this.fetch) } }