Array of actions that the actor/role can perform.
See {ProtocolAction} for possible values.
'query' and 'subscribe' are only supported for role
rules.
Optional
of?: stringProtocol path.
Must be present if who
=== 'author' or 'recipient'
Optional
role?: stringThe protocol path of a role record type marked with $role: true.
Mutually exclusive with who
Optional
who?: stringMay be 'anyone' | 'author' | 'recipient'.
If who
=== 'anyone', then of
must be omitted. Otherwise of
must be present.
Mutually exclusive with role
Rules defining which actors may access a record at the given protocol path. Rules take three forms, e.g.:
Anyone can create. { who: 'anyone', can: ['create'] }
Author of protocolPath can create; OR Recipient of protocolPath can write. { who: 'recipient' of: 'requestForQuote', can: ['create'] }
Role can create. { role: 'friend', can: ['create'] }