-
Notifications
You must be signed in to change notification settings - Fork 1
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
1 parent
9cb1541
commit 2d2ea19
Showing
2 changed files
with
143 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,133 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"$id": "https://common.schemas.verida.io/credential/reclaim/v0.1.0/schema.json", | ||
"title": "Schema for Reclaim Protocol", | ||
"description": "A schema for reclaim protocol credential", | ||
"type": "object", | ||
"appearance": { | ||
"style": { | ||
"color": "#4bbf95", | ||
"icon": "./icon.svg" | ||
} | ||
}, | ||
"allOf": [ | ||
{ | ||
"$ref": "https://core.schemas.verida.io/base/latest/schema.json" | ||
}, | ||
{ | ||
"properties": { | ||
"appId": { | ||
"title": "App ID", | ||
"description": "Unique id of the task allocated by the allocator node", | ||
"type": "string" | ||
}, | ||
"httpProviderId": { | ||
"title": "Http Provider Id", | ||
"description": "ID of http provider", | ||
"type": "array", | ||
"items": { | ||
"type": "string" | ||
} | ||
}, | ||
"proofs": { | ||
"title": "Session Id", | ||
"description": "Values of public fields defined in schema", | ||
"type": "array", | ||
"items": { | ||
"type": "object", | ||
"properties": { | ||
"identifier": { | ||
"title": "Identifier", | ||
"description": "Identifier of provider", | ||
"type": "string" | ||
}, | ||
"claimData": { | ||
"title": "Claim Data", | ||
"description": "Verifiable credential data", | ||
"type": "object", | ||
"properties": { | ||
"provider": { | ||
"title": "Protocol", | ||
"description": "Protocol of request", | ||
"type": "string" | ||
}, | ||
"parameters": { | ||
"title": "Parameters of request", | ||
"description": "Stringfied JSON object of parameters and API reqeusts", | ||
"type": "string" | ||
}, | ||
"identifier": { | ||
"title": "Identifier of request", | ||
"description": "Identifier of request", | ||
"type": "string" | ||
}, | ||
"epoch": { | ||
"title": "Epoch of request", | ||
"description": "Epoch of request", | ||
"type": "string" | ||
} | ||
} | ||
}, | ||
"signature": { | ||
"title": "Signature", | ||
"description": "The signature of verification credential", | ||
"type": "array", | ||
"items": { | ||
"type": "string" | ||
} | ||
}, | ||
"witnesses": { | ||
"title": "witnesses", | ||
"description": "Witness", | ||
"type": "array", | ||
"items": { | ||
"type": "object", | ||
"properties": { | ||
"id": { | ||
"title": "ID", | ||
"description": "ID", | ||
"type": "string" | ||
}, | ||
"url": { | ||
"title": "URL", | ||
"description": "URL", | ||
"type": "string" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"sessionId": { | ||
"title": "Session Id", | ||
"description": "Session Id of process", | ||
"type": "string" | ||
}, | ||
"reclaimProviderId": { | ||
"title": "Reclaim provider ID", | ||
"description": "The schema ID that added in the project", | ||
"type": "string" | ||
}, | ||
"reclaimProviderLabel": { | ||
"title": "Reclaim provider Label", | ||
"description": "The schema label that added in the project", | ||
"type": "string" | ||
}, | ||
"did": { | ||
"title": "Verida Did", | ||
"description": "Decentralized Identifier on the Verida network", | ||
"type": "string" | ||
} | ||
}, | ||
"required": [ | ||
"appId", | ||
"sessionId", | ||
"proofs", | ||
"reclaimProviderId", | ||
"reclaimProviderLabel", | ||
"did" | ||
] | ||
} | ||
] | ||
} |