/* * 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 vaultConnectionConsentsList$module: | Promise | undefined; const vaultConnectionConsentsList = (( ...args: Parameters< typeof import("../funcs/vaultConnectionConsentsList.js").vaultConnectionConsentsList > ) => new APIPromise( (vaultConnectionConsentsList$module ??= import( "../funcs/vaultConnectionConsentsList.js" ).catch((error: unknown) => { vaultConnectionConsentsList$module = undefined; throw error; })).then((module) => module.vaultConnectionConsentsList(...args).$inspect() ), )) as typeof import("../funcs/vaultConnectionConsentsList.js").vaultConnectionConsentsList; export class ConnectionConsents extends ClientSDK { /** * Get consent records * * @remarks * Get all consent records for a connection */ async list( request: operations.VaultConnectionConsentsAllRequest, options?: RequestOptions, ): Promise { return unwrapAsync(vaultConnectionConsentsList( this, request, options, )); } }