import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as components from "../models/components/index.js"; import * as operations from "../models/operations/index.js"; import { PageIterator } from "../types/operations.js"; export declare class Connections extends ClientSDK { /** * Create Connection * * @remarks * Create a connection. This is only for non-oauth connections such as S3 compatible connections, Freshdesk, and Zendesk. */ createConnection(request: components.PublicCreateConnection, options?: RequestOptions): Promise; /** * List Connections * * @remarks * List all connections sorted by created_at in descending order. Results are paginated with a max limit of 100. When more documents are available, a `cursor` will be provided. Use the `cursor` parameter to retrieve the subsequent page. */ list(request?: operations.ListConnectionsConnectionsGetRequest | undefined, options?: RequestOptions): Promise>; /** * Create Oauth Redirect Url * * @remarks * Creates a redirect url to redirect the user to when initializing an embedded connector. */ createOAuthRedirectUrl(request: components.OAuthUrlCreate, options?: RequestOptions): Promise; /** * List Connection Source Types * * @remarks * List available connection source types like 'google_drive' and 'notion' along with their metadata */ listConnectionSourceTypes(options?: RequestOptions): Promise; /** * Set Connection Enabled * * @remarks * Enable or disable the connection. A disabled connection won't sync. */ setEnabled(request: operations.SetConnectionEnabledConnectionsConnectionIdEnabledPutRequest, options?: RequestOptions): Promise; /** * Update Connection * * @remarks * Updates a connections metadata or mode. These changes will be seen after the next sync. */ update(request: operations.UpdateConnectionConnectionsConnectionIdPutRequest, options?: RequestOptions): Promise; /** * Get Connection * * @remarks * Get a connection. */ get(request: operations.GetConnectionConnectionsConnectionIdGetRequest, options?: RequestOptions): Promise; /** * Get Connection Stats * * @remarks * Lists connection stats: total documents active documents, total active pages. */ getStats(request: operations.GetConnectionStatsConnectionsConnectionIdStatsGetRequest, options?: RequestOptions): Promise; /** * Set Connection Limits * * @remarks * Sets limits on a connection. Limits can be set on the total number of pages a connection can sync. When the limit is reached, the connection will be disabled. Limit may be removed by setting it to `null`. */ setLimits(request: operations.SetConnectionLimitsConnectionsConnectionIdLimitPutRequest, options?: RequestOptions): Promise; /** * Delete Connection * * @remarks * Schedules a connection to be deleted. You can choose to keep the files from the connection or delete them all. If you keep the files, they will no longer be associated to the connection. Deleting can take some time, so you will still see files for a bit after this is called. */ delete(request: operations.DeleteConnectionConnectionsConnectionIdDeletePostRequest, options?: RequestOptions): Promise<{ [k: string]: string; }>; /** * Sync Connection * * @remarks * Schedules a connector to sync as soon as possible. */ sync(request: operations.SyncConnectionRequest, options?: RequestOptions): Promise; } //# sourceMappingURL=connections.d.ts.map