From dc58702923250b9385d22468a7afe77dc9972a03 Mon Sep 17 00:00:00 2001 From: Alex Tran Date: Tue, 11 Jul 2023 21:17:59 -0500 Subject: [PATCH] update --- server/immich-openapi-specs.json | 106 +++++++++++++++++++++++++++++++ 1 file changed, 106 insertions(+) diff --git a/server/immich-openapi-specs.json b/server/immich-openapi-specs.json index 24fa3e23c1..88a5e74270 100644 --- a/server/immich-openapi-specs.json +++ b/server/immich-openapi-specs.json @@ -2693,6 +2693,61 @@ ] } }, + "/person/{id}/merge": { + "post": { + "operationId": "mergePerson", + "parameters": [ + { + "name": "id", + "required": true, + "in": "path", + "schema": { + "format": "uuid", + "type": "string" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/MergePersonDto" + } + } + } + }, + "responses": { + "201": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/BulkIdResponseDto" + } + } + } + } + } + }, + "tags": [ + "Person" + ], + "security": [ + { + "bearer": [] + }, + { + "cookie": [] + }, + { + "api_key": [] + } + ] + } + }, "/person/{id}/thumbnail": { "get": { "operationId": "getPersonThumbnail", @@ -4963,6 +5018,30 @@ "deviceOS" ] }, + "BulkIdResponseDto": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "success": { + "type": "boolean" + }, + "error": { + "type": "string", + "enum": [ + "duplicate", + "no_permission", + "not_found", + "unknown" + ] + } + }, + "required": [ + "id", + "success" + ] + }, "ChangePasswordDto": { "type": "object", "properties": { @@ -5069,6 +5148,9 @@ "CreateAssetDto": { "type": "object", "properties": { + "assetType": { + "$ref": "#/components/schemas/AssetTypeEnum" + }, "assetData": { "type": "string", "format": "binary" @@ -5085,6 +5167,9 @@ "type": "boolean", "default": false }, + "fileExtension": { + "type": "string" + }, "deviceAssetId": { "type": "string" }, @@ -5113,7 +5198,9 @@ } }, "required": [ + "assetType", "assetData", + "fileExtension", "deviceAssetId", "deviceId", "fileCreatedAt", @@ -5484,6 +5571,9 @@ "ImportAssetDto": { "type": "object", "properties": { + "assetType": { + "$ref": "#/components/schemas/AssetTypeEnum" + }, "isReadOnly": { "type": "boolean", "default": true @@ -5522,6 +5612,7 @@ } }, "required": [ + "assetType", "assetPath", "deviceAssetId", "deviceId", @@ -5744,6 +5835,21 @@ "assets" ] }, + "MergePersonDto": { + "type": "object", + "properties": { + "ids": { + "type": "array", + "items": { + "type": "string", + "format": "uuid" + } + } + }, + "required": [ + "ids" + ] + }, "OAuthCallbackDto": { "type": "object", "properties": {