Skip to content

High performance self-hosted photo and video management solution.

chore: sort open api spec keys (#2710)

Jason Rasmussene3694695ae9c
diff --git a/server/immich-openapi-specs.json b/server/immich-openapi-specs.json
index e3bd376d0b..f131f8678f 100644
--- a/server/immich-openapi-specs.json
+++ b/server/immich-openapi-specs.json
@@ -95,6 +95,80 @@
]
}
},
+ "/album/count-by-user-id": {
+ "get": {
+ "operationId": "getAlbumCountByUserId",
+ "parameters": [],
+ "responses": {
+ "200": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/AlbumCountResponseDto"
+ }
+ }
+ }
+ }
+ },
+ "tags": [
+ "Album"
+ ],
+ "security": [
+ {
+ "bearer": []
+ },
+ {
+ "cookie": []
+ },
+ {
+ "api_key": []
+ }
+ ]
+ }
+ },
+ "/album/create-shared-link": {
+ "post": {
+ "operationId": "createAlbumSharedLink",
+ "parameters": [],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/CreateAlbumShareLinkDto"
+ }
+ }
+ }
+ },
+ "responses": {
+ "201": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/SharedLinkResponseDto"
+ }
+ }
+ }
+ }
+ },
+ "tags": [
+ "Album"
+ ],
+ "security": [
+ {
+ "bearer": []
+ },
+ {
+ "cookie": []
+ },
+ {
+ "api_key": []
+ }
+ ]
+ }
+ },
"/album/{id}": {
"patch": {
"operationId": "updateAlbumInfo",
@@ -228,9 +302,9 @@
]
}
},
- "/album/{id}/users": {
+ "/album/{id}/assets": {
"put": {
- "operationId": "addUsersToAlbum",
+ "operationId": "addAssetsToAlbum",
"parameters": [
{
"name": "id",
@@ -240,6 +314,14 @@
"format": "uuid",
"type": "string"
}
+ },
+ {
+ "name": "key",
+ "required": false,
+ "in": "query",
+ "schema": {
+ "type": "string"
+ }
}
],
"requestBody": {
@@ -247,7 +329,7 @@
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/AddUsersDto"
+ "$ref": "#/components/schemas/AddAssetsDto"
}
}
}
@@ -258,7 +340,7 @@
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/AlbumResponseDto"
+ "$ref": "#/components/schemas/AddAssetsResponseDto"
}
}
}
@@ -278,11 +360,9 @@
"api_key": []
}
]
- }
- },
- "/album/{id}/user/{userId}": {
+ },
"delete": {
- "operationId": "removeUserFromAlbum",
+ "operationId": "removeAssetFromAlbum",
"parameters": [
{
"name": "id",
@@ -292,65 +372,32 @@
"format": "uuid",
"type": "string"
}
- },
- {
- "name": "userId",
- "required": true,
- "in": "path",
- "schema": {
- "type": "string"
- }
}
],
- "responses": {
- "200": {
- "description": ""
- }
- },
- "tags": [
- "Album"
- ],
- "security": [
- {
- "bearer": []
- },
- {
- "cookie": []
- },
- {
- "api_key": []
- }
- ]
- }
- },
- "/api-key": {
- "post": {
- "operationId": "createKey",
- "parameters": [],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/APIKeyCreateDto"
+ "$ref": "#/components/schemas/RemoveAssetsDto"
}
}
}
},
"responses": {
- "201": {
+ "200": {
"description": "",
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/APIKeyCreateResponseDto"
+ "$ref": "#/components/schemas/AlbumResponseDto"
}
}
}
}
},
"tags": [
- "API Key"
+ "Album"
],
"security": [
{
@@ -363,27 +410,61 @@
"api_key": []
}
]
- },
+ }
+ },
+ "/album/{id}/download": {
"get": {
- "operationId": "getKeys",
- "parameters": [],
+ "operationId": "downloadArchive",
+ "parameters": [
+ {
+ "name": "id",
+ "required": true,
+ "in": "path",
+ "schema": {
+ "format": "uuid",
+ "type": "string"
+ }
+ },
+ {
+ "name": "name",
+ "required": false,
+ "in": "query",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "skip",
+ "required": false,
+ "in": "query",
+ "schema": {
+ "type": "number"
+ }
+ },
+ {
+ "name": "key",
+ "required": false,
+ "in": "query",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
"responses": {
"200": {
- "description": "",
"content": {
- "application/json": {
+ "application/zip": {
"schema": {
- "type": "array",
- "items": {
- "$ref": "#/components/schemas/APIKeyResponseDto"
- }
+ "type": "string",
+ "format": "binary"
}
}
- }
+ },
+ "description": ""
}
},
"tags": [
- "API Key"
+ "Album"
],
"security": [
{
@@ -398,9 +479,9 @@
]
}
},
- "/api-key/{id}": {
- "get": {
- "operationId": "getKey",
+ "/album/{id}/user/{userId}": {
+ "delete": {
+ "operationId": "removeUserFromAlbum",
"parameters": [
{
"name": "id",
@@ -410,22 +491,23 @@
"format": "uuid",
"type": "string"
}
+ },
+ {
+ "name": "userId",
+ "required": true,
+ "in": "path",
+ "schema": {
+ "type": "string"
+ }
}
],
"responses": {
"200": {
- "description": "",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/APIKeyResponseDto"
- }
- }
- }
+ "description": ""
}
},
"tags": [
- "API Key"
+ "Album"
],
"security": [
{
@@ -438,9 +520,11 @@
"api_key": []
}
]
- },
+ }
+ },
+ "/album/{id}/users": {
"put": {
- "operationId": "updateKey",
+ "operationId": "addUsersToAlbum",
"parameters": [
{
"name": "id",
@@ -457,7 +541,7 @@
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/APIKeyUpdateDto"
+ "$ref": "#/components/schemas/AddUsersDto"
}
}
}
@@ -468,14 +552,14 @@
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/APIKeyResponseDto"
+ "$ref": "#/components/schemas/AlbumResponseDto"
}
}
}
}
},
"tags": [
- "API Key"
+ "Album"
],
"security": [
{
@@ -488,23 +572,32 @@
"api_key": []
}
]
- },
- "delete": {
- "operationId": "deleteKey",
- "parameters": [
- {
- "name": "id",
- "required": true,
- "in": "path",
- "schema": {
- "format": "uuid",
- "type": "string"
+ }
+ },
+ "/api-key": {
+ "post": {
+ "operationId": "createKey",
+ "parameters": [],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/APIKeyCreateDto"
+ }
}
}
- ],
+ },
"responses": {
- "200": {
- "description": ""
+ "201": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/APIKeyCreateResponseDto"
+ }
+ }
+ }
}
},
"tags": [
@@ -521,39 +614,10 @@
"api_key": []
}
]
- }
- },
- "/asset/map-marker": {
+ },
"get": {
- "operationId": "getMapMarkers",
- "parameters": [
- {
- "name": "isFavorite",
- "required": false,
- "in": "query",
- "schema": {
- "type": "boolean"
- }
- },
- {
- "name": "fileCreatedAfter",
- "required": false,
- "in": "query",
- "schema": {
- "format": "date-time",
- "type": "string"
- }
- },
- {
- "name": "fileCreatedBefore",
- "required": false,
- "in": "query",
- "schema": {
- "format": "date-time",
- "type": "string"
- }
- }
- ],
+ "operationId": "getKeys",
+ "parameters": [],
"responses": {
"200": {
"description": "",
@@ -562,7 +626,7 @@
"schema": {
"type": "array",
"items": {
- "$ref": "#/components/schemas/MapMarkerResponseDto"
+ "$ref": "#/components/schemas/APIKeyResponseDto"
}
}
}
@@ -570,7 +634,7 @@
}
},
"tags": [
- "Asset"
+ "API Key"
],
"security": [
{
@@ -585,92 +649,84 @@
]
}
},
- "/auth/login": {
- "post": {
- "operationId": "login",
- "parameters": [],
- "requestBody": {
- "required": true,
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/LoginCredentialDto"
- }
+ "/api-key/{id}": {
+ "get": {
+ "operationId": "getKey",
+ "parameters": [
+ {
+ "name": "id",
+ "required": true,
+ "in": "path",
+ "schema": {
+ "format": "uuid",
+ "type": "string"
}
}
- },
+ ],
"responses": {
- "201": {
+ "200": {
"description": "",
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/LoginResponseDto"
+ "$ref": "#/components/schemas/APIKeyResponseDto"
}
}
}
}
},
"tags": [
- "Authentication"
+ "API Key"
+ ],
+ "security": [
+ {
+ "bearer": []
+ },
+ {
+ "cookie": []
+ },
+ {
+ "api_key": []
+ }
]
- }
- },
- "/auth/admin-sign-up": {
- "post": {
- "operationId": "adminSignUp",
- "parameters": [],
+ },
+ "put": {
+ "operationId": "updateKey",
+ "parameters": [
+ {
+ "name": "id",
+ "required": true,
+ "in": "path",
+ "schema": {
+ "format": "uuid",
+ "type": "string"
+ }
+ }
+ ],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/SignUpDto"
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/AdminSignupResponseDto"
- }
+ "$ref": "#/components/schemas/APIKeyUpdateDto"
}
}
- },
- "400": {
- "description": "The server already has an admin"
}
},
- "tags": [
- "Authentication"
- ]
- }
- },
- "/auth/devices": {
- "get": {
- "operationId": "getAuthDevices",
- "parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
- "type": "array",
- "items": {
- "$ref": "#/components/schemas/AuthDeviceResponseDto"
- }
+ "$ref": "#/components/schemas/APIKeyResponseDto"
}
}
}
}
},
"tags": [
- "Authentication"
+ "API Key"
],
"security": [
{
@@ -685,15 +741,25 @@
]
},
"delete": {
- "operationId": "logoutAuthDevices",
- "parameters": [],
+ "operationId": "deleteKey",
+ "parameters": [
+ {
+ "name": "id",
+ "required": true,
+ "in": "path",
+ "schema": {
+ "format": "uuid",
+ "type": "string"
+ }
+ }
+ ],
"responses": {
"200": {
"description": ""
}
},
"tags": [
- "Authentication"
+ "API Key"
],
"security": [
{
@@ -708,27 +774,80 @@
]
}
},
- "/auth/devices/{id}": {
- "delete": {
- "operationId": "logoutAuthDevice",
+ "/asset": {
+ "get": {
+ "operationId": "getAllAssets",
+ "description": "Get all AssetEntity belong to the user",
"parameters": [
{
- "name": "id",
- "required": true,
- "in": "path",
+ "name": "userId",
+ "required": false,
+ "in": "query",
"schema": {
"format": "uuid",
"type": "string"
}
+ },
+ {
+ "name": "isFavorite",
+ "required": false,
+ "in": "query",
+ "schema": {
+ "type": "boolean"
+ }
+ },
+ {
+ "name": "isArchived",
+ "required": false,
+ "in": "query",
+ "schema": {
+ "type": "boolean"
+ }
+ },
+ {
+ "name": "withoutThumbs",
+ "required": false,
+ "in": "query",
+ "description": "Include assets without thumbnails",
+ "schema": {
+ "type": "boolean"
+ }
+ },
+ {
+ "name": "skip",
+ "required": false,
+ "in": "query",
+ "schema": {
+ "type": "number"
+ }
+ },
+ {
+ "name": "if-none-match",
+ "in": "header",
+ "description": "ETag of data already cached on the client",
+ "required": false,
+ "schema": {
+ "type": "string"
+ }
}
],
"responses": {
"200": {
- "description": ""
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/AssetResponseDto"
+ }
+ }
+ }
+ }
}
},
"tags": [
- "Authentication"
+ "Asset"
],
"security": [
{
@@ -741,26 +860,37 @@
"api_key": []
}
]
- }
- },
- "/auth/validateToken": {
- "post": {
- "operationId": "validateAccessToken",
+ },
+ "delete": {
+ "operationId": "deleteAsset",
"parameters": [],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/DeleteAssetDto"
+ }
+ }
+ }
+ },
"responses": {
- "201": {
+ "200": {
"description": "",
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/ValidateAccessTokenResponseDto"
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/DeleteAssetResponseDto"
+ }
}
}
}
}
},
"tags": [
- "Authentication"
+ "Asset"
],
"security": [
{
@@ -775,34 +905,43 @@
]
}
},
- "/auth/change-password": {
- "post": {
- "operationId": "changePassword",
- "parameters": [],
- "requestBody": {
- "required": true,
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/ChangePasswordDto"
- }
+ "/asset/assetById/{id}": {
+ "get": {
+ "operationId": "getAssetById",
+ "description": "Get a single asset's information",
+ "parameters": [
+ {
+ "name": "id",
+ "required": true,
+ "in": "path",
+ "schema": {
+ "format": "uuid",
+ "type": "string"
+ }
+ },
+ {
+ "name": "key",
+ "required": false,
+ "in": "query",
+ "schema": {
+ "type": "string"
}
}
- },
+ ],
"responses": {
- "201": {
+ "200": {
"description": "",
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/UserResponseDto"
+ "$ref": "#/components/schemas/AssetResponseDto"
}
}
}
}
},
"tags": [
- "Authentication"
+ "Asset"
],
"security": [
{
@@ -817,56 +956,35 @@
]
}
},
- "/auth/logout": {
+ "/asset/bulk-upload-check": {
"post": {
- "operationId": "logout",
+ "operationId": "bulkUploadCheck",
+ "description": "Checks if assets exist by checksums",
"parameters": [],
- "responses": {
- "201": {
- "description": "",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/LogoutResponseDto"
- }
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/AssetBulkUploadCheckDto"
}
}
}
},
- "tags": [
- "Authentication"
- ],
- "security": [
- {
- "bearer": []
- },
- {
- "cookie": []
- },
- {
- "api_key": []
- }
- ]
- }
- },
- "/jobs": {
- "get": {
- "operationId": "getAllJobsStatus",
- "parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/AllJobStatusResponseDto"
+ "$ref": "#/components/schemas/AssetBulkUploadCheckResponseDto"
}
}
}
}
},
"tags": [
- "Job"
+ "Asset"
],
"security": [
{
@@ -881,16 +999,17 @@
]
}
},
- "/jobs/{jobId}": {
- "put": {
- "operationId": "sendJobCommand",
+ "/asset/check": {
+ "post": {
+ "operationId": "checkDuplicateAsset",
+ "description": "Check duplicated asset before uploading - for Web upload used",
"parameters": [
{
- "name": "jobId",
- "required": true,
- "in": "path",
+ "name": "key",
+ "required": false,
+ "in": "query",
"schema": {
- "$ref": "#/components/schemas/JobName"
+ "type": "string"
}
}
],
@@ -899,7 +1018,7 @@
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/JobCommandDto"
+ "$ref": "#/components/schemas/CheckDuplicateAssetDto"
}
}
}
@@ -910,14 +1029,14 @@
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/JobStatusDto"
+ "$ref": "#/components/schemas/CheckDuplicateAssetResponseDto"
}
}
}
}
},
"tags": [
- "Job"
+ "Asset"
],
"security": [
{
@@ -932,30 +1051,16 @@
]
}
},
- "/oauth/mobile-redirect": {
- "get": {
- "operationId": "mobileRedirect",
- "parameters": [],
- "responses": {
- "200": {
- "description": ""
- }
- },
- "tags": [
- "OAuth"
- ]
- }
- },
- "/oauth/config": {
+ "/asset/count-by-time-bucket": {
"post": {
- "operationId": "generateConfig",
+ "operationId": "getAssetCountByTimeBucket",
"parameters": [],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/OAuthConfigDto"
+ "$ref": "#/components/schemas/GetAssetCountByTimeBucketDto"
}
}
}
@@ -966,76 +1071,81 @@
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/OAuthConfigResponseDto"
+ "$ref": "#/components/schemas/AssetCountByTimeBucketResponseDto"
}
}
}
}
},
"tags": [
- "OAuth"
+ "Asset"
+ ],
+ "security": [
+ {
+ "bearer": []
+ },
+ {
+ "cookie": []
+ },
+ {
+ "api_key": []
+ }
]
}
},
- "/oauth/callback": {
- "post": {
- "operationId": "callback",
+ "/asset/count-by-user-id": {
+ "get": {
+ "operationId": "getAssetCountByUserId",
"parameters": [],
- "requestBody": {
- "required": true,
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/OAuthCallbackDto"
- }
- }
- }
- },
"responses": {
- "201": {
+ "200": {
"description": "",
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/LoginResponseDto"
+ "$ref": "#/components/schemas/AssetCountByUserIdResponseDto"
}
}
}
}
},
"tags": [
- "OAuth"
+ "Asset"
+ ],
+ "security": [
+ {
+ "bearer": []
+ },
+ {
+ "cookie": []
+ },
+ {
+ "api_key": []
+ }
]
}
},
- "/oauth/link": {
- "post": {
- "operationId": "link",
+ "/asset/curated-locations": {
+ "get": {
+ "operationId": "getCuratedLocations",
"parameters": [],
- "requestBody": {
- "required": true,
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/OAuthCallbackDto"
- }
- }
- }
- },
"responses": {
- "201": {
+ "200": {
"description": "",
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/UserResponseDto"
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/CuratedLocationsResponseDto"
+ }
}
}
}
}
},
"tags": [
- "OAuth"
+ "Asset"
],
"security": [
{
@@ -1050,24 +1160,27 @@
]
}
},
- "/oauth/unlink": {
- "post": {
- "operationId": "unlink",
+ "/asset/curated-objects": {
+ "get": {
+ "operationId": "getCuratedObjects",
"parameters": [],
"responses": {
- "201": {
+ "200": {
"description": "",
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/UserResponseDto"
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/CuratedObjectsResponseDto"
+ }
}
}
}
}
},
"tags": [
- "OAuth"
+ "Asset"
],
"security": [
{
@@ -1082,40 +1195,47 @@
]
}
},
- "/partner": {
- "get": {
- "operationId": "getPartners",
+ "/asset/download-files": {
+ "post": {
+ "operationId": "downloadFiles",
"parameters": [
{
- "name": "direction",
- "required": true,
+ "name": "key",
+ "required": false,
"in": "query",
"schema": {
- "enum": [
- "shared-by",
- "shared-with"
- ],
"type": "string"
}
}
],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/DownloadFilesDto"
+ }
+ }
+ }
+ },
"responses": {
"200": {
- "description": "",
"content": {
- "application/json": {
+ "application/octet-stream": {
"schema": {
- "type": "array",
- "items": {
- "$ref": "#/components/schemas/UserResponseDto"
- }
+ "type": "string",
+ "format": "binary"
}
}
- }
+ },
+ "description": ""
+ },
+ "201": {
+ "description": ""
}
},
"tags": [
- "Partner"
+ "Asset"
],
"security": [
{
@@ -1130,34 +1250,51 @@
]
}
},
- "/partner/{id}": {
- "post": {
- "operationId": "createPartner",
- "parameters": [
+ "/asset/download-library": {
+ "get": {
+ "operationId": "downloadLibrary",
+ "description": "Current this is not used in any UI element",
+ "parameters": [
{
- "name": "id",
- "required": true,
- "in": "path",
+ "name": "name",
+ "required": false,
+ "in": "query",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "skip",
+ "required": false,
+ "in": "query",
+ "schema": {
+ "type": "number"
+ }
+ },
+ {
+ "name": "key",
+ "required": false,
+ "in": "query",
"schema": {
- "format": "uuid",
"type": "string"
}
}
],
"responses": {
- "201": {
- "description": "",
+ "200": {
"content": {
- "application/json": {
+ "application/octet-stream": {
"schema": {
- "$ref": "#/components/schemas/UserResponseDto"
+ "type": "string",
+ "format": "binary"
}
}
- }
+ },
+ "description": ""
}
},
"tags": [
- "Partner"
+ "Asset"
],
"security": [
{
@@ -1170,9 +1307,11 @@
"api_key": []
}
]
- },
- "delete": {
- "operationId": "removePartner",
+ }
+ },
+ "/asset/download/{id}": {
+ "get": {
+ "operationId": "downloadFile",
"parameters": [
{
"name": "id",
@@ -1182,15 +1321,31 @@
"format": "uuid",
"type": "string"
}
+ },
+ {
+ "name": "key",
+ "required": false,
+ "in": "query",
+ "schema": {
+ "type": "string"
+ }
}
],
"responses": {
"200": {
+ "content": {
+ "application/octet-stream": {
+ "schema": {
+ "type": "string",
+ "format": "binary"
+ }
+ }
+ },
"description": ""
}
},
"tags": [
- "Partner"
+ "Asset"
],
"security": [
{
@@ -1205,140 +1360,146 @@
]
}
},
- "/search": {
- "get": {
- "operationId": "search",
- "parameters": [
- {
- "name": "q",
- "required": false,
- "in": "query",
- "schema": {
- "type": "string"
+ "/asset/exist": {
+ "post": {
+ "operationId": "checkExistingAssets",
+ "description": "Checks if multiple assets exist on the server and returns all existing - used by background backup",
+ "parameters": [],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/CheckExistingAssetsDto"
+ }
}
- },
- {
- "name": "query",
- "required": false,
- "in": "query",
- "schema": {
- "type": "string"
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/CheckExistingAssetsResponseDto"
+ }
+ }
}
- },
+ }
+ },
+ "tags": [
+ "Asset"
+ ],
+ "security": [
{
- "name": "clip",
- "required": false,
- "in": "query",
- "schema": {
- "type": "boolean"
- }
+ "bearer": []
},
{
- "name": "type",
- "required": false,
- "in": "query",
- "schema": {
- "enum": [
- "IMAGE",
- "VIDEO",
- "AUDIO",
- "OTHER"
- ],
- "type": "string"
- }
+ "cookie": []
},
{
- "name": "isFavorite",
- "required": false,
- "in": "query",
- "schema": {
- "type": "boolean"
- }
- },
+ "api_key": []
+ }
+ ]
+ }
+ },
+ "/asset/file/{id}": {
+ "get": {
+ "operationId": "serveFile",
+ "parameters": [
{
- "name": "isArchived",
+ "name": "isThumb",
"required": false,
"in": "query",
"schema": {
+ "title": "Is serve thumbnail (resize) file",
"type": "boolean"
}
},
{
- "name": "exifInfo.city",
+ "name": "isWeb",
"required": false,
"in": "query",
"schema": {
- "type": "string"
+ "title": "Is request made from web",
+ "type": "boolean"
}
},
{
- "name": "exifInfo.state",
- "required": false,
- "in": "query",
+ "name": "id",
+ "required": true,
+ "in": "path",
"schema": {
+ "format": "uuid",
"type": "string"
}
},
{
- "name": "exifInfo.country",
+ "name": "key",
"required": false,
"in": "query",
"schema": {
"type": "string"
}
- },
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/octet-stream": {
+ "schema": {
+ "type": "string",
+ "format": "binary"
+ }
+ }
+ },
+ "description": ""
+ }
+ },
+ "tags": [
+ "Asset"
+ ],
+ "security": [
{
- "name": "exifInfo.make",
- "required": false,
- "in": "query",
- "schema": {
- "type": "string"
- }
+ "bearer": []
},
{
- "name": "exifInfo.model",
- "required": false,
- "in": "query",
- "schema": {
- "type": "string"
- }
+ "cookie": []
},
{
- "name": "smartInfo.objects",
- "required": false,
- "in": "query",
- "schema": {
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- },
+ "api_key": []
+ }
+ ]
+ }
+ },
+ "/asset/map-marker": {
+ "get": {
+ "operationId": "getMapMarkers",
+ "parameters": [
{
- "name": "smartInfo.tags",
+ "name": "isFavorite",
"required": false,
"in": "query",
"schema": {
- "type": "array",
- "items": {
- "type": "string"
- }
+ "type": "boolean"
}
},
{
- "name": "recent",
+ "name": "fileCreatedAfter",
"required": false,
"in": "query",
"schema": {
- "type": "boolean"
+ "format": "date-time",
+ "type": "string"
}
},
{
- "name": "motion",
+ "name": "fileCreatedBefore",
"required": false,
"in": "query",
"schema": {
- "type": "boolean"
+ "format": "date-time",
+ "type": "string"
}
}
],
@@ -1348,14 +1509,17 @@
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/SearchResponseDto"
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/MapMarkerResponseDto"
+ }
}
}
}
}
},
"tags": [
- "Search"
+ "Asset"
],
"security": [
{
@@ -1370,24 +1534,37 @@
]
}
},
- "/search/config": {
- "get": {
- "operationId": "getSearchConfig",
+ "/asset/search": {
+ "post": {
+ "operationId": "searchAsset",
"parameters": [],
- "responses": {
- "200": {
- "description": "",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/SearchConfigResponseDto"
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/SearchAssetDto"
+ }
+ }
+ }
+ },
+ "responses": {
+ "201": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/AssetResponseDto"
+ }
}
}
}
}
},
"tags": [
- "Search"
+ "Asset"
],
"security": [
{
@@ -1402,9 +1579,9 @@
]
}
},
- "/search/explore": {
+ "/asset/search-terms": {
"get": {
- "operationId": "getExploreData",
+ "operationId": "getAssetSearchTerms",
"parameters": [],
"responses": {
"200": {
@@ -1414,7 +1591,7 @@
"schema": {
"type": "array",
"items": {
- "$ref": "#/components/schemas/SearchExploreResponseDto"
+ "type": "string"
}
}
}
@@ -1422,7 +1599,7 @@
}
},
"tags": [
- "Search"
+ "Asset"
],
"security": [
{
@@ -1437,24 +1614,34 @@
]
}
},
- "/server-info": {
- "get": {
- "operationId": "getServerInfo",
+ "/asset/shared-link": {
+ "post": {
+ "operationId": "createAssetsSharedLink",
"parameters": [],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/CreateAssetsShareLinkDto"
+ }
+ }
+ }
+ },
"responses": {
- "200": {
+ "201": {
"description": "",
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/ServerInfoResponseDto"
+ "$ref": "#/components/schemas/SharedLinkResponseDto"
}
}
}
}
},
"tags": [
- "Server Info"
+ "Asset"
],
"security": [
{
@@ -1469,66 +1656,94 @@
]
}
},
- "/server-info/ping": {
- "get": {
- "operationId": "pingServer",
- "parameters": [],
- "responses": {
- "200": {
- "description": "",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/ServerPingResponse"
- }
+ "/asset/shared-link/add": {
+ "patch": {
+ "operationId": "addAssetsToSharedLink",
+ "parameters": [
+ {
+ "name": "key",
+ "required": false,
+ "in": "query",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/AddAssetsDto"
}
}
}
},
- "tags": [
- "Server Info"
- ]
- }
- },
- "/server-info/version": {
- "get": {
- "operationId": "getServerVersion",
- "parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/ServerVersionReponseDto"
+ "$ref": "#/components/schemas/SharedLinkResponseDto"
}
}
}
}
},
"tags": [
- "Server Info"
+ "Asset"
+ ],
+ "security": [
+ {
+ "bearer": []
+ },
+ {
+ "cookie": []
+ },
+ {
+ "api_key": []
+ }
]
}
},
- "/server-info/stats": {
- "get": {
- "operationId": "getStats",
- "parameters": [],
+ "/asset/shared-link/remove": {
+ "patch": {
+ "operationId": "removeAssetsFromSharedLink",
+ "parameters": [
+ {
+ "name": "key",
+ "required": false,
+ "in": "query",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/RemoveAssetsDto"
+ }
+ }
+ }
+ },
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/ServerStatsResponseDto"
+ "$ref": "#/components/schemas/SharedLinkResponseDto"
}
}
}
}
},
"tags": [
- "Server Info"
+ "Asset"
],
"security": [
{
@@ -1543,9 +1758,9 @@
]
}
},
- "/share": {
+ "/asset/stat/archive": {
"get": {
- "operationId": "getAllSharedLinks",
+ "operationId": "getArchivedAssetCountByUserId",
"parameters": [],
"responses": {
"200": {
@@ -1553,17 +1768,14 @@
"content": {
"application/json": {
"schema": {
- "type": "array",
- "items": {
- "$ref": "#/components/schemas/SharedLinkResponseDto"
- }
+ "$ref": "#/components/schemas/AssetCountByUserIdResponseDto"
}
}
}
}
},
"tags": [
- "share"
+ "Asset"
],
"security": [
{
@@ -1578,10 +1790,27 @@
]
}
},
- "/share/me": {
+ "/asset/thumbnail/{id}": {
"get": {
- "operationId": "getMySharedLink",
+ "operationId": "getAssetThumbnail",
"parameters": [
+ {
+ "name": "id",
+ "required": true,
+ "in": "path",
+ "schema": {
+ "format": "uuid",
+ "type": "string"
+ }
+ },
+ {
+ "name": "format",
+ "required": false,
+ "in": "query",
+ "schema": {
+ "$ref": "#/components/schemas/ThumbnailFormat"
+ }
+ },
{
"name": "key",
"required": false,
@@ -1593,18 +1822,19 @@
],
"responses": {
"200": {
- "description": "",
"content": {
- "application/json": {
+ "application/octet-stream": {
"schema": {
- "$ref": "#/components/schemas/SharedLinkResponseDto"
+ "type": "string",
+ "format": "binary"
}
}
- }
+ },
+ "description": ""
}
},
"tags": [
- "share"
+ "Asset"
],
"security": [
{
@@ -1619,34 +1849,37 @@
]
}
},
- "/share/{id}": {
- "get": {
- "operationId": "getSharedLinkById",
- "parameters": [
- {
- "name": "id",
- "required": true,
- "in": "path",
- "schema": {
- "format": "uuid",
- "type": "string"
+ "/asset/time-bucket": {
+ "post": {
+ "operationId": "getAssetByTimeBucket",
+ "parameters": [],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/GetAssetByTimeBucketDto"
+ }
}
}
- ],
+ },
"responses": {
- "200": {
+ "201": {
"description": "",
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/SharedLinkResponseDto"
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/AssetResponseDto"
+ }
}
}
}
}
},
"tags": [
- "share"
+ "Asset"
],
"security": [
{
@@ -1659,44 +1892,46 @@
"api_key": []
}
]
- },
- "patch": {
- "operationId": "updateSharedLink",
+ }
+ },
+ "/asset/upload": {
+ "post": {
+ "operationId": "uploadFile",
"parameters": [
{
- "name": "id",
- "required": true,
- "in": "path",
+ "name": "key",
+ "required": false,
+ "in": "query",
"schema": {
- "format": "uuid",
"type": "string"
}
}
],
"requestBody": {
"required": true,
+ "description": "Asset Upload Information",
"content": {
- "application/json": {
+ "multipart/form-data": {
"schema": {
- "$ref": "#/components/schemas/EditSharedLinkDto"
+ "$ref": "#/components/schemas/CreateAssetDto"
}
}
}
},
"responses": {
- "200": {
+ "201": {
"description": "",
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/SharedLinkResponseDto"
+ "$ref": "#/components/schemas/AssetFileUploadResponseDto"
}
}
}
}
},
"tags": [
- "share"
+ "Asset"
],
"security": [
{
@@ -1709,12 +1944,15 @@
"api_key": []
}
]
- },
- "delete": {
- "operationId": "removeSharedLink",
+ }
+ },
+ "/asset/{deviceId}": {
+ "get": {
+ "operationId": "getUserAssetsByDeviceId",
+ "description": "Get all asset of a device that are in the database, ID only.",
"parameters": [
{
- "name": "id",
+ "name": "deviceId",
"required": true,
"in": "path",
"schema": {
@@ -1725,11 +1963,21 @@
],
"responses": {
"200": {
- "description": ""
- }
- },
- "tags": [
- "share"
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ }
+ },
+ "tags": [
+ "Asset"
],
"security": [
{
@@ -1744,24 +1992,45 @@
]
}
},
- "/system-config": {
- "get": {
- "operationId": "getConfig",
- "parameters": [],
+ "/asset/{id}": {
+ "put": {
+ "operationId": "updateAsset",
+ "description": "Update an asset",
+ "parameters": [
+ {
+ "name": "id",
+ "required": true,
+ "in": "path",
+ "schema": {
+ "format": "uuid",
+ "type": "string"
+ }
+ }
+ ],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/UpdateAssetDto"
+ }
+ }
+ }
+ },
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/SystemConfigDto"
+ "$ref": "#/components/schemas/AssetResponseDto"
}
}
}
}
},
"tags": [
- "System Config"
+ "Asset"
],
"security": [
{
@@ -1774,34 +2043,70 @@
"api_key": []
}
]
- },
- "put": {
- "operationId": "updateConfig",
+ }
+ },
+ "/auth/admin-sign-up": {
+ "post": {
+ "operationId": "adminSignUp",
"parameters": [],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/SystemConfigDto"
+ "$ref": "#/components/schemas/SignUpDto"
}
}
}
},
"responses": {
- "200": {
+ "201": {
"description": "",
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/SystemConfigDto"
+ "$ref": "#/components/schemas/AdminSignupResponseDto"
+ }
+ }
+ }
+ },
+ "400": {
+ "description": "The server already has an admin"
+ }
+ },
+ "tags": [
+ "Authentication"
+ ]
+ }
+ },
+ "/auth/change-password": {
+ "post": {
+ "operationId": "changePassword",
+ "parameters": [],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ChangePasswordDto"
+ }
+ }
+ }
+ },
+ "responses": {
+ "201": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/UserResponseDto"
}
}
}
}
},
"tags": [
- "System Config"
+ "Authentication"
],
"security": [
{
@@ -1816,9 +2121,9 @@
]
}
},
- "/system-config/defaults": {
+ "/auth/devices": {
"get": {
- "operationId": "getDefaults",
+ "operationId": "getAuthDevices",
"parameters": [],
"responses": {
"200": {
@@ -1826,14 +2131,17 @@
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/SystemConfigDto"
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/AuthDeviceResponseDto"
+ }
}
}
}
}
},
"tags": [
- "System Config"
+ "Authentication"
],
"security": [
{
@@ -1846,26 +2154,52 @@
"api_key": []
}
]
- }
- },
- "/system-config/storage-template-options": {
- "get": {
- "operationId": "getStorageTemplateOptions",
+ },
+ "delete": {
+ "operationId": "logoutAuthDevices",
"parameters": [],
"responses": {
"200": {
- "description": "",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/SystemConfigTemplateStorageOptionDto"
- }
- }
+ "description": ""
+ }
+ },
+ "tags": [
+ "Authentication"
+ ],
+ "security": [
+ {
+ "bearer": []
+ },
+ {
+ "cookie": []
+ },
+ {
+ "api_key": []
+ }
+ ]
+ }
+ },
+ "/auth/devices/{id}": {
+ "delete": {
+ "operationId": "logoutAuthDevice",
+ "parameters": [
+ {
+ "name": "id",
+ "required": true,
+ "in": "path",
+ "schema": {
+ "format": "uuid",
+ "type": "string"
}
}
+ ],
+ "responses": {
+ "200": {
+ "description": ""
+ }
},
"tags": [
- "System Config"
+ "Authentication"
],
"security": [
{
@@ -1880,16 +2214,16 @@
]
}
},
- "/tag": {
+ "/auth/login": {
"post": {
- "operationId": "createTag",
+ "operationId": "login",
"parameters": [],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/CreateTagDto"
+ "$ref": "#/components/schemas/LoginCredentialDto"
}
}
}
@@ -1900,14 +2234,35 @@
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/TagResponseDto"
+ "$ref": "#/components/schemas/LoginResponseDto"
}
}
}
}
},
"tags": [
- "Tag"
+ "Authentication"
+ ]
+ }
+ },
+ "/auth/logout": {
+ "post": {
+ "operationId": "logout",
+ "parameters": [],
+ "responses": {
+ "201": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/LogoutResponseDto"
+ }
+ }
+ }
+ }
+ },
+ "tags": [
+ "Authentication"
],
"security": [
{
@@ -1920,27 +2275,26 @@
"api_key": []
}
]
- },
- "get": {
- "operationId": "getAllTags",
+ }
+ },
+ "/auth/validateToken": {
+ "post": {
+ "operationId": "validateAccessToken",
"parameters": [],
"responses": {
- "200": {
+ "201": {
"description": "",
"content": {
"application/json": {
"schema": {
- "type": "array",
- "items": {
- "$ref": "#/components/schemas/TagResponseDto"
- }
+ "$ref": "#/components/schemas/ValidateAccessTokenResponseDto"
}
}
}
}
},
"tags": [
- "Tag"
+ "Authentication"
],
"security": [
{
@@ -1955,34 +2309,24 @@
]
}
},
- "/tag/{id}": {
+ "/jobs": {
"get": {
- "operationId": "getTagById",
- "parameters": [
- {
- "name": "id",
- "required": true,
- "in": "path",
- "schema": {
- "format": "uuid",
- "type": "string"
- }
- }
- ],
+ "operationId": "getAllJobsStatus",
+ "parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/TagResponseDto"
+ "$ref": "#/components/schemas/AllJobStatusResponseDto"
}
}
}
}
},
"tags": [
- "Tag"
+ "Job"
],
"security": [
{
@@ -1995,17 +2339,18 @@
"api_key": []
}
]
- },
- "patch": {
- "operationId": "updateTag",
+ }
+ },
+ "/jobs/{jobId}": {
+ "put": {
+ "operationId": "sendJobCommand",
"parameters": [
{
- "name": "id",
+ "name": "jobId",
"required": true,
"in": "path",
"schema": {
- "format": "uuid",
- "type": "string"
+ "$ref": "#/components/schemas/JobName"
}
}
],
@@ -2014,7 +2359,7 @@
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/UpdateTagDto"
+ "$ref": "#/components/schemas/JobCommandDto"
}
}
}
@@ -2025,14 +2370,14 @@
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/TagResponseDto"
+ "$ref": "#/components/schemas/JobStatusDto"
}
}
}
}
},
"tags": [
- "Tag"
+ "Job"
],
"security": [
{
@@ -2045,27 +2390,144 @@
"api_key": []
}
]
- },
- "delete": {
- "operationId": "deleteTag",
- "parameters": [
- {
- "name": "id",
- "required": true,
- "in": "path",
- "schema": {
- "format": "uuid",
- "type": "string"
+ }
+ },
+ "/oauth/callback": {
+ "post": {
+ "operationId": "callback",
+ "parameters": [],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/OAuthCallbackDto"
+ }
+ }
+ }
+ },
+ "responses": {
+ "201": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/LoginResponseDto"
+ }
+ }
+ }
+ }
+ },
+ "tags": [
+ "OAuth"
+ ]
+ }
+ },
+ "/oauth/config": {
+ "post": {
+ "operationId": "generateConfig",
+ "parameters": [],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/OAuthConfigDto"
+ }
+ }
+ }
+ },
+ "responses": {
+ "201": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/OAuthConfigResponseDto"
+ }
+ }
+ }
+ }
+ },
+ "tags": [
+ "OAuth"
+ ]
+ }
+ },
+ "/oauth/link": {
+ "post": {
+ "operationId": "link",
+ "parameters": [],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/OAuthCallbackDto"
+ }
+ }
+ }
+ },
+ "responses": {
+ "201": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/UserResponseDto"
+ }
+ }
}
}
+ },
+ "tags": [
+ "OAuth"
],
+ "security": [
+ {
+ "bearer": []
+ },
+ {
+ "cookie": []
+ },
+ {
+ "api_key": []
+ }
+ ]
+ }
+ },
+ "/oauth/mobile-redirect": {
+ "get": {
+ "operationId": "mobileRedirect",
+ "parameters": [],
"responses": {
"200": {
"description": ""
}
},
"tags": [
- "Tag"
+ "OAuth"
+ ]
+ }
+ },
+ "/oauth/unlink": {
+ "post": {
+ "operationId": "unlink",
+ "parameters": [],
+ "responses": {
+ "201": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/UserResponseDto"
+ }
+ }
+ }
+ }
+ },
+ "tags": [
+ "OAuth"
],
"security": [
{
@@ -2080,16 +2542,19 @@
]
}
},
- "/tag/{id}/assets": {
+ "/partner": {
"get": {
- "operationId": "getTagAssets",
+ "operationId": "getPartners",
"parameters": [
{
- "name": "id",
+ "name": "direction",
"required": true,
- "in": "path",
+ "in": "query",
"schema": {
- "format": "uuid",
+ "enum": [
+ "shared-by",
+ "shared-with"
+ ],
"type": "string"
}
}
@@ -2102,7 +2567,7 @@
"schema": {
"type": "array",
"items": {
- "$ref": "#/components/schemas/AssetResponseDto"
+ "$ref": "#/components/schemas/UserResponseDto"
}
}
}
@@ -2110,7 +2575,7 @@
}
},
"tags": [
- "Tag"
+ "Partner"
],
"security": [
{
@@ -2123,9 +2588,11 @@
"api_key": []
}
]
- },
- "put": {
- "operationId": "tagAssets",
+ }
+ },
+ "/partner/{id}": {
+ "post": {
+ "operationId": "createPartner",
"parameters": [
{
"name": "id",
@@ -2137,33 +2604,20 @@
}
}
],
- "requestBody": {
- "required": true,
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/AssetIdsDto"
- }
- }
- }
- },
"responses": {
- "200": {
+ "201": {
"description": "",
"content": {
"application/json": {
"schema": {
- "type": "array",
- "items": {
- "$ref": "#/components/schemas/AssetIdsResponseDto"
- }
+ "$ref": "#/components/schemas/UserResponseDto"
}
}
}
}
},
"tags": [
- "Tag"
+ "Partner"
],
"security": [
{
@@ -2178,7 +2632,7 @@
]
},
"delete": {
- "operationId": "untagAssets",
+ "operationId": "removePartner",
"parameters": [
{
"name": "id",
@@ -2190,16 +2644,31 @@
}
}
],
- "requestBody": {
- "required": true,
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/AssetIdsDto"
- }
- }
+ "responses": {
+ "200": {
+ "description": ""
}
},
+ "tags": [
+ "Partner"
+ ],
+ "security": [
+ {
+ "bearer": []
+ },
+ {
+ "cookie": []
+ },
+ {
+ "api_key": []
+ }
+ ]
+ }
+ },
+ "/person": {
+ "get": {
+ "operationId": "getAllPeople",
+ "parameters": [],
"responses": {
"200": {
"description": "",
@@ -2208,7 +2677,7 @@
"schema": {
"type": "array",
"items": {
- "$ref": "#/components/schemas/AssetIdsResponseDto"
+ "$ref": "#/components/schemas/PersonResponseDto"
}
}
}
@@ -2216,7 +2685,7 @@
}
},
"tags": [
- "Tag"
+ "Person"
],
"security": [
{
@@ -2231,16 +2700,17 @@
]
}
},
- "/user": {
+ "/person/{id}": {
"get": {
- "operationId": "getAllUsers",
+ "operationId": "getPerson",
"parameters": [
{
- "name": "isAll",
+ "name": "id",
"required": true,
- "in": "query",
+ "in": "path",
"schema": {
- "type": "boolean"
+ "format": "uuid",
+ "type": "string"
}
}
],
@@ -2250,17 +2720,14 @@
"content": {
"application/json": {
"schema": {
- "type": "array",
- "items": {
- "$ref": "#/components/schemas/UserResponseDto"
- }
+ "$ref": "#/components/schemas/PersonResponseDto"
}
}
}
}
},
"tags": [
- "User"
+ "Person"
],
"security": [
{
@@ -2274,33 +2741,43 @@
}
]
},
- "post": {
- "operationId": "createUser",
- "parameters": [],
+ "put": {
+ "operationId": "updatePerson",
+ "parameters": [
+ {
+ "name": "id",
+ "required": true,
+ "in": "path",
+ "schema": {
+ "format": "uuid",
+ "type": "string"
+ }
+ }
+ ],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/CreateUserDto"
+ "$ref": "#/components/schemas/PersonUpdateDto"
}
}
}
},
"responses": {
- "201": {
+ "200": {
"description": "",
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/UserResponseDto"
+ "$ref": "#/components/schemas/PersonResponseDto"
}
}
}
}
},
"tags": [
- "User"
+ "Person"
],
"security": [
{
@@ -2313,34 +2790,39 @@
"api_key": []
}
]
- },
- "put": {
- "operationId": "updateUser",
- "parameters": [],
- "requestBody": {
- "required": true,
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/UpdateUserDto"
- }
+ }
+ },
+ "/person/{id}/assets": {
+ "get": {
+ "operationId": "getPersonAssets",
+ "parameters": [
+ {
+ "name": "id",
+ "required": true,
+ "in": "path",
+ "schema": {
+ "format": "uuid",
+ "type": "string"
}
}
- },
+ ],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/UserResponseDto"
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/AssetResponseDto"
+ }
}
}
}
}
},
"tags": [
- "User"
+ "Person"
],
"security": [
{
@@ -2355,12 +2837,12 @@
]
}
},
- "/user/info/{userId}": {
+ "/person/{id}/thumbnail": {
"get": {
- "operationId": "getUserById",
+ "operationId": "getPersonThumbnail",
"parameters": [
{
- "name": "userId",
+ "name": "id",
"required": true,
"in": "path",
"schema": {
@@ -2371,18 +2853,19 @@
],
"responses": {
"200": {
- "description": "",
"content": {
- "application/json": {
+ "application/octet-stream": {
"schema": {
- "$ref": "#/components/schemas/UserResponseDto"
+ "type": "string",
+ "format": "binary"
}
}
- }
+ },
+ "description": ""
}
},
"tags": [
- "User"
+ "Person"
],
"security": [
{
@@ -2397,81 +2880,141 @@
]
}
},
- "/user/me": {
+ "/search": {
"get": {
- "operationId": "getMyUserInfo",
- "parameters": [],
- "responses": {
- "200": {
- "description": "",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/UserResponseDto"
- }
- }
+ "operationId": "search",
+ "parameters": [
+ {
+ "name": "q",
+ "required": false,
+ "in": "query",
+ "schema": {
+ "type": "string"
}
- }
- },
- "tags": [
- "User"
- ],
- "security": [
+ },
{
- "bearer": []
+ "name": "query",
+ "required": false,
+ "in": "query",
+ "schema": {
+ "type": "string"
+ }
},
{
- "cookie": []
+ "name": "clip",
+ "required": false,
+ "in": "query",
+ "schema": {
+ "type": "boolean"
+ }
},
{
- "api_key": []
- }
- ]
- }
- },
- "/user/count": {
- "get": {
- "operationId": "getUserCount",
- "parameters": [
+ "name": "type",
+ "required": false,
+ "in": "query",
+ "schema": {
+ "enum": [
+ "IMAGE",
+ "VIDEO",
+ "AUDIO",
+ "OTHER"
+ ],
+ "type": "string"
+ }
+ },
{
- "name": "admin",
+ "name": "isFavorite",
"required": false,
"in": "query",
"schema": {
- "default": false,
"type": "boolean"
}
- }
- ],
- "responses": {
- "200": {
- "description": "",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/UserCountResponseDto"
- }
- }
+ },
+ {
+ "name": "isArchived",
+ "required": false,
+ "in": "query",
+ "schema": {
+ "type": "boolean"
}
- }
- },
- "tags": [
- "User"
- ]
- }
- },
- "/user/{userId}": {
- "delete": {
- "operationId": "deleteUser",
- "parameters": [
+ },
{
- "name": "userId",
- "required": true,
- "in": "path",
+ "name": "exifInfo.city",
+ "required": false,
+ "in": "query",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "exifInfo.state",
+ "required": false,
+ "in": "query",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "exifInfo.country",
+ "required": false,
+ "in": "query",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "exifInfo.make",
+ "required": false,
+ "in": "query",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "exifInfo.model",
+ "required": false,
+ "in": "query",
"schema": {
- "format": "uuid",
"type": "string"
}
+ },
+ {
+ "name": "smartInfo.objects",
+ "required": false,
+ "in": "query",
+ "schema": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ },
+ {
+ "name": "smartInfo.tags",
+ "required": false,
+ "in": "query",
+ "schema": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ },
+ {
+ "name": "recent",
+ "required": false,
+ "in": "query",
+ "schema": {
+ "type": "boolean"
+ }
+ },
+ {
+ "name": "motion",
+ "required": false,
+ "in": "query",
+ "schema": {
+ "type": "boolean"
+ }
}
],
"responses": {
@@ -2480,14 +3023,14 @@
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/UserResponseDto"
+ "$ref": "#/components/schemas/SearchResponseDto"
}
}
}
}
},
"tags": [
- "User"
+ "Search"
],
"security": [
{
@@ -2502,34 +3045,24 @@
]
}
},
- "/user/{userId}/restore": {
- "post": {
- "operationId": "restoreUser",
- "parameters": [
- {
- "name": "userId",
- "required": true,
- "in": "path",
- "schema": {
- "format": "uuid",
- "type": "string"
- }
- }
- ],
+ "/search/config": {
+ "get": {
+ "operationId": "getSearchConfig",
+ "parameters": [],
"responses": {
- "201": {
+ "200": {
"description": "",
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/UserResponseDto"
+ "$ref": "#/components/schemas/SearchConfigResponseDto"
}
}
}
}
},
"tags": [
- "User"
+ "Search"
],
"security": [
{
@@ -2544,35 +3077,27 @@
]
}
},
- "/user/profile-image": {
- "post": {
- "operationId": "createProfileImage",
+ "/search/explore": {
+ "get": {
+ "operationId": "getExploreData",
"parameters": [],
- "requestBody": {
- "required": true,
- "description": "A new avatar for the user",
- "content": {
- "multipart/form-data": {
- "schema": {
- "$ref": "#/components/schemas/CreateProfileImageDto"
- }
- }
- }
- },
"responses": {
- "201": {
+ "200": {
"description": "",
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/CreateProfileImageResponseDto"
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/SearchExploreResponseDto"
+ }
}
}
}
}
},
"tags": [
- "User"
+ "Search"
],
"security": [
{
@@ -2587,34 +3112,24 @@
]
}
},
- "/user/profile-image/{userId}": {
+ "/server-info": {
"get": {
- "operationId": "getProfileImage",
- "parameters": [
- {
- "name": "userId",
- "required": true,
- "in": "path",
- "schema": {
- "format": "uuid",
- "type": "string"
- }
- }
- ],
+ "operationId": "getServerInfo",
+ "parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
- "type": "object"
+ "$ref": "#/components/schemas/ServerInfoResponseDto"
}
}
}
}
},
"tags": [
- "User"
+ "Server Info"
],
"security": [
{
@@ -2629,9 +3144,9 @@
]
}
},
- "/person": {
+ "/server-info/ping": {
"get": {
- "operationId": "getAllPeople",
+ "operationId": "pingServer",
"parameters": [],
"responses": {
"200": {
@@ -2639,59 +3154,35 @@
"content": {
"application/json": {
"schema": {
- "type": "array",
- "items": {
- "$ref": "#/components/schemas/PersonResponseDto"
- }
+ "$ref": "#/components/schemas/ServerPingResponse"
}
}
}
}
},
"tags": [
- "Person"
- ],
- "security": [
- {
- "bearer": []
- },
- {
- "cookie": []
- },
- {
- "api_key": []
- }
+ "Server Info"
]
}
},
- "/person/{id}": {
+ "/server-info/stats": {
"get": {
- "operationId": "getPerson",
- "parameters": [
- {
- "name": "id",
- "required": true,
- "in": "path",
- "schema": {
- "format": "uuid",
- "type": "string"
- }
- }
- ],
+ "operationId": "getStats",
+ "parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/PersonResponseDto"
+ "$ref": "#/components/schemas/ServerStatsResponseDto"
}
}
}
}
},
"tags": [
- "Person"
+ "Server Info"
],
"security": [
{
@@ -2704,44 +3195,50 @@
"api_key": []
}
]
- },
- "put": {
- "operationId": "updatePerson",
- "parameters": [
- {
- "name": "id",
- "required": true,
- "in": "path",
- "schema": {
- "format": "uuid",
- "type": "string"
- }
- }
- ],
- "requestBody": {
- "required": true,
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/PersonUpdateDto"
+ }
+ },
+ "/server-info/version": {
+ "get": {
+ "operationId": "getServerVersion",
+ "parameters": [],
+ "responses": {
+ "200": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ServerVersionReponseDto"
+ }
}
}
}
},
+ "tags": [
+ "Server Info"
+ ]
+ }
+ },
+ "/share": {
+ "get": {
+ "operationId": "getAllSharedLinks",
+ "parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/PersonResponseDto"
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/SharedLinkResponseDto"
+ }
}
}
}
}
},
"tags": [
- "Person"
+ "share"
],
"security": [
{
@@ -2756,35 +3253,33 @@
]
}
},
- "/person/{id}/thumbnail": {
+ "/share/me": {
"get": {
- "operationId": "getPersonThumbnail",
+ "operationId": "getMySharedLink",
"parameters": [
{
- "name": "id",
- "required": true,
- "in": "path",
+ "name": "key",
+ "required": false,
+ "in": "query",
"schema": {
- "format": "uuid",
"type": "string"
}
}
],
"responses": {
"200": {
+ "description": "",
"content": {
- "application/octet-stream": {
+ "application/json": {
"schema": {
- "type": "string",
- "format": "binary"
+ "$ref": "#/components/schemas/SharedLinkResponseDto"
}
}
- },
- "description": ""
+ }
}
},
"tags": [
- "Person"
+ "share"
],
"security": [
{
@@ -2799,9 +3294,9 @@
]
}
},
- "/person/{id}/assets": {
+ "/share/{id}": {
"get": {
- "operationId": "getPersonAssets",
+ "operationId": "getSharedLinkById",
"parameters": [
{
"name": "id",
@@ -2819,17 +3314,14 @@
"content": {
"application/json": {
"schema": {
- "type": "array",
- "items": {
- "$ref": "#/components/schemas/AssetResponseDto"
- }
+ "$ref": "#/components/schemas/SharedLinkResponseDto"
}
}
}
}
},
"tags": [
- "Person"
+ "share"
],
"security": [
{
@@ -2842,46 +3334,44 @@
"api_key": []
}
]
- }
- },
- "/asset/upload": {
- "post": {
- "operationId": "uploadFile",
+ },
+ "patch": {
+ "operationId": "updateSharedLink",
"parameters": [
{
- "name": "key",
- "required": false,
- "in": "query",
+ "name": "id",
+ "required": true,
+ "in": "path",
"schema": {
+ "format": "uuid",
"type": "string"
}
}
],
"requestBody": {
"required": true,
- "description": "Asset Upload Information",
"content": {
- "multipart/form-data": {
+ "application/json": {
"schema": {
- "$ref": "#/components/schemas/CreateAssetDto"
+ "$ref": "#/components/schemas/EditSharedLinkDto"
}
}
}
},
"responses": {
- "201": {
+ "200": {
"description": "",
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/AssetFileUploadResponseDto"
+ "$ref": "#/components/schemas/SharedLinkResponseDto"
}
}
}
}
},
"tags": [
- "Asset"
+ "share"
],
"security": [
{
@@ -2894,11 +3384,9 @@
"api_key": []
}
]
- }
- },
- "/asset/download/{id}": {
- "get": {
- "operationId": "downloadFile",
+ },
+ "delete": {
+ "operationId": "removeSharedLink",
"parameters": [
{
"name": "id",
@@ -2908,31 +3396,15 @@
"format": "uuid",
"type": "string"
}
- },
- {
- "name": "key",
- "required": false,
- "in": "query",
- "schema": {
- "type": "string"
- }
}
],
"responses": {
"200": {
- "content": {
- "application/octet-stream": {
- "schema": {
- "type": "string",
- "format": "binary"
- }
- }
- },
"description": ""
}
},
"tags": [
- "Asset"
+ "share"
],
"security": [
{
@@ -2947,47 +3419,24 @@
]
}
},
- "/asset/download-files": {
- "post": {
- "operationId": "downloadFiles",
- "parameters": [
- {
- "name": "key",
- "required": false,
- "in": "query",
- "schema": {
- "type": "string"
- }
- }
- ],
- "requestBody": {
- "required": true,
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/DownloadFilesDto"
- }
- }
- }
- },
+ "/system-config": {
+ "get": {
+ "operationId": "getConfig",
+ "parameters": [],
"responses": {
"200": {
+ "description": "",
"content": {
- "application/octet-stream": {
+ "application/json": {
"schema": {
- "type": "string",
- "format": "binary"
+ "$ref": "#/components/schemas/SystemConfigDto"
}
}
- },
- "description": ""
- },
- "201": {
- "description": ""
+ }
}
},
"tags": [
- "Asset"
+ "System Config"
],
"security": [
{
@@ -3000,53 +3449,34 @@
"api_key": []
}
]
- }
- },
- "/asset/download-library": {
- "get": {
- "operationId": "downloadLibrary",
- "description": "Current this is not used in any UI element",
- "parameters": [
- {
- "name": "name",
- "required": false,
- "in": "query",
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "skip",
- "required": false,
- "in": "query",
- "schema": {
- "type": "number"
- }
- },
- {
- "name": "key",
- "required": false,
- "in": "query",
- "schema": {
- "type": "string"
+ },
+ "put": {
+ "operationId": "updateConfig",
+ "parameters": [],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/SystemConfigDto"
+ }
}
}
- ],
+ },
"responses": {
"200": {
+ "description": "",
"content": {
- "application/octet-stream": {
+ "application/json": {
"schema": {
- "type": "string",
- "format": "binary"
+ "$ref": "#/components/schemas/SystemConfigDto"
}
}
- },
- "description": ""
+ }
}
},
"tags": [
- "Asset"
+ "System Config"
],
"security": [
{
@@ -3061,61 +3491,24 @@
]
}
},
- "/asset/file/{id}": {
+ "/system-config/defaults": {
"get": {
- "operationId": "serveFile",
- "parameters": [
- {
- "name": "isThumb",
- "required": false,
- "in": "query",
- "schema": {
- "title": "Is serve thumbnail (resize) file",
- "type": "boolean"
- }
- },
- {
- "name": "isWeb",
- "required": false,
- "in": "query",
- "schema": {
- "title": "Is request made from web",
- "type": "boolean"
- }
- },
- {
- "name": "id",
- "required": true,
- "in": "path",
- "schema": {
- "format": "uuid",
- "type": "string"
- }
- },
- {
- "name": "key",
- "required": false,
- "in": "query",
- "schema": {
- "type": "string"
- }
- }
- ],
+ "operationId": "getDefaults",
+ "parameters": [],
"responses": {
"200": {
+ "description": "",
"content": {
- "application/octet-stream": {
+ "application/json": {
"schema": {
- "type": "string",
- "format": "binary"
+ "$ref": "#/components/schemas/SystemConfigDto"
}
}
- },
- "description": ""
+ }
}
},
"tags": [
- "Asset"
+ "System Config"
],
"security": [
{
@@ -3130,51 +3523,24 @@
]
}
},
- "/asset/thumbnail/{id}": {
+ "/system-config/storage-template-options": {
"get": {
- "operationId": "getAssetThumbnail",
- "parameters": [
- {
- "name": "id",
- "required": true,
- "in": "path",
- "schema": {
- "format": "uuid",
- "type": "string"
- }
- },
- {
- "name": "format",
- "required": false,
- "in": "query",
- "schema": {
- "$ref": "#/components/schemas/ThumbnailFormat"
- }
- },
- {
- "name": "key",
- "required": false,
- "in": "query",
- "schema": {
- "type": "string"
- }
- }
- ],
+ "operationId": "getStorageTemplateOptions",
+ "parameters": [],
"responses": {
"200": {
+ "description": "",
"content": {
- "application/octet-stream": {
+ "application/json": {
"schema": {
- "type": "string",
- "format": "binary"
+ "$ref": "#/components/schemas/SystemConfigTemplateStorageOptionDto"
}
}
- },
- "description": ""
+ }
}
},
"tags": [
- "Asset"
+ "System Config"
],
"security": [
{
@@ -3189,27 +3555,34 @@
]
}
},
- "/asset/curated-objects": {
- "get": {
- "operationId": "getCuratedObjects",
+ "/tag": {
+ "post": {
+ "operationId": "createTag",
"parameters": [],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/CreateTagDto"
+ }
+ }
+ }
+ },
"responses": {
- "200": {
+ "201": {
"description": "",
"content": {
"application/json": {
"schema": {
- "type": "array",
- "items": {
- "$ref": "#/components/schemas/CuratedObjectsResponseDto"
- }
+ "$ref": "#/components/schemas/TagResponseDto"
}
}
}
}
},
"tags": [
- "Asset"
+ "Tag"
],
"security": [
{
@@ -3222,11 +3595,9 @@
"api_key": []
}
]
- }
- },
- "/asset/curated-locations": {
+ },
"get": {
- "operationId": "getCuratedLocations",
+ "operationId": "getAllTags",
"parameters": [],
"responses": {
"200": {
@@ -3236,7 +3607,7 @@
"schema": {
"type": "array",
"items": {
- "$ref": "#/components/schemas/CuratedLocationsResponseDto"
+ "$ref": "#/components/schemas/TagResponseDto"
}
}
}
@@ -3244,7 +3615,7 @@
}
},
"tags": [
- "Asset"
+ "Tag"
],
"security": [
{
@@ -3259,27 +3630,34 @@
]
}
},
- "/asset/search-terms": {
+ "/tag/{id}": {
"get": {
- "operationId": "getAssetSearchTerms",
- "parameters": [],
+ "operationId": "getTagById",
+ "parameters": [
+ {
+ "name": "id",
+ "required": true,
+ "in": "path",
+ "schema": {
+ "format": "uuid",
+ "type": "string"
+ }
+ }
+ ],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
- "type": "array",
- "items": {
- "type": "string"
- }
+ "$ref": "#/components/schemas/TagResponseDto"
}
}
}
}
},
"tags": [
- "Asset"
+ "Tag"
],
"security": [
{
@@ -3292,39 +3670,44 @@
"api_key": []
}
]
- }
- },
- "/asset/search": {
- "post": {
- "operationId": "searchAsset",
- "parameters": [],
+ },
+ "patch": {
+ "operationId": "updateTag",
+ "parameters": [
+ {
+ "name": "id",
+ "required": true,
+ "in": "path",
+ "schema": {
+ "format": "uuid",
+ "type": "string"
+ }
+ }
+ ],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/SearchAssetDto"
+ "$ref": "#/components/schemas/UpdateTagDto"
}
}
}
},
"responses": {
- "201": {
+ "200": {
"description": "",
"content": {
"application/json": {
"schema": {
- "type": "array",
- "items": {
- "$ref": "#/components/schemas/AssetResponseDto"
- }
+ "$ref": "#/components/schemas/TagResponseDto"
}
}
}
}
},
"tags": [
- "Asset"
+ "Tag"
],
"security": [
{
@@ -3337,36 +3720,27 @@
"api_key": []
}
]
- }
- },
- "/asset/count-by-time-bucket": {
- "post": {
- "operationId": "getAssetCountByTimeBucket",
- "parameters": [],
- "requestBody": {
- "required": true,
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/GetAssetCountByTimeBucketDto"
- }
+ },
+ "delete": {
+ "operationId": "deleteTag",
+ "parameters": [
+ {
+ "name": "id",
+ "required": true,
+ "in": "path",
+ "schema": {
+ "format": "uuid",
+ "type": "string"
}
}
- },
+ ],
"responses": {
- "201": {
- "description": "",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/AssetCountByTimeBucketResponseDto"
- }
- }
- }
+ "200": {
+ "description": ""
}
},
"tags": [
- "Asset"
+ "Tag"
],
"security": [
{
@@ -3381,24 +3755,37 @@
]
}
},
- "/asset/count-by-user-id": {
+ "/tag/{id}/assets": {
"get": {
- "operationId": "getAssetCountByUserId",
- "parameters": [],
+ "operationId": "getTagAssets",
+ "parameters": [
+ {
+ "name": "id",
+ "required": true,
+ "in": "path",
+ "schema": {
+ "format": "uuid",
+ "type": "string"
+ }
+ }
+ ],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/AssetCountByUserIdResponseDto"
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/AssetResponseDto"
+ }
}
}
}
}
},
"tags": [
- "Asset"
+ "Tag"
],
"security": [
{
@@ -3411,26 +3798,47 @@
"api_key": []
}
]
- }
- },
- "/asset/stat/archive": {
- "get": {
- "operationId": "getArchivedAssetCountByUserId",
- "parameters": [],
+ },
+ "put": {
+ "operationId": "tagAssets",
+ "parameters": [
+ {
+ "name": "id",
+ "required": true,
+ "in": "path",
+ "schema": {
+ "format": "uuid",
+ "type": "string"
+ }
+ }
+ ],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/AssetIdsDto"
+ }
+ }
+ }
+ },
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/AssetCountByUserIdResponseDto"
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/AssetIdsResponseDto"
+ }
}
}
}
}
},
"tags": [
- "Asset"
+ "Tag"
],
"security": [
{
@@ -3443,65 +3851,30 @@
"api_key": []
}
]
- }
- },
- "/asset": {
- "get": {
- "operationId": "getAllAssets",
- "description": "Get all AssetEntity belong to the user",
+ },
+ "delete": {
+ "operationId": "untagAssets",
"parameters": [
{
- "name": "userId",
- "required": false,
- "in": "query",
+ "name": "id",
+ "required": true,
+ "in": "path",
"schema": {
"format": "uuid",
"type": "string"
}
- },
- {
- "name": "isFavorite",
- "required": false,
- "in": "query",
- "schema": {
- "type": "boolean"
- }
- },
- {
- "name": "isArchived",
- "required": false,
- "in": "query",
- "schema": {
- "type": "boolean"
- }
- },
- {
- "name": "withoutThumbs",
- "required": false,
- "in": "query",
- "description": "Include assets without thumbnails",
- "schema": {
- "type": "boolean"
- }
- },
- {
- "name": "skip",
- "required": false,
- "in": "query",
- "schema": {
- "type": "number"
- }
- },
- {
- "name": "if-none-match",
- "in": "header",
- "description": "ETag of data already cached on the client",
- "required": false,
- "schema": {
- "type": "string"
- }
}
],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/AssetIdsDto"
+ }
+ }
+ }
+ },
"responses": {
"200": {
"description": "",
@@ -3510,7 +3883,7 @@
"schema": {
"type": "array",
"items": {
- "$ref": "#/components/schemas/AssetResponseDto"
+ "$ref": "#/components/schemas/AssetIdsResponseDto"
}
}
}
@@ -3518,7 +3891,7 @@
}
},
"tags": [
- "Asset"
+ "Tag"
],
"security": [
{
@@ -3531,20 +3904,21 @@
"api_key": []
}
]
- },
- "delete": {
- "operationId": "deleteAsset",
- "parameters": [],
- "requestBody": {
- "required": true,
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/DeleteAssetDto"
- }
+ }
+ },
+ "/user": {
+ "get": {
+ "operationId": "getAllUsers",
+ "parameters": [
+ {
+ "name": "isAll",
+ "required": true,
+ "in": "query",
+ "schema": {
+ "type": "boolean"
}
}
- },
+ ],
"responses": {
"200": {
"description": "",
@@ -3553,7 +3927,7 @@
"schema": {
"type": "array",
"items": {
- "$ref": "#/components/schemas/DeleteAssetResponseDto"
+ "$ref": "#/components/schemas/UserResponseDto"
}
}
}
@@ -3561,7 +3935,7 @@
}
},
"tags": [
- "Asset"
+ "User"
],
"security": [
{
@@ -3574,18 +3948,16 @@
"api_key": []
}
]
- }
- },
- "/asset/time-bucket": {
+ },
"post": {
- "operationId": "getAssetByTimeBucket",
+ "operationId": "createUser",
"parameters": [],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/GetAssetByTimeBucketDto"
+ "$ref": "#/components/schemas/CreateUserDto"
}
}
}
@@ -3596,17 +3968,14 @@
"content": {
"application/json": {
"schema": {
- "type": "array",
- "items": {
- "$ref": "#/components/schemas/AssetResponseDto"
- }
+ "$ref": "#/components/schemas/UserResponseDto"
}
}
}
}
},
"tags": [
- "Asset"
+ "User"
],
"security": [
{
@@ -3619,40 +3988,34 @@
"api_key": []
}
]
- }
- },
- "/asset/{deviceId}": {
- "get": {
- "operationId": "getUserAssetsByDeviceId",
- "description": "Get all asset of a device that are in the database, ID only.",
- "parameters": [
- {
- "name": "deviceId",
- "required": true,
- "in": "path",
- "schema": {
- "format": "uuid",
- "type": "string"
+ },
+ "put": {
+ "operationId": "updateUser",
+ "parameters": [],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/UpdateUserDto"
+ }
}
}
- ],
+ },
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
- "type": "array",
- "items": {
- "type": "string"
- }
+ "$ref": "#/components/schemas/UserResponseDto"
}
}
}
}
},
"tags": [
- "Asset"
+ "User"
],
"security": [
{
@@ -3667,26 +4030,17 @@
]
}
},
- "/asset/assetById/{id}": {
+ "/user/count": {
"get": {
- "operationId": "getAssetById",
- "description": "Get a single asset's information",
+ "operationId": "getUserCount",
"parameters": [
{
- "name": "id",
- "required": true,
- "in": "path",
- "schema": {
- "format": "uuid",
- "type": "string"
- }
- },
- {
- "name": "key",
+ "name": "admin",
"required": false,
"in": "query",
"schema": {
- "type": "string"
+ "default": false,
+ "type": "boolean"
}
}
],
@@ -3696,35 +4050,23 @@
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/AssetResponseDto"
+ "$ref": "#/components/schemas/UserCountResponseDto"
}
}
}
}
},
"tags": [
- "Asset"
- ],
- "security": [
- {
- "bearer": []
- },
- {
- "cookie": []
- },
- {
- "api_key": []
- }
+ "User"
]
}
},
- "/asset/{id}": {
- "put": {
- "operationId": "updateAsset",
- "description": "Update an asset",
+ "/user/info/{userId}": {
+ "get": {
+ "operationId": "getUserById",
"parameters": [
{
- "name": "id",
+ "name": "userId",
"required": true,
"in": "path",
"schema": {
@@ -3733,82 +4075,20 @@
}
}
],
- "requestBody": {
- "required": true,
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/UpdateAssetDto"
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/AssetResponseDto"
- }
- }
- }
- }
- },
- "tags": [
- "Asset"
- ],
- "security": [
- {
- "bearer": []
- },
- {
- "cookie": []
- },
- {
- "api_key": []
- }
- ]
- }
- },
- "/asset/check": {
- "post": {
- "operationId": "checkDuplicateAsset",
- "description": "Check duplicated asset before uploading - for Web upload used",
- "parameters": [
- {
- "name": "key",
- "required": false,
- "in": "query",
- "schema": {
- "type": "string"
- }
- }
- ],
- "requestBody": {
- "required": true,
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/CheckDuplicateAssetDto"
- }
- }
- }
- },
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/CheckDuplicateAssetResponseDto"
+ "$ref": "#/components/schemas/UserResponseDto"
}
}
}
}
},
"tags": [
- "Asset"
+ "User"
],
"security": [
{
@@ -3823,35 +4103,24 @@
]
}
},
- "/asset/exist": {
- "post": {
- "operationId": "checkExistingAssets",
- "description": "Checks if multiple assets exist on the server and returns all existing - used by background backup",
+ "/user/me": {
+ "get": {
+ "operationId": "getMyUserInfo",
"parameters": [],
- "requestBody": {
- "required": true,
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/CheckExistingAssetsDto"
- }
- }
- }
- },
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/CheckExistingAssetsResponseDto"
+ "$ref": "#/components/schemas/UserResponseDto"
}
}
}
}
},
"tags": [
- "Asset"
+ "User"
],
"security": [
{
@@ -3866,35 +4135,35 @@
]
}
},
- "/asset/bulk-upload-check": {
+ "/user/profile-image": {
"post": {
- "operationId": "bulkUploadCheck",
- "description": "Checks if assets exist by checksums",
+ "operationId": "createProfileImage",
"parameters": [],
"requestBody": {
"required": true,
+ "description": "A new avatar for the user",
"content": {
- "application/json": {
+ "multipart/form-data": {
"schema": {
- "$ref": "#/components/schemas/AssetBulkUploadCheckDto"
+ "$ref": "#/components/schemas/CreateProfileImageDto"
}
}
}
},
"responses": {
- "200": {
+ "201": {
"description": "",
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/AssetBulkUploadCheckResponseDto"
+ "$ref": "#/components/schemas/CreateProfileImageResponseDto"
}
}
}
}
},
"tags": [
- "Asset"
+ "User"
],
"security": [
{
@@ -3909,34 +4178,34 @@
]
}
},
- "/asset/shared-link": {
- "post": {
- "operationId": "createAssetsSharedLink",
- "parameters": [],
- "requestBody": {
- "required": true,
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/CreateAssetsShareLinkDto"
- }
+ "/user/profile-image/{userId}": {
+ "get": {
+ "operationId": "getProfileImage",
+ "parameters": [
+ {
+ "name": "userId",
+ "required": true,
+ "in": "path",
+ "schema": {
+ "format": "uuid",
+ "type": "string"
}
}
- },
+ ],
"responses": {
- "201": {
+ "200": {
"description": "",
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/SharedLinkResponseDto"
+ "type": "object"
}
}
}
}
},
"tags": [
- "Asset"
+ "User"
],
"security": [
{
@@ -3951,43 +4220,34 @@
]
}
},
- "/asset/shared-link/add": {
- "patch": {
- "operationId": "addAssetsToSharedLink",
+ "/user/{userId}": {
+ "delete": {
+ "operationId": "deleteUser",
"parameters": [
{
- "name": "key",
- "required": false,
- "in": "query",
+ "name": "userId",
+ "required": true,
+ "in": "path",
"schema": {
+ "format": "uuid",
"type": "string"
}
}
],
- "requestBody": {
- "required": true,
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/AddAssetsDto"
- }
- }
- }
- },
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/SharedLinkResponseDto"
+ "$ref": "#/components/schemas/UserResponseDto"
}
}
}
}
},
"tags": [
- "Asset"
+ "User"
],
"security": [
{
@@ -4002,43 +4262,34 @@
]
}
},
- "/asset/shared-link/remove": {
- "patch": {
- "operationId": "removeAssetsFromSharedLink",
+ "/user/{userId}/restore": {
+ "post": {
+ "operationId": "restoreUser",
"parameters": [
{
- "name": "key",
- "required": false,
- "in": "query",
+ "name": "userId",
+ "required": true,
+ "in": "path",
"schema": {
+ "format": "uuid",
"type": "string"
}
}
],
- "requestBody": {
- "required": true,
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/RemoveAssetsDto"
- }
- }
- }
- },
"responses": {
- "200": {
+ "201": {
"description": "",
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/SharedLinkResponseDto"
+ "$ref": "#/components/schemas/UserResponseDto"
}
}
}
}
},
"tags": [
- "Asset"
+ "User"
],
"security": [
{
@@ -4052,755 +4303,63 @@
}
]
}
+ }
+ },
+ "info": {
+ "title": "Immich",
+ "description": "Immich API",
+ "version": "1.60.0",
+ "contact": {}
+ },
+ "tags": [],
+ "servers": [
+ {
+ "url": "/api"
+ }
+ ],
+ "components": {
+ "securitySchemes": {
+ "bearer": {
+ "scheme": "Bearer",
+ "bearerFormat": "JWT",
+ "type": "http",
+ "in": "header"
+ },
+ "cookie": {
+ "type": "apiKey",
+ "in": "cookie",
+ "name": "immich_access_token"
+ },
+ "api_key": {
+ "type": "apiKey",
+ "in": "header",
+ "name": "x-api-key"
+ }
},
- "/album/count-by-user-id": {
- "get": {
- "operationId": "getAlbumCountByUserId",
- "parameters": [],
- "responses": {
- "200": {
- "description": "",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/AlbumCountResponseDto"
- }
- }
- }
- }
- },
- "tags": [
- "Album"
- ],
- "security": [
- {
- "bearer": []
- },
- {
- "cookie": []
- },
- {
- "api_key": []
- }
- ]
- }
- },
- "/album/{id}/assets": {
- "put": {
- "operationId": "addAssetsToAlbum",
- "parameters": [
- {
- "name": "id",
- "required": true,
- "in": "path",
- "schema": {
- "format": "uuid",
- "type": "string"
- }
- },
- {
- "name": "key",
- "required": false,
- "in": "query",
- "schema": {
- "type": "string"
- }
- }
- ],
- "requestBody": {
- "required": true,
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/AddAssetsDto"
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/AddAssetsResponseDto"
- }
- }
- }
- }
- },
- "tags": [
- "Album"
- ],
- "security": [
- {
- "bearer": []
- },
- {
- "cookie": []
- },
- {
- "api_key": []
- }
- ]
- },
- "delete": {
- "operationId": "removeAssetFromAlbum",
- "parameters": [
- {
- "name": "id",
- "required": true,
- "in": "path",
- "schema": {
- "format": "uuid",
- "type": "string"
- }
- }
- ],
- "requestBody": {
- "required": true,
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/RemoveAssetsDto"
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/AlbumResponseDto"
- }
- }
- }
- }
- },
- "tags": [
- "Album"
- ],
- "security": [
- {
- "bearer": []
- },
- {
- "cookie": []
- },
- {
- "api_key": []
- }
- ]
- }
- },
- "/album/{id}/download": {
- "get": {
- "operationId": "downloadArchive",
- "parameters": [
- {
- "name": "id",
- "required": true,
- "in": "path",
- "schema": {
- "format": "uuid",
- "type": "string"
- }
- },
- {
- "name": "name",
- "required": false,
- "in": "query",
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "skip",
- "required": false,
- "in": "query",
- "schema": {
- "type": "number"
- }
- },
- {
- "name": "key",
- "required": false,
- "in": "query",
- "schema": {
- "type": "string"
- }
- }
- ],
- "responses": {
- "200": {
- "content": {
- "application/zip": {
- "schema": {
- "type": "string",
- "format": "binary"
- }
- }
- },
- "description": ""
- }
- },
- "tags": [
- "Album"
- ],
- "security": [
- {
- "bearer": []
- },
- {
- "cookie": []
- },
- {
- "api_key": []
- }
- ]
- }
- },
- "/album/create-shared-link": {
- "post": {
- "operationId": "createAlbumSharedLink",
- "parameters": [],
- "requestBody": {
- "required": true,
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/CreateAlbumShareLinkDto"
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/SharedLinkResponseDto"
- }
- }
- }
- }
- },
- "tags": [
- "Album"
- ],
- "security": [
- {
- "bearer": []
- },
- {
- "cookie": []
- },
- {
- "api_key": []
- }
- ]
- }
- }
- },
- "info": {
- "title": "Immich",
- "description": "Immich API",
- "version": "1.60.0",
- "contact": {}
- },
- "tags": [],
- "servers": [
- {
- "url": "/api"
- }
- ],
- "components": {
- "securitySchemes": {
- "bearer": {
- "scheme": "Bearer",
- "bearerFormat": "JWT",
- "type": "http",
- "in": "header"
- },
- "cookie": {
- "type": "apiKey",
- "in": "cookie",
- "name": "immich_access_token"
- },
- "api_key": {
- "type": "apiKey",
- "in": "header",
- "name": "x-api-key"
- }
- },
- "schemas": {
- "UserResponseDto": {
- "type": "object",
- "properties": {
- "id": {
- "type": "string"
- },
- "email": {
- "type": "string"
- },
- "firstName": {
- "type": "string"
- },
- "lastName": {
- "type": "string"
- },
- "storageLabel": {
- "type": "string",
- "nullable": true
- },
- "profileImagePath": {
- "type": "string"
- },
- "shouldChangePassword": {
- "type": "boolean"
- },
- "isAdmin": {
- "type": "boolean"
- },
- "createdAt": {
- "format": "date-time",
- "type": "string"
- },
- "deletedAt": {
- "format": "date-time",
- "type": "string",
- "nullable": true
- },
- "updatedAt": {
- "format": "date-time",
- "type": "string"
- },
- "oauthId": {
- "type": "string"
- }
- },
- "required": [
- "id",
- "email",
- "firstName",
- "lastName",
- "storageLabel",
- "profileImagePath",
- "shouldChangePassword",
- "isAdmin",
- "createdAt",
- "deletedAt",
- "updatedAt",
- "oauthId"
- ]
- },
- "AssetTypeEnum": {
- "type": "string",
- "enum": [
- "IMAGE",
- "VIDEO",
- "AUDIO",
- "OTHER"
- ]
- },
- "ExifResponseDto": {
- "type": "object",
- "properties": {
- "fileSizeInByte": {
- "type": "integer",
- "nullable": true,
- "default": null,
- "format": "int64"
- },
- "make": {
- "type": "string",
- "nullable": true,
- "default": null
- },
- "model": {
- "type": "string",
- "nullable": true,
- "default": null
- },
- "exifImageWidth": {
- "type": "number",
- "nullable": true,
- "default": null
- },
- "exifImageHeight": {
- "type": "number",
- "nullable": true,
- "default": null
- },
- "orientation": {
- "type": "string",
- "nullable": true,
- "default": null
- },
- "dateTimeOriginal": {
- "format": "date-time",
- "type": "string",
- "nullable": true,
- "default": null
- },
- "modifyDate": {
- "format": "date-time",
- "type": "string",
- "nullable": true,
- "default": null
- },
- "timeZone": {
- "type": "string",
- "nullable": true,
- "default": null
- },
- "lensModel": {
- "type": "string",
- "nullable": true,
- "default": null
- },
- "fNumber": {
- "type": "number",
- "nullable": true,
- "default": null
- },
- "focalLength": {
- "type": "number",
- "nullable": true,
- "default": null
- },
- "iso": {
- "type": "number",
- "nullable": true,
- "default": null
- },
- "exposureTime": {
- "type": "string",
- "nullable": true,
- "default": null
- },
- "latitude": {
- "type": "number",
- "nullable": true,
- "default": null
- },
- "longitude": {
- "type": "number",
- "nullable": true,
- "default": null
- },
- "city": {
- "type": "string",
- "nullable": true,
- "default": null
- },
- "state": {
- "type": "string",
- "nullable": true,
- "default": null
- },
- "country": {
- "type": "string",
- "nullable": true,
- "default": null
- },
- "description": {
- "type": "string",
- "nullable": true,
- "default": null
- }
- }
- },
- "SmartInfoResponseDto": {
- "type": "object",
- "properties": {
- "tags": {
- "nullable": true,
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "objects": {
- "nullable": true,
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- }
- },
- "TagTypeEnum": {
- "type": "string",
- "enum": [
- "OBJECT",
- "FACE",
- "CUSTOM"
- ]
- },
- "TagResponseDto": {
- "type": "object",
- "properties": {
- "type": {
- "$ref": "#/components/schemas/TagTypeEnum"
- },
- "id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "userId": {
- "type": "string"
- }
- },
- "required": [
- "type",
- "id",
- "name",
- "userId"
- ]
- },
- "PersonResponseDto": {
- "type": "object",
- "properties": {
- "id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "thumbnailPath": {
- "type": "string"
- }
- },
- "required": [
- "id",
- "name",
- "thumbnailPath"
- ]
- },
- "AssetResponseDto": {
- "type": "object",
- "properties": {
- "type": {
- "$ref": "#/components/schemas/AssetTypeEnum"
- },
- "id": {
- "type": "string"
- },
- "deviceAssetId": {
- "type": "string"
- },
- "ownerId": {
- "type": "string"
- },
- "deviceId": {
- "type": "string"
- },
- "originalPath": {
- "type": "string"
- },
- "originalFileName": {
- "type": "string"
- },
- "resized": {
- "type": "boolean"
- },
- "fileCreatedAt": {
- "format": "date-time",
- "type": "string"
- },
- "fileModifiedAt": {
- "format": "date-time",
- "type": "string"
- },
- "updatedAt": {
- "format": "date-time",
- "type": "string"
- },
- "isFavorite": {
- "type": "boolean"
- },
- "isArchived": {
- "type": "boolean"
- },
- "mimeType": {
- "type": "string",
- "nullable": true
- },
- "duration": {
- "type": "string"
- },
- "exifInfo": {
- "$ref": "#/components/schemas/ExifResponseDto"
- },
- "smartInfo": {
- "$ref": "#/components/schemas/SmartInfoResponseDto"
- },
- "livePhotoVideoId": {
- "type": "string",
- "nullable": true
- },
- "tags": {
- "type": "array",
- "items": {
- "$ref": "#/components/schemas/TagResponseDto"
- }
- },
- "people": {
- "type": "array",
- "items": {
- "$ref": "#/components/schemas/PersonResponseDto"
- }
- },
- "checksum": {
- "type": "string",
- "description": "base64 encoded sha1 hash"
- }
- },
- "required": [
- "type",
- "id",
- "deviceAssetId",
- "ownerId",
- "deviceId",
- "originalPath",
- "originalFileName",
- "resized",
- "fileCreatedAt",
- "fileModifiedAt",
- "updatedAt",
- "isFavorite",
- "isArchived",
- "mimeType",
- "duration",
- "checksum"
- ]
- },
- "AlbumResponseDto": {
- "type": "object",
- "properties": {
- "assetCount": {
- "type": "integer"
- },
- "id": {
- "type": "string"
- },
- "ownerId": {
- "type": "string"
- },
- "albumName": {
- "type": "string"
- },
- "createdAt": {
- "format": "date-time",
- "type": "string"
- },
- "updatedAt": {
- "format": "date-time",
- "type": "string"
- },
- "albumThumbnailAssetId": {
- "type": "string",
- "nullable": true
- },
- "shared": {
- "type": "boolean"
- },
- "sharedUsers": {
- "type": "array",
- "items": {
- "$ref": "#/components/schemas/UserResponseDto"
- }
- },
- "assets": {
- "type": "array",
- "items": {
- "$ref": "#/components/schemas/AssetResponseDto"
- }
- },
- "owner": {
- "$ref": "#/components/schemas/UserResponseDto"
- }
- },
- "required": [
- "assetCount",
- "id",
- "ownerId",
- "albumName",
- "createdAt",
- "updatedAt",
- "albumThumbnailAssetId",
- "shared",
- "sharedUsers",
- "assets",
- "owner"
- ]
- },
- "CreateAlbumDto": {
+ "schemas": {
+ "APIKeyCreateDto": {
"type": "object",
"properties": {
- "albumName": {
+ "name": {
"type": "string"
- },
- "sharedWithUserIds": {
- "type": "array",
- "items": {
- "type": "string",
- "format": "uuid"
- }
- },
- "assetIds": {
- "type": "array",
- "items": {
- "type": "string",
- "format": "uuid"
- }
}
- },
- "required": [
- "albumName"
- ]
+ }
},
- "UpdateAlbumDto": {
+ "APIKeyCreateResponseDto": {
"type": "object",
"properties": {
- "albumName": {
+ "secret": {
"type": "string"
},
- "albumThumbnailAssetId": {
- "type": "string",
- "format": "uuid"
- }
- }
- },
- "AddUsersDto": {
- "type": "object",
- "properties": {
- "sharedUserIds": {
- "type": "array",
- "items": {
- "type": "string",
- "format": "uuid"
- }
+ "apiKey": {
+ "$ref": "#/components/schemas/APIKeyResponseDto"
}
},
"required": [
- "sharedUserIds"
+ "secret",
+ "apiKey"
]
},
- "APIKeyCreateDto": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
- }
- }
- },
"APIKeyResponseDto": {
"type": "object",
"properties": {
@@ -4826,21 +4385,6 @@
"updatedAt"
]
},
- "APIKeyCreateResponseDto": {
- "type": "object",
- "properties": {
- "secret": {
- "type": "string"
- },
- "apiKey": {
- "$ref": "#/components/schemas/APIKeyResponseDto"
- }
- },
- "required": [
- "secret",
- "apiKey"
- ]
- },
"APIKeyUpdateDto": {
"type": "object",
"properties": {
@@ -4852,116 +4396,55 @@
"name"
]
},
- "MapMarkerResponseDto": {
- "type": "object",
- "properties": {
- "id": {
- "type": "string"
- },
- "lat": {
- "type": "number",
- "format": "double"
- },
- "lon": {
- "type": "number",
- "format": "double"
- }
- },
- "required": [
- "id",
- "lat",
- "lon"
- ]
- },
- "LoginCredentialDto": {
+ "AddAssetsDto": {
"type": "object",
"properties": {
- "email": {
- "type": "string",
- "example": "[email protected]"
- },
- "password": {
- "type": "string",
- "example": "password"
+ "assetIds": {
+ "type": "array",
+ "items": {
+ "type": "string",
+ "format": "uuid"
+ }
}
},
"required": [
- "email",
- "password"
+ "assetIds"
]
},
- "LoginResponseDto": {
+ "AddAssetsResponseDto": {
"type": "object",
"properties": {
- "accessToken": {
- "type": "string",
- "readOnly": true
- },
- "userId": {
- "type": "string",
- "readOnly": true
- },
- "userEmail": {
- "type": "string",
- "readOnly": true
- },
- "firstName": {
- "type": "string",
- "readOnly": true
- },
- "lastName": {
- "type": "string",
- "readOnly": true
- },
- "profileImagePath": {
- "type": "string",
- "readOnly": true
+ "successfullyAdded": {
+ "type": "integer"
},
- "isAdmin": {
- "type": "boolean",
- "readOnly": true
+ "alreadyInAlbum": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
- "shouldChangePassword": {
- "type": "boolean",
- "readOnly": true
+ "album": {
+ "$ref": "#/components/schemas/AlbumResponseDto"
}
},
"required": [
- "accessToken",
- "userId",
- "userEmail",
- "firstName",
- "lastName",
- "profileImagePath",
- "isAdmin",
- "shouldChangePassword"
+ "successfullyAdded",
+ "alreadyInAlbum"
]
},
- "SignUpDto": {
+ "AddUsersDto": {
"type": "object",
"properties": {
- "email": {
- "type": "string",
- "example": "[email protected]"
- },
- "password": {
- "type": "string",
- "example": "password"
- },
- "firstName": {
- "type": "string",
- "example": "Admin"
- },
- "lastName": {
- "type": "string",
- "example": "Doe"
+ "sharedUserIds": {
+ "type": "array",
+ "items": {
+ "type": "string",
+ "format": "uuid"
+ }
}
},
"required": [
- "email",
- "password",
- "firstName",
- "lastName"
+ "sharedUserIds"
]
},
"AdminSignupResponseDto": {
@@ -4992,629 +4475,865 @@
"createdAt"
]
},
- "AuthDeviceResponseDto": {
+ "AlbumCountResponseDto": {
+ "type": "object",
+ "properties": {
+ "owned": {
+ "type": "integer"
+ },
+ "shared": {
+ "type": "integer"
+ },
+ "sharing": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "owned",
+ "shared",
+ "sharing"
+ ]
+ },
+ "AlbumResponseDto": {
"type": "object",
"properties": {
+ "assetCount": {
+ "type": "integer"
+ },
"id": {
"type": "string"
},
+ "ownerId": {
+ "type": "string"
+ },
+ "albumName": {
+ "type": "string"
+ },
"createdAt": {
+ "format": "date-time",
"type": "string"
},
"updatedAt": {
+ "format": "date-time",
"type": "string"
},
- "current": {
+ "albumThumbnailAssetId": {
+ "type": "string",
+ "nullable": true
+ },
+ "shared": {
"type": "boolean"
},
- "deviceType": {
- "type": "string"
+ "sharedUsers": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/UserResponseDto"
+ }
},
- "deviceOS": {
- "type": "string"
+ "assets": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/AssetResponseDto"
+ }
+ },
+ "owner": {
+ "$ref": "#/components/schemas/UserResponseDto"
}
},
"required": [
+ "assetCount",
"id",
+ "ownerId",
+ "albumName",
"createdAt",
"updatedAt",
- "current",
- "deviceType",
- "deviceOS"
+ "albumThumbnailAssetId",
+ "shared",
+ "sharedUsers",
+ "assets",
+ "owner"
]
},
- "ValidateAccessTokenResponseDto": {
+ "AllJobStatusResponseDto": {
"type": "object",
"properties": {
- "authStatus": {
- "type": "boolean"
+ "thumbnailGeneration": {
+ "$ref": "#/components/schemas/JobStatusDto"
+ },
+ "metadataExtraction": {
+ "$ref": "#/components/schemas/JobStatusDto"
+ },
+ "videoConversion": {
+ "$ref": "#/components/schemas/JobStatusDto"
+ },
+ "objectTagging": {
+ "$ref": "#/components/schemas/JobStatusDto"
+ },
+ "clipEncoding": {
+ "$ref": "#/components/schemas/JobStatusDto"
+ },
+ "storageTemplateMigration": {
+ "$ref": "#/components/schemas/JobStatusDto"
+ },
+ "backgroundTask": {
+ "$ref": "#/components/schemas/JobStatusDto"
+ },
+ "search": {
+ "$ref": "#/components/schemas/JobStatusDto"
+ },
+ "recognizeFaces": {
+ "$ref": "#/components/schemas/JobStatusDto"
+ },
+ "sidecar": {
+ "$ref": "#/components/schemas/JobStatusDto"
+ }
+ },
+ "required": [
+ "thumbnailGeneration",
+ "metadataExtraction",
+ "videoConversion",
+ "objectTagging",
+ "clipEncoding",
+ "storageTemplateMigration",
+ "backgroundTask",
+ "search",
+ "recognizeFaces",
+ "sidecar"
+ ]
+ },
+ "AssetBulkUploadCheckDto": {
+ "type": "object",
+ "properties": {
+ "assets": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/AssetBulkUploadCheckItem"
+ }
+ }
+ },
+ "required": [
+ "assets"
+ ]
+ },
+ "AssetBulkUploadCheckItem": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "checksum": {
+ "type": "string",
+ "description": "base64 or hex encoded sha1 hash"
+ }
+ },
+ "required": [
+ "id",
+ "checksum"
+ ]
+ },
+ "AssetBulkUploadCheckResponseDto": {
+ "type": "object",
+ "properties": {
+ "results": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/AssetBulkUploadCheckResult"
+ }
+ }
+ },
+ "required": [
+ "results"
+ ]
+ },
+ "AssetBulkUploadCheckResult": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "action": {
+ "type": "string",
+ "enum": [
+ "accept",
+ "reject"
+ ]
+ },
+ "reason": {
+ "type": "string",
+ "enum": [
+ "duplicate",
+ "unsupported-format"
+ ]
+ },
+ "assetId": {
+ "type": "string"
}
},
"required": [
- "authStatus"
+ "id",
+ "action"
]
},
- "ChangePasswordDto": {
+ "AssetCountByTimeBucket": {
"type": "object",
"properties": {
- "password": {
- "type": "string",
- "example": "password"
+ "timeBucket": {
+ "type": "string"
},
- "newPassword": {
- "type": "string",
- "example": "password"
+ "count": {
+ "type": "integer"
}
},
"required": [
- "password",
- "newPassword"
+ "timeBucket",
+ "count"
]
},
- "LogoutResponseDto": {
+ "AssetCountByTimeBucketResponseDto": {
"type": "object",
"properties": {
- "successful": {
- "type": "boolean"
+ "totalCount": {
+ "type": "integer"
},
- "redirectUri": {
- "type": "string"
+ "buckets": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/AssetCountByTimeBucket"
+ }
}
},
"required": [
- "successful",
- "redirectUri"
+ "totalCount",
+ "buckets"
]
},
- "JobCountsDto": {
+ "AssetCountByUserIdResponseDto": {
"type": "object",
"properties": {
- "active": {
- "type": "integer"
- },
- "completed": {
- "type": "integer"
+ "audio": {
+ "type": "integer",
+ "default": 0
},
- "failed": {
- "type": "integer"
+ "photos": {
+ "type": "integer",
+ "default": 0
},
- "delayed": {
- "type": "integer"
+ "videos": {
+ "type": "integer",
+ "default": 0
},
- "waiting": {
- "type": "integer"
+ "other": {
+ "type": "integer",
+ "default": 0
},
- "paused": {
- "type": "integer"
+ "total": {
+ "type": "integer",
+ "default": 0
}
},
"required": [
- "active",
- "completed",
- "failed",
- "delayed",
- "waiting",
- "paused"
+ "audio",
+ "photos",
+ "videos",
+ "other",
+ "total"
]
},
- "QueueStatusDto": {
+ "AssetFileUploadResponseDto": {
"type": "object",
"properties": {
- "isActive": {
- "type": "boolean"
+ "id": {
+ "type": "string"
},
- "isPaused": {
+ "duplicate": {
"type": "boolean"
}
},
"required": [
- "isActive",
- "isPaused"
+ "id",
+ "duplicate"
]
},
- "JobStatusDto": {
+ "AssetIdsDto": {
"type": "object",
"properties": {
- "jobCounts": {
- "$ref": "#/components/schemas/JobCountsDto"
+ "assetIds": {
+ "type": "array",
+ "items": {
+ "type": "string",
+ "format": "uuid"
+ }
+ }
+ },
+ "required": [
+ "assetIds"
+ ]
+ },
+ "AssetIdsResponseDto": {
+ "type": "object",
+ "properties": {
+ "assetId": {
+ "type": "string"
},
- "queueStatus": {
- "$ref": "#/components/schemas/QueueStatusDto"
+ "success": {
+ "type": "boolean"
+ },
+ "error": {
+ "enum": [
+ "duplicate",
+ "no_permission",
+ "not_found"
+ ],
+ "type": "string"
}
},
"required": [
- "jobCounts",
- "queueStatus"
+ "assetId",
+ "success"
]
},
- "AllJobStatusResponseDto": {
+ "AssetResponseDto": {
"type": "object",
"properties": {
- "thumbnailGeneration": {
- "$ref": "#/components/schemas/JobStatusDto"
+ "type": {
+ "$ref": "#/components/schemas/AssetTypeEnum"
},
- "metadataExtraction": {
- "$ref": "#/components/schemas/JobStatusDto"
+ "id": {
+ "type": "string"
},
- "videoConversion": {
- "$ref": "#/components/schemas/JobStatusDto"
+ "deviceAssetId": {
+ "type": "string"
},
- "objectTagging": {
- "$ref": "#/components/schemas/JobStatusDto"
+ "ownerId": {
+ "type": "string"
},
- "clipEncoding": {
- "$ref": "#/components/schemas/JobStatusDto"
+ "deviceId": {
+ "type": "string"
},
- "storageTemplateMigration": {
- "$ref": "#/components/schemas/JobStatusDto"
+ "originalPath": {
+ "type": "string"
},
- "backgroundTask": {
- "$ref": "#/components/schemas/JobStatusDto"
+ "originalFileName": {
+ "type": "string"
},
- "search": {
- "$ref": "#/components/schemas/JobStatusDto"
+ "resized": {
+ "type": "boolean"
},
- "recognizeFaces": {
- "$ref": "#/components/schemas/JobStatusDto"
+ "fileCreatedAt": {
+ "format": "date-time",
+ "type": "string"
},
- "sidecar": {
- "$ref": "#/components/schemas/JobStatusDto"
+ "fileModifiedAt": {
+ "format": "date-time",
+ "type": "string"
+ },
+ "updatedAt": {
+ "format": "date-time",
+ "type": "string"
+ },
+ "isFavorite": {
+ "type": "boolean"
+ },
+ "isArchived": {
+ "type": "boolean"
+ },
+ "mimeType": {
+ "type": "string",
+ "nullable": true
+ },
+ "duration": {
+ "type": "string"
+ },
+ "exifInfo": {
+ "$ref": "#/components/schemas/ExifResponseDto"
+ },
+ "smartInfo": {
+ "$ref": "#/components/schemas/SmartInfoResponseDto"
+ },
+ "livePhotoVideoId": {
+ "type": "string",
+ "nullable": true
+ },
+ "tags": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/TagResponseDto"
+ }
+ },
+ "people": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/PersonResponseDto"
+ }
+ },
+ "checksum": {
+ "type": "string",
+ "description": "base64 encoded sha1 hash"
}
},
"required": [
- "thumbnailGeneration",
- "metadataExtraction",
- "videoConversion",
- "objectTagging",
- "clipEncoding",
- "storageTemplateMigration",
- "backgroundTask",
- "search",
- "recognizeFaces",
- "sidecar"
- ]
- },
- "JobName": {
- "type": "string",
- "enum": [
- "thumbnailGeneration",
- "metadataExtraction",
- "videoConversion",
- "objectTagging",
- "recognizeFaces",
- "clipEncoding",
- "backgroundTask",
- "storageTemplateMigration",
- "search",
- "sidecar"
+ "type",
+ "id",
+ "deviceAssetId",
+ "ownerId",
+ "deviceId",
+ "originalPath",
+ "originalFileName",
+ "resized",
+ "fileCreatedAt",
+ "fileModifiedAt",
+ "updatedAt",
+ "isFavorite",
+ "isArchived",
+ "mimeType",
+ "duration",
+ "checksum"
]
},
- "JobCommand": {
+ "AssetTypeEnum": {
"type": "string",
"enum": [
- "start",
- "pause",
- "resume",
- "empty"
+ "IMAGE",
+ "VIDEO",
+ "AUDIO",
+ "OTHER"
]
},
- "JobCommandDto": {
+ "AuthDeviceResponseDto": {
"type": "object",
"properties": {
- "command": {
- "$ref": "#/components/schemas/JobCommand"
+ "id": {
+ "type": "string"
},
- "force": {
+ "createdAt": {
+ "type": "string"
+ },
+ "updatedAt": {
+ "type": "string"
+ },
+ "current": {
"type": "boolean"
+ },
+ "deviceType": {
+ "type": "string"
+ },
+ "deviceOS": {
+ "type": "string"
}
},
"required": [
- "command",
- "force"
+ "id",
+ "createdAt",
+ "updatedAt",
+ "current",
+ "deviceType",
+ "deviceOS"
]
},
- "OAuthConfigDto": {
+ "ChangePasswordDto": {
"type": "object",
"properties": {
- "redirectUri": {
- "type": "string"
+ "password": {
+ "type": "string",
+ "example": "password"
+ },
+ "newPassword": {
+ "type": "string",
+ "example": "password"
}
},
"required": [
- "redirectUri"
+ "password",
+ "newPassword"
]
},
- "OAuthConfigResponseDto": {
+ "CheckDuplicateAssetDto": {
"type": "object",
"properties": {
- "enabled": {
- "type": "boolean"
- },
- "passwordLoginEnabled": {
- "type": "boolean"
- },
- "url": {
+ "deviceAssetId": {
"type": "string"
},
- "buttonText": {
+ "deviceId": {
"type": "string"
- },
- "autoLaunch": {
- "type": "boolean"
}
},
"required": [
- "enabled",
- "passwordLoginEnabled"
+ "deviceAssetId",
+ "deviceId"
]
},
- "OAuthCallbackDto": {
+ "CheckDuplicateAssetResponseDto": {
"type": "object",
"properties": {
- "url": {
+ "isExist": {
+ "type": "boolean"
+ },
+ "id": {
"type": "string"
}
},
"required": [
- "url"
+ "isExist"
]
},
- "SearchFacetCountResponseDto": {
+ "CheckExistingAssetsDto": {
"type": "object",
"properties": {
- "count": {
- "type": "integer"
+ "deviceAssetIds": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
- "value": {
+ "deviceId": {
"type": "string"
}
},
"required": [
- "count",
- "value"
+ "deviceAssetIds",
+ "deviceId"
]
},
- "SearchFacetResponseDto": {
+ "CheckExistingAssetsResponseDto": {
"type": "object",
"properties": {
- "fieldName": {
- "type": "string"
- },
- "counts": {
+ "existingIds": {
"type": "array",
"items": {
- "$ref": "#/components/schemas/SearchFacetCountResponseDto"
+ "type": "string"
}
}
},
"required": [
- "fieldName",
- "counts"
+ "existingIds"
]
},
- "SearchAlbumResponseDto": {
+ "CreateAlbumDto": {
"type": "object",
"properties": {
- "total": {
- "type": "integer"
- },
- "count": {
- "type": "integer"
+ "albumName": {
+ "type": "string"
},
- "items": {
+ "sharedWithUserIds": {
"type": "array",
"items": {
- "$ref": "#/components/schemas/AlbumResponseDto"
+ "type": "string",
+ "format": "uuid"
}
},
- "facets": {
+ "assetIds": {
"type": "array",
"items": {
- "$ref": "#/components/schemas/SearchFacetResponseDto"
+ "type": "string",
+ "format": "uuid"
}
}
},
"required": [
- "total",
- "count",
- "items",
- "facets"
+ "albumName"
]
},
- "SearchAssetResponseDto": {
+ "CreateAlbumShareLinkDto": {
"type": "object",
"properties": {
- "total": {
- "type": "integer"
+ "albumId": {
+ "type": "string",
+ "format": "uuid"
},
- "count": {
- "type": "integer"
+ "expiresAt": {
+ "format": "date-time",
+ "type": "string"
},
- "items": {
- "type": "array",
- "items": {
- "$ref": "#/components/schemas/AssetResponseDto"
- }
+ "allowUpload": {
+ "type": "boolean"
},
- "facets": {
- "type": "array",
- "items": {
- "$ref": "#/components/schemas/SearchFacetResponseDto"
- }
+ "allowDownload": {
+ "type": "boolean"
+ },
+ "showExif": {
+ "type": "boolean"
+ },
+ "description": {
+ "type": "string"
}
},
"required": [
- "total",
- "count",
- "items",
- "facets"
+ "albumId"
]
},
- "SearchResponseDto": {
+ "CreateAssetDto": {
"type": "object",
"properties": {
- "albums": {
- "$ref": "#/components/schemas/SearchAlbumResponseDto"
+ "assetType": {
+ "$ref": "#/components/schemas/AssetTypeEnum"
+ },
+ "assetData": {
+ "type": "string",
+ "format": "binary"
+ },
+ "livePhotoData": {
+ "type": "string",
+ "format": "binary"
+ },
+ "sidecarData": {
+ "type": "string",
+ "format": "binary"
+ },
+ "deviceAssetId": {
+ "type": "string"
+ },
+ "deviceId": {
+ "type": "string"
+ },
+ "fileCreatedAt": {
+ "format": "date-time",
+ "type": "string"
+ },
+ "fileModifiedAt": {
+ "format": "date-time",
+ "type": "string"
+ },
+ "isFavorite": {
+ "type": "boolean"
+ },
+ "isArchived": {
+ "type": "boolean"
+ },
+ "isVisible": {
+ "type": "boolean"
+ },
+ "fileExtension": {
+ "type": "string"
+ },
+ "duration": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "assetType",
+ "assetData",
+ "deviceAssetId",
+ "deviceId",
+ "fileCreatedAt",
+ "fileModifiedAt",
+ "isFavorite",
+ "fileExtension"
+ ]
+ },
+ "CreateAssetsShareLinkDto": {
+ "type": "object",
+ "properties": {
+ "assetIds": {
+ "title": "Array asset IDs to be shared",
+ "example": [
+ "bf973405-3f2a-48d2-a687-2ed4167164be",
+ "dd41870b-5d00-46d2-924e-1d8489a0aa0f",
+ "fad77c3f-deef-4e7e-9608-14c1aa4e559a"
+ ],
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "expiresAt": {
+ "format": "date-time",
+ "type": "string"
+ },
+ "allowUpload": {
+ "type": "boolean"
+ },
+ "allowDownload": {
+ "type": "boolean"
+ },
+ "showExif": {
+ "type": "boolean"
},
- "assets": {
- "$ref": "#/components/schemas/SearchAssetResponseDto"
+ "description": {
+ "type": "string"
}
},
"required": [
- "albums",
- "assets"
+ "assetIds"
]
},
- "SearchConfigResponseDto": {
+ "CreateProfileImageDto": {
"type": "object",
"properties": {
- "enabled": {
- "type": "boolean"
+ "file": {
+ "type": "string",
+ "format": "binary"
}
},
"required": [
- "enabled"
+ "file"
]
},
- "SearchExploreItem": {
+ "CreateProfileImageResponseDto": {
"type": "object",
"properties": {
- "value": {
+ "userId": {
"type": "string"
},
- "data": {
- "$ref": "#/components/schemas/AssetResponseDto"
+ "profileImagePath": {
+ "type": "string"
}
},
"required": [
- "value",
- "data"
+ "userId",
+ "profileImagePath"
]
},
- "SearchExploreResponseDto": {
+ "CreateTagDto": {
"type": "object",
"properties": {
- "fieldName": {
- "type": "string"
+ "type": {
+ "$ref": "#/components/schemas/TagTypeEnum"
},
- "items": {
- "type": "array",
- "items": {
- "$ref": "#/components/schemas/SearchExploreItem"
- }
+ "name": {
+ "type": "string"
}
},
"required": [
- "fieldName",
- "items"
+ "type",
+ "name"
]
},
- "ServerInfoResponseDto": {
+ "CreateUserDto": {
"type": "object",
"properties": {
- "diskSizeRaw": {
- "type": "integer",
- "format": "int64"
- },
- "diskUseRaw": {
- "type": "integer",
- "format": "int64"
- },
- "diskAvailableRaw": {
- "type": "integer",
- "format": "int64"
- },
- "diskUsagePercentage": {
- "type": "number",
- "format": "float"
+ "email": {
+ "type": "string"
},
- "diskSize": {
+ "password": {
"type": "string"
},
- "diskUse": {
+ "firstName": {
"type": "string"
},
- "diskAvailable": {
+ "lastName": {
"type": "string"
- }
- },
- "required": [
- "diskSizeRaw",
- "diskUseRaw",
- "diskAvailableRaw",
- "diskUsagePercentage",
- "diskSize",
- "diskUse",
- "diskAvailable"
- ]
- },
- "ServerPingResponse": {
- "type": "object",
- "properties": {
- "res": {
+ },
+ "storageLabel": {
"type": "string",
- "readOnly": true,
- "example": "pong"
+ "nullable": true
}
},
"required": [
- "res"
+ "email",
+ "password",
+ "firstName",
+ "lastName"
]
},
- "ServerVersionReponseDto": {
+ "CuratedLocationsResponseDto": {
"type": "object",
"properties": {
- "major": {
- "type": "integer"
+ "id": {
+ "type": "string"
},
- "minor": {
- "type": "integer"
+ "city": {
+ "type": "string"
},
- "patch": {
- "type": "integer"
+ "resizePath": {
+ "type": "string"
+ },
+ "deviceAssetId": {
+ "type": "string"
+ },
+ "deviceId": {
+ "type": "string"
}
},
"required": [
- "major",
- "minor",
- "patch"
+ "id",
+ "city",
+ "resizePath",
+ "deviceAssetId",
+ "deviceId"
]
},
- "UsageByUserDto": {
+ "CuratedObjectsResponseDto": {
"type": "object",
"properties": {
- "userId": {
+ "id": {
"type": "string"
},
- "userFirstName": {
+ "object": {
"type": "string"
},
- "userLastName": {
+ "resizePath": {
"type": "string"
},
- "photos": {
- "type": "integer"
- },
- "videos": {
- "type": "integer"
+ "deviceAssetId": {
+ "type": "string"
},
- "usage": {
- "type": "integer",
- "format": "int64"
+ "deviceId": {
+ "type": "string"
}
},
"required": [
- "userId",
- "userFirstName",
- "userLastName",
- "photos",
- "videos",
- "usage"
+ "id",
+ "object",
+ "resizePath",
+ "deviceAssetId",
+ "deviceId"
]
},
- "ServerStatsResponseDto": {
+ "DeleteAssetDto": {
"type": "object",
"properties": {
- "photos": {
- "type": "integer",
- "default": 0
- },
- "videos": {
- "type": "integer",
- "default": 0
- },
- "usage": {
- "type": "integer",
- "default": 0,
- "format": "int64"
- },
- "usageByUser": {
- "default": [],
- "title": "Array of usage for each user",
+ "ids": {
+ "title": "Array of asset IDs to delete",
"example": [
- {
- "photos": 1,
- "videos": 1,
- "diskUsageRaw": 1
- }
+ "bf973405-3f2a-48d2-a687-2ed4167164be",
+ "dd41870b-5d00-46d2-924e-1d8489a0aa0f",
+ "fad77c3f-deef-4e7e-9608-14c1aa4e559a"
],
"type": "array",
"items": {
- "$ref": "#/components/schemas/UsageByUserDto"
+ "type": "string"
}
}
},
"required": [
- "photos",
- "videos",
- "usage",
- "usageByUser"
+ "ids"
]
},
- "SharedLinkType": {
+ "DeleteAssetResponseDto": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "$ref": "#/components/schemas/DeleteAssetStatus"
+ },
+ "id": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "status",
+ "id"
+ ]
+ },
+ "DeleteAssetStatus": {
"type": "string",
"enum": [
- "ALBUM",
- "INDIVIDUAL"
+ "SUCCESS",
+ "FAILED"
]
},
- "SharedLinkResponseDto": {
+ "DownloadFilesDto": {
"type": "object",
"properties": {
- "type": {
- "$ref": "#/components/schemas/SharedLinkType"
- },
- "id": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "userId": {
- "type": "string"
- },
- "key": {
- "type": "string"
- },
- "createdAt": {
- "format": "date-time",
- "type": "string"
- },
- "expiresAt": {
- "format": "date-time",
- "type": "string",
- "nullable": true
- },
- "assets": {
- "type": "array",
- "items": {
- "$ref": "#/components/schemas/AssetResponseDto"
- }
- },
- "album": {
- "$ref": "#/components/schemas/AlbumResponseDto"
- },
- "allowUpload": {
- "type": "boolean"
- },
- "allowDownload": {
- "type": "boolean"
- },
- "showExif": {
- "type": "boolean"
+ "assetIds": {
+ "title": "Array of asset ids to be downloaded",
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
}
},
"required": [
- "type",
- "id",
- "userId",
- "key",
- "createdAt",
- "expiresAt",
- "assets",
- "allowUpload",
- "allowDownload",
- "showExif"
+ "assetIds"
]
},
"EditSharedLinkDto": {
@@ -5639,662 +5358,679 @@
}
}
},
- "SystemConfigFFmpegDto": {
+ "ExifResponseDto": {
"type": "object",
"properties": {
- "crf": {
- "type": "integer"
+ "fileSizeInByte": {
+ "type": "integer",
+ "nullable": true,
+ "default": null,
+ "format": "int64"
},
- "threads": {
- "type": "integer"
+ "make": {
+ "type": "string",
+ "nullable": true,
+ "default": null
},
- "preset": {
- "type": "string"
+ "model": {
+ "type": "string",
+ "nullable": true,
+ "default": null
},
- "targetVideoCodec": {
- "type": "string"
+ "exifImageWidth": {
+ "type": "number",
+ "nullable": true,
+ "default": null
},
- "targetAudioCodec": {
- "type": "string"
+ "exifImageHeight": {
+ "type": "number",
+ "nullable": true,
+ "default": null
},
- "targetResolution": {
- "type": "string"
+ "orientation": {
+ "type": "string",
+ "nullable": true,
+ "default": null
},
- "maxBitrate": {
- "type": "string"
+ "dateTimeOriginal": {
+ "format": "date-time",
+ "type": "string",
+ "nullable": true,
+ "default": null
},
- "twoPass": {
- "type": "boolean"
+ "modifyDate": {
+ "format": "date-time",
+ "type": "string",
+ "nullable": true,
+ "default": null
},
- "transcode": {
+ "timeZone": {
"type": "string",
- "enum": [
- "all",
- "optimal",
- "required",
- "disabled"
- ]
+ "nullable": true,
+ "default": null
+ },
+ "lensModel": {
+ "type": "string",
+ "nullable": true,
+ "default": null
+ },
+ "fNumber": {
+ "type": "number",
+ "nullable": true,
+ "default": null
+ },
+ "focalLength": {
+ "type": "number",
+ "nullable": true,
+ "default": null
+ },
+ "iso": {
+ "type": "number",
+ "nullable": true,
+ "default": null
+ },
+ "exposureTime": {
+ "type": "string",
+ "nullable": true,
+ "default": null
+ },
+ "latitude": {
+ "type": "number",
+ "nullable": true,
+ "default": null
+ },
+ "longitude": {
+ "type": "number",
+ "nullable": true,
+ "default": null
+ },
+ "city": {
+ "type": "string",
+ "nullable": true,
+ "default": null
+ },
+ "state": {
+ "type": "string",
+ "nullable": true,
+ "default": null
+ },
+ "country": {
+ "type": "string",
+ "nullable": true,
+ "default": null
+ },
+ "description": {
+ "type": "string",
+ "nullable": true,
+ "default": null
+ }
+ }
+ },
+ "GetAssetByTimeBucketDto": {
+ "type": "object",
+ "properties": {
+ "timeBucket": {
+ "title": "Array of date time buckets",
+ "example": [
+ "2015-06-01T00:00:00.000Z",
+ "2016-02-01T00:00:00.000Z",
+ "2016-03-01T00:00:00.000Z"
+ ],
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "userId": {
+ "type": "string",
+ "format": "uuid"
+ },
+ "withoutThumbs": {
+ "type": "boolean",
+ "description": "Include assets without thumbnails"
}
},
"required": [
- "crf",
- "threads",
- "preset",
- "targetVideoCodec",
- "targetAudioCodec",
- "targetResolution",
- "maxBitrate",
- "twoPass",
- "transcode"
+ "timeBucket"
]
},
- "SystemConfigOAuthDto": {
+ "GetAssetCountByTimeBucketDto": {
"type": "object",
"properties": {
- "enabled": {
- "type": "boolean"
- },
- "issuerUrl": {
- "type": "string"
+ "timeGroup": {
+ "$ref": "#/components/schemas/TimeGroupEnum"
},
- "clientId": {
- "type": "string"
+ "userId": {
+ "type": "string",
+ "format": "uuid"
},
- "clientSecret": {
- "type": "string"
+ "withoutThumbs": {
+ "type": "boolean",
+ "description": "Include assets without thumbnails"
+ }
+ },
+ "required": [
+ "timeGroup"
+ ]
+ },
+ "JobCommand": {
+ "type": "string",
+ "enum": [
+ "start",
+ "pause",
+ "resume",
+ "empty"
+ ]
+ },
+ "JobCommandDto": {
+ "type": "object",
+ "properties": {
+ "command": {
+ "$ref": "#/components/schemas/JobCommand"
},
- "scope": {
- "type": "string"
+ "force": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "command",
+ "force"
+ ]
+ },
+ "JobCountsDto": {
+ "type": "object",
+ "properties": {
+ "active": {
+ "type": "integer"
},
- "buttonText": {
- "type": "string"
+ "completed": {
+ "type": "integer"
},
- "autoRegister": {
- "type": "boolean"
+ "failed": {
+ "type": "integer"
},
- "autoLaunch": {
- "type": "boolean"
+ "delayed": {
+ "type": "integer"
},
- "mobileOverrideEnabled": {
- "type": "boolean"
+ "waiting": {
+ "type": "integer"
},
- "mobileRedirectUri": {
- "type": "string"
- }
- },
- "required": [
- "enabled",
- "issuerUrl",
- "clientId",
- "clientSecret",
- "scope",
- "buttonText",
- "autoRegister",
- "autoLaunch",
- "mobileOverrideEnabled",
- "mobileRedirectUri"
+ "paused": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "active",
+ "completed",
+ "failed",
+ "delayed",
+ "waiting",
+ "paused"
]
},
- "SystemConfigPasswordLoginDto": {
+ "JobName": {
+ "type": "string",
+ "enum": [
+ "thumbnailGeneration",
+ "metadataExtraction",
+ "videoConversion",
+ "objectTagging",
+ "recognizeFaces",
+ "clipEncoding",
+ "backgroundTask",
+ "storageTemplateMigration",
+ "search",
+ "sidecar"
+ ]
+ },
+ "JobSettingsDto": {
"type": "object",
"properties": {
- "enabled": {
- "type": "boolean"
+ "concurrency": {
+ "type": "integer"
}
},
"required": [
- "enabled"
+ "concurrency"
]
},
- "SystemConfigStorageTemplateDto": {
+ "JobStatusDto": {
"type": "object",
"properties": {
- "template": {
- "type": "string"
+ "jobCounts": {
+ "$ref": "#/components/schemas/JobCountsDto"
+ },
+ "queueStatus": {
+ "$ref": "#/components/schemas/QueueStatusDto"
}
},
"required": [
- "template"
+ "jobCounts",
+ "queueStatus"
]
},
- "JobSettingsDto": {
+ "LoginCredentialDto": {
"type": "object",
"properties": {
- "concurrency": {
- "type": "integer"
+ "email": {
+ "type": "string",
+ "example": "[email protected]"
+ },
+ "password": {
+ "type": "string",
+ "example": "password"
}
},
"required": [
- "concurrency"
+ "email",
+ "password"
]
},
- "SystemConfigJobDto": {
+ "LoginResponseDto": {
"type": "object",
"properties": {
- "thumbnailGeneration": {
- "$ref": "#/components/schemas/JobSettingsDto"
- },
- "metadataExtraction": {
- "$ref": "#/components/schemas/JobSettingsDto"
- },
- "videoConversion": {
- "$ref": "#/components/schemas/JobSettingsDto"
+ "accessToken": {
+ "type": "string",
+ "readOnly": true
},
- "objectTagging": {
- "$ref": "#/components/schemas/JobSettingsDto"
+ "userId": {
+ "type": "string",
+ "readOnly": true
},
- "clipEncoding": {
- "$ref": "#/components/schemas/JobSettingsDto"
+ "userEmail": {
+ "type": "string",
+ "readOnly": true
},
- "storageTemplateMigration": {
- "$ref": "#/components/schemas/JobSettingsDto"
+ "firstName": {
+ "type": "string",
+ "readOnly": true
},
- "backgroundTask": {
- "$ref": "#/components/schemas/JobSettingsDto"
+ "lastName": {
+ "type": "string",
+ "readOnly": true
},
- "search": {
- "$ref": "#/components/schemas/JobSettingsDto"
+ "profileImagePath": {
+ "type": "string",
+ "readOnly": true
},
- "recognizeFaces": {
- "$ref": "#/components/schemas/JobSettingsDto"
+ "isAdmin": {
+ "type": "boolean",
+ "readOnly": true
},
- "sidecar": {
- "$ref": "#/components/schemas/JobSettingsDto"
+ "shouldChangePassword": {
+ "type": "boolean",
+ "readOnly": true
}
},
"required": [
- "thumbnailGeneration",
- "metadataExtraction",
- "videoConversion",
- "objectTagging",
- "clipEncoding",
- "storageTemplateMigration",
- "backgroundTask",
- "search",
- "recognizeFaces",
- "sidecar"
+ "accessToken",
+ "userId",
+ "userEmail",
+ "firstName",
+ "lastName",
+ "profileImagePath",
+ "isAdmin",
+ "shouldChangePassword"
]
},
- "SystemConfigDto": {
+ "LogoutResponseDto": {
"type": "object",
"properties": {
- "ffmpeg": {
- "$ref": "#/components/schemas/SystemConfigFFmpegDto"
- },
- "oauth": {
- "$ref": "#/components/schemas/SystemConfigOAuthDto"
- },
- "passwordLogin": {
- "$ref": "#/components/schemas/SystemConfigPasswordLoginDto"
- },
- "storageTemplate": {
- "$ref": "#/components/schemas/SystemConfigStorageTemplateDto"
+ "successful": {
+ "type": "boolean"
},
- "job": {
- "$ref": "#/components/schemas/SystemConfigJobDto"
+ "redirectUri": {
+ "type": "string"
}
},
"required": [
- "ffmpeg",
- "oauth",
- "passwordLogin",
- "storageTemplate",
- "job"
+ "successful",
+ "redirectUri"
]
},
- "SystemConfigTemplateStorageOptionDto": {
+ "MapMarkerResponseDto": {
"type": "object",
"properties": {
- "yearOptions": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "monthOptions": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "dayOptions": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "hourOptions": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "minuteOptions": {
- "type": "array",
- "items": {
- "type": "string"
- }
+ "id": {
+ "type": "string"
},
- "secondOptions": {
- "type": "array",
- "items": {
- "type": "string"
- }
+ "lat": {
+ "type": "number",
+ "format": "double"
},
- "presetOptions": {
- "type": "array",
- "items": {
- "type": "string"
- }
+ "lon": {
+ "type": "number",
+ "format": "double"
}
},
"required": [
- "yearOptions",
- "monthOptions",
- "dayOptions",
- "hourOptions",
- "minuteOptions",
- "secondOptions",
- "presetOptions"
+ "id",
+ "lat",
+ "lon"
]
},
- "CreateTagDto": {
+ "OAuthCallbackDto": {
"type": "object",
"properties": {
- "type": {
- "$ref": "#/components/schemas/TagTypeEnum"
- },
- "name": {
+ "url": {
"type": "string"
}
},
"required": [
- "type",
- "name"
+ "url"
]
},
- "UpdateTagDto": {
+ "OAuthConfigDto": {
"type": "object",
"properties": {
- "name": {
+ "redirectUri": {
"type": "string"
}
- }
- },
- "AssetIdsDto": {
- "type": "object",
- "properties": {
- "assetIds": {
- "type": "array",
- "items": {
- "type": "string",
- "format": "uuid"
- }
- }
},
"required": [
- "assetIds"
+ "redirectUri"
]
},
- "AssetIdsResponseDto": {
+ "OAuthConfigResponseDto": {
"type": "object",
"properties": {
- "assetId": {
- "type": "string"
+ "enabled": {
+ "type": "boolean"
},
- "success": {
+ "passwordLoginEnabled": {
"type": "boolean"
},
- "error": {
- "enum": [
- "duplicate",
- "no_permission",
- "not_found"
- ],
+ "url": {
+ "type": "string"
+ },
+ "buttonText": {
"type": "string"
+ },
+ "autoLaunch": {
+ "type": "boolean"
}
},
"required": [
- "assetId",
- "success"
+ "enabled",
+ "passwordLoginEnabled"
]
},
- "CreateUserDto": {
+ "PersonResponseDto": {
"type": "object",
"properties": {
- "email": {
- "type": "string"
- },
- "password": {
+ "id": {
"type": "string"
},
- "firstName": {
+ "name": {
"type": "string"
},
- "lastName": {
+ "thumbnailPath": {
"type": "string"
- },
- "storageLabel": {
- "type": "string",
- "nullable": true
}
},
"required": [
- "email",
- "password",
- "firstName",
- "lastName"
+ "id",
+ "name",
+ "thumbnailPath"
]
},
- "UserCountResponseDto": {
+ "PersonUpdateDto": {
"type": "object",
"properties": {
- "userCount": {
- "type": "integer"
+ "name": {
+ "type": "string"
}
},
"required": [
- "userCount"
+ "name"
]
},
- "UpdateUserDto": {
+ "QueueStatusDto": {
"type": "object",
"properties": {
- "id": {
- "type": "string",
- "format": "uuid"
- },
- "email": {
- "type": "string"
- },
- "password": {
- "type": "string"
- },
- "firstName": {
- "type": "string"
- },
- "lastName": {
- "type": "string"
- },
- "storageLabel": {
- "type": "string"
- },
- "isAdmin": {
+ "isActive": {
"type": "boolean"
},
- "shouldChangePassword": {
+ "isPaused": {
"type": "boolean"
}
},
"required": [
- "id"
+ "isActive",
+ "isPaused"
]
},
- "CreateProfileImageDto": {
+ "RemoveAssetsDto": {
"type": "object",
"properties": {
- "file": {
- "type": "string",
- "format": "binary"
+ "assetIds": {
+ "type": "array",
+ "items": {
+ "type": "string",
+ "format": "uuid"
+ }
}
},
"required": [
- "file"
+ "assetIds"
]
},
- "CreateProfileImageResponseDto": {
+ "SearchAlbumResponseDto": {
"type": "object",
"properties": {
- "userId": {
- "type": "string"
+ "total": {
+ "type": "integer"
},
- "profileImagePath": {
- "type": "string"
+ "count": {
+ "type": "integer"
+ },
+ "items": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/AlbumResponseDto"
+ }
+ },
+ "facets": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/SearchFacetResponseDto"
+ }
}
},
"required": [
- "userId",
- "profileImagePath"
+ "total",
+ "count",
+ "items",
+ "facets"
]
},
- "PersonUpdateDto": {
+ "SearchAssetDto": {
"type": "object",
"properties": {
- "name": {
+ "searchTerm": {
"type": "string"
}
},
"required": [
- "name"
+ "searchTerm"
]
},
- "CreateAssetDto": {
+ "SearchAssetResponseDto": {
"type": "object",
"properties": {
- "assetType": {
- "$ref": "#/components/schemas/AssetTypeEnum"
- },
- "assetData": {
- "type": "string",
- "format": "binary"
- },
- "livePhotoData": {
- "type": "string",
- "format": "binary"
- },
- "sidecarData": {
- "type": "string",
- "format": "binary"
- },
- "deviceAssetId": {
- "type": "string"
- },
- "deviceId": {
- "type": "string"
- },
- "fileCreatedAt": {
- "format": "date-time",
- "type": "string"
- },
- "fileModifiedAt": {
- "format": "date-time",
- "type": "string"
- },
- "isFavorite": {
- "type": "boolean"
- },
- "isArchived": {
- "type": "boolean"
+ "total": {
+ "type": "integer"
},
- "isVisible": {
- "type": "boolean"
+ "count": {
+ "type": "integer"
},
- "fileExtension": {
- "type": "string"
+ "items": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/AssetResponseDto"
+ }
},
- "duration": {
- "type": "string"
+ "facets": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/SearchFacetResponseDto"
+ }
}
},
"required": [
- "assetType",
- "assetData",
- "deviceAssetId",
- "deviceId",
- "fileCreatedAt",
- "fileModifiedAt",
- "isFavorite",
- "fileExtension"
+ "total",
+ "count",
+ "items",
+ "facets"
]
},
- "AssetFileUploadResponseDto": {
+ "SearchConfigResponseDto": {
"type": "object",
"properties": {
- "id": {
- "type": "string"
- },
- "duplicate": {
+ "enabled": {
"type": "boolean"
}
},
"required": [
- "id",
- "duplicate"
+ "enabled"
]
},
- "DownloadFilesDto": {
+ "SearchExploreItem": {
"type": "object",
"properties": {
- "assetIds": {
- "title": "Array of asset ids to be downloaded",
- "type": "array",
- "items": {
- "type": "string"
- }
+ "value": {
+ "type": "string"
+ },
+ "data": {
+ "$ref": "#/components/schemas/AssetResponseDto"
}
},
"required": [
- "assetIds"
- ]
- },
- "ThumbnailFormat": {
- "type": "string",
- "enum": [
- "JPEG",
- "WEBP"
+ "value",
+ "data"
]
},
- "CuratedObjectsResponseDto": {
+ "SearchExploreResponseDto": {
"type": "object",
"properties": {
- "id": {
- "type": "string"
- },
- "object": {
- "type": "string"
- },
- "resizePath": {
- "type": "string"
- },
- "deviceAssetId": {
+ "fieldName": {
"type": "string"
},
- "deviceId": {
- "type": "string"
+ "items": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/SearchExploreItem"
+ }
}
},
"required": [
- "id",
- "object",
- "resizePath",
- "deviceAssetId",
- "deviceId"
+ "fieldName",
+ "items"
]
},
- "CuratedLocationsResponseDto": {
+ "SearchFacetCountResponseDto": {
"type": "object",
"properties": {
- "id": {
- "type": "string"
- },
- "city": {
- "type": "string"
- },
- "resizePath": {
- "type": "string"
- },
- "deviceAssetId": {
- "type": "string"
+ "count": {
+ "type": "integer"
},
- "deviceId": {
+ "value": {
"type": "string"
}
},
"required": [
- "id",
- "city",
- "resizePath",
- "deviceAssetId",
- "deviceId"
+ "count",
+ "value"
]
},
- "SearchAssetDto": {
+ "SearchFacetResponseDto": {
"type": "object",
"properties": {
- "searchTerm": {
+ "fieldName": {
"type": "string"
+ },
+ "counts": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/SearchFacetCountResponseDto"
+ }
}
},
"required": [
- "searchTerm"
- ]
- },
- "TimeGroupEnum": {
- "type": "string",
- "enum": [
- "day",
- "month"
+ "fieldName",
+ "counts"
]
},
- "GetAssetCountByTimeBucketDto": {
+ "SearchResponseDto": {
"type": "object",
"properties": {
- "timeGroup": {
- "$ref": "#/components/schemas/TimeGroupEnum"
- },
- "userId": {
- "type": "string",
- "format": "uuid"
+ "albums": {
+ "$ref": "#/components/schemas/SearchAlbumResponseDto"
},
- "withoutThumbs": {
- "type": "boolean",
- "description": "Include assets without thumbnails"
+ "assets": {
+ "$ref": "#/components/schemas/SearchAssetResponseDto"
}
},
"required": [
- "timeGroup"
+ "albums",
+ "assets"
]
},
- "AssetCountByTimeBucket": {
+ "ServerInfoResponseDto": {
"type": "object",
"properties": {
- "timeBucket": {
+ "diskSizeRaw": {
+ "type": "integer",
+ "format": "int64"
+ },
+ "diskUseRaw": {
+ "type": "integer",
+ "format": "int64"
+ },
+ "diskAvailableRaw": {
+ "type": "integer",
+ "format": "int64"
+ },
+ "diskUsagePercentage": {
+ "type": "number",
+ "format": "float"
+ },
+ "diskSize": {
"type": "string"
},
- "count": {
- "type": "integer"
+ "diskUse": {
+ "type": "string"
+ },
+ "diskAvailable": {
+ "type": "string"
}
},
"required": [
- "timeBucket",
- "count"
+ "diskSizeRaw",
+ "diskUseRaw",
+ "diskAvailableRaw",
+ "diskUsagePercentage",
+ "diskSize",
+ "diskUse",
+ "diskAvailable"
]
},
- "AssetCountByTimeBucketResponseDto": {
+ "ServerPingResponse": {
"type": "object",
"properties": {
- "totalCount": {
- "type": "integer"
- },
- "buckets": {
- "type": "array",
- "items": {
- "$ref": "#/components/schemas/AssetCountByTimeBucket"
- }
+ "res": {
+ "type": "string",
+ "readOnly": true,
+ "example": "pong"
}
},
"required": [
- "totalCount",
- "buckets"
+ "res"
]
},
- "AssetCountByUserIdResponseDto": {
+ "ServerStatsResponseDto": {
"type": "object",
"properties": {
- "audio": {
- "type": "integer",
- "default": 0
- },
"photos": {
"type": "integer",
"default": 0
@@ -6303,258 +6039,475 @@
"type": "integer",
"default": 0
},
- "other": {
+ "usage": {
"type": "integer",
- "default": 0
+ "default": 0,
+ "format": "int64"
},
- "total": {
- "type": "integer",
- "default": 0
+ "usageByUser": {
+ "default": [],
+ "title": "Array of usage for each user",
+ "example": [
+ {
+ "photos": 1,
+ "videos": 1,
+ "diskUsageRaw": 1
+ }
+ ],
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/UsageByUserDto"
+ }
}
},
"required": [
- "audio",
"photos",
"videos",
- "other",
- "total"
+ "usage",
+ "usageByUser"
]
},
- "GetAssetByTimeBucketDto": {
+ "ServerVersionReponseDto": {
"type": "object",
"properties": {
- "timeBucket": {
- "title": "Array of date time buckets",
- "example": [
- "2015-06-01T00:00:00.000Z",
- "2016-02-01T00:00:00.000Z",
- "2016-03-01T00:00:00.000Z"
- ],
- "type": "array",
- "items": {
- "type": "string"
- }
+ "major": {
+ "type": "integer"
},
- "userId": {
- "type": "string",
- "format": "uuid"
+ "minor": {
+ "type": "integer"
},
- "withoutThumbs": {
- "type": "boolean",
- "description": "Include assets without thumbnails"
+ "patch": {
+ "type": "integer"
}
},
"required": [
- "timeBucket"
+ "major",
+ "minor",
+ "patch"
]
},
- "UpdateAssetDto": {
+ "SharedLinkResponseDto": {
"type": "object",
"properties": {
- "tagIds": {
- "title": "Array of tag IDs to add to the asset",
- "example": [
- "bf973405-3f2a-48d2-a687-2ed4167164be",
- "dd41870b-5d00-46d2-924e-1d8489a0aa0f",
- "fad77c3f-deef-4e7e-9608-14c1aa4e559a"
- ],
+ "type": {
+ "$ref": "#/components/schemas/SharedLinkType"
+ },
+ "id": {
+ "type": "string"
+ },
+ "description": {
+ "type": "string"
+ },
+ "userId": {
+ "type": "string"
+ },
+ "key": {
+ "type": "string"
+ },
+ "createdAt": {
+ "format": "date-time",
+ "type": "string"
+ },
+ "expiresAt": {
+ "format": "date-time",
+ "type": "string",
+ "nullable": true
+ },
+ "assets": {
"type": "array",
"items": {
- "type": "string"
+ "$ref": "#/components/schemas/AssetResponseDto"
}
},
- "isFavorite": {
+ "album": {
+ "$ref": "#/components/schemas/AlbumResponseDto"
+ },
+ "allowUpload": {
"type": "boolean"
},
- "isArchived": {
+ "allowDownload": {
"type": "boolean"
},
- "description": {
- "type": "string"
+ "showExif": {
+ "type": "boolean"
}
- }
+ },
+ "required": [
+ "type",
+ "id",
+ "userId",
+ "key",
+ "createdAt",
+ "expiresAt",
+ "assets",
+ "allowUpload",
+ "allowDownload",
+ "showExif"
+ ]
+ },
+ "SharedLinkType": {
+ "type": "string",
+ "enum": [
+ "ALBUM",
+ "INDIVIDUAL"
+ ]
+ },
+ "SignUpDto": {
+ "type": "object",
+ "properties": {
+ "email": {
+ "type": "string",
+ "example": "[email protected]"
+ },
+ "password": {
+ "type": "string",
+ "example": "password"
+ },
+ "firstName": {
+ "type": "string",
+ "example": "Admin"
+ },
+ "lastName": {
+ "type": "string",
+ "example": "Doe"
+ }
+ },
+ "required": [
+ "email",
+ "password",
+ "firstName",
+ "lastName"
+ ]
},
- "DeleteAssetDto": {
+ "SmartInfoResponseDto": {
"type": "object",
"properties": {
- "ids": {
- "title": "Array of asset IDs to delete",
- "example": [
- "bf973405-3f2a-48d2-a687-2ed4167164be",
- "dd41870b-5d00-46d2-924e-1d8489a0aa0f",
- "fad77c3f-deef-4e7e-9608-14c1aa4e559a"
- ],
+ "tags": {
+ "nullable": true,
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "objects": {
+ "nullable": true,
"type": "array",
"items": {
"type": "string"
}
}
- },
- "required": [
- "ids"
- ]
- },
- "DeleteAssetStatus": {
- "type": "string",
- "enum": [
- "SUCCESS",
- "FAILED"
- ]
+ }
},
- "DeleteAssetResponseDto": {
+ "SystemConfigDto": {
"type": "object",
"properties": {
- "status": {
- "$ref": "#/components/schemas/DeleteAssetStatus"
+ "ffmpeg": {
+ "$ref": "#/components/schemas/SystemConfigFFmpegDto"
},
- "id": {
- "type": "string"
+ "oauth": {
+ "$ref": "#/components/schemas/SystemConfigOAuthDto"
+ },
+ "passwordLogin": {
+ "$ref": "#/components/schemas/SystemConfigPasswordLoginDto"
+ },
+ "storageTemplate": {
+ "$ref": "#/components/schemas/SystemConfigStorageTemplateDto"
+ },
+ "job": {
+ "$ref": "#/components/schemas/SystemConfigJobDto"
}
},
"required": [
- "status",
- "id"
+ "ffmpeg",
+ "oauth",
+ "passwordLogin",
+ "storageTemplate",
+ "job"
]
},
- "CheckDuplicateAssetDto": {
+ "SystemConfigFFmpegDto": {
"type": "object",
"properties": {
- "deviceAssetId": {
+ "crf": {
+ "type": "integer"
+ },
+ "threads": {
+ "type": "integer"
+ },
+ "preset": {
"type": "string"
},
- "deviceId": {
+ "targetVideoCodec": {
+ "type": "string"
+ },
+ "targetAudioCodec": {
"type": "string"
+ },
+ "targetResolution": {
+ "type": "string"
+ },
+ "maxBitrate": {
+ "type": "string"
+ },
+ "twoPass": {
+ "type": "boolean"
+ },
+ "transcode": {
+ "type": "string",
+ "enum": [
+ "all",
+ "optimal",
+ "required",
+ "disabled"
+ ]
}
},
"required": [
- "deviceAssetId",
- "deviceId"
+ "crf",
+ "threads",
+ "preset",
+ "targetVideoCodec",
+ "targetAudioCodec",
+ "targetResolution",
+ "maxBitrate",
+ "twoPass",
+ "transcode"
]
},
- "CheckDuplicateAssetResponseDto": {
+ "SystemConfigJobDto": {
"type": "object",
"properties": {
- "isExist": {
- "type": "boolean"
+ "thumbnailGeneration": {
+ "$ref": "#/components/schemas/JobSettingsDto"
},
- "id": {
- "type": "string"
+ "metadataExtraction": {
+ "$ref": "#/components/schemas/JobSettingsDto"
+ },
+ "videoConversion": {
+ "$ref": "#/components/schemas/JobSettingsDto"
+ },
+ "objectTagging": {
+ "$ref": "#/components/schemas/JobSettingsDto"
+ },
+ "clipEncoding": {
+ "$ref": "#/components/schemas/JobSettingsDto"
+ },
+ "storageTemplateMigration": {
+ "$ref": "#/components/schemas/JobSettingsDto"
+ },
+ "backgroundTask": {
+ "$ref": "#/components/schemas/JobSettingsDto"
+ },
+ "search": {
+ "$ref": "#/components/schemas/JobSettingsDto"
+ },
+ "recognizeFaces": {
+ "$ref": "#/components/schemas/JobSettingsDto"
+ },
+ "sidecar": {
+ "$ref": "#/components/schemas/JobSettingsDto"
}
},
"required": [
- "isExist"
+ "thumbnailGeneration",
+ "metadataExtraction",
+ "videoConversion",
+ "objectTagging",
+ "clipEncoding",
+ "storageTemplateMigration",
+ "backgroundTask",
+ "search",
+ "recognizeFaces",
+ "sidecar"
]
},
- "CheckExistingAssetsDto": {
+ "SystemConfigOAuthDto": {
"type": "object",
"properties": {
- "deviceAssetIds": {
- "type": "array",
- "items": {
- "type": "string"
- }
+ "enabled": {
+ "type": "boolean"
},
- "deviceId": {
+ "issuerUrl": {
+ "type": "string"
+ },
+ "clientId": {
+ "type": "string"
+ },
+ "clientSecret": {
+ "type": "string"
+ },
+ "scope": {
+ "type": "string"
+ },
+ "buttonText": {
+ "type": "string"
+ },
+ "autoRegister": {
+ "type": "boolean"
+ },
+ "autoLaunch": {
+ "type": "boolean"
+ },
+ "mobileOverrideEnabled": {
+ "type": "boolean"
+ },
+ "mobileRedirectUri": {
"type": "string"
}
},
"required": [
- "deviceAssetIds",
- "deviceId"
+ "enabled",
+ "issuerUrl",
+ "clientId",
+ "clientSecret",
+ "scope",
+ "buttonText",
+ "autoRegister",
+ "autoLaunch",
+ "mobileOverrideEnabled",
+ "mobileRedirectUri"
]
},
- "CheckExistingAssetsResponseDto": {
+ "SystemConfigPasswordLoginDto": {
"type": "object",
"properties": {
- "existingIds": {
- "type": "array",
- "items": {
- "type": "string"
- }
+ "enabled": {
+ "type": "boolean"
}
},
"required": [
- "existingIds"
+ "enabled"
]
},
- "AssetBulkUploadCheckItem": {
+ "SystemConfigStorageTemplateDto": {
"type": "object",
"properties": {
- "id": {
+ "template": {
"type": "string"
- },
- "checksum": {
- "type": "string",
- "description": "base64 or hex encoded sha1 hash"
}
},
"required": [
- "id",
- "checksum"
+ "template"
]
},
- "AssetBulkUploadCheckDto": {
+ "SystemConfigTemplateStorageOptionDto": {
"type": "object",
"properties": {
- "assets": {
+ "yearOptions": {
"type": "array",
"items": {
- "$ref": "#/components/schemas/AssetBulkUploadCheckItem"
+ "type": "string"
+ }
+ },
+ "monthOptions": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "dayOptions": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "hourOptions": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "minuteOptions": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "secondOptions": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "presetOptions": {
+ "type": "array",
+ "items": {
+ "type": "string"
}
}
},
"required": [
- "assets"
+ "yearOptions",
+ "monthOptions",
+ "dayOptions",
+ "hourOptions",
+ "minuteOptions",
+ "secondOptions",
+ "presetOptions"
]
},
- "AssetBulkUploadCheckResult": {
+ "TagResponseDto": {
"type": "object",
"properties": {
+ "type": {
+ "$ref": "#/components/schemas/TagTypeEnum"
+ },
"id": {
"type": "string"
},
- "action": {
- "type": "string",
- "enum": [
- "accept",
- "reject"
- ]
- },
- "reason": {
- "type": "string",
- "enum": [
- "duplicate",
- "unsupported-format"
- ]
+ "name": {
+ "type": "string"
},
- "assetId": {
+ "userId": {
"type": "string"
}
},
"required": [
+ "type",
"id",
- "action"
+ "name",
+ "userId"
]
},
- "AssetBulkUploadCheckResponseDto": {
+ "TagTypeEnum": {
+ "type": "string",
+ "enum": [
+ "OBJECT",
+ "FACE",
+ "CUSTOM"
+ ]
+ },
+ "ThumbnailFormat": {
+ "type": "string",
+ "enum": [
+ "JPEG",
+ "WEBP"
+ ]
+ },
+ "TimeGroupEnum": {
+ "type": "string",
+ "enum": [
+ "day",
+ "month"
+ ]
+ },
+ "UpdateAlbumDto": {
"type": "object",
"properties": {
- "results": {
- "type": "array",
- "items": {
- "$ref": "#/components/schemas/AssetBulkUploadCheckResult"
- }
+ "albumName": {
+ "type": "string"
+ },
+ "albumThumbnailAssetId": {
+ "type": "string",
+ "format": "uuid"
}
- },
- "required": [
- "results"
- ]
+ }
},
- "CreateAssetsShareLinkDto": {
+ "UpdateAssetDto": {
"type": "object",
"properties": {
- "assetIds": {
- "title": "Array asset IDs to be shared",
+ "tagIds": {
+ "title": "Array of tag IDs to add to the asset",
"example": [
"bf973405-3f2a-48d2-a687-2ed4167164be",
"dd41870b-5d00-46d2-924e-1d8489a0aa0f",
@@ -6565,123 +6518,170 @@
"type": "string"
}
},
- "expiresAt": {
- "format": "date-time",
- "type": "string"
- },
- "allowUpload": {
- "type": "boolean"
- },
- "allowDownload": {
+ "isFavorite": {
"type": "boolean"
},
- "showExif": {
+ "isArchived": {
"type": "boolean"
},
"description": {
"type": "string"
}
- },
- "required": [
- "assetIds"
- ]
+ }
},
- "AddAssetsDto": {
+ "UpdateTagDto": {
"type": "object",
"properties": {
- "assetIds": {
- "type": "array",
- "items": {
- "type": "string",
- "format": "uuid"
- }
+ "name": {
+ "type": "string"
}
- },
- "required": [
- "assetIds"
- ]
+ }
},
- "RemoveAssetsDto": {
+ "UpdateUserDto": {
"type": "object",
"properties": {
- "assetIds": {
- "type": "array",
- "items": {
- "type": "string",
- "format": "uuid"
- }
+ "id": {
+ "type": "string",
+ "format": "uuid"
+ },
+ "email": {
+ "type": "string"
+ },
+ "password": {
+ "type": "string"
+ },
+ "firstName": {
+ "type": "string"
+ },
+ "lastName": {
+ "type": "string"
+ },
+ "storageLabel": {
+ "type": "string"
+ },
+ "isAdmin": {
+ "type": "boolean"
+ },
+ "shouldChangePassword": {
+ "type": "boolean"
}
},
"required": [
- "assetIds"
+ "id"
]
},
- "AlbumCountResponseDto": {
+ "UsageByUserDto": {
"type": "object",
"properties": {
- "owned": {
- "type": "integer"
+ "userId": {
+ "type": "string"
},
- "shared": {
+ "userFirstName": {
+ "type": "string"
+ },
+ "userLastName": {
+ "type": "string"
+ },
+ "photos": {
"type": "integer"
},
- "sharing": {
+ "videos": {
"type": "integer"
+ },
+ "usage": {
+ "type": "integer",
+ "format": "int64"
}
},
"required": [
- "owned",
- "shared",
- "sharing"
+ "userId",
+ "userFirstName",
+ "userLastName",
+ "photos",
+ "videos",
+ "usage"
]
},
- "AddAssetsResponseDto": {
+ "UserCountResponseDto": {
"type": "object",
"properties": {
- "successfullyAdded": {
+ "userCount": {
"type": "integer"
- },
- "alreadyInAlbum": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "album": {
- "$ref": "#/components/schemas/AlbumResponseDto"
}
},
"required": [
- "successfullyAdded",
- "alreadyInAlbum"
+ "userCount"
]
},
- "CreateAlbumShareLinkDto": {
+ "UserResponseDto": {
"type": "object",
"properties": {
- "albumId": {
+ "id": {
+ "type": "string"
+ },
+ "email": {
+ "type": "string"
+ },
+ "firstName": {
+ "type": "string"
+ },
+ "lastName": {
+ "type": "string"
+ },
+ "storageLabel": {
"type": "string",
- "format": "uuid"
+ "nullable": true
},
- "expiresAt": {
- "format": "date-time",
+ "profileImagePath": {
"type": "string"
},
- "allowUpload": {
+ "shouldChangePassword": {
"type": "boolean"
},
- "allowDownload": {
+ "isAdmin": {
"type": "boolean"
},
- "showExif": {
- "type": "boolean"
+ "createdAt": {
+ "format": "date-time",
+ "type": "string"
},
- "description": {
+ "deletedAt": {
+ "format": "date-time",
+ "type": "string",
+ "nullable": true
+ },
+ "updatedAt": {
+ "format": "date-time",
+ "type": "string"
+ },
+ "oauthId": {
"type": "string"
}
},
"required": [
- "albumId"
+ "id",
+ "email",
+ "firstName",
+ "lastName",
+ "storageLabel",
+ "profileImagePath",
+ "shouldChangePassword",
+ "isAdmin",
+ "createdAt",
+ "deletedAt",
+ "updatedAt",
+ "oauthId"
+ ]
+ },
+ "ValidateAccessTokenResponseDto": {
+ "type": "object",
+ "properties": {
+ "authStatus": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "authStatus"
]
}
}
diff --git a/server/src/immich/app.utils.ts b/server/src/immich/app.utils.ts
index 2f43dd027d..ff130bf755 100644
--- a/server/src/immich/app.utils.ts
+++ b/server/src/immich/app.utils.ts
@@ -21,7 +21,25 @@ export const handleDownload = (download: DownloadArchive, res: Response) => {
return download.stream;
};
+function sortKeys<T extends object>(obj: T): T {
+ if (!obj) {
+ return obj;
+ }
+
+ const result: Partial<T> = {};
+ const keys = Object.keys(obj).sort() as Array<keyof T>;
+ for (const key of keys) {
+ result[key] = obj[key];
+ }
+ return result as T;
+}
+
const patchOpenAPI = (document: OpenAPIObject) => {
+ document.paths = sortKeys(document.paths);
+ if (document.components?.schemas) {
+ document.components.schemas = sortKeys(document.components.schemas);
+ }
+
for (const path of Object.values(document.paths)) {
const operations = {
get: path.get,