Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

BlisacheResponse

{
  "$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"
      ]
    }
  }
}