generated from TBD54566975/tbd-project-template
-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Squashed commit of record and event subscriptions base.
Co-authored-by: Liran Cohen <[email protected]> Co-authored-by: Andor Kesselman <[email protected]> Date: Thu Dec 21 12:34:36 2023 -0500
- Loading branch information
1 parent
a6f95fb
commit 5d3671c
Showing
64 changed files
with
3,101 additions
and
176 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
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 |
---|---|---|
@@ -0,0 +1,47 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"$id": "https://identity.foundation/dwn/json-schemas/events-subscribe.json", | ||
"type": "object", | ||
"additionalProperties": false, | ||
"required": [ | ||
"descriptor" | ||
], | ||
"properties": { | ||
"authorization": { | ||
"$ref": "https://identity.foundation/dwn/json-schemas/authorization.json" | ||
}, | ||
"descriptor": { | ||
"type": "object", | ||
"additionalProperties": false, | ||
"required": [ | ||
"interface", | ||
"method", | ||
"messageTimestamp", | ||
"filters" | ||
], | ||
"properties": { | ||
"interface": { | ||
"enum": [ | ||
"Events" | ||
], | ||
"type": "string" | ||
}, | ||
"method": { | ||
"enum": [ | ||
"Subscribe" | ||
], | ||
"type": "string" | ||
}, | ||
"messageTimestamp": { | ||
"type": "string" | ||
}, | ||
"filters": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "https://identity.foundation/dwn/json-schemas/events-filter.json" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
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 |
---|---|---|
|
@@ -66,6 +66,7 @@ | |
"enum": [ | ||
"delete", | ||
"query", | ||
"subscribe", | ||
"read", | ||
"update", | ||
"write" | ||
|
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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"$id": "https://identity.foundation/dwn/json-schemas/records-subscribe.json", | ||
"type": "object", | ||
"additionalProperties": false, | ||
"required": [ | ||
"descriptor" | ||
], | ||
"properties": { | ||
"authorization": { | ||
"$ref": "https://identity.foundation/dwn/json-schemas/authorization-delegated-grant.json" | ||
}, | ||
"descriptor": { | ||
"type": "object", | ||
"additionalProperties": false, | ||
"required": [ | ||
"interface", | ||
"method", | ||
"messageTimestamp", | ||
"filter" | ||
], | ||
"properties": { | ||
"interface": { | ||
"enum": [ | ||
"Records" | ||
], | ||
"type": "string" | ||
}, | ||
"method": { | ||
"enum": [ | ||
"Subscribe" | ||
], | ||
"type": "string" | ||
}, | ||
"messageTimestamp": { | ||
"$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/definitions/date-time" | ||
}, | ||
"filter": { | ||
"$ref": "https://identity.foundation/dwn/json-schemas/records-filter.json" | ||
} | ||
} | ||
} | ||
} | ||
} |
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
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
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
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
Oops, something went wrong.