Skip to content

Commit

Permalink
init .well-known
Browse files Browse the repository at this point in the history
  • Loading branch information
Bnonni committed Jul 18, 2024
1 parent 3c41d1a commit 58a3f3a
Show file tree
Hide file tree
Showing 5 changed files with 288 additions and 0 deletions.
64 changes: 64 additions & 0 deletions .well-known/schemas/dvcx/application.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
{
"$id": "https://formfree.github.io/.well-known/schemas/dvcx/application.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Credential Application",
"type": "object",
"properties": {
"@context": {
"type": "array",
"items": {
"type": "string"
},
"description": "The @context of the application"
},
"type": {
"type": "array",
"items": {
"type": "string"
},
"description": "The type property of the application"
},
"presentation_submission": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"definition_id": {
"type": "string"
},
"descriptor_map": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"path": {
"type": "string"
},
"format": {
"type": "string"
}
}
}
}
},
"description": "The Verifiable Credentials that represent your application"
},
"verifiableCredential": {
"type": "array",
"items": {
"type": "string"
},
"description": "The Verifiable Credentials to present in JWT format"
}
},
"required": [
"@context",
"type",
"presentation_submission",
"verifiableCredential"
]
}
10 changes: 10 additions & 0 deletions .well-known/schemas/dvcx/invoice.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://formfree.github.io/.well-known/schemas/dvcx/invoice.json",
"type": "object",
"properties": {
"url": {
"type": "string"
}
}
}
100 changes: 100 additions & 0 deletions .well-known/schemas/dvcx/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "https://formfree.github.io/.well-known/schemas/dvcx/manifest.json",
"title": "Credential Manifest",
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"description": {
"type": "string"
},
"spec_version": {
"type": "string"
},
"issuer": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"styles": {
"$ref": "https://identity.foundation/wallet-rendering/schemas/entity-styles.json"
}
},
"additionalProperties": false
},
"output_descriptors": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"schema"
],
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"description": {
"type": "string"
},
"schema": {
"type": "string"
},
"display": {
"type": "object",
"properties": {
"title": {
"$ref": "https://identity.foundation/wallet-rendering/schemas/display-mapping-object.json"
},
"subtitle": {
"$ref": "https://identity.foundation/wallet-rendering/schemas/display-mapping-object.json"
},
"description": {
"$ref": "https://identity.foundation/wallet-rendering/schemas/display-mapping-object.json"
},
"properties": {
"type": "array",
"items": {
"$ref": "https://identity.foundation/wallet-rendering/schemas/labeled-display-mapping-object.json"
}
}
},
"additionalProperties": false
},
"styles": {
"$ref": "https://identity.foundation/wallet-rendering/schemas/entity-styles.json"
}
},
"additionalProperties": false
}
},
"presentation_definition": {
"$ref": "https://identity.foundation/presentation-exchange/schemas/presentation-definition.json"
},
"format": {
"$ref": "https://identity.foundation/claim-format-registry/schemas/presentation-definition-claim-format-designations.json"
}
},
"required": [
"id",
"spec_version",
"issuer",
"output_descriptors"
],
"additionalProperties": false
}
109 changes: 109 additions & 0 deletions .well-known/schemas/dvcx/response.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://formfree.github.io/.well-known/schemas/dvcx/response.json",
"title": "Credential Response",
"type": "object",
"properties": {
"id": {
"type": "string"
},
"spec_version": {
"type": "string"
},
"applicant": {
"type": "string"
},
"manifest_id": {
"type": "string"
},
"application_id": {
"type": "string"
},
"response": {
"type": "object",
"properties": {
"descriptor_map": {
"type": "array",
"items": {
"$ref": "#/definitions/descriptor"
}
}
},
"required": [
"descriptor_map"
],
"additionalProperties": false
},
"denial": {
"type": "object",
"properties": {
"reason": {
"type": "string"
},
"input_descriptors": {
"type": "array",
"minItems": 1,
"items": {
"type": "string"
}
}
},
"required": [
"reason"
],
"additionalProperties": false
}
},
"oneOf": [
{
"required": [
"response"
]
},
{
"required": [
"denial"
]
}
],
"definitions": {
"descriptor": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"path": {
"type": "string"
},
"path_nested": {
"type": "object",
"$ref": "#/definitions/descriptor"
},
"format": {
"type": "string",
"enum": [
"jwt",
"jwt_vc",
"jwt_vp",
"ldp",
"ldp_vc",
"ldp_vp"
]
}
},
"required": [
"id",
"path",
"format"
],
"additionalProperties": false
}
},
"required": [
"id",
"spec_version",
"manifest_id"
],
"additionalProperties": false
}
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
# formfree.github.io

Contains .well-known files for FormFree identity
- did.json
- schemas
- protocols

0 comments on commit 58a3f3a

Please sign in to comment.