Skip to main content

DIDDiscovery class

This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

This class adds support for discovering DIDs.

This API may change without a BREAKING CHANGE notice.

Signature:

export declare class DIDDiscovery implements IAgentPlugin

Implements: IAgentPlugin

Constructors

ConstructorModifiersDescription
(constructor)(options)(BETA) Constructs a new instance of the DIDDiscovery class

Properties

PropertyModifiersTypeDescription
methodsreadonlyIDIDDiscovery(BETA)
providersreadonlyArray<AbstractDidDiscoveryProvider>(BETA)
schemareadonly{ components: { schemas: { IDIDDiscoveryDiscoverDidArgs: { type: string; properties: { query: { type: string; description: string; }; options: { type: string; description: string; }; }; required: string[]; description: string; }; IDIDDiscoveryDiscoverDidResult: { type: string; properties: { query: { type: string; description: string; }; options: { type: string; description: string; }; results: { type: string; items: { $ref: string; }; description: string; }; errors: { type: string; additionalProperties: { type: string; }; description: string; }; }; required: string[]; description: string; }; IDIDDiscoveryProviderResult: { type: string; properties: { provider: { type: string; description: string; }; matches: { type: string; items: { $ref: string; }; description: string; }; }; required: string[]; description: string; }; IDIDDiscoverMatch: { type: string; properties: { did: { type: string; description: string; }; metaData: { type: string; description: string; }; }; required: string[]; description: string; }; }; methods: { discoverDid: { description: string; arguments: { $ref: string; }; returnType: { $ref: string; }; }; }; }; }(BETA)

Methods

MethodModifiersDescription
discoverDid(args, context)(BETA) Queries data providers and returns DIDs with metadata