import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as operations from "../models/operations/index.js"; export declare class Connections extends ClientSDK { /** * Get all connections * * @remarks * This endpoint includes all the configured integrations and contains the required assets * to build an integrations page where your users can install integrations. * OAuth2 supported integrations will contain authorize and revoke links to handle the authentication flows. */ list(request: operations.VaultConnectionsAllRequest, options?: RequestOptions): Promise; /** * Get connection * * @remarks * Get a connection */ get(request: operations.VaultConnectionsOneRequest, options?: RequestOptions): Promise; /** * Update connection * * @remarks * Update a connection */ update(request: operations.VaultConnectionsUpdateRequest, options?: RequestOptions): Promise; /** * Deletes a connection * * @remarks * Deletes a connection */ delete(request: operations.VaultConnectionsDeleteRequest, options?: RequestOptions): Promise; /** * Import connection * * @remarks * Import an authorized connection. */ imports(request: operations.VaultConnectionsImportRequest, options?: RequestOptions): Promise; /** * Migrate connection * * @remarks * Migrate the connection to the target connector, keeping its credentials and connection state * (settings, metadata, configuration, subscriptions, consents). The source connection record is * removed WITHOUT revoking or disconnecting the downstream token. * * Available migration targets are declared per connector — refer to the connector's * documentation page or the Connector API's `migration_targets` field. * * Migrated tokens carry the source connector's OAuth scopes, so operations exclusive to the * target connector may require re-authorization. * * Retries are idempotent: a partially-completed migration resumes where it left off. */ migrate(request: operations.VaultConnectionsMigrateRequest, options?: RequestOptions): Promise; /** * Authorize Access Token * * @remarks * Triggers exchanging persisted connection credentials for an access token and store it in Vault. Currently supported for connections with the `client_credentials` or `password` OAuth grant type. * * Note: * - Do not include any credentials in the request body. This operation does not persist changes, but only triggers the exchange of persisted connection credentials for an access token. * - The access token will not be returned in the response. A 200 response code indicates the authorization was successful and that a valid access token was stored on the connection. * - The access token will be used for subsequent API requests. */ token(request: operations.VaultConnectionsTokenRequest, options?: RequestOptions): Promise; /** * Confirm Connection * * @remarks * Confirms an OAuth connection after the callback by redeeming its confirm token. * * The confirm step is required when your application's OAuth protection mode was `enforced` when the * authorization flow started. In that case Vault completes the OAuth exchange but leaves the connection * **unconfirmed** and not callable, and the callback redirects to your `redirect_uri` with a hash * fragment containing a `confirm_token`, the `service_id` and the `unified_api`, plus the `nonce` when * the authorize request included one and the `target_origin` when it included an `opener_origin`: * `#confirm_token=&service_id=&unified_api=&nonce=&target_origin=`. * Call this endpoint with that `confirm_token` to confirm the connection and make it callable. * * The `confirm_token` is single use and expires 30 minutes after the callback. Only confirm tokens are * accepted; other tokens (such as an authorize `state`) are rejected. In the `off` * protection mode there is no confirm step: the connection is callable immediately after the * callback and no `confirm_token` is issued. * * Authenticate in one of two ways: * * - With the Vault session JWT as the bearer token (`Authorization: Bearer `) and the * `x-apideck-auth-type: JWT` header, as Hosted Vault and Vault JS do. The application and consumer * are taken from the session. * - With your API key (`Authorization: Bearer `) plus the `x-apideck-app-id` and * `x-apideck-consumer-id` headers, from your backend. */ confirm(request: operations.VaultConnectionsConfirmRequest, options?: RequestOptions): Promise; } //# sourceMappingURL=connections.lazy.d.ts.map