/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as operations from "../models/operations/index.js"; import { APIPromise } from "../types/async.js"; import { unwrapAsync } from "../types/fp.js"; let vaultConnectionConsentUpdate$module: | Promise | undefined; const vaultConnectionConsentUpdate = (( ...args: Parameters< typeof import("../funcs/vaultConnectionConsentUpdate.js").vaultConnectionConsentUpdate > ) => new APIPromise( (vaultConnectionConsentUpdate$module ??= import( "../funcs/vaultConnectionConsentUpdate.js" ).catch((error: unknown) => { vaultConnectionConsentUpdate$module = undefined; throw error; })).then((module) => module.vaultConnectionConsentUpdate(...args).$inspect() ), )) as typeof import("../funcs/vaultConnectionConsentUpdate.js").vaultConnectionConsentUpdate; export class ConnectionConsent extends ClientSDK { /** * Update consent state * * @remarks * Update the consent state of a connection */ async update( request: operations.VaultConnectionConsentUpdateRequest, options?: RequestOptions, ): Promise { return unwrapAsync(vaultConnectionConsentUpdate( this, request, options, )); } }