UNPKG

@sphereon/ssi-sdk.ebsi-support

Version:

37 lines 1.47 kB
import { DIDDocument } from 'did-resolver'; import { ApiOpts } from '../../types/IEbsiSupport'; import { GetDidDocumentParams, GetDidDocumentsParams, GetDidDocumentsResponse } from '../types'; /** * Gets the DID document corresponding to the DID. * @param {{ params: GetDidDocumentParams, apiOpts?: ApiOpts }} args * @returns a did document */ export declare const ebsiGetDidDocument: (args: { params: GetDidDocumentParams; apiOpts?: ApiOpts; }) => Promise<DIDDocument>; /** * Wait up to the number of MS for a DID Document or Verification methods and relationships to be registered. This is needed, as the EBSI blockchain does not directly propagate across all nodes, since it needs to mine for consensus first * @param args */ export declare const ebsiWaitTillDocumentAnchored: (args: GetDidDocumentParams & ApiOpts & { startIntervalMS?: number; minIntervalMS?: number; decreaseIntervalMSPerStep?: number; maxWaitTime?: number; searchForObject?: Record<string, any>; }) => Promise<{ totalWaitTime: number; count: number; didDocument: DIDDocument | undefined; }>; /** * listDidDocuments - Returns a list of identifiers. * @param {{ params: GetDidDocumentsParams; apiOpts?: ApiOpts }} args * @returns a list of identifiers */ export declare const ebsiListDidDocuments: (args: { params: GetDidDocumentsParams; apiOpts?: ApiOpts; }) => Promise<GetDidDocumentsResponse>; //# sourceMappingURL=EbsiRestService.d.ts.map