UNPKG

@web5/agent

Version:
31 lines 2.02 kB
import { RecordsRead, RecordsQuery, RecordsWrite, DwnMethodName, RecordsDelete, ProtocolsQuery, DwnInterfaceName, ProtocolsConfigure, RecordsSubscribe, MessagesQuery, MessagesRead, MessagesSubscribe, } from '@tbd54566975/dwn-sdk-js'; export var DwnInterface; (function (DwnInterface) { DwnInterface["MessagesQuery"] = "MessagesQuery"; DwnInterface["MessagesRead"] = "MessagesRead"; DwnInterface["MessagesSubscribe"] = "MessagesSubscribe"; DwnInterface["ProtocolsConfigure"] = "ProtocolsConfigure"; DwnInterface["ProtocolsQuery"] = "ProtocolsQuery"; DwnInterface["RecordsDelete"] = "RecordsDelete"; DwnInterface["RecordsQuery"] = "RecordsQuery"; DwnInterface["RecordsRead"] = "RecordsRead"; DwnInterface["RecordsSubscribe"] = "RecordsSubscribe"; DwnInterface["RecordsWrite"] = "RecordsWrite"; })(DwnInterface || (DwnInterface = {})); export const dwnMessageConstructors = { [DwnInterface.MessagesQuery]: MessagesQuery, [DwnInterface.MessagesRead]: MessagesRead, [DwnInterface.MessagesSubscribe]: MessagesSubscribe, [DwnInterface.ProtocolsConfigure]: ProtocolsConfigure, [DwnInterface.ProtocolsQuery]: ProtocolsQuery, [DwnInterface.RecordsDelete]: RecordsDelete, [DwnInterface.RecordsQuery]: RecordsQuery, [DwnInterface.RecordsRead]: RecordsRead, [DwnInterface.RecordsSubscribe]: RecordsSubscribe, [DwnInterface.RecordsWrite]: RecordsWrite, }; // The following types are exported by the DWN SDK and are re-exported here so that dependent // packages do not need to import the DWN SDK directly. This ensures that downstream packages are // always using the same version of the DWN SDK as the agent package. export { DwnConstant, DateSort as DwnDateSort, EncryptionAlgorithm as DwnEncryptionAlgorithm, KeyDerivationScheme as DwnKeyDerivationScheme, PermissionGrant as DwnPermissionGrant, PermissionRequest as DwnPermissionRequest, PermissionsProtocol as DwnPermissionsProtocol, } from '@tbd54566975/dwn-sdk-js'; //# sourceMappingURL=dwn.js.map