Static
Readonly
definitionThe definition of the Permissions protocol.
Static
Readonly
grantThe protocol path of the grant
record.
Static
Readonly
requestThe protocol path of the request
record.
Static
Readonly
revocationThe protocol path of the revocation
record.
Static
Readonly
uriThe URI of the DWN Permissions protocol.
Static
createConvenience method to create a permission grant.
Static
createConvenience method to create a permission request.
Static
createConvenience method to create a permission revocation.
Static
fetchFetches PermissionGrant with the specified recordID
.
the PermissionGrant matching the recordId
specified.
Static
getGets the scope from the given permission record. If the record is a revocation, the scope is fetched from the grant that is being revoked.
The message store to fetch the grant for a revocation.
Static
hasType guard to determine if the permission is a protocol-scoped
Static
parseStatic
validateValidates the given Permissions protocol RecordsWrite. It can be a request, grant, or revocation.
This is a first-class DWN protocol for managing permission grants of a given DWN.