2022-12-05 19:56:44 +02:00
|
|
|
{
|
|
|
|
"openapi": "3.0.0",
|
|
|
|
"paths": {
|
2023-03-26 04:46:48 +02:00
|
|
|
"/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": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"$ref": "#/components/schemas/AlbumResponseDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Album"
|
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 18:41:29 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2023-03-26 04:46:48 +02:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"post": {
|
|
|
|
"operationId": "createAlbum",
|
|
|
|
"parameters": [],
|
|
|
|
"requestBody": {
|
|
|
|
"required": true,
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/CreateAlbumDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"responses": {
|
|
|
|
"201": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/AlbumResponseDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Album"
|
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 18:41:29 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2023-03-26 04:46:48 +02:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-06-16 17:48:48 +02:00
|
|
|
"/album/count": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"get": {
|
2023-06-16 17:48:48 +02:00
|
|
|
"operationId": "getAlbumCount",
|
2023-06-10 06:14:18 +02:00
|
|
|
"parameters": [],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/AlbumCountResponseDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Album"
|
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-05-25 21:37:19 +02:00
|
|
|
"/album/{id}": {
|
|
|
|
"patch": {
|
|
|
|
"operationId": "updateAlbumInfo",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "id",
|
|
|
|
"required": true,
|
|
|
|
"in": "path",
|
|
|
|
"schema": {
|
|
|
|
"format": "uuid",
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"requestBody": {
|
|
|
|
"required": true,
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/UpdateAlbumDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/AlbumResponseDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Album"
|
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2023-05-26 15:04:09 +02:00
|
|
|
"delete": {
|
|
|
|
"operationId": "deleteAlbum",
|
2023-05-25 21:37:19 +02:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "id",
|
|
|
|
"required": true,
|
|
|
|
"in": "path",
|
|
|
|
"schema": {
|
|
|
|
"format": "uuid",
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-05-26 15:04:09 +02:00
|
|
|
"description": ""
|
2023-05-25 21:37:19 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Album"
|
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2023-05-26 15:04:09 +02:00
|
|
|
"get": {
|
|
|
|
"operationId": "getAlbumInfo",
|
2023-05-25 21:37:19 +02:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "id",
|
|
|
|
"required": true,
|
|
|
|
"in": "path",
|
|
|
|
"schema": {
|
|
|
|
"format": "uuid",
|
|
|
|
"type": "string"
|
|
|
|
}
|
2023-05-26 15:04:09 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "key",
|
|
|
|
"required": false,
|
|
|
|
"in": "query",
|
|
|
|
"schema": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
2023-05-25 21:37:19 +02:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-05-26 15:04:09 +02:00
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/AlbumResponseDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-05-25 21:37:19 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Album"
|
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"/album/{id}/assets": {
|
2023-06-07 16:37:25 +02:00
|
|
|
"put": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"operationId": "addAssetsToAlbum",
|
2023-06-07 16:37:25 +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"
|
|
|
|
}
|
2023-06-07 16:37:25 +02:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"requestBody": {
|
|
|
|
"required": true,
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"$ref": "#/components/schemas/AddAssetsDto"
|
2023-06-07 16:37:25 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"$ref": "#/components/schemas/AddAssetsResponseDto"
|
2023-06-07 16:37:25 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Album"
|
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
|
|
|
}
|
|
|
|
]
|
2023-06-10 06:14:18 +02:00
|
|
|
},
|
2023-06-07 16:37:25 +02:00
|
|
|
"delete": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"operationId": "removeAssetFromAlbum",
|
2023-06-07 16:37:25 +02:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "id",
|
|
|
|
"required": true,
|
|
|
|
"in": "path",
|
|
|
|
"schema": {
|
|
|
|
"format": "uuid",
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
2023-01-18 16:40:15 +02:00
|
|
|
"requestBody": {
|
|
|
|
"required": true,
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"$ref": "#/components/schemas/RemoveAssetsDto"
|
2023-01-18 16:40:15 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"responses": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"200": {
|
2023-01-18 16:40:15 +02:00
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"$ref": "#/components/schemas/AlbumResponseDto"
|
2023-01-18 16:40:15 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"Album"
|
2023-02-24 18:01:10 +02:00
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 18:41:29 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2023-02-24 18:01:10 +02:00
|
|
|
}
|
2023-01-18 16:40:15 +02:00
|
|
|
]
|
2023-06-10 06:14:18 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"/album/{id}/user/{userId}": {
|
|
|
|
"delete": {
|
|
|
|
"operationId": "removeUserFromAlbum",
|
2023-01-18 16:40:15 +02:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "id",
|
|
|
|
"required": true,
|
|
|
|
"in": "path",
|
|
|
|
"schema": {
|
2023-04-05 00:24:08 +02:00
|
|
|
"format": "uuid",
|
2023-02-18 22:58:55 +02:00
|
|
|
"type": "string"
|
2023-01-18 16:40:15 +02:00
|
|
|
}
|
2023-06-10 06:14:18 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "userId",
|
|
|
|
"required": true,
|
|
|
|
"in": "path",
|
|
|
|
"schema": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
2023-01-18 16:40:15 +02:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"description": ""
|
2023-01-18 16:40:15 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"Album"
|
2023-02-24 18:01:10 +02:00
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 18:41:29 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2023-02-24 18:01:10 +02:00
|
|
|
}
|
2023-01-18 16:40:15 +02:00
|
|
|
]
|
2023-06-10 06:14:18 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"/album/{id}/users": {
|
2023-01-18 16:40:15 +02:00
|
|
|
"put": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"operationId": "addUsersToAlbum",
|
2023-01-18 16:40:15 +02:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "id",
|
|
|
|
"required": true,
|
|
|
|
"in": "path",
|
|
|
|
"schema": {
|
2023-04-05 00:24:08 +02:00
|
|
|
"format": "uuid",
|
2023-02-18 22:58:55 +02:00
|
|
|
"type": "string"
|
2023-01-18 16:40:15 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"requestBody": {
|
|
|
|
"required": true,
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"$ref": "#/components/schemas/AddUsersDto"
|
2023-01-18 16:40:15 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"$ref": "#/components/schemas/AlbumResponseDto"
|
2023-01-18 16:40:15 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"Album"
|
2023-02-24 18:01:10 +02:00
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 18:41:29 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2023-02-24 18:01:10 +02:00
|
|
|
}
|
2023-01-18 16:40:15 +02:00
|
|
|
]
|
2023-06-10 06:14:18 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"/api-key": {
|
|
|
|
"post": {
|
|
|
|
"operationId": "createKey",
|
|
|
|
"parameters": [],
|
|
|
|
"requestBody": {
|
|
|
|
"required": true,
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/APIKeyCreateDto"
|
|
|
|
}
|
2023-01-18 16:40:15 +02:00
|
|
|
}
|
|
|
|
}
|
2023-06-10 06:14:18 +02:00
|
|
|
},
|
2023-01-18 16:40:15 +02:00
|
|
|
"responses": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"201": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/APIKeyCreateResponseDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-01-18 16:40:15 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"API Key"
|
2023-02-24 18:01:10 +02:00
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 18:41:29 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2023-02-24 18:01:10 +02:00
|
|
|
}
|
2023-01-18 16:40:15 +02:00
|
|
|
]
|
2023-06-10 06:14:18 +02:00
|
|
|
},
|
2023-05-21 08:26:06 +02:00
|
|
|
"get": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"operationId": "getKeys",
|
|
|
|
"parameters": [],
|
2023-05-21 08:26:06 +02:00
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"$ref": "#/components/schemas/APIKeyResponseDto"
|
2023-05-21 08:26:06 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"API Key"
|
2023-05-21 08:26:06 +02:00
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"/api-key/{id}": {
|
|
|
|
"get": {
|
|
|
|
"operationId": "getKey",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "id",
|
|
|
|
"required": true,
|
|
|
|
"in": "path",
|
|
|
|
"schema": {
|
|
|
|
"format": "uuid",
|
|
|
|
"type": "string"
|
2023-01-24 06:13:42 +02:00
|
|
|
}
|
|
|
|
}
|
2023-06-10 06:14:18 +02:00
|
|
|
],
|
2023-01-21 18:11:55 +02:00
|
|
|
"responses": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"200": {
|
2023-01-21 18:11:55 +02:00
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"$ref": "#/components/schemas/APIKeyResponseDto"
|
2023-01-21 18:11:55 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"API Key"
|
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
|
|
|
}
|
2023-01-21 18:11:55 +02:00
|
|
|
]
|
2023-06-10 06:14:18 +02:00
|
|
|
},
|
|
|
|
"put": {
|
|
|
|
"operationId": "updateKey",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "id",
|
|
|
|
"required": true,
|
|
|
|
"in": "path",
|
|
|
|
"schema": {
|
|
|
|
"format": "uuid",
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
2023-01-21 18:11:55 +02:00
|
|
|
"requestBody": {
|
|
|
|
"required": true,
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"$ref": "#/components/schemas/APIKeyUpdateDto"
|
2023-01-21 18:11:55 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-04-26 04:19:23 +02:00
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"$ref": "#/components/schemas/APIKeyResponseDto"
|
2023-04-26 04:19:23 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"API Key"
|
2023-04-26 04:19:23 +02:00
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 18:41:29 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2023-04-26 04:19:23 +02:00
|
|
|
}
|
|
|
|
]
|
2023-05-09 21:34:17 +02:00
|
|
|
},
|
|
|
|
"delete": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"operationId": "deleteKey",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "id",
|
|
|
|
"required": true,
|
|
|
|
"in": "path",
|
|
|
|
"schema": {
|
|
|
|
"format": "uuid",
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
2023-05-09 21:34:17 +02:00
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": ""
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"API Key"
|
2023-05-09 21:34:17 +02:00
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
|
|
|
}
|
|
|
|
]
|
2023-04-26 04:19:23 +02:00
|
|
|
}
|
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"/asset": {
|
|
|
|
"get": {
|
|
|
|
"operationId": "getAllAssets",
|
|
|
|
"description": "Get all AssetEntity belong to the user",
|
2023-04-26 04:19:23 +02:00
|
|
|
"parameters": [
|
|
|
|
{
|
2023-06-10 06:14:18 +02:00
|
|
|
"name": "userId",
|
|
|
|
"required": false,
|
|
|
|
"in": "query",
|
2023-04-26 04:19:23 +02:00
|
|
|
"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"
|
|
|
|
}
|
2023-04-26 04:19:23 +02:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"$ref": "#/components/schemas/AssetResponseDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-04-26 04:19:23 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"Asset"
|
2023-04-26 04:19:23 +02:00
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 18:41:29 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2023-04-26 04:19:23 +02:00
|
|
|
}
|
|
|
|
]
|
2023-06-10 06:14:18 +02:00
|
|
|
},
|
|
|
|
"delete": {
|
|
|
|
"operationId": "deleteAsset",
|
2023-01-21 18:11:55 +02:00
|
|
|
"parameters": [],
|
2023-06-10 06:14:18 +02:00
|
|
|
"requestBody": {
|
|
|
|
"required": true,
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/DeleteAssetDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-21 18:11:55 +02:00
|
|
|
"responses": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"200": {
|
2023-01-21 18:11:55 +02:00
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"$ref": "#/components/schemas/DeleteAssetResponseDto"
|
|
|
|
}
|
2023-01-21 18:11:55 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"Asset"
|
2023-01-21 18:11:55 +02:00
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
2023-02-24 18:01:10 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 18:41:29 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2023-01-21 18:11:55 +02:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"/asset/assetById/{id}": {
|
|
|
|
"get": {
|
|
|
|
"operationId": "getAssetById",
|
|
|
|
"description": "Get a single asset's information",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "id",
|
|
|
|
"required": true,
|
|
|
|
"in": "path",
|
|
|
|
"schema": {
|
|
|
|
"format": "uuid",
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "key",
|
|
|
|
"required": false,
|
|
|
|
"in": "query",
|
|
|
|
"schema": {
|
|
|
|
"type": "string"
|
2023-01-24 06:13:42 +02:00
|
|
|
}
|
|
|
|
}
|
2023-06-10 06:14:18 +02:00
|
|
|
],
|
2023-01-21 18:11:55 +02:00
|
|
|
"responses": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"200": {
|
2023-01-21 18:11:55 +02:00
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"$ref": "#/components/schemas/AssetResponseDto"
|
2023-01-21 18:11:55 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"Asset"
|
2023-01-21 18:11:55 +02:00
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
2023-02-24 18:01:10 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 18:41:29 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2023-01-21 18:11:55 +02:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"/asset/bulk-upload-check": {
|
2023-01-24 06:13:42 +02:00
|
|
|
"post": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"operationId": "bulkUploadCheck",
|
|
|
|
"description": "Checks if assets exist by checksums",
|
2023-01-24 06:13:42 +02:00
|
|
|
"parameters": [],
|
2023-06-10 06:14:18 +02:00
|
|
|
"requestBody": {
|
|
|
|
"required": true,
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/AssetBulkUploadCheckDto"
|
2023-01-24 06:13:42 +02:00
|
|
|
}
|
2022-12-05 19:56:44 +02:00
|
|
|
}
|
|
|
|
}
|
2023-01-24 06:13:42 +02:00
|
|
|
},
|
2023-03-20 17:55:28 +02:00
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"$ref": "#/components/schemas/AssetBulkUploadCheckResponseDto"
|
2023-03-20 17:55:28 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"Asset"
|
2023-03-20 17:55:28 +02:00
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 18:41:29 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2023-03-20 17:55:28 +02:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"/asset/check": {
|
|
|
|
"post": {
|
|
|
|
"operationId": "checkDuplicateAsset",
|
|
|
|
"description": "Check duplicated asset before uploading - for Web upload used",
|
2023-03-20 17:55:28 +02:00
|
|
|
"parameters": [
|
|
|
|
{
|
2023-06-10 06:14:18 +02:00
|
|
|
"name": "key",
|
|
|
|
"required": false,
|
|
|
|
"in": "query",
|
2023-03-20 17:55:28 +02:00
|
|
|
"schema": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"type": "string"
|
2023-03-20 17:55:28 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"requestBody": {
|
|
|
|
"required": true,
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"$ref": "#/components/schemas/CheckDuplicateAssetDto"
|
2023-03-20 17:55:28 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-01 22:46:07 +02:00
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"$ref": "#/components/schemas/CheckDuplicateAssetResponseDto"
|
2023-04-01 22:46:07 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-03-20 17:55:28 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"Asset"
|
2023-03-20 17:55:28 +02:00
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 18:41:29 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2023-03-20 17:55:28 +02:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"/asset/count-by-time-bucket": {
|
2023-01-24 06:13:42 +02:00
|
|
|
"post": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"operationId": "getAssetCountByTimeBucket",
|
2023-01-24 06:13:42 +02:00
|
|
|
"parameters": [],
|
|
|
|
"requestBody": {
|
|
|
|
"required": true,
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"$ref": "#/components/schemas/GetAssetCountByTimeBucketDto"
|
2023-01-24 06:13:42 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"responses": {
|
2023-06-20 15:49:36 +02:00
|
|
|
"200": {
|
2022-12-05 19:56:44 +02:00
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"$ref": "#/components/schemas/AssetCountByTimeBucketResponseDto"
|
2022-12-05 19:56:44 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"Asset"
|
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
|
|
|
}
|
2022-12-05 19:56:44 +02:00
|
|
|
]
|
2023-01-24 06:13:42 +02:00
|
|
|
}
|
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"/asset/count-by-user-id": {
|
|
|
|
"get": {
|
|
|
|
"operationId": "getAssetCountByUserId",
|
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
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"$ref": "#/components/schemas/AssetCountByUserIdResponseDto"
|
2022-12-05 19:56:44 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"Asset"
|
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
|
|
|
}
|
2022-12-05 19:56:44 +02:00
|
|
|
]
|
2023-01-24 06:13:42 +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
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"$ref": "#/components/schemas/CuratedLocationsResponseDto"
|
|
|
|
}
|
2022-12-05 19:56:44 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"Asset"
|
2023-02-24 18:01:10 +02:00
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 18:41:29 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2023-02-24 18:01:10 +02:00
|
|
|
}
|
2022-12-05 19:56:44 +02:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"/asset/curated-objects": {
|
|
|
|
"get": {
|
|
|
|
"operationId": "getCuratedObjects",
|
2023-01-24 06:13:42 +02:00
|
|
|
"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
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"$ref": "#/components/schemas/CuratedObjectsResponseDto"
|
|
|
|
}
|
2022-12-05 19:56:44 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"Asset"
|
2023-02-24 18:01:10 +02:00
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 18:41:29 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2023-02-24 18:01:10 +02:00
|
|
|
}
|
2022-12-05 19:56:44 +02:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-06-30 18:24:28 +02:00
|
|
|
"/asset/download": {
|
|
|
|
"get": {
|
|
|
|
"operationId": "getDownloadInfo",
|
2023-05-15 19:30:53 +02:00
|
|
|
"parameters": [
|
2023-06-30 18:24:28 +02:00
|
|
|
{
|
|
|
|
"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"
|
|
|
|
}
|
|
|
|
},
|
2023-05-15 19:30:53 +02:00
|
|
|
{
|
2023-06-10 06:14:18 +02:00
|
|
|
"name": "key",
|
|
|
|
"required": false,
|
2023-05-15 19:30:53 +02:00
|
|
|
"in": "query",
|
|
|
|
"schema": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-06-30 18:24:28 +02:00
|
|
|
"description": "",
|
2023-05-15 19:30:53 +02:00
|
|
|
"content": {
|
2023-06-30 18:24:28 +02:00
|
|
|
"application/json": {
|
2023-05-15 19:30:53 +02:00
|
|
|
"schema": {
|
2023-06-30 18:24:28 +02:00
|
|
|
"$ref": "#/components/schemas/DownloadResponseDto"
|
2023-05-15 19:30:53 +02:00
|
|
|
}
|
|
|
|
}
|
2023-06-30 18:24:28 +02:00
|
|
|
}
|
2023-05-15 19:30:53 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"Asset"
|
2023-05-15 19:30:53 +02:00
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
|
|
|
}
|
|
|
|
]
|
2023-06-30 18:24:28 +02:00
|
|
|
},
|
|
|
|
"post": {
|
|
|
|
"operationId": "downloadArchive",
|
2023-06-10 06:14:18 +02:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "key",
|
|
|
|
"required": false,
|
|
|
|
"in": "query",
|
2023-05-15 19:30:53 +02:00
|
|
|
"schema": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
2023-06-30 18:24:28 +02:00
|
|
|
"requestBody": {
|
|
|
|
"required": true,
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/AssetIdsDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-05-15 19:30:53 +02:00
|
|
|
"responses": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"200": {
|
2023-05-15 19:30:53 +02:00
|
|
|
"content": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"application/octet-stream": {
|
2023-05-15 19:30:53 +02:00
|
|
|
"schema": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"type": "string",
|
|
|
|
"format": "binary"
|
2023-05-15 19:30:53 +02:00
|
|
|
}
|
|
|
|
}
|
2023-06-10 06:14:18 +02:00
|
|
|
},
|
|
|
|
"description": ""
|
2023-05-15 19:30:53 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"Asset"
|
2023-05-15 19:30:53 +02:00
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
|
|
|
}
|
|
|
|
]
|
2023-06-10 06:14:18 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"/asset/download/{id}": {
|
2023-06-30 18:24:28 +02:00
|
|
|
"post": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"operationId": "downloadFile",
|
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"
|
|
|
|
}
|
2023-05-15 19:30:53 +02:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"content": {
|
|
|
|
"application/octet-stream": {
|
|
|
|
"schema": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "binary"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-05-15 19:30:53 +02:00
|
|
|
"description": ""
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"Asset"
|
2023-05-15 19:30:53 +02:00
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"/asset/exist": {
|
|
|
|
"post": {
|
|
|
|
"operationId": "checkExistingAssets",
|
|
|
|
"description": "Checks if multiple assets exist on the server and returns all existing - used by background backup",
|
|
|
|
"parameters": [],
|
|
|
|
"requestBody": {
|
|
|
|
"required": true,
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/CheckExistingAssetsDto"
|
|
|
|
}
|
2023-03-20 22:16:32 +02:00
|
|
|
}
|
2023-06-10 06:14:18 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/CheckExistingAssetsResponseDto"
|
|
|
|
}
|
|
|
|
}
|
2023-03-20 22:16:32 +02:00
|
|
|
}
|
2023-06-10 06:14:18 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Asset"
|
|
|
|
],
|
|
|
|
"security": [
|
2023-03-20 22:16:32 +02:00
|
|
|
{
|
2023-06-10 06:14:18 +02:00
|
|
|
"bearer": []
|
2023-03-20 22:16:32 +02:00
|
|
|
},
|
|
|
|
{
|
2023-06-10 06:14:18 +02:00
|
|
|
"cookie": []
|
2023-03-20 22:16:32 +02:00
|
|
|
},
|
|
|
|
{
|
2023-06-10 06:14:18 +02:00
|
|
|
"api_key": []
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"/asset/file/{id}": {
|
|
|
|
"get": {
|
|
|
|
"operationId": "serveFile",
|
|
|
|
"parameters": [
|
2023-04-12 17:37:52 +02:00
|
|
|
{
|
2023-06-10 06:14:18 +02:00
|
|
|
"name": "isThumb",
|
2023-04-12 17:37:52 +02:00
|
|
|
"required": false,
|
|
|
|
"in": "query",
|
|
|
|
"schema": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"title": "Is serve thumbnail (resize) file",
|
2023-04-12 17:37:52 +02:00
|
|
|
"type": "boolean"
|
|
|
|
}
|
|
|
|
},
|
2023-03-20 22:16:32 +02:00
|
|
|
{
|
2023-06-10 06:14:18 +02:00
|
|
|
"name": "isWeb",
|
2023-03-20 22:16:32 +02:00
|
|
|
"required": false,
|
|
|
|
"in": "query",
|
|
|
|
"schema": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"title": "Is request made from web",
|
|
|
|
"type": "boolean"
|
2023-03-20 22:16:32 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2023-06-10 06:14:18 +02:00
|
|
|
"name": "id",
|
|
|
|
"required": true,
|
|
|
|
"in": "path",
|
2023-03-20 22:16:32 +02:00
|
|
|
"schema": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"format": "uuid",
|
2023-03-20 22:16:32 +02:00
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2023-06-10 06:14:18 +02:00
|
|
|
"name": "key",
|
2023-03-20 22:16:32 +02:00
|
|
|
"required": false,
|
|
|
|
"in": "query",
|
|
|
|
"schema": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
2023-06-10 06:14:18 +02:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-07-07 00:25:56 +02:00
|
|
|
"content": {
|
|
|
|
"application/octet-stream": {
|
|
|
|
"schema": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "binary"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"description": ""
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Asset"
|
|
|
|
],
|
|
|
|
"security": [
|
2023-03-20 22:16:32 +02:00
|
|
|
{
|
2023-06-10 06:14:18 +02:00
|
|
|
"bearer": []
|
2023-03-20 22:16:32 +02:00
|
|
|
},
|
|
|
|
{
|
2023-06-10 06:14:18 +02:00
|
|
|
"cookie": []
|
2023-03-20 22:16:32 +02:00
|
|
|
},
|
|
|
|
{
|
2023-06-10 06:14:18 +02:00
|
|
|
"api_key": []
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
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": {
|
|
|
|
"required": true,
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/ImportAssetDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"responses": {
|
|
|
|
"201": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/AssetFileUploadResponseDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Asset"
|
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"/asset/map-marker": {
|
|
|
|
"get": {
|
|
|
|
"operationId": "getMapMarkers",
|
|
|
|
"parameters": [
|
2023-03-20 22:16:32 +02:00
|
|
|
{
|
2023-06-10 06:14:18 +02:00
|
|
|
"name": "isFavorite",
|
2023-03-20 22:16:32 +02:00
|
|
|
"required": false,
|
|
|
|
"in": "query",
|
|
|
|
"schema": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"type": "boolean"
|
2023-03-20 22:16:32 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2023-06-10 06:14:18 +02:00
|
|
|
"name": "fileCreatedAfter",
|
2023-03-20 22:16:32 +02:00
|
|
|
"required": false,
|
|
|
|
"in": "query",
|
|
|
|
"schema": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"format": "date-time",
|
|
|
|
"type": "string"
|
2023-03-20 22:16:32 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2023-06-10 06:14:18 +02:00
|
|
|
"name": "fileCreatedBefore",
|
2023-03-20 22:16:32 +02:00
|
|
|
"required": false,
|
|
|
|
"in": "query",
|
|
|
|
"schema": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"format": "date-time",
|
|
|
|
"type": "string"
|
2023-03-20 22:16:32 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
2023-03-03 04:47:08 +02:00
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"$ref": "#/components/schemas/MapMarkerResponseDto"
|
|
|
|
}
|
2023-03-03 04:47:08 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"Asset"
|
2023-03-03 04:47:08 +02:00
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 18:41:29 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2023-03-03 04:47:08 +02:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-06-15 03:47:18 +02:00
|
|
|
"/asset/memory-lane": {
|
|
|
|
"get": {
|
|
|
|
"operationId": "getMemoryLane",
|
|
|
|
"parameters": [
|
|
|
|
{
|
2023-06-15 20:05:30 +02:00
|
|
|
"name": "timestamp",
|
2023-06-15 03:47:18 +02:00
|
|
|
"required": true,
|
|
|
|
"in": "query",
|
2023-06-15 20:05:30 +02:00
|
|
|
"description": "Get pictures for +24 hours from this time going back x years",
|
2023-06-15 03:47:18 +02:00
|
|
|
"schema": {
|
2023-06-15 20:05:30 +02:00
|
|
|
"format": "date-time",
|
2023-06-15 03:47:18 +02:00
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"$ref": "#/components/schemas/MemoryLaneResponseDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Asset"
|
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"/asset/search": {
|
|
|
|
"post": {
|
|
|
|
"operationId": "searchAsset",
|
2023-03-03 04:47:08 +02:00
|
|
|
"parameters": [],
|
2023-06-10 06:14:18 +02:00
|
|
|
"requestBody": {
|
|
|
|
"required": true,
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/SearchAssetDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"responses": {
|
2023-06-20 15:49:36 +02:00
|
|
|
"200": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"$ref": "#/components/schemas/AssetResponseDto"
|
|
|
|
}
|
2023-03-03 04:47:08 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"Asset"
|
2023-03-03 04:47:08 +02:00
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 18:41:29 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2023-03-05 22:44:31 +02:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"/asset/search-terms": {
|
2023-03-05 22:44:31 +02:00
|
|
|
"get": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"operationId": "getAssetSearchTerms",
|
2023-03-05 22:44:31 +02:00
|
|
|
"parameters": [],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"type": "string"
|
2023-03-05 22:44:31 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"Asset"
|
2023-03-05 22:44:31 +02:00
|
|
|
],
|
|
|
|
"security": [
|
2023-03-03 04:47:08 +02:00
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 18:41:29 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2023-03-03 04:47:08 +02:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"/asset/stat/archive": {
|
2023-01-25 18:35:28 +02:00
|
|
|
"get": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"operationId": "getArchivedAssetCountByUserId",
|
2023-01-25 18:35:28 +02:00
|
|
|
"parameters": [],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"$ref": "#/components/schemas/AssetCountByUserIdResponseDto"
|
2023-01-25 18:35:28 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"Asset"
|
2023-02-24 18:01:10 +02:00
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 18:41:29 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2023-02-24 18:01:10 +02:00
|
|
|
}
|
2023-01-25 18:35:28 +02:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"/asset/thumbnail/{id}": {
|
2023-01-25 18:35:28 +02:00
|
|
|
"get": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"operationId": "getAssetThumbnail",
|
2023-02-24 18:01:10 +02:00
|
|
|
"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"
|
|
|
|
}
|
|
|
|
},
|
2023-02-24 18:01:10 +02:00
|
|
|
{
|
|
|
|
"name": "key",
|
|
|
|
"required": false,
|
|
|
|
"in": "query",
|
|
|
|
"schema": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
2023-01-25 18:35:28 +02:00
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-07-07 00:25:56 +02:00
|
|
|
"content": {
|
2023-07-08 22:07:56 +02:00
|
|
|
"image/jpeg": {
|
|
|
|
"schema": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "binary"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"image/webp": {
|
2023-07-07 00:25:56 +02:00
|
|
|
"schema": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "binary"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"description": ""
|
2023-01-25 18:35:28 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"Asset"
|
2023-02-24 18:01:10 +02:00
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 18:41:29 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2023-02-24 18:01:10 +02:00
|
|
|
}
|
2023-01-25 18:35:28 +02:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"/asset/time-bucket": {
|
|
|
|
"post": {
|
|
|
|
"operationId": "getAssetByTimeBucket",
|
|
|
|
"parameters": [],
|
|
|
|
"requestBody": {
|
|
|
|
"required": true,
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/GetAssetByTimeBucketDto"
|
|
|
|
}
|
2023-01-25 18:35:28 +02:00
|
|
|
}
|
|
|
|
}
|
2023-06-10 06:14:18 +02:00
|
|
|
},
|
2023-01-25 18:35:28 +02:00
|
|
|
"responses": {
|
2023-06-20 15:49:36 +02:00
|
|
|
"200": {
|
2023-01-25 18:35:28 +02:00
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"$ref": "#/components/schemas/AssetResponseDto"
|
|
|
|
}
|
2023-01-25 18:35:28 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"Asset"
|
2023-02-24 18:01:10 +02:00
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 18:41:29 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2023-02-24 18:01:10 +02:00
|
|
|
}
|
2023-01-25 18:35:28 +02:00
|
|
|
]
|
2023-06-10 06:14:18 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"/asset/upload": {
|
|
|
|
"post": {
|
|
|
|
"operationId": "uploadFile",
|
2023-01-25 18:35:28 +02:00
|
|
|
"parameters": [
|
|
|
|
{
|
2023-06-10 06:14:18 +02:00
|
|
|
"name": "key",
|
|
|
|
"required": false,
|
|
|
|
"in": "query",
|
2023-01-25 18:35:28 +02:00
|
|
|
"schema": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
2023-06-02 04:09:57 +02:00
|
|
|
"requestBody": {
|
|
|
|
"required": true,
|
2023-06-10 06:14:18 +02:00
|
|
|
"description": "Asset Upload Information",
|
2023-06-02 04:09:57 +02:00
|
|
|
"content": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"multipart/form-data": {
|
2023-06-02 04:09:57 +02:00
|
|
|
"schema": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"$ref": "#/components/schemas/CreateAssetDto"
|
2023-06-02 04:09:57 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-25 18:35:28 +02:00
|
|
|
"responses": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"201": {
|
2023-06-02 04:09:57 +02:00
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"$ref": "#/components/schemas/AssetFileUploadResponseDto"
|
2023-06-02 04:09:57 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-01-25 18:35:28 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"Asset"
|
2023-02-24 18:01:10 +02:00
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 18:41:29 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2023-02-24 18:01:10 +02:00
|
|
|
}
|
2023-01-25 18:35:28 +02:00
|
|
|
]
|
2023-06-10 06:14:18 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"/asset/{deviceId}": {
|
|
|
|
"get": {
|
|
|
|
"operationId": "getUserAssetsByDeviceId",
|
|
|
|
"description": "Get all asset of a device that are in the database, ID only.",
|
2023-01-25 18:35:28 +02:00
|
|
|
"parameters": [
|
|
|
|
{
|
2023-06-10 06:14:18 +02:00
|
|
|
"name": "deviceId",
|
2023-01-25 18:35:28 +02:00
|
|
|
"required": true,
|
|
|
|
"in": "path",
|
|
|
|
"schema": {
|
2023-04-05 00:24:08 +02:00
|
|
|
"format": "uuid",
|
2023-01-25 18:35:28 +02:00
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Asset"
|
2023-02-24 18:01:10 +02:00
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 18:41:29 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2023-02-24 18:01:10 +02:00
|
|
|
}
|
2023-01-25 18:35:28 +02:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"/asset/{id}": {
|
|
|
|
"put": {
|
|
|
|
"operationId": "updateAsset",
|
|
|
|
"description": "Update an asset",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "id",
|
|
|
|
"required": true,
|
|
|
|
"in": "path",
|
|
|
|
"schema": {
|
|
|
|
"format": "uuid",
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"requestBody": {
|
|
|
|
"required": true,
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/UpdateAssetDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2022-12-05 19:56:44 +02:00
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"$ref": "#/components/schemas/AssetResponseDto"
|
2022-12-05 19:56:44 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"Asset"
|
2022-12-05 19:56:44 +02:00
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
2023-02-24 18:01:10 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 18:41:29 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2022-12-05 19:56:44 +02:00
|
|
|
}
|
|
|
|
]
|
2023-06-10 06:14:18 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"/auth/admin-sign-up": {
|
|
|
|
"post": {
|
|
|
|
"operationId": "adminSignUp",
|
2023-01-24 06:13:42 +02:00
|
|
|
"parameters": [],
|
|
|
|
"requestBody": {
|
|
|
|
"required": true,
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"$ref": "#/components/schemas/SignUpDto"
|
2023-01-24 06:13:42 +02:00
|
|
|
}
|
2022-12-09 22:53:11 +02:00
|
|
|
}
|
|
|
|
}
|
2023-01-24 06:13:42 +02:00
|
|
|
},
|
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
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"$ref": "#/components/schemas/AdminSignupResponseDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"400": {
|
|
|
|
"description": "The server already has an admin"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Authentication"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"/auth/change-password": {
|
|
|
|
"post": {
|
|
|
|
"operationId": "changePassword",
|
|
|
|
"parameters": [],
|
|
|
|
"requestBody": {
|
|
|
|
"required": true,
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/ChangePasswordDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"responses": {
|
|
|
|
"201": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/UserResponseDto"
|
2022-12-05 19:56:44 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"Authentication"
|
2023-01-24 06:13:42 +02:00
|
|
|
],
|
|
|
|
"security": [
|
2022-12-05 19:56:44 +02:00
|
|
|
{
|
2023-01-24 06:13:42 +02:00
|
|
|
"bearer": []
|
2023-02-24 18:01:10 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 18:41:29 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2023-01-24 06:13:42 +02:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"/auth/devices": {
|
2023-01-24 06:13:42 +02:00
|
|
|
"get": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"operationId": "getAuthDevices",
|
2023-01-24 06:13:42 +02:00
|
|
|
"parameters": [],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"$ref": "#/components/schemas/AuthDeviceResponseDto"
|
|
|
|
}
|
2023-01-24 06:13:42 +02:00
|
|
|
}
|
|
|
|
}
|
2022-12-05 19:56:44 +02:00
|
|
|
}
|
|
|
|
}
|
2023-01-24 06:13:42 +02:00
|
|
|
},
|
|
|
|
"tags": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"Authentication"
|
2022-12-05 19:56:44 +02:00
|
|
|
],
|
2023-01-24 06:13:42 +02:00
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
2023-02-24 18:01:10 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 18:41:29 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2023-01-24 06:13:42 +02:00
|
|
|
}
|
|
|
|
]
|
2023-06-10 06:14:18 +02:00
|
|
|
},
|
|
|
|
"delete": {
|
|
|
|
"operationId": "logoutAuthDevices",
|
2023-01-24 06:13:42 +02:00
|
|
|
"parameters": [],
|
2022-12-05 19:56:44 +02:00
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"description": ""
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Authentication"
|
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"/auth/devices/{id}": {
|
|
|
|
"delete": {
|
|
|
|
"operationId": "logoutAuthDevice",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "id",
|
|
|
|
"required": true,
|
|
|
|
"in": "path",
|
|
|
|
"schema": {
|
|
|
|
"format": "uuid",
|
|
|
|
"type": "string"
|
2022-12-05 19:56:44 +02:00
|
|
|
}
|
|
|
|
}
|
2023-06-10 06:14:18 +02:00
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": ""
|
|
|
|
}
|
2022-12-05 19:56:44 +02:00
|
|
|
},
|
|
|
|
"tags": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"Authentication"
|
2022-12-05 19:56:44 +02:00
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
2023-02-24 18:01:10 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 18:41:29 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2022-12-05 19:56:44 +02:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"/auth/login": {
|
2023-06-01 03:51:28 +02:00
|
|
|
"post": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"operationId": "login",
|
2023-06-01 03:51:28 +02:00
|
|
|
"parameters": [],
|
|
|
|
"requestBody": {
|
|
|
|
"required": true,
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"$ref": "#/components/schemas/LoginCredentialDto"
|
2023-06-01 03:51:28 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"responses": {
|
|
|
|
"201": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"$ref": "#/components/schemas/LoginResponseDto"
|
2023-06-01 03:51:28 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"Authentication"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"/auth/logout": {
|
|
|
|
"post": {
|
|
|
|
"operationId": "logout",
|
|
|
|
"parameters": [],
|
|
|
|
"responses": {
|
|
|
|
"201": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/LogoutResponseDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Authentication"
|
2023-06-01 03:51:28 +02:00
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
|
|
|
}
|
|
|
|
]
|
2023-06-10 06:14:18 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"/auth/validateToken": {
|
|
|
|
"post": {
|
|
|
|
"operationId": "validateAccessToken",
|
2023-06-01 03:51:28 +02:00
|
|
|
"parameters": [],
|
|
|
|
"responses": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"201": {
|
2023-06-01 03:51:28 +02:00
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"$ref": "#/components/schemas/ValidateAccessTokenResponseDto"
|
2023-06-01 03:51:28 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"Authentication"
|
2023-06-01 03:51:28 +02:00
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"/jobs": {
|
2023-06-01 03:51:28 +02:00
|
|
|
"get": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"operationId": "getAllJobsStatus",
|
|
|
|
"parameters": [],
|
2023-06-01 03:51:28 +02:00
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"$ref": "#/components/schemas/AllJobStatusResponseDto"
|
2023-06-01 03:51:28 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"Job"
|
2023-06-01 03:51:28 +02:00
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
|
|
|
}
|
|
|
|
]
|
2023-06-10 06:14:18 +02:00
|
|
|
}
|
|
|
|
},
|
2023-06-16 21:36:07 +02:00
|
|
|
"/jobs/{id}": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"put": {
|
|
|
|
"operationId": "sendJobCommand",
|
2023-06-01 03:51:28 +02:00
|
|
|
"parameters": [
|
|
|
|
{
|
2023-06-16 21:36:07 +02:00
|
|
|
"name": "id",
|
2023-06-01 03:51:28 +02:00
|
|
|
"required": true,
|
|
|
|
"in": "path",
|
|
|
|
"schema": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"$ref": "#/components/schemas/JobName"
|
2023-06-01 03:51:28 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"requestBody": {
|
|
|
|
"required": true,
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"$ref": "#/components/schemas/JobCommandDto"
|
2023-06-01 03:51:28 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"$ref": "#/components/schemas/JobStatusDto"
|
2023-06-01 03:51:28 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"Job"
|
2023-06-01 03:51:28 +02:00
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
|
|
|
}
|
|
|
|
]
|
2023-06-10 06:14:18 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"/oauth/callback": {
|
|
|
|
"post": {
|
|
|
|
"operationId": "callback",
|
|
|
|
"parameters": [],
|
|
|
|
"requestBody": {
|
|
|
|
"required": true,
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/OAuthCallbackDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"responses": {
|
|
|
|
"201": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/LoginResponseDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"OAuth"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"/oauth/config": {
|
|
|
|
"post": {
|
|
|
|
"operationId": "generateConfig",
|
|
|
|
"parameters": [],
|
|
|
|
"requestBody": {
|
|
|
|
"required": true,
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/OAuthConfigDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"responses": {
|
|
|
|
"201": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/OAuthConfigResponseDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"OAuth"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"/oauth/link": {
|
|
|
|
"post": {
|
|
|
|
"operationId": "link",
|
|
|
|
"parameters": [],
|
|
|
|
"requestBody": {
|
|
|
|
"required": true,
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/OAuthCallbackDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"responses": {
|
|
|
|
"201": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/UserResponseDto"
|
|
|
|
}
|
|
|
|
}
|
2023-06-01 03:51:28 +02:00
|
|
|
}
|
|
|
|
}
|
2023-06-10 06:14:18 +02:00
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"OAuth"
|
2023-06-01 03:51:28 +02:00
|
|
|
],
|
2023-06-10 06:14:18 +02:00
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"/oauth/mobile-redirect": {
|
|
|
|
"get": {
|
|
|
|
"operationId": "mobileRedirect",
|
|
|
|
"parameters": [],
|
2023-06-01 03:51:28 +02:00
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": ""
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"OAuth"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"/oauth/unlink": {
|
|
|
|
"post": {
|
|
|
|
"operationId": "unlink",
|
|
|
|
"parameters": [],
|
|
|
|
"responses": {
|
|
|
|
"201": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/UserResponseDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"OAuth"
|
2023-06-01 03:51:28 +02:00
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"/partner": {
|
2023-06-01 03:51:28 +02:00
|
|
|
"get": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"operationId": "getPartners",
|
2023-06-01 03:51:28 +02:00
|
|
|
"parameters": [
|
|
|
|
{
|
2023-06-10 06:14:18 +02:00
|
|
|
"name": "direction",
|
2023-06-01 03:51:28 +02:00
|
|
|
"required": true,
|
2023-06-10 06:14:18 +02:00
|
|
|
"in": "query",
|
2023-06-01 03:51:28 +02:00
|
|
|
"schema": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"enum": [
|
|
|
|
"shared-by",
|
|
|
|
"shared-with"
|
|
|
|
],
|
2023-06-01 03:51:28 +02:00
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"$ref": "#/components/schemas/UserResponseDto"
|
2023-06-01 03:51:28 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"Partner"
|
2023-06-01 03:51:28 +02:00
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
|
|
|
}
|
|
|
|
]
|
2023-06-10 06:14:18 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"/partner/{id}": {
|
|
|
|
"post": {
|
|
|
|
"operationId": "createPartner",
|
2023-06-01 03:51:28 +02:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "id",
|
|
|
|
"required": true,
|
|
|
|
"in": "path",
|
|
|
|
"schema": {
|
|
|
|
"format": "uuid",
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"201": {
|
2023-06-01 03:51:28 +02:00
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"$ref": "#/components/schemas/UserResponseDto"
|
2023-06-01 03:51:28 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"Partner"
|
2023-06-01 03:51:28 +02:00
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"delete": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"operationId": "removePartner",
|
2023-06-01 03:51:28 +02:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "id",
|
|
|
|
"required": true,
|
|
|
|
"in": "path",
|
|
|
|
"schema": {
|
|
|
|
"format": "uuid",
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
2023-06-10 06:14:18 +02:00
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": ""
|
2023-06-01 03:51:28 +02:00
|
|
|
}
|
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"tags": [
|
|
|
|
"Partner"
|
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"/person": {
|
|
|
|
"get": {
|
|
|
|
"operationId": "getAllPeople",
|
|
|
|
"parameters": [],
|
2023-06-01 03:51:28 +02:00
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"$ref": "#/components/schemas/PersonResponseDto"
|
2023-06-01 03:51:28 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"Person"
|
2023-06-01 03:51:28 +02:00
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"/person/{id}": {
|
2023-01-24 06:13:42 +02:00
|
|
|
"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": {
|
2023-01-24 06:13:42 +02:00
|
|
|
"200": {
|
2022-12-05 19:56:44 +02:00
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"$ref": "#/components/schemas/PersonResponseDto"
|
2022-12-05 19:56:44 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"Person"
|
2022-12-05 19:56:44 +02:00
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
2023-02-24 18:01:10 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 18:41:29 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2022-12-05 19:56:44 +02:00
|
|
|
}
|
|
|
|
]
|
2023-01-24 06:13:42 +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": {
|
|
|
|
"required": true,
|
|
|
|
"content": {
|
2023-01-24 06:13:42 +02:00
|
|
|
"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
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"responses": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"200": {
|
2022-12-05 19:56:44 +02:00
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"$ref": "#/components/schemas/PersonResponseDto"
|
2022-12-05 19:56:44 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"Person"
|
2022-12-05 19:56:44 +02:00
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
2023-02-24 18:01:10 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 18:41:29 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
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": {
|
2023-01-24 06:13:42 +02:00
|
|
|
"200": {
|
2022-12-05 19:56:44 +02:00
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"$ref": "#/components/schemas/AssetResponseDto"
|
|
|
|
}
|
2022-12-05 19:56:44 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"Person"
|
2022-12-05 19:56:44 +02:00
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
2023-02-24 18:01:10 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 18:41:29 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2022-12-05 19:56:44 +02:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
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": {
|
2023-04-05 00:24:08 +02:00
|
|
|
"format": "uuid",
|
2022-12-05 19:56:44 +02:00
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-07-07 00:25:56 +02:00
|
|
|
"content": {
|
2023-07-08 22:07:56 +02:00
|
|
|
"image/jpeg": {
|
2023-07-07 00:25:56 +02:00
|
|
|
"schema": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "binary"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"description": ""
|
2022-12-05 19:56:44 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"Person"
|
2023-03-27 16:38:54 +02:00
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 18:41:29 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2023-03-27 16:38:54 +02:00
|
|
|
}
|
2022-12-05 19:56:44 +02:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"/search": {
|
2023-01-24 06:13:42 +02:00
|
|
|
"get": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"operationId": "search",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "q",
|
|
|
|
"required": false,
|
|
|
|
"in": "query",
|
|
|
|
"schema": {
|
|
|
|
"type": "string"
|
2023-01-09 22:16:08 +02:00
|
|
|
}
|
2023-06-10 06:14:18 +02:00
|
|
|
},
|
2023-01-09 22:16:08 +02:00
|
|
|
{
|
2023-06-10 06:14:18 +02:00
|
|
|
"name": "query",
|
|
|
|
"required": false,
|
|
|
|
"in": "query",
|
|
|
|
"schema": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
2023-02-24 18:01:10 +02:00
|
|
|
},
|
|
|
|
{
|
2023-06-10 06:14:18 +02:00
|
|
|
"name": "clip",
|
|
|
|
"required": false,
|
|
|
|
"in": "query",
|
|
|
|
"schema": {
|
|
|
|
"type": "boolean"
|
|
|
|
}
|
2023-05-04 18:41:29 +02:00
|
|
|
},
|
|
|
|
{
|
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": {
|
2023-01-24 06:13:42 +02:00
|
|
|
"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": "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": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"$ref": "#/components/schemas/SearchResponseDto"
|
2022-12-05 19:56:44 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"Search"
|
2022-12-05 19:56:44 +02:00
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
2023-02-24 18:01:10 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 18:41:29 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
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
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"$ref": "#/components/schemas/SearchConfigResponseDto"
|
2022-12-05 19:56:44 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"Search"
|
2022-12-05 19:56:44 +02:00
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
2023-02-24 18:01:10 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 18:41:29 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
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
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"$ref": "#/components/schemas/SearchExploreResponseDto"
|
|
|
|
}
|
2022-12-05 19:56:44 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"Search"
|
2022-12-05 19:56:44 +02:00
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
2023-02-24 18:01:10 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 18:41:29 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
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": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"$ref": "#/components/schemas/ServerInfoResponseDto"
|
2022-12-05 19:56:44 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"Server Info"
|
2023-03-27 16:38:54 +02:00
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 18:41:29 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2023-03-27 16:38:54 +02:00
|
|
|
}
|
2022-12-05 19:56:44 +02:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
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": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"$ref": "#/components/schemas/ServerPingResponse"
|
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": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"$ref": "#/components/schemas/ServerStatsResponseDto"
|
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
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
|
|
|
}
|
|
|
|
]
|
2023-06-10 06:14:18 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"/server-info/version": {
|
|
|
|
"get": {
|
|
|
|
"operationId": "getServerVersion",
|
|
|
|
"parameters": [],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/ServerVersionReponseDto"
|
|
|
|
}
|
2023-05-17 19:07:17 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"tags": [
|
|
|
|
"Server Info"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-06-21 03:08:43 +02:00
|
|
|
"/shared-link": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"get": {
|
|
|
|
"operationId": "getAllSharedLinks",
|
|
|
|
"parameters": [],
|
2023-05-17 19:07:17 +02:00
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"$ref": "#/components/schemas/SharedLinkResponseDto"
|
|
|
|
}
|
2023-05-17 19:07:17 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-06-21 03:08:43 +02:00
|
|
|
"Shared Link"
|
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"post": {
|
|
|
|
"operationId": "createSharedLink",
|
|
|
|
"parameters": [],
|
|
|
|
"requestBody": {
|
|
|
|
"required": true,
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/SharedLinkCreateDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"responses": {
|
|
|
|
"201": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/SharedLinkResponseDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Shared Link"
|
2023-05-17 19:07:17 +02:00
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-06-21 03:08:43 +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": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"description": "",
|
2023-05-17 19:07:17 +02:00
|
|
|
"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
|
|
|
}
|
|
|
|
}
|
2023-06-10 06:14:18 +02:00
|
|
|
}
|
2023-05-17 19:07:17 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-06-21 03:08:43 +02:00
|
|
|
"Shared Link"
|
2023-05-17 19:07:17 +02:00
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-06-21 03:08:43 +02:00
|
|
|
"/shared-link/{id}": {
|
2023-05-17 19:07:17 +02:00
|
|
|
"get": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"operationId": "getSharedLinkById",
|
2023-05-17 19:07:17 +02:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "id",
|
|
|
|
"required": true,
|
|
|
|
"in": "path",
|
|
|
|
"schema": {
|
|
|
|
"format": "uuid",
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"$ref": "#/components/schemas/SharedLinkResponseDto"
|
2023-05-17 19:07:17 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-06-21 03:08:43 +02:00
|
|
|
"Shared Link"
|
2023-05-17 19:07:17 +02:00
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
|
|
|
}
|
|
|
|
]
|
2023-06-10 06:14:18 +02:00
|
|
|
},
|
|
|
|
"patch": {
|
|
|
|
"operationId": "updateSharedLink",
|
2023-02-24 18:01:10 +02:00
|
|
|
"parameters": [
|
|
|
|
{
|
2023-06-10 06:14:18 +02:00
|
|
|
"name": "id",
|
|
|
|
"required": true,
|
|
|
|
"in": "path",
|
2023-02-24 18:01:10 +02:00
|
|
|
"schema": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"format": "uuid",
|
2023-02-24 18:01:10 +02:00
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
2023-01-24 06:13:42 +02:00
|
|
|
"requestBody": {
|
|
|
|
"required": true,
|
|
|
|
"content": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"application/json": {
|
2023-01-24 06:13:42 +02:00
|
|
|
"schema": {
|
2023-06-21 03:08:43 +02:00
|
|
|
"$ref": "#/components/schemas/SharedLinkEditDto"
|
2023-01-24 06:13:42 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
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
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"$ref": "#/components/schemas/SharedLinkResponseDto"
|
2022-12-05 19:56:44 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-06-21 03:08:43 +02:00
|
|
|
"Shared Link"
|
2022-12-05 19:56:44 +02:00
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
2023-02-24 18:01:10 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 18:41:29 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2022-12-05 19:56:44 +02:00
|
|
|
}
|
|
|
|
]
|
2023-06-10 06:14:18 +02:00
|
|
|
},
|
|
|
|
"delete": {
|
|
|
|
"operationId": "removeSharedLink",
|
2023-01-24 06:13:42 +02:00
|
|
|
"parameters": [
|
|
|
|
{
|
2023-06-02 04:19:25 +02:00
|
|
|
"name": "id",
|
2023-01-24 06:13:42 +02:00
|
|
|
"required": true,
|
|
|
|
"in": "path",
|
|
|
|
"schema": {
|
2023-04-05 00:24:08 +02:00
|
|
|
"format": "uuid",
|
2023-01-24 06:13:42 +02:00
|
|
|
"type": "string"
|
2022-12-05 19:56:44 +02:00
|
|
|
}
|
|
|
|
}
|
2023-01-24 06:13:42 +02:00
|
|
|
],
|
2022-12-05 19:56:44 +02:00
|
|
|
"responses": {
|
2023-01-24 06:13:42 +02:00
|
|
|
"200": {
|
2023-02-24 18:01:10 +02:00
|
|
|
"description": ""
|
2022-12-05 19:56:44 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-06-21 03:08:43 +02:00
|
|
|
"Shared Link"
|
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"/shared-link/{id}/assets": {
|
|
|
|
"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": {
|
|
|
|
"required": true,
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/AssetIdsDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"$ref": "#/components/schemas/AssetIdsResponseDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Shared Link"
|
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"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": {
|
|
|
|
"required": true,
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/AssetIdsDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"$ref": "#/components/schemas/AssetIdsResponseDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Shared Link"
|
2022-12-05 19:56:44 +02:00
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
2023-02-24 18:01:10 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 18:41:29 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
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": {
|
2023-02-24 18:01:10 +02:00
|
|
|
"200": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"description": "",
|
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
|
|
|
}
|
|
|
|
}
|
2023-06-10 06:14:18 +02:00
|
|
|
}
|
2022-12-05 19:56:44 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"System Config"
|
2022-12-05 19:56:44 +02:00
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
2023-02-24 18:01:10 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 18:41:29 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2022-12-05 19:56:44 +02:00
|
|
|
}
|
|
|
|
]
|
2023-06-10 06:14:18 +02:00
|
|
|
},
|
|
|
|
"put": {
|
|
|
|
"operationId": "updateConfig",
|
|
|
|
"parameters": [],
|
|
|
|
"requestBody": {
|
|
|
|
"required": true,
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/SystemConfigDto"
|
|
|
|
}
|
2023-02-24 18:01:10 +02:00
|
|
|
}
|
2023-01-24 06:13:42 +02:00
|
|
|
}
|
2023-06-10 06:14:18 +02:00
|
|
|
},
|
2022-12-05 19:56:44 +02:00
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"description": "",
|
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
|
|
|
}
|
|
|
|
}
|
2023-06-10 06:14:18 +02:00
|
|
|
}
|
2022-12-05 19:56:44 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"System Config"
|
2022-12-05 19:56:44 +02:00
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
2023-02-24 18:01:10 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 18:41:29 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
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": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"description": "",
|
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
|
|
|
}
|
|
|
|
}
|
2023-06-10 06:14:18 +02:00
|
|
|
}
|
2022-12-05 19:56:44 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"System Config"
|
2022-12-05 19:56:44 +02:00
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
2023-02-24 18:01:10 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 18:41:29 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2022-12-05 19:56:44 +02:00
|
|
|
}
|
|
|
|
]
|
2023-01-24 06:13:42 +02:00
|
|
|
}
|
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"/system-config/storage-template-options": {
|
2023-01-24 06:13:42 +02:00
|
|
|
"get": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"operationId": "getStorageTemplateOptions",
|
|
|
|
"parameters": [],
|
2022-12-05 19:56:44 +02:00
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"description": "",
|
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/SystemConfigTemplateStorageOptionDto"
|
2022-12-05 19:56:44 +02:00
|
|
|
}
|
|
|
|
}
|
2023-06-10 06:14:18 +02:00
|
|
|
}
|
2022-12-05 19:56:44 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"System Config"
|
2022-12-05 19:56:44 +02:00
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
2023-02-24 18:01:10 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 18:41:29 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2022-12-05 19:56:44 +02:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"/tag": {
|
|
|
|
"post": {
|
|
|
|
"operationId": "createTag",
|
2022-12-05 19:56:44 +02:00
|
|
|
"parameters": [],
|
2023-06-10 06:14:18 +02:00
|
|
|
"requestBody": {
|
|
|
|
"required": true,
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/CreateTagDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
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
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"$ref": "#/components/schemas/TagResponseDto"
|
2022-12-05 19:56:44 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"Tag"
|
2022-12-05 19:56:44 +02:00
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
2023-02-24 18:01:10 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 18:41:29 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2022-12-05 19:56:44 +02:00
|
|
|
}
|
|
|
|
]
|
2023-06-10 06:14:18 +02:00
|
|
|
},
|
2022-12-05 19:56:44 +02:00
|
|
|
"get": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"operationId": "getAllTags",
|
2023-01-24 06:13:42 +02:00
|
|
|
"parameters": [],
|
2022-12-05 19:56:44 +02:00
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"$ref": "#/components/schemas/TagResponseDto"
|
2022-12-05 19:56:44 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"Tag"
|
2022-12-05 19:56:44 +02:00
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
2023-02-24 18:01:10 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 18:41:29 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2022-12-05 19:56:44 +02:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"/tag/{id}": {
|
2022-12-05 19:56:44 +02:00
|
|
|
"get": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"operationId": "getTagById",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "id",
|
|
|
|
"required": true,
|
|
|
|
"in": "path",
|
|
|
|
"schema": {
|
|
|
|
"format": "uuid",
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
2022-12-05 19:56:44 +02:00
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"$ref": "#/components/schemas/TagResponseDto"
|
2022-12-05 19:56:44 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"Tag"
|
2022-12-05 19:56:44 +02:00
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
2023-02-24 18:01:10 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 18:41:29 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2022-12-05 19:56:44 +02:00
|
|
|
}
|
|
|
|
]
|
2023-06-10 06:14:18 +02:00
|
|
|
},
|
|
|
|
"patch": {
|
|
|
|
"operationId": "updateTag",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "id",
|
|
|
|
"required": true,
|
|
|
|
"in": "path",
|
|
|
|
"schema": {
|
|
|
|
"format": "uuid",
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
2022-12-05 19:56:44 +02:00
|
|
|
"requestBody": {
|
|
|
|
"required": true,
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"$ref": "#/components/schemas/UpdateTagDto"
|
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
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"$ref": "#/components/schemas/TagResponseDto"
|
2022-12-05 19:56:44 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"Tag"
|
2022-12-05 19:56:44 +02:00
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
2023-02-24 18:01:10 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 18:41:29 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2022-12-05 19:56:44 +02:00
|
|
|
}
|
|
|
|
]
|
2023-06-10 06:14:18 +02:00
|
|
|
},
|
|
|
|
"delete": {
|
|
|
|
"operationId": "deleteTag",
|
|
|
|
"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": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"200": {
|
|
|
|
"description": ""
|
2022-12-05 19:56:44 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"Tag"
|
2022-12-05 19:56:44 +02:00
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
2023-02-24 18:01:10 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 18:41:29 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2022-12-05 19:56:44 +02:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"/tag/{id}/assets": {
|
2023-01-24 06:13:42 +02:00
|
|
|
"get": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"operationId": "getTagAssets",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "id",
|
|
|
|
"required": true,
|
|
|
|
"in": "path",
|
|
|
|
"schema": {
|
|
|
|
"format": "uuid",
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
2022-12-05 19:56:44 +02:00
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"$ref": "#/components/schemas/AssetResponseDto"
|
|
|
|
}
|
2022-12-05 19:56:44 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"Tag"
|
2022-12-05 19:56:44 +02:00
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
2023-02-24 18:01:10 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 18:41:29 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2022-12-05 19:56:44 +02:00
|
|
|
}
|
|
|
|
]
|
2023-06-10 06:14:18 +02:00
|
|
|
},
|
|
|
|
"put": {
|
|
|
|
"operationId": "tagAssets",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "id",
|
|
|
|
"required": true,
|
|
|
|
"in": "path",
|
|
|
|
"schema": {
|
|
|
|
"format": "uuid",
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"requestBody": {
|
|
|
|
"required": true,
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/AssetIdsDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-04-12 17:37:52 +02:00
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"$ref": "#/components/schemas/AssetIdsResponseDto"
|
|
|
|
}
|
2023-04-12 17:37:52 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"Tag"
|
2023-04-12 17:37:52 +02:00
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 18:41:29 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2023-04-12 17:37:52 +02:00
|
|
|
}
|
|
|
|
]
|
2023-06-10 06:14:18 +02:00
|
|
|
},
|
|
|
|
"delete": {
|
|
|
|
"operationId": "untagAssets",
|
2023-01-24 06:13:42 +02:00
|
|
|
"parameters": [
|
2023-05-25 05:52:43 +02:00
|
|
|
{
|
2023-06-10 06:14:18 +02:00
|
|
|
"name": "id",
|
|
|
|
"required": true,
|
|
|
|
"in": "path",
|
2023-05-25 05:52:43 +02:00
|
|
|
"schema": {
|
|
|
|
"format": "uuid",
|
|
|
|
"type": "string"
|
|
|
|
}
|
2023-01-15 07:49:47 +02:00
|
|
|
}
|
2023-01-24 06:13:42 +02:00
|
|
|
],
|
2023-06-10 06:14:18 +02:00
|
|
|
"requestBody": {
|
|
|
|
"required": true,
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/AssetIdsDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-15 07:49:47 +02:00
|
|
|
"responses": {
|
2023-01-24 06:13:42 +02:00
|
|
|
"200": {
|
2023-01-15 07:49:47 +02:00
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-01-24 06:13:42 +02:00
|
|
|
"type": "array",
|
|
|
|
"items": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"$ref": "#/components/schemas/AssetIdsResponseDto"
|
2023-01-24 06:13:42 +02:00
|
|
|
}
|
2023-01-15 07:49:47 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"Tag"
|
2023-01-15 07:49:47 +02:00
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
2023-02-24 18:01:10 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 18:41:29 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2023-01-15 07:49:47 +02:00
|
|
|
}
|
|
|
|
]
|
2023-06-10 06:14:18 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"/user": {
|
|
|
|
"get": {
|
|
|
|
"operationId": "getAllUsers",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "isAll",
|
|
|
|
"required": true,
|
|
|
|
"in": "query",
|
|
|
|
"schema": {
|
|
|
|
"type": "boolean"
|
2023-01-15 07:49:47 +02:00
|
|
|
}
|
|
|
|
}
|
2023-06-10 06:14:18 +02:00
|
|
|
],
|
2023-01-15 07:49:47 +02:00
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-01-24 06:13:42 +02:00
|
|
|
"type": "array",
|
|
|
|
"items": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"$ref": "#/components/schemas/UserResponseDto"
|
2023-01-24 06:13:42 +02:00
|
|
|
}
|
2023-01-15 07:49:47 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"User"
|
2023-01-15 07:49:47 +02:00
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
2023-02-24 18:01:10 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 18:41:29 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2023-01-15 07:49:47 +02:00
|
|
|
}
|
|
|
|
]
|
2023-06-10 06:14:18 +02:00
|
|
|
},
|
2023-01-24 06:13:42 +02:00
|
|
|
"post": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"operationId": "createUser",
|
2022-12-05 19:56:44 +02:00
|
|
|
"parameters": [],
|
2023-01-24 06:13:42 +02:00
|
|
|
"requestBody": {
|
|
|
|
"required": true,
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"$ref": "#/components/schemas/CreateUserDto"
|
2022-12-05 19:56:44 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"responses": {
|
2023-01-24 06:13:42 +02:00
|
|
|
"201": {
|
2022-12-05 19:56:44 +02:00
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"$ref": "#/components/schemas/UserResponseDto"
|
2022-12-05 19:56:44 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"User"
|
2023-01-24 06:13:42 +02:00
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
2023-02-24 18:01:10 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 18:41:29 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2023-01-24 06:13:42 +02:00
|
|
|
}
|
2022-12-05 19:56:44 +02:00
|
|
|
]
|
2023-06-10 06:14:18 +02:00
|
|
|
},
|
|
|
|
"put": {
|
|
|
|
"operationId": "updateUser",
|
|
|
|
"parameters": [],
|
|
|
|
"requestBody": {
|
|
|
|
"required": true,
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/UpdateUserDto"
|
|
|
|
}
|
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": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"$ref": "#/components/schemas/UserResponseDto"
|
2022-12-05 19:56:44 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"User"
|
2023-01-24 06:13:42 +02:00
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
2023-02-24 18:01:10 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 18:41:29 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2023-01-24 06:13:42 +02:00
|
|
|
}
|
2022-12-05 19:56:44 +02:00
|
|
|
]
|
2023-01-24 06:13:42 +02:00
|
|
|
}
|
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"/user/count": {
|
2023-01-24 06:13:42 +02:00
|
|
|
"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",
|
2023-06-01 03:51:28 +02:00
|
|
|
"required": false,
|
|
|
|
"in": "query",
|
|
|
|
"schema": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"default": false,
|
|
|
|
"type": "boolean"
|
2023-01-24 06:13:42 +02:00
|
|
|
}
|
|
|
|
}
|
2023-06-01 03:51:28 +02:00
|
|
|
],
|
2023-01-24 06:13:42 +02:00
|
|
|
"responses": {
|
2023-06-01 03:51:28 +02:00
|
|
|
"200": {
|
2023-01-24 06:13:42 +02:00
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"$ref": "#/components/schemas/UserCountResponseDto"
|
2023-01-24 06:13:42 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"User"
|
2023-01-24 06:13:42 +02:00
|
|
|
]
|
2023-02-15 23:21:22 +02:00
|
|
|
}
|
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"/user/info/{userId}": {
|
|
|
|
"get": {
|
|
|
|
"operationId": "getUserById",
|
2023-02-24 18:01:10 +02:00
|
|
|
"parameters": [
|
|
|
|
{
|
2023-06-10 06:14:18 +02:00
|
|
|
"name": "userId",
|
2023-06-01 03:51:28 +02:00
|
|
|
"required": true,
|
|
|
|
"in": "path",
|
2023-02-24 18:01:10 +02:00
|
|
|
"schema": {
|
2023-06-01 03:51:28 +02:00
|
|
|
"format": "uuid",
|
2023-02-24 18:01:10 +02:00
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
2023-01-24 06:13:42 +02:00
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"$ref": "#/components/schemas/UserResponseDto"
|
2023-01-24 06:13:42 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"User"
|
2023-01-24 06:13:42 +02:00
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
2023-02-24 18:01:10 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 18:41:29 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2023-01-24 06:13:42 +02:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"/user/me": {
|
|
|
|
"get": {
|
|
|
|
"operationId": "getMyUserInfo",
|
2023-01-24 06:13:42 +02:00
|
|
|
"parameters": [],
|
|
|
|
"responses": {
|
2023-06-01 03:51:28 +02:00
|
|
|
"200": {
|
2023-01-15 22:01:10 +02:00
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"$ref": "#/components/schemas/UserResponseDto"
|
2023-01-15 22:01:10 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"User"
|
2023-02-24 18:01:10 +02:00
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 18:41:29 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2023-02-24 18:01:10 +02:00
|
|
|
}
|
2023-01-15 22:01:10 +02:00
|
|
|
]
|
2023-06-01 03:51:28 +02:00
|
|
|
}
|
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"/user/profile-image": {
|
2023-06-01 03:51:28 +02:00
|
|
|
"post": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"operationId": "createProfileImage",
|
2023-01-15 22:01:10 +02:00
|
|
|
"parameters": [],
|
2023-06-01 03:51:28 +02:00
|
|
|
"requestBody": {
|
|
|
|
"required": true,
|
2023-06-10 06:14:18 +02:00
|
|
|
"description": "A new avatar for the user",
|
2023-06-01 03:51:28 +02:00
|
|
|
"content": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"multipart/form-data": {
|
2023-06-01 03:51:28 +02:00
|
|
|
"schema": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"$ref": "#/components/schemas/CreateProfileImageDto"
|
2023-06-01 03:51:28 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-15 22:01:10 +02:00
|
|
|
"responses": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"201": {
|
2023-01-15 22:01:10 +02:00
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"$ref": "#/components/schemas/CreateProfileImageResponseDto"
|
2023-01-15 22:01:10 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"User"
|
2023-02-24 18:01:10 +02:00
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 18:41:29 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2023-02-24 18:01:10 +02:00
|
|
|
}
|
2023-01-15 22:01:10 +02:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
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-01-15 22:01:10 +02:00
|
|
|
}
|
|
|
|
}
|
2023-06-10 06:14:18 +02:00
|
|
|
],
|
2023-01-15 22:01:10 +02:00
|
|
|
"responses": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"200": {
|
2023-01-15 22:01:10 +02:00
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"type": "object"
|
2023-01-15 22:01:10 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"User"
|
2023-02-24 18:01:10 +02:00
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 18:41:29 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2023-02-24 18:01:10 +02:00
|
|
|
}
|
2023-01-15 22:01:10 +02:00
|
|
|
]
|
2023-06-01 03:51:28 +02:00
|
|
|
}
|
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"/user/{userId}": {
|
|
|
|
"delete": {
|
|
|
|
"operationId": "deleteUser",
|
2023-01-15 22:01:10 +02:00
|
|
|
"parameters": [
|
|
|
|
{
|
2023-06-10 06:14:18 +02:00
|
|
|
"name": "userId",
|
|
|
|
"required": true,
|
|
|
|
"in": "path",
|
2023-01-15 22:01:10 +02:00
|
|
|
"schema": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"format": "uuid",
|
2023-01-15 22:01:10 +02:00
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"$ref": "#/components/schemas/UserResponseDto"
|
2023-01-15 22:01:10 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"User"
|
2023-02-24 18:01:10 +02:00
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 18:41:29 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2023-02-24 18:01:10 +02:00
|
|
|
}
|
2023-01-15 22:01:10 +02:00
|
|
|
]
|
2023-06-01 03:51:28 +02:00
|
|
|
}
|
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"/user/{userId}/restore": {
|
|
|
|
"post": {
|
|
|
|
"operationId": "restoreUser",
|
2023-01-15 22:01:10 +02:00
|
|
|
"parameters": [
|
|
|
|
{
|
2023-06-10 06:14:18 +02:00
|
|
|
"name": "userId",
|
|
|
|
"required": true,
|
|
|
|
"in": "path",
|
2023-01-15 22:01:10 +02:00
|
|
|
"schema": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"format": "uuid",
|
2023-01-15 22:01:10 +02:00
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"201": {
|
2023-06-01 03:51:28 +02:00
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"$ref": "#/components/schemas/UserResponseDto"
|
2023-06-01 03:51:28 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-01-15 22:01:10 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"User"
|
2023-02-24 18:01:10 +02:00
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"bearer": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cookie": []
|
2023-05-04 18:41:29 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"api_key": []
|
2023-02-24 18:01:10 +02:00
|
|
|
}
|
2023-01-15 22:01:10 +02:00
|
|
|
]
|
|
|
|
}
|
2023-06-10 06:14:18 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"info": {
|
|
|
|
"title": "Immich",
|
|
|
|
"description": "Immich API",
|
2023-07-05 04:50:53 +02:00
|
|
|
"version": "1.66.1",
|
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-01-15 22:01:10 +02:00
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"schemas": {
|
|
|
|
"APIKeyCreateDto": {
|
2023-05-25 04:10:45 +02:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"name": {
|
2023-05-25 04:10:45 +02:00
|
|
|
"type": "string"
|
|
|
|
}
|
2023-06-10 06:14:18 +02:00
|
|
|
}
|
2023-05-25 04:10:45 +02:00
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"APIKeyCreateResponseDto": {
|
2023-05-25 21:37:19 +02:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"secret": {
|
2023-05-25 21:37:19 +02:00
|
|
|
"type": "string"
|
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"apiKey": {
|
|
|
|
"$ref": "#/components/schemas/APIKeyResponseDto"
|
2023-06-07 16:37:25 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"secret",
|
|
|
|
"apiKey"
|
2023-06-07 16:37:25 +02:00
|
|
|
]
|
|
|
|
},
|
2023-03-26 04:46:48 +02:00
|
|
|
"APIKeyResponseDto": {
|
2023-03-20 17:55:28 +02:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-03-26 04:46:48 +02:00
|
|
|
"id": {
|
|
|
|
"type": "string"
|
2023-03-20 17:55:28 +02:00
|
|
|
},
|
2023-03-26 04:46:48 +02:00
|
|
|
"name": {
|
|
|
|
"type": "string"
|
2023-03-20 17:55:28 +02:00
|
|
|
},
|
2023-03-26 04:46:48 +02:00
|
|
|
"createdAt": {
|
2023-05-30 15:15:56 +02:00
|
|
|
"format": "date-time",
|
2023-03-26 04:46:48 +02:00
|
|
|
"type": "string"
|
2023-03-20 17:55:28 +02:00
|
|
|
},
|
2023-03-26 04:46:48 +02:00
|
|
|
"updatedAt": {
|
2023-05-30 15:15:56 +02:00
|
|
|
"format": "date-time",
|
2023-03-26 04:46:48 +02:00
|
|
|
"type": "string"
|
2023-03-20 17:55:28 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
2023-03-26 04:46:48 +02:00
|
|
|
"id",
|
|
|
|
"name",
|
|
|
|
"createdAt",
|
|
|
|
"updatedAt"
|
2023-03-20 17:55:28 +02:00
|
|
|
]
|
|
|
|
},
|
2023-03-26 04:46:48 +02:00
|
|
|
"APIKeyUpdateDto": {
|
2023-01-24 06:13:42 +02:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-03-26 04:46:48 +02:00
|
|
|
"name": {
|
2023-01-24 06:13:42 +02:00
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
2023-03-26 04:46:48 +02:00
|
|
|
"name"
|
2023-01-24 06:13:42 +02:00
|
|
|
]
|
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"AddAssetsDto": {
|
2023-01-24 06:13:42 +02:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"assetIds": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "uuid"
|
|
|
|
}
|
2023-01-24 06:13:42 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"assetIds"
|
2023-01-25 18:35:28 +02:00
|
|
|
]
|
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"AddAssetsResponseDto": {
|
2023-01-21 18:11:55 +02:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"successfullyAdded": {
|
|
|
|
"type": "integer"
|
2023-01-25 18:35:28 +02:00
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"alreadyInAlbum": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
2023-01-25 18:35:28 +02:00
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"album": {
|
|
|
|
"$ref": "#/components/schemas/AlbumResponseDto"
|
2023-03-26 04:46:48 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"successfullyAdded",
|
|
|
|
"alreadyInAlbum"
|
2023-03-26 04:46:48 +02:00
|
|
|
]
|
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"AddUsersDto": {
|
2023-03-26 04:46:48 +02:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"sharedUserIds": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "uuid"
|
|
|
|
}
|
2023-03-26 04:46:48 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"sharedUserIds"
|
2023-03-26 04:46:48 +02:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"AdminSignupResponseDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"type": "string"
|
2023-01-25 18:35:28 +02:00
|
|
|
},
|
2023-03-26 04:46:48 +02:00
|
|
|
"email": {
|
|
|
|
"type": "string"
|
2023-01-25 18:35:28 +02:00
|
|
|
},
|
2023-03-26 04:46:48 +02:00
|
|
|
"firstName": {
|
|
|
|
"type": "string"
|
2023-01-25 18:35:28 +02:00
|
|
|
},
|
2023-03-26 04:46:48 +02:00
|
|
|
"lastName": {
|
|
|
|
"type": "string"
|
2023-01-25 18:35:28 +02:00
|
|
|
},
|
2023-03-26 04:46:48 +02:00
|
|
|
"createdAt": {
|
2023-05-30 15:15:56 +02:00
|
|
|
"format": "date-time",
|
2023-03-26 04:46:48 +02:00
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"id",
|
|
|
|
"email",
|
|
|
|
"firstName",
|
|
|
|
"lastName",
|
|
|
|
"createdAt"
|
|
|
|
]
|
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"AlbumCountResponseDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"owned": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"shared": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
2023-06-16 17:48:48 +02:00
|
|
|
"notShared": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"type": "integer"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"owned",
|
|
|
|
"shared",
|
2023-06-16 17:48:48 +02:00
|
|
|
"notShared"
|
2023-06-10 06:14:18 +02:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"AlbumResponseDto": {
|
2023-04-26 04:19:23 +02:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"assetCount": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
2023-04-26 04:19:23 +02:00
|
|
|
"id": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"ownerId": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"albumName": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2023-04-26 04:19:23 +02:00
|
|
|
"createdAt": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"format": "date-time",
|
2023-04-26 04:19:23 +02:00
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"updatedAt": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"format": "date-time",
|
2023-04-26 04:19:23 +02:00
|
|
|
"type": "string"
|
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"albumThumbnailAssetId": {
|
|
|
|
"type": "string",
|
|
|
|
"nullable": true
|
|
|
|
},
|
|
|
|
"shared": {
|
2023-04-26 04:19:23 +02:00
|
|
|
"type": "boolean"
|
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"sharedUsers": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"$ref": "#/components/schemas/UserResponseDto"
|
|
|
|
}
|
2023-04-26 04:19:23 +02:00
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"assets": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"$ref": "#/components/schemas/AssetResponseDto"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"owner": {
|
|
|
|
"$ref": "#/components/schemas/UserResponseDto"
|
2023-06-21 03:00:59 +02:00
|
|
|
},
|
|
|
|
"lastModifiedAssetTimestamp": {
|
|
|
|
"format": "date-time",
|
|
|
|
"type": "string"
|
2023-04-26 04:19:23 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"assetCount",
|
2023-04-26 04:19:23 +02:00
|
|
|
"id",
|
2023-06-10 06:14:18 +02:00
|
|
|
"ownerId",
|
|
|
|
"albumName",
|
2023-04-26 04:19:23 +02:00
|
|
|
"createdAt",
|
|
|
|
"updatedAt",
|
2023-06-10 06:14:18 +02:00
|
|
|
"albumThumbnailAssetId",
|
|
|
|
"shared",
|
|
|
|
"sharedUsers",
|
|
|
|
"assets",
|
|
|
|
"owner"
|
2023-04-26 04:19:23 +02:00
|
|
|
]
|
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"AllJobStatusResponseDto": {
|
2023-03-26 04:46:48 +02:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"thumbnailGeneration": {
|
|
|
|
"$ref": "#/components/schemas/JobStatusDto"
|
|
|
|
},
|
|
|
|
"metadataExtraction": {
|
|
|
|
"$ref": "#/components/schemas/JobStatusDto"
|
|
|
|
},
|
|
|
|
"videoConversion": {
|
|
|
|
"$ref": "#/components/schemas/JobStatusDto"
|
|
|
|
},
|
|
|
|
"objectTagging": {
|
|
|
|
"$ref": "#/components/schemas/JobStatusDto"
|
|
|
|
},
|
|
|
|
"clipEncoding": {
|
|
|
|
"$ref": "#/components/schemas/JobStatusDto"
|
|
|
|
},
|
|
|
|
"storageTemplateMigration": {
|
|
|
|
"$ref": "#/components/schemas/JobStatusDto"
|
|
|
|
},
|
|
|
|
"backgroundTask": {
|
|
|
|
"$ref": "#/components/schemas/JobStatusDto"
|
|
|
|
},
|
|
|
|
"search": {
|
|
|
|
"$ref": "#/components/schemas/JobStatusDto"
|
|
|
|
},
|
|
|
|
"recognizeFaces": {
|
|
|
|
"$ref": "#/components/schemas/JobStatusDto"
|
|
|
|
},
|
|
|
|
"sidecar": {
|
|
|
|
"$ref": "#/components/schemas/JobStatusDto"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"thumbnailGeneration",
|
|
|
|
"metadataExtraction",
|
|
|
|
"videoConversion",
|
|
|
|
"objectTagging",
|
|
|
|
"clipEncoding",
|
|
|
|
"storageTemplateMigration",
|
|
|
|
"backgroundTask",
|
|
|
|
"search",
|
|
|
|
"recognizeFaces",
|
|
|
|
"sidecar"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"AssetBulkUploadCheckDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"assets": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"$ref": "#/components/schemas/AssetBulkUploadCheckItem"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"assets"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"AssetBulkUploadCheckItem": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"checksum": {
|
|
|
|
"type": "string",
|
|
|
|
"description": "base64 or hex encoded sha1 hash"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"id",
|
|
|
|
"checksum"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"AssetBulkUploadCheckResponseDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"results": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"$ref": "#/components/schemas/AssetBulkUploadCheckResult"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"results"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"AssetBulkUploadCheckResult": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"action": {
|
|
|
|
"type": "string",
|
|
|
|
"enum": [
|
|
|
|
"accept",
|
|
|
|
"reject"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"reason": {
|
|
|
|
"type": "string",
|
|
|
|
"enum": [
|
|
|
|
"duplicate",
|
|
|
|
"unsupported-format"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"assetId": {
|
|
|
|
"type": "string"
|
2023-03-26 04:46:48 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"id",
|
|
|
|
"action"
|
2023-03-26 04:46:48 +02:00
|
|
|
]
|
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"AssetCountByTimeBucket": {
|
2023-03-26 04:46:48 +02:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"timeBucket": {
|
|
|
|
"type": "string"
|
2023-01-25 18:35:28 +02:00
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"count": {
|
|
|
|
"type": "integer"
|
2023-01-25 18:35:28 +02:00
|
|
|
}
|
2023-03-26 04:46:48 +02:00
|
|
|
},
|
|
|
|
"required": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"timeBucket",
|
|
|
|
"count"
|
2023-03-26 04:46:48 +02:00
|
|
|
]
|
2023-01-25 18:35:28 +02:00
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"AssetCountByTimeBucketResponseDto": {
|
2023-01-25 18:35:28 +02:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"totalCount": {
|
|
|
|
"type": "integer"
|
2023-01-25 18:35:28 +02:00
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"buckets": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"$ref": "#/components/schemas/AssetCountByTimeBucket"
|
|
|
|
}
|
2023-01-25 18:35:28 +02:00
|
|
|
}
|
2023-03-26 04:46:48 +02:00
|
|
|
},
|
|
|
|
"required": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"totalCount",
|
|
|
|
"buckets"
|
2023-03-26 04:46:48 +02:00
|
|
|
]
|
2023-01-25 18:35:28 +02:00
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"AssetCountByUserIdResponseDto": {
|
2023-03-26 04:46:48 +02:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"audio": {
|
|
|
|
"type": "integer",
|
|
|
|
"default": 0
|
2023-01-25 18:35:28 +02:00
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"photos": {
|
|
|
|
"type": "integer",
|
|
|
|
"default": 0
|
2023-02-06 18:24:58 +02:00
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"videos": {
|
|
|
|
"type": "integer",
|
|
|
|
"default": 0
|
2023-01-25 18:35:28 +02:00
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"other": {
|
|
|
|
"type": "integer",
|
|
|
|
"default": 0
|
2023-03-29 17:33:03 +02:00
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"total": {
|
|
|
|
"type": "integer",
|
|
|
|
"default": 0
|
2023-03-26 04:46:48 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"audio",
|
|
|
|
"photos",
|
|
|
|
"videos",
|
|
|
|
"other",
|
|
|
|
"total"
|
2023-03-26 04:46:48 +02:00
|
|
|
]
|
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"AssetFileUploadResponseDto": {
|
2023-04-01 22:46:07 +02:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"id": {
|
|
|
|
"type": "string"
|
2023-04-01 22:46:07 +02:00
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"duplicate": {
|
2023-04-01 22:46:07 +02:00
|
|
|
"type": "boolean"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"id",
|
|
|
|
"duplicate"
|
2023-04-01 22:46:07 +02:00
|
|
|
]
|
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"AssetIdsDto": {
|
2023-04-01 22:46:07 +02:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"assetIds": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "uuid"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"assetIds"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"AssetIdsResponseDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"assetId": {
|
|
|
|
"type": "string"
|
2023-04-01 22:46:07 +02:00
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"success": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"error": {
|
|
|
|
"enum": [
|
|
|
|
"duplicate",
|
|
|
|
"no_permission",
|
|
|
|
"not_found"
|
|
|
|
],
|
|
|
|
"type": "string"
|
2023-04-01 22:46:07 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"assetId",
|
|
|
|
"success"
|
2023-04-01 22:46:07 +02:00
|
|
|
]
|
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"AssetResponseDto": {
|
2023-03-26 04:46:48 +02:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"type": {
|
|
|
|
"$ref": "#/components/schemas/AssetTypeEnum"
|
2023-01-25 18:35:28 +02:00
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"id": {
|
|
|
|
"type": "string"
|
2023-01-25 18:35:28 +02:00
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"deviceAssetId": {
|
|
|
|
"type": "string"
|
2023-01-25 18:35:28 +02:00
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"ownerId": {
|
|
|
|
"type": "string"
|
2023-01-25 18:35:28 +02:00
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"deviceId": {
|
|
|
|
"type": "string"
|
2023-01-25 18:35:28 +02:00
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"originalPath": {
|
|
|
|
"type": "string"
|
2023-01-25 18:35:28 +02:00
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"originalFileName": {
|
|
|
|
"type": "string"
|
2023-01-25 18:35:28 +02:00
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"resized": {
|
|
|
|
"type": "boolean"
|
2023-05-17 19:07:17 +02:00
|
|
|
},
|
2023-06-18 05:22:31 +02:00
|
|
|
"thumbhash": {
|
|
|
|
"type": "string",
|
|
|
|
"nullable": true,
|
|
|
|
"description": "base64 encoded thumbhash"
|
|
|
|
},
|
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"
|
|
|
|
},
|
|
|
|
"updatedAt": {
|
|
|
|
"format": "date-time",
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"isFavorite": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"isArchived": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"mimeType": {
|
|
|
|
"type": "string",
|
|
|
|
"nullable": true
|
|
|
|
},
|
|
|
|
"duration": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"exifInfo": {
|
|
|
|
"$ref": "#/components/schemas/ExifResponseDto"
|
|
|
|
},
|
|
|
|
"smartInfo": {
|
|
|
|
"$ref": "#/components/schemas/SmartInfoResponseDto"
|
|
|
|
},
|
|
|
|
"livePhotoVideoId": {
|
|
|
|
"type": "string",
|
|
|
|
"nullable": true
|
|
|
|
},
|
|
|
|
"tags": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"$ref": "#/components/schemas/TagResponseDto"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"people": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"$ref": "#/components/schemas/PersonResponseDto"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"checksum": {
|
|
|
|
"type": "string",
|
|
|
|
"description": "base64 encoded sha1 hash"
|
2023-01-25 18:35:28 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"type",
|
|
|
|
"id",
|
|
|
|
"deviceAssetId",
|
|
|
|
"ownerId",
|
|
|
|
"deviceId",
|
|
|
|
"originalPath",
|
|
|
|
"originalFileName",
|
|
|
|
"resized",
|
2023-06-18 05:22:31 +02:00
|
|
|
"thumbhash",
|
2023-06-10 06:14:18 +02:00
|
|
|
"fileCreatedAt",
|
|
|
|
"fileModifiedAt",
|
|
|
|
"updatedAt",
|
|
|
|
"isFavorite",
|
|
|
|
"isArchived",
|
|
|
|
"mimeType",
|
|
|
|
"duration",
|
|
|
|
"checksum"
|
2023-03-26 04:46:48 +02:00
|
|
|
]
|
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"AssetTypeEnum": {
|
2023-03-26 04:46:48 +02:00
|
|
|
"type": "string",
|
|
|
|
"enum": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"IMAGE",
|
|
|
|
"VIDEO",
|
|
|
|
"AUDIO",
|
|
|
|
"OTHER"
|
2023-03-26 04:46:48 +02:00
|
|
|
]
|
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"AuthDeviceResponseDto": {
|
2023-01-25 18:35:28 +02:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"id": {
|
|
|
|
"type": "string"
|
2023-01-25 18:35:28 +02:00
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"createdAt": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"updatedAt": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"current": {
|
2023-03-26 04:46:48 +02:00
|
|
|
"type": "boolean"
|
2023-06-10 06:14:18 +02:00
|
|
|
},
|
|
|
|
"deviceType": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"deviceOS": {
|
|
|
|
"type": "string"
|
2023-03-26 04:46:48 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"id",
|
|
|
|
"createdAt",
|
|
|
|
"updatedAt",
|
|
|
|
"current",
|
|
|
|
"deviceType",
|
|
|
|
"deviceOS"
|
2023-03-26 04:46:48 +02:00
|
|
|
]
|
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"ChangePasswordDto": {
|
2023-03-26 04:46:48 +02:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"password": {
|
|
|
|
"type": "string",
|
|
|
|
"example": "password"
|
|
|
|
},
|
|
|
|
"newPassword": {
|
|
|
|
"type": "string",
|
|
|
|
"example": "password"
|
2023-03-26 04:46:48 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"password",
|
|
|
|
"newPassword"
|
2023-03-26 04:46:48 +02:00
|
|
|
]
|
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"CheckDuplicateAssetDto": {
|
2023-03-26 04:46:48 +02:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"deviceAssetId": {
|
2023-01-25 18:35:28 +02:00
|
|
|
"type": "string"
|
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"deviceId": {
|
2023-02-06 18:24:58 +02:00
|
|
|
"type": "string"
|
2023-01-25 18:35:28 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"deviceAssetId",
|
|
|
|
"deviceId"
|
2023-03-26 04:46:48 +02:00
|
|
|
]
|
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"CheckDuplicateAssetResponseDto": {
|
2023-03-26 04:46:48 +02:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"isExist": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"id": {
|
2023-03-26 04:46:48 +02:00
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"isExist"
|
2023-01-25 18:35:28 +02:00
|
|
|
]
|
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"CheckExistingAssetsDto": {
|
2023-03-03 04:47:08 +02:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"deviceAssetIds": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
2023-03-03 04:47:08 +02:00
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"deviceId": {
|
2023-03-03 04:47:08 +02:00
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"deviceAssetIds",
|
|
|
|
"deviceId"
|
2023-03-03 04:47:08 +02:00
|
|
|
]
|
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"CheckExistingAssetsResponseDto": {
|
2023-03-03 04:47:08 +02:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"existingIds": {
|
2023-03-03 04:47:08 +02:00
|
|
|
"type": "array",
|
|
|
|
"items": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"type": "string"
|
2023-03-03 04:47:08 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"existingIds"
|
2023-03-03 04:47:08 +02:00
|
|
|
]
|
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"CreateAlbumDto": {
|
2023-03-03 04:47:08 +02:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"albumName": {
|
|
|
|
"type": "string"
|
2023-03-03 04:47:08 +02:00
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"sharedWithUserIds": {
|
2023-03-03 04:47:08 +02:00
|
|
|
"type": "array",
|
|
|
|
"items": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"type": "string",
|
|
|
|
"format": "uuid"
|
2023-03-03 04:47:08 +02:00
|
|
|
}
|
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"assetIds": {
|
2023-03-03 04:47:08 +02:00
|
|
|
"type": "array",
|
|
|
|
"items": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"type": "string",
|
|
|
|
"format": "uuid"
|
2023-03-03 04:47:08 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"albumName"
|
2023-03-03 04:47:08 +02:00
|
|
|
]
|
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"CreateAssetDto": {
|
2023-03-03 04:47:08 +02:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"assetType": {
|
|
|
|
"$ref": "#/components/schemas/AssetTypeEnum"
|
|
|
|
},
|
|
|
|
"assetData": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "binary"
|
|
|
|
},
|
|
|
|
"livePhotoData": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "binary"
|
|
|
|
},
|
|
|
|
"sidecarData": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "binary"
|
|
|
|
},
|
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
|
|
|
"isReadOnly": {
|
|
|
|
"type": "boolean",
|
|
|
|
"default": false
|
|
|
|
},
|
|
|
|
"fileExtension": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"deviceAssetId": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"deviceId": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"fileCreatedAt": {
|
|
|
|
"format": "date-time",
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"fileModifiedAt": {
|
|
|
|
"format": "date-time",
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"isFavorite": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"isArchived": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"isVisible": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"duration": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"assetType",
|
|
|
|
"assetData",
|
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
|
|
|
"fileExtension",
|
2023-06-10 06:14:18 +02:00
|
|
|
"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"
|
2023-06-10 06:14:18 +02:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"CreateProfileImageDto": {
|
2023-03-03 04:47:08 +02:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"file": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "binary"
|
2023-03-03 04:47:08 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"file"
|
2023-03-03 04:47:08 +02:00
|
|
|
]
|
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"CreateProfileImageResponseDto": {
|
2023-03-05 22:44:31 +02:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"userId": {
|
2023-03-05 22:44:31 +02:00
|
|
|
"type": "string"
|
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"profileImagePath": {
|
|
|
|
"type": "string"
|
2023-03-05 22:44:31 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"userId",
|
|
|
|
"profileImagePath"
|
2023-03-05 22:44:31 +02:00
|
|
|
]
|
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"CreateTagDto": {
|
2023-03-05 22:44:31 +02:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"type": {
|
|
|
|
"$ref": "#/components/schemas/TagTypeEnum"
|
2023-03-05 22:44:31 +02:00
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"name": {
|
|
|
|
"type": "string"
|
2023-03-05 22:44:31 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"type",
|
|
|
|
"name"
|
2023-03-05 22:44:31 +02:00
|
|
|
]
|
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"CreateUserDto": {
|
2023-03-22 04:49:19 +02:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"email": {
|
|
|
|
"type": "string"
|
2023-03-22 04:49:19 +02:00
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"password": {
|
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
|
|
|
},
|
|
|
|
"storageLabel": {
|
2023-03-22 04:49:19 +02:00
|
|
|
"type": "string",
|
2023-06-10 06:14:18 +02:00
|
|
|
"nullable": 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
|
|
|
},
|
|
|
|
"externalPath": {
|
|
|
|
"type": "string",
|
|
|
|
"nullable": true
|
2023-03-22 04:49:19 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"email",
|
|
|
|
"password",
|
|
|
|
"firstName",
|
|
|
|
"lastName"
|
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
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"id": {
|
|
|
|
"type": "string"
|
2023-03-22 04:49:19 +02:00
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"city": {
|
|
|
|
"type": "string"
|
2023-03-22 04:49:19 +02:00
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"resizePath": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"deviceAssetId": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"deviceId": {
|
|
|
|
"type": "string"
|
2023-03-22 04:49:19 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"id",
|
|
|
|
"city",
|
|
|
|
"resizePath",
|
|
|
|
"deviceAssetId",
|
|
|
|
"deviceId"
|
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
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"id": {
|
2023-03-22 04:49:19 +02:00
|
|
|
"type": "string"
|
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"object": {
|
2023-03-22 04:49:19 +02:00
|
|
|
"type": "string"
|
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"resizePath": {
|
2023-03-22 04:49:19 +02:00
|
|
|
"type": "string"
|
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"deviceAssetId": {
|
|
|
|
"type": "string"
|
2023-03-22 04:49:19 +02:00
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"deviceId": {
|
|
|
|
"type": "string"
|
2023-03-22 04:49:19 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"id",
|
|
|
|
"object",
|
|
|
|
"resizePath",
|
|
|
|
"deviceAssetId",
|
|
|
|
"deviceId"
|
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
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"ids": {
|
|
|
|
"title": "Array of asset IDs to delete",
|
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
|
|
|
],
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
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
|
|
|
"ids"
|
2023-03-22 04:49:19 +02:00
|
|
|
]
|
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"DeleteAssetResponseDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"status": {
|
|
|
|
"$ref": "#/components/schemas/DeleteAssetStatus"
|
|
|
|
},
|
|
|
|
"id": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"status",
|
|
|
|
"id"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"DeleteAssetStatus": {
|
2023-03-03 04:47:08 +02:00
|
|
|
"type": "string",
|
|
|
|
"enum": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"SUCCESS",
|
|
|
|
"FAILED"
|
2023-03-03 04:47:08 +02:00
|
|
|
]
|
|
|
|
},
|
2023-06-30 18:24:28 +02:00
|
|
|
"DownloadArchiveInfo": {
|
2023-01-25 18:35:28 +02:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-06-30 18:24:28 +02:00
|
|
|
"size": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"assetIds": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
2023-01-25 18:35:28 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
2023-06-30 18:24:28 +02:00
|
|
|
"size",
|
2023-06-10 06:14:18 +02:00
|
|
|
"assetIds"
|
2023-01-25 18:35:28 +02:00
|
|
|
]
|
|
|
|
},
|
2023-06-30 18:24:28 +02:00
|
|
|
"DownloadResponseDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"totalSize": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"archives": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"$ref": "#/components/schemas/DownloadArchiveInfo"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"totalSize",
|
|
|
|
"archives"
|
|
|
|
]
|
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"ExifResponseDto": {
|
2023-01-25 18:35:28 +02:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"fileSizeInByte": {
|
|
|
|
"type": "integer",
|
|
|
|
"nullable": true,
|
|
|
|
"default": null,
|
|
|
|
"format": "int64"
|
2023-05-22 20:07:43 +02:00
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"make": {
|
|
|
|
"type": "string",
|
|
|
|
"nullable": true,
|
|
|
|
"default": null
|
2023-01-25 18:35:28 +02:00
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"model": {
|
|
|
|
"type": "string",
|
|
|
|
"nullable": true,
|
|
|
|
"default": null
|
2023-01-25 18:35:28 +02:00
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"exifImageWidth": {
|
|
|
|
"type": "number",
|
|
|
|
"nullable": true,
|
|
|
|
"default": null
|
2023-01-25 18:35:28 +02:00
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"exifImageHeight": {
|
|
|
|
"type": "number",
|
|
|
|
"nullable": true,
|
|
|
|
"default": null
|
2023-01-25 18:35:28 +02:00
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"orientation": {
|
|
|
|
"type": "string",
|
|
|
|
"nullable": true,
|
|
|
|
"default": null
|
2023-01-25 18:35:28 +02:00
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"dateTimeOriginal": {
|
|
|
|
"format": "date-time",
|
|
|
|
"type": "string",
|
|
|
|
"nullable": true,
|
|
|
|
"default": null
|
2023-05-22 20:07:43 +02:00
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"modifyDate": {
|
|
|
|
"format": "date-time",
|
|
|
|
"type": "string",
|
|
|
|
"nullable": true,
|
|
|
|
"default": null
|
2023-05-22 20:07:43 +02:00
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"timeZone": {
|
2023-03-28 21:03:43 +02:00
|
|
|
"type": "string",
|
2023-06-10 06:14:18 +02:00
|
|
|
"nullable": true,
|
|
|
|
"default": null
|
|
|
|
},
|
|
|
|
"lensModel": {
|
|
|
|
"type": "string",
|
|
|
|
"nullable": true,
|
|
|
|
"default": null
|
|
|
|
},
|
|
|
|
"fNumber": {
|
|
|
|
"type": "number",
|
|
|
|
"nullable": true,
|
|
|
|
"default": null
|
|
|
|
},
|
|
|
|
"focalLength": {
|
|
|
|
"type": "number",
|
|
|
|
"nullable": true,
|
|
|
|
"default": null
|
|
|
|
},
|
|
|
|
"iso": {
|
|
|
|
"type": "number",
|
|
|
|
"nullable": true,
|
|
|
|
"default": null
|
|
|
|
},
|
|
|
|
"exposureTime": {
|
|
|
|
"type": "string",
|
|
|
|
"nullable": true,
|
|
|
|
"default": null
|
|
|
|
},
|
|
|
|
"latitude": {
|
|
|
|
"type": "number",
|
|
|
|
"nullable": true,
|
|
|
|
"default": null
|
|
|
|
},
|
|
|
|
"longitude": {
|
|
|
|
"type": "number",
|
|
|
|
"nullable": true,
|
|
|
|
"default": null
|
|
|
|
},
|
|
|
|
"city": {
|
|
|
|
"type": "string",
|
|
|
|
"nullable": true,
|
|
|
|
"default": null
|
|
|
|
},
|
|
|
|
"state": {
|
|
|
|
"type": "string",
|
|
|
|
"nullable": true,
|
|
|
|
"default": null
|
|
|
|
},
|
|
|
|
"country": {
|
|
|
|
"type": "string",
|
|
|
|
"nullable": true,
|
|
|
|
"default": null
|
|
|
|
},
|
|
|
|
"description": {
|
|
|
|
"type": "string",
|
|
|
|
"nullable": true,
|
|
|
|
"default": null
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"GetAssetByTimeBucketDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"timeBucket": {
|
|
|
|
"title": "Array of date time buckets",
|
|
|
|
"example": [
|
|
|
|
"2015-06-01T00:00:00.000Z",
|
|
|
|
"2016-02-01T00:00:00.000Z",
|
|
|
|
"2016-03-01T00:00:00.000Z"
|
|
|
|
],
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"userId": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "uuid"
|
|
|
|
},
|
|
|
|
"withoutThumbs": {
|
|
|
|
"type": "boolean",
|
|
|
|
"description": "Include assets without thumbnails"
|
2023-01-25 18:35:28 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"timeBucket"
|
2023-01-25 18:35:28 +02:00
|
|
|
]
|
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"GetAssetCountByTimeBucketDto": {
|
2023-01-25 18:35:28 +02:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"timeGroup": {
|
|
|
|
"$ref": "#/components/schemas/TimeGroupEnum"
|
2023-01-25 18:35:28 +02:00
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"userId": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "uuid"
|
2023-01-25 18:35:28 +02:00
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"withoutThumbs": {
|
|
|
|
"type": "boolean",
|
|
|
|
"description": "Include assets without thumbnails"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"timeGroup"
|
|
|
|
]
|
|
|
|
},
|
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": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"assetType": {
|
|
|
|
"$ref": "#/components/schemas/AssetTypeEnum"
|
|
|
|
},
|
|
|
|
"isReadOnly": {
|
|
|
|
"type": "boolean",
|
|
|
|
"default": true
|
|
|
|
},
|
|
|
|
"assetPath": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"sidecarPath": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"deviceAssetId": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"deviceId": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"fileCreatedAt": {
|
|
|
|
"format": "date-time",
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"fileModifiedAt": {
|
|
|
|
"format": "date-time",
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"isFavorite": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"isArchived": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"isVisible": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"duration": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"assetType",
|
|
|
|
"assetPath",
|
|
|
|
"deviceAssetId",
|
|
|
|
"deviceId",
|
|
|
|
"fileCreatedAt",
|
|
|
|
"fileModifiedAt",
|
|
|
|
"isFavorite"
|
|
|
|
]
|
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"JobCommand": {
|
|
|
|
"type": "string",
|
|
|
|
"enum": [
|
|
|
|
"start",
|
|
|
|
"pause",
|
|
|
|
"resume",
|
|
|
|
"empty"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"JobCommandDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"command": {
|
|
|
|
"$ref": "#/components/schemas/JobCommand"
|
2023-01-25 18:35:28 +02:00
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"force": {
|
|
|
|
"type": "boolean"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"command",
|
|
|
|
"force"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"JobCountsDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"active": {
|
|
|
|
"type": "integer"
|
2023-01-25 18:35:28 +02:00
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"completed": {
|
|
|
|
"type": "integer"
|
2023-01-25 18:35:28 +02:00
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"failed": {
|
|
|
|
"type": "integer"
|
2023-01-21 18:11:55 +02:00
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"delayed": {
|
|
|
|
"type": "integer"
|
2023-01-21 18:11:55 +02:00
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"waiting": {
|
|
|
|
"type": "integer"
|
2023-01-21 18:11:55 +02:00
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"paused": {
|
|
|
|
"type": "integer"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"active",
|
|
|
|
"completed",
|
|
|
|
"failed",
|
|
|
|
"delayed",
|
|
|
|
"waiting",
|
|
|
|
"paused"
|
2023-01-21 18:11:55 +02:00
|
|
|
]
|
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"JobName": {
|
|
|
|
"type": "string",
|
|
|
|
"enum": [
|
|
|
|
"thumbnailGeneration",
|
|
|
|
"metadataExtraction",
|
|
|
|
"videoConversion",
|
|
|
|
"objectTagging",
|
|
|
|
"recognizeFaces",
|
|
|
|
"clipEncoding",
|
|
|
|
"backgroundTask",
|
|
|
|
"storageTemplateMigration",
|
|
|
|
"search",
|
|
|
|
"sidecar"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"JobSettingsDto": {
|
2023-01-21 18:11:55 +02:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"concurrency": {
|
|
|
|
"type": "integer"
|
2023-01-21 18:11:55 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"concurrency"
|
2023-01-21 18:11:55 +02:00
|
|
|
]
|
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"JobStatusDto": {
|
2023-01-21 18:11:55 +02:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"jobCounts": {
|
|
|
|
"$ref": "#/components/schemas/JobCountsDto"
|
|
|
|
},
|
|
|
|
"queueStatus": {
|
|
|
|
"$ref": "#/components/schemas/QueueStatusDto"
|
2023-01-21 18:11:55 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"jobCounts",
|
|
|
|
"queueStatus"
|
2023-01-21 18:11:55 +02:00
|
|
|
]
|
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"LoginCredentialDto": {
|
2023-06-01 12:32:51 +02:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"email": {
|
|
|
|
"type": "string",
|
|
|
|
"example": "testuser@email.com"
|
|
|
|
},
|
|
|
|
"password": {
|
|
|
|
"type": "string",
|
|
|
|
"example": "password"
|
2023-06-01 12:32:51 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"email",
|
|
|
|
"password"
|
2023-06-01 12:32:51 +02:00
|
|
|
]
|
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"LoginResponseDto": {
|
2023-06-01 12:32:51 +02:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"accessToken": {
|
|
|
|
"type": "string",
|
|
|
|
"readOnly": true
|
2023-06-01 12:32:51 +02:00
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"userId": {
|
|
|
|
"type": "string",
|
|
|
|
"readOnly": true
|
2023-06-01 12:32:51 +02:00
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"userEmail": {
|
|
|
|
"type": "string",
|
|
|
|
"readOnly": true
|
2023-06-01 12:32:51 +02:00
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"firstName": {
|
|
|
|
"type": "string",
|
|
|
|
"readOnly": true
|
2023-06-01 12:32:51 +02:00
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"lastName": {
|
|
|
|
"type": "string",
|
|
|
|
"readOnly": true
|
2023-06-01 12:32:51 +02:00
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"profileImagePath": {
|
|
|
|
"type": "string",
|
|
|
|
"readOnly": true
|
2023-06-01 12:32:51 +02:00
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"isAdmin": {
|
|
|
|
"type": "boolean",
|
|
|
|
"readOnly": true
|
2023-06-01 12:32:51 +02:00
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"shouldChangePassword": {
|
|
|
|
"type": "boolean",
|
|
|
|
"readOnly": true
|
2023-06-01 12:32:51 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"accessToken",
|
|
|
|
"userId",
|
|
|
|
"userEmail",
|
|
|
|
"firstName",
|
|
|
|
"lastName",
|
|
|
|
"profileImagePath",
|
|
|
|
"isAdmin",
|
|
|
|
"shouldChangePassword"
|
2023-06-01 12:32:51 +02:00
|
|
|
]
|
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"LogoutResponseDto": {
|
2023-01-21 18:11:55 +02:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"successful": {
|
|
|
|
"type": "boolean"
|
2023-06-01 12:32:51 +02:00
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"redirectUri": {
|
|
|
|
"type": "string"
|
2023-01-21 18:11:55 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"successful",
|
|
|
|
"redirectUri"
|
2023-01-21 18:11:55 +02:00
|
|
|
]
|
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"MapMarkerResponseDto": {
|
2023-01-21 18:11:55 +02:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"id": {
|
|
|
|
"type": "string"
|
2023-01-21 18:11:55 +02:00
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"lat": {
|
|
|
|
"type": "number",
|
|
|
|
"format": "double"
|
2022-12-26 17:35:52 +02:00
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"lon": {
|
|
|
|
"type": "number",
|
|
|
|
"format": "double"
|
2022-12-05 19:56:44 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"id",
|
|
|
|
"lat",
|
|
|
|
"lon"
|
2022-12-05 19:56:44 +02:00
|
|
|
]
|
|
|
|
},
|
2023-06-15 03:47:18 +02:00
|
|
|
"MemoryLaneResponseDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"title": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"assets": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"$ref": "#/components/schemas/AssetResponseDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"title",
|
|
|
|
"assets"
|
|
|
|
]
|
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"OAuthCallbackDto": {
|
2023-06-01 03:51:28 +02:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"url": {
|
2023-06-01 03:51:28 +02:00
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"url"
|
2023-06-01 03:51:28 +02:00
|
|
|
]
|
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"OAuthConfigDto": {
|
2023-06-01 03:51:28 +02:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"redirectUri": {
|
2023-06-01 03:51:28 +02:00
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"redirectUri"
|
2023-06-01 03:51:28 +02:00
|
|
|
]
|
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"OAuthConfigResponseDto": {
|
2023-06-01 03:51:28 +02:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"enabled": {
|
|
|
|
"type": "boolean"
|
2023-06-01 03:51:28 +02:00
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"passwordLoginEnabled": {
|
2023-06-01 03:51:28 +02:00
|
|
|
"type": "boolean"
|
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"url": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"buttonText": {
|
2023-06-01 03:51:28 +02:00
|
|
|
"type": "string"
|
2023-06-10 06:14:18 +02:00
|
|
|
},
|
|
|
|
"autoLaunch": {
|
|
|
|
"type": "boolean"
|
2023-06-01 03:51:28 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"enabled",
|
|
|
|
"passwordLoginEnabled"
|
2023-06-01 03:51:28 +02:00
|
|
|
]
|
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"PersonResponseDto": {
|
2022-12-05 19:56:44 +02:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"id": {
|
2023-05-22 05:18:10 +02:00
|
|
|
"type": "string"
|
2022-12-05 19:56:44 +02:00
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"name": {
|
2023-05-22 05:18:10 +02:00
|
|
|
"type": "string"
|
2022-12-05 19:56:44 +02:00
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"thumbnailPath": {
|
2023-05-22 05:18:10 +02:00
|
|
|
"type": "string"
|
2022-12-05 19:56:44 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"id",
|
|
|
|
"name",
|
|
|
|
"thumbnailPath"
|
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
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"name": {
|
2023-07-03 00:46:20 +02:00
|
|
|
"type": "string",
|
|
|
|
"description": "Person name."
|
|
|
|
},
|
|
|
|
"featureFaceAssetId": {
|
|
|
|
"type": "string",
|
|
|
|
"description": "Asset is used to get the feature face thumbnail."
|
2022-12-05 19:56:44 +02:00
|
|
|
}
|
2023-07-03 00:46:20 +02:00
|
|
|
}
|
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
|
|
|
"type": "object",
|
|
|
|
"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"
|
2022-12-05 19:56:44 +02:00
|
|
|
]
|
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"RemoveAssetsDto": {
|
2022-12-05 19:56:44 +02:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"assetIds": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "uuid"
|
|
|
|
}
|
2022-12-05 19:56:44 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"assetIds"
|
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
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"total": {
|
|
|
|
"type": "integer"
|
2022-12-05 19:56:44 +02:00
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"count": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"items": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"$ref": "#/components/schemas/AlbumResponseDto"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"facets": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"$ref": "#/components/schemas/SearchFacetResponseDto"
|
|
|
|
}
|
2022-12-05 19:56:44 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"total",
|
|
|
|
"count",
|
|
|
|
"items",
|
|
|
|
"facets"
|
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
|
|
|
"type": "object",
|
|
|
|
"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"
|
2023-05-17 19:07:17 +02:00
|
|
|
]
|
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"SearchAssetResponseDto": {
|
2023-01-12 04:34:36 +02:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"total": {
|
|
|
|
"type": "integer"
|
2023-04-12 17:37:52 +02:00
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"count": {
|
|
|
|
"type": "integer"
|
2023-02-12 07:54:07 +02:00
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"items": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"$ref": "#/components/schemas/AssetResponseDto"
|
|
|
|
}
|
2023-02-12 07:54:07 +02:00
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"facets": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"$ref": "#/components/schemas/SearchFacetResponseDto"
|
|
|
|
}
|
2023-01-12 04:34:36 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"total",
|
|
|
|
"count",
|
|
|
|
"items",
|
|
|
|
"facets"
|
2022-12-05 19:56:44 +02:00
|
|
|
]
|
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"SearchConfigResponseDto": {
|
2023-01-12 04:34:36 +02:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"enabled": {
|
2023-01-30 18:14:13 +02:00
|
|
|
"type": "boolean"
|
2023-01-12 04:34:36 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"enabled"
|
2023-01-12 04:34:36 +02:00
|
|
|
]
|
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"SearchExploreItem": {
|
2023-01-25 18:35:28 +02:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"value": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"data": {
|
|
|
|
"$ref": "#/components/schemas/AssetResponseDto"
|
2022-12-05 19:56:44 +02:00
|
|
|
}
|
2023-01-25 18:35:28 +02:00
|
|
|
},
|
|
|
|
"required": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"value",
|
|
|
|
"data"
|
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
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"fieldName": {
|
2022-12-06 23:46:13 +02:00
|
|
|
"type": "string"
|
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"items": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"$ref": "#/components/schemas/SearchExploreItem"
|
|
|
|
}
|
2022-12-05 19:56:44 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"fieldName",
|
|
|
|
"items"
|
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
|
|
|
"type": "object",
|
|
|
|
"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"
|
2023-01-25 18:35:28 +02:00
|
|
|
]
|
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"SearchFacetResponseDto": {
|
2023-01-25 18:35:28 +02:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"fieldName": {
|
2023-01-25 18:35:28 +02:00
|
|
|
"type": "string"
|
2023-06-10 06:14:18 +02:00
|
|
|
},
|
|
|
|
"counts": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"$ref": "#/components/schemas/SearchFacetCountResponseDto"
|
|
|
|
}
|
2023-01-25 18:35:28 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"fieldName",
|
|
|
|
"counts"
|
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
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"albums": {
|
|
|
|
"$ref": "#/components/schemas/SearchAlbumResponseDto"
|
2023-06-04 04:41:27 +02:00
|
|
|
},
|
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"
|
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
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"diskSizeRaw": {
|
|
|
|
"type": "integer",
|
|
|
|
"format": "int64"
|
|
|
|
},
|
|
|
|
"diskUseRaw": {
|
|
|
|
"type": "integer",
|
|
|
|
"format": "int64"
|
|
|
|
},
|
|
|
|
"diskAvailableRaw": {
|
|
|
|
"type": "integer",
|
|
|
|
"format": "int64"
|
|
|
|
},
|
|
|
|
"diskUsagePercentage": {
|
|
|
|
"type": "number",
|
|
|
|
"format": "float"
|
|
|
|
},
|
|
|
|
"diskSize": {
|
2022-12-05 19:56:44 +02:00
|
|
|
"type": "string"
|
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"diskUse": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"diskAvailable": {
|
|
|
|
"type": "string"
|
2022-12-05 19:56:44 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"diskSizeRaw",
|
|
|
|
"diskUseRaw",
|
|
|
|
"diskAvailableRaw",
|
|
|
|
"diskUsagePercentage",
|
|
|
|
"diskSize",
|
|
|
|
"diskUse",
|
|
|
|
"diskAvailable"
|
2022-12-05 19:56:44 +02:00
|
|
|
]
|
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"ServerPingResponse": {
|
2022-12-05 19:56:44 +02:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"res": {
|
|
|
|
"type": "string",
|
|
|
|
"readOnly": true,
|
|
|
|
"example": "pong"
|
2022-12-05 19:56:44 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"res"
|
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
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"photos": {
|
|
|
|
"type": "integer",
|
|
|
|
"default": 0
|
|
|
|
},
|
|
|
|
"videos": {
|
|
|
|
"type": "integer",
|
|
|
|
"default": 0
|
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"usage": {
|
2022-12-05 19:56:44 +02:00
|
|
|
"type": "integer",
|
2023-06-10 06:14:18 +02:00
|
|
|
"default": 0,
|
|
|
|
"format": "int64"
|
2022-12-05 19:56:44 +02:00
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"usageByUser": {
|
|
|
|
"default": [],
|
|
|
|
"title": "Array of usage for each user",
|
|
|
|
"example": [
|
|
|
|
{
|
|
|
|
"photos": 1,
|
|
|
|
"videos": 1,
|
|
|
|
"diskUsageRaw": 1
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"$ref": "#/components/schemas/UsageByUserDto"
|
|
|
|
}
|
2022-12-05 19:56:44 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"photos",
|
|
|
|
"videos",
|
2023-06-10 06:14:18 +02:00
|
|
|
"usage",
|
|
|
|
"usageByUser"
|
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
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"major": {
|
|
|
|
"type": "integer"
|
2023-05-15 19:30:53 +02:00
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"minor": {
|
|
|
|
"type": "integer"
|
2023-05-25 04:13:02 +02:00
|
|
|
},
|
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"
|
2022-12-05 19:56:44 +02:00
|
|
|
]
|
|
|
|
},
|
2023-06-21 03:08:43 +02:00
|
|
|
"SharedLinkCreateDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"type": {
|
|
|
|
"$ref": "#/components/schemas/SharedLinkType"
|
|
|
|
},
|
|
|
|
"assetIds": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "uuid"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"albumId": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "uuid"
|
|
|
|
},
|
|
|
|
"description": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"expiresAt": {
|
|
|
|
"format": "date-time",
|
|
|
|
"type": "string",
|
|
|
|
"nullable": true,
|
|
|
|
"default": null
|
|
|
|
},
|
|
|
|
"allowUpload": {
|
|
|
|
"type": "boolean",
|
|
|
|
"default": false
|
|
|
|
},
|
|
|
|
"allowDownload": {
|
|
|
|
"type": "boolean",
|
|
|
|
"default": true
|
|
|
|
},
|
|
|
|
"showExif": {
|
|
|
|
"type": "boolean",
|
|
|
|
"default": true
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"type"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"SharedLinkEditDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"description": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"expiresAt": {
|
|
|
|
"format": "date-time",
|
|
|
|
"type": "string",
|
|
|
|
"nullable": true
|
|
|
|
},
|
|
|
|
"allowUpload": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"allowDownload": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"showExif": {
|
|
|
|
"type": "boolean"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"SharedLinkResponseDto": {
|
2022-12-05 19:56:44 +02:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"type": {
|
|
|
|
"$ref": "#/components/schemas/SharedLinkType"
|
|
|
|
},
|
|
|
|
"id": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"description": {
|
2023-06-21 03:08:43 +02:00
|
|
|
"type": "string",
|
|
|
|
"nullable": true
|
2023-06-10 06:14:18 +02:00
|
|
|
},
|
|
|
|
"userId": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"key": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"createdAt": {
|
|
|
|
"format": "date-time",
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"expiresAt": {
|
|
|
|
"format": "date-time",
|
|
|
|
"type": "string",
|
|
|
|
"nullable": true
|
|
|
|
},
|
|
|
|
"assets": {
|
2022-12-05 19:56:44 +02:00
|
|
|
"type": "array",
|
|
|
|
"items": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"$ref": "#/components/schemas/AssetResponseDto"
|
2022-12-05 19:56:44 +02:00
|
|
|
}
|
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"album": {
|
|
|
|
"$ref": "#/components/schemas/AlbumResponseDto"
|
|
|
|
},
|
|
|
|
"allowUpload": {
|
2022-12-05 19:56:44 +02:00
|
|
|
"type": "boolean"
|
2023-04-12 17:37:52 +02:00
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"allowDownload": {
|
2023-04-12 17:37:52 +02:00
|
|
|
"type": "boolean"
|
2023-04-13 17:22:06 +02:00
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"showExif": {
|
|
|
|
"type": "boolean"
|
2022-12-05 19:56:44 +02:00
|
|
|
}
|
2023-06-10 06:14:18 +02:00
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"type",
|
|
|
|
"id",
|
2023-06-21 03:08:43 +02:00
|
|
|
"description",
|
2023-06-10 06:14:18 +02:00
|
|
|
"userId",
|
|
|
|
"key",
|
|
|
|
"createdAt",
|
|
|
|
"expiresAt",
|
|
|
|
"assets",
|
|
|
|
"allowUpload",
|
|
|
|
"allowDownload",
|
|
|
|
"showExif"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"SharedLinkType": {
|
|
|
|
"type": "string",
|
|
|
|
"enum": [
|
|
|
|
"ALBUM",
|
|
|
|
"INDIVIDUAL"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"SignUpDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"email": {
|
|
|
|
"type": "string",
|
|
|
|
"example": "testuser@email.com"
|
|
|
|
},
|
|
|
|
"password": {
|
|
|
|
"type": "string",
|
|
|
|
"example": "password"
|
|
|
|
},
|
|
|
|
"firstName": {
|
|
|
|
"type": "string",
|
|
|
|
"example": "Admin"
|
|
|
|
},
|
|
|
|
"lastName": {
|
|
|
|
"type": "string",
|
|
|
|
"example": "Doe"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"email",
|
|
|
|
"password",
|
|
|
|
"firstName",
|
|
|
|
"lastName"
|
|
|
|
]
|
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
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"tags": {
|
|
|
|
"nullable": true,
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"objects": {
|
|
|
|
"nullable": true,
|
2022-12-05 19:56:44 +02:00
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
2023-06-10 06:14:18 +02:00
|
|
|
}
|
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
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"ffmpeg": {
|
|
|
|
"$ref": "#/components/schemas/SystemConfigFFmpegDto"
|
2022-12-05 19:56:44 +02:00
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"oauth": {
|
|
|
|
"$ref": "#/components/schemas/SystemConfigOAuthDto"
|
|
|
|
},
|
|
|
|
"passwordLogin": {
|
|
|
|
"$ref": "#/components/schemas/SystemConfigPasswordLoginDto"
|
|
|
|
},
|
|
|
|
"storageTemplate": {
|
|
|
|
"$ref": "#/components/schemas/SystemConfigStorageTemplateDto"
|
|
|
|
},
|
|
|
|
"job": {
|
|
|
|
"$ref": "#/components/schemas/SystemConfigJobDto"
|
2022-12-05 19:56:44 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"ffmpeg",
|
|
|
|
"oauth",
|
|
|
|
"passwordLogin",
|
|
|
|
"storageTemplate",
|
|
|
|
"job"
|
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
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"crf": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"threads": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"preset": {
|
2022-12-05 19:56:44 +02:00
|
|
|
"type": "string"
|
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"targetVideoCodec": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"targetAudioCodec": {
|
2022-12-05 19:56:44 +02:00
|
|
|
"type": "string"
|
2023-06-10 06:14:18 +02:00
|
|
|
},
|
|
|
|
"targetResolution": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"maxBitrate": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"twoPass": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"transcode": {
|
|
|
|
"type": "string",
|
|
|
|
"enum": [
|
|
|
|
"all",
|
|
|
|
"optimal",
|
|
|
|
"required",
|
|
|
|
"disabled"
|
|
|
|
]
|
2022-12-05 19:56:44 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"crf",
|
|
|
|
"threads",
|
|
|
|
"preset",
|
|
|
|
"targetVideoCodec",
|
|
|
|
"targetAudioCodec",
|
|
|
|
"targetResolution",
|
|
|
|
"maxBitrate",
|
|
|
|
"twoPass",
|
|
|
|
"transcode"
|
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
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"thumbnailGeneration": {
|
|
|
|
"$ref": "#/components/schemas/JobSettingsDto"
|
2022-12-05 19:56:44 +02:00
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"metadataExtraction": {
|
|
|
|
"$ref": "#/components/schemas/JobSettingsDto"
|
|
|
|
},
|
|
|
|
"videoConversion": {
|
|
|
|
"$ref": "#/components/schemas/JobSettingsDto"
|
|
|
|
},
|
|
|
|
"objectTagging": {
|
|
|
|
"$ref": "#/components/schemas/JobSettingsDto"
|
|
|
|
},
|
|
|
|
"clipEncoding": {
|
|
|
|
"$ref": "#/components/schemas/JobSettingsDto"
|
|
|
|
},
|
|
|
|
"storageTemplateMigration": {
|
|
|
|
"$ref": "#/components/schemas/JobSettingsDto"
|
|
|
|
},
|
|
|
|
"backgroundTask": {
|
|
|
|
"$ref": "#/components/schemas/JobSettingsDto"
|
|
|
|
},
|
|
|
|
"search": {
|
|
|
|
"$ref": "#/components/schemas/JobSettingsDto"
|
|
|
|
},
|
|
|
|
"recognizeFaces": {
|
|
|
|
"$ref": "#/components/schemas/JobSettingsDto"
|
|
|
|
},
|
|
|
|
"sidecar": {
|
|
|
|
"$ref": "#/components/schemas/JobSettingsDto"
|
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"
|
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
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"enabled": {
|
|
|
|
"type": "boolean"
|
2022-12-05 19:56:44 +02:00
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"issuerUrl": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"clientId": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"clientSecret": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"scope": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"buttonText": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"autoRegister": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"autoLaunch": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"mobileOverrideEnabled": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"mobileRedirectUri": {
|
2022-12-05 19:56:44 +02:00
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"enabled",
|
|
|
|
"issuerUrl",
|
|
|
|
"clientId",
|
|
|
|
"clientSecret",
|
|
|
|
"scope",
|
|
|
|
"buttonText",
|
|
|
|
"autoRegister",
|
|
|
|
"autoLaunch",
|
|
|
|
"mobileOverrideEnabled",
|
|
|
|
"mobileRedirectUri"
|
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
|
|
|
"type": "object",
|
|
|
|
"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"
|
2022-12-05 19:56:44 +02:00
|
|
|
]
|
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"SystemConfigStorageTemplateDto": {
|
2023-05-24 23:08:21 +02:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"template": {
|
2023-05-24 23:08:21 +02:00
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"template"
|
2023-05-24 23:08:21 +02:00
|
|
|
]
|
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"SystemConfigTemplateStorageOptionDto": {
|
2023-05-24 23:08:21 +02:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"yearOptions": {
|
2023-05-24 23:08:21 +02:00
|
|
|
"type": "array",
|
|
|
|
"items": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"monthOptions": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"dayOptions": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"hourOptions": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"minuteOptions": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"secondOptions": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"presetOptions": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
2023-05-24 23:08:21 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"yearOptions",
|
|
|
|
"monthOptions",
|
|
|
|
"dayOptions",
|
|
|
|
"hourOptions",
|
|
|
|
"minuteOptions",
|
|
|
|
"secondOptions",
|
|
|
|
"presetOptions"
|
2023-05-24 23:08:21 +02:00
|
|
|
]
|
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"TagResponseDto": {
|
2023-05-24 23:08:21 +02:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"type": {
|
|
|
|
"$ref": "#/components/schemas/TagTypeEnum"
|
|
|
|
},
|
2023-05-24 23:08:21 +02:00
|
|
|
"id": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"name": {
|
|
|
|
"type": "string"
|
2023-05-24 23:08:21 +02:00
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"userId": {
|
2023-05-24 23:08:21 +02:00
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"type",
|
2023-05-24 23:08:21 +02:00
|
|
|
"id",
|
2023-06-10 06:14:18 +02:00
|
|
|
"name",
|
|
|
|
"userId"
|
2023-05-24 23:08:21 +02:00
|
|
|
]
|
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"TagTypeEnum": {
|
|
|
|
"type": "string",
|
|
|
|
"enum": [
|
|
|
|
"OBJECT",
|
|
|
|
"FACE",
|
|
|
|
"CUSTOM"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"ThumbnailFormat": {
|
|
|
|
"type": "string",
|
|
|
|
"enum": [
|
|
|
|
"JPEG",
|
|
|
|
"WEBP"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"TimeGroupEnum": {
|
|
|
|
"type": "string",
|
|
|
|
"enum": [
|
|
|
|
"day",
|
|
|
|
"month"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"UpdateAlbumDto": {
|
2023-05-24 23:08:21 +02:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"albumName": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"albumThumbnailAssetId": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "uuid"
|
2023-05-24 23:08:21 +02:00
|
|
|
}
|
2023-06-10 06:14:18 +02:00
|
|
|
}
|
2023-05-24 23:08:21 +02:00
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"UpdateAssetDto": {
|
2023-01-15 07:49:47 +02:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"tagIds": {
|
|
|
|
"title": "Array of tag IDs to add to the asset",
|
2023-01-15 07:49:47 +02:00
|
|
|
"example": [
|
|
|
|
"bf973405-3f2a-48d2-a687-2ed4167164be",
|
|
|
|
"dd41870b-5d00-46d2-924e-1d8489a0aa0f",
|
|
|
|
"fad77c3f-deef-4e7e-9608-14c1aa4e559a"
|
|
|
|
],
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"isFavorite": {
|
2023-01-22 06:15:16 +02:00
|
|
|
"type": "boolean"
|
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"isArchived": {
|
2023-01-22 06:15:16 +02:00
|
|
|
"type": "boolean"
|
|
|
|
},
|
2023-01-15 07:49:47 +02:00
|
|
|
"description": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
2023-06-10 06:14:18 +02:00
|
|
|
}
|
2023-01-15 07:49:47 +02:00
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"UpdateTagDto": {
|
2023-02-15 23:21:22 +02:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"name": {
|
|
|
|
"type": "string"
|
2023-02-15 23:21:22 +02:00
|
|
|
}
|
2023-06-10 06:14:18 +02:00
|
|
|
}
|
2023-02-15 23:21:22 +02:00
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"UpdateUserDto": {
|
2023-01-15 07:49:47 +02:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"id": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "uuid"
|
|
|
|
},
|
|
|
|
"email": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"password": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"firstName": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"lastName": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"storageLabel": {
|
|
|
|
"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
|
|
|
"externalPath": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"isAdmin": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"shouldChangePassword": {
|
|
|
|
"type": "boolean"
|
2023-01-15 07:49:47 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"id"
|
2023-01-15 07:49:47 +02:00
|
|
|
]
|
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"UsageByUserDto": {
|
2022-12-05 19:56:44 +02:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"userId": {
|
|
|
|
"type": "string"
|
2022-12-05 19:56:44 +02:00
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"userFirstName": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"userLastName": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"photos": {
|
2022-12-05 19:56:44 +02:00
|
|
|
"type": "integer"
|
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"videos": {
|
2022-12-05 19:56:44 +02:00
|
|
|
"type": "integer"
|
2023-06-10 06:14:18 +02:00
|
|
|
},
|
|
|
|
"usage": {
|
|
|
|
"type": "integer",
|
|
|
|
"format": "int64"
|
2022-12-05 19:56:44 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
2023-06-10 06:14:18 +02:00
|
|
|
"userId",
|
|
|
|
"userFirstName",
|
|
|
|
"userLastName",
|
|
|
|
"photos",
|
|
|
|
"videos",
|
|
|
|
"usage"
|
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
|
|
|
"type": "object",
|
|
|
|
"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"
|
2022-12-05 19:56:44 +02:00
|
|
|
]
|
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"UserResponseDto": {
|
2023-01-09 22:16:08 +02:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-06-10 06:14:18 +02:00
|
|
|
"id": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"email": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"firstName": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"lastName": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"storageLabel": {
|
2023-04-06 19:50:55 +02:00
|
|
|
"type": "string",
|
2023-06-10 06:14:18 +02:00
|
|
|
"nullable": true
|
2023-01-09 22:16:08 +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
|
|
|
"externalPath": {
|
|
|
|
"type": "string",
|
|
|
|
"nullable": true
|
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"profileImagePath": {
|
2023-05-30 15:15:56 +02:00
|
|
|
"type": "string"
|
2023-01-09 22:16:08 +02:00
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"shouldChangePassword": {
|
2023-01-09 22:16:08 +02:00
|
|
|
"type": "boolean"
|
2023-01-22 06:15:16 +02:00
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"isAdmin": {
|
2023-01-22 06:15:16 +02:00
|
|
|
"type": "boolean"
|
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"createdAt": {
|
|
|
|
"format": "date-time",
|
|
|
|
"type": "string"
|
2023-01-09 22:16:08 +02:00
|
|
|
},
|
2023-06-10 06:14:18 +02:00
|
|
|
"deletedAt": {
|
|
|
|
"format": "date-time",
|
|
|
|
"type": "string",
|
|
|
|
"nullable": true
|
|
|
|
},
|
|
|
|
"updatedAt": {
|
|
|
|
"format": "date-time",
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"oauthId": {
|
2023-01-09 22:16:08 +02:00
|
|
|
"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"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"ValidateAccessTokenResponseDto": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"authStatus": {
|
|
|
|
"type": "boolean"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"authStatus"
|
2023-01-09 22:16:08 +02:00
|
|
|
]
|
2022-12-05 19:56:44 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|