Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Reclaim protocol credential schema #24

Merged
merged 3 commits into from
Apr 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions credential/reclaim/v0.1.0/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
143 changes: 143 additions & 0 deletions credential/reclaim/v0.1.0/schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,143 @@
{
"$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"
}
},
"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",
"minItems": 1,
"items": {
"type": "string"
}
},
"proofs": {
"title": "Proofs",
"description": "Values of public fields defined in schema",
"type": "array",
"minItems": 1,
"items": {
"type": "object",
"required": [
"identifier",
"claimData",
"signature"
],
"properties": {
"identifier": {
"title": "Identifier",
"description": "Identifier of provider",
"type": "string"
},
"claimData": {
"title": "Claim Data",
"description": "Verifiable credential data",
"type": "object",
"required": [
"provider",
"identifier"
],
"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",
"minItems": 1,
"items": {
"type": "string"
}
},
"witnesses": {
"title": "witnesses",
"description": "Witness",
"type": "array",
"minItems": 1,
"items": {
"type": "object",
"required": [
"id",
"url"
],
"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 ID of reclaim provider",
"type": "string"
},
"reclaimProviderLabel": {
"title": "Reclaim provider Label",
"description": "The label of reclaim provider",
"type": "string"
},
"id": {
"title": "Did",
"description": "DID of the subject",
"type": "string"
}
},
"required": [
"appId",
"sessionId",
"proofs",
"reclaimProviderId",
"reclaimProviderLabel",
"id"
]
}
Loading