-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
7 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -313,18 +313,18 @@ Capabilities MAY define additional optional or required fields specific to their | |
|
||
## 3.6 Capability | ||
|
||
A capability is the association of an ability to a subject: `subject x command x arguments x caveats`. | ||
A capability is the association of an ability to a subject: `subject x command x arguments x conditions`. | ||
|
||
The Subject and Command fields are REQUIRED. Any non-normative extensions are OPTIONAL. | ||
|
||
For example, a capability may used to represent the ability to send email from a certain address on Fridays: | ||
|
||
| Field | Example | | ||
|-----------|------------------------------------------------------------| | ||
| Subject | `did:key:z6MkhaXgBZDvotDkL5257faiztiGiC2QtKLGpbnnEGta2doK` | | ||
| Command | `msg/send` | | ||
| Arguments | `{sender: "mailto:[email protected]"}` | | ||
| Caveats | `[{"day": "friday"}]` | | ||
| Field | Example | | ||
|------------|------------------------------------------------------------------------------| | ||
| Subject | `did:key:z6MkhaXgBZDvotDkL5257faiztiGiC2QtKLGpbnnEGta2doK` | | ||
| Command | `msg/send` | | ||
| Arguments | `{sender: "mailto:[email protected]"}` | | ||
| Conditions | `[{"day": "friday"}, {"field": "to", "includes": "mailto:[email protected]"}]` | | ||
|
||
## 3.7 Authority | ||
|
||
|