From 8f8ae6c4915821af47f15d1fee5dd8d23c2f8aac Mon Sep 17 00:00:00 2001 From: Daniel Dietzler Date: Mon, 11 Nov 2024 11:43:34 +0100 Subject: [PATCH] chore: generate open api --- mobile/openapi/README.md | Bin 32074 -> 32323 bytes .../openapi/lib/model/create_library_dto.dart | Bin 4321 -> 4335 bytes .../openapi/lib/model/update_library_dto.dart | Bin 4086 -> 4100 bytes .../lib/model/validate_library_dto.dart | Bin 3499 -> 3513 bytes open-api/immich-openapi-specs.json | 48 ++++++++++++++---- 5 files changed, 38 insertions(+), 10 deletions(-) diff --git a/mobile/openapi/README.md b/mobile/openapi/README.md index 47bbc4be3c9256877f3959f615ba81e1bcf0e7af..ed6e1ee1f2f49a04225c48af1845ad644fbff195 100644 GIT binary patch delta 289 zcmY+9ze>bF5XOn%14OyT;`qSo;ItOJ?gX**4JOH4GGuQz?Cjoo&k=iHLC6DG*!ecL zV&Ntyh}{g|pZU$lSN8s$y)N?0b;D(=kPS$cgMyz#1BwI6Nr_wS7kOL!`L@vn=?wo5 zIE&CQl>Lr9$X4(iqPGe%=2$AW#ucJ+HP#nYwzYRLIma<}!*jmQR`(pH#6$y^uu$<% zN>25ZB+roJsfq#>q`bt#9h^0X>;C0@*1uhx4xeYYCpVAW8JcpxsMt$rV0n*?m=qgV T7ejiKY(2tBdS9wxIh!{>g-&SA delta 44 xcmX^7hw;=e#toW+laGi9O^y?c1kszdg$x;i4AISNg&mkC-w+boY%a!=0RWTr5FY>l diff --git a/mobile/openapi/lib/model/create_library_dto.dart b/mobile/openapi/lib/model/create_library_dto.dart index bffa5f427950dde0b39e51f23a3230e83705b6b4..2b8085be6f3a65519fb5f2fc50721c2aa7b39696 100644 GIT binary patch delta 120 zcmaE;_+D|tVn(Lw+Q~~9sqE*k($m?Ulh delta 112 zcmaE__)u}fVn(Lu*vU&72H=}-^4We5Syqt cmjV*7Qb^9vD=tw0>U_glg-?ES6IU)90MOJR^Z)<= diff --git a/mobile/openapi/lib/model/update_library_dto.dart b/mobile/openapi/lib/model/update_library_dto.dart index b85df40172e69ec04014735c843de2a244d60e9d..6a4f36906f74af59406c6b33c227dc0107688b7d 100644 GIT binary patch delta 168 zcmew+-=eT#F(XrT?c}A5@($ItI$R1sP?C{Zte2OVn+oFAYFcvvso>NSo8Xe7%)E3v zh181VoYLaV{Jem~l9JS-yke+|&1_6gER+9pNKE!%(+AO;%h|e_WPn;VG{FXg3 zJB8GW2B7#FCQKqP$|5lFckkPArq-*z`9qW$R{|Jb_JA9Bd-UR1mOINY2kI TE>Qql=)+lsPk!?wP9-(~^l~jZ diff --git a/mobile/openapi/lib/model/validate_library_dto.dart b/mobile/openapi/lib/model/validate_library_dto.dart index 08199e3aa66c8c403ec50010855e059aaae15499..79ddb9a540359ff4449e20fb32a07e99b9e83d95 100644 GIT binary patch delta 168 zcmZ22y;FL_N=ByY+R3XK<@u{?b+{B1YBjC7fK+hmNY2kIE>Qs5%feoT LSHb30?2K#xYg;j` delta 118 zcmdlfy;^$1N=ByW*vYFI?2K#x;JPN9 diff --git a/open-api/immich-openapi-specs.json b/open-api/immich-openapi-specs.json index 5f907340e9..9f849668af 100644 --- a/open-api/immich-openapi-specs.json +++ b/open-api/immich-openapi-specs.json @@ -1424,7 +1424,6 @@ }, "/assets/bulk-upload-check": { "post": { - "description": "Checks if assets exist by checksums", "operationId": "checkBulkUpload", "parameters": [], "requestBody": { @@ -1460,6 +1459,7 @@ "api_key": [] } ], + "summary": "Checks if assets exist by checksums", "tags": [ "Assets" ] @@ -1467,7 +1467,6 @@ }, "/assets/device/{deviceId}": { "get": { - "description": "Get all asset of a device that are in the database, ID only.", "operationId": "getAllUserAssetsByDeviceId", "parameters": [ { @@ -1505,6 +1504,7 @@ "api_key": [] } ], + "summary": "Get all asset of a device that are in the database, ID only.", "tags": [ "Assets" ] @@ -1512,7 +1512,6 @@ }, "/assets/exist": { "post": { - "description": "Checks if multiple assets exist on the server and returns all existing - used by background backup", "operationId": "checkExistingAssets", "parameters": [], "requestBody": { @@ -1548,6 +1547,7 @@ "api_key": [] } ], + "summary": "Checks if multiple assets exist on the server and returns all existing - used by background backup", "tags": [ "Assets" ] @@ -1903,7 +1903,6 @@ ] }, "put": { - "description": "Replace the asset with new file, without changing its id", "operationId": "replaceAsset", "parameters": [ { @@ -1957,6 +1956,7 @@ "api_key": [] } ], + "summary": "Replace the asset with new file, without changing its id", "tags": [ "Assets" ], @@ -7423,6 +7423,7 @@ "items": { "$ref": "#/components/schemas/Permission" }, + "minItems": 1, "type": "array" } }, @@ -7562,6 +7563,7 @@ "items": { "$ref": "#/components/schemas/AlbumUserAddDto" }, + "minItems": 1, "type": "array" } }, @@ -8636,6 +8638,7 @@ "items": { "type": "string" }, + "minItems": 1, "type": "array" }, "deviceId": { @@ -8702,13 +8705,17 @@ "items": { "type": "string" }, - "type": "array" + "maxItems": 128, + "type": "array", + "uniqueItems": true }, "importPaths": { "items": { "type": "string" }, - "type": "array" + "maxItems": 128, + "type": "array", + "uniqueItems": true }, "name": { "type": "string" @@ -9475,6 +9482,7 @@ "properties": { "email": { "example": "testuser@email.com", + "format": "email", "type": "string" }, "password": { @@ -11263,6 +11271,7 @@ "properties": { "email": { "example": "testuser@email.com", + "format": "email", "type": "string" }, "name": { @@ -11420,6 +11429,7 @@ "format": "uuid", "type": "string" }, + "minItems": 2, "type": "array" } }, @@ -11839,6 +11849,7 @@ "$ref": "#/components/schemas/FacialRecognitionConfig" }, "url": { + "format": "uri", "type": "string" } }, @@ -11854,12 +11865,14 @@ "SystemConfigMapDto": { "properties": { "darkStyle": { + "format": "uri", "type": "string" }, "enabled": { "type": "boolean" }, "lightStyle": { + "format": "uri", "type": "string" } }, @@ -11934,6 +11947,7 @@ "type": "boolean" }, "mobileRedirectUri": { + "format": "uri", "type": "string" }, "profileSigningAlgorithm": { @@ -11996,6 +12010,7 @@ "SystemConfigServerDto": { "properties": { "externalDomain": { + "format": "uri", "type": "string" }, "loginPageMessage": { @@ -12218,6 +12233,7 @@ "TagCreateDto": { "properties": { "color": { + "pattern": "^#?([0-9A-F]{3}|[0-9A-F]{4}|[0-9A-F]{6}|[0-9A-F]{8})$", "type": "string" }, "name": { @@ -12273,6 +12289,7 @@ "properties": { "color": { "nullable": true, + "pattern": "^#?([0-9A-F]{3}|[0-9A-F]{4}|[0-9A-F]{6}|[0-9A-F]{8})$", "type": "string" } }, @@ -12464,13 +12481,17 @@ "items": { "type": "string" }, - "type": "array" + "maxItems": 128, + "type": "array", + "uniqueItems": true }, "importPaths": { "items": { "type": "string" }, - "type": "array" + "maxItems": 128, + "type": "array", + "uniqueItems": true }, "name": { "type": "string" @@ -12526,6 +12547,7 @@ "UserAdminCreateDto": { "properties": { "email": { + "format": "email", "type": "string" }, "name": { @@ -12659,6 +12681,7 @@ "UserAdminUpdateDto": { "properties": { "email": { + "format": "email", "type": "string" }, "name": { @@ -12836,6 +12859,7 @@ "UserUpdateMeDto": { "properties": { "email": { + "format": "email", "type": "string" }, "name": { @@ -12864,13 +12888,17 @@ "items": { "type": "string" }, - "type": "array" + "maxItems": 128, + "type": "array", + "uniqueItems": true }, "importPaths": { "items": { "type": "string" }, - "type": "array" + "maxItems": 128, + "type": "array", + "uniqueItems": true } }, "type": "object"