run402-mcp
Version:
MCP server for Run402 — full-stack backend infrastructure for AI agents: Postgres, auth, storage, serverless functions and atomic deploys. Paid with x402/MPP. Includes $0.03 image generation.
17 lines • 1.02 kB
TypeScript
import type { Client } from "../kernel.js";
import type { LiveChangesOptions, LiveChangesPage, LiveEvent, LiveSubscribeOptions, LiveSubscription } from "./live.types.js";
export declare class Live {
private readonly client;
constructor(client: Client);
/** `GET /live/v1/changes` — hints since `cursor`, or hold up to `wait` seconds for the first one. */
changes(projectId: string, opts: LiveChangesOptions): Promise<LiveChangesPage>;
/**
* `GET /live/v1` as a reconnecting SSE subscription. `onEvent` receives
* `ready`, `change`, `resync`, `reconnect` (server-side lifetime close, the
* loop reconnects) and `disconnected` (a retryable failure; the loop backs
* off and retries). A non-retryable refusal (403 TABLE_NOT_LIVE, 401, 400)
* rejects `done` with the gateway's error envelope, as `request` would.
*/
subscribe(projectId: string, opts: LiveSubscribeOptions, onEvent: (event: LiveEvent) => void): LiveSubscription;
}
//# sourceMappingURL=live.d.ts.map