From d8a573b01bd5a882c86cf6fee476a61401c6e1dd Mon Sep 17 00:00:00 2001
From: sovrgn <boyan.tsolov@vereign.com>
Date: Fri, 22 Mar 2024 11:04:18 +0200
Subject: [PATCH] chore: update swagger

---
 agent-swagger.json | 96 +++++++++++++++++++++++++++++++++++++++++++++-
 1 file changed, 94 insertions(+), 2 deletions(-)

diff --git a/agent-swagger.json b/agent-swagger.json
index 4dc725fc..5804270d 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": {
-- 
GitLab