/* * 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 vaultCustomMappingsList$module: | Promise | undefined; const vaultCustomMappingsList = (( ...args: Parameters< typeof import("../funcs/vaultCustomMappingsList.js").vaultCustomMappingsList > ) => new APIPromise( (vaultCustomMappingsList$module ??= import( "../funcs/vaultCustomMappingsList.js" ).catch((error: unknown) => { vaultCustomMappingsList$module = undefined; throw error; })).then((module) => module.vaultCustomMappingsList(...args).$inspect()), )) as typeof import("../funcs/vaultCustomMappingsList.js").vaultCustomMappingsList; export class CustomMappings extends ClientSDK { /** * List custom mappings * * @remarks * This endpoint returns a list of custom mappings. */ async list( request: operations.VaultCustomMappingsAllRequest, options?: RequestOptions, ): Promise { return unwrapAsync(vaultCustomMappingsList( this, request, options, )); } }