import { ApideckCore } from "../core.js"; import { RequestOptions } from "../lib/sdks.js"; import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APIPromise } from "../types/async.js"; import { Result } from "../types/fp.js"; /** * 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. */ export declare function vaultConnectionsConfirm(client: ApideckCore, request: operations.VaultConnectionsConfirmRequest, options?: RequestOptions): APIPromise>; //# sourceMappingURL=vaultConnectionsConfirm.d.ts.map