/** * This file was auto-generated by Fern from our API Definition. */ import * as environments from "../../../../environments"; import * as core from "../../../../core"; import * as WorkOS from "../../.."; export declare namespace Connections { interface Options { environment?: core.Supplier; authorizationToken?: core.Supplier; fetcher?: core.FetchFunction; } interface RequestOptions { timeoutInSeconds?: number; maxRetries?: number; } } export declare class Connections { protected readonly _options: Connections.Options; constructor(_options?: Connections.Options); /** * Get the details of an existing connection * @throws {@link WorkOS.ForbiddenError} * @throws {@link WorkOS.NotFoundError} * * @example * await workOs.connections.get("string") */ get(id: string, requestOptions?: Connections.RequestOptions): Promise; /** * Delete an existing connection * @throws {@link WorkOS.ForbiddenError} * @throws {@link WorkOS.NotFoundError} * * @example * await workOs.connections.delete("string") */ delete(id: string, requestOptions?: Connections.RequestOptions): Promise; /** * Get a list of all of your existing connections matching the criteria specified * @throws {@link WorkOS.ForbiddenError} * * @example * await workOs.connections.list({}) */ list(request?: WorkOS.ListConnectionOpts, requestOptions?: Connections.RequestOptions): Promise>; protected _getAuthorizationHeader(): Promise; }