@credo-ts/core
Version:
<p align="center"> <br /> <img alt="Credo Logo" src="https://github.com/openwallet-foundation/credo-ts/blob/c7886cb8377ceb8ee4efe8d264211e561a75072d/images/credo-logo.png" height="250px" /> </p> <h1 align="center"><b>Credo - Core</b></h1
57 lines • 2.54 kB
text/typescript
import { DidRegistrar } from "./domain/DidRegistrar.mjs";
import { DidResolver } from "./domain/DidResolver.mjs";
import "./domain/index.mjs";
//#region src/modules/dids/DidsModuleConfig.d.ts
/**
* DidsModuleConfigOptions defines the interface for the options of the DidsModuleConfig class.
* This can contain optional parameters that have default values in the config class itself.
*/
export interface DidsModuleConfigOptions {
/**
* List of did registrars that should be used by the dids module. The registrar must
* be an instance of the {@link DidRegistrar} interface.
*
* If no registrars are provided, the default registrars will be used. `PeerDidRegistrar` and `KeyDidRegistrar`
* will ALWAYS be registered, as they are needed for connections, mediation and out of band modules to function.
* Other did methods can be disabled.
*
* @default [KeyDidRegistrar, PeerDidRegistrar, JwkDidRegistrar]
*/
registrars?: DidRegistrar[];
/**
* List of did resolvers that should be used by the dids module. The resolver must
* be an instance of the {@link DidResolver} interface.
*
* If no resolvers are provided, the default resolvers will be used. `PeerDidResolver` and `KeyDidResolver`
* will ALWAYS be registered, as they are needed for connections, mediation and out of band modules to function.
* Other did methods can be disabled.
*
* @default [WebDidResolver, KeyDidResolver, PeerDidResolver, JwkDidResolver]
*/
resolvers?: DidResolver[];
/**
* Did methods whose documents live in public, context-independent sources: resolving them
* yields the same result in any agent context, so their documents can be cached in the global
* scope shared across all agent contexts (when the resolver allows caching). Documents of
* other did methods are cached per agent context.
*
* @default ['web', 'indy', 'sov', 'cheqd', 'hedera', 'webvh']
*/
publicDidMethods?: string[];
}
export declare class DidsModuleConfig {
private options;
private _registrars;
private _resolvers;
constructor(options?: DidsModuleConfigOptions);
/** See {@link DidsModuleConfigOptions.registrars} */
get registrars(): DidRegistrar[];
addRegistrar(registrar: DidRegistrar): void;
/** See {@link DidsModuleConfigOptions.resolvers} */
get resolvers(): DidResolver[];
addResolver(resolver: DidResolver): void;
/** See {@link DidsModuleConfigOptions.publicDidMethods} */
get publicDidMethods(): string[];
}
//#endregion
//# sourceMappingURL=DidsModuleConfig.d.mts.map