diff --git a/agent-swagger.json b/agent-swagger.json index 4dc725fc466fc607c8d1b86bc060f21aab62756d..5804270d5be2520200a5aa94326dcd7d19e2d951 100644 --- a/agent-swagger.json +++ b/agent-swagger.json @@ -637,6 +637,60 @@ } } }, + "/api/v1/credentials/{id}/status": { + "get": { + "operationId": "RestController_getCredentialStatusById", + "parameters": [ + { + "name": "id", + "required": true, + "in": "path", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/RevocationStatusResponseDto" + } + } + } + } + } + } + }, + "/api/v1/credentials/{id}/revoke": { + "get": { + "operationId": "RestController_revokeCredentialById", + "parameters": [ + { + "name": "id", + "required": true, + "in": "path", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/RevocationStatusResponseDto" + } + } + } + } + } + } + }, "/api/v1/credentials/{id}/format-data": { "get": { "operationId": "RestController_getCredentialFormatDataById", @@ -1364,12 +1418,20 @@ }, "tag": { "type": "string" + }, + "revocationRegistry": { + "type": "object" + }, + "revocationStatusList": { + "type": "object" } }, "required": [ "schemaId", "issuerId", - "tag" + "tag", + "revocationRegistry", + "revocationStatusList" ] }, "CreateCredentialDefinitionRequestDto": { @@ -1420,11 +1482,19 @@ "items": { "$ref": "#/components/schemas/OfferCredentialAttributes" } + }, + "revocationRegistryDefinitionId": { + "type": "string" + }, + "revocationRegistryIndex": { + "type": "number" } }, "required": [ "credentialDefinitionId", - "attributes" + "attributes", + "revocationRegistryDefinitionId", + "revocationRegistryIndex" ] }, "CredentialRecordDto": { @@ -1669,6 +1739,28 @@ "verifiableCredential" ] }, + "RevocationStatusResponseDto": { + "type": "object", + "properties": { + "revocationRegistryId": { + "type": "string" + }, + "valid": { + "type": "boolean" + }, + "revocationId": { + "type": "number" + }, + "message": { + "type": "string" + } + }, + "required": [ + "revocationRegistryId", + "valid", + "revocationId" + ] + }, "CredentialFormatDataDto": { "type": "object", "properties": {