import type { HttpClient } from "../core/http.js"; import type { ConnectorPresetListResponse, CreateEventSubscriptionRequest, EventSubscription, EventSubscriptionListResponse, InstalledConnectorListResponse, InstallConnectorRequest, InstallConnectorResponse, OneclawResponse, PollEventSubscriptionResponse } from "../types.js"; /** * Pre-built connectors — Gmail, Slack, GitHub and the rest. * * Installing one creates a binding with the preset's base URL and host/path * guardrails and starts the OAuth flow for it, instead of the four hand-rolled * steps it replaces. */ export declare class ConnectorsResource { private readonly http; constructor(http: HttpClient); /** * The connector catalogue. Public — no authentication required. */ listPresets(): Promise>; /** * Connectors installed on an agent, and whether each is actually connected — * an install creates the binding, but it holds no credential until the user * completes the OAuth round trip. */ list(agentId: string): Promise>; /** * Install a connector onto an agent. * * Human users only. Send the user to the returned `authorization_url` to * finish; the binding is not usable until they do. * * `scopes` may narrow the preset's list but never extend it. */ install(agentId: string, slug: string, body?: InstallConnectorRequest): Promise>; /** * Subscribe an installed connector binding to one of its preset's event * sources (`event_sources` on `listPresets()`). 1Claw polls the source * through the binding and dispatches each new item as an automation event * of `event_type`. Human-only; the first poll primes and emits nothing. */ subscribe(agentId: string, body: CreateEventSubscriptionRequest): Promise>; /** An agent's event subscriptions. */ listSubscriptions(agentId: string): Promise>; /** Delete an event subscription. Human-only. */ unsubscribe(agentId: string, subscriptionId: string): Promise>; /** Poll a subscription now instead of waiting for its interval. Human-only. */ pollNow(agentId: string, subscriptionId: string): Promise>; } //# sourceMappingURL=connectors.d.ts.map