Constructs a new instance of the Protocol class.
The Web5Agent instance used for network interactions.
The configuration message containing the protocol details.
Metadata associated with the protocol, including the author and optional message CID.
Private
_agentThe Web5Agent instance that handles DWNs requests.
Private
_metadataThe ProtocolsConfigureMessage containing the detailed configuration for the protocol.
Private
_protocolsMetadata associated with the protocol, including the author and optional message CID.
Retrieves the protocol definition from the protocol's configuration message.
The protocol definition.
Sends the protocol configuration to a remote DWN identified by the target DID.
The DID of the target DWN to which the protocol configuration will be installed.
A promise that resolves to an object containing the status of the send operation.
Encapsulates a DWN Protocol with its associated metadata and configuration.
This class primarly exists to provide developers with a convenient way to configure/install protocols on remote DWNs.