import type { HttpClient, RequestOptions } from "../http.js"; import { Paginated } from "../pagination.js"; import type { ConnectIntegrationParams, ConnectIntegrationResult, Integration, ListIntegrationsParams, UpdateIntegrationParams } from "../types.js"; /** * Live connections to somewhere material comes from. * * What is deliberately absent from every response: the access token, the * refresh token, and anything else that would let a caller act as the user on * the far side. They are held encrypted and never leave the server, so one * leaked API key does not become access to the user's Drive. * * `connect` returns a URL to send the user to. It does not take third-party * credentials, and no method here ever will - an endpoint that accepted a * password for another service would train users to hand them over, which is * the habit every phishing attack relies on. */ export declare class Integrations { #private; constructor(http: HttpClient); list(params?: ListIntegrationsParams, options?: RequestOptions): Paginated; /** Providers that can be connected at all. Not the user's own connections. */ available(options?: RequestOptions): Promise; get(id: string, options?: RequestOptions): Promise; connect(params: ConnectIntegrationParams, options?: RequestOptions): Promise; update(id: string, params: UpdateIntegrationParams, options?: RequestOptions): Promise; /** * Asks for a sync now rather than waiting for the schedule. Answers 202. * * `full` re-reads everything and is deliberately opt-in: on a large Drive * that is thousands of documents and a real bill. The incremental default is * what should run almost always. */ sync(id: string, params?: { readonly full?: boolean; }, options?: RequestOptions): Promise<{ status: string; full: boolean; }>; /** * Destroys the credentials. The row stays. * * History still has to attribute the memories this connection produced, and * deleting the row would leave them pointing at nothing. */ disconnect(id: string, options?: RequestOptions): Promise<{ status: string; }>; }