1
0
mirror of https://github.com/immich-app/immich.git synced 2024-12-22 01:47:08 +02:00
immich/server/immich-openapi-specs.json

7045 lines
152 KiB
JSON
Raw Normal View History

2022-12-05 19:56:44 +02:00
{
"openapi": "3.0.0",
"paths": {
"/album": {
"get": {
"operationId": "getAllAlbums",
"parameters": [
{
"name": "shared",
"required": false,
"in": "query",
"schema": {
"type": "boolean"
}
},
{
"name": "assetId",
"required": false,
"in": "query",
"description": "Only returns albums that contain the asset\nIgnores the shared parameter\nundefined: get all albums",
"schema": {
"format": "uuid",
"type": "string"
}
}
],
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"items": {
"$ref": "#/components/schemas/AlbumResponseDto"
},
"type": "array"
}
}
},
"description": ""
}
},
"security": [
{
"bearer": []
},
{
"cookie": []
},
{
"api_key": []
}
],
"tags": [
"Album"
]
},
"post": {
"operationId": "createAlbum",
"parameters": [],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CreateAlbumDto"
}
}
},
"required": true
},
"responses": {
"201": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AlbumResponseDto"
}
}
},
"description": ""
}
},
"security": [
{
"bearer": []
},
{
"cookie": []
},
{
"api_key": []
}
],
"tags": [
"Album"
]
}
},
"/album/count": {
2023-06-10 06:14:18 +02:00
"get": {
"operationId": "getAlbumCount",
2023-06-10 06:14:18 +02:00
"parameters": [],
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AlbumCountResponseDto"
}
}
},
"description": ""
2023-06-10 06:14:18 +02:00
}
},
"security": [
{
"bearer": []
},
{
"cookie": []
},
{
"api_key": []
}
],
"tags": [
"Album"
2023-06-10 06:14:18 +02:00
]
}
},
"/album/{id}": {
"delete": {
"operationId": "deleteAlbum",
"parameters": [
{
"name": "id",
"required": true,
"in": "path",
"schema": {
"format": "uuid",
"type": "string"
}
}
],
"responses": {
"200": {
"description": ""
}
},
"security": [
{
"bearer": []
},
{
"cookie": []
},
{
"api_key": []
}
],
"tags": [
"Album"
]
},
"get": {
"operationId": "getAlbumInfo",
"parameters": [
{
"name": "id",
"required": true,
"in": "path",
"schema": {
"format": "uuid",
"type": "string"
}
},
{
"name": "key",
"required": false,
"in": "query",
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AlbumResponseDto"
}
}
},
2023-05-26 15:04:09 +02:00
"description": ""
}
},
"security": [
{
"bearer": []
},
{
"cookie": []
},
{
"api_key": []
}
],
"tags": [
"Album"
]
},
"patch": {
"operationId": "updateAlbumInfo",
"parameters": [
{
"name": "id",
"required": true,
"in": "path",
"schema": {
"format": "uuid",
"type": "string"
}
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UpdateAlbumDto"
}
}
},
"required": true
},
"responses": {
"200": {
2023-05-26 15:04:09 +02:00
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AlbumResponseDto"
}
}
},
"description": ""
}
},
"security": [
{
"bearer": []
},
{
"cookie": []
},
{
"api_key": []
}
],
"tags": [
"Album"
]
}
},
2023-06-10 06:14:18 +02:00
"/album/{id}/assets": {
"delete": {
"operationId": "removeAssetFromAlbum",
"parameters": [
{
"name": "id",
"required": true,
"in": "path",
"schema": {
"format": "uuid",
"type": "string"
}
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/BulkIdsDto"
}
}
},
"required": true
},
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"items": {
"$ref": "#/components/schemas/BulkIdResponseDto"
},
"type": "array"
}
}
},
"description": ""
}
},
"security": [
{
"bearer": []
},
{
"cookie": []
},
{
"api_key": []
}
],
"tags": [
"Album"
]
2023-06-10 06:14:18 +02:00
},
"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": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/BulkIdsDto"
}
}
},
"required": true
},
"responses": {
2023-06-10 06:14:18 +02:00
"200": {
"content": {
"application/json": {
"schema": {
"items": {
"$ref": "#/components/schemas/BulkIdResponseDto"
},
"type": "array"
}
}
},
"description": ""
}
},
"security": [
{
"bearer": []
},
{
"cookie": []
},
{
"api_key": []
}
],
"tags": [
"Album"
]
2023-06-10 06:14:18 +02:00
}
},
"/album/{id}/user/{userId}": {
"delete": {
"operationId": "removeUserFromAlbum",
"parameters": [
{
"name": "id",
"required": true,
"in": "path",
"schema": {
"format": "uuid",
"type": "string"
}
2023-06-10 06:14:18 +02:00
},
{
"name": "userId",
"required": true,
"in": "path",
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
2023-06-10 06:14:18 +02:00
"description": ""
}
},
"security": [
{
"bearer": []
},
{
"cookie": []
},
{
"api_key": []
}
],
"tags": [
"Album"
]
2023-06-10 06:14:18 +02:00
}
},
"/album/{id}/users": {
"put": {
2023-06-10 06:14:18 +02:00
"operationId": "addUsersToAlbum",
"parameters": [
{
"name": "id",
"required": true,
"in": "path",
"schema": {
"format": "uuid",
"type": "string"
}
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
2023-06-10 06:14:18 +02:00
"$ref": "#/components/schemas/AddUsersDto"
}
}
},
"required": true
},
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
2023-06-10 06:14:18 +02:00
"$ref": "#/components/schemas/AlbumResponseDto"
}
}
},
"description": ""
}
},
"security": [
{
"bearer": []
},
{
"cookie": []
},
{
"api_key": []
}
],
"tags": [
"Album"
]
2023-06-10 06:14:18 +02:00
}
},
"/api-key": {
"get": {
"operationId": "getKeys",
2023-06-10 06:14:18 +02:00
"parameters": [],
"responses": {
"200": {
2023-06-10 06:14:18 +02:00
"content": {
"application/json": {
"schema": {
"items": {
"$ref": "#/components/schemas/APIKeyResponseDto"
},
"type": "array"
2023-06-10 06:14:18 +02:00
}
}
},
"description": ""
}
},
"security": [
{
"bearer": []
},
{
"cookie": []
},
{
"api_key": []
}
],
"tags": [
"API Key"
]
2023-06-10 06:14:18 +02:00
},
"post": {
"operationId": "createKey",
2023-06-10 06:14:18 +02:00
"parameters": [],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/APIKeyCreateDto"
}
}
},
"required": true
},
"responses": {
"201": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/APIKeyCreateResponseDto"
}
}
},
"description": ""
}
},
"security": [
{
"bearer": []
},
{
"cookie": []
},
{
"api_key": []
}
],
"tags": [
"API Key"
]
}
},
2023-06-10 06:14:18 +02:00
"/api-key/{id}": {
"delete": {
"operationId": "deleteKey",
2023-06-10 06:14:18 +02:00
"parameters": [
{
"name": "id",
"required": true,
"in": "path",
"schema": {
"format": "uuid",
"type": "string"
}
}
2023-06-10 06:14:18 +02:00
],
"responses": {
2023-06-10 06:14:18 +02:00
"200": {
"description": ""
}
},
2023-06-10 06:14:18 +02:00
"security": [
{
"bearer": []
},
{
"cookie": []
},
{
"api_key": []
}
],
"tags": [
"API Key"
]
2023-06-10 06:14:18 +02:00
},
"get": {
"operationId": "getKey",
2023-06-10 06:14:18 +02:00
"parameters": [
{
"name": "id",
"required": true,
"in": "path",
"schema": {
"format": "uuid",
"type": "string"
}
}
],
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
2023-06-10 06:14:18 +02:00
"$ref": "#/components/schemas/APIKeyResponseDto"
}
}
},
"description": ""
}
},
"security": [
{
"bearer": []
},
{
"cookie": []
},
{
"api_key": []
}
],
"tags": [
"API Key"
]
},
"put": {
"operationId": "updateKey",
2023-06-10 06:14:18 +02:00
"parameters": [
{
"name": "id",
"required": true,
"in": "path",
"schema": {
"format": "uuid",
"type": "string"
}
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/APIKeyUpdateDto"
}
}
},
"required": true
},
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/APIKeyResponseDto"
}
}
},
"description": ""
}
},
"security": [
{
"bearer": []
},
{
"cookie": []
},
{
"api_key": []
}
],
"tags": [
"API Key"
]
}
},
2023-06-10 06:14:18 +02:00
"/asset": {
"delete": {
"operationId": "deleteAsset",
"parameters": [],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/DeleteAssetDto"
}
}
},
"required": true
},
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"items": {
"$ref": "#/components/schemas/DeleteAssetResponseDto"
},
"type": "array"
}
}
},
"description": ""
}
},
"security": [
{
"bearer": []
},
{
"cookie": []
},
{
"api_key": []
}
],
"tags": [
"Asset"
]
},
2023-06-10 06:14:18 +02:00
"get": {
"description": "Get all AssetEntity belong to the user",
"operationId": "getAllAssets",
"parameters": [
{
2023-06-10 06:14:18 +02:00
"name": "userId",
"required": false,
"in": "query",
"schema": {
"format": "uuid",
"type": "string"
}
2023-06-10 06:14:18 +02:00
},
{
"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": {
2023-06-10 06:14:18 +02:00
"content": {
"application/json": {
"schema": {
"items": {
"$ref": "#/components/schemas/AssetResponseDto"
},
"type": "array"
2023-06-10 06:14:18 +02:00
}
}
},
"description": ""
}
},
"security": [
{
"bearer": []
},
{
"cookie": []
},
{
"api_key": []
}
],
"tags": [
2023-06-10 06:14:18 +02:00
"Asset"
]
}
},
2023-06-10 06:14:18 +02:00
"/asset/assetById/{id}": {
"get": {
"description": "Get a single asset's information",
"operationId": "getAssetById",
2023-06-10 06:14:18 +02:00
"parameters": [
{
"name": "id",
"required": true,
"in": "path",
"schema": {
"format": "uuid",
"type": "string"
}
},
{
"name": "key",
"required": false,
"in": "query",
"schema": {
"type": "string"
}
}
2023-06-10 06:14:18 +02:00
],
"responses": {
2023-06-10 06:14:18 +02:00
"200": {
"content": {
"application/json": {
"schema": {
2023-06-10 06:14:18 +02:00
"$ref": "#/components/schemas/AssetResponseDto"
}
}
},
"description": ""
}
},
"security": [
{
"bearer": []
},
{
"cookie": []
},
{
"api_key": []
}
],
"tags": [
"Asset"
]
}
},
2023-06-10 06:14:18 +02:00
"/asset/bulk-upload-check": {
"post": {
2023-06-10 06:14:18 +02:00
"description": "Checks if assets exist by checksums",
"operationId": "bulkUploadCheck",
"parameters": [],
2023-06-10 06:14:18 +02:00
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AssetBulkUploadCheckDto"
}
2022-12-05 19:56:44 +02:00
}
},
"required": true
},
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
2023-06-10 06:14:18 +02:00
"$ref": "#/components/schemas/AssetBulkUploadCheckResponseDto"
}
}
},
"description": ""
}
},
"security": [
{
"bearer": []
},
{
"cookie": []
},
{
"api_key": []
}
],
"tags": [
"Asset"
]
}
},
2023-06-10 06:14:18 +02:00
"/asset/check": {
"post": {
"description": "Check duplicated asset before uploading - for Web upload used",
"operationId": "checkDuplicateAsset",
"parameters": [
{
2023-06-10 06:14:18 +02:00
"name": "key",
"required": false,
"in": "query",
"schema": {
2023-06-10 06:14:18 +02:00
"type": "string"
}
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
2023-06-10 06:14:18 +02:00
"$ref": "#/components/schemas/CheckDuplicateAssetDto"
}
}
},
"required": true
},
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
2023-06-10 06:14:18 +02:00
"$ref": "#/components/schemas/CheckDuplicateAssetResponseDto"
}
}
},
"description": ""
}
},
"security": [
{
"bearer": []
},
{
"cookie": []
},
{
"api_key": []
}
],
"tags": [
"Asset"
]
}
},
2023-06-10 06:14:18 +02:00
"/asset/count-by-time-bucket": {
"post": {
2023-06-10 06:14:18 +02:00
"operationId": "getAssetCountByTimeBucket",
"parameters": [],
"requestBody": {
"content": {
"application/json": {
"schema": {
2023-06-10 06:14:18 +02:00
"$ref": "#/components/schemas/GetAssetCountByTimeBucketDto"
}
}
},
"required": true
},
"responses": {
"200": {
2022-12-05 19:56:44 +02:00
"content": {
"application/json": {
"schema": {
2023-06-10 06:14:18 +02:00
"$ref": "#/components/schemas/AssetCountByTimeBucketResponseDto"
2022-12-05 19:56:44 +02:00
}
}
},
"description": ""
2022-12-05 19:56:44 +02:00
}
},
2023-06-10 06:14:18 +02:00
"security": [
{
"bearer": []
},
{
"cookie": []
},
{
"api_key": []
}
],
"tags": [
"Asset"
2022-12-05 19:56:44 +02:00
]
}
},
2023-06-10 06:14:18 +02:00
"/asset/curated-locations": {
"get": {
"operationId": "getCuratedLocations",
2022-12-05 19:56:44 +02:00
"parameters": [],
"responses": {
2023-06-10 06:14:18 +02:00
"200": {
2022-12-05 19:56:44 +02:00
"content": {
"application/json": {
"schema": {
2023-06-10 06:14:18 +02:00
"items": {
"$ref": "#/components/schemas/CuratedLocationsResponseDto"
},
"type": "array"
2022-12-05 19:56:44 +02:00
}
}
},
"description": ""
2022-12-05 19:56:44 +02:00
}
},
"security": [
{
"bearer": []
},
{
"cookie": []
},
{
"api_key": []
}
],
"tags": [
"Asset"
2022-12-05 19:56:44 +02:00
]
}
},
2023-06-10 06:14:18 +02:00
"/asset/curated-objects": {
"get": {
"operationId": "getCuratedObjects",
"parameters": [],
2022-12-05 19:56:44 +02:00
"responses": {
2023-06-10 06:14:18 +02:00
"200": {
2022-12-05 19:56:44 +02:00
"content": {
"application/json": {
"schema": {
2023-06-10 06:14:18 +02:00
"items": {
"$ref": "#/components/schemas/CuratedObjectsResponseDto"
},
"type": "array"
2022-12-05 19:56:44 +02:00
}
}
},
"description": ""
2022-12-05 19:56:44 +02:00
}
},
"security": [
{
"bearer": []
},
{
"cookie": []
},
{
"api_key": []
}
],
"tags": [
"Asset"
2022-12-05 19:56:44 +02:00
]
}
},
"/asset/download": {
"get": {
"operationId": "getDownloadInfo",
feat (server, web): Share with partner (#2388) * feat(server, web): implement share with partner * chore: regenerate api * chore: regenerate api * Pass userId to getAssetCountByTimeBucket and getAssetByTimeBucket * chore: regenerate api * Use AssetGrid to view partner's assets * Remove disableNavBarActions flag * Check access to buckets * Apply suggestions from code review Co-authored-by: Jason Rasmussen <jrasm91@gmail.com> * Remove exception rethrowing * Simplify partner access check * Create new PartnerController * chore api:generate * Use partnerApi * Remove id from PartnerResponseDto * Refactor PartnerEntity * Rename args * Remove duplicate code in getAll * Create composite primary keys for partners table * Move asset access check into PartnerCore * Remove redundant getUserAssets call * Remove unused getUserAssets method * chore: regenerate api * Simplify getAll * Replace ?? with || * Simplify PartnerRepository.create * Introduce PartnerIds interface * Replace two database migrations with one * Simplify getAll * Change PartnerResponseDto to include UserResponseDto * Move partner sharing endpoints to PartnerController * Rename ShareController to SharedLinkController * chore: regenerate api after rebase * refactor: shared link remove return type * refactor: return user response dto * chore: regenerate open api * refactor: partner getAll * refactor: partner settings event typing * chore: remove unused code * refactor: add partners modal trigger * refactor: update url for viewing partner photos * feat: update partner sharing title * refactor: rename service method names * refactor: http exception logic to service, PartnerIds interface * chore: regenerate open api * test: coverage for domain code * fix: addPartner => createPartner * fix: missed rename * refactor: more code cleanup * chore: alphabetize settings order * feat: stop sharing confirmation modal * Enhance contrast of the email in dark mode * Replace button with CircleIconButton * Fix linter warning * Fix date types for PartnerEntity * Fix PartnerEntity creation * Reset assetStore state * Change layout of the partner's assets page * Add bulk download action for partner's assets --------- Co-authored-by: Jason Rasmussen <jrasm91@gmail.com>
2023-05-15 19:30:53 +02:00
"parameters": [
{
"name": "assetIds",
"required": false,
"in": "query",
"schema": {
"format": "uuid",
"type": "array",
"items": {
"type": "string"
}
}
},
{
"name": "albumId",
"required": false,
"in": "query",
"schema": {
"format": "uuid",
"type": "string"
}
},
{
"name": "userId",
"required": false,
"in": "query",
"schema": {
"format": "uuid",
"type": "string"
}
},
{
"name": "archiveSize",
"required": false,
"in": "query",
"schema": {
"type": "number"
}
},
feat (server, web): Share with partner (#2388) * feat(server, web): implement share with partner * chore: regenerate api * chore: regenerate api * Pass userId to getAssetCountByTimeBucket and getAssetByTimeBucket * chore: regenerate api * Use AssetGrid to view partner's assets * Remove disableNavBarActions flag * Check access to buckets * Apply suggestions from code review Co-authored-by: Jason Rasmussen <jrasm91@gmail.com> * Remove exception rethrowing * Simplify partner access check * Create new PartnerController * chore api:generate * Use partnerApi * Remove id from PartnerResponseDto * Refactor PartnerEntity * Rename args * Remove duplicate code in getAll * Create composite primary keys for partners table * Move asset access check into PartnerCore * Remove redundant getUserAssets call * Remove unused getUserAssets method * chore: regenerate api * Simplify getAll * Replace ?? with || * Simplify PartnerRepository.create * Introduce PartnerIds interface * Replace two database migrations with one * Simplify getAll * Change PartnerResponseDto to include UserResponseDto * Move partner sharing endpoints to PartnerController * Rename ShareController to SharedLinkController * chore: regenerate api after rebase * refactor: shared link remove return type * refactor: return user response dto * chore: regenerate open api * refactor: partner getAll * refactor: partner settings event typing * chore: remove unused code * refactor: add partners modal trigger * refactor: update url for viewing partner photos * feat: update partner sharing title * refactor: rename service method names * refactor: http exception logic to service, PartnerIds interface * chore: regenerate open api * test: coverage for domain code * fix: addPartner => createPartner * fix: missed rename * refactor: more code cleanup * chore: alphabetize settings order * feat: stop sharing confirmation modal * Enhance contrast of the email in dark mode * Replace button with CircleIconButton * Fix linter warning * Fix date types for PartnerEntity * Fix PartnerEntity creation * Reset assetStore state * Change layout of the partner's assets page * Add bulk download action for partner's assets --------- Co-authored-by: Jason Rasmussen <jrasm91@gmail.com>
2023-05-15 19:30:53 +02:00
{
2023-06-10 06:14:18 +02:00
"name": "key",
"required": false,
feat (server, web): Share with partner (#2388) * feat(server, web): implement share with partner * chore: regenerate api * chore: regenerate api * Pass userId to getAssetCountByTimeBucket and getAssetByTimeBucket * chore: regenerate api * Use AssetGrid to view partner's assets * Remove disableNavBarActions flag * Check access to buckets * Apply suggestions from code review Co-authored-by: Jason Rasmussen <jrasm91@gmail.com> * Remove exception rethrowing * Simplify partner access check * Create new PartnerController * chore api:generate * Use partnerApi * Remove id from PartnerResponseDto * Refactor PartnerEntity * Rename args * Remove duplicate code in getAll * Create composite primary keys for partners table * Move asset access check into PartnerCore * Remove redundant getUserAssets call * Remove unused getUserAssets method * chore: regenerate api * Simplify getAll * Replace ?? with || * Simplify PartnerRepository.create * Introduce PartnerIds interface * Replace two database migrations with one * Simplify getAll * Change PartnerResponseDto to include UserResponseDto * Move partner sharing endpoints to PartnerController * Rename ShareController to SharedLinkController * chore: regenerate api after rebase * refactor: shared link remove return type * refactor: return user response dto * chore: regenerate open api * refactor: partner getAll * refactor: partner settings event typing * chore: remove unused code * refactor: add partners modal trigger * refactor: update url for viewing partner photos * feat: update partner sharing title * refactor: rename service method names * refactor: http exception logic to service, PartnerIds interface * chore: regenerate open api * test: coverage for domain code * fix: addPartner => createPartner * fix: missed rename * refactor: more code cleanup * chore: alphabetize settings order * feat: stop sharing confirmation modal * Enhance contrast of the email in dark mode * Replace button with CircleIconButton * Fix linter warning * Fix date types for PartnerEntity * Fix PartnerEntity creation * Reset assetStore state * Change layout of the partner's assets page * Add bulk download action for partner's assets --------- Co-authored-by: Jason Rasmussen <jrasm91@gmail.com>
2023-05-15 19:30:53 +02:00
"in": "query",
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"content": {
"application/json": {
feat (server, web): Share with partner (#2388) * feat(server, web): implement share with partner * chore: regenerate api * chore: regenerate api * Pass userId to getAssetCountByTimeBucket and getAssetByTimeBucket * chore: regenerate api * Use AssetGrid to view partner's assets * Remove disableNavBarActions flag * Check access to buckets * Apply suggestions from code review Co-authored-by: Jason Rasmussen <jrasm91@gmail.com> * Remove exception rethrowing * Simplify partner access check * Create new PartnerController * chore api:generate * Use partnerApi * Remove id from PartnerResponseDto * Refactor PartnerEntity * Rename args * Remove duplicate code in getAll * Create composite primary keys for partners table * Move asset access check into PartnerCore * Remove redundant getUserAssets call * Remove unused getUserAssets method * chore: regenerate api * Simplify getAll * Replace ?? with || * Simplify PartnerRepository.create * Introduce PartnerIds interface * Replace two database migrations with one * Simplify getAll * Change PartnerResponseDto to include UserResponseDto * Move partner sharing endpoints to PartnerController * Rename ShareController to SharedLinkController * chore: regenerate api after rebase * refactor: shared link remove return type * refactor: return user response dto * chore: regenerate open api * refactor: partner getAll * refactor: partner settings event typing * chore: remove unused code * refactor: add partners modal trigger * refactor: update url for viewing partner photos * feat: update partner sharing title * refactor: rename service method names * refactor: http exception logic to service, PartnerIds interface * chore: regenerate open api * test: coverage for domain code * fix: addPartner => createPartner * fix: missed rename * refactor: more code cleanup * chore: alphabetize settings order * feat: stop sharing confirmation modal * Enhance contrast of the email in dark mode * Replace button with CircleIconButton * Fix linter warning * Fix date types for PartnerEntity * Fix PartnerEntity creation * Reset assetStore state * Change layout of the partner's assets page * Add bulk download action for partner's assets --------- Co-authored-by: Jason Rasmussen <jrasm91@gmail.com>
2023-05-15 19:30:53 +02:00
"schema": {
"$ref": "#/components/schemas/DownloadResponseDto"
feat (server, web): Share with partner (#2388) * feat(server, web): implement share with partner * chore: regenerate api * chore: regenerate api * Pass userId to getAssetCountByTimeBucket and getAssetByTimeBucket * chore: regenerate api * Use AssetGrid to view partner's assets * Remove disableNavBarActions flag * Check access to buckets * Apply suggestions from code review Co-authored-by: Jason Rasmussen <jrasm91@gmail.com> * Remove exception rethrowing * Simplify partner access check * Create new PartnerController * chore api:generate * Use partnerApi * Remove id from PartnerResponseDto * Refactor PartnerEntity * Rename args * Remove duplicate code in getAll * Create composite primary keys for partners table * Move asset access check into PartnerCore * Remove redundant getUserAssets call * Remove unused getUserAssets method * chore: regenerate api * Simplify getAll * Replace ?? with || * Simplify PartnerRepository.create * Introduce PartnerIds interface * Replace two database migrations with one * Simplify getAll * Change PartnerResponseDto to include UserResponseDto * Move partner sharing endpoints to PartnerController * Rename ShareController to SharedLinkController * chore: regenerate api after rebase * refactor: shared link remove return type * refactor: return user response dto * chore: regenerate open api * refactor: partner getAll * refactor: partner settings event typing * chore: remove unused code * refactor: add partners modal trigger * refactor: update url for viewing partner photos * feat: update partner sharing title * refactor: rename service method names * refactor: http exception logic to service, PartnerIds interface * chore: regenerate open api * test: coverage for domain code * fix: addPartner => createPartner * fix: missed rename * refactor: more code cleanup * chore: alphabetize settings order * feat: stop sharing confirmation modal * Enhance contrast of the email in dark mode * Replace button with CircleIconButton * Fix linter warning * Fix date types for PartnerEntity * Fix PartnerEntity creation * Reset assetStore state * Change layout of the partner's assets page * Add bulk download action for partner's assets --------- Co-authored-by: Jason Rasmussen <jrasm91@gmail.com>
2023-05-15 19:30:53 +02:00
}
}
},
"description": ""
feat (server, web): Share with partner (#2388) * feat(server, web): implement share with partner * chore: regenerate api * chore: regenerate api * Pass userId to getAssetCountByTimeBucket and getAssetByTimeBucket * chore: regenerate api * Use AssetGrid to view partner's assets * Remove disableNavBarActions flag * Check access to buckets * Apply suggestions from code review Co-authored-by: Jason Rasmussen <jrasm91@gmail.com> * Remove exception rethrowing * Simplify partner access check * Create new PartnerController * chore api:generate * Use partnerApi * Remove id from PartnerResponseDto * Refactor PartnerEntity * Rename args * Remove duplicate code in getAll * Create composite primary keys for partners table * Move asset access check into PartnerCore * Remove redundant getUserAssets call * Remove unused getUserAssets method * chore: regenerate api * Simplify getAll * Replace ?? with || * Simplify PartnerRepository.create * Introduce PartnerIds interface * Replace two database migrations with one * Simplify getAll * Change PartnerResponseDto to include UserResponseDto * Move partner sharing endpoints to PartnerController * Rename ShareController to SharedLinkController * chore: regenerate api after rebase * refactor: shared link remove return type * refactor: return user response dto * chore: regenerate open api * refactor: partner getAll * refactor: partner settings event typing * chore: remove unused code * refactor: add partners modal trigger * refactor: update url for viewing partner photos * feat: update partner sharing title * refactor: rename service method names * refactor: http exception logic to service, PartnerIds interface * chore: regenerate open api * test: coverage for domain code * fix: addPartner => createPartner * fix: missed rename * refactor: more code cleanup * chore: alphabetize settings order * feat: stop sharing confirmation modal * Enhance contrast of the email in dark mode * Replace button with CircleIconButton * Fix linter warning * Fix date types for PartnerEntity * Fix PartnerEntity creation * Reset assetStore state * Change layout of the partner's assets page * Add bulk download action for partner's assets --------- Co-authored-by: Jason Rasmussen <jrasm91@gmail.com>
2023-05-15 19:30:53 +02:00
}
},
"security": [
{
"bearer": []
},
{
"cookie": []
},
{
"api_key": []
}
],
"tags": [
"Asset"
feat (server, web): Share with partner (#2388) * feat(server, web): implement share with partner * chore: regenerate api * chore: regenerate api * Pass userId to getAssetCountByTimeBucket and getAssetByTimeBucket * chore: regenerate api * Use AssetGrid to view partner's assets * Remove disableNavBarActions flag * Check access to buckets * Apply suggestions from code review Co-authored-by: Jason Rasmussen <jrasm91@gmail.com> * Remove exception rethrowing * Simplify partner access check * Create new PartnerController * chore api:generate * Use partnerApi * Remove id from PartnerResponseDto * Refactor PartnerEntity * Rename args * Remove duplicate code in getAll * Create composite primary keys for partners table * Move asset access check into PartnerCore * Remove redundant getUserAssets call * Remove unused getUserAssets method * chore: regenerate api * Simplify getAll * Replace ?? with || * Simplify PartnerRepository.create * Introduce PartnerIds interface * Replace two database migrations with one * Simplify getAll * Change PartnerResponseDto to include UserResponseDto * Move partner sharing endpoints to PartnerController * Rename ShareController to SharedLinkController * chore: regenerate api after rebase * refactor: shared link remove return type * refactor: return user response dto * chore: regenerate open api * refactor: partner getAll * refactor: partner settings event typing * chore: remove unused code * refactor: add partners modal trigger * refactor: update url for viewing partner photos * feat: update partner sharing title * refactor: rename service method names * refactor: http exception logic to service, PartnerIds interface * chore: regenerate open api * test: coverage for domain code * fix: addPartner => createPartner * fix: missed rename * refactor: more code cleanup * chore: alphabetize settings order * feat: stop sharing confirmation modal * Enhance contrast of the email in dark mode * Replace button with CircleIconButton * Fix linter warning * Fix date types for PartnerEntity * Fix PartnerEntity creation * Reset assetStore state * Change layout of the partner's assets page * Add bulk download action for partner's assets --------- Co-authored-by: Jason Rasmussen <jrasm91@gmail.com>
2023-05-15 19:30:53 +02:00
]
},
"post": {
"operationId": "downloadArchive",
2023-06-10 06:14:18 +02:00
"parameters": [
{
"name": "key",
"required": false,
"in": "query",
feat (server, web): Share with partner (#2388) * feat(server, web): implement share with partner * chore: regenerate api * chore: regenerate api * Pass userId to getAssetCountByTimeBucket and getAssetByTimeBucket * chore: regenerate api * Use AssetGrid to view partner's assets * Remove disableNavBarActions flag * Check access to buckets * Apply suggestions from code review Co-authored-by: Jason Rasmussen <jrasm91@gmail.com> * Remove exception rethrowing * Simplify partner access check * Create new PartnerController * chore api:generate * Use partnerApi * Remove id from PartnerResponseDto * Refactor PartnerEntity * Rename args * Remove duplicate code in getAll * Create composite primary keys for partners table * Move asset access check into PartnerCore * Remove redundant getUserAssets call * Remove unused getUserAssets method * chore: regenerate api * Simplify getAll * Replace ?? with || * Simplify PartnerRepository.create * Introduce PartnerIds interface * Replace two database migrations with one * Simplify getAll * Change PartnerResponseDto to include UserResponseDto * Move partner sharing endpoints to PartnerController * Rename ShareController to SharedLinkController * chore: regenerate api after rebase * refactor: shared link remove return type * refactor: return user response dto * chore: regenerate open api * refactor: partner getAll * refactor: partner settings event typing * chore: remove unused code * refactor: add partners modal trigger * refactor: update url for viewing partner photos * feat: update partner sharing title * refactor: rename service method names * refactor: http exception logic to service, PartnerIds interface * chore: regenerate open api * test: coverage for domain code * fix: addPartner => createPartner * fix: missed rename * refactor: more code cleanup * chore: alphabetize settings order * feat: stop sharing confirmation modal * Enhance contrast of the email in dark mode * Replace button with CircleIconButton * Fix linter warning * Fix date types for PartnerEntity * Fix PartnerEntity creation * Reset assetStore state * Change layout of the partner's assets page * Add bulk download action for partner's assets --------- Co-authored-by: Jason Rasmussen <jrasm91@gmail.com>
2023-05-15 19:30:53 +02:00
"schema": {
"type": "string"
}
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AssetIdsDto"
}
}
},
"required": true
},
feat (server, web): Share with partner (#2388) * feat(server, web): implement share with partner * chore: regenerate api * chore: regenerate api * Pass userId to getAssetCountByTimeBucket and getAssetByTimeBucket * chore: regenerate api * Use AssetGrid to view partner's assets * Remove disableNavBarActions flag * Check access to buckets * Apply suggestions from code review Co-authored-by: Jason Rasmussen <jrasm91@gmail.com> * Remove exception rethrowing * Simplify partner access check * Create new PartnerController * chore api:generate * Use partnerApi * Remove id from PartnerResponseDto * Refactor PartnerEntity * Rename args * Remove duplicate code in getAll * Create composite primary keys for partners table * Move asset access check into PartnerCore * Remove redundant getUserAssets call * Remove unused getUserAssets method * chore: regenerate api * Simplify getAll * Replace ?? with || * Simplify PartnerRepository.create * Introduce PartnerIds interface * Replace two database migrations with one * Simplify getAll * Change PartnerResponseDto to include UserResponseDto * Move partner sharing endpoints to PartnerController * Rename ShareController to SharedLinkController * chore: regenerate api after rebase * refactor: shared link remove return type * refactor: return user response dto * chore: regenerate open api * refactor: partner getAll * refactor: partner settings event typing * chore: remove unused code * refactor: add partners modal trigger * refactor: update url for viewing partner photos * feat: update partner sharing title * refactor: rename service method names * refactor: http exception logic to service, PartnerIds interface * chore: regenerate open api * test: coverage for domain code * fix: addPartner => createPartner * fix: missed rename * refactor: more code cleanup * chore: alphabetize settings order * feat: stop sharing confirmation modal * Enhance contrast of the email in dark mode * Replace button with CircleIconButton * Fix linter warning * Fix date types for PartnerEntity * Fix PartnerEntity creation * Reset assetStore state * Change layout of the partner's assets page * Add bulk download action for partner's assets --------- Co-authored-by: Jason Rasmussen <jrasm91@gmail.com>
2023-05-15 19:30:53 +02:00
"responses": {
2023-06-10 06:14:18 +02:00
"200": {
feat (server, web): Share with partner (#2388) * feat(server, web): implement share with partner * chore: regenerate api * chore: regenerate api * Pass userId to getAssetCountByTimeBucket and getAssetByTimeBucket * chore: regenerate api * Use AssetGrid to view partner's assets * Remove disableNavBarActions flag * Check access to buckets * Apply suggestions from code review Co-authored-by: Jason Rasmussen <jrasm91@gmail.com> * Remove exception rethrowing * Simplify partner access check * Create new PartnerController * chore api:generate * Use partnerApi * Remove id from PartnerResponseDto * Refactor PartnerEntity * Rename args * Remove duplicate code in getAll * Create composite primary keys for partners table * Move asset access check into PartnerCore * Remove redundant getUserAssets call * Remove unused getUserAssets method * chore: regenerate api * Simplify getAll * Replace ?? with || * Simplify PartnerRepository.create * Introduce PartnerIds interface * Replace two database migrations with one * Simplify getAll * Change PartnerResponseDto to include UserResponseDto * Move partner sharing endpoints to PartnerController * Rename ShareController to SharedLinkController * chore: regenerate api after rebase * refactor: shared link remove return type * refactor: return user response dto * chore: regenerate open api * refactor: partner getAll * refactor: partner settings event typing * chore: remove unused code * refactor: add partners modal trigger * refactor: update url for viewing partner photos * feat: update partner sharing title * refactor: rename service method names * refactor: http exception logic to service, PartnerIds interface * chore: regenerate open api * test: coverage for domain code * fix: addPartner => createPartner * fix: missed rename * refactor: more code cleanup * chore: alphabetize settings order * feat: stop sharing confirmation modal * Enhance contrast of the email in dark mode * Replace button with CircleIconButton * Fix linter warning * Fix date types for PartnerEntity * Fix PartnerEntity creation * Reset assetStore state * Change layout of the partner's assets page * Add bulk download action for partner's assets --------- Co-authored-by: Jason Rasmussen <jrasm91@gmail.com>
2023-05-15 19:30:53 +02:00
"content": {
2023-06-10 06:14:18 +02:00
"application/octet-stream": {
feat (server, web): Share with partner (#2388) * feat(server, web): implement share with partner * chore: regenerate api * chore: regenerate api * Pass userId to getAssetCountByTimeBucket and getAssetByTimeBucket * chore: regenerate api * Use AssetGrid to view partner's assets * Remove disableNavBarActions flag * Check access to buckets * Apply suggestions from code review Co-authored-by: Jason Rasmussen <jrasm91@gmail.com> * Remove exception rethrowing * Simplify partner access check * Create new PartnerController * chore api:generate * Use partnerApi * Remove id from PartnerResponseDto * Refactor PartnerEntity * Rename args * Remove duplicate code in getAll * Create composite primary keys for partners table * Move asset access check into PartnerCore * Remove redundant getUserAssets call * Remove unused getUserAssets method * chore: regenerate api * Simplify getAll * Replace ?? with || * Simplify PartnerRepository.create * Introduce PartnerIds interface * Replace two database migrations with one * Simplify getAll * Change PartnerResponseDto to include UserResponseDto * Move partner sharing endpoints to PartnerController * Rename ShareController to SharedLinkController * chore: regenerate api after rebase * refactor: shared link remove return type * refactor: return user response dto * chore: regenerate open api * refactor: partner getAll * refactor: partner settings event typing * chore: remove unused code * refactor: add partners modal trigger * refactor: update url for viewing partner photos * feat: update partner sharing title * refactor: rename service method names * refactor: http exception logic to service, PartnerIds interface * chore: regenerate open api * test: coverage for domain code * fix: addPartner => createPartner * fix: missed rename * refactor: more code cleanup * chore: alphabetize settings order * feat: stop sharing confirmation modal * Enhance contrast of the email in dark mode * Replace button with CircleIconButton * Fix linter warning * Fix date types for PartnerEntity * Fix PartnerEntity creation * Reset assetStore state * Change layout of the partner's assets page * Add bulk download action for partner's assets --------- Co-authored-by: Jason Rasmussen <jrasm91@gmail.com>
2023-05-15 19:30:53 +02:00
"schema": {
"format": "binary",
"type": "string"
feat (server, web): Share with partner (#2388) * feat(server, web): implement share with partner * chore: regenerate api * chore: regenerate api * Pass userId to getAssetCountByTimeBucket and getAssetByTimeBucket * chore: regenerate api * Use AssetGrid to view partner's assets * Remove disableNavBarActions flag * Check access to buckets * Apply suggestions from code review Co-authored-by: Jason Rasmussen <jrasm91@gmail.com> * Remove exception rethrowing * Simplify partner access check * Create new PartnerController * chore api:generate * Use partnerApi * Remove id from PartnerResponseDto * Refactor PartnerEntity * Rename args * Remove duplicate code in getAll * Create composite primary keys for partners table * Move asset access check into PartnerCore * Remove redundant getUserAssets call * Remove unused getUserAssets method * chore: regenerate api * Simplify getAll * Replace ?? with || * Simplify PartnerRepository.create * Introduce PartnerIds interface * Replace two database migrations with one * Simplify getAll * Change PartnerResponseDto to include UserResponseDto * Move partner sharing endpoints to PartnerController * Rename ShareController to SharedLinkController * chore: regenerate api after rebase * refactor: shared link remove return type * refactor: return user response dto * chore: regenerate open api * refactor: partner getAll * refactor: partner settings event typing * chore: remove unused code * refactor: add partners modal trigger * refactor: update url for viewing partner photos * feat: update partner sharing title * refactor: rename service method names * refactor: http exception logic to service, PartnerIds interface * chore: regenerate open api * test: coverage for domain code * fix: addPartner => createPartner * fix: missed rename * refactor: more code cleanup * chore: alphabetize settings order * feat: stop sharing confirmation modal * Enhance contrast of the email in dark mode * Replace button with CircleIconButton * Fix linter warning * Fix date types for PartnerEntity * Fix PartnerEntity creation * Reset assetStore state * Change layout of the partner's assets page * Add bulk download action for partner's assets --------- Co-authored-by: Jason Rasmussen <jrasm91@gmail.com>
2023-05-15 19:30:53 +02:00
}
}
2023-06-10 06:14:18 +02:00
},
"description": ""
feat (server, web): Share with partner (#2388) * feat(server, web): implement share with partner * chore: regenerate api * chore: regenerate api * Pass userId to getAssetCountByTimeBucket and getAssetByTimeBucket * chore: regenerate api * Use AssetGrid to view partner's assets * Remove disableNavBarActions flag * Check access to buckets * Apply suggestions from code review Co-authored-by: Jason Rasmussen <jrasm91@gmail.com> * Remove exception rethrowing * Simplify partner access check * Create new PartnerController * chore api:generate * Use partnerApi * Remove id from PartnerResponseDto * Refactor PartnerEntity * Rename args * Remove duplicate code in getAll * Create composite primary keys for partners table * Move asset access check into PartnerCore * Remove redundant getUserAssets call * Remove unused getUserAssets method * chore: regenerate api * Simplify getAll * Replace ?? with || * Simplify PartnerRepository.create * Introduce PartnerIds interface * Replace two database migrations with one * Simplify getAll * Change PartnerResponseDto to include UserResponseDto * Move partner sharing endpoints to PartnerController * Rename ShareController to SharedLinkController * chore: regenerate api after rebase * refactor: shared link remove return type * refactor: return user response dto * chore: regenerate open api * refactor: partner getAll * refactor: partner settings event typing * chore: remove unused code * refactor: add partners modal trigger * refactor: update url for viewing partner photos * feat: update partner sharing title * refactor: rename service method names * refactor: http exception logic to service, PartnerIds interface * chore: regenerate open api * test: coverage for domain code * fix: addPartner => createPartner * fix: missed rename * refactor: more code cleanup * chore: alphabetize settings order * feat: stop sharing confirmation modal * Enhance contrast of the email in dark mode * Replace button with CircleIconButton * Fix linter warning * Fix date types for PartnerEntity * Fix PartnerEntity creation * Reset assetStore state * Change layout of the partner's assets page * Add bulk download action for partner's assets --------- Co-authored-by: Jason Rasmussen <jrasm91@gmail.com>
2023-05-15 19:30:53 +02:00
}
},
"security": [
{
"bearer": []
},
{
"cookie": []
},
{
"api_key": []
}
],
"tags": [
"Asset"
feat (server, web): Share with partner (#2388) * feat(server, web): implement share with partner * chore: regenerate api * chore: regenerate api * Pass userId to getAssetCountByTimeBucket and getAssetByTimeBucket * chore: regenerate api * Use AssetGrid to view partner's assets * Remove disableNavBarActions flag * Check access to buckets * Apply suggestions from code review Co-authored-by: Jason Rasmussen <jrasm91@gmail.com> * Remove exception rethrowing * Simplify partner access check * Create new PartnerController * chore api:generate * Use partnerApi * Remove id from PartnerResponseDto * Refactor PartnerEntity * Rename args * Remove duplicate code in getAll * Create composite primary keys for partners table * Move asset access check into PartnerCore * Remove redundant getUserAssets call * Remove unused getUserAssets method * chore: regenerate api * Simplify getAll * Replace ?? with || * Simplify PartnerRepository.create * Introduce PartnerIds interface * Replace two database migrations with one * Simplify getAll * Change PartnerResponseDto to include UserResponseDto * Move partner sharing endpoints to PartnerController * Rename ShareController to SharedLinkController * chore: regenerate api after rebase * refactor: shared link remove return type * refactor: return user response dto * chore: regenerate open api * refactor: partner getAll * refactor: partner settings event typing * chore: remove unused code * refactor: add partners modal trigger * refactor: update url for viewing partner photos * feat: update partner sharing title * refactor: rename service method names * refactor: http exception logic to service, PartnerIds interface * chore: regenerate open api * test: coverage for domain code * fix: addPartner => createPartner * fix: missed rename * refactor: more code cleanup * chore: alphabetize settings order * feat: stop sharing confirmation modal * Enhance contrast of the email in dark mode * Replace button with CircleIconButton * Fix linter warning * Fix date types for PartnerEntity * Fix PartnerEntity creation * Reset assetStore state * Change layout of the partner's assets page * Add bulk download action for partner's assets --------- Co-authored-by: Jason Rasmussen <jrasm91@gmail.com>
2023-05-15 19:30:53 +02:00
]
2023-06-10 06:14:18 +02:00
}
},
"/asset/download/{id}": {
"post": {
2023-06-10 06:14:18 +02:00
"operationId": "downloadFile",
feat (server, web): Share with partner (#2388) * feat(server, web): implement share with partner * chore: regenerate api * chore: regenerate api * Pass userId to getAssetCountByTimeBucket and getAssetByTimeBucket * chore: regenerate api * Use AssetGrid to view partner's assets * Remove disableNavBarActions flag * Check access to buckets * Apply suggestions from code review Co-authored-by: Jason Rasmussen <jrasm91@gmail.com> * Remove exception rethrowing * Simplify partner access check * Create new PartnerController * chore api:generate * Use partnerApi * Remove id from PartnerResponseDto * Refactor PartnerEntity * Rename args * Remove duplicate code in getAll * Create composite primary keys for partners table * Move asset access check into PartnerCore * Remove redundant getUserAssets call * Remove unused getUserAssets method * chore: regenerate api * Simplify getAll * Replace ?? with || * Simplify PartnerRepository.create * Introduce PartnerIds interface * Replace two database migrations with one * Simplify getAll * Change PartnerResponseDto to include UserResponseDto * Move partner sharing endpoints to PartnerController * Rename ShareController to SharedLinkController * chore: regenerate api after rebase * refactor: shared link remove return type * refactor: return user response dto * chore: regenerate open api * refactor: partner getAll * refactor: partner settings event typing * chore: remove unused code * refactor: add partners modal trigger * refactor: update url for viewing partner photos * feat: update partner sharing title * refactor: rename service method names * refactor: http exception logic to service, PartnerIds interface * chore: regenerate open api * test: coverage for domain code * fix: addPartner => createPartner * fix: missed rename * refactor: more code cleanup * chore: alphabetize settings order * feat: stop sharing confirmation modal * Enhance contrast of the email in dark mode * Replace button with CircleIconButton * Fix linter warning * Fix date types for PartnerEntity * Fix PartnerEntity creation * Reset assetStore state * Change layout of the partner's assets page * Add bulk download action for partner's assets --------- Co-authored-by: Jason Rasmussen <jrasm91@gmail.com>
2023-05-15 19:30:53 +02:00
"parameters": [
{
"name": "id",
"required": true,
"in": "path",
"schema": {
"format": "uuid",
"type": "string"
}
2023-06-10 06:14:18 +02:00
},
{
"name": "key",
"required": false,
"in": "query",
"schema": {
"type": "string"
}
feat (server, web): Share with partner (#2388) * feat(server, web): implement share with partner * chore: regenerate api * chore: regenerate api * Pass userId to getAssetCountByTimeBucket and getAssetByTimeBucket * chore: regenerate api * Use AssetGrid to view partner's assets * Remove disableNavBarActions flag * Check access to buckets * Apply suggestions from code review Co-authored-by: Jason Rasmussen <jrasm91@gmail.com> * Remove exception rethrowing * Simplify partner access check * Create new PartnerController * chore api:generate * Use partnerApi * Remove id from PartnerResponseDto * Refactor PartnerEntity * Rename args * Remove duplicate code in getAll * Create composite primary keys for partners table * Move asset access check into PartnerCore * Remove redundant getUserAssets call * Remove unused getUserAssets method * chore: regenerate api * Simplify getAll * Replace ?? with || * Simplify PartnerRepository.create * Introduce PartnerIds interface * Replace two database migrations with one * Simplify getAll * Change PartnerResponseDto to include UserResponseDto * Move partner sharing endpoints to PartnerController * Rename ShareController to SharedLinkController * chore: regenerate api after rebase * refactor: shared link remove return type * refactor: return user response dto * chore: regenerate open api * refactor: partner getAll * refactor: partner settings event typing * chore: remove unused code * refactor: add partners modal trigger * refactor: update url for viewing partner photos * feat: update partner sharing title * refactor: rename service method names * refactor: http exception logic to service, PartnerIds interface * chore: regenerate open api * test: coverage for domain code * fix: addPartner => createPartner * fix: missed rename * refactor: more code cleanup * chore: alphabetize settings order * feat: stop sharing confirmation modal * Enhance contrast of the email in dark mode * Replace button with CircleIconButton * Fix linter warning * Fix date types for PartnerEntity * Fix PartnerEntity creation * Reset assetStore state * Change layout of the partner's assets page * Add bulk download action for partner's assets --------- Co-authored-by: Jason Rasmussen <jrasm91@gmail.com>
2023-05-15 19:30:53 +02:00
}
],
"responses": {
"200": {
2023-06-10 06:14:18 +02:00
"content": {
"application/octet-stream": {
"schema": {
"format": "binary",
"type": "string"
2023-06-10 06:14:18 +02:00
}
}
},
feat (server, web): Share with partner (#2388) * feat(server, web): implement share with partner * chore: regenerate api * chore: regenerate api * Pass userId to getAssetCountByTimeBucket and getAssetByTimeBucket * chore: regenerate api * Use AssetGrid to view partner's assets * Remove disableNavBarActions flag * Check access to buckets * Apply suggestions from code review Co-authored-by: Jason Rasmussen <jrasm91@gmail.com> * Remove exception rethrowing * Simplify partner access check * Create new PartnerController * chore api:generate * Use partnerApi * Remove id from PartnerResponseDto * Refactor PartnerEntity * Rename args * Remove duplicate code in getAll * Create composite primary keys for partners table * Move asset access check into PartnerCore * Remove redundant getUserAssets call * Remove unused getUserAssets method * chore: regenerate api * Simplify getAll * Replace ?? with || * Simplify PartnerRepository.create * Introduce PartnerIds interface * Replace two database migrations with one * Simplify getAll * Change PartnerResponseDto to include UserResponseDto * Move partner sharing endpoints to PartnerController * Rename ShareController to SharedLinkController * chore: regenerate api after rebase * refactor: shared link remove return type * refactor: return user response dto * chore: regenerate open api * refactor: partner getAll * refactor: partner settings event typing * chore: remove unused code * refactor: add partners modal trigger * refactor: update url for viewing partner photos * feat: update partner sharing title * refactor: rename service method names * refactor: http exception logic to service, PartnerIds interface * chore: regenerate open api * test: coverage for domain code * fix: addPartner => createPartner * fix: missed rename * refactor: more code cleanup * chore: alphabetize settings order * feat: stop sharing confirmation modal * Enhance contrast of the email in dark mode * Replace button with CircleIconButton * Fix linter warning * Fix date types for PartnerEntity * Fix PartnerEntity creation * Reset assetStore state * Change layout of the partner's assets page * Add bulk download action for partner's assets --------- Co-authored-by: Jason Rasmussen <jrasm91@gmail.com>
2023-05-15 19:30:53 +02:00
"description": ""
}
},
"security": [
{
"bearer": []
},
{
"cookie": []
},
{
"api_key": []
}
],
"tags": [
"Asset"
feat (server, web): Share with partner (#2388) * feat(server, web): implement share with partner * chore: regenerate api * chore: regenerate api * Pass userId to getAssetCountByTimeBucket and getAssetByTimeBucket * chore: regenerate api * Use AssetGrid to view partner's assets * Remove disableNavBarActions flag * Check access to buckets * Apply suggestions from code review Co-authored-by: Jason Rasmussen <jrasm91@gmail.com> * Remove exception rethrowing * Simplify partner access check * Create new PartnerController * chore api:generate * Use partnerApi * Remove id from PartnerResponseDto * Refactor PartnerEntity * Rename args * Remove duplicate code in getAll * Create composite primary keys for partners table * Move asset access check into PartnerCore * Remove redundant getUserAssets call * Remove unused getUserAssets method * chore: regenerate api * Simplify getAll * Replace ?? with || * Simplify PartnerRepository.create * Introduce PartnerIds interface * Replace two database migrations with one * Simplify getAll * Change PartnerResponseDto to include UserResponseDto * Move partner sharing endpoints to PartnerController * Rename ShareController to SharedLinkController * chore: regenerate api after rebase * refactor: shared link remove return type * refactor: return user response dto * chore: regenerate open api * refactor: partner getAll * refactor: partner settings event typing * chore: remove unused code * refactor: add partners modal trigger * refactor: update url for viewing partner photos * feat: update partner sharing title * refactor: rename service method names * refactor: http exception logic to service, PartnerIds interface * chore: regenerate open api * test: coverage for domain code * fix: addPartner => createPartner * fix: missed rename * refactor: more code cleanup * chore: alphabetize settings order * feat: stop sharing confirmation modal * Enhance contrast of the email in dark mode * Replace button with CircleIconButton * Fix linter warning * Fix date types for PartnerEntity * Fix PartnerEntity creation * Reset assetStore state * Change layout of the partner's assets page * Add bulk download action for partner's assets --------- Co-authored-by: Jason Rasmussen <jrasm91@gmail.com>
2023-05-15 19:30:53 +02:00
]
}
},
2023-06-10 06:14:18 +02:00
"/asset/exist": {
"post": {
"description": "Checks if multiple assets exist on the server and returns all existing - used by background backup",
"operationId": "checkExistingAssets",
2023-06-10 06:14:18 +02:00
"parameters": [],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CheckExistingAssetsDto"
}
}
},
"required": true
2023-06-10 06:14:18 +02:00
},
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CheckExistingAssetsResponseDto"
}
}
},
"description": ""
2023-06-10 06:14:18 +02:00
}
},
"security": [
{
2023-06-10 06:14:18 +02:00
"bearer": []
},
{
2023-06-10 06:14:18 +02:00
"cookie": []
},
{
2023-06-10 06:14:18 +02:00
"api_key": []
}
],
"tags": [
"Asset"
2023-06-10 06:14:18 +02:00
]
}
},
"/asset/file/{id}": {
"get": {
"operationId": "serveFile",
"parameters": [
{
2023-06-10 06:14:18 +02:00
"name": "isThumb",
"required": false,
"in": "query",
"schema": {
2023-06-10 06:14:18 +02:00
"title": "Is serve thumbnail (resize) file",
"type": "boolean"
}
},
{
2023-06-10 06:14:18 +02:00
"name": "isWeb",
"required": false,
"in": "query",
"schema": {
2023-06-10 06:14:18 +02:00
"title": "Is request made from web",
"type": "boolean"
}
},
{
2023-06-10 06:14:18 +02:00
"name": "id",
"required": true,
"in": "path",
"schema": {
2023-06-10 06:14:18 +02:00
"format": "uuid",
"type": "string"
}
},
{
2023-06-10 06:14:18 +02:00
"name": "key",
"required": false,
"in": "query",
"schema": {
"type": "string"
}
2023-06-10 06:14:18 +02:00
}
],
"responses": {
"200": {
"content": {
"application/octet-stream": {
"schema": {
"format": "binary",
"type": "string"
}
}
},
2023-06-10 06:14:18 +02:00
"description": ""
}
},
"security": [
{
2023-06-10 06:14:18 +02:00
"bearer": []
},
{
2023-06-10 06:14:18 +02:00
"cookie": []
},
{
2023-06-10 06:14:18 +02:00
"api_key": []
}
],
"tags": [
"Asset"
2023-06-10 06:14:18 +02:00
]
}
},
feat(server): support for read-only assets and importing existing items in the filesystem (#2715) * Added read-only flag for assets, endpoint to trigger file import vs upload * updated fixtures with new property * if upload is 'read-only', ensure there is no existing asset at the designated originalPath * added test for file import as well as detecting existing image at read-only destination location * Added storage service test for a case where it should not move read-only assets * upload doesn't need the read-only flag available, just importing * default isReadOnly on import endpoint to true * formatting fixes * create-asset dto needs isReadOnly, so set it to false by default on create, updated api generation * updated code to reflect changes in MR * fixed read stream promise return type * new index for originalPath, check for existing path on import, reglardless of user, to prevent duplicates * refactor: import asset * chore: open api * chore: tests * Added externalPath support for individual users, updated UI to allow this to be set by admin * added missing var for externalPath in ui * chore: open api * fix: compilation issues * fix: server test * built api, fixed user-response dto to include externalPath * reverted accidental commit * bad commit of duplicate externalPath in user response dto * fixed tests to include externalPath on expected result * fix: unit tests * centralized supported filetypes, perform file type checking of asset and sidecar during file import process * centralized supported filetype check method to keep regex DRY * fixed typo * combined migrations into one * update api * Removed externalPath from shared-link code, added column to admin user page whether external paths / import is enabled or not * update mimetype * Fixed detect correct mimetype * revert asset-upload config * reverted domain.constant * refactor * fix mime-type issue * fix format --------- Co-authored-by: Jason Rasmussen <jrasm91@gmail.com> Co-authored-by: Alex Tran <alex.tran1502@gmail.com>
2023-06-22 04:33:20 +02:00
"/asset/import": {
"post": {
"operationId": "importFile",
"parameters": [],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ImportAssetDto"
}
}
},
"required": true
feat(server): support for read-only assets and importing existing items in the filesystem (#2715) * Added read-only flag for assets, endpoint to trigger file import vs upload * updated fixtures with new property * if upload is 'read-only', ensure there is no existing asset at the designated originalPath * added test for file import as well as detecting existing image at read-only destination location * Added storage service test for a case where it should not move read-only assets * upload doesn't need the read-only flag available, just importing * default isReadOnly on import endpoint to true * formatting fixes * create-asset dto needs isReadOnly, so set it to false by default on create, updated api generation * updated code to reflect changes in MR * fixed read stream promise return type * new index for originalPath, check for existing path on import, reglardless of user, to prevent duplicates * refactor: import asset * chore: open api * chore: tests * Added externalPath support for individual users, updated UI to allow this to be set by admin * added missing var for externalPath in ui * chore: open api * fix: compilation issues * fix: server test * built api, fixed user-response dto to include externalPath * reverted accidental commit * bad commit of duplicate externalPath in user response dto * fixed tests to include externalPath on expected result * fix: unit tests * centralized supported filetypes, perform file type checking of asset and sidecar during file import process * centralized supported filetype check method to keep regex DRY * fixed typo * combined migrations into one * update api * Removed externalPath from shared-link code, added column to admin user page whether external paths / import is enabled or not * update mimetype * Fixed detect correct mimetype * revert asset-upload config * reverted domain.constant * refactor * fix mime-type issue * fix format --------- Co-authored-by: Jason Rasmussen <jrasm91@gmail.com> Co-authored-by: Alex Tran <alex.tran1502@gmail.com>
2023-06-22 04:33:20 +02:00
},
"responses": {
"201": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AssetFileUploadResponseDto"
}
}
},
"description": ""
feat(server): support for read-only assets and importing existing items in the filesystem (#2715) * Added read-only flag for assets, endpoint to trigger file import vs upload * updated fixtures with new property * if upload is 'read-only', ensure there is no existing asset at the designated originalPath * added test for file import as well as detecting existing image at read-only destination location * Added storage service test for a case where it should not move read-only assets * upload doesn't need the read-only flag available, just importing * default isReadOnly on import endpoint to true * formatting fixes * create-asset dto needs isReadOnly, so set it to false by default on create, updated api generation * updated code to reflect changes in MR * fixed read stream promise return type * new index for originalPath, check for existing path on import, reglardless of user, to prevent duplicates * refactor: import asset * chore: open api * chore: tests * Added externalPath support for individual users, updated UI to allow this to be set by admin * added missing var for externalPath in ui * chore: open api * fix: compilation issues * fix: server test * built api, fixed user-response dto to include externalPath * reverted accidental commit * bad commit of duplicate externalPath in user response dto * fixed tests to include externalPath on expected result * fix: unit tests * centralized supported filetypes, perform file type checking of asset and sidecar during file import process * centralized supported filetype check method to keep regex DRY * fixed typo * combined migrations into one * update api * Removed externalPath from shared-link code, added column to admin user page whether external paths / import is enabled or not * update mimetype * Fixed detect correct mimetype * revert asset-upload config * reverted domain.constant * refactor * fix mime-type issue * fix format --------- Co-authored-by: Jason Rasmussen <jrasm91@gmail.com> Co-authored-by: Alex Tran <alex.tran1502@gmail.com>
2023-06-22 04:33:20 +02:00
}
},
"security": [
{
"bearer": []
},
{
"cookie": []
},
{
"api_key": []
}
],
"tags": [
"Asset"
feat(server): support for read-only assets and importing existing items in the filesystem (#2715) * Added read-only flag for assets, endpoint to trigger file import vs upload * updated fixtures with new property * if upload is 'read-only', ensure there is no existing asset at the designated originalPath * added test for file import as well as detecting existing image at read-only destination location * Added storage service test for a case where it should not move read-only assets * upload doesn't need the read-only flag available, just importing * default isReadOnly on import endpoint to true * formatting fixes * create-asset dto needs isReadOnly, so set it to false by default on create, updated api generation * updated code to reflect changes in MR * fixed read stream promise return type * new index for originalPath, check for existing path on import, reglardless of user, to prevent duplicates * refactor: import asset * chore: open api * chore: tests * Added externalPath support for individual users, updated UI to allow this to be set by admin * added missing var for externalPath in ui * chore: open api * fix: compilation issues * fix: server test * built api, fixed user-response dto to include externalPath * reverted accidental commit * bad commit of duplicate externalPath in user response dto * fixed tests to include externalPath on expected result * fix: unit tests * centralized supported filetypes, perform file type checking of asset and sidecar during file import process * centralized supported filetype check method to keep regex DRY * fixed typo * combined migrations into one * update api * Removed externalPath from shared-link code, added column to admin user page whether external paths / import is enabled or not * update mimetype * Fixed detect correct mimetype * revert asset-upload config * reverted domain.constant * refactor * fix mime-type issue * fix format --------- Co-authored-by: Jason Rasmussen <jrasm91@gmail.com> Co-authored-by: Alex Tran <alex.tran1502@gmail.com>
2023-06-22 04:33:20 +02:00
]
}
},
2023-06-10 06:14:18 +02:00
"/asset/map-marker": {
"get": {
"operationId": "getMapMarkers",
"parameters": [
{
2023-06-10 06:14:18 +02:00
"name": "isFavorite",
"required": false,
"in": "query",
"schema": {
2023-06-10 06:14:18 +02:00
"type": "boolean"
}
},
{
2023-06-10 06:14:18 +02:00
"name": "fileCreatedAfter",
"required": false,
"in": "query",
"schema": {
2023-06-10 06:14:18 +02:00
"format": "date-time",
"type": "string"
}
},
{
2023-06-10 06:14:18 +02:00
"name": "fileCreatedBefore",
"required": false,
"in": "query",
"schema": {
2023-06-10 06:14:18 +02:00
"format": "date-time",
"type": "string"
}
}
],
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
2023-06-10 06:14:18 +02:00
"items": {
"$ref": "#/components/schemas/MapMarkerResponseDto"
},
"type": "array"
}
}
},
"description": ""
}
},
"security": [
{
"bearer": []
},
{
"cookie": []
},
{
"api_key": []
}
],
"tags": [
"Asset"
]
}
},
"/asset/memory-lane": {
"get": {
"operationId": "getMemoryLane",
"parameters": [
{
"name": "timestamp",
"required": true,
"in": "query",
"description": "Get pictures for +24 hours from this time going back x years",
"schema": {
"format": "date-time",
"type": "string"
}
}
],
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"items": {
"$ref": "#/components/schemas/MemoryLaneResponseDto"
},
"type": "array"
}
}
},
"description": ""
}
},
"security": [
{
"bearer": []
},
{
"cookie": []
},
{
"api_key": []
}
],
"tags": [
"Asset"
]
}
},
2023-06-10 06:14:18 +02:00
"/asset/search": {
"post": {
"operationId": "searchAsset",
"parameters": [],
2023-06-10 06:14:18 +02:00
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SearchAssetDto"
}
}
},
"required": true
2023-06-10 06:14:18 +02:00
},
"responses": {
"200": {
2023-06-10 06:14:18 +02:00
"content": {
"application/json": {
"schema": {
"items": {
"$ref": "#/components/schemas/AssetResponseDto"
},
"type": "array"
}
}
},
"description": ""
}
},
"security": [
{
"bearer": []
},
{
"cookie": []
},
{
"api_key": []
}
],
"tags": [
"Asset"
]
}
},
2023-06-10 06:14:18 +02:00
"/asset/search-terms": {
"get": {
2023-06-10 06:14:18 +02:00
"operationId": "getAssetSearchTerms",
"parameters": [],
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"items": {
2023-06-10 06:14:18 +02:00
"type": "string"
},
"type": "array"
}
}
},
"description": ""
}
},
"security": [
{
"bearer": []
},
{
"cookie": []
},
{
"api_key": []
}
],
"tags": [
"Asset"
]
}
},
"/asset/statistics": {
"get": {
"operationId": "getAssetStats",
"parameters": [
{
"name": "isArchived",
"required": false,
"in": "query",
"schema": {
"type": "boolean"
}
},
{
"name": "isFavorite",
"required": false,
"in": "query",
"schema": {
"type": "boolean"
}
}
],
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AssetStatsResponseDto"
}
}
},
"description": ""
}
},
"security": [
{
"bearer": []
},
{
"cookie": []
},
{
"api_key": []
}
],
"tags": [
"Asset"
]
}
},
2023-06-10 06:14:18 +02:00
"/asset/thumbnail/{id}": {
"get": {
2023-06-10 06:14:18 +02:00
"operationId": "getAssetThumbnail",
"parameters": [
2023-06-10 06:14:18 +02:00
{
"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"
}
}
],
"responses": {
"200": {
"content": {
"image/jpeg": {
"schema": {
"format": "binary",
"type": "string"
}
},
"image/webp": {
"schema": {
"format": "binary",
"type": "string"
}
}
},
2023-06-10 06:14:18 +02:00
"description": ""
}
},
"security": [
{
"bearer": []
},
{
"cookie": []
},
{
"api_key": []
}
],
"tags": [
"Asset"
]
}
},
2023-06-10 06:14:18 +02:00
"/asset/time-bucket": {
"post": {
"operationId": "getAssetByTimeBucket",
"parameters": [],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/GetAssetByTimeBucketDto"
}
}
},
"required": true
2023-06-10 06:14:18 +02:00
},
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
2023-06-10 06:14:18 +02:00
"items": {
"$ref": "#/components/schemas/AssetResponseDto"
},
"type": "array"
}
}
},
"description": ""
}
},
"security": [
{
"bearer": []
},
{
"cookie": []
},
{
"api_key": []
}
],
"tags": [
"Asset"
]
2023-06-10 06:14:18 +02:00
}
},
"/asset/upload": {
"post": {
"operationId": "uploadFile",
"parameters": [
{
2023-06-10 06:14:18 +02:00
"name": "key",
"required": false,
"in": "query",
"schema": {
"type": "string"
}
}
],
"requestBody": {
"content": {
2023-06-10 06:14:18 +02:00
"multipart/form-data": {
"schema": {
2023-06-10 06:14:18 +02:00
"$ref": "#/components/schemas/CreateAssetDto"
}
}
},
"description": "Asset Upload Information",
"required": true
},
"responses": {
2023-06-10 06:14:18 +02:00
"201": {
"content": {
"application/json": {
"schema": {
2023-06-10 06:14:18 +02:00
"$ref": "#/components/schemas/AssetFileUploadResponseDto"
}
}
},
"description": ""
}
},
"security": [
{
"bearer": []
},
{
"cookie": []
},
{
"api_key": []
}
],
"tags": [
"Asset"
]
2023-06-10 06:14:18 +02:00
}
},
"/asset/{deviceId}": {
"get": {
"description": "Get all asset of a device that are in the database, ID only.",
"operationId": "getUserAssetsByDeviceId",
"parameters": [
{
2023-06-10 06:14:18 +02:00
"name": "deviceId",
"required": true,
"in": "path",
"schema": {
"format": "uuid",
"type": "string"
}
}
],
"responses": {
"200": {
2023-06-10 06:14:18 +02:00
"content": {
"application/json": {
"schema": {
"items": {
"type": "string"
},
"type": "array"
2023-06-10 06:14:18 +02:00
}
}
},
"description": ""
2023-06-10 06:14:18 +02:00
}
},
"security": [
{
"bearer": []
},
{
"cookie": []
},
{
"api_key": []
}
],
"tags": [
"Asset"
]
}
},
2023-06-10 06:14:18 +02:00
"/asset/{id}": {
"put": {
"description": "Update an asset",
"operationId": "updateAsset",
2023-06-10 06:14:18 +02:00
"parameters": [
{
"name": "id",
"required": true,
"in": "path",
"schema": {
"format": "uuid",
"type": "string"
}
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UpdateAssetDto"
}
}
},
"required": true
2023-06-10 06:14:18 +02:00
},
2022-12-05 19:56:44 +02:00
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
2023-06-10 06:14:18 +02:00
"$ref": "#/components/schemas/AssetResponseDto"
2022-12-05 19:56:44 +02:00
}
}
},
"description": ""
2022-12-05 19:56:44 +02:00
}
},
"security": [
{
"bearer": []
},
{
"cookie": []
},
{
"api_key": []
2022-12-05 19:56:44 +02:00
}
],
"tags": [
"Asset"
2022-12-05 19:56:44 +02:00
]
2023-06-10 06:14:18 +02:00
}
},
"/auth/admin-sign-up": {
"post": {
"operationId": "adminSignUp",
"parameters": [],
"requestBody": {
"content": {
"application/json": {
"schema": {
2023-06-10 06:14:18 +02:00
"$ref": "#/components/schemas/SignUpDto"
}
}
},
"required": true
},
2022-12-05 19:56:44 +02:00
"responses": {
2023-06-10 06:14:18 +02:00
"201": {
2022-12-05 19:56:44 +02:00
"content": {
"application/json": {
"schema": {
2023-06-10 06:14:18 +02:00
"$ref": "#/components/schemas/AdminSignupResponseDto"
}
}
},
"description": ""
2023-06-10 06:14:18 +02:00
},
"400": {
"description": "The server already has an admin"
}
},
"tags": [
"Authentication"
]
}
},
"/auth/change-password": {
"post": {
"operationId": "changePassword",
"parameters": [],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ChangePasswordDto"
}
}
},
"required": true
2023-06-10 06:14:18 +02:00
},
"responses": {
"200": {
2023-06-10 06:14:18 +02:00
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UserResponseDto"
2022-12-05 19:56:44 +02:00
}
}
},
"description": ""
2022-12-05 19:56:44 +02:00
}
},
"security": [
2022-12-05 19:56:44 +02:00
{
"bearer": []
},
{
"cookie": []
},
{
"api_key": []
}
],
"tags": [
"Authentication"
]
}
},
2023-06-10 06:14:18 +02:00
"/auth/devices": {
"delete": {
"operationId": "logoutAuthDevices",
"parameters": [],
"responses": {
"204": {
"description": ""
2022-12-05 19:56:44 +02:00
}
},
"security": [
{
"bearer": []
},
{
"cookie": []
},
{
"api_key": []
}
],
"tags": [
"Authentication"
]
2023-06-10 06:14:18 +02:00
},
"get": {
"operationId": "getAuthDevices",
"parameters": [],
2022-12-05 19:56:44 +02:00
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"items": {
"$ref": "#/components/schemas/AuthDeviceResponseDto"
},
"type": "array"
}
}
},
2023-06-10 06:14:18 +02:00
"description": ""
}
},
"security": [
{
"bearer": []
},
{
"cookie": []
},
{
"api_key": []
}
],
"tags": [
"Authentication"
2023-06-10 06:14:18 +02:00
]
}
},
"/auth/devices/{id}": {
"delete": {
"operationId": "logoutAuthDevice",
"parameters": [
{
"name": "id",
"required": true,
"in": "path",
"schema": {
"format": "uuid",
"type": "string"
2022-12-05 19:56:44 +02:00
}
}
2023-06-10 06:14:18 +02:00
],
"responses": {
"204": {
2023-06-10 06:14:18 +02:00
"description": ""
}
2022-12-05 19:56:44 +02:00
},
"security": [
{
"bearer": []
},
{
"cookie": []
},
{
"api_key": []
2022-12-05 19:56:44 +02:00
}
],
"tags": [
"Authentication"
2022-12-05 19:56:44 +02:00
]
}
},
2023-06-10 06:14:18 +02:00
"/auth/login": {
"post": {
2023-06-10 06:14:18 +02:00
"operationId": "login",
"parameters": [],
"requestBody": {
"content": {
"application/json": {
"schema": {
2023-06-10 06:14:18 +02:00
"$ref": "#/components/schemas/LoginCredentialDto"
}
}
},
"required": true
},
"responses": {
"201": {
"content": {
"application/json": {
"schema": {
2023-06-10 06:14:18 +02:00
"$ref": "#/components/schemas/LoginResponseDto"
}
}
},
"description": ""
}
},
"tags": [
2023-06-10 06:14:18 +02:00
"Authentication"
]
}
},
"/auth/logout": {
"post": {
"operationId": "logout",
"parameters": [],
"responses": {
"200": {
2023-06-10 06:14:18 +02:00
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/LogoutResponseDto"
}
}
},
"description": ""
2023-06-10 06:14:18 +02:00
}
},
"security": [
{
"bearer": []
},
{
"cookie": []
},
{
"api_key": []
}
],
"tags": [
"Authentication"
]
2023-06-10 06:14:18 +02:00
}
},
"/auth/validateToken": {
"post": {
"operationId": "validateAccessToken",
"parameters": [],
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
2023-06-10 06:14:18 +02:00
"$ref": "#/components/schemas/ValidateAccessTokenResponseDto"
}
}
},
"description": ""
}
},
"security": [
{
"bearer": []
},
{
"cookie": []
},
{
"api_key": []
}
],
"tags": [
"Authentication"
]
}
},
2023-06-10 06:14:18 +02:00
"/jobs": {
"get": {
2023-06-10 06:14:18 +02:00
"operationId": "getAllJobsStatus",
"parameters": [],
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
2023-06-10 06:14:18 +02:00
"$ref": "#/components/schemas/AllJobStatusResponseDto"
}
}
},
"description": ""
}
},
"security": [
{
"bearer": []
},
{
"cookie": []
},
{
"api_key": []
}
],
"tags": [
"Job"
]
2023-06-10 06:14:18 +02:00
}
},
"/jobs/{id}": {
2023-06-10 06:14:18 +02:00
"put": {
"operationId": "sendJobCommand",
"parameters": [
{
"name": "id",
"required": true,
"in": "path",
"schema": {
2023-06-10 06:14:18 +02:00
"$ref": "#/components/schemas/JobName"
}
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
2023-06-10 06:14:18 +02:00
"$ref": "#/components/schemas/JobCommandDto"
}
}
},
"required": true
},
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
2023-06-10 06:14:18 +02:00
"$ref": "#/components/schemas/JobStatusDto"
}
}
},
"description": ""
}
},
"security": [
{
"bearer": []
},
{
"cookie": []
},
{
"api_key": []
}
],
"tags": [
"Job"
]
2023-06-10 06:14:18 +02:00
}
},
"/oauth/callback": {
"post": {
"operationId": "callback",
"parameters": [],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/OAuthCallbackDto"
}
}
},
"required": true
2023-06-10 06:14:18 +02:00
},
"responses": {
"201": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/LoginResponseDto"
}
}
},
"description": ""
2023-06-10 06:14:18 +02:00
}
},
"tags": [
"OAuth"
]
}
},
"/oauth/config": {
"post": {
"operationId": "generateConfig",
"parameters": [],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/OAuthConfigDto"
}
}
},
"required": true
2023-06-10 06:14:18 +02:00
},
"responses": {
"201": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/OAuthConfigResponseDto"
}
}
},
"description": ""
2023-06-10 06:14:18 +02:00
}
},
"tags": [
"OAuth"
]
}
},
"/oauth/link": {
"post": {
"operationId": "link",
"parameters": [],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/OAuthCallbackDto"
}
}
},
"required": true
2023-06-10 06:14:18 +02:00
},
"responses": {
"201": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UserResponseDto"
}
}
},
"description": ""
}
2023-06-10 06:14:18 +02:00
},
"security": [
{
"bearer": []
},
{
"cookie": []
},
{
"api_key": []
}
],
"tags": [
"OAuth"
2023-06-10 06:14:18 +02:00
]
}
},
"/oauth/mobile-redirect": {
"get": {
"operationId": "mobileRedirect",
"parameters": [],
"responses": {
"200": {
"description": ""
}
},
"tags": [
2023-06-10 06:14:18 +02:00
"OAuth"
]
}
},
"/oauth/unlink": {
"post": {
"operationId": "unlink",
"parameters": [],
"responses": {
"201": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UserResponseDto"
}
}
},
"description": ""
2023-06-10 06:14:18 +02:00
}
},
"security": [
{
"bearer": []
},
{
"cookie": []
},
{
"api_key": []
}
],
"tags": [
"OAuth"
]
}
},
2023-06-10 06:14:18 +02:00
"/partner": {
"get": {
2023-06-10 06:14:18 +02:00
"operationId": "getPartners",
"parameters": [
{
2023-06-10 06:14:18 +02:00
"name": "direction",
"required": true,
2023-06-10 06:14:18 +02:00
"in": "query",
"schema": {
2023-06-10 06:14:18 +02:00
"enum": [
"shared-by",
"shared-with"
],
"type": "string"
}
}
],
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"items": {
2023-06-10 06:14:18 +02:00
"$ref": "#/components/schemas/UserResponseDto"
},
"type": "array"
}
}
},
"description": ""
}
},
"security": [
{
"bearer": []
},
{
"cookie": []
},
{
"api_key": []
}
],
"tags": [
"Partner"
]
2023-06-10 06:14:18 +02:00
}
},
"/partner/{id}": {
"delete": {
"operationId": "removePartner",
"parameters": [
{
"name": "id",
"required": true,
"in": "path",
"schema": {
"format": "uuid",
"type": "string"
}
}
],
"responses": {
"200": {
"description": ""
}
},
"security": [
{
"bearer": []
},
{
"cookie": []
},
{
"api_key": []
}
],
"tags": [
"Partner"
]
},
"post": {
"operationId": "createPartner",
"parameters": [
{
"name": "id",
"required": true,
"in": "path",
"schema": {
"format": "uuid",
"type": "string"
}
}
],
2023-06-10 06:14:18 +02:00
"responses": {
"201": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UserResponseDto"
}
}
},
2023-06-10 06:14:18 +02:00
"description": ""
}
},
2023-06-10 06:14:18 +02:00
"security": [
{
"bearer": []
},
{
"cookie": []
},
{
"api_key": []
}
],
"tags": [
"Partner"
2023-06-10 06:14:18 +02:00
]
}
},
"/person": {
"get": {
"operationId": "getAllPeople",
"parameters": [
{
"name": "withHidden",
"required": false,
"in": "query",
"schema": {
"default": false,
"type": "boolean"
}
}
],
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PeopleResponseDto"
}
}
},
"description": ""
}
},
"security": [
{
"bearer": []
},
{
"cookie": []
},
{
"api_key": []
}
],
"tags": [
"Person"
]
},
"put": {
"operationId": "updatePeople",
"parameters": [],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PeopleUpdateDto"
}
}
},
"required": true
},
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"items": {
"$ref": "#/components/schemas/BulkIdResponseDto"
},
"type": "array"
}
}
},
"description": ""
}
},
"security": [
{
"bearer": []
},
{
"cookie": []
},
{
"api_key": []
}
],
"tags": [
"Person"
]
}
},
2023-06-10 06:14:18 +02:00
"/person/{id}": {
"get": {
2023-06-10 06:14:18 +02:00
"operationId": "getPerson",
2022-12-05 19:56:44 +02:00
"parameters": [
{
2023-06-10 06:14:18 +02:00
"name": "id",
2022-12-05 19:56:44 +02:00
"required": true,
2023-06-10 06:14:18 +02:00
"in": "path",
2022-12-05 19:56:44 +02:00
"schema": {
2023-06-10 06:14:18 +02:00
"format": "uuid",
"type": "string"
2022-12-05 19:56:44 +02:00
}
}
],
"responses": {
"200": {
2022-12-05 19:56:44 +02:00
"content": {
"application/json": {
"schema": {
2023-06-10 06:14:18 +02:00
"$ref": "#/components/schemas/PersonResponseDto"
2022-12-05 19:56:44 +02:00
}
}
},
"description": ""
2022-12-05 19:56:44 +02:00
}
},
"security": [
{
"bearer": []
},
{
"cookie": []
},
{
"api_key": []
2022-12-05 19:56:44 +02:00
}
],
"tags": [
"Person"
2022-12-05 19:56:44 +02:00
]
},
2023-06-10 06:14:18 +02:00
"put": {
"operationId": "updatePerson",
"parameters": [
{
"name": "id",
"required": true,
"in": "path",
"schema": {
"format": "uuid",
"type": "string"
}
}
],
2022-12-05 19:56:44 +02:00
"requestBody": {
"content": {
"application/json": {
2022-12-05 19:56:44 +02:00
"schema": {
2023-06-10 06:14:18 +02:00
"$ref": "#/components/schemas/PersonUpdateDto"
2022-12-05 19:56:44 +02:00
}
}
},
"required": true
2022-12-05 19:56:44 +02:00
},
"responses": {
2023-06-10 06:14:18 +02:00
"200": {
2022-12-05 19:56:44 +02:00
"content": {
"application/json": {
"schema": {
2023-06-10 06:14:18 +02:00
"$ref": "#/components/schemas/PersonResponseDto"
2022-12-05 19:56:44 +02:00
}
}
},
"description": ""
2022-12-05 19:56:44 +02:00
}
},
"security": [
{
"bearer": []
},
{
"cookie": []
},
{
"api_key": []
2022-12-05 19:56:44 +02:00
}
],
"tags": [
"Person"
2022-12-05 19:56:44 +02:00
]
2023-06-10 06:14:18 +02:00
}
},
"/person/{id}/assets": {
"get": {
"operationId": "getPersonAssets",
"parameters": [
{
"name": "id",
"required": true,
"in": "path",
"schema": {
"format": "uuid",
"type": "string"
2022-12-05 19:56:44 +02:00
}
}
2023-06-10 06:14:18 +02:00
],
2022-12-05 19:56:44 +02:00
"responses": {
"200": {
2022-12-05 19:56:44 +02:00
"content": {
"application/json": {
"schema": {
2023-06-10 06:14:18 +02:00
"items": {
"$ref": "#/components/schemas/AssetResponseDto"
},
"type": "array"
2022-12-05 19:56:44 +02:00
}
}
},
"description": ""
2022-12-05 19:56:44 +02:00
}
},
"security": [
{
"bearer": []
},
{
"cookie": []
},
{
"api_key": []
2022-12-05 19:56:44 +02:00
}
],
"tags": [
"Person"
2022-12-05 19:56:44 +02:00
]
}
},
"/person/{id}/merge": {
"post": {
"operationId": "mergePerson",
"parameters": [
{
"name": "id",
"required": true,
"in": "path",
"schema": {
"format": "uuid",
"type": "string"
}
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/MergePersonDto"
}
}
},
"required": true
},
"responses": {
"201": {
"content": {
"application/json": {
"schema": {
"items": {
"$ref": "#/components/schemas/BulkIdResponseDto"
},
"type": "array"
}
}
},
"description": ""
}
},
"security": [
{
"bearer": []
},
{
"cookie": []
},
{
"api_key": []
}
],
"tags": [
"Person"
]
}
},
2023-06-10 06:14:18 +02:00
"/person/{id}/thumbnail": {
2022-12-05 19:56:44 +02:00
"get": {
2023-06-10 06:14:18 +02:00
"operationId": "getPersonThumbnail",
2022-12-05 19:56:44 +02:00
"parameters": [
{
2023-06-10 06:14:18 +02:00
"name": "id",
2022-12-05 19:56:44 +02:00
"required": true,
"in": "path",
"schema": {
"format": "uuid",
2022-12-05 19:56:44 +02:00
"type": "string"
}
}
],
"responses": {
"200": {
"content": {
"image/jpeg": {
"schema": {
"format": "binary",
"type": "string"
}
}
},
2023-06-10 06:14:18 +02:00
"description": ""
2022-12-05 19:56:44 +02:00
}
},
"security": [
{
"bearer": []
},
{
"cookie": []
},
{
"api_key": []
}
],
"tags": [
"Person"
2022-12-05 19:56:44 +02:00
]
}
},
2023-06-10 06:14:18 +02:00
"/search": {
"get": {
2023-06-10 06:14:18 +02:00
"operationId": "search",
"parameters": [
{
"name": "q",
"required": false,
"in": "query",
"schema": {
"type": "string"
}
2023-06-10 06:14:18 +02:00
},
{
2023-06-10 06:14:18 +02:00
"name": "query",
"required": false,
"in": "query",
"schema": {
"type": "string"
}
},
{
2023-06-10 06:14:18 +02:00
"name": "clip",
"required": false,
"in": "query",
"schema": {
"type": "boolean"
}
},
{
2023-06-10 06:14:18 +02:00
"name": "type",
"required": false,
"in": "query",
"schema": {
"enum": [
"IMAGE",
"VIDEO",
"AUDIO",
"OTHER"
],
"type": "string"
}
},
2022-12-05 19:56:44 +02:00
{
2023-06-10 06:14:18 +02:00
"name": "isFavorite",
2022-12-05 19:56:44 +02:00
"required": false,
"in": "query",
"schema": {
"type": "boolean"
2022-12-05 19:56:44 +02:00
}
2023-06-10 06:14:18 +02:00
},
{
"name": "isArchived",
"required": false,
"in": "query",
"schema": {
"type": "boolean"
2022-12-05 19:56:44 +02:00
}
2023-06-10 06:14:18 +02:00
},
2022-12-05 19:56:44 +02:00
{
2023-06-10 06:14:18 +02:00
"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",
2022-12-05 19:56:44 +02:00
"schema": {
"type": "string"
}
2023-06-10 06:14:18 +02:00
},
{
"name": "exifInfo.projectionType",
"required": false,
"in": "query",
"schema": {
"type": "string"
}
},
2023-06-10 06:14:18 +02:00
{
"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"
}
2022-12-05 19:56:44 +02:00
}
],
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
2023-06-10 06:14:18 +02:00
"$ref": "#/components/schemas/SearchResponseDto"
2022-12-05 19:56:44 +02:00
}
}
},
"description": ""
2022-12-05 19:56:44 +02:00
}
},
"security": [
{
"bearer": []
},
{
"cookie": []
},
{
"api_key": []
2022-12-05 19:56:44 +02:00
}
],
"tags": [
"Search"
2022-12-05 19:56:44 +02:00
]
}
},
2023-06-10 06:14:18 +02:00
"/search/config": {
"get": {
"operationId": "getSearchConfig",
"parameters": [],
2022-12-05 19:56:44 +02:00
"responses": {
2023-06-10 06:14:18 +02:00
"200": {
2022-12-05 19:56:44 +02:00
"content": {
"application/json": {
"schema": {
2023-06-10 06:14:18 +02:00
"$ref": "#/components/schemas/SearchConfigResponseDto"
2022-12-05 19:56:44 +02:00
}
}
},
"description": ""
2022-12-05 19:56:44 +02:00
}
},
"security": [
{
"bearer": []
},
{
"cookie": []
},
{
"api_key": []
2022-12-05 19:56:44 +02:00
}
],
"tags": [
"Search"
2022-12-05 19:56:44 +02:00
]
}
},
2023-06-10 06:14:18 +02:00
"/search/explore": {
"get": {
"operationId": "getExploreData",
2022-12-05 19:56:44 +02:00
"parameters": [],
"responses": {
2023-06-10 06:14:18 +02:00
"200": {
2022-12-05 19:56:44 +02:00
"content": {
"application/json": {
"schema": {
2023-06-10 06:14:18 +02:00
"items": {
"$ref": "#/components/schemas/SearchExploreResponseDto"
},
"type": "array"
2022-12-05 19:56:44 +02:00
}
}
},
"description": ""
2022-12-05 19:56:44 +02:00
}
},
"security": [
{
"bearer": []
},
{
"cookie": []
},
{
"api_key": []
2022-12-05 19:56:44 +02:00
}
],
"tags": [
"Search"
2022-12-05 19:56:44 +02:00
]
}
},
2023-06-10 06:14:18 +02:00
"/server-info": {
2022-12-05 19:56:44 +02:00
"get": {
2023-06-10 06:14:18 +02:00
"operationId": "getServerInfo",
"parameters": [],
2022-12-05 19:56:44 +02:00
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
2023-06-10 06:14:18 +02:00
"$ref": "#/components/schemas/ServerInfoResponseDto"
2022-12-05 19:56:44 +02:00
}
}
},
"description": ""
2022-12-05 19:56:44 +02:00
}
},
"security": [
{
"bearer": []
},
{
"cookie": []
},
{
"api_key": []
}
],
"tags": [
"Server Info"
2022-12-05 19:56:44 +02:00
]
}
},
"/server-info/media-types": {
"get": {
"operationId": "getSupportedMediaTypes",
"parameters": [],
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ServerMediaTypesResponseDto"
}
}
},
"description": ""
}
},
"tags": [
"Server Info"
]
}
},
2023-06-10 06:14:18 +02:00
"/server-info/ping": {
2023-05-17 19:07:17 +02:00
"get": {
2023-06-10 06:14:18 +02:00
"operationId": "pingServer",
2023-05-17 19:07:17 +02:00
"parameters": [],
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
2023-06-10 06:14:18 +02:00
"$ref": "#/components/schemas/ServerPingResponse"
2023-05-17 19:07:17 +02:00
}
}
},
"description": ""
2023-05-17 19:07:17 +02:00
}
},
"tags": [
2023-06-10 06:14:18 +02:00
"Server Info"
2023-05-17 19:07:17 +02:00
]
}
},
2023-06-10 06:14:18 +02:00
"/server-info/stats": {
2023-05-17 19:07:17 +02:00
"get": {
2023-06-10 06:14:18 +02:00
"operationId": "getStats",
"parameters": [],
2023-05-17 19:07:17 +02:00
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
2023-06-10 06:14:18 +02:00
"$ref": "#/components/schemas/ServerStatsResponseDto"
2023-05-17 19:07:17 +02:00
}
}
},
"description": ""
2023-05-17 19:07:17 +02:00
}
},
"security": [
{
"bearer": []
},
{
"cookie": []
},
{
"api_key": []
}
],
"tags": [
"Server Info"
2023-05-17 19:07:17 +02:00
]
2023-06-10 06:14:18 +02:00
}
},
"/server-info/version": {
"get": {
"operationId": "getServerVersion",
"parameters": [],
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ServerVersionReponseDto"
}
2023-05-17 19:07:17 +02:00
}
},
"description": ""
2023-05-17 19:07:17 +02:00
}
},
2023-06-10 06:14:18 +02:00
"tags": [
"Server Info"
]
}
},
"/shared-link": {
2023-06-10 06:14:18 +02:00
"get": {
"operationId": "getAllSharedLinks",
"parameters": [],
2023-05-17 19:07:17 +02:00
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
2023-06-10 06:14:18 +02:00
"items": {
"$ref": "#/components/schemas/SharedLinkResponseDto"
},
"type": "array"
2023-05-17 19:07:17 +02:00
}
}
},
"description": ""
2023-05-17 19:07:17 +02:00
}
},
"security": [
{
"bearer": []
},
{
"cookie": []
},
{
"api_key": []
}
],
"tags": [
"Shared Link"
]
},
"post": {
"operationId": "createSharedLink",
"parameters": [],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SharedLinkCreateDto"
}
}
},
"required": true
},
"responses": {
"201": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SharedLinkResponseDto"
}
}
},
"description": ""
}
},
2023-05-17 19:07:17 +02:00
"security": [
{
"bearer": []
},
{
"cookie": []
},
{
"api_key": []
}
],
"tags": [
"Shared Link"
2023-05-17 19:07:17 +02:00
]
}
},
"/shared-link/me": {
2023-05-17 19:07:17 +02:00
"get": {
2023-06-10 06:14:18 +02:00
"operationId": "getMySharedLink",
2023-05-17 19:07:17 +02:00
"parameters": [
{
2023-06-10 06:14:18 +02:00
"name": "key",
"required": false,
"in": "query",
2023-05-17 19:07:17 +02:00
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"content": {
2023-06-10 06:14:18 +02:00
"application/json": {
2023-05-17 19:07:17 +02:00
"schema": {
2023-06-10 06:14:18 +02:00
"$ref": "#/components/schemas/SharedLinkResponseDto"
2023-05-17 19:07:17 +02:00
}
}
},
"description": ""
2023-05-17 19:07:17 +02:00
}
},
"security": [
{
"bearer": []
},
{
"cookie": []
},
{
"api_key": []
}
],
"tags": [
"Shared Link"
2023-05-17 19:07:17 +02:00
]
}
},
"/shared-link/{id}": {
"delete": {
"operationId": "removeSharedLink",
2023-05-17 19:07:17 +02:00
"parameters": [
{
"name": "id",
"required": true,
"in": "path",
"schema": {
"format": "uuid",
"type": "string"
}
}
],
"responses": {
"200": {
"description": ""
2023-05-17 19:07:17 +02:00
}
},
"security": [
{
"bearer": []
},
{
"cookie": []
},
{
"api_key": []
}
],
"tags": [
"Shared Link"
2023-05-17 19:07:17 +02:00
]
2023-06-10 06:14:18 +02:00
},
"get": {
"operationId": "getSharedLinkById",
"parameters": [
{
2023-06-10 06:14:18 +02:00
"name": "id",
"required": true,
"in": "path",
"schema": {
2023-06-10 06:14:18 +02:00
"format": "uuid",
"type": "string"
}
}
],
2022-12-05 19:56:44 +02:00
"responses": {
2023-06-10 06:14:18 +02:00
"200": {
2022-12-05 19:56:44 +02:00
"content": {
"application/json": {
"schema": {
2023-06-10 06:14:18 +02:00
"$ref": "#/components/schemas/SharedLinkResponseDto"
2022-12-05 19:56:44 +02:00
}
}
},
"description": ""
2022-12-05 19:56:44 +02:00
}
},
"security": [
{
"bearer": []
},
{
"cookie": []
},
{
"api_key": []
2022-12-05 19:56:44 +02:00
}
],
"tags": [
"Shared Link"
2022-12-05 19:56:44 +02:00
]
2023-06-10 06:14:18 +02:00
},
"patch": {
"operationId": "updateSharedLink",
"parameters": [
{
"name": "id",
"required": true,
"in": "path",
"schema": {
"format": "uuid",
"type": "string"
2022-12-05 19:56:44 +02:00
}
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SharedLinkEditDto"
}
}
},
"required": true
},
2022-12-05 19:56:44 +02:00
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SharedLinkResponseDto"
}
}
},
"description": ""
2022-12-05 19:56:44 +02:00
}
},
"security": [
{
"bearer": []
},
{
"cookie": []
},
{
"api_key": []
}
],
"tags": [
"Shared Link"
]
}
},
"/shared-link/{id}/assets": {
"delete": {
"operationId": "removeSharedLinkAssets",
"parameters": [
{
"name": "id",
"required": true,
"in": "path",
"schema": {
"format": "uuid",
"type": "string"
}
},
{
"name": "key",
"required": false,
"in": "query",
"schema": {
"type": "string"
}
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AssetIdsDto"
}
}
},
"required": true
},
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"items": {
"$ref": "#/components/schemas/AssetIdsResponseDto"
},
"type": "array"
}
}
},
"description": ""
}
},
"security": [
{
"bearer": []
},
{
"cookie": []
},
{
"api_key": []
}
],
"tags": [
"Shared Link"
]
},
"put": {
"operationId": "addSharedLinkAssets",
"parameters": [
{
"name": "id",
"required": true,
"in": "path",
"schema": {
"format": "uuid",
"type": "string"
}
},
{
"name": "key",
"required": false,
"in": "query",
"schema": {
"type": "string"
}
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AssetIdsDto"
}
}
},
"required": true
},
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"items": {
"$ref": "#/components/schemas/AssetIdsResponseDto"
},
"type": "array"
}
}
},
"description": ""
}
},
2022-12-05 19:56:44 +02:00
"security": [
{
"bearer": []
},
{
"cookie": []
},
{
"api_key": []
2022-12-05 19:56:44 +02:00
}
],
"tags": [
"Shared Link"
2022-12-05 19:56:44 +02:00
]
}
},
2023-06-10 06:14:18 +02:00
"/system-config": {
"get": {
"operationId": "getConfig",
"parameters": [],
2022-12-05 19:56:44 +02:00
"responses": {
"200": {
2022-12-05 19:56:44 +02:00
"content": {
2023-06-10 06:14:18 +02:00
"application/json": {
2022-12-05 19:56:44 +02:00
"schema": {
2023-06-10 06:14:18 +02:00
"$ref": "#/components/schemas/SystemConfigDto"
2022-12-05 19:56:44 +02:00
}
}
},
"description": ""
2022-12-05 19:56:44 +02:00
}
},
"security": [
{
"bearer": []
},
{
"cookie": []
},
{
"api_key": []
2022-12-05 19:56:44 +02:00
}
],
"tags": [
"System Config"
2022-12-05 19:56:44 +02:00
]
2023-06-10 06:14:18 +02:00
},
"put": {
"operationId": "updateConfig",
"parameters": [],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SystemConfigDto"
}
}
},
"required": true
2023-06-10 06:14:18 +02:00
},
2022-12-05 19:56:44 +02:00
"responses": {
"200": {
"content": {
2023-06-10 06:14:18 +02:00
"application/json": {
2022-12-05 19:56:44 +02:00
"schema": {
2023-06-10 06:14:18 +02:00
"$ref": "#/components/schemas/SystemConfigDto"
2022-12-05 19:56:44 +02:00
}
}
},
"description": ""
2022-12-05 19:56:44 +02:00
}
},
"security": [
{
"bearer": []
},
{
"cookie": []
},
{
"api_key": []
2022-12-05 19:56:44 +02:00
}
],
"tags": [
"System Config"
2022-12-05 19:56:44 +02:00
]
}
},
2023-06-10 06:14:18 +02:00
"/system-config/defaults": {
2022-12-05 19:56:44 +02:00
"get": {
2023-06-10 06:14:18 +02:00
"operationId": "getDefaults",
"parameters": [],
2022-12-05 19:56:44 +02:00
"responses": {
"200": {
"content": {
2023-06-10 06:14:18 +02:00
"application/json": {
2022-12-05 19:56:44 +02:00
"schema": {
2023-06-10 06:14:18 +02:00
"$ref": "#/components/schemas/SystemConfigDto"
2022-12-05 19:56:44 +02:00
}
}
},
"description": ""
2022-12-05 19:56:44 +02:00
}
},
"security": [
{
"bearer": []
},
{
"cookie": []
},
{
"api_key": []
2022-12-05 19:56:44 +02:00
}
],
"tags": [
"System Config"
2022-12-05 19:56:44 +02:00
]
}
},
2023-06-10 06:14:18 +02:00
"/system-config/storage-template-options": {
"get": {
2023-06-10 06:14:18 +02:00
"operationId": "getStorageTemplateOptions",
"parameters": [],
2022-12-05 19:56:44 +02:00
"responses": {
"200": {
"content": {
2023-06-10 06:14:18 +02:00
"application/json": {
2022-12-05 19:56:44 +02:00
"schema": {
2023-06-10 06:14:18 +02:00
"$ref": "#/components/schemas/SystemConfigTemplateStorageOptionDto"
2022-12-05 19:56:44 +02:00
}
}
},
"description": ""
2022-12-05 19:56:44 +02:00
}
},
"security": [
{
"bearer": []
},
{
"cookie": []
},
{
"api_key": []
2022-12-05 19:56:44 +02:00
}
],
"tags": [
"System Config"
2022-12-05 19:56:44 +02:00
]
}
},
2023-06-10 06:14:18 +02:00
"/tag": {
"get": {
"operationId": "getAllTags",
2022-12-05 19:56:44 +02:00
"parameters": [],
"responses": {
"200": {
2022-12-05 19:56:44 +02:00
"content": {
"application/json": {
"schema": {
"items": {
"$ref": "#/components/schemas/TagResponseDto"
},
"type": "array"
2022-12-05 19:56:44 +02:00
}
}
},
"description": ""
2022-12-05 19:56:44 +02:00
}
},
"security": [
{
"bearer": []
},
{
"cookie": []
},
{
"api_key": []
2022-12-05 19:56:44 +02:00
}
],
"tags": [
"Tag"
2022-12-05 19:56:44 +02:00
]
2023-06-10 06:14:18 +02:00
},
"post": {
"operationId": "createTag",
"parameters": [],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CreateTagDto"
}
}
},
"required": true
},
2022-12-05 19:56:44 +02:00
"responses": {
"201": {
2022-12-05 19:56:44 +02:00
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/TagResponseDto"
2022-12-05 19:56:44 +02:00
}
}
},
"description": ""
2022-12-05 19:56:44 +02:00
}
},
"security": [
{
"bearer": []
},
{
"cookie": []
},
{
"api_key": []
2022-12-05 19:56:44 +02:00
}
],
"tags": [
"Tag"
2022-12-05 19:56:44 +02:00
]
}
},
2023-06-10 06:14:18 +02:00
"/tag/{id}": {
"delete": {
"operationId": "deleteTag",
2023-06-10 06:14:18 +02:00
"parameters": [
{
"name": "id",
"required": true,
"in": "path",
"schema": {
"format": "uuid",
"type": "string"
}
}
],
2022-12-05 19:56:44 +02:00
"responses": {
"200": {
"description": ""
2022-12-05 19:56:44 +02:00
}
},
"security": [
{
"bearer": []
},
{
"cookie": []
},
{
"api_key": []
2022-12-05 19:56:44 +02:00
}
],
"tags": [
"Tag"
2022-12-05 19:56:44 +02:00
]
2023-06-10 06:14:18 +02:00
},
"get": {
"operationId": "getTagById",
2023-06-10 06:14:18 +02:00
"parameters": [
{
"name": "id",
"required": true,
"in": "path",
"schema": {
"format": "uuid",
"type": "string"
}
}
],
2022-12-05 19:56:44 +02:00
"responses": {
2023-06-10 06:14:18 +02:00
"200": {
2022-12-05 19:56:44 +02:00
"content": {
"application/json": {
"schema": {
2023-06-10 06:14:18 +02:00
"$ref": "#/components/schemas/TagResponseDto"
2022-12-05 19:56:44 +02:00
}
}
},
"description": ""
2022-12-05 19:56:44 +02:00
}
},
"security": [
{
"bearer": []
},
{
"cookie": []
},
{
"api_key": []
2022-12-05 19:56:44 +02:00
}
],
"tags": [
"Tag"
2022-12-05 19:56:44 +02:00
]
2023-06-10 06:14:18 +02:00
},
"patch": {
"operationId": "updateTag",
2023-06-10 06:14:18 +02:00
"parameters": [
{
"name": "id",
"required": true,
"in": "path",
"schema": {
"format": "uuid",
"type": "string"
2022-12-05 19:56:44 +02:00
}
}
2023-06-10 06:14:18 +02:00
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UpdateTagDto"
}
}
},
"required": true
},
2022-12-05 19:56:44 +02:00
"responses": {
2023-06-10 06:14:18 +02:00
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/TagResponseDto"
}
}
},
2023-06-10 06:14:18 +02:00
"description": ""
2022-12-05 19:56:44 +02:00
}
},
"security": [
{
"bearer": []
},
{
"cookie": []
},
{
"api_key": []
2022-12-05 19:56:44 +02:00
}
],
"tags": [
"Tag"
2022-12-05 19:56:44 +02:00
]
}
},
2023-06-10 06:14:18 +02:00
"/tag/{id}/assets": {
"delete": {
"operationId": "untagAssets",
2023-06-10 06:14:18 +02:00
"parameters": [
{
"name": "id",
"required": true,
"in": "path",
"schema": {
"format": "uuid",
"type": "string"
}
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AssetIdsDto"
}
}
},
"required": true
},
2022-12-05 19:56:44 +02:00
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
2023-06-10 06:14:18 +02:00
"items": {
"$ref": "#/components/schemas/AssetIdsResponseDto"
},
"type": "array"
2022-12-05 19:56:44 +02:00
}
}
},
"description": ""
2022-12-05 19:56:44 +02:00
}
},
"security": [
{
"bearer": []
},
{
"cookie": []
},
{
"api_key": []
2022-12-05 19:56:44 +02:00
}
],
"tags": [
"Tag"
2022-12-05 19:56:44 +02:00
]
2023-06-10 06:14:18 +02:00
},
"get": {
"operationId": "getTagAssets",
2023-06-10 06:14:18 +02:00
"parameters": [
{
"name": "id",
"required": true,
"in": "path",
"schema": {
"format": "uuid",
"type": "string"
}
}
],
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
2023-06-10 06:14:18 +02:00
"items": {
"$ref": "#/components/schemas/AssetResponseDto"
},
"type": "array"
}
}
},
"description": ""
}
},
"security": [
{
"bearer": []
},
{
"cookie": []
},
{
"api_key": []
}
],
"tags": [
"Tag"
]
2023-06-10 06:14:18 +02:00
},
"put": {
"operationId": "tagAssets",
"parameters": [
{
2023-06-10 06:14:18 +02:00
"name": "id",
"required": true,
"in": "path",
"schema": {
"format": "uuid",
"type": "string"
}
}
],
2023-06-10 06:14:18 +02:00
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AssetIdsDto"
}
}
},
"required": true
2023-06-10 06:14:18 +02:00
},
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"items": {
2023-06-10 06:14:18 +02:00
"$ref": "#/components/schemas/AssetIdsResponseDto"
},
"type": "array"
}
}
},
"description": ""
}
},
"security": [
{
"bearer": []
},
{
"cookie": []
},
{
"api_key": []
}
],
"tags": [
"Tag"
]
2023-06-10 06:14:18 +02:00
}
},
"/user": {
"get": {
"operationId": "getAllUsers",
"parameters": [
{
"name": "isAll",
"required": true,
"in": "query",
"schema": {
"type": "boolean"
}
}
2023-06-10 06:14:18 +02:00
],
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"items": {
2023-06-10 06:14:18 +02:00
"$ref": "#/components/schemas/UserResponseDto"
},
"type": "array"
}
}
},
"description": ""
}
},
"security": [
{
"bearer": []
},
{
"cookie": []
},
{
"api_key": []
}
],
"tags": [
"User"
]
2023-06-10 06:14:18 +02:00
},
"post": {
2023-06-10 06:14:18 +02:00
"operationId": "createUser",
2022-12-05 19:56:44 +02:00
"parameters": [],
"requestBody": {
"content": {
"application/json": {
"schema": {
2023-06-10 06:14:18 +02:00
"$ref": "#/components/schemas/CreateUserDto"
2022-12-05 19:56:44 +02:00
}
}
},
"required": true
2022-12-05 19:56:44 +02:00
},
"responses": {
"201": {
2022-12-05 19:56:44 +02:00
"content": {
"application/json": {
"schema": {
2023-06-10 06:14:18 +02:00
"$ref": "#/components/schemas/UserResponseDto"
2022-12-05 19:56:44 +02:00
}
}
},
"description": ""
2022-12-05 19:56:44 +02:00
}
},
"security": [
{
"bearer": []
},
{
"cookie": []
},
{
"api_key": []
}
],
"tags": [
"User"
2022-12-05 19:56:44 +02:00
]
2023-06-10 06:14:18 +02:00
},
"put": {
"operationId": "updateUser",
"parameters": [],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UpdateUserDto"
}
2022-12-05 19:56:44 +02:00
}
},
"required": true
2023-06-10 06:14:18 +02:00
},
2022-12-05 19:56:44 +02:00
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
2023-06-10 06:14:18 +02:00
"$ref": "#/components/schemas/UserResponseDto"
2022-12-05 19:56:44 +02:00
}
}
},
"description": ""
2022-12-05 19:56:44 +02:00
}
},
"security": [
{
"bearer": []
},
{
"cookie": []
},
{
"api_key": []
}
],
"tags": [
"User"
2022-12-05 19:56:44 +02:00
]
}
},
2023-06-10 06:14:18 +02:00
"/user/count": {
"get": {
2023-06-10 06:14:18 +02:00
"operationId": "getUserCount",
2022-12-05 19:56:44 +02:00
"parameters": [
{
2023-06-10 06:14:18 +02:00
"name": "admin",
"required": false,
"in": "query",
"schema": {
2023-06-10 06:14:18 +02:00
"default": false,
"type": "boolean"
}
}
],
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
2023-06-10 06:14:18 +02:00
"$ref": "#/components/schemas/UserCountResponseDto"
}
}
},
"description": ""
}
},
"tags": [
2023-06-10 06:14:18 +02:00
"User"
]
}
},
2023-06-10 06:14:18 +02:00
"/user/info/{userId}": {
"get": {
"operationId": "getUserById",
"parameters": [
{
2023-06-10 06:14:18 +02:00
"name": "userId",
"required": true,
"in": "path",
"schema": {
"format": "uuid",
"type": "string"
}
}
],
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
2023-06-10 06:14:18 +02:00
"$ref": "#/components/schemas/UserResponseDto"
}
}
},
"description": ""
}
},
"security": [
{
"bearer": []
},
{
"cookie": []
},
{
"api_key": []
}
],
"tags": [
"User"
]
}
},
2023-06-10 06:14:18 +02:00
"/user/me": {
"get": {
"operationId": "getMyUserInfo",
"parameters": [],
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
2023-06-10 06:14:18 +02:00
"$ref": "#/components/schemas/UserResponseDto"
}
}
},
"description": ""
}
},
"security": [
{
"bearer": []
},
{
"cookie": []
},
{
"api_key": []
}
],
"tags": [
"User"
]
}
},
2023-06-10 06:14:18 +02:00
"/user/profile-image": {
"post": {
2023-06-10 06:14:18 +02:00
"operationId": "createProfileImage",
"parameters": [],
"requestBody": {
"content": {
2023-06-10 06:14:18 +02:00
"multipart/form-data": {
"schema": {
2023-06-10 06:14:18 +02:00
"$ref": "#/components/schemas/CreateProfileImageDto"
}
}
},
"description": "A new avatar for the user",
"required": true
},
"responses": {
2023-06-10 06:14:18 +02:00
"201": {
"content": {
"application/json": {
"schema": {
2023-06-10 06:14:18 +02:00
"$ref": "#/components/schemas/CreateProfileImageResponseDto"
}
}
},
"description": ""
}
},
"security": [
{
"bearer": []
},
{
"cookie": []
},
{
"api_key": []
}
],
"tags": [
"User"
]
}
},
2023-06-10 06:14:18 +02:00
"/user/profile-image/{userId}": {
"get": {
"operationId": "getProfileImage",
"parameters": [
{
"name": "userId",
"required": true,
"in": "path",
"schema": {
"format": "uuid",
"type": "string"
}
}
2023-06-10 06:14:18 +02:00
],
"responses": {
2023-06-10 06:14:18 +02:00
"200": {
"content": {
"application/json": {
"schema": {
2023-06-10 06:14:18 +02:00
"type": "object"
}
}
},
"description": ""
}
},
"security": [
{
"bearer": []
},
{
"cookie": []
},
{
"api_key": []
}
],
"tags": [
"User"
]
}
},
2023-06-10 06:14:18 +02:00
"/user/{userId}": {
"delete": {
"operationId": "deleteUser",
"parameters": [
{
2023-06-10 06:14:18 +02:00
"name": "userId",
"required": true,
"in": "path",
"schema": {
2023-06-10 06:14:18 +02:00
"format": "uuid",
"type": "string"
}
}
],
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
2023-06-10 06:14:18 +02:00
"$ref": "#/components/schemas/UserResponseDto"
}
}
},
"description": ""
}
},
"security": [
{
"bearer": []
},
{
"cookie": []
},
{
"api_key": []
}
],
"tags": [
"User"
]
}
},
2023-06-10 06:14:18 +02:00
"/user/{userId}/restore": {
"post": {
"operationId": "restoreUser",
"parameters": [
{
2023-06-10 06:14:18 +02:00
"name": "userId",
"required": true,
"in": "path",
"schema": {
2023-06-10 06:14:18 +02:00
"format": "uuid",
"type": "string"
}
}
],
"responses": {
2023-06-10 06:14:18 +02:00
"201": {
"content": {
"application/json": {
"schema": {
2023-06-10 06:14:18 +02:00
"$ref": "#/components/schemas/UserResponseDto"
}
}
},
"description": ""
}
},
"security": [
{
"bearer": []
},
{
"cookie": []
},
{
"api_key": []
}
],
"tags": [
"User"
]
}
2023-06-10 06:14:18 +02:00
}
},
"info": {
"title": "Immich",
"description": "Immich API",
2023-07-28 20:32:33 +02:00
"version": "1.71.0",
2023-06-10 06:14:18 +02:00
"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"
}
},
2023-06-10 06:14:18 +02:00
"schemas": {
"APIKeyCreateDto": {
2023-05-25 04:10:45 +02:00
"properties": {
2023-06-10 06:14:18 +02:00
"name": {
2023-05-25 04:10:45 +02:00
"type": "string"
}
},
"type": "object"
2023-05-25 04:10:45 +02:00
},
2023-06-10 06:14:18 +02:00
"APIKeyCreateResponseDto": {
"properties": {
2023-06-10 06:14:18 +02:00
"apiKey": {
"$ref": "#/components/schemas/APIKeyResponseDto"
},
"secret": {
"type": "string"
}
},
"required": [
2023-06-10 06:14:18 +02:00
"secret",
"apiKey"
],
"type": "object"
},
"APIKeyResponseDto": {
"properties": {
"createdAt": {
"format": "date-time",
"type": "string"
},
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"updatedAt": {
"format": "date-time",
"type": "string"
}
},
"required": [
"id",
"name",
"createdAt",
"updatedAt"
],
"type": "object"
},
"APIKeyUpdateDto": {
"properties": {
"name": {
"type": "string"
}
},
"required": [
"name"
],
"type": "object"
},
2023-06-10 06:14:18 +02:00
"AddUsersDto": {
"properties": {
2023-06-10 06:14:18 +02:00
"sharedUserIds": {
"items": {
"format": "uuid",
"type": "string"
},
"type": "array"
}
},
"required": [
2023-06-10 06:14:18 +02:00
"sharedUserIds"
],
"type": "object"
},
"AdminSignupResponseDto": {
"properties": {
"createdAt": {
"format": "date-time",
"type": "string"
},
"email": {
"type": "string"
},
"firstName": {
"type": "string"
},
"id": {
"type": "string"
},
"lastName": {
"type": "string"
}
},
"required": [
"id",
"email",
"firstName",
"lastName",
"createdAt"
],
"type": "object"
},
2023-06-10 06:14:18 +02:00
"AlbumCountResponseDto": {
"properties": {
"notShared": {
2023-06-10 06:14:18 +02:00
"type": "integer"
},
"owned": {
2023-06-10 06:14:18 +02:00
"type": "integer"
},
"shared": {
2023-06-10 06:14:18 +02:00
"type": "integer"
}
},
"required": [
"owned",
"shared",
"notShared"
],
"type": "object"
2023-06-10 06:14:18 +02:00
},
"AlbumResponseDto": {
"properties": {
"albumName": {
"type": "string"
},
"albumThumbnailAssetId": {
"nullable": true,
2023-06-10 06:14:18 +02:00
"type": "string"
},
"assetCount": {
"type": "integer"
},
"assets": {
"items": {
"$ref": "#/components/schemas/AssetResponseDto"
},
"type": "array"
2023-06-10 06:14:18 +02:00
},
"createdAt": {
2023-06-10 06:14:18 +02:00
"format": "date-time",
"type": "string"
},
"id": {
"type": "string"
},
"lastModifiedAssetTimestamp": {
2023-06-10 06:14:18 +02:00
"format": "date-time",
"type": "string"
},
"owner": {
"$ref": "#/components/schemas/UserResponseDto"
},
"ownerId": {
"type": "string"
2023-06-10 06:14:18 +02:00
},
"shared": {
"type": "boolean"
},
2023-06-10 06:14:18 +02:00
"sharedUsers": {
"items": {
"$ref": "#/components/schemas/UserResponseDto"
},
"type": "array"
},
"updatedAt": {
"format": "date-time",
"type": "string"
}
},
"required": [
2023-06-10 06:14:18 +02:00
"assetCount",
"id",
2023-06-10 06:14:18 +02:00
"ownerId",
"albumName",
"createdAt",
"updatedAt",
2023-06-10 06:14:18 +02:00
"albumThumbnailAssetId",
"shared",
"sharedUsers",
"assets",
"owner"
],
"type": "object"
},
2023-06-10 06:14:18 +02:00
"AllJobStatusResponseDto": {
"properties": {
"backgroundTask": {
2023-06-10 06:14:18 +02:00
"$ref": "#/components/schemas/JobStatusDto"
},
"clipEncoding": {
2023-06-10 06:14:18 +02:00
"$ref": "#/components/schemas/JobStatusDto"
},
"metadataExtraction": {
2023-06-10 06:14:18 +02:00
"$ref": "#/components/schemas/JobStatusDto"
},
"objectTagging": {
"$ref": "#/components/schemas/JobStatusDto"
},
"recognizeFaces": {
2023-06-10 06:14:18 +02:00
"$ref": "#/components/schemas/JobStatusDto"
},
"search": {
2023-06-10 06:14:18 +02:00
"$ref": "#/components/schemas/JobStatusDto"
},
"sidecar": {
2023-06-10 06:14:18 +02:00
"$ref": "#/components/schemas/JobStatusDto"
},
"storageTemplateMigration": {
2023-06-10 06:14:18 +02:00
"$ref": "#/components/schemas/JobStatusDto"
},
"thumbnailGeneration": {
2023-06-10 06:14:18 +02:00
"$ref": "#/components/schemas/JobStatusDto"
},
"videoConversion": {
2023-06-10 06:14:18 +02:00
"$ref": "#/components/schemas/JobStatusDto"
}
},
"required": [
"thumbnailGeneration",
"metadataExtraction",
"videoConversion",
"objectTagging",
"clipEncoding",
"storageTemplateMigration",
"backgroundTask",
"search",
"recognizeFaces",
"sidecar"
],
"type": "object"
2023-06-10 06:14:18 +02:00
},
"AssetBulkUploadCheckDto": {
"properties": {
"assets": {
"items": {
"$ref": "#/components/schemas/AssetBulkUploadCheckItem"
},
"type": "array"
2023-06-10 06:14:18 +02:00
}
},
"required": [
"assets"
],
"type": "object"
2023-06-10 06:14:18 +02:00
},
"AssetBulkUploadCheckItem": {
"properties": {
"checksum": {
"description": "base64 or hex encoded sha1 hash",
2023-06-10 06:14:18 +02:00
"type": "string"
},
"id": {
"type": "string"
2023-06-10 06:14:18 +02:00
}
},
"required": [
"id",
"checksum"
],
"type": "object"
2023-06-10 06:14:18 +02:00
},
"AssetBulkUploadCheckResponseDto": {
"properties": {
"results": {
"items": {
"$ref": "#/components/schemas/AssetBulkUploadCheckResult"
},
"type": "array"
2023-06-10 06:14:18 +02:00
}
},
"required": [
"results"
],
"type": "object"
2023-06-10 06:14:18 +02:00
},
"AssetBulkUploadCheckResult": {
"properties": {
"action": {
"enum": [
"accept",
"reject"
],
"type": "string"
},
"assetId": {
"type": "string"
},
"id": {
"type": "string"
2023-06-10 06:14:18 +02:00
},
"reason": {
"enum": [
"duplicate",
"unsupported-format"
],
2023-06-10 06:14:18 +02:00
"type": "string"
}
},
"required": [
2023-06-10 06:14:18 +02:00
"id",
"action"
],
"type": "object"
},
2023-06-10 06:14:18 +02:00
"AssetCountByTimeBucket": {
"properties": {
2023-06-10 06:14:18 +02:00
"count": {
"type": "integer"
},
"timeBucket": {
"type": "string"
}
},
"required": [
2023-06-10 06:14:18 +02:00
"timeBucket",
"count"
],
"type": "object"
},
2023-06-10 06:14:18 +02:00
"AssetCountByTimeBucketResponseDto": {
"properties": {
2023-06-10 06:14:18 +02:00
"buckets": {
"items": {
"$ref": "#/components/schemas/AssetCountByTimeBucket"
},
"type": "array"
},
"totalCount": {
"type": "integer"
}
},
"required": [
2023-06-10 06:14:18 +02:00
"totalCount",
"buckets"
],
"type": "object"
},
2023-06-10 06:14:18 +02:00
"AssetFileUploadResponseDto": {
"properties": {
2023-06-10 06:14:18 +02:00
"duplicate": {
"type": "boolean"
},
"id": {
"type": "string"
}
},
"required": [
2023-06-10 06:14:18 +02:00
"id",
"duplicate"
],
"type": "object"
},
2023-06-10 06:14:18 +02:00
"AssetIdsDto": {
"properties": {
2023-06-10 06:14:18 +02:00
"assetIds": {
"items": {
"format": "uuid",
"type": "string"
},
"type": "array"
2023-06-10 06:14:18 +02:00
}
},
"required": [
"assetIds"
],
"type": "object"
2023-06-10 06:14:18 +02:00
},
"AssetIdsResponseDto": {
"properties": {
"assetId": {
"type": "string"
},
2023-06-10 06:14:18 +02:00
"error": {
"enum": [
"duplicate",
"no_permission",
"not_found"
],
"type": "string"
},
"success": {
"type": "boolean"
}
},
"required": [
2023-06-10 06:14:18 +02:00
"assetId",
"success"
],
"type": "object"
},
2023-06-10 06:14:18 +02:00
"AssetResponseDto": {
"properties": {
"checksum": {
"description": "base64 encoded sha1 hash",
2023-06-10 06:14:18 +02:00
"type": "string"
},
2023-06-10 06:14:18 +02:00
"deviceAssetId": {
"type": "string"
},
2023-06-10 06:14:18 +02:00
"deviceId": {
"type": "string"
},
"duration": {
2023-06-10 06:14:18 +02:00
"type": "string"
},
"exifInfo": {
"$ref": "#/components/schemas/ExifResponseDto"
},
2023-06-10 06:14:18 +02:00
"fileCreatedAt": {
"format": "date-time",
"type": "string"
feat(server): xmp sidecar metadata (#2466) * initial commit for XMP sidecar support * Added support for 'missing' metadata files to include those without sidecar files, now detects sidecar files in the filesystem for media already ingested but the sidecar was created afterwards * didn't mean to commit default log level during testing * new sidecar logic for video metadata as well * Added xml mimetype for sidecars only * don't need capture group for this regex * wrong default value reverted * simplified the move here - keep it in the same try catch since the outcome is to move the media back anyway * simplified setter logic Co-authored-by: Jason Rasmussen <jrasm91@gmail.com> * simplified logic per suggestions * sidecar is now its own queue with a discover and sync, updated UI for the new job queueing * queue a sidecar job for every asset based on discovery or sync, though the logic is almost identical aside from linking the sidecar * now queue sidecar jobs for each assset, though logic is mostly the same between discovery and sync * simplified logic of filename extraction and asset instantiation * not sure how that got deleted.. * updated code per suggestions and comments in the PR * stat was not being used, removed the variable set * better type checking, using in-scope variables for exif getter instead of passing in every time * removed commented out test * ran and resolved all lints, formats, checks, and tests * resolved suggested change in PR * made getExifProperty more dynamic with multiple possible args for fallbacks, fixed typo, used generic in function for better type checking * better error handling and moving files back to positions on move or save failure * regenerated api * format fixes * Added XMP documentation * documentation typo * Merged in main * missed merge conflict * more changes due to a merge * Resolving conflicts * added icon for sidecar jobs --------- Co-authored-by: Jason Rasmussen <jrasm91@gmail.com> Co-authored-by: Alex Tran <alex.tran1502@gmail.com>
2023-05-25 03:59:30 +02:00
},
2023-06-10 06:14:18 +02:00
"fileModifiedAt": {
"format": "date-time",
"type": "string"
},
"id": {
2023-06-10 06:14:18 +02:00
"type": "string"
},
"isArchived": {
2023-06-10 06:14:18 +02:00
"type": "boolean"
},
"isFavorite": {
2023-06-10 06:14:18 +02:00
"type": "boolean"
},
"livePhotoVideoId": {
"nullable": true,
2023-06-10 06:14:18 +02:00
"type": "string"
},
"originalFileName": {
"type": "string"
},
"originalPath": {
"type": "string"
},
"ownerId": {
"type": "string"
},
"people": {
"items": {
"$ref": "#/components/schemas/PersonResponseDto"
},
"type": "array"
},
"resized": {
"type": "boolean"
2023-06-10 06:14:18 +02:00
},
"smartInfo": {
"$ref": "#/components/schemas/SmartInfoResponseDto"
},
"tags": {
"items": {
"$ref": "#/components/schemas/TagResponseDto"
},
"type": "array"
2023-06-10 06:14:18 +02:00
},
"thumbhash": {
"description": "base64 encoded thumbhash",
"nullable": true,
"type": "string"
2023-06-10 06:14:18 +02:00
},
"type": {
"$ref": "#/components/schemas/AssetTypeEnum"
},
"updatedAt": {
"format": "date-time",
"type": "string"
}
},
"required": [
2023-06-10 06:14:18 +02:00
"type",
"id",
"deviceAssetId",
"ownerId",
"deviceId",
"originalPath",
"originalFileName",
"resized",
"thumbhash",
2023-06-10 06:14:18 +02:00
"fileCreatedAt",
"fileModifiedAt",
"updatedAt",
"isFavorite",
"isArchived",
"duration",
"checksum"
],
"type": "object"
},
"AssetStatsResponseDto": {
"type": "object",
"properties": {
"images": {
"type": "integer"
},
"videos": {
"type": "integer"
},
"total": {
"type": "integer"
}
},
"required": [
"images",
"videos",
"total"
]
},
2023-06-10 06:14:18 +02:00
"AssetTypeEnum": {
"enum": [
2023-06-10 06:14:18 +02:00
"IMAGE",
"VIDEO",
"AUDIO",
"OTHER"
],
"type": "string"
},
"AudioCodec": {
"enum": [
"mp3",
"aac",
"opus"
],
"type": "string"
},
2023-06-10 06:14:18 +02:00
"AuthDeviceResponseDto": {
"properties": {
2023-06-10 06:14:18 +02:00
"createdAt": {
"type": "string"
},
"current": {
"type": "boolean"
2023-06-10 06:14:18 +02:00
},
"deviceOS": {
"type": "string"
},
2023-06-10 06:14:18 +02:00
"deviceType": {
"type": "string"
},
"id": {
"type": "string"
},
"updatedAt": {
2023-06-10 06:14:18 +02:00
"type": "string"
}
},
"required": [
2023-06-10 06:14:18 +02:00
"id",
"createdAt",
"updatedAt",
"current",
"deviceType",
"deviceOS"
],
"type": "object"
},
"BulkIdResponseDto": {
"properties": {
"error": {
"enum": [
"duplicate",
"no_permission",
"not_found",
"unknown"
],
"type": "string"
},
"id": {
"type": "string"
},
"success": {
"type": "boolean"
}
},
"required": [
"id",
"success"
],
"type": "object"
},
"BulkIdsDto": {
"properties": {
"ids": {
"items": {
"format": "uuid",
"type": "string"
},
"type": "array"
}
},
"required": [
"ids"
],
"type": "object"
},
2023-06-10 06:14:18 +02:00
"ChangePasswordDto": {
"properties": {
2023-06-10 06:14:18 +02:00
"newPassword": {
"example": "password",
"type": "string"
},
"password": {
"example": "password",
"type": "string"
}
},
"required": [
2023-06-10 06:14:18 +02:00
"password",
"newPassword"
],
"type": "object"
},
2023-06-10 06:14:18 +02:00
"CheckDuplicateAssetDto": {
"properties": {
2023-06-10 06:14:18 +02:00
"deviceAssetId": {
"type": "string"
},
2023-06-10 06:14:18 +02:00
"deviceId": {
"type": "string"
}
},
"required": [
2023-06-10 06:14:18 +02:00
"deviceAssetId",
"deviceId"
],
"type": "object"
},
2023-06-10 06:14:18 +02:00
"CheckDuplicateAssetResponseDto": {
"properties": {
2023-06-10 06:14:18 +02:00
"id": {
"type": "string"
},
"isExist": {
"type": "boolean"
}
},
"required": [
2023-06-10 06:14:18 +02:00
"isExist"
],
"type": "object"
},
2023-06-10 06:14:18 +02:00
"CheckExistingAssetsDto": {
"properties": {
2023-06-10 06:14:18 +02:00
"deviceAssetIds": {
"items": {
"type": "string"
},
"type": "array"
},
2023-06-10 06:14:18 +02:00
"deviceId": {
"type": "string"
}
},
"required": [
2023-06-10 06:14:18 +02:00
"deviceAssetIds",
"deviceId"
],
"type": "object"
},
2023-06-10 06:14:18 +02:00
"CheckExistingAssetsResponseDto": {
"properties": {
2023-06-10 06:14:18 +02:00
"existingIds": {
"items": {
2023-06-10 06:14:18 +02:00
"type": "string"
},
"type": "array"
}
},
"required": [
2023-06-10 06:14:18 +02:00
"existingIds"
],
"type": "object"
},
2023-06-10 06:14:18 +02:00
"CreateAlbumDto": {
"properties": {
2023-06-10 06:14:18 +02:00
"albumName": {
"type": "string"
},
"assetIds": {
"items": {
"format": "uuid",
"type": "string"
},
"type": "array"
},
"sharedWithUserIds": {
"items": {
"format": "uuid",
"type": "string"
},
"type": "array"
}
},
"required": [
2023-06-10 06:14:18 +02:00
"albumName"
],
"type": "object"
},
2023-06-10 06:14:18 +02:00
"CreateAssetDto": {
"properties": {
2023-06-10 06:14:18 +02:00
"assetData": {
"format": "binary",
"type": "string"
feat(server): support for read-only assets and importing existing items in the filesystem (#2715) * Added read-only flag for assets, endpoint to trigger file import vs upload * updated fixtures with new property * if upload is 'read-only', ensure there is no existing asset at the designated originalPath * added test for file import as well as detecting existing image at read-only destination location * Added storage service test for a case where it should not move read-only assets * upload doesn't need the read-only flag available, just importing * default isReadOnly on import endpoint to true * formatting fixes * create-asset dto needs isReadOnly, so set it to false by default on create, updated api generation * updated code to reflect changes in MR * fixed read stream promise return type * new index for originalPath, check for existing path on import, reglardless of user, to prevent duplicates * refactor: import asset * chore: open api * chore: tests * Added externalPath support for individual users, updated UI to allow this to be set by admin * added missing var for externalPath in ui * chore: open api * fix: compilation issues * fix: server test * built api, fixed user-response dto to include externalPath * reverted accidental commit * bad commit of duplicate externalPath in user response dto * fixed tests to include externalPath on expected result * fix: unit tests * centralized supported filetypes, perform file type checking of asset and sidecar during file import process * centralized supported filetype check method to keep regex DRY * fixed typo * combined migrations into one * update api * Removed externalPath from shared-link code, added column to admin user page whether external paths / import is enabled or not * update mimetype * Fixed detect correct mimetype * revert asset-upload config * reverted domain.constant * refactor * fix mime-type issue * fix format --------- Co-authored-by: Jason Rasmussen <jrasm91@gmail.com> Co-authored-by: Alex Tran <alex.tran1502@gmail.com>
2023-06-22 04:33:20 +02:00
},
2023-06-10 06:14:18 +02:00
"deviceAssetId": {
"type": "string"
},
"deviceId": {
"type": "string"
},
"duration": {
"type": "string"
},
2023-06-10 06:14:18 +02:00
"fileCreatedAt": {
"format": "date-time",
"type": "string"
},
"fileModifiedAt": {
"format": "date-time",
"type": "string"
},
"isArchived": {
"type": "boolean"
},
2023-06-10 06:14:18 +02:00
"isFavorite": {
"type": "boolean"
},
"isReadOnly": {
"default": false,
2023-06-10 06:14:18 +02:00
"type": "boolean"
},
"isVisible": {
"type": "boolean"
},
"livePhotoData": {
"format": "binary",
"type": "string"
},
"sidecarData": {
"format": "binary",
2023-06-10 06:14:18 +02:00
"type": "string"
}
},
"required": [
"assetData",
"deviceAssetId",
"deviceId",
"fileCreatedAt",
"fileModifiedAt",
feat(server): support for read-only assets and importing existing items in the filesystem (#2715) * Added read-only flag for assets, endpoint to trigger file import vs upload * updated fixtures with new property * if upload is 'read-only', ensure there is no existing asset at the designated originalPath * added test for file import as well as detecting existing image at read-only destination location * Added storage service test for a case where it should not move read-only assets * upload doesn't need the read-only flag available, just importing * default isReadOnly on import endpoint to true * formatting fixes * create-asset dto needs isReadOnly, so set it to false by default on create, updated api generation * updated code to reflect changes in MR * fixed read stream promise return type * new index for originalPath, check for existing path on import, reglardless of user, to prevent duplicates * refactor: import asset * chore: open api * chore: tests * Added externalPath support for individual users, updated UI to allow this to be set by admin * added missing var for externalPath in ui * chore: open api * fix: compilation issues * fix: server test * built api, fixed user-response dto to include externalPath * reverted accidental commit * bad commit of duplicate externalPath in user response dto * fixed tests to include externalPath on expected result * fix: unit tests * centralized supported filetypes, perform file type checking of asset and sidecar during file import process * centralized supported filetype check method to keep regex DRY * fixed typo * combined migrations into one * update api * Removed externalPath from shared-link code, added column to admin user page whether external paths / import is enabled or not * update mimetype * Fixed detect correct mimetype * revert asset-upload config * reverted domain.constant * refactor * fix mime-type issue * fix format --------- Co-authored-by: Jason Rasmussen <jrasm91@gmail.com> Co-authored-by: Alex Tran <alex.tran1502@gmail.com>
2023-06-22 04:33:20 +02:00
"isFavorite"
],
"type": "object"
2023-06-10 06:14:18 +02:00
},
"CreateProfileImageDto": {
"properties": {
2023-06-10 06:14:18 +02:00
"file": {
"format": "binary",
"type": "string"
}
},
"required": [
2023-06-10 06:14:18 +02:00
"file"
],
"type": "object"
},
2023-06-10 06:14:18 +02:00
"CreateProfileImageResponseDto": {
"properties": {
"profileImagePath": {
"type": "string"
},
"userId": {
2023-06-10 06:14:18 +02:00
"type": "string"
}
},
"required": [
2023-06-10 06:14:18 +02:00
"userId",
"profileImagePath"
],
"type": "object"
},
2023-06-10 06:14:18 +02:00
"CreateTagDto": {
"properties": {
2023-06-10 06:14:18 +02:00
"name": {
"type": "string"
},
"type": {
"$ref": "#/components/schemas/TagTypeEnum"
}
},
"required": [
2023-06-10 06:14:18 +02:00
"type",
"name"
],
"type": "object"
},
2023-06-10 06:14:18 +02:00
"CreateUserDto": {
2023-03-22 04:49:19 +02:00
"properties": {
2023-06-10 06:14:18 +02:00
"email": {
"type": "string"
2023-03-22 04:49:19 +02:00
},
"externalPath": {
"nullable": true,
2023-03-22 04:49:19 +02:00
"type": "string"
},
2023-06-10 06:14:18 +02:00
"firstName": {
2023-03-22 04:49:19 +02:00
"type": "string"
},
2023-06-10 06:14:18 +02:00
"lastName": {
2023-03-22 04:49:19 +02:00
"type": "string"
2023-06-10 06:14:18 +02:00
},
"password": {
"type": "string"
feat(server): support for read-only assets and importing existing items in the filesystem (#2715) * Added read-only flag for assets, endpoint to trigger file import vs upload * updated fixtures with new property * if upload is 'read-only', ensure there is no existing asset at the designated originalPath * added test for file import as well as detecting existing image at read-only destination location * Added storage service test for a case where it should not move read-only assets * upload doesn't need the read-only flag available, just importing * default isReadOnly on import endpoint to true * formatting fixes * create-asset dto needs isReadOnly, so set it to false by default on create, updated api generation * updated code to reflect changes in MR * fixed read stream promise return type * new index for originalPath, check for existing path on import, reglardless of user, to prevent duplicates * refactor: import asset * chore: open api * chore: tests * Added externalPath support for individual users, updated UI to allow this to be set by admin * added missing var for externalPath in ui * chore: open api * fix: compilation issues * fix: server test * built api, fixed user-response dto to include externalPath * reverted accidental commit * bad commit of duplicate externalPath in user response dto * fixed tests to include externalPath on expected result * fix: unit tests * centralized supported filetypes, perform file type checking of asset and sidecar during file import process * centralized supported filetype check method to keep regex DRY * fixed typo * combined migrations into one * update api * Removed externalPath from shared-link code, added column to admin user page whether external paths / import is enabled or not * update mimetype * Fixed detect correct mimetype * revert asset-upload config * reverted domain.constant * refactor * fix mime-type issue * fix format --------- Co-authored-by: Jason Rasmussen <jrasm91@gmail.com> Co-authored-by: Alex Tran <alex.tran1502@gmail.com>
2023-06-22 04:33:20 +02:00
},
"storageLabel": {
"nullable": true,
"type": "string"
2023-03-22 04:49:19 +02:00
}
},
"required": [
2023-06-10 06:14:18 +02:00
"email",
"password",
"firstName",
"lastName"
],
"type": "object"
2023-03-22 04:49:19 +02:00
},
2023-06-10 06:14:18 +02:00
"CuratedLocationsResponseDto": {
2023-03-22 04:49:19 +02:00
"properties": {
"city": {
2023-06-10 06:14:18 +02:00
"type": "string"
2023-03-22 04:49:19 +02:00
},
"deviceAssetId": {
2023-06-10 06:14:18 +02:00
"type": "string"
2023-03-22 04:49:19 +02:00
},
"deviceId": {
2023-06-10 06:14:18 +02:00
"type": "string"
},
"id": {
2023-06-10 06:14:18 +02:00
"type": "string"
},
"resizePath": {
2023-06-10 06:14:18 +02:00
"type": "string"
2023-03-22 04:49:19 +02:00
}
},
"required": [
2023-06-10 06:14:18 +02:00
"id",
"city",
"resizePath",
"deviceAssetId",
"deviceId"
],
"type": "object"
2023-03-22 04:49:19 +02:00
},
2023-06-10 06:14:18 +02:00
"CuratedObjectsResponseDto": {
2023-03-22 04:49:19 +02:00
"properties": {
"deviceAssetId": {
2023-03-22 04:49:19 +02:00
"type": "string"
},
"deviceId": {
2023-03-22 04:49:19 +02:00
"type": "string"
},
"id": {
2023-03-22 04:49:19 +02:00
"type": "string"
},
"object": {
2023-06-10 06:14:18 +02:00
"type": "string"
2023-03-22 04:49:19 +02:00
},
"resizePath": {
2023-06-10 06:14:18 +02:00
"type": "string"
2023-03-22 04:49:19 +02:00
}
},
"required": [
2023-06-10 06:14:18 +02:00
"id",
"object",
"resizePath",
"deviceAssetId",
"deviceId"
],
"type": "object"
2023-03-22 04:49:19 +02:00
},
2023-06-10 06:14:18 +02:00
"DeleteAssetDto": {
2023-03-22 04:49:19 +02:00
"properties": {
2023-06-10 06:14:18 +02:00
"ids": {
2023-03-22 04:49:19 +02:00
"example": [
2023-06-10 06:14:18 +02:00
"bf973405-3f2a-48d2-a687-2ed4167164be",
"dd41870b-5d00-46d2-924e-1d8489a0aa0f",
"fad77c3f-deef-4e7e-9608-14c1aa4e559a"
2023-03-22 04:49:19 +02:00
],
"items": {
2023-06-10 06:14:18 +02:00
"type": "string"
},
"title": "Array of asset IDs to delete",
"type": "array"
2023-03-22 04:49:19 +02:00
}
},
"required": [
2023-06-10 06:14:18 +02:00
"ids"
],
"type": "object"
2023-03-22 04:49:19 +02:00
},
2023-06-10 06:14:18 +02:00
"DeleteAssetResponseDto": {
"properties": {
"id": {
"type": "string"
},
"status": {
"$ref": "#/components/schemas/DeleteAssetStatus"
2023-06-10 06:14:18 +02:00
}
},
"required": [
"status",
"id"
],
"type": "object"
2023-06-10 06:14:18 +02:00
},
"DeleteAssetStatus": {
"enum": [
2023-06-10 06:14:18 +02:00
"SUCCESS",
"FAILED"
],
"type": "string"
},
"DownloadArchiveInfo": {
"properties": {
2023-06-10 06:14:18 +02:00
"assetIds": {
"items": {
"type": "string"
},
"type": "array"
},
"size": {
"type": "integer"
}
},
"required": [
"size",
2023-06-10 06:14:18 +02:00
"assetIds"
],
"type": "object"
},
"DownloadResponseDto": {
"properties": {
"archives": {
"items": {
"$ref": "#/components/schemas/DownloadArchiveInfo"
},
"type": "array"
},
"totalSize": {
"type": "integer"
}
},
"required": [
"totalSize",
"archives"
],
"type": "object"
},
2023-06-10 06:14:18 +02:00
"ExifResponseDto": {
"properties": {
"city": {
2023-06-10 06:14:18 +02:00
"default": null,
"nullable": true,
"type": "string"
},
"country": {
"default": null,
2023-06-10 06:14:18 +02:00
"nullable": true,
"type": "string"
},
"dateTimeOriginal": {
"default": null,
"format": "date-time",
2023-06-10 06:14:18 +02:00
"nullable": true,
"type": "string"
},
"description": {
"default": null,
2023-06-10 06:14:18 +02:00
"nullable": true,
"type": "string"
},
"exifImageHeight": {
"default": null,
2023-06-10 06:14:18 +02:00
"nullable": true,
"type": "number"
},
"exifImageWidth": {
"default": null,
2023-06-10 06:14:18 +02:00
"nullable": true,
"type": "number"
},
"exposureTime": {
"default": null,
2023-06-10 06:14:18 +02:00
"nullable": true,
"type": "string"
2023-06-10 06:14:18 +02:00
},
"fNumber": {
"default": null,
2023-06-10 06:14:18 +02:00
"nullable": true,
"type": "number"
2023-06-10 06:14:18 +02:00
},
"fileSizeInByte": {
"default": null,
"format": "int64",
2023-06-10 06:14:18 +02:00
"nullable": true,
"type": "integer"
2023-06-10 06:14:18 +02:00
},
"focalLength": {
"default": null,
2023-06-10 06:14:18 +02:00
"nullable": true,
"type": "number"
2023-06-10 06:14:18 +02:00
},
"iso": {
"default": null,
2023-06-10 06:14:18 +02:00
"nullable": true,
"type": "number"
2023-06-10 06:14:18 +02:00
},
"latitude": {
"default": null,
2023-06-10 06:14:18 +02:00
"nullable": true,
"type": "number"
2023-06-10 06:14:18 +02:00
},
"lensModel": {
"default": null,
2023-06-10 06:14:18 +02:00
"nullable": true,
"type": "string"
2023-06-10 06:14:18 +02:00
},
"longitude": {
"default": null,
2023-06-10 06:14:18 +02:00
"nullable": true,
"type": "number"
2023-06-10 06:14:18 +02:00
},
"make": {
"default": null,
2023-06-10 06:14:18 +02:00
"nullable": true,
"type": "string"
2023-06-10 06:14:18 +02:00
},
"model": {
"default": null,
2023-06-10 06:14:18 +02:00
"nullable": true,
"type": "string"
2023-06-10 06:14:18 +02:00
},
"modifyDate": {
"default": null,
"format": "date-time",
2023-06-10 06:14:18 +02:00
"nullable": true,
"type": "string"
2023-06-10 06:14:18 +02:00
},
"orientation": {
"default": null,
2023-06-10 06:14:18 +02:00
"nullable": true,
"type": "string"
feat (web/server) 360 degrees Web panoramas [attempt 2] (#3412) * commit 1 (isPanorama: boolean) * working solution for projectiontypeenum * fix * format fix * fix * fix * fix * fix * enum projectiontype * working solution with exif * fix * reverted > * fix format * reverted auto-magic api.ts prettification * fix * reverted api.ts autogenerated * api ts regenerated * Update web/src/lib/components/assets/thumbnail/thumbnail.svelte Co-authored-by: Sergey Kondrikov <sergey.kondrikov@gmail.com> * Update web/src/lib/components/asset-viewer/asset-viewer.svelte Co-authored-by: Sergey Kondrikov <sergey.kondrikov@gmail.com> * exifProjectionType * Update server/src/microservices/processors/metadata-extraction.processor.ts Co-authored-by: Sergey Kondrikov <sergey.kondrikov@gmail.com> * projectionType?: string = ProjectionType.NONE; * not null * projectionType!: ProjectionType; * opeapi generator fix * fixes * fix * fix * generate api * asset.exifInifo?.projectionType * Update server/src/domain/asset/response-dto/exif-response.dto.ts Co-authored-by: Jason Rasmussen <jrasm91@gmail.com> * Update server/src/microservices/processors/metadata-extraction.processor.ts Co-authored-by: Jason Rasmussen <jrasm91@gmail.com> * enum -> varchar;projectiontypeenum->projectiontype * asset-viewer fixed prettiffier * @Column({}) single line * enum | string * make api * enum | string * enum | str fix * fix * chore: use string instead of enum * chore: open api * fix: checks --------- Co-authored-by: Sergey Kondrikov <sergey.kondrikov@gmail.com> Co-authored-by: Alex Tran <alex.tran1502@gmail.com> Co-authored-by: Jason Rasmussen <jrasm91@gmail.com>
2023-07-28 06:29:09 +02:00
},
"projectionType": {
"default": null,
"nullable": true,
"type": "string"
},
"state": {
"default": null,
"nullable": true,
"type": "string"
},
"timeZone": {
"default": null,
feat (web/server) 360 degrees Web panoramas [attempt 2] (#3412) * commit 1 (isPanorama: boolean) * working solution for projectiontypeenum * fix * format fix * fix * fix * fix * fix * enum projectiontype * working solution with exif * fix * reverted > * fix format * reverted auto-magic api.ts prettification * fix * reverted api.ts autogenerated * api ts regenerated * Update web/src/lib/components/assets/thumbnail/thumbnail.svelte Co-authored-by: Sergey Kondrikov <sergey.kondrikov@gmail.com> * Update web/src/lib/components/asset-viewer/asset-viewer.svelte Co-authored-by: Sergey Kondrikov <sergey.kondrikov@gmail.com> * exifProjectionType * Update server/src/microservices/processors/metadata-extraction.processor.ts Co-authored-by: Sergey Kondrikov <sergey.kondrikov@gmail.com> * projectionType?: string = ProjectionType.NONE; * not null * projectionType!: ProjectionType; * opeapi generator fix * fixes * fix * fix * generate api * asset.exifInifo?.projectionType * Update server/src/domain/asset/response-dto/exif-response.dto.ts Co-authored-by: Jason Rasmussen <jrasm91@gmail.com> * Update server/src/microservices/processors/metadata-extraction.processor.ts Co-authored-by: Jason Rasmussen <jrasm91@gmail.com> * enum -> varchar;projectiontypeenum->projectiontype * asset-viewer fixed prettiffier * @Column({}) single line * enum | string * make api * enum | string * enum | str fix * fix * chore: use string instead of enum * chore: open api * fix: checks --------- Co-authored-by: Sergey Kondrikov <sergey.kondrikov@gmail.com> Co-authored-by: Alex Tran <alex.tran1502@gmail.com> Co-authored-by: Jason Rasmussen <jrasm91@gmail.com>
2023-07-28 06:29:09 +02:00
"nullable": true,
"type": "string"
2023-06-10 06:14:18 +02:00
}
},
"type": "object"
2023-06-10 06:14:18 +02:00
},
"GetAssetByTimeBucketDto": {
"properties": {
"timeBucket": {
"example": [
"2015-06-01T00:00:00.000Z",
"2016-02-01T00:00:00.000Z",
"2016-03-01T00:00:00.000Z"
],
"items": {
"type": "string"
},
"title": "Array of date time buckets",
"type": "array"
2023-06-10 06:14:18 +02:00
},
"userId": {
"format": "uuid",
"type": "string"
2023-06-10 06:14:18 +02:00
},
"withoutThumbs": {
"description": "Include assets without thumbnails",
"type": "boolean"
}
},
"required": [
2023-06-10 06:14:18 +02:00
"timeBucket"
],
"type": "object"
},
2023-06-10 06:14:18 +02:00
"GetAssetCountByTimeBucketDto": {
"properties": {
2023-06-10 06:14:18 +02:00
"timeGroup": {
"$ref": "#/components/schemas/TimeGroupEnum"
},
2023-06-10 06:14:18 +02:00
"userId": {
"format": "uuid",
"type": "string"
},
2023-06-10 06:14:18 +02:00
"withoutThumbs": {
"description": "Include assets without thumbnails",
"type": "boolean"
2023-06-10 06:14:18 +02:00
}
},
"required": [
"timeGroup"
],
"type": "object"
2023-06-10 06:14:18 +02:00
},
feat(server): support for read-only assets and importing existing items in the filesystem (#2715) * Added read-only flag for assets, endpoint to trigger file import vs upload * updated fixtures with new property * if upload is 'read-only', ensure there is no existing asset at the designated originalPath * added test for file import as well as detecting existing image at read-only destination location * Added storage service test for a case where it should not move read-only assets * upload doesn't need the read-only flag available, just importing * default isReadOnly on import endpoint to true * formatting fixes * create-asset dto needs isReadOnly, so set it to false by default on create, updated api generation * updated code to reflect changes in MR * fixed read stream promise return type * new index for originalPath, check for existing path on import, reglardless of user, to prevent duplicates * refactor: import asset * chore: open api * chore: tests * Added externalPath support for individual users, updated UI to allow this to be set by admin * added missing var for externalPath in ui * chore: open api * fix: compilation issues * fix: server test * built api, fixed user-response dto to include externalPath * reverted accidental commit * bad commit of duplicate externalPath in user response dto * fixed tests to include externalPath on expected result * fix: unit tests * centralized supported filetypes, perform file type checking of asset and sidecar during file import process * centralized supported filetype check method to keep regex DRY * fixed typo * combined migrations into one * update api * Removed externalPath from shared-link code, added column to admin user page whether external paths / import is enabled or not * update mimetype * Fixed detect correct mimetype * revert asset-upload config * reverted domain.constant * refactor * fix mime-type issue * fix format --------- Co-authored-by: Jason Rasmussen <jrasm91@gmail.com> Co-authored-by: Alex Tran <alex.tran1502@gmail.com>
2023-06-22 04:33:20 +02:00
"ImportAssetDto": {
"properties": {
"assetPath": {
"type": "string"
},
"deviceAssetId": {
"type": "string"
},
"deviceId": {
"type": "string"
},
"duration": {
"type": "string"
},
feat(server): support for read-only assets and importing existing items in the filesystem (#2715) * Added read-only flag for assets, endpoint to trigger file import vs upload * updated fixtures with new property * if upload is 'read-only', ensure there is no existing asset at the designated originalPath * added test for file import as well as detecting existing image at read-only destination location * Added storage service test for a case where it should not move read-only assets * upload doesn't need the read-only flag available, just importing * default isReadOnly on import endpoint to true * formatting fixes * create-asset dto needs isReadOnly, so set it to false by default on create, updated api generation * updated code to reflect changes in MR * fixed read stream promise return type * new index for originalPath, check for existing path on import, reglardless of user, to prevent duplicates * refactor: import asset * chore: open api * chore: tests * Added externalPath support for individual users, updated UI to allow this to be set by admin * added missing var for externalPath in ui * chore: open api * fix: compilation issues * fix: server test * built api, fixed user-response dto to include externalPath * reverted accidental commit * bad commit of duplicate externalPath in user response dto * fixed tests to include externalPath on expected result * fix: unit tests * centralized supported filetypes, perform file type checking of asset and sidecar during file import process * centralized supported filetype check method to keep regex DRY * fixed typo * combined migrations into one * update api * Removed externalPath from shared-link code, added column to admin user page whether external paths / import is enabled or not * update mimetype * Fixed detect correct mimetype * revert asset-upload config * reverted domain.constant * refactor * fix mime-type issue * fix format --------- Co-authored-by: Jason Rasmussen <jrasm91@gmail.com> Co-authored-by: Alex Tran <alex.tran1502@gmail.com>
2023-06-22 04:33:20 +02:00
"fileCreatedAt": {
"format": "date-time",
"type": "string"
},
"fileModifiedAt": {
"format": "date-time",
"type": "string"
},
"isArchived": {
"type": "boolean"
},
feat(server): support for read-only assets and importing existing items in the filesystem (#2715) * Added read-only flag for assets, endpoint to trigger file import vs upload * updated fixtures with new property * if upload is 'read-only', ensure there is no existing asset at the designated originalPath * added test for file import as well as detecting existing image at read-only destination location * Added storage service test for a case where it should not move read-only assets * upload doesn't need the read-only flag available, just importing * default isReadOnly on import endpoint to true * formatting fixes * create-asset dto needs isReadOnly, so set it to false by default on create, updated api generation * updated code to reflect changes in MR * fixed read stream promise return type * new index for originalPath, check for existing path on import, reglardless of user, to prevent duplicates * refactor: import asset * chore: open api * chore: tests * Added externalPath support for individual users, updated UI to allow this to be set by admin * added missing var for externalPath in ui * chore: open api * fix: compilation issues * fix: server test * built api, fixed user-response dto to include externalPath * reverted accidental commit * bad commit of duplicate externalPath in user response dto * fixed tests to include externalPath on expected result * fix: unit tests * centralized supported filetypes, perform file type checking of asset and sidecar during file import process * centralized supported filetype check method to keep regex DRY * fixed typo * combined migrations into one * update api * Removed externalPath from shared-link code, added column to admin user page whether external paths / import is enabled or not * update mimetype * Fixed detect correct mimetype * revert asset-upload config * reverted domain.constant * refactor * fix mime-type issue * fix format --------- Co-authored-by: Jason Rasmussen <jrasm91@gmail.com> Co-authored-by: Alex Tran <alex.tran1502@gmail.com>
2023-06-22 04:33:20 +02:00
"isFavorite": {
"type": "boolean"
},
"isReadOnly": {
"default": true,
feat(server): support for read-only assets and importing existing items in the filesystem (#2715) * Added read-only flag for assets, endpoint to trigger file import vs upload * updated fixtures with new property * if upload is 'read-only', ensure there is no existing asset at the designated originalPath * added test for file import as well as detecting existing image at read-only destination location * Added storage service test for a case where it should not move read-only assets * upload doesn't need the read-only flag available, just importing * default isReadOnly on import endpoint to true * formatting fixes * create-asset dto needs isReadOnly, so set it to false by default on create, updated api generation * updated code to reflect changes in MR * fixed read stream promise return type * new index for originalPath, check for existing path on import, reglardless of user, to prevent duplicates * refactor: import asset * chore: open api * chore: tests * Added externalPath support for individual users, updated UI to allow this to be set by admin * added missing var for externalPath in ui * chore: open api * fix: compilation issues * fix: server test * built api, fixed user-response dto to include externalPath * reverted accidental commit * bad commit of duplicate externalPath in user response dto * fixed tests to include externalPath on expected result * fix: unit tests * centralized supported filetypes, perform file type checking of asset and sidecar during file import process * centralized supported filetype check method to keep regex DRY * fixed typo * combined migrations into one * update api * Removed externalPath from shared-link code, added column to admin user page whether external paths / import is enabled or not * update mimetype * Fixed detect correct mimetype * revert asset-upload config * reverted domain.constant * refactor * fix mime-type issue * fix format --------- Co-authored-by: Jason Rasmussen <jrasm91@gmail.com> Co-authored-by: Alex Tran <alex.tran1502@gmail.com>
2023-06-22 04:33:20 +02:00
"type": "boolean"
},
"isVisible": {
"type": "boolean"
},
"sidecarPath": {
feat(server): support for read-only assets and importing existing items in the filesystem (#2715) * Added read-only flag for assets, endpoint to trigger file import vs upload * updated fixtures with new property * if upload is 'read-only', ensure there is no existing asset at the designated originalPath * added test for file import as well as detecting existing image at read-only destination location * Added storage service test for a case where it should not move read-only assets * upload doesn't need the read-only flag available, just importing * default isReadOnly on import endpoint to true * formatting fixes * create-asset dto needs isReadOnly, so set it to false by default on create, updated api generation * updated code to reflect changes in MR * fixed read stream promise return type * new index for originalPath, check for existing path on import, reglardless of user, to prevent duplicates * refactor: import asset * chore: open api * chore: tests * Added externalPath support for individual users, updated UI to allow this to be set by admin * added missing var for externalPath in ui * chore: open api * fix: compilation issues * fix: server test * built api, fixed user-response dto to include externalPath * reverted accidental commit * bad commit of duplicate externalPath in user response dto * fixed tests to include externalPath on expected result * fix: unit tests * centralized supported filetypes, perform file type checking of asset and sidecar during file import process * centralized supported filetype check method to keep regex DRY * fixed typo * combined migrations into one * update api * Removed externalPath from shared-link code, added column to admin user page whether external paths / import is enabled or not * update mimetype * Fixed detect correct mimetype * revert asset-upload config * reverted domain.constant * refactor * fix mime-type issue * fix format --------- Co-authored-by: Jason Rasmussen <jrasm91@gmail.com> Co-authored-by: Alex Tran <alex.tran1502@gmail.com>
2023-06-22 04:33:20 +02:00
"type": "string"
}
},
"required": [
"assetPath",
"deviceAssetId",
"deviceId",
"fileCreatedAt",
"fileModifiedAt",
"isFavorite"
],
"type": "object"
feat(server): support for read-only assets and importing existing items in the filesystem (#2715) * Added read-only flag for assets, endpoint to trigger file import vs upload * updated fixtures with new property * if upload is 'read-only', ensure there is no existing asset at the designated originalPath * added test for file import as well as detecting existing image at read-only destination location * Added storage service test for a case where it should not move read-only assets * upload doesn't need the read-only flag available, just importing * default isReadOnly on import endpoint to true * formatting fixes * create-asset dto needs isReadOnly, so set it to false by default on create, updated api generation * updated code to reflect changes in MR * fixed read stream promise return type * new index for originalPath, check for existing path on import, reglardless of user, to prevent duplicates * refactor: import asset * chore: open api * chore: tests * Added externalPath support for individual users, updated UI to allow this to be set by admin * added missing var for externalPath in ui * chore: open api * fix: compilation issues * fix: server test * built api, fixed user-response dto to include externalPath * reverted accidental commit * bad commit of duplicate externalPath in user response dto * fixed tests to include externalPath on expected result * fix: unit tests * centralized supported filetypes, perform file type checking of asset and sidecar during file import process * centralized supported filetype check method to keep regex DRY * fixed typo * combined migrations into one * update api * Removed externalPath from shared-link code, added column to admin user page whether external paths / import is enabled or not * update mimetype * Fixed detect correct mimetype * revert asset-upload config * reverted domain.constant * refactor * fix mime-type issue * fix format --------- Co-authored-by: Jason Rasmussen <jrasm91@gmail.com> Co-authored-by: Alex Tran <alex.tran1502@gmail.com>
2023-06-22 04:33:20 +02:00
},
2023-06-10 06:14:18 +02:00
"JobCommand": {
"enum": [
"start",
"pause",
"resume",
"empty"
],
"type": "string"
2023-06-10 06:14:18 +02:00
},
"JobCommandDto": {
"properties": {
"command": {
"$ref": "#/components/schemas/JobCommand"
},
2023-06-10 06:14:18 +02:00
"force": {
"type": "boolean"
}
},
"required": [
"command",
"force"
],
"type": "object"
2023-06-10 06:14:18 +02:00
},
"JobCountsDto": {
"properties": {
"active": {
"type": "integer"
},
2023-06-10 06:14:18 +02:00
"completed": {
"type": "integer"
},
2023-06-10 06:14:18 +02:00
"delayed": {
"type": "integer"
},
"failed": {
2023-06-10 06:14:18 +02:00
"type": "integer"
},
2023-06-10 06:14:18 +02:00
"paused": {
"type": "integer"
},
"waiting": {
"type": "integer"
2023-06-10 06:14:18 +02:00
}
},
"required": [
"active",
"completed",
"failed",
"delayed",
"waiting",
"paused"
],
"type": "object"
},
2023-06-10 06:14:18 +02:00
"JobName": {
"enum": [
"thumbnailGeneration",
"metadataExtraction",
"videoConversion",
"objectTagging",
"recognizeFaces",
"clipEncoding",
"backgroundTask",
"storageTemplateMigration",
"search",
"sidecar"
],
"type": "string"
2023-06-10 06:14:18 +02:00
},
"JobSettingsDto": {
"properties": {
2023-06-10 06:14:18 +02:00
"concurrency": {
"type": "integer"
}
},
"required": [
2023-06-10 06:14:18 +02:00
"concurrency"
],
"type": "object"
},
2023-06-10 06:14:18 +02:00
"JobStatusDto": {
"properties": {
2023-06-10 06:14:18 +02:00
"jobCounts": {
"$ref": "#/components/schemas/JobCountsDto"
},
"queueStatus": {
"$ref": "#/components/schemas/QueueStatusDto"
}
},
"required": [
2023-06-10 06:14:18 +02:00
"jobCounts",
"queueStatus"
],
"type": "object"
},
2023-06-10 06:14:18 +02:00
"LoginCredentialDto": {
"properties": {
2023-06-10 06:14:18 +02:00
"email": {
"example": "testuser@email.com",
"type": "string"
2023-06-10 06:14:18 +02:00
},
"password": {
"example": "password",
"type": "string"
}
},
"required": [
2023-06-10 06:14:18 +02:00
"email",
"password"
],
"type": "object"
},
2023-06-10 06:14:18 +02:00
"LoginResponseDto": {
"properties": {
2023-06-10 06:14:18 +02:00
"accessToken": {
"readOnly": true,
"type": "string"
},
2023-06-10 06:14:18 +02:00
"firstName": {
"readOnly": true,
"type": "string"
},
"isAdmin": {
"readOnly": true,
"type": "boolean"
},
2023-06-10 06:14:18 +02:00
"lastName": {
"readOnly": true,
"type": "string"
},
2023-06-10 06:14:18 +02:00
"profileImagePath": {
"readOnly": true,
"type": "string"
},
2023-06-10 06:14:18 +02:00
"shouldChangePassword": {
"readOnly": true,
"type": "boolean"
},
"userEmail": {
"readOnly": true,
"type": "string"
},
"userId": {
"readOnly": true,
"type": "string"
}
},
"required": [
2023-06-10 06:14:18 +02:00
"accessToken",
"userId",
"userEmail",
"firstName",
"lastName",
"profileImagePath",
"isAdmin",
"shouldChangePassword"
],
"type": "object"
},
2023-06-10 06:14:18 +02:00
"LogoutResponseDto": {
"properties": {
2023-06-10 06:14:18 +02:00
"redirectUri": {
"type": "string"
},
"successful": {
"type": "boolean"
}
},
"required": [
2023-06-10 06:14:18 +02:00
"successful",
"redirectUri"
],
"type": "object"
},
2023-06-10 06:14:18 +02:00
"MapMarkerResponseDto": {
"properties": {
2023-06-10 06:14:18 +02:00
"id": {
"type": "string"
},
2023-06-10 06:14:18 +02:00
"lat": {
"format": "double",
"type": "number"
},
2023-06-10 06:14:18 +02:00
"lon": {
"format": "double",
"type": "number"
2022-12-05 19:56:44 +02:00
}
},
"required": [
2023-06-10 06:14:18 +02:00
"id",
"lat",
"lon"
],
"type": "object"
2022-12-05 19:56:44 +02:00
},
"MemoryLaneResponseDto": {
"properties": {
"assets": {
"items": {
"$ref": "#/components/schemas/AssetResponseDto"
},
"type": "array"
},
"title": {
"type": "string"
}
},
"required": [
"title",
"assets"
],
"type": "object"
},
"MergePersonDto": {
"properties": {
"ids": {
"items": {
"format": "uuid",
"type": "string"
},
"type": "array"
}
},
"required": [
"ids"
],
"type": "object"
},
2023-06-10 06:14:18 +02:00
"OAuthCallbackDto": {
"properties": {
2023-06-10 06:14:18 +02:00
"url": {
"type": "string"
}
},
"required": [
2023-06-10 06:14:18 +02:00
"url"
],
"type": "object"
},
2023-06-10 06:14:18 +02:00
"OAuthConfigDto": {
"properties": {
2023-06-10 06:14:18 +02:00
"redirectUri": {
"type": "string"
}
},
"required": [
2023-06-10 06:14:18 +02:00
"redirectUri"
],
"type": "object"
},
2023-06-10 06:14:18 +02:00
"OAuthConfigResponseDto": {
"properties": {
"autoLaunch": {
"type": "boolean"
},
"buttonText": {
"type": "string"
},
2023-06-10 06:14:18 +02:00
"enabled": {
"type": "boolean"
},
2023-06-10 06:14:18 +02:00
"passwordLoginEnabled": {
"type": "boolean"
},
2023-06-10 06:14:18 +02:00
"url": {
"type": "string"
}
},
"required": [
2023-06-10 06:14:18 +02:00
"enabled",
"passwordLoginEnabled"
],
"type": "object"
},
"PeopleResponseDto": {
"properties": {
"people": {
"items": {
"$ref": "#/components/schemas/PersonResponseDto"
},
"type": "array"
},
"total": {
"type": "number"
},
"visible": {
"type": "number"
}
},
"required": [
"total",
"visible",
"people"
],
"type": "object"
},
"PeopleUpdateDto": {
"properties": {
"people": {
"items": {
"$ref": "#/components/schemas/PeopleUpdateItem"
},
"type": "array"
}
},
"required": [
"people"
],
"type": "object"
},
"PeopleUpdateItem": {
"properties": {
"featureFaceAssetId": {
"description": "Asset is used to get the feature face thumbnail.",
"type": "string"
},
"id": {
"description": "Person id.",
"type": "string"
},
"isHidden": {
"description": "Person visibility",
"type": "boolean"
},
"name": {
"description": "Person name.",
"type": "string"
}
},
"required": [
"id"
],
"type": "object"
},
2023-06-10 06:14:18 +02:00
"PersonResponseDto": {
2022-12-05 19:56:44 +02:00
"properties": {
2023-06-10 06:14:18 +02:00
"id": {
"type": "string"
2022-12-05 19:56:44 +02:00
},
"isHidden": {
"type": "boolean"
},
2023-06-10 06:14:18 +02:00
"name": {
"type": "string"
2022-12-05 19:56:44 +02:00
},
2023-06-10 06:14:18 +02:00
"thumbnailPath": {
"type": "string"
2022-12-05 19:56:44 +02:00
}
},
"required": [
2023-06-10 06:14:18 +02:00
"id",
"name",
"thumbnailPath",
"isHidden"
],
"type": "object"
2022-12-05 19:56:44 +02:00
},
2023-06-10 06:14:18 +02:00
"PersonUpdateDto": {
2022-12-05 19:56:44 +02:00
"properties": {
"featureFaceAssetId": {
"description": "Asset is used to get the feature face thumbnail.",
"type": "string"
},
"isHidden": {
"description": "Person visibility",
"type": "boolean"
},
"name": {
"description": "Person name.",
"type": "string"
2022-12-05 19:56:44 +02:00
}
},
"type": "object"
2022-12-05 19:56:44 +02:00
},
2023-06-10 06:14:18 +02:00
"QueueStatusDto": {
2022-12-05 19:56:44 +02:00
"properties": {
2023-06-10 06:14:18 +02:00
"isActive": {
2022-12-05 19:56:44 +02:00
"type": "boolean"
},
2023-06-10 06:14:18 +02:00
"isPaused": {
2022-12-05 19:56:44 +02:00
"type": "boolean"
}
},
"required": [
2023-06-10 06:14:18 +02:00
"isActive",
"isPaused"
],
"type": "object"
2022-12-05 19:56:44 +02:00
},
2023-06-10 06:14:18 +02:00
"SearchAlbumResponseDto": {
2022-12-05 19:56:44 +02:00
"properties": {
2023-06-10 06:14:18 +02:00
"count": {
"type": "integer"
},
"facets": {
"items": {
"$ref": "#/components/schemas/SearchFacetResponseDto"
},
"type": "array"
},
2023-06-10 06:14:18 +02:00
"items": {
"items": {
"$ref": "#/components/schemas/AlbumResponseDto"
},
"type": "array"
2023-06-10 06:14:18 +02:00
},
"total": {
"type": "integer"
2022-12-05 19:56:44 +02:00
}
},
"required": [
2023-06-10 06:14:18 +02:00
"total",
"count",
"items",
"facets"
],
"type": "object"
2022-12-05 19:56:44 +02:00
},
2023-06-10 06:14:18 +02:00
"SearchAssetDto": {
2023-05-17 19:07:17 +02:00
"properties": {
2023-06-10 06:14:18 +02:00
"searchTerm": {
2023-05-17 19:07:17 +02:00
"type": "string"
}
},
"required": [
2023-06-10 06:14:18 +02:00
"searchTerm"
],
"type": "object"
2023-05-17 19:07:17 +02:00
},
2023-06-10 06:14:18 +02:00
"SearchAssetResponseDto": {
"properties": {
2023-06-10 06:14:18 +02:00
"count": {
"type": "integer"
},
"facets": {
"items": {
"$ref": "#/components/schemas/SearchFacetResponseDto"
},
"type": "array"
},
2023-06-10 06:14:18 +02:00
"items": {
"items": {
"$ref": "#/components/schemas/AssetResponseDto"
},
"type": "array"
},
"total": {
"type": "integer"
}
},
"required": [
2023-06-10 06:14:18 +02:00
"total",
"count",
"items",
"facets"
],
"type": "object"
2022-12-05 19:56:44 +02:00
},
2023-06-10 06:14:18 +02:00
"SearchConfigResponseDto": {
"properties": {
2023-06-10 06:14:18 +02:00
"enabled": {
"type": "boolean"
}
},
"required": [
2023-06-10 06:14:18 +02:00
"enabled"
],
"type": "object"
},
2023-06-10 06:14:18 +02:00
"SearchExploreItem": {
"properties": {
2023-06-10 06:14:18 +02:00
"data": {
"$ref": "#/components/schemas/AssetResponseDto"
},
"value": {
"type": "string"
2022-12-05 19:56:44 +02:00
}
},
"required": [
2023-06-10 06:14:18 +02:00
"value",
"data"
],
"type": "object"
2022-12-05 19:56:44 +02:00
},
2023-06-10 06:14:18 +02:00
"SearchExploreResponseDto": {
2022-12-05 19:56:44 +02:00
"properties": {
2023-06-10 06:14:18 +02:00
"fieldName": {
"type": "string"
},
2023-06-10 06:14:18 +02:00
"items": {
"items": {
"$ref": "#/components/schemas/SearchExploreItem"
},
"type": "array"
2022-12-05 19:56:44 +02:00
}
},
"required": [
2023-06-10 06:14:18 +02:00
"fieldName",
"items"
],
"type": "object"
2022-12-05 19:56:44 +02:00
},
2023-06-10 06:14:18 +02:00
"SearchFacetCountResponseDto": {
2022-12-05 19:56:44 +02:00
"properties": {
2023-06-10 06:14:18 +02:00
"count": {
"type": "integer"
2022-12-05 19:56:44 +02:00
},
2023-06-10 06:14:18 +02:00
"value": {
2022-12-05 19:56:44 +02:00
"type": "string"
}
},
"required": [
2023-06-10 06:14:18 +02:00
"count",
"value"
],
"type": "object"
},
2023-06-10 06:14:18 +02:00
"SearchFacetResponseDto": {
"properties": {
2023-06-10 06:14:18 +02:00
"counts": {
"items": {
"$ref": "#/components/schemas/SearchFacetCountResponseDto"
},
"type": "array"
},
"fieldName": {
"type": "string"
}
},
"required": [
2023-06-10 06:14:18 +02:00
"fieldName",
"counts"
],
"type": "object"
2022-12-05 19:56:44 +02:00
},
2023-06-10 06:14:18 +02:00
"SearchResponseDto": {
2022-12-05 19:56:44 +02:00
"properties": {
2023-06-10 06:14:18 +02:00
"albums": {
"$ref": "#/components/schemas/SearchAlbumResponseDto"
},
2023-06-10 06:14:18 +02:00
"assets": {
"$ref": "#/components/schemas/SearchAssetResponseDto"
2022-12-05 19:56:44 +02:00
}
},
"required": [
2023-06-10 06:14:18 +02:00
"albums",
"assets"
],
"type": "object"
2022-12-05 19:56:44 +02:00
},
2023-06-10 06:14:18 +02:00
"ServerInfoResponseDto": {
2022-12-05 19:56:44 +02:00
"properties": {
"diskAvailable": {
"type": "string"
2023-06-10 06:14:18 +02:00
},
"diskAvailableRaw": {
"format": "int64",
"type": "integer"
2023-06-10 06:14:18 +02:00
},
"diskSize": {
2022-12-05 19:56:44 +02:00
"type": "string"
},
"diskSizeRaw": {
"format": "int64",
"type": "integer"
},
"diskUsagePercentage": {
"format": "float",
"type": "number"
},
2023-06-10 06:14:18 +02:00
"diskUse": {
"type": "string"
},
"diskUseRaw": {
"format": "int64",
"type": "integer"
2022-12-05 19:56:44 +02:00
}
},
"required": [
2023-06-10 06:14:18 +02:00
"diskSizeRaw",
"diskUseRaw",
"diskAvailableRaw",
"diskUsagePercentage",
"diskSize",
"diskUse",
"diskAvailable"
],
"type": "object"
2022-12-05 19:56:44 +02:00
},
"ServerMediaTypesResponseDto": {
"properties": {
"image": {
"items": {
"type": "string"
},
"type": "array"
},
"sidecar": {
"items": {
"type": "string"
},
"type": "array"
},
"video": {
"items": {
"type": "string"
},
"type": "array"
}
},
"required": [
"video",
"image",
"sidecar"
],
"type": "object"
},
2023-06-10 06:14:18 +02:00
"ServerPingResponse": {
2022-12-05 19:56:44 +02:00
"properties": {
2023-06-10 06:14:18 +02:00
"res": {
"example": "pong",
2023-06-10 06:14:18 +02:00
"readOnly": true,
"type": "string"
2022-12-05 19:56:44 +02:00
}
},
"required": [
2023-06-10 06:14:18 +02:00
"res"
],
"type": "object"
2022-12-05 19:56:44 +02:00
},
2023-06-10 06:14:18 +02:00
"ServerStatsResponseDto": {
2022-12-05 19:56:44 +02:00
"properties": {
"photos": {
"default": 0,
"type": "integer"
2022-12-05 19:56:44 +02:00
},
2023-06-10 06:14:18 +02:00
"usage": {
"default": 0,
"format": "int64",
"type": "integer"
2022-12-05 19:56:44 +02:00
},
2023-06-10 06:14:18 +02:00
"usageByUser": {
"default": [],
"example": [
{
"photos": 1,
"videos": 1,
"diskUsageRaw": 1
}
],
"items": {
"$ref": "#/components/schemas/UsageByUserDto"
},
"title": "Array of usage for each user",
"type": "array"
},
"videos": {
"default": 0,
"type": "integer"
2022-12-05 19:56:44 +02:00
}
},
"required": [
"photos",
"videos",
2023-06-10 06:14:18 +02:00
"usage",
"usageByUser"
],
"type": "object"
2022-12-05 19:56:44 +02:00
},
2023-06-10 06:14:18 +02:00
"ServerVersionReponseDto": {
2022-12-05 19:56:44 +02:00
"properties": {
2023-06-10 06:14:18 +02:00
"major": {
"type": "integer"
feat (server, web): Share with partner (#2388) * feat(server, web): implement share with partner * chore: regenerate api * chore: regenerate api * Pass userId to getAssetCountByTimeBucket and getAssetByTimeBucket * chore: regenerate api * Use AssetGrid to view partner's assets * Remove disableNavBarActions flag * Check access to buckets * Apply suggestions from code review Co-authored-by: Jason Rasmussen <jrasm91@gmail.com> * Remove exception rethrowing * Simplify partner access check * Create new PartnerController * chore api:generate * Use partnerApi * Remove id from PartnerResponseDto * Refactor PartnerEntity * Rename args * Remove duplicate code in getAll * Create composite primary keys for partners table * Move asset access check into PartnerCore * Remove redundant getUserAssets call * Remove unused getUserAssets method * chore: regenerate api * Simplify getAll * Replace ?? with || * Simplify PartnerRepository.create * Introduce PartnerIds interface * Replace two database migrations with one * Simplify getAll * Change PartnerResponseDto to include UserResponseDto * Move partner sharing endpoints to PartnerController * Rename ShareController to SharedLinkController * chore: regenerate api after rebase * refactor: shared link remove return type * refactor: return user response dto * chore: regenerate open api * refactor: partner getAll * refactor: partner settings event typing * chore: remove unused code * refactor: add partners modal trigger * refactor: update url for viewing partner photos * feat: update partner sharing title * refactor: rename service method names * refactor: http exception logic to service, PartnerIds interface * chore: regenerate open api * test: coverage for domain code * fix: addPartner => createPartner * fix: missed rename * refactor: more code cleanup * chore: alphabetize settings order * feat: stop sharing confirmation modal * Enhance contrast of the email in dark mode * Replace button with CircleIconButton * Fix linter warning * Fix date types for PartnerEntity * Fix PartnerEntity creation * Reset assetStore state * Change layout of the partner's assets page * Add bulk download action for partner's assets --------- Co-authored-by: Jason Rasmussen <jrasm91@gmail.com>
2023-05-15 19:30:53 +02:00
},
2023-06-10 06:14:18 +02:00
"minor": {
"type": "integer"
},
2023-06-10 06:14:18 +02:00
"patch": {
"type": "integer"
2022-12-05 19:56:44 +02:00
}
},
"required": [
2023-06-10 06:14:18 +02:00
"major",
"minor",
"patch"
],
"type": "object"
2022-12-05 19:56:44 +02:00
},
"SharedLinkCreateDto": {
"properties": {
"albumId": {
"format": "uuid",
"type": "string"
},
"allowDownload": {
"default": true,
"type": "boolean"
},
"allowUpload": {
"default": false,
"type": "boolean"
},
"assetIds": {
"items": {
"format": "uuid",
"type": "string"
},
"type": "array"
},
"description": {
"type": "string"
},
"expiresAt": {
"default": null,
"format": "date-time",
"nullable": true,
"type": "string"
},
"showExif": {
"default": true,
"type": "boolean"
},
"type": {
"$ref": "#/components/schemas/SharedLinkType"
}
},
"required": [
"type"
],
"type": "object"
},
"SharedLinkEditDto": {
"properties": {
"allowDownload": {
"type": "boolean"
},
"allowUpload": {
"type": "boolean"
},
"description": {
"type": "string"
},
"expiresAt": {
"format": "date-time",
"nullable": true,
"type": "string"
},
"showExif": {
"type": "boolean"
}
},
"type": "object"
},
2023-06-10 06:14:18 +02:00
"SharedLinkResponseDto": {
2022-12-05 19:56:44 +02:00
"properties": {
"album": {
"$ref": "#/components/schemas/AlbumResponseDto"
2023-06-10 06:14:18 +02:00
},
"allowDownload": {
"type": "boolean"
2023-06-10 06:14:18 +02:00
},
"allowUpload": {
"type": "boolean"
2023-06-10 06:14:18 +02:00
},
"assets": {
"items": {
"$ref": "#/components/schemas/AssetResponseDto"
},
"type": "array"
2023-06-10 06:14:18 +02:00
},
"createdAt": {
"format": "date-time",
"type": "string"
},
"description": {
"nullable": true,
"type": "string"
},
2023-06-10 06:14:18 +02:00
"expiresAt": {
"format": "date-time",
"nullable": true,
"type": "string"
2023-06-10 06:14:18 +02:00
},
"id": {
"type": "string"
2022-12-05 19:56:44 +02:00
},
"key": {
"type": "string"
2023-06-10 06:14:18 +02:00
},
"showExif": {
2022-12-05 19:56:44 +02:00
"type": "boolean"
},
"type": {
"$ref": "#/components/schemas/SharedLinkType"
},
"userId": {
"type": "string"
2022-12-05 19:56:44 +02:00
}
2023-06-10 06:14:18 +02:00
},
"required": [
"type",
"id",
"description",
2023-06-10 06:14:18 +02:00
"userId",
"key",
"createdAt",
"expiresAt",
"assets",
"allowUpload",
"allowDownload",
"showExif"
],
"type": "object"
2023-06-10 06:14:18 +02:00
},
"SharedLinkType": {
"enum": [
"ALBUM",
"INDIVIDUAL"
],
"type": "string"
2023-06-10 06:14:18 +02:00
},
"SignUpDto": {
"properties": {
"email": {
"example": "testuser@email.com",
"type": "string"
2023-06-10 06:14:18 +02:00
},
"firstName": {
"example": "Admin",
"type": "string"
2023-06-10 06:14:18 +02:00
},
"lastName": {
"example": "Doe",
"type": "string"
},
"password": {
"example": "password",
"type": "string"
2023-06-10 06:14:18 +02:00
}
},
"required": [
"email",
"password",
"firstName",
"lastName"
],
"type": "object"
2022-12-05 19:56:44 +02:00
},
2023-06-10 06:14:18 +02:00
"SmartInfoResponseDto": {
2022-12-05 19:56:44 +02:00
"properties": {
"objects": {
2023-06-10 06:14:18 +02:00
"items": {
"type": "string"
},
2023-06-10 06:14:18 +02:00
"nullable": true,
"type": "array"
},
"tags": {
2022-12-05 19:56:44 +02:00
"items": {
"type": "string"
},
"nullable": true,
"type": "array"
2022-12-05 19:56:44 +02:00
}
},
"type": "object"
2022-12-05 19:56:44 +02:00
},
2023-06-10 06:14:18 +02:00
"SystemConfigDto": {
2022-12-05 19:56:44 +02:00
"properties": {
2023-06-10 06:14:18 +02:00
"ffmpeg": {
"$ref": "#/components/schemas/SystemConfigFFmpegDto"
2022-12-05 19:56:44 +02:00
},
"job": {
"$ref": "#/components/schemas/SystemConfigJobDto"
},
2023-06-10 06:14:18 +02:00
"oauth": {
"$ref": "#/components/schemas/SystemConfigOAuthDto"
},
"passwordLogin": {
"$ref": "#/components/schemas/SystemConfigPasswordLoginDto"
},
"storageTemplate": {
"$ref": "#/components/schemas/SystemConfigStorageTemplateDto"
2022-12-05 19:56:44 +02:00
}
},
"required": [
2023-06-10 06:14:18 +02:00
"ffmpeg",
"oauth",
"passwordLogin",
"storageTemplate",
"job"
],
"type": "object"
2022-12-05 19:56:44 +02:00
},
2023-06-10 06:14:18 +02:00
"SystemConfigFFmpegDto": {
2022-12-05 19:56:44 +02:00
"properties": {
"accel": {
"$ref": "#/components/schemas/TranscodeHWAccel"
},
2023-06-10 06:14:18 +02:00
"crf": {
"type": "integer"
},
"maxBitrate": {
"type": "string"
2023-06-10 06:14:18 +02:00
},
"preset": {
"type": "string"
2023-06-10 06:14:18 +02:00
},
"targetAudioCodec": {
"$ref": "#/components/schemas/AudioCodec"
},
2023-06-10 06:14:18 +02:00
"targetResolution": {
"type": "string"
},
"targetVideoCodec": {
"$ref": "#/components/schemas/VideoCodec"
},
"threads": {
"type": "integer"
},
"transcode": {
"$ref": "#/components/schemas/TranscodePolicy"
2023-06-10 06:14:18 +02:00
},
"twoPass": {
"type": "boolean"
2022-12-05 19:56:44 +02:00
}
},
"required": [
2023-06-10 06:14:18 +02:00
"crf",
"threads",
"targetVideoCodec",
"targetAudioCodec",
"transcode",
"accel",
"preset",
2023-06-10 06:14:18 +02:00
"targetResolution",
"maxBitrate",
"twoPass"
],
"type": "object"
2022-12-05 19:56:44 +02:00
},
2023-06-10 06:14:18 +02:00
"SystemConfigJobDto": {
2022-12-05 19:56:44 +02:00
"properties": {
"backgroundTask": {
2023-06-10 06:14:18 +02:00
"$ref": "#/components/schemas/JobSettingsDto"
2022-12-05 19:56:44 +02:00
},
"clipEncoding": {
2023-06-10 06:14:18 +02:00
"$ref": "#/components/schemas/JobSettingsDto"
},
"metadataExtraction": {
2023-06-10 06:14:18 +02:00
"$ref": "#/components/schemas/JobSettingsDto"
},
"objectTagging": {
"$ref": "#/components/schemas/JobSettingsDto"
},
"recognizeFaces": {
2023-06-10 06:14:18 +02:00
"$ref": "#/components/schemas/JobSettingsDto"
},
"search": {
2023-06-10 06:14:18 +02:00
"$ref": "#/components/schemas/JobSettingsDto"
},
"sidecar": {
2023-06-10 06:14:18 +02:00
"$ref": "#/components/schemas/JobSettingsDto"
},
"storageTemplateMigration": {
2023-06-10 06:14:18 +02:00
"$ref": "#/components/schemas/JobSettingsDto"
},
"thumbnailGeneration": {
2023-06-10 06:14:18 +02:00
"$ref": "#/components/schemas/JobSettingsDto"
},
"videoConversion": {
2023-06-10 06:14:18 +02:00
"$ref": "#/components/schemas/JobSettingsDto"
2022-12-05 19:56:44 +02:00
}
},
"required": [
2023-06-10 06:14:18 +02:00
"thumbnailGeneration",
"metadataExtraction",
"videoConversion",
"objectTagging",
"clipEncoding",
"storageTemplateMigration",
"backgroundTask",
"search",
"recognizeFaces",
"sidecar"
],
"type": "object"
2022-12-05 19:56:44 +02:00
},
2023-06-10 06:14:18 +02:00
"SystemConfigOAuthDto": {
2022-12-05 19:56:44 +02:00
"properties": {
"autoLaunch": {
2023-06-10 06:14:18 +02:00
"type": "boolean"
2022-12-05 19:56:44 +02:00
},
"autoRegister": {
"type": "boolean"
},
"buttonText": {
2023-06-10 06:14:18 +02:00
"type": "string"
},
"clientId": {
"type": "string"
},
"clientSecret": {
"type": "string"
},
"enabled": {
2023-06-10 06:14:18 +02:00
"type": "boolean"
},
"issuerUrl": {
"type": "string"
2023-06-10 06:14:18 +02:00
},
"mobileOverrideEnabled": {
"type": "boolean"
},
"mobileRedirectUri": {
2022-12-05 19:56:44 +02:00
"type": "string"
},
"scope": {
"type": "string"
},
"storageLabelClaim": {
"type": "string"
2022-12-05 19:56:44 +02:00
}
},
"required": [
2023-06-10 06:14:18 +02:00
"enabled",
"issuerUrl",
"clientId",
"clientSecret",
"scope",
"storageLabelClaim",
2023-06-10 06:14:18 +02:00
"buttonText",
"autoRegister",
"autoLaunch",
"mobileOverrideEnabled",
"mobileRedirectUri"
],
"type": "object"
2022-12-05 19:56:44 +02:00
},
2023-06-10 06:14:18 +02:00
"SystemConfigPasswordLoginDto": {
2022-12-05 19:56:44 +02:00
"properties": {
2023-06-10 06:14:18 +02:00
"enabled": {
"type": "boolean"
2022-12-05 19:56:44 +02:00
}
},
"required": [
2023-06-10 06:14:18 +02:00
"enabled"
],
"type": "object"
2022-12-05 19:56:44 +02:00
},
2023-06-10 06:14:18 +02:00
"SystemConfigStorageTemplateDto": {
feat(server): Add support for client-side hashing (#2072) * Modify controller DTOs * Can check duplicates on server side * Remove deviceassetid and deviceid * Remove device ids from file uploader * Add db migration for removed device ids * Don't sanitize checksum * Convert asset checksum to string * Make checksum not optional for asset * Use enums when rejecting duplicates * Cleanup * Return of the device id, but optional * Don't use deviceId for upload folder * Use checksum in thumb path * Only use asset id in thumb path * Openapi generation * Put deviceAssetId back in asset response dto * Add missing checksum in test fixture * Add another missing checksum in test fixture * Cleanup asset repository * Add back previous /exists endpoint * Require checksum to not be null * Correctly set deviceId in db * Remove index * Fix compilation errors * Make device id nullabel in asset response dto * Reduce PR scope * Revert asset service * Reorder imports * Reorder imports * Reduce PR scope * Reduce PR scope * Reduce PR scope * Reduce PR scope * Reduce PR scope * Update openapi * Reduce PR scope * refactor: asset bulk upload check * chore: regenreate open-api * chore: fix tests * chore: tests * update migrations and regenerate api * Feat: use checksum in web file uploader * Change to wasm-crypto * Use crypto api for checksumming in web uploader * Minor cleanup of file upload * feat(web): pause and resume jobs * Make device asset id not nullable again * Cleanup * Device id not nullable in response dto * Update API specs * Bump api specs * Remove old TODO comment * Remove NOT NULL constraint on checksum index * Fix requested pubspec changes * Remove unneeded import * Update server/apps/immich/src/api-v1/asset/asset.service.ts Co-authored-by: Michel Heusschen <59014050+michelheusschen@users.noreply.github.com> * Update server/apps/immich/src/api-v1/asset/asset-repository.ts Co-authored-by: Michel Heusschen <59014050+michelheusschen@users.noreply.github.com> * Remove unneeded check * Update server/apps/immich/src/api-v1/asset/asset-repository.ts Co-authored-by: Michel Heusschen <59014050+michelheusschen@users.noreply.github.com> * Remove hashing in the web uploader * Cleanup file uploader * Remove varchar from asset entity fields * Return 200 from bulk upload check * Put device asset id back into asset repository * Merge migrations * Revert pubspec lock * Update openapi specs * Merge upstream changes * Fix failing asset service tests * Fix formatting issue * Cleanup migrations * Remove newline from pubspec * Revert newline * Checkout main version * Revert again * Only return AssetCheck --------- Co-authored-by: Jason Rasmussen <jrasm91@gmail.com> Co-authored-by: Michel Heusschen <59014050+michelheusschen@users.noreply.github.com>
2023-05-24 23:08:21 +02:00
"properties": {
2023-06-10 06:14:18 +02:00
"template": {
feat(server): Add support for client-side hashing (#2072) * Modify controller DTOs * Can check duplicates on server side * Remove deviceassetid and deviceid * Remove device ids from file uploader * Add db migration for removed device ids * Don't sanitize checksum * Convert asset checksum to string * Make checksum not optional for asset * Use enums when rejecting duplicates * Cleanup * Return of the device id, but optional * Don't use deviceId for upload folder * Use checksum in thumb path * Only use asset id in thumb path * Openapi generation * Put deviceAssetId back in asset response dto * Add missing checksum in test fixture * Add another missing checksum in test fixture * Cleanup asset repository * Add back previous /exists endpoint * Require checksum to not be null * Correctly set deviceId in db * Remove index * Fix compilation errors * Make device id nullabel in asset response dto * Reduce PR scope * Revert asset service * Reorder imports * Reorder imports * Reduce PR scope * Reduce PR scope * Reduce PR scope * Reduce PR scope * Reduce PR scope * Update openapi * Reduce PR scope * refactor: asset bulk upload check * chore: regenreate open-api * chore: fix tests * chore: tests * update migrations and regenerate api * Feat: use checksum in web file uploader * Change to wasm-crypto * Use crypto api for checksumming in web uploader * Minor cleanup of file upload * feat(web): pause and resume jobs * Make device asset id not nullable again * Cleanup * Device id not nullable in response dto * Update API specs * Bump api specs * Remove old TODO comment * Remove NOT NULL constraint on checksum index * Fix requested pubspec changes * Remove unneeded import * Update server/apps/immich/src/api-v1/asset/asset.service.ts Co-authored-by: Michel Heusschen <59014050+michelheusschen@users.noreply.github.com> * Update server/apps/immich/src/api-v1/asset/asset-repository.ts Co-authored-by: Michel Heusschen <59014050+michelheusschen@users.noreply.github.com> * Remove unneeded check * Update server/apps/immich/src/api-v1/asset/asset-repository.ts Co-authored-by: Michel Heusschen <59014050+michelheusschen@users.noreply.github.com> * Remove hashing in the web uploader * Cleanup file uploader * Remove varchar from asset entity fields * Return 200 from bulk upload check * Put device asset id back into asset repository * Merge migrations * Revert pubspec lock * Update openapi specs * Merge upstream changes * Fix failing asset service tests * Fix formatting issue * Cleanup migrations * Remove newline from pubspec * Revert newline * Checkout main version * Revert again * Only return AssetCheck --------- Co-authored-by: Jason Rasmussen <jrasm91@gmail.com> Co-authored-by: Michel Heusschen <59014050+michelheusschen@users.noreply.github.com>
2023-05-24 23:08:21 +02:00
"type": "string"
}
},
"required": [
2023-06-10 06:14:18 +02:00
"template"
],
"type": "object"
feat(server): Add support for client-side hashing (#2072) * Modify controller DTOs * Can check duplicates on server side * Remove deviceassetid and deviceid * Remove device ids from file uploader * Add db migration for removed device ids * Don't sanitize checksum * Convert asset checksum to string * Make checksum not optional for asset * Use enums when rejecting duplicates * Cleanup * Return of the device id, but optional * Don't use deviceId for upload folder * Use checksum in thumb path * Only use asset id in thumb path * Openapi generation * Put deviceAssetId back in asset response dto * Add missing checksum in test fixture * Add another missing checksum in test fixture * Cleanup asset repository * Add back previous /exists endpoint * Require checksum to not be null * Correctly set deviceId in db * Remove index * Fix compilation errors * Make device id nullabel in asset response dto * Reduce PR scope * Revert asset service * Reorder imports * Reorder imports * Reduce PR scope * Reduce PR scope * Reduce PR scope * Reduce PR scope * Reduce PR scope * Update openapi * Reduce PR scope * refactor: asset bulk upload check * chore: regenreate open-api * chore: fix tests * chore: tests * update migrations and regenerate api * Feat: use checksum in web file uploader * Change to wasm-crypto * Use crypto api for checksumming in web uploader * Minor cleanup of file upload * feat(web): pause and resume jobs * Make device asset id not nullable again * Cleanup * Device id not nullable in response dto * Update API specs * Bump api specs * Remove old TODO comment * Remove NOT NULL constraint on checksum index * Fix requested pubspec changes * Remove unneeded import * Update server/apps/immich/src/api-v1/asset/asset.service.ts Co-authored-by: Michel Heusschen <59014050+michelheusschen@users.noreply.github.com> * Update server/apps/immich/src/api-v1/asset/asset-repository.ts Co-authored-by: Michel Heusschen <59014050+michelheusschen@users.noreply.github.com> * Remove unneeded check * Update server/apps/immich/src/api-v1/asset/asset-repository.ts Co-authored-by: Michel Heusschen <59014050+michelheusschen@users.noreply.github.com> * Remove hashing in the web uploader * Cleanup file uploader * Remove varchar from asset entity fields * Return 200 from bulk upload check * Put device asset id back into asset repository * Merge migrations * Revert pubspec lock * Update openapi specs * Merge upstream changes * Fix failing asset service tests * Fix formatting issue * Cleanup migrations * Remove newline from pubspec * Revert newline * Checkout main version * Revert again * Only return AssetCheck --------- Co-authored-by: Jason Rasmussen <jrasm91@gmail.com> Co-authored-by: Michel Heusschen <59014050+michelheusschen@users.noreply.github.com>
2023-05-24 23:08:21 +02:00
},
2023-06-10 06:14:18 +02:00
"SystemConfigTemplateStorageOptionDto": {
feat(server): Add support for client-side hashing (#2072) * Modify controller DTOs * Can check duplicates on server side * Remove deviceassetid and deviceid * Remove device ids from file uploader * Add db migration for removed device ids * Don't sanitize checksum * Convert asset checksum to string * Make checksum not optional for asset * Use enums when rejecting duplicates * Cleanup * Return of the device id, but optional * Don't use deviceId for upload folder * Use checksum in thumb path * Only use asset id in thumb path * Openapi generation * Put deviceAssetId back in asset response dto * Add missing checksum in test fixture * Add another missing checksum in test fixture * Cleanup asset repository * Add back previous /exists endpoint * Require checksum to not be null * Correctly set deviceId in db * Remove index * Fix compilation errors * Make device id nullabel in asset response dto * Reduce PR scope * Revert asset service * Reorder imports * Reorder imports * Reduce PR scope * Reduce PR scope * Reduce PR scope * Reduce PR scope * Reduce PR scope * Update openapi * Reduce PR scope * refactor: asset bulk upload check * chore: regenreate open-api * chore: fix tests * chore: tests * update migrations and regenerate api * Feat: use checksum in web file uploader * Change to wasm-crypto * Use crypto api for checksumming in web uploader * Minor cleanup of file upload * feat(web): pause and resume jobs * Make device asset id not nullable again * Cleanup * Device id not nullable in response dto * Update API specs * Bump api specs * Remove old TODO comment * Remove NOT NULL constraint on checksum index * Fix requested pubspec changes * Remove unneeded import * Update server/apps/immich/src/api-v1/asset/asset.service.ts Co-authored-by: Michel Heusschen <59014050+michelheusschen@users.noreply.github.com> * Update server/apps/immich/src/api-v1/asset/asset-repository.ts Co-authored-by: Michel Heusschen <59014050+michelheusschen@users.noreply.github.com> * Remove unneeded check * Update server/apps/immich/src/api-v1/asset/asset-repository.ts Co-authored-by: Michel Heusschen <59014050+michelheusschen@users.noreply.github.com> * Remove hashing in the web uploader * Cleanup file uploader * Remove varchar from asset entity fields * Return 200 from bulk upload check * Put device asset id back into asset repository * Merge migrations * Revert pubspec lock * Update openapi specs * Merge upstream changes * Fix failing asset service tests * Fix formatting issue * Cleanup migrations * Remove newline from pubspec * Revert newline * Checkout main version * Revert again * Only return AssetCheck --------- Co-authored-by: Jason Rasmussen <jrasm91@gmail.com> Co-authored-by: Michel Heusschen <59014050+michelheusschen@users.noreply.github.com>
2023-05-24 23:08:21 +02:00
"properties": {
"dayOptions": {
feat(server): Add support for client-side hashing (#2072) * Modify controller DTOs * Can check duplicates on server side * Remove deviceassetid and deviceid * Remove device ids from file uploader * Add db migration for removed device ids * Don't sanitize checksum * Convert asset checksum to string * Make checksum not optional for asset * Use enums when rejecting duplicates * Cleanup * Return of the device id, but optional * Don't use deviceId for upload folder * Use checksum in thumb path * Only use asset id in thumb path * Openapi generation * Put deviceAssetId back in asset response dto * Add missing checksum in test fixture * Add another missing checksum in test fixture * Cleanup asset repository * Add back previous /exists endpoint * Require checksum to not be null * Correctly set deviceId in db * Remove index * Fix compilation errors * Make device id nullabel in asset response dto * Reduce PR scope * Revert asset service * Reorder imports * Reorder imports * Reduce PR scope * Reduce PR scope * Reduce PR scope * Reduce PR scope * Reduce PR scope * Update openapi * Reduce PR scope * refactor: asset bulk upload check * chore: regenreate open-api * chore: fix tests * chore: tests * update migrations and regenerate api * Feat: use checksum in web file uploader * Change to wasm-crypto * Use crypto api for checksumming in web uploader * Minor cleanup of file upload * feat(web): pause and resume jobs * Make device asset id not nullable again * Cleanup * Device id not nullable in response dto * Update API specs * Bump api specs * Remove old TODO comment * Remove NOT NULL constraint on checksum index * Fix requested pubspec changes * Remove unneeded import * Update server/apps/immich/src/api-v1/asset/asset.service.ts Co-authored-by: Michel Heusschen <59014050+michelheusschen@users.noreply.github.com> * Update server/apps/immich/src/api-v1/asset/asset-repository.ts Co-authored-by: Michel Heusschen <59014050+michelheusschen@users.noreply.github.com> * Remove unneeded check * Update server/apps/immich/src/api-v1/asset/asset-repository.ts Co-authored-by: Michel Heusschen <59014050+michelheusschen@users.noreply.github.com> * Remove hashing in the web uploader * Cleanup file uploader * Remove varchar from asset entity fields * Return 200 from bulk upload check * Put device asset id back into asset repository * Merge migrations * Revert pubspec lock * Update openapi specs * Merge upstream changes * Fix failing asset service tests * Fix formatting issue * Cleanup migrations * Remove newline from pubspec * Revert newline * Checkout main version * Revert again * Only return AssetCheck --------- Co-authored-by: Jason Rasmussen <jrasm91@gmail.com> Co-authored-by: Michel Heusschen <59014050+michelheusschen@users.noreply.github.com>
2023-05-24 23:08:21 +02:00
"items": {
2023-06-10 06:14:18 +02:00
"type": "string"
},
"type": "array"
2023-06-10 06:14:18 +02:00
},
"hourOptions": {
2023-06-10 06:14:18 +02:00
"items": {
"type": "string"
},
"type": "array"
2023-06-10 06:14:18 +02:00
},
"minuteOptions": {
2023-06-10 06:14:18 +02:00
"items": {
"type": "string"
},
"type": "array"
2023-06-10 06:14:18 +02:00
},
"monthOptions": {
2023-06-10 06:14:18 +02:00
"items": {
"type": "string"
},
"type": "array"
2023-06-10 06:14:18 +02:00
},
"presetOptions": {
2023-06-10 06:14:18 +02:00
"items": {
"type": "string"
},
"type": "array"
2023-06-10 06:14:18 +02:00
},
"secondOptions": {
"items": {
"type": "string"
},
"type": "array"
2023-06-10 06:14:18 +02:00
},
"yearOptions": {
2023-06-10 06:14:18 +02:00
"items": {
"type": "string"
},
"type": "array"
feat(server): Add support for client-side hashing (#2072) * Modify controller DTOs * Can check duplicates on server side * Remove deviceassetid and deviceid * Remove device ids from file uploader * Add db migration for removed device ids * Don't sanitize checksum * Convert asset checksum to string * Make checksum not optional for asset * Use enums when rejecting duplicates * Cleanup * Return of the device id, but optional * Don't use deviceId for upload folder * Use checksum in thumb path * Only use asset id in thumb path * Openapi generation * Put deviceAssetId back in asset response dto * Add missing checksum in test fixture * Add another missing checksum in test fixture * Cleanup asset repository * Add back previous /exists endpoint * Require checksum to not be null * Correctly set deviceId in db * Remove index * Fix compilation errors * Make device id nullabel in asset response dto * Reduce PR scope * Revert asset service * Reorder imports * Reorder imports * Reduce PR scope * Reduce PR scope * Reduce PR scope * Reduce PR scope * Reduce PR scope * Update openapi * Reduce PR scope * refactor: asset bulk upload check * chore: regenreate open-api * chore: fix tests * chore: tests * update migrations and regenerate api * Feat: use checksum in web file uploader * Change to wasm-crypto * Use crypto api for checksumming in web uploader * Minor cleanup of file upload * feat(web): pause and resume jobs * Make device asset id not nullable again * Cleanup * Device id not nullable in response dto * Update API specs * Bump api specs * Remove old TODO comment * Remove NOT NULL constraint on checksum index * Fix requested pubspec changes * Remove unneeded import * Update server/apps/immich/src/api-v1/asset/asset.service.ts Co-authored-by: Michel Heusschen <59014050+michelheusschen@users.noreply.github.com> * Update server/apps/immich/src/api-v1/asset/asset-repository.ts Co-authored-by: Michel Heusschen <59014050+michelheusschen@users.noreply.github.com> * Remove unneeded check * Update server/apps/immich/src/api-v1/asset/asset-repository.ts Co-authored-by: Michel Heusschen <59014050+michelheusschen@users.noreply.github.com> * Remove hashing in the web uploader * Cleanup file uploader * Remove varchar from asset entity fields * Return 200 from bulk upload check * Put device asset id back into asset repository * Merge migrations * Revert pubspec lock * Update openapi specs * Merge upstream changes * Fix failing asset service tests * Fix formatting issue * Cleanup migrations * Remove newline from pubspec * Revert newline * Checkout main version * Revert again * Only return AssetCheck --------- Co-authored-by: Jason Rasmussen <jrasm91@gmail.com> Co-authored-by: Michel Heusschen <59014050+michelheusschen@users.noreply.github.com>
2023-05-24 23:08:21 +02:00
}
},
"required": [
2023-06-10 06:14:18 +02:00
"yearOptions",
"monthOptions",
"dayOptions",
"hourOptions",
"minuteOptions",
"secondOptions",
"presetOptions"
],
"type": "object"
feat(server): Add support for client-side hashing (#2072) * Modify controller DTOs * Can check duplicates on server side * Remove deviceassetid and deviceid * Remove device ids from file uploader * Add db migration for removed device ids * Don't sanitize checksum * Convert asset checksum to string * Make checksum not optional for asset * Use enums when rejecting duplicates * Cleanup * Return of the device id, but optional * Don't use deviceId for upload folder * Use checksum in thumb path * Only use asset id in thumb path * Openapi generation * Put deviceAssetId back in asset response dto * Add missing checksum in test fixture * Add another missing checksum in test fixture * Cleanup asset repository * Add back previous /exists endpoint * Require checksum to not be null * Correctly set deviceId in db * Remove index * Fix compilation errors * Make device id nullabel in asset response dto * Reduce PR scope * Revert asset service * Reorder imports * Reorder imports * Reduce PR scope * Reduce PR scope * Reduce PR scope * Reduce PR scope * Reduce PR scope * Update openapi * Reduce PR scope * refactor: asset bulk upload check * chore: regenreate open-api * chore: fix tests * chore: tests * update migrations and regenerate api * Feat: use checksum in web file uploader * Change to wasm-crypto * Use crypto api for checksumming in web uploader * Minor cleanup of file upload * feat(web): pause and resume jobs * Make device asset id not nullable again * Cleanup * Device id not nullable in response dto * Update API specs * Bump api specs * Remove old TODO comment * Remove NOT NULL constraint on checksum index * Fix requested pubspec changes * Remove unneeded import * Update server/apps/immich/src/api-v1/asset/asset.service.ts Co-authored-by: Michel Heusschen <59014050+michelheusschen@users.noreply.github.com> * Update server/apps/immich/src/api-v1/asset/asset-repository.ts Co-authored-by: Michel Heusschen <59014050+michelheusschen@users.noreply.github.com> * Remove unneeded check * Update server/apps/immich/src/api-v1/asset/asset-repository.ts Co-authored-by: Michel Heusschen <59014050+michelheusschen@users.noreply.github.com> * Remove hashing in the web uploader * Cleanup file uploader * Remove varchar from asset entity fields * Return 200 from bulk upload check * Put device asset id back into asset repository * Merge migrations * Revert pubspec lock * Update openapi specs * Merge upstream changes * Fix failing asset service tests * Fix formatting issue * Cleanup migrations * Remove newline from pubspec * Revert newline * Checkout main version * Revert again * Only return AssetCheck --------- Co-authored-by: Jason Rasmussen <jrasm91@gmail.com> Co-authored-by: Michel Heusschen <59014050+michelheusschen@users.noreply.github.com>
2023-05-24 23:08:21 +02:00
},
2023-06-10 06:14:18 +02:00
"TagResponseDto": {
feat(server): Add support for client-side hashing (#2072) * Modify controller DTOs * Can check duplicates on server side * Remove deviceassetid and deviceid * Remove device ids from file uploader * Add db migration for removed device ids * Don't sanitize checksum * Convert asset checksum to string * Make checksum not optional for asset * Use enums when rejecting duplicates * Cleanup * Return of the device id, but optional * Don't use deviceId for upload folder * Use checksum in thumb path * Only use asset id in thumb path * Openapi generation * Put deviceAssetId back in asset response dto * Add missing checksum in test fixture * Add another missing checksum in test fixture * Cleanup asset repository * Add back previous /exists endpoint * Require checksum to not be null * Correctly set deviceId in db * Remove index * Fix compilation errors * Make device id nullabel in asset response dto * Reduce PR scope * Revert asset service * Reorder imports * Reorder imports * Reduce PR scope * Reduce PR scope * Reduce PR scope * Reduce PR scope * Reduce PR scope * Update openapi * Reduce PR scope * refactor: asset bulk upload check * chore: regenreate open-api * chore: fix tests * chore: tests * update migrations and regenerate api * Feat: use checksum in web file uploader * Change to wasm-crypto * Use crypto api for checksumming in web uploader * Minor cleanup of file upload * feat(web): pause and resume jobs * Make device asset id not nullable again * Cleanup * Device id not nullable in response dto * Update API specs * Bump api specs * Remove old TODO comment * Remove NOT NULL constraint on checksum index * Fix requested pubspec changes * Remove unneeded import * Update server/apps/immich/src/api-v1/asset/asset.service.ts Co-authored-by: Michel Heusschen <59014050+michelheusschen@users.noreply.github.com> * Update server/apps/immich/src/api-v1/asset/asset-repository.ts Co-authored-by: Michel Heusschen <59014050+michelheusschen@users.noreply.github.com> * Remove unneeded check * Update server/apps/immich/src/api-v1/asset/asset-repository.ts Co-authored-by: Michel Heusschen <59014050+michelheusschen@users.noreply.github.com> * Remove hashing in the web uploader * Cleanup file uploader * Remove varchar from asset entity fields * Return 200 from bulk upload check * Put device asset id back into asset repository * Merge migrations * Revert pubspec lock * Update openapi specs * Merge upstream changes * Fix failing asset service tests * Fix formatting issue * Cleanup migrations * Remove newline from pubspec * Revert newline * Checkout main version * Revert again * Only return AssetCheck --------- Co-authored-by: Jason Rasmussen <jrasm91@gmail.com> Co-authored-by: Michel Heusschen <59014050+michelheusschen@users.noreply.github.com>
2023-05-24 23:08:21 +02:00
"properties": {
"id": {
"type": "string"
},
2023-06-10 06:14:18 +02:00
"name": {
"type": "string"
feat(server): Add support for client-side hashing (#2072) * Modify controller DTOs * Can check duplicates on server side * Remove deviceassetid and deviceid * Remove device ids from file uploader * Add db migration for removed device ids * Don't sanitize checksum * Convert asset checksum to string * Make checksum not optional for asset * Use enums when rejecting duplicates * Cleanup * Return of the device id, but optional * Don't use deviceId for upload folder * Use checksum in thumb path * Only use asset id in thumb path * Openapi generation * Put deviceAssetId back in asset response dto * Add missing checksum in test fixture * Add another missing checksum in test fixture * Cleanup asset repository * Add back previous /exists endpoint * Require checksum to not be null * Correctly set deviceId in db * Remove index * Fix compilation errors * Make device id nullabel in asset response dto * Reduce PR scope * Revert asset service * Reorder imports * Reorder imports * Reduce PR scope * Reduce PR scope * Reduce PR scope * Reduce PR scope * Reduce PR scope * Update openapi * Reduce PR scope * refactor: asset bulk upload check * chore: regenreate open-api * chore: fix tests * chore: tests * update migrations and regenerate api * Feat: use checksum in web file uploader * Change to wasm-crypto * Use crypto api for checksumming in web uploader * Minor cleanup of file upload * feat(web): pause and resume jobs * Make device asset id not nullable again * Cleanup * Device id not nullable in response dto * Update API specs * Bump api specs * Remove old TODO comment * Remove NOT NULL constraint on checksum index * Fix requested pubspec changes * Remove unneeded import * Update server/apps/immich/src/api-v1/asset/asset.service.ts Co-authored-by: Michel Heusschen <59014050+michelheusschen@users.noreply.github.com> * Update server/apps/immich/src/api-v1/asset/asset-repository.ts Co-authored-by: Michel Heusschen <59014050+michelheusschen@users.noreply.github.com> * Remove unneeded check * Update server/apps/immich/src/api-v1/asset/asset-repository.ts Co-authored-by: Michel Heusschen <59014050+michelheusschen@users.noreply.github.com> * Remove hashing in the web uploader * Cleanup file uploader * Remove varchar from asset entity fields * Return 200 from bulk upload check * Put device asset id back into asset repository * Merge migrations * Revert pubspec lock * Update openapi specs * Merge upstream changes * Fix failing asset service tests * Fix formatting issue * Cleanup migrations * Remove newline from pubspec * Revert newline * Checkout main version * Revert again * Only return AssetCheck --------- Co-authored-by: Jason Rasmussen <jrasm91@gmail.com> Co-authored-by: Michel Heusschen <59014050+michelheusschen@users.noreply.github.com>
2023-05-24 23:08:21 +02:00
},
"type": {
"$ref": "#/components/schemas/TagTypeEnum"
},
2023-06-10 06:14:18 +02:00
"userId": {
feat(server): Add support for client-side hashing (#2072) * Modify controller DTOs * Can check duplicates on server side * Remove deviceassetid and deviceid * Remove device ids from file uploader * Add db migration for removed device ids * Don't sanitize checksum * Convert asset checksum to string * Make checksum not optional for asset * Use enums when rejecting duplicates * Cleanup * Return of the device id, but optional * Don't use deviceId for upload folder * Use checksum in thumb path * Only use asset id in thumb path * Openapi generation * Put deviceAssetId back in asset response dto * Add missing checksum in test fixture * Add another missing checksum in test fixture * Cleanup asset repository * Add back previous /exists endpoint * Require checksum to not be null * Correctly set deviceId in db * Remove index * Fix compilation errors * Make device id nullabel in asset response dto * Reduce PR scope * Revert asset service * Reorder imports * Reorder imports * Reduce PR scope * Reduce PR scope * Reduce PR scope * Reduce PR scope * Reduce PR scope * Update openapi * Reduce PR scope * refactor: asset bulk upload check * chore: regenreate open-api * chore: fix tests * chore: tests * update migrations and regenerate api * Feat: use checksum in web file uploader * Change to wasm-crypto * Use crypto api for checksumming in web uploader * Minor cleanup of file upload * feat(web): pause and resume jobs * Make device asset id not nullable again * Cleanup * Device id not nullable in response dto * Update API specs * Bump api specs * Remove old TODO comment * Remove NOT NULL constraint on checksum index * Fix requested pubspec changes * Remove unneeded import * Update server/apps/immich/src/api-v1/asset/asset.service.ts Co-authored-by: Michel Heusschen <59014050+michelheusschen@users.noreply.github.com> * Update server/apps/immich/src/api-v1/asset/asset-repository.ts Co-authored-by: Michel Heusschen <59014050+michelheusschen@users.noreply.github.com> * Remove unneeded check * Update server/apps/immich/src/api-v1/asset/asset-repository.ts Co-authored-by: Michel Heusschen <59014050+michelheusschen@users.noreply.github.com> * Remove hashing in the web uploader * Cleanup file uploader * Remove varchar from asset entity fields * Return 200 from bulk upload check * Put device asset id back into asset repository * Merge migrations * Revert pubspec lock * Update openapi specs * Merge upstream changes * Fix failing asset service tests * Fix formatting issue * Cleanup migrations * Remove newline from pubspec * Revert newline * Checkout main version * Revert again * Only return AssetCheck --------- Co-authored-by: Jason Rasmussen <jrasm91@gmail.com> Co-authored-by: Michel Heusschen <59014050+michelheusschen@users.noreply.github.com>
2023-05-24 23:08:21 +02:00
"type": "string"
}
},
"required": [
2023-06-10 06:14:18 +02:00
"type",
feat(server): Add support for client-side hashing (#2072) * Modify controller DTOs * Can check duplicates on server side * Remove deviceassetid and deviceid * Remove device ids from file uploader * Add db migration for removed device ids * Don't sanitize checksum * Convert asset checksum to string * Make checksum not optional for asset * Use enums when rejecting duplicates * Cleanup * Return of the device id, but optional * Don't use deviceId for upload folder * Use checksum in thumb path * Only use asset id in thumb path * Openapi generation * Put deviceAssetId back in asset response dto * Add missing checksum in test fixture * Add another missing checksum in test fixture * Cleanup asset repository * Add back previous /exists endpoint * Require checksum to not be null * Correctly set deviceId in db * Remove index * Fix compilation errors * Make device id nullabel in asset response dto * Reduce PR scope * Revert asset service * Reorder imports * Reorder imports * Reduce PR scope * Reduce PR scope * Reduce PR scope * Reduce PR scope * Reduce PR scope * Update openapi * Reduce PR scope * refactor: asset bulk upload check * chore: regenreate open-api * chore: fix tests * chore: tests * update migrations and regenerate api * Feat: use checksum in web file uploader * Change to wasm-crypto * Use crypto api for checksumming in web uploader * Minor cleanup of file upload * feat(web): pause and resume jobs * Make device asset id not nullable again * Cleanup * Device id not nullable in response dto * Update API specs * Bump api specs * Remove old TODO comment * Remove NOT NULL constraint on checksum index * Fix requested pubspec changes * Remove unneeded import * Update server/apps/immich/src/api-v1/asset/asset.service.ts Co-authored-by: Michel Heusschen <59014050+michelheusschen@users.noreply.github.com> * Update server/apps/immich/src/api-v1/asset/asset-repository.ts Co-authored-by: Michel Heusschen <59014050+michelheusschen@users.noreply.github.com> * Remove unneeded check * Update server/apps/immich/src/api-v1/asset/asset-repository.ts Co-authored-by: Michel Heusschen <59014050+michelheusschen@users.noreply.github.com> * Remove hashing in the web uploader * Cleanup file uploader * Remove varchar from asset entity fields * Return 200 from bulk upload check * Put device asset id back into asset repository * Merge migrations * Revert pubspec lock * Update openapi specs * Merge upstream changes * Fix failing asset service tests * Fix formatting issue * Cleanup migrations * Remove newline from pubspec * Revert newline * Checkout main version * Revert again * Only return AssetCheck --------- Co-authored-by: Jason Rasmussen <jrasm91@gmail.com> Co-authored-by: Michel Heusschen <59014050+michelheusschen@users.noreply.github.com>
2023-05-24 23:08:21 +02:00
"id",
2023-06-10 06:14:18 +02:00
"name",
"userId"
],
"type": "object"
feat(server): Add support for client-side hashing (#2072) * Modify controller DTOs * Can check duplicates on server side * Remove deviceassetid and deviceid * Remove device ids from file uploader * Add db migration for removed device ids * Don't sanitize checksum * Convert asset checksum to string * Make checksum not optional for asset * Use enums when rejecting duplicates * Cleanup * Return of the device id, but optional * Don't use deviceId for upload folder * Use checksum in thumb path * Only use asset id in thumb path * Openapi generation * Put deviceAssetId back in asset response dto * Add missing checksum in test fixture * Add another missing checksum in test fixture * Cleanup asset repository * Add back previous /exists endpoint * Require checksum to not be null * Correctly set deviceId in db * Remove index * Fix compilation errors * Make device id nullabel in asset response dto * Reduce PR scope * Revert asset service * Reorder imports * Reorder imports * Reduce PR scope * Reduce PR scope * Reduce PR scope * Reduce PR scope * Reduce PR scope * Update openapi * Reduce PR scope * refactor: asset bulk upload check * chore: regenreate open-api * chore: fix tests * chore: tests * update migrations and regenerate api * Feat: use checksum in web file uploader * Change to wasm-crypto * Use crypto api for checksumming in web uploader * Minor cleanup of file upload * feat(web): pause and resume jobs * Make device asset id not nullable again * Cleanup * Device id not nullable in response dto * Update API specs * Bump api specs * Remove old TODO comment * Remove NOT NULL constraint on checksum index * Fix requested pubspec changes * Remove unneeded import * Update server/apps/immich/src/api-v1/asset/asset.service.ts Co-authored-by: Michel Heusschen <59014050+michelheusschen@users.noreply.github.com> * Update server/apps/immich/src/api-v1/asset/asset-repository.ts Co-authored-by: Michel Heusschen <59014050+michelheusschen@users.noreply.github.com> * Remove unneeded check * Update server/apps/immich/src/api-v1/asset/asset-repository.ts Co-authored-by: Michel Heusschen <59014050+michelheusschen@users.noreply.github.com> * Remove hashing in the web uploader * Cleanup file uploader * Remove varchar from asset entity fields * Return 200 from bulk upload check * Put device asset id back into asset repository * Merge migrations * Revert pubspec lock * Update openapi specs * Merge upstream changes * Fix failing asset service tests * Fix formatting issue * Cleanup migrations * Remove newline from pubspec * Revert newline * Checkout main version * Revert again * Only return AssetCheck --------- Co-authored-by: Jason Rasmussen <jrasm91@gmail.com> Co-authored-by: Michel Heusschen <59014050+michelheusschen@users.noreply.github.com>
2023-05-24 23:08:21 +02:00
},
2023-06-10 06:14:18 +02:00
"TagTypeEnum": {
"enum": [
"OBJECT",
"FACE",
"CUSTOM"
],
"type": "string"
2023-06-10 06:14:18 +02:00
},
"ThumbnailFormat": {
"enum": [
"JPEG",
"WEBP"
],
"type": "string"
2023-06-10 06:14:18 +02:00
},
"TimeGroupEnum": {
"enum": [
"day",
"month"
],
"type": "string"
2023-06-10 06:14:18 +02:00
},
"TranscodeHWAccel": {
"enum": [
"nvenc",
"qsv",
"vaapi",
"disabled"
],
"type": "string"
},
"TranscodePolicy": {
"enum": [
"all",
"optimal",
"required",
"disabled"
],
"type": "string"
},
2023-06-10 06:14:18 +02:00
"UpdateAlbumDto": {
feat(server): Add support for client-side hashing (#2072) * Modify controller DTOs * Can check duplicates on server side * Remove deviceassetid and deviceid * Remove device ids from file uploader * Add db migration for removed device ids * Don't sanitize checksum * Convert asset checksum to string * Make checksum not optional for asset * Use enums when rejecting duplicates * Cleanup * Return of the device id, but optional * Don't use deviceId for upload folder * Use checksum in thumb path * Only use asset id in thumb path * Openapi generation * Put deviceAssetId back in asset response dto * Add missing checksum in test fixture * Add another missing checksum in test fixture * Cleanup asset repository * Add back previous /exists endpoint * Require checksum to not be null * Correctly set deviceId in db * Remove index * Fix compilation errors * Make device id nullabel in asset response dto * Reduce PR scope * Revert asset service * Reorder imports * Reorder imports * Reduce PR scope * Reduce PR scope * Reduce PR scope * Reduce PR scope * Reduce PR scope * Update openapi * Reduce PR scope * refactor: asset bulk upload check * chore: regenreate open-api * chore: fix tests * chore: tests * update migrations and regenerate api * Feat: use checksum in web file uploader * Change to wasm-crypto * Use crypto api for checksumming in web uploader * Minor cleanup of file upload * feat(web): pause and resume jobs * Make device asset id not nullable again * Cleanup * Device id not nullable in response dto * Update API specs * Bump api specs * Remove old TODO comment * Remove NOT NULL constraint on checksum index * Fix requested pubspec changes * Remove unneeded import * Update server/apps/immich/src/api-v1/asset/asset.service.ts Co-authored-by: Michel Heusschen <59014050+michelheusschen@users.noreply.github.com> * Update server/apps/immich/src/api-v1/asset/asset-repository.ts Co-authored-by: Michel Heusschen <59014050+michelheusschen@users.noreply.github.com> * Remove unneeded check * Update server/apps/immich/src/api-v1/asset/asset-repository.ts Co-authored-by: Michel Heusschen <59014050+michelheusschen@users.noreply.github.com> * Remove hashing in the web uploader * Cleanup file uploader * Remove varchar from asset entity fields * Return 200 from bulk upload check * Put device asset id back into asset repository * Merge migrations * Revert pubspec lock * Update openapi specs * Merge upstream changes * Fix failing asset service tests * Fix formatting issue * Cleanup migrations * Remove newline from pubspec * Revert newline * Checkout main version * Revert again * Only return AssetCheck --------- Co-authored-by: Jason Rasmussen <jrasm91@gmail.com> Co-authored-by: Michel Heusschen <59014050+michelheusschen@users.noreply.github.com>
2023-05-24 23:08:21 +02:00
"properties": {
2023-06-10 06:14:18 +02:00
"albumName": {
"type": "string"
},
"albumThumbnailAssetId": {
"format": "uuid",
"type": "string"
feat(server): Add support for client-side hashing (#2072) * Modify controller DTOs * Can check duplicates on server side * Remove deviceassetid and deviceid * Remove device ids from file uploader * Add db migration for removed device ids * Don't sanitize checksum * Convert asset checksum to string * Make checksum not optional for asset * Use enums when rejecting duplicates * Cleanup * Return of the device id, but optional * Don't use deviceId for upload folder * Use checksum in thumb path * Only use asset id in thumb path * Openapi generation * Put deviceAssetId back in asset response dto * Add missing checksum in test fixture * Add another missing checksum in test fixture * Cleanup asset repository * Add back previous /exists endpoint * Require checksum to not be null * Correctly set deviceId in db * Remove index * Fix compilation errors * Make device id nullabel in asset response dto * Reduce PR scope * Revert asset service * Reorder imports * Reorder imports * Reduce PR scope * Reduce PR scope * Reduce PR scope * Reduce PR scope * Reduce PR scope * Update openapi * Reduce PR scope * refactor: asset bulk upload check * chore: regenreate open-api * chore: fix tests * chore: tests * update migrations and regenerate api * Feat: use checksum in web file uploader * Change to wasm-crypto * Use crypto api for checksumming in web uploader * Minor cleanup of file upload * feat(web): pause and resume jobs * Make device asset id not nullable again * Cleanup * Device id not nullable in response dto * Update API specs * Bump api specs * Remove old TODO comment * Remove NOT NULL constraint on checksum index * Fix requested pubspec changes * Remove unneeded import * Update server/apps/immich/src/api-v1/asset/asset.service.ts Co-authored-by: Michel Heusschen <59014050+michelheusschen@users.noreply.github.com> * Update server/apps/immich/src/api-v1/asset/asset-repository.ts Co-authored-by: Michel Heusschen <59014050+michelheusschen@users.noreply.github.com> * Remove unneeded check * Update server/apps/immich/src/api-v1/asset/asset-repository.ts Co-authored-by: Michel Heusschen <59014050+michelheusschen@users.noreply.github.com> * Remove hashing in the web uploader * Cleanup file uploader * Remove varchar from asset entity fields * Return 200 from bulk upload check * Put device asset id back into asset repository * Merge migrations * Revert pubspec lock * Update openapi specs * Merge upstream changes * Fix failing asset service tests * Fix formatting issue * Cleanup migrations * Remove newline from pubspec * Revert newline * Checkout main version * Revert again * Only return AssetCheck --------- Co-authored-by: Jason Rasmussen <jrasm91@gmail.com> Co-authored-by: Michel Heusschen <59014050+michelheusschen@users.noreply.github.com>
2023-05-24 23:08:21 +02:00
}
},
"type": "object"
feat(server): Add support for client-side hashing (#2072) * Modify controller DTOs * Can check duplicates on server side * Remove deviceassetid and deviceid * Remove device ids from file uploader * Add db migration for removed device ids * Don't sanitize checksum * Convert asset checksum to string * Make checksum not optional for asset * Use enums when rejecting duplicates * Cleanup * Return of the device id, but optional * Don't use deviceId for upload folder * Use checksum in thumb path * Only use asset id in thumb path * Openapi generation * Put deviceAssetId back in asset response dto * Add missing checksum in test fixture * Add another missing checksum in test fixture * Cleanup asset repository * Add back previous /exists endpoint * Require checksum to not be null * Correctly set deviceId in db * Remove index * Fix compilation errors * Make device id nullabel in asset response dto * Reduce PR scope * Revert asset service * Reorder imports * Reorder imports * Reduce PR scope * Reduce PR scope * Reduce PR scope * Reduce PR scope * Reduce PR scope * Update openapi * Reduce PR scope * refactor: asset bulk upload check * chore: regenreate open-api * chore: fix tests * chore: tests * update migrations and regenerate api * Feat: use checksum in web file uploader * Change to wasm-crypto * Use crypto api for checksumming in web uploader * Minor cleanup of file upload * feat(web): pause and resume jobs * Make device asset id not nullable again * Cleanup * Device id not nullable in response dto * Update API specs * Bump api specs * Remove old TODO comment * Remove NOT NULL constraint on checksum index * Fix requested pubspec changes * Remove unneeded import * Update server/apps/immich/src/api-v1/asset/asset.service.ts Co-authored-by: Michel Heusschen <59014050+michelheusschen@users.noreply.github.com> * Update server/apps/immich/src/api-v1/asset/asset-repository.ts Co-authored-by: Michel Heusschen <59014050+michelheusschen@users.noreply.github.com> * Remove unneeded check * Update server/apps/immich/src/api-v1/asset/asset-repository.ts Co-authored-by: Michel Heusschen <59014050+michelheusschen@users.noreply.github.com> * Remove hashing in the web uploader * Cleanup file uploader * Remove varchar from asset entity fields * Return 200 from bulk upload check * Put device asset id back into asset repository * Merge migrations * Revert pubspec lock * Update openapi specs * Merge upstream changes * Fix failing asset service tests * Fix formatting issue * Cleanup migrations * Remove newline from pubspec * Revert newline * Checkout main version * Revert again * Only return AssetCheck --------- Co-authored-by: Jason Rasmussen <jrasm91@gmail.com> Co-authored-by: Michel Heusschen <59014050+michelheusschen@users.noreply.github.com>
2023-05-24 23:08:21 +02:00
},
2023-06-10 06:14:18 +02:00
"UpdateAssetDto": {
"properties": {
"description": {
"type": "string"
},
"isArchived": {
"type": "boolean"
},
"isFavorite": {
"type": "boolean"
},
2023-06-10 06:14:18 +02:00
"tagIds": {
"example": [
"bf973405-3f2a-48d2-a687-2ed4167164be",
"dd41870b-5d00-46d2-924e-1d8489a0aa0f",
"fad77c3f-deef-4e7e-9608-14c1aa4e559a"
],
"items": {
"type": "string"
},
"title": "Array of tag IDs to add to the asset",
"type": "array"
}
},
"type": "object"
},
2023-06-10 06:14:18 +02:00
"UpdateTagDto": {
"properties": {
2023-06-10 06:14:18 +02:00
"name": {
"type": "string"
}
},
"type": "object"
},
2023-06-10 06:14:18 +02:00
"UpdateUserDto": {
"properties": {
2023-06-10 06:14:18 +02:00
"email": {
"type": "string"
},
"externalPath": {
2023-06-10 06:14:18 +02:00
"type": "string"
},
"firstName": {
"type": "string"
},
"id": {
"format": "uuid",
2023-06-10 06:14:18 +02:00
"type": "string"
},
"isAdmin": {
"type": "boolean"
2023-06-10 06:14:18 +02:00
},
"lastName": {
feat(server): support for read-only assets and importing existing items in the filesystem (#2715) * Added read-only flag for assets, endpoint to trigger file import vs upload * updated fixtures with new property * if upload is 'read-only', ensure there is no existing asset at the designated originalPath * added test for file import as well as detecting existing image at read-only destination location * Added storage service test for a case where it should not move read-only assets * upload doesn't need the read-only flag available, just importing * default isReadOnly on import endpoint to true * formatting fixes * create-asset dto needs isReadOnly, so set it to false by default on create, updated api generation * updated code to reflect changes in MR * fixed read stream promise return type * new index for originalPath, check for existing path on import, reglardless of user, to prevent duplicates * refactor: import asset * chore: open api * chore: tests * Added externalPath support for individual users, updated UI to allow this to be set by admin * added missing var for externalPath in ui * chore: open api * fix: compilation issues * fix: server test * built api, fixed user-response dto to include externalPath * reverted accidental commit * bad commit of duplicate externalPath in user response dto * fixed tests to include externalPath on expected result * fix: unit tests * centralized supported filetypes, perform file type checking of asset and sidecar during file import process * centralized supported filetype check method to keep regex DRY * fixed typo * combined migrations into one * update api * Removed externalPath from shared-link code, added column to admin user page whether external paths / import is enabled or not * update mimetype * Fixed detect correct mimetype * revert asset-upload config * reverted domain.constant * refactor * fix mime-type issue * fix format --------- Co-authored-by: Jason Rasmussen <jrasm91@gmail.com> Co-authored-by: Alex Tran <alex.tran1502@gmail.com>
2023-06-22 04:33:20 +02:00
"type": "string"
},
"password": {
"type": "string"
2023-06-10 06:14:18 +02:00
},
"shouldChangePassword": {
"type": "boolean"
},
"storageLabel": {
"type": "string"
}
},
"required": [
2023-06-10 06:14:18 +02:00
"id"
],
"type": "object"
},
2023-06-10 06:14:18 +02:00
"UsageByUserDto": {
2022-12-05 19:56:44 +02:00
"properties": {
"photos": {
"type": "integer"
},
"usage": {
"format": "int64",
"type": "integer"
2022-12-05 19:56:44 +02:00
},
2023-06-10 06:14:18 +02:00
"userFirstName": {
"type": "string"
},
"userId": {
2023-06-10 06:14:18 +02:00
"type": "string"
},
"userLastName": {
"type": "string"
2022-12-05 19:56:44 +02:00
},
2023-06-10 06:14:18 +02:00
"videos": {
2022-12-05 19:56:44 +02:00
"type": "integer"
}
},
"required": [
2023-06-10 06:14:18 +02:00
"userId",
"userFirstName",
"userLastName",
"photos",
"videos",
"usage"
],
"type": "object"
2022-12-05 19:56:44 +02:00
},
2023-06-10 06:14:18 +02:00
"UserCountResponseDto": {
2022-12-05 19:56:44 +02:00
"properties": {
2023-06-10 06:14:18 +02:00
"userCount": {
2022-12-05 19:56:44 +02:00
"type": "integer"
}
},
"required": [
2023-06-10 06:14:18 +02:00
"userCount"
],
"type": "object"
2022-12-05 19:56:44 +02:00
},
2023-06-10 06:14:18 +02:00
"UserResponseDto": {
"properties": {
"createdAt": {
"format": "date-time",
"type": "string"
},
"deletedAt": {
"format": "date-time",
"nullable": true,
2023-06-10 06:14:18 +02:00
"type": "string"
},
"email": {
"type": "string"
},
"externalPath": {
"nullable": true,
"type": "string"
},
2023-06-10 06:14:18 +02:00
"firstName": {
"type": "string"
},
"id": {
2023-06-10 06:14:18 +02:00
"type": "string"
},
"isAdmin": {
"type": "boolean"
},
"lastName": {
"type": "string"
},
"oauthId": {
"type": "string"
feat(server): support for read-only assets and importing existing items in the filesystem (#2715) * Added read-only flag for assets, endpoint to trigger file import vs upload * updated fixtures with new property * if upload is 'read-only', ensure there is no existing asset at the designated originalPath * added test for file import as well as detecting existing image at read-only destination location * Added storage service test for a case where it should not move read-only assets * upload doesn't need the read-only flag available, just importing * default isReadOnly on import endpoint to true * formatting fixes * create-asset dto needs isReadOnly, so set it to false by default on create, updated api generation * updated code to reflect changes in MR * fixed read stream promise return type * new index for originalPath, check for existing path on import, reglardless of user, to prevent duplicates * refactor: import asset * chore: open api * chore: tests * Added externalPath support for individual users, updated UI to allow this to be set by admin * added missing var for externalPath in ui * chore: open api * fix: compilation issues * fix: server test * built api, fixed user-response dto to include externalPath * reverted accidental commit * bad commit of duplicate externalPath in user response dto * fixed tests to include externalPath on expected result * fix: unit tests * centralized supported filetypes, perform file type checking of asset and sidecar during file import process * centralized supported filetype check method to keep regex DRY * fixed typo * combined migrations into one * update api * Removed externalPath from shared-link code, added column to admin user page whether external paths / import is enabled or not * update mimetype * Fixed detect correct mimetype * revert asset-upload config * reverted domain.constant * refactor * fix mime-type issue * fix format --------- Co-authored-by: Jason Rasmussen <jrasm91@gmail.com> Co-authored-by: Alex Tran <alex.tran1502@gmail.com>
2023-06-22 04:33:20 +02:00
},
2023-06-10 06:14:18 +02:00
"profileImagePath": {
"type": "string"
},
2023-06-10 06:14:18 +02:00
"shouldChangePassword": {
"type": "boolean"
},
"storageLabel": {
"nullable": true,
2023-06-10 06:14:18 +02:00
"type": "string"
},
2023-06-10 06:14:18 +02:00
"updatedAt": {
"format": "date-time",
"type": "string"
}
},
"required": [
2023-06-10 06:14:18 +02:00
"id",
"email",
"firstName",
"lastName",
"storageLabel",
feat(server): support for read-only assets and importing existing items in the filesystem (#2715) * Added read-only flag for assets, endpoint to trigger file import vs upload * updated fixtures with new property * if upload is 'read-only', ensure there is no existing asset at the designated originalPath * added test for file import as well as detecting existing image at read-only destination location * Added storage service test for a case where it should not move read-only assets * upload doesn't need the read-only flag available, just importing * default isReadOnly on import endpoint to true * formatting fixes * create-asset dto needs isReadOnly, so set it to false by default on create, updated api generation * updated code to reflect changes in MR * fixed read stream promise return type * new index for originalPath, check for existing path on import, reglardless of user, to prevent duplicates * refactor: import asset * chore: open api * chore: tests * Added externalPath support for individual users, updated UI to allow this to be set by admin * added missing var for externalPath in ui * chore: open api * fix: compilation issues * fix: server test * built api, fixed user-response dto to include externalPath * reverted accidental commit * bad commit of duplicate externalPath in user response dto * fixed tests to include externalPath on expected result * fix: unit tests * centralized supported filetypes, perform file type checking of asset and sidecar during file import process * centralized supported filetype check method to keep regex DRY * fixed typo * combined migrations into one * update api * Removed externalPath from shared-link code, added column to admin user page whether external paths / import is enabled or not * update mimetype * Fixed detect correct mimetype * revert asset-upload config * reverted domain.constant * refactor * fix mime-type issue * fix format --------- Co-authored-by: Jason Rasmussen <jrasm91@gmail.com> Co-authored-by: Alex Tran <alex.tran1502@gmail.com>
2023-06-22 04:33:20 +02:00
"externalPath",
2023-06-10 06:14:18 +02:00
"profileImagePath",
"shouldChangePassword",
"isAdmin",
"createdAt",
"deletedAt",
"updatedAt",
"oauthId"
],
"type": "object"
2023-06-10 06:14:18 +02:00
},
"ValidateAccessTokenResponseDto": {
"properties": {
"authStatus": {
"type": "boolean"
}
},
"required": [
"authStatus"
],
"type": "object"
},
"VideoCodec": {
"enum": [
"h264",
"hevc",
"vp9"
],
"type": "string"
2022-12-05 19:56:44 +02:00
}
}
}
}