/** * Object containing the secret name and some links * @public */ export type VaultSecret = { name: string; path: string; showUrl: string; editUrl: string; }; /** * Interface for the Vault API * @public */ export interface VaultApi { /** * Returns the URL to access the Vault UI with the defined config. */ getFrontendSecretsUrl(): string; /** * Returns a list of secrets used to show in a table. * @param secretPath - The path where the secrets are stored in Vault * @param options - Additional options to be passed to the Vault API, allows to override vault default settings in app config file */ listSecrets(secretPath: string, options?: { secretEngine?: string; }): Promise; /** * Optional, to renew the token used to list the secrets. Throws an * error if the token renewal went wrong. */ renewToken?(): Promise; }