Skip to content

Commit

Permalink
Merge pull request #149 from immichFrame/dev.jw.backend
Browse files Browse the repository at this point in the history
Update immich API to v1.117
  • Loading branch information
3rob3 authored Oct 3, 2024
2 parents db34382 + 31faeaf commit 8ca1a05
Show file tree
Hide file tree
Showing 2 changed files with 107 additions and 88 deletions.
3 changes: 1 addition & 2 deletions ImmichFrame.Core/Logic/ImmichFrameLogic.cs
Original file line number Diff line number Diff line change
Expand Up @@ -312,13 +312,12 @@ private async Task<IEnumerable<AssetResponseDto>> GetPeopleAssets()
var searchBody = new RandomSearchDto
{
Size = 250,
Page = 1,
Type = AssetTypeEnum.IMAGE,
WithExif = true
};
var searchResponse = await immichApi.SearchRandomAsync(searchBody);

var randomAssets = searchResponse.Assets.Items;
var randomAssets = searchResponse;

if (randomAssets.Any())
{
Expand Down
192 changes: 106 additions & 86 deletions ImmichFrame.Core/OpenAPIs/immich-openapi-specs.json
Original file line number Diff line number Diff line change
Expand Up @@ -2853,41 +2853,6 @@
]
}
},
"/libraries/{id}/removeOffline": {
"post": {
"operationId": "removeOfflineFiles",
"parameters": [
{
"name": "id",
"required": true,
"in": "path",
"schema": {
"format": "uuid",
"type": "string"
}
}
],
"responses": {
"204": {
"description": ""
}
},
"security": [
{
"bearer": []
},
{
"cookie": []
},
{
"api_key": []
}
],
"tags": [
"Libraries"
]
}
},
"/libraries/{id}/scan": {
"post": {
"operationId": "scanLibrary",
Expand All @@ -2902,16 +2867,6 @@
}
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ScanLibraryDto"
}
}
},
"required": true
},
"responses": {
"204": {
"description": ""
Expand Down Expand Up @@ -3491,6 +3446,13 @@
},
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/TestEmailResponseDto"
}
}
},
"description": ""
}
},
Expand Down Expand Up @@ -4653,7 +4615,10 @@
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SearchResponseDto"
"items": {
"$ref": "#/components/schemas/AssetResponseDto"
},
"type": "array"
}
}
},
Expand Down Expand Up @@ -5123,6 +5088,30 @@
]
}
},
"/server/version-history": {
"get": {
"operationId": "getVersionHistory",
"parameters": [],
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"items": {
"$ref": "#/components/schemas/ServerVersionHistoryResponseDto"
},
"type": "array"
}
}
},
"description": ""
}
},
"tags": [
"Server"
]
}
},
"/sessions": {
"delete": {
"operationId": "deleteAllSessions",
Expand Down Expand Up @@ -7447,7 +7436,7 @@
"info": {
"title": "Immich",
"description": "Immich API",
"version": "1.115.0",
"version": "1.117.0",
"contact": {}
},
"tags": [],
Expand Down Expand Up @@ -8280,9 +8269,6 @@
"isFavorite": {
"type": "boolean"
},
"isOffline": {
"type": "boolean"
},
"isVisible": {
"type": "boolean"
},
Expand Down Expand Up @@ -10504,10 +10490,6 @@
"nullable": true,
"type": "string"
},
"page": {
"minimum": 1,
"type": "number"
},
"personIds": {
"items": {
"format": "uuid",
Expand Down Expand Up @@ -10621,17 +10603,6 @@
],
"type": "object"
},
"ScanLibraryDto": {
"properties": {
"refreshAllFiles": {
"type": "boolean"
},
"refreshModifiedFiles": {
"type": "boolean"
}
},
"type": "object"
},
"SearchAlbumResponseDto": {
"properties": {
"count": {
Expand Down Expand Up @@ -10833,6 +10804,18 @@
"sourceUrl": {
"type": "string"
},
"thirdPartyBugFeatureUrl": {
"type": "string"
},
"thirdPartyDocumentationUrl": {
"type": "string"
},
"thirdPartySourceUrl": {
"type": "string"
},
"thirdPartySupportUrl": {
"type": "string"
},
"version": {
"type": "string"
},
Expand Down Expand Up @@ -11083,6 +11066,26 @@
],
"type": "object"
},
"ServerVersionHistoryResponseDto": {
"properties": {
"createdAt": {
"format": "date-time",
"type": "string"
},
"id": {
"type": "string"
},
"version": {
"type": "string"
}
},
"required": [
"createdAt",
"id",
"version"
],
"type": "object"
},
"ServerVersionResponseDto": {
"properties": {
"major": {
Expand Down Expand Up @@ -11706,42 +11709,48 @@
],
"type": "object"
},
"SystemConfigImageDto": {
"SystemConfigGeneratedImageDto": {
"properties": {
"colorspace": {
"$ref": "#/components/schemas/Colorspace"
},
"extractEmbedded": {
"type": "boolean"
},
"previewFormat": {
"format": {
"$ref": "#/components/schemas/ImageFormat"
},
"previewSize": {
"minimum": 1,
"type": "integer"
},
"quality": {
"maximum": 100,
"minimum": 1,
"type": "integer"
},
"thumbnailFormat": {
"$ref": "#/components/schemas/ImageFormat"
},
"thumbnailSize": {
"size": {
"minimum": 1,
"type": "integer"
}
},
"required": [
"format",
"quality",
"size"
],
"type": "object"
},
"SystemConfigImageDto": {
"properties": {
"colorspace": {
"$ref": "#/components/schemas/Colorspace"
},
"extractEmbedded": {
"type": "boolean"
},
"preview": {
"$ref": "#/components/schemas/SystemConfigGeneratedImageDto"
},
"thumbnail": {
"$ref": "#/components/schemas/SystemConfigGeneratedImageDto"
}
},
"required": [
"colorspace",
"extractEmbedded",
"previewFormat",
"previewSize",
"quality",
"thumbnailFormat",
"thumbnailSize"
"preview",
"thumbnail"
],
"type": "object"
},
Expand Down Expand Up @@ -12348,6 +12357,17 @@
},
"type": "object"
},
"TestEmailResponseDto": {
"properties": {
"messageId": {
"type": "string"
}
},
"required": [
"messageId"
],
"type": "object"
},
"TimeBucketResponseDto": {
"properties": {
"count": {
Expand Down

0 comments on commit 8ca1a05

Please sign in to comment.