diff --git a/api/swagger.json b/api/swagger.json index 4e2d418..dbd3170 100644 --- a/api/swagger.json +++ b/api/swagger.json @@ -92,18 +92,18 @@ "403": { "description": "Forbidden" }, - "500": { - "description": "Internal Server Error\n\nPossible error codes:\n - UNEXPECTED_ERROR", + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ErrorResponse" + "$ref": "#/components/schemas/CreateSelfieResponse" } } } }, - "400": { - "description": "Bad request\n\nPossible error codes:\n - INVALID_ID\n - INVALID_REQUEST_BODY\n - INVALID_IMAGE", + "404": { + "description": "Not found\n\nPossible error codes:\n - NOT_FOUND", "content": { "application/json": { "schema": { @@ -112,8 +112,8 @@ } } }, - "404": { - "description": "Not found\n\nPossible error codes:\n - NOT_FOUND", + "500": { + "description": "Internal Server Error\n\nPossible error codes:\n - UNEXPECTED_ERROR", "content": { "application/json": { "schema": { @@ -122,8 +122,8 @@ } } }, - "409": { - "description": "Conflict\n\nPossible error codes:\n - CONFLICT", + "400": { + "description": "Bad request\n\nPossible error codes:\n - INVALID_ID\n - INVALID_REQUEST_BODY\n - INVALID_IMAGE", "content": { "application/json": { "schema": { @@ -132,12 +132,12 @@ } } }, - "200": { - "description": "OK", + "409": { + "description": "Conflict\n\nPossible error codes:\n - CONFLICT", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CreateSelfieResponse" + "$ref": "#/components/schemas/ErrorResponse" } } } @@ -166,6 +166,12 @@ } ], "responses": { + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + }, "500": { "description": "Internal Server Error\n\nPossible error codes:\n - UNEXPECTED_ERROR", "content": { @@ -186,12 +192,6 @@ } } }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, "204": { "description": "No Content" } @@ -221,18 +221,24 @@ } ], "responses": { - "500": { - "description": "Internal Server Error\n\nPossible error codes:\n - UNEXPECTED_ERROR", + "401": { + "description": "Unauthorized" + }, + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ErrorResponse" + "$ref": "#/components/schemas/CreateCustomerLivenessResponse" } } } }, - "400": { - "description": "Bad request\n\nPossible error codes:\n - INVALID_ID", + "403": { + "description": "Forbidden" + }, + "404": { + "description": "Not found\n\nPossible error codes:\n - NOT_FOUND", "content": { "application/json": { "schema": { @@ -241,8 +247,8 @@ } } }, - "404": { - "description": "Not found\n\nPossible error codes:\n - NOT_FOUND", + "500": { + "description": "Internal Server Error\n\nPossible error codes:\n - UNEXPECTED_ERROR", "content": { "application/json": { "schema": { @@ -251,11 +257,8 @@ } } }, - "401": { - "description": "Unauthorized" - }, - "409": { - "description": "Conflict\n\nPossible error codes:\n - CONFLICT", + "400": { + "description": "Bad request\n\nPossible error codes:\n - INVALID_ID", "content": { "application/json": { "schema": { @@ -264,18 +267,15 @@ } } }, - "200": { - "description": "OK", + "409": { + "description": "Conflict\n\nPossible error codes:\n - CONFLICT", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CreateCustomerLivenessResponse" + "$ref": "#/components/schemas/ErrorResponse" } } } - }, - "403": { - "description": "Forbidden" } }, "security": [ @@ -301,6 +301,12 @@ } ], "responses": { + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + }, "500": { "description": "Internal Server Error\n\nPossible error codes:\n - UNEXPECTED_ERROR", "content": { @@ -321,12 +327,6 @@ } } }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, "204": { "description": "No Content" } @@ -366,8 +366,14 @@ "required": true }, "responses": { - "500": { - "description": "Internal Server Error\n\nPossible error codes:\n - UNEXPECTED_ERROR", + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + }, + "404": { + "description": "Not found\n\nPossible error codes:\n - NOT_FOUND", "content": { "application/json": { "schema": { @@ -376,8 +382,8 @@ } } }, - "400": { - "description": "Bad request\n\nPossible error codes:\n - INVALID_ID\n - INVALID_REQUEST_BODY", + "500": { + "description": "Internal Server Error\n\nPossible error codes:\n - UNEXPECTED_ERROR", "content": { "application/json": { "schema": { @@ -386,21 +392,18 @@ } } }, - "404": { - "description": "Not found\n\nPossible error codes:\n - NOT_FOUND", + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ErrorResponse" + "$ref": "#/components/schemas/CreateDocumentResponse" } } } }, - "401": { - "description": "Unauthorized" - }, - "409": { - "description": "Conflict\n\nPossible error codes:\n - CONFLICT", + "400": { + "description": "Bad request\n\nPossible error codes:\n - INVALID_ID\n - INVALID_REQUEST_BODY", "content": { "application/json": { "schema": { @@ -409,18 +412,15 @@ } } }, - "200": { - "description": "OK", + "409": { + "description": "Conflict\n\nPossible error codes:\n - CONFLICT", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CreateDocumentResponse" + "$ref": "#/components/schemas/ErrorResponse" } } } - }, - "403": { - "description": "Forbidden" } }, "security": [ @@ -446,6 +446,12 @@ } ], "responses": { + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + }, "500": { "description": "Internal Server Error\n\nPossible error codes:\n - UNEXPECTED_ERROR", "content": { @@ -466,12 +472,6 @@ } } }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, "204": { "description": "No Content" } @@ -523,18 +523,18 @@ "403": { "description": "Forbidden" }, - "500": { - "description": "Internal Server Error\n\nPossible error codes:\n - UNEXPECTED_ERROR", + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ErrorResponse" + "$ref": "#/components/schemas/CreateDocumentPageResponse" } } } }, - "400": { - "description": "Bad request\n\nPossible error codes:\n - INVALID_ID\n - INVALID_REQUEST_BODY\n - INVALID_IMAGE", + "404": { + "description": "Not found\n\nPossible error codes:\n - NOT_FOUND", "content": { "application/json": { "schema": { @@ -543,8 +543,8 @@ } } }, - "404": { - "description": "Not found\n\nPossible error codes:\n - NOT_FOUND", + "500": { + "description": "Internal Server Error\n\nPossible error codes:\n - UNEXPECTED_ERROR", "content": { "application/json": { "schema": { @@ -553,8 +553,8 @@ } } }, - "409": { - "description": "Conflict\n\nPossible error codes:\n - CONFLICT", + "400": { + "description": "Bad request\n\nPossible error codes:\n - INVALID_ID\n - INVALID_REQUEST_BODY\n - INVALID_IMAGE", "content": { "application/json": { "schema": { @@ -563,12 +563,12 @@ } } }, - "200": { - "description": "OK", + "409": { + "description": "Conflict\n\nPossible error codes:\n - CONFLICT", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CreateDocumentPageResponse" + "$ref": "#/components/schemas/ErrorResponse" } } } @@ -599,8 +599,8 @@ "required": true }, "responses": { - "500": { - "description": "Internal Server Error\n\nPossible error codes:\n - UNEXPECTED_ERROR", + "400": { + "description": "Bad request\n\nPossible error codes:\n - INVALID_REQUEST_BODY", "content": { "application/json": { "schema": { @@ -612,8 +612,11 @@ "401": { "description": "Unauthorized" }, - "400": { - "description": "Bad request\n\nPossible error codes:\n - INVALID_REQUEST_BODY", + "403": { + "description": "Forbidden" + }, + "500": { + "description": "Internal Server Error\n\nPossible error codes:\n - UNEXPECTED_ERROR", "content": { "application/json": { "schema": { @@ -622,9 +625,6 @@ } } }, - "403": { - "description": "Forbidden" - }, "200": { "description": "OK", "content": { @@ -660,6 +660,12 @@ } ], "responses": { + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + }, "500": { "description": "Internal Server Error\n\nPossible error codes:\n - UNEXPECTED_ERROR", "content": { @@ -670,12 +676,6 @@ } } }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, "204": { "description": "No Content" } @@ -717,8 +717,8 @@ "403": { "description": "Forbidden" }, - "500": { - "description": "Internal Server Error\n\nPossible error codes:\n - UNEXPECTED_ERROR", + "404": { + "description": "Not found\n\nPossible error codes:\n - NOT_FOUND", "content": { "application/json": { "schema": { @@ -727,8 +727,8 @@ } } }, - "400": { - "description": "Bad request\n\nPossible error codes:\n - INVALID_REQUEST_BODY\n - INVALID_IMAGE\n - FACE_SIZE_MEMORY_LIMIT", + "500": { + "description": "Internal Server Error\n\nPossible error codes:\n - UNEXPECTED_ERROR", "content": { "application/json": { "schema": { @@ -737,22 +737,22 @@ } } }, - "404": { - "description": "Not found\n\nPossible error codes:\n - NOT_FOUND", + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ErrorResponse" + "$ref": "#/components/schemas/CreateFaceResponse" } } } }, - "200": { - "description": "OK", + "400": { + "description": "Bad request\n\nPossible error codes:\n - INVALID_REQUEST_BODY\n - INVALID_IMAGE\n - FACE_SIZE_MEMORY_LIMIT", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CreateFaceResponse" + "$ref": "#/components/schemas/ErrorResponse" } } } @@ -793,8 +793,8 @@ "required": true }, "responses": { - "500": { - "description": "Internal Server Error\n\nPossible error codes:\n - UNEXPECTED_ERROR", + "400": { + "description": "Bad request\n\nPossible error codes:\n - INVALID_REQUEST_BODY\n - INVALID_IMAGE\n - UNSUPPORTED_VERSION_TEMPLATE\n - CORRUPTED_TEMPLATE\n - INCOMPATIBLE_TEMPLATE", "content": { "application/json": { "schema": { @@ -803,31 +803,34 @@ } } }, - "404": { - "description": "Not found\n\nPossible error codes:\n - NOT_FOUND", + "401": { + "description": "Unauthorized" + }, + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ErrorResponse" + "$ref": "#/components/schemas/FaceSimilarityResponse" } } } }, - "401": { - "description": "Unauthorized" + "403": { + "description": "Forbidden" }, - "200": { - "description": "OK", + "404": { + "description": "Not found\n\nPossible error codes:\n - NOT_FOUND", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/FaceSimilarityResponse" + "$ref": "#/components/schemas/ErrorResponse" } } } }, - "400": { - "description": "Bad request\n\nPossible error codes:\n - INVALID_REQUEST_BODY\n - INVALID_IMAGE\n - UNSUPPORTED_VERSION_TEMPLATE\n - CORRUPTED_TEMPLATE\n - INCOMPATIBLE_TEMPLATE", + "500": { + "description": "Internal Server Error\n\nPossible error codes:\n - UNEXPECTED_ERROR", "content": { "application/json": { "schema": { @@ -835,9 +838,6 @@ } } } - }, - "403": { - "description": "Forbidden" } }, "security": [ @@ -855,6 +855,12 @@ "summary": "Create a customer", "operationId": "createCustomer", "responses": { + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + }, "500": { "description": "Internal Server Error\n\nPossible error codes:\n - UNEXPECTED_ERROR", "content": { @@ -865,9 +871,6 @@ } } }, - "401": { - "description": "Unauthorized" - }, "200": { "description": "OK", "content": { @@ -877,9 +880,6 @@ } } } - }, - "403": { - "description": "Forbidden" } }, "security": [ @@ -907,18 +907,24 @@ } ], "responses": { - "500": { - "description": "Internal Server Error\n\nPossible error codes:\n - UNEXPECTED_ERROR", + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + }, + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ErrorResponse" + "$ref": "#/components/schemas/GetCustomerResponse" } } } }, - "400": { - "description": "Bad request\n\nPossible error codes:\n - INVALID_ID", + "404": { + "description": "Not found\n\nPossible error codes:\n - NOT_FOUND", "content": { "application/json": { "schema": { @@ -927,8 +933,8 @@ } } }, - "404": { - "description": "Not found\n\nPossible error codes:\n - NOT_FOUND", + "500": { + "description": "Internal Server Error\n\nPossible error codes:\n - UNEXPECTED_ERROR", "content": { "application/json": { "schema": { @@ -937,21 +943,15 @@ } } }, - "401": { - "description": "Unauthorized" - }, - "200": { - "description": "OK", + "400": { + "description": "Bad request\n\nPossible error codes:\n - INVALID_ID", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetCustomerResponse" + "$ref": "#/components/schemas/ErrorResponse" } } } - }, - "403": { - "description": "Forbidden" } }, "security": [ @@ -977,6 +977,12 @@ } ], "responses": { + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + }, "500": { "description": "Internal Server Error\n\nPossible error codes:\n - UNEXPECTED_ERROR", "content": { @@ -987,21 +993,18 @@ } } }, - "400": { - "description": "Bad request\n\nPossible error codes:\n - INVALID_ID", + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ErrorResponse" + "$ref": "#/components/schemas/CreateCustomerResponse" } } } }, - "401": { - "description": "Unauthorized" - }, - "422": { - "description": "Unprocessable request\n\nPossible error codes:\n - ALREADY_EXISTS", + "400": { + "description": "Bad request\n\nPossible error codes:\n - INVALID_ID", "content": { "application/json": { "schema": { @@ -1010,18 +1013,15 @@ } } }, - "200": { - "description": "OK", + "422": { + "description": "Unprocessable request\n\nPossible error codes:\n - ALREADY_EXISTS", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CreateCustomerResponse" + "$ref": "#/components/schemas/ErrorResponse" } } } - }, - "403": { - "description": "Forbidden" } }, "security": [ @@ -1047,6 +1047,12 @@ } ], "responses": { + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + }, "500": { "description": "Internal Server Error\n\nPossible error codes:\n - UNEXPECTED_ERROR", "content": { @@ -1067,12 +1073,6 @@ } } }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, "204": { "description": "No Content" } @@ -1112,8 +1112,14 @@ "required": true }, "responses": { - "500": { - "description": "Internal Server Error\n\nPossible error codes:\n - UNEXPECTED_ERROR", + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + }, + "404": { + "description": "Not found\n\nPossible error codes:\n - NOT_FOUND", "content": { "application/json": { "schema": { @@ -1122,8 +1128,8 @@ } } }, - "400": { - "description": "Bad request\n\nPossible error codes:\n - INVALID_ID\n - INVALID_REQUEST_BODY\n - INVALID_IMAGE", + "500": { + "description": "Internal Server Error\n\nPossible error codes:\n - UNEXPECTED_ERROR", "content": { "application/json": { "schema": { @@ -1132,8 +1138,8 @@ } } }, - "404": { - "description": "Not found\n\nPossible error codes:\n - NOT_FOUND", + "400": { + "description": "Bad request\n\nPossible error codes:\n - INVALID_ID\n - INVALID_REQUEST_BODY\n - INVALID_IMAGE", "content": { "application/json": { "schema": { @@ -1142,28 +1148,22 @@ } } }, - "401": { - "description": "Unauthorized" - }, - "409": { - "description": "Conflict\n\nPossible error codes:\n - CONFLICT", + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ErrorResponse" + "$ref": "#/components/schemas/CreateCustomerLivenessSelfieResponse" } } } }, - "403": { - "description": "Forbidden" - }, - "200": { - "description": "OK", + "409": { + "description": "Conflict\n\nPossible error codes:\n - CONFLICT", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CreateCustomerLivenessSelfieResponse" + "$ref": "#/components/schemas/ErrorResponse" } } } @@ -1205,18 +1205,24 @@ "required": true }, "responses": { - "500": { - "description": "Internal Server Error\n\nPossible error codes:\n - UNEXPECTED_ERROR", + "401": { + "description": "Unauthorized" + }, + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ErrorResponse" + "$ref": "#/components/schemas/CreateCustomerLivenessRecordResponse" } } } }, - "400": { - "description": "Bad request\n\nPossible error codes:\n - INVALID_ID\n - INVALID_REQUEST_BODY\n - INVALID_IMAGE", + "403": { + "description": "Forbidden" + }, + "404": { + "description": "Not found\n\nPossible error codes:\n - NOT_FOUND", "content": { "application/json": { "schema": { @@ -1225,8 +1231,8 @@ } } }, - "404": { - "description": "Not found\n\nPossible error codes:\n - NOT_FOUND", + "500": { + "description": "Internal Server Error\n\nPossible error codes:\n - UNEXPECTED_ERROR", "content": { "application/json": { "schema": { @@ -1235,11 +1241,8 @@ } } }, - "401": { - "description": "Unauthorized" - }, - "409": { - "description": "Conflict\n\nPossible error codes:\n - CONFLICT", + "400": { + "description": "Bad request\n\nPossible error codes:\n - INVALID_ID\n - INVALID_REQUEST_BODY\n - INVALID_IMAGE", "content": { "application/json": { "schema": { @@ -1248,18 +1251,15 @@ } } }, - "200": { - "description": "OK", + "409": { + "description": "Conflict\n\nPossible error codes:\n - CONFLICT", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CreateCustomerLivenessRecordResponse" + "$ref": "#/components/schemas/ErrorResponse" } } } - }, - "403": { - "description": "Forbidden" } }, "security": [ @@ -1297,8 +1297,14 @@ "required": true }, "responses": { - "500": { - "description": "Internal Server Error\n\nPossible error codes:\n - UNEXPECTED_ERROR", + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + }, + "404": { + "description": "Not found\n\nPossible error codes:\n - NOT_FOUND", "content": { "application/json": { "schema": { @@ -1307,8 +1313,8 @@ } } }, - "400": { - "description": "Bad request\n\nPossible error codes:\n - INVALID_ID\n - INVALID_REQUEST_BODY", + "500": { + "description": "Internal Server Error\n\nPossible error codes:\n - UNEXPECTED_ERROR", "content": { "application/json": { "schema": { @@ -1317,8 +1323,8 @@ } } }, - "404": { - "description": "Not found\n\nPossible error codes:\n - NOT_FOUND", + "400": { + "description": "Bad request\n\nPossible error codes:\n - INVALID_ID\n - INVALID_REQUEST_BODY", "content": { "application/json": { "schema": { @@ -1327,31 +1333,25 @@ } } }, - "401": { - "description": "Unauthorized" - }, - "409": { - "description": "Conflict\n\nPossible error codes:\n - CONFLICT", + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ErrorResponse" + "$ref": "#/components/schemas/EvaluateCustomerLivenessResponse" } } } }, - "200": { - "description": "OK", + "409": { + "description": "Conflict\n\nPossible error codes:\n - CONFLICT", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/EvaluateCustomerLivenessResponse" + "$ref": "#/components/schemas/ErrorResponse" } } } - }, - "403": { - "description": "Forbidden" } }, "security": [ @@ -1379,18 +1379,24 @@ } ], "responses": { - "500": { - "description": "Internal Server Error\n\nPossible error codes:\n - UNEXPECTED_ERROR", + "401": { + "description": "Unauthorized" + }, + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ErrorResponse" + "$ref": "#/components/schemas/CustomerInspectResponse" } } } }, - "400": { - "description": "Bad request\n\nPossible error codes:\n - INVALID_ID", + "403": { + "description": "Forbidden" + }, + "404": { + "description": "Not found\n\nPossible error codes:\n - NOT_FOUND", "content": { "application/json": { "schema": { @@ -1399,8 +1405,8 @@ } } }, - "404": { - "description": "Not found\n\nPossible error codes:\n - NOT_FOUND", + "500": { + "description": "Internal Server Error\n\nPossible error codes:\n - UNEXPECTED_ERROR", "content": { "application/json": { "schema": { @@ -1409,11 +1415,8 @@ } } }, - "401": { - "description": "Unauthorized" - }, - "409": { - "description": "Conflict\n\nPossible error codes:\n - CONFLICT", + "400": { + "description": "Bad request\n\nPossible error codes:\n - INVALID_ID", "content": { "application/json": { "schema": { @@ -1422,18 +1425,15 @@ } } }, - "200": { - "description": "OK", + "409": { + "description": "Conflict\n\nPossible error codes:\n - CONFLICT", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CustomerInspectResponse" + "$ref": "#/components/schemas/ErrorResponse" } } } - }, - "403": { - "description": "Forbidden" } }, "security": [ @@ -1461,18 +1461,24 @@ } ], "responses": { - "500": { - "description": "Internal Server Error\n\nPossible error codes:\n - UNEXPECTED_ERROR", + "401": { + "description": "Unauthorized" + }, + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ErrorResponse" + "$ref": "#/components/schemas/CustomerInspectDiscloseResponse" } } } }, - "400": { - "description": "Bad request\n\nPossible error codes:\n - INVALID_ID", + "403": { + "description": "Forbidden" + }, + "404": { + "description": "Not found\n\nPossible error codes:\n - NOT_FOUND", "content": { "application/json": { "schema": { @@ -1481,8 +1487,8 @@ } } }, - "404": { - "description": "Not found\n\nPossible error codes:\n - NOT_FOUND", + "500": { + "description": "Internal Server Error\n\nPossible error codes:\n - UNEXPECTED_ERROR", "content": { "application/json": { "schema": { @@ -1491,11 +1497,8 @@ } } }, - "401": { - "description": "Unauthorized" - }, - "409": { - "description": "Conflict\n\nPossible error codes:\n - CONFLICT", + "400": { + "description": "Bad request\n\nPossible error codes:\n - INVALID_ID", "content": { "application/json": { "schema": { @@ -1504,18 +1507,15 @@ } } }, - "200": { - "description": "OK", + "409": { + "description": "Conflict\n\nPossible error codes:\n - CONFLICT", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CustomerInspectDiscloseResponse" + "$ref": "#/components/schemas/ErrorResponse" } } } - }, - "403": { - "description": "Forbidden" } }, "security": [ @@ -1543,18 +1543,24 @@ } ], "responses": { - "500": { - "description": "Internal Server Error\n\nPossible error codes:\n - UNEXPECTED_ERROR", + "401": { + "description": "Unauthorized" + }, + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ErrorResponse" + "$ref": "#/components/schemas/DocumentInspectResponse" } } } }, - "400": { - "description": "Bad request\n\nPossible error codes:\n - INVALID_ID", + "403": { + "description": "Forbidden" + }, + "404": { + "description": "Not found\n\nPossible error codes:\n - NOT_FOUND", "content": { "application/json": { "schema": { @@ -1563,8 +1569,8 @@ } } }, - "404": { - "description": "Not found\n\nPossible error codes:\n - NOT_FOUND", + "500": { + "description": "Internal Server Error\n\nPossible error codes:\n - UNEXPECTED_ERROR", "content": { "application/json": { "schema": { @@ -1573,11 +1579,8 @@ } } }, - "401": { - "description": "Unauthorized" - }, - "409": { - "description": "Conflict\n\nPossible error codes:\n - CONFLICT", + "400": { + "description": "Bad request\n\nPossible error codes:\n - INVALID_ID", "content": { "application/json": { "schema": { @@ -1586,15 +1589,12 @@ } } }, - "403": { - "description": "Forbidden" - }, - "200": { - "description": "OK", + "409": { + "description": "Conflict\n\nPossible error codes:\n - CONFLICT", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/DocumentInspectResponse" + "$ref": "#/components/schemas/ErrorResponse" } } } @@ -1625,12 +1625,18 @@ } ], "responses": { - "200": { - "description": "OK", + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + }, + "404": { + "description": "Not found\n\nPossible error codes:\n - NOT_FOUND", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/DocumentInspectDiscloseResponse" + "$ref": "#/components/schemas/ErrorResponse" } } } @@ -1655,19 +1661,16 @@ } } }, - "404": { - "description": "Not found\n\nPossible error codes:\n - NOT_FOUND", + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ErrorResponse" + "$ref": "#/components/schemas/DocumentInspectDiscloseResponse" } } } }, - "401": { - "description": "Unauthorized" - }, "409": { "description": "Conflict\n\nPossible error codes:\n - CONFLICT", "content": { @@ -1677,9 +1680,6 @@ } } } - }, - "403": { - "description": "Forbidden" } }, "security": [ @@ -1697,12 +1697,12 @@ "summary": "Get metadata", "operationId": "metadata", "responses": { - "500": { - "description": "Internal Server Error\n\nPossible error codes:\n - UNEXPECTED_ERROR", + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ErrorResponse" + "$ref": "#/components/schemas/DocumentMetadataResponse" } } } @@ -1710,18 +1710,18 @@ "401": { "description": "Unauthorized" }, - "200": { - "description": "OK", + "403": { + "description": "Forbidden" + }, + "500": { + "description": "Internal Server Error\n\nPossible error codes:\n - UNEXPECTED_ERROR", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/DocumentMetadataResponse" + "$ref": "#/components/schemas/ErrorResponse" } } } - }, - "403": { - "description": "Forbidden" } }, "security": [ @@ -1749,18 +1749,24 @@ } ], "responses": { - "500": { - "description": "Internal Server Error\n\nPossible error codes:\n - UNEXPECTED_ERROR", + "401": { + "description": "Unauthorized" + }, + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ErrorResponse" + "$ref": "#/components/schemas/FaceQualityResponse" } } } }, - "400": { - "description": "Bad request\n\nPossible error codes:\n - INVALID_ID", + "403": { + "description": "Forbidden" + }, + "404": { + "description": "Not found\n\nPossible error codes:\n - NOT_FOUND", "content": { "application/json": { "schema": { @@ -1769,8 +1775,8 @@ } } }, - "404": { - "description": "Not found\n\nPossible error codes:\n - NOT_FOUND", + "500": { + "description": "Internal Server Error\n\nPossible error codes:\n - UNEXPECTED_ERROR", "content": { "application/json": { "schema": { @@ -1779,21 +1785,15 @@ } } }, - "401": { - "description": "Unauthorized" - }, - "200": { - "description": "OK", + "400": { + "description": "Bad request\n\nPossible error codes:\n - INVALID_ID", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/FaceQualityResponse" + "$ref": "#/components/schemas/ErrorResponse" } } } - }, - "403": { - "description": "Forbidden" } }, "security": [ @@ -1821,18 +1821,24 @@ } ], "responses": { - "500": { - "description": "Internal Server Error\n\nPossible error codes:\n - UNEXPECTED_ERROR", + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ErrorResponse" + "$ref": "#/components/schemas/GlassesResponse" } } } }, - "400": { - "description": "Bad request\n\nPossible error codes:\n - INVALID_ID", + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + }, + "404": { + "description": "Not found\n\nPossible error codes:\n - NOT_FOUND", "content": { "application/json": { "schema": { @@ -1841,8 +1847,8 @@ } } }, - "404": { - "description": "Not found\n\nPossible error codes:\n - NOT_FOUND", + "500": { + "description": "Internal Server Error\n\nPossible error codes:\n - UNEXPECTED_ERROR", "content": { "application/json": { "schema": { @@ -1851,21 +1857,15 @@ } } }, - "401": { - "description": "Unauthorized" - }, - "200": { - "description": "OK", + "400": { + "description": "Bad request\n\nPossible error codes:\n - INVALID_ID", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GlassesResponse" + "$ref": "#/components/schemas/ErrorResponse" } } } - }, - "403": { - "description": "Forbidden" } }, "security": [ @@ -1893,18 +1893,24 @@ } ], "responses": { - "500": { - "description": "Internal Server Error\n\nPossible error codes:\n - UNEXPECTED_ERROR", + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + }, + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ErrorResponse" + "$ref": "#/components/schemas/FaceTemplateResponse" } } } }, - "400": { - "description": "Bad request\n\nPossible error codes:\n - INVALID_ID", + "404": { + "description": "Not found\n\nPossible error codes:\n - NOT_FOUND", "content": { "application/json": { "schema": { @@ -1913,8 +1919,8 @@ } } }, - "404": { - "description": "Not found\n\nPossible error codes:\n - NOT_FOUND", + "500": { + "description": "Internal Server Error\n\nPossible error codes:\n - UNEXPECTED_ERROR", "content": { "application/json": { "schema": { @@ -1923,21 +1929,15 @@ } } }, - "401": { - "description": "Unauthorized" - }, - "200": { - "description": "OK", + "400": { + "description": "Bad request\n\nPossible error codes:\n - INVALID_ID", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/FaceTemplateResponse" + "$ref": "#/components/schemas/ErrorResponse" } } } - }, - "403": { - "description": "Forbidden" } }, "security": [ @@ -1965,18 +1965,24 @@ } ], "responses": { - "500": { - "description": "Internal Server Error\n\nPossible error codes:\n - UNEXPECTED_ERROR", + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + }, + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ErrorResponse" + "$ref": "#/components/schemas/FaceMaskResponse" } } } }, - "400": { - "description": "Bad request\n\nPossible error codes:\n - INVALID_ID", + "404": { + "description": "Not found\n\nPossible error codes:\n - NOT_FOUND", "content": { "application/json": { "schema": { @@ -1985,8 +1991,8 @@ } } }, - "404": { - "description": "Not found\n\nPossible error codes:\n - NOT_FOUND", + "500": { + "description": "Internal Server Error\n\nPossible error codes:\n - UNEXPECTED_ERROR", "content": { "application/json": { "schema": { @@ -1995,21 +2001,15 @@ } } }, - "200": { - "description": "OK", + "400": { + "description": "Bad request\n\nPossible error codes:\n - INVALID_ID", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/FaceMaskResponse" + "$ref": "#/components/schemas/ErrorResponse" } } } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" } }, "security": [ @@ -2055,8 +2055,8 @@ } ], "responses": { - "500": { - "description": "Internal Server Error\n\nPossible error codes:\n - UNEXPECTED_ERROR", + "400": { + "description": "Bad request\n\nPossible error codes:\n - INVALID_ID\n - INVALID_REQUEST_PARAMETER", "content": { "application/json": { "schema": { @@ -2065,21 +2065,24 @@ } } }, - "404": { - "description": "Not found\n\nPossible error codes:\n - NOT_FOUND", + "401": { + "description": "Unauthorized" + }, + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ErrorResponse" + "$ref": "#/components/schemas/ImageCrop" } } } }, - "401": { - "description": "Unauthorized" + "403": { + "description": "Forbidden" }, - "400": { - "description": "Bad request\n\nPossible error codes:\n - INVALID_ID\n - INVALID_REQUEST_PARAMETER", + "404": { + "description": "Not found\n\nPossible error codes:\n - NOT_FOUND", "content": { "application/json": { "schema": { @@ -2088,18 +2091,15 @@ } } }, - "200": { - "description": "OK", + "500": { + "description": "Internal Server Error\n\nPossible error codes:\n - UNEXPECTED_ERROR", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ImageCrop" + "$ref": "#/components/schemas/ErrorResponse" } } } - }, - "403": { - "description": "Forbidden" } }, "security": [ @@ -2145,8 +2145,8 @@ } ], "responses": { - "500": { - "description": "Internal Server Error\n\nPossible error codes:\n - UNEXPECTED_ERROR", + "400": { + "description": "Bad request\n\nPossible error codes:\n - INVALID_ID\n - INVALID_REQUEST_PARAMETER", "content": { "application/json": { "schema": { @@ -2155,21 +2155,24 @@ } } }, - "404": { - "description": "Not found\n\nPossible error codes:\n - NOT_FOUND", + "401": { + "description": "Unauthorized" + }, + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ErrorResponse" + "$ref": "#/components/schemas/ImageCrop" } } } }, - "401": { - "description": "Unauthorized" + "403": { + "description": "Forbidden" }, - "400": { - "description": "Bad request\n\nPossible error codes:\n - INVALID_ID\n - INVALID_REQUEST_PARAMETER", + "404": { + "description": "Not found\n\nPossible error codes:\n - NOT_FOUND", "content": { "application/json": { "schema": { @@ -2178,18 +2181,15 @@ } } }, - "200": { - "description": "OK", + "500": { + "description": "Internal Server Error\n\nPossible error codes:\n - UNEXPECTED_ERROR", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ImageCrop" + "$ref": "#/components/schemas/ErrorResponse" } } } - }, - "403": { - "description": "Forbidden" } }, "security": [ @@ -2217,18 +2217,24 @@ } ], "responses": { - "500": { - "description": "Internal Server Error\n\nPossible error codes:\n - UNEXPECTED_ERROR", + "401": { + "description": "Unauthorized" + }, + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ErrorResponse" + "$ref": "#/components/schemas/CropCoordinatesResponse" } } } }, - "400": { - "description": "Bad request\n\nPossible error codes:\n - INVALID_ID", + "403": { + "description": "Forbidden" + }, + "404": { + "description": "Not found\n\nPossible error codes:\n - NOT_FOUND", "content": { "application/json": { "schema": { @@ -2237,8 +2243,8 @@ } } }, - "404": { - "description": "Not found\n\nPossible error codes:\n - NOT_FOUND", + "500": { + "description": "Internal Server Error\n\nPossible error codes:\n - UNEXPECTED_ERROR", "content": { "application/json": { "schema": { @@ -2247,21 +2253,15 @@ } } }, - "401": { - "description": "Unauthorized" - }, - "200": { - "description": "OK", + "400": { + "description": "Bad request\n\nPossible error codes:\n - INVALID_ID", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CropCoordinatesResponse" + "$ref": "#/components/schemas/ErrorResponse" } } } - }, - "403": { - "description": "Forbidden" } }, "security": [ @@ -2289,8 +2289,14 @@ } ], "responses": { - "500": { - "description": "Internal Server Error\n\nPossible error codes:\n - UNEXPECTED_ERROR", + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + }, + "404": { + "description": "Not found\n\nPossible error codes:\n - NOT_FOUND", "content": { "application/json": { "schema": { @@ -2299,8 +2305,8 @@ } } }, - "400": { - "description": "Bad request\n\nPossible error codes:\n - INVALID_ID", + "500": { + "description": "Internal Server Error\n\nPossible error codes:\n - UNEXPECTED_ERROR", "content": { "application/json": { "schema": { @@ -2309,31 +2315,25 @@ } } }, - "404": { - "description": "Not found\n\nPossible error codes:\n - NOT_FOUND", + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ErrorResponse" + "$ref": "#/components/schemas/FaceAspectsResponse" } } } }, - "200": { - "description": "OK", + "400": { + "description": "Bad request\n\nPossible error codes:\n - INVALID_ID", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/FaceAspectsResponse" + "$ref": "#/components/schemas/ErrorResponse" } } } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" } }, "security": [ @@ -2387,8 +2387,8 @@ } ], "responses": { - "500": { - "description": "Internal Server Error\n\nPossible error codes:\n - UNEXPECTED_ERROR", + "400": { + "description": "Bad request\n\nPossible error codes:\n - INVALID_ID\n - INVALID_REQUEST_PARAMETER", "content": { "application/json": { "schema": { @@ -2397,21 +2397,24 @@ } } }, - "404": { - "description": "Not found\n\nPossible error codes:\n - NOT_FOUND", + "401": { + "description": "Unauthorized" + }, + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ErrorResponse" + "$ref": "#/components/schemas/ImageCrop" } } } }, - "401": { - "description": "Unauthorized" + "403": { + "description": "Forbidden" }, - "400": { - "description": "Bad request\n\nPossible error codes:\n - INVALID_ID\n - INVALID_REQUEST_PARAMETER", + "404": { + "description": "Not found\n\nPossible error codes:\n - NOT_FOUND", "content": { "application/json": { "schema": { @@ -2420,18 +2423,15 @@ } } }, - "200": { - "description": "OK", + "500": { + "description": "Internal Server Error\n\nPossible error codes:\n - UNEXPECTED_ERROR", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ImageCrop" + "$ref": "#/components/schemas/ErrorResponse" } } } - }, - "403": { - "description": "Forbidden" } }, "security": [ @@ -2477,8 +2477,8 @@ } ], "responses": { - "500": { - "description": "Internal Server Error\n\nPossible error codes:\n - UNEXPECTED_ERROR", + "400": { + "description": "Bad request\n\nPossible error codes:\n - INVALID_ID\n - INVALID_REQUEST_PARAMETER", "content": { "application/json": { "schema": { @@ -2487,21 +2487,24 @@ } } }, - "404": { - "description": "Not found\n\nPossible error codes:\n - NOT_FOUND", + "401": { + "description": "Unauthorized" + }, + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ErrorResponse" + "$ref": "#/components/schemas/ImageCrop" } } } }, - "401": { - "description": "Unauthorized" + "403": { + "description": "Forbidden" }, - "400": { - "description": "Bad request\n\nPossible error codes:\n - INVALID_ID\n - INVALID_REQUEST_PARAMETER", + "404": { + "description": "Not found\n\nPossible error codes:\n - NOT_FOUND", "content": { "application/json": { "schema": { @@ -2510,18 +2513,15 @@ } } }, - "200": { - "description": "OK", + "500": { + "description": "Internal Server Error\n\nPossible error codes:\n - UNEXPECTED_ERROR", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ImageCrop" + "$ref": "#/components/schemas/ErrorResponse" } } } - }, - "403": { - "description": "Forbidden" } }, "security": [ @@ -2567,8 +2567,8 @@ } ], "responses": { - "500": { - "description": "Internal Server Error\n\nPossible error codes:\n - UNEXPECTED_ERROR", + "400": { + "description": "Bad request\n\nPossible error codes:\n - INVALID_ID\n - INVALID_REQUEST_PARAMETER", "content": { "application/json": { "schema": { @@ -2577,21 +2577,24 @@ } } }, - "404": { - "description": "Not found\n\nPossible error codes:\n - NOT_FOUND", + "401": { + "description": "Unauthorized" + }, + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ErrorResponse" + "$ref": "#/components/schemas/ImageCrop" } } } }, - "401": { - "description": "Unauthorized" + "403": { + "description": "Forbidden" }, - "400": { - "description": "Bad request\n\nPossible error codes:\n - INVALID_ID\n - INVALID_REQUEST_PARAMETER", + "404": { + "description": "Not found\n\nPossible error codes:\n - NOT_FOUND", "content": { "application/json": { "schema": { @@ -2600,18 +2603,15 @@ } } }, - "200": { - "description": "OK", + "500": { + "description": "Internal Server Error\n\nPossible error codes:\n - UNEXPECTED_ERROR", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ImageCrop" + "$ref": "#/components/schemas/ErrorResponse" } } } - }, - "403": { - "description": "Forbidden" } }, "security": [ @@ -2665,8 +2665,8 @@ } ], "responses": { - "500": { - "description": "Internal Server Error\n\nPossible error codes:\n - UNEXPECTED_ERROR", + "400": { + "description": "Bad request\n\nPossible error codes:\n - INVALID_ID\n - INVALID_REQUEST_PARAMETER", "content": { "application/json": { "schema": { @@ -2675,21 +2675,24 @@ } } }, - "404": { - "description": "Not found\n\nPossible error codes:\n - NOT_FOUND", + "401": { + "description": "Unauthorized" + }, + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ErrorResponse" + "$ref": "#/components/schemas/ImageCrop" } } } }, - "401": { - "description": "Unauthorized" + "403": { + "description": "Forbidden" }, - "400": { - "description": "Bad request\n\nPossible error codes:\n - INVALID_ID\n - INVALID_REQUEST_PARAMETER", + "404": { + "description": "Not found\n\nPossible error codes:\n - NOT_FOUND", "content": { "application/json": { "schema": { @@ -2698,18 +2701,15 @@ } } }, - "200": { - "description": "OK", + "500": { + "description": "Internal Server Error\n\nPossible error codes:\n - UNEXPECTED_ERROR", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ImageCrop" + "$ref": "#/components/schemas/ErrorResponse" } } } - }, - "403": { - "description": "Forbidden" } }, "security": [ @@ -2745,18 +2745,24 @@ } ], "responses": { - "500": { - "description": "Internal Server Error\n\nPossible error codes:\n - UNEXPECTED_ERROR", + "401": { + "description": "Unauthorized" + }, + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ErrorResponse" + "$ref": "#/components/schemas/DocumentPageQuality" } } } }, - "400": { - "description": "Bad request\n\nPossible error codes:\n - INVALID_ID", + "403": { + "description": "Forbidden" + }, + "404": { + "description": "Not found\n\nPossible error codes:\n - NOT_FOUND", "content": { "application/json": { "schema": { @@ -2765,8 +2771,8 @@ } } }, - "404": { - "description": "Not found\n\nPossible error codes:\n - NOT_FOUND", + "500": { + "description": "Internal Server Error\n\nPossible error codes:\n - UNEXPECTED_ERROR", "content": { "application/json": { "schema": { @@ -2775,21 +2781,15 @@ } } }, - "401": { - "description": "Unauthorized" - }, - "200": { - "description": "OK", + "400": { + "description": "Bad request\n\nPossible error codes:\n - INVALID_ID", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/DocumentPageQuality" + "$ref": "#/components/schemas/ErrorResponse" } } } - }, - "403": { - "description": "Forbidden" } }, "security": [ @@ -2835,8 +2835,8 @@ } ], "responses": { - "500": { - "description": "Internal Server Error\n\nPossible error codes:\n - UNEXPECTED_ERROR", + "400": { + "description": "Bad request\n\nPossible error codes:\n - INVALID_ID\n - INVALID_REQUEST_PARAMETER", "content": { "application/json": { "schema": { @@ -2845,21 +2845,24 @@ } } }, - "404": { - "description": "Not found\n\nPossible error codes:\n - NOT_FOUND", + "401": { + "description": "Unauthorized" + }, + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ErrorResponse" + "$ref": "#/components/schemas/ImageCrop" } } } }, - "401": { - "description": "Unauthorized" + "403": { + "description": "Forbidden" }, - "400": { - "description": "Bad request\n\nPossible error codes:\n - INVALID_ID\n - INVALID_REQUEST_PARAMETER", + "404": { + "description": "Not found\n\nPossible error codes:\n - NOT_FOUND", "content": { "application/json": { "schema": { @@ -2868,18 +2871,15 @@ } } }, - "200": { - "description": "OK", + "500": { + "description": "Internal Server Error\n\nPossible error codes:\n - UNEXPECTED_ERROR", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ImageCrop" + "$ref": "#/components/schemas/ErrorResponse" } } } - }, - "403": { - "description": "Forbidden" } }, "security": [ @@ -2925,8 +2925,8 @@ } ], "responses": { - "500": { - "description": "Internal Server Error\n\nPossible error codes:\n - UNEXPECTED_ERROR", + "400": { + "description": "Bad request\n\nPossible error codes:\n - INVALID_ID\n - INVALID_REQUEST_PARAMETER", "content": { "application/json": { "schema": { @@ -2935,21 +2935,24 @@ } } }, - "404": { - "description": "Not found\n\nPossible error codes:\n - NOT_FOUND", + "401": { + "description": "Unauthorized" + }, + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ErrorResponse" + "$ref": "#/components/schemas/ImageCrop" } } } }, - "401": { - "description": "Unauthorized" + "403": { + "description": "Forbidden" }, - "400": { - "description": "Bad request\n\nPossible error codes:\n - INVALID_ID\n - INVALID_REQUEST_PARAMETER", + "404": { + "description": "Not found\n\nPossible error codes:\n - NOT_FOUND", "content": { "application/json": { "schema": { @@ -2958,18 +2961,15 @@ } } }, - "200": { - "description": "OK", + "500": { + "description": "Internal Server Error\n\nPossible error codes:\n - UNEXPECTED_ERROR", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ImageCrop" + "$ref": "#/components/schemas/ErrorResponse" } } } - }, - "403": { - "description": "Forbidden" } }, "security": [ @@ -2997,6 +2997,12 @@ } ], "responses": { + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + }, "500": { "description": "Internal Server Error\n\nPossible error codes:\n - UNEXPECTED_ERROR", "content": { @@ -3017,12 +3023,6 @@ } } }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, "204": { "description": "No Content" } @@ -3201,42 +3201,6 @@ "description": "This allows to link the image from liveness to be selfie photo. Do not upload the photo in Image class in this case.", "writeOnly": true }, - "ErrorResponse": { - "required": [ - "errorCode", - "errorMessage" - ], - "type": "object", - "properties": { - "errorCode": { - "type": "string", - "description": "Error code", - "readOnly": true, - "enum": [ - "NOT_FOUND", - "INVALID_ID", - "INVALID_IMAGE", - "INVALID_REQUEST_BODY", - "INVALID_REQUEST_PARAMETER", - "INVALID_REQUEST_METHOD", - "CONFLICT", - "UNEXPECTED_ERROR", - "ALREADY_EXISTS", - "FACE_SIZE_MEMORY_LIMIT", - "INCOMPATIBLE_TEMPLATE", - "CORRUPTED_TEMPLATE", - "UNSUPPORTED_VERSION_TEMPLATE" - ] - }, - "errorMessage": { - "type": "string", - "description": "Error detailed description. It\u0027s only informative.", - "readOnly": true - } - }, - "description": "Error response", - "readOnly": true - }, "CreateSelfieResponse": { "type": "object", "properties": { @@ -3358,6 +3322,42 @@ "description": "The region of the interest. The coordinates of the rectangle.", "readOnly": true }, + "ErrorResponse": { + "required": [ + "errorCode", + "errorMessage" + ], + "type": "object", + "properties": { + "errorCode": { + "type": "string", + "description": "Error code", + "readOnly": true, + "enum": [ + "NOT_FOUND", + "INVALID_ID", + "INVALID_IMAGE", + "INVALID_REQUEST_BODY", + "INVALID_REQUEST_PARAMETER", + "INVALID_REQUEST_METHOD", + "CONFLICT", + "UNEXPECTED_ERROR", + "ALREADY_EXISTS", + "FACE_SIZE_MEMORY_LIMIT", + "INCOMPATIBLE_TEMPLATE", + "CORRUPTED_TEMPLATE", + "UNSUPPORTED_VERSION_TEMPLATE" + ] + }, + "errorMessage": { + "type": "string", + "description": "Error detailed description. It\u0027s only informative.", + "readOnly": true + } + }, + "description": "Error response", + "readOnly": true + }, "CreateCustomerLivenessResponse": { "required": [ "links"