{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "BlisacheResponse",
"type": "object",
"properties": {
"action": {
"$ref": "#/$defs/BlisacheAction"
},
"data": {
"oneOf": [
{ "$ref": "/RegisterInitResponse" },
{ "$ref": "/RegisterCompleteResponse" },
{ "$ref": "/AuthenticateInitResponse" },
{ "$ref": "/AuthenticateCompleteResponse" },
{ "$ref": "/CredentialListResponse" }
]
},
"domain": {
"type": "string"
},
"result": {
"$ref": "#/$defs/BlisacheActionResult"
},
"timestamp": {
"type": "integer",
"format": "uint64",
"minimum": 0
}
},
"required": [
"timestamp",
"domain",
"action",
"result",
"data"
],
"$defs": {
"BlisacheAction": {
"type": "string",
"enum": [
"RegisterInit",
"RegisterComplete",
"AuthenticateInit",
"AuthenticateComplete",
"ListCredentials",
"AddCredential",
"RevokeCredentialInit",
"RevokeCredentialComplete",
"GetPublicKey",
"VerifySignature"
]
},
"BlisacheActionResult": {
"type": "string",
"enum": [
"Success",
"Error"
]
}
}
}