@fal-ai/client
Version:
The fal.ai client for JavaScript and TypeScript
28 lines (27 loc) • 1.35 kB
TypeScript
import { type FalClient } from "./client";
import { Config } from "./config";
export type { TokenProvider } from "./auth";
export { createFalClient, type FalClient } from "./client";
export type { ProxyUrlConfig } from "./config";
export { withMiddleware, withProxy } from "./middleware";
export type { ProxyRuntimeEnv, ProxyRuntimeGate, RequestMiddleware, RequestProxyConfig, } from "./middleware";
export type { QueueClient } from "./queue";
export type { RealtimeClient } from "./realtime";
export { ApiError, ValidationError } from "./response";
export type { ResponseHandler } from "./response";
export { isRetryableError } from "./retry";
export type { RetryOptions } from "./retry";
export type { StorageACL, StorageACLRule, StorageClient, StorageSettings, } from "./storage";
export type { FalStream, StreamingClient } from "./streaming";
export type { OutputType } from "./types/client";
export * from "./types/common";
export type { QueueStatus, ValidationErrorInfo, WebHookResponse, } from "./types/common";
export { parseEndpointId } from "./utils";
type SingletonFalClient = {
config(config: Config): void;
} & FalClient;
/**
* Creates a singleton instance of the client. This is useful as a compatibility
* layer for existing code that uses the clients version prior to 1.0.0.
*/
export declare const fal: SingletonFalClient;