mirror of
https://github.com/immich-app/immich.git
synced 2026-05-18 03:10:24 +03:00
Merge branch 'main' into feat/search-filter-album/web
This commit is contained in:
@@ -6078,6 +6078,56 @@
|
||||
"tags": [
|
||||
"Sessions"
|
||||
]
|
||||
},
|
||||
"put": {
|
||||
"operationId": "updateSession",
|
||||
"parameters": [
|
||||
{
|
||||
"name": "id",
|
||||
"required": true,
|
||||
"in": "path",
|
||||
"schema": {
|
||||
"format": "uuid",
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
],
|
||||
"requestBody": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/SessionUpdateDto"
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": true
|
||||
},
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/SessionResponseDto"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": ""
|
||||
}
|
||||
},
|
||||
"security": [
|
||||
{
|
||||
"bearer": []
|
||||
},
|
||||
{
|
||||
"cookie": []
|
||||
},
|
||||
{
|
||||
"api_key": []
|
||||
}
|
||||
],
|
||||
"tags": [
|
||||
"Sessions"
|
||||
]
|
||||
}
|
||||
},
|
||||
"/sessions/{id}/lock": {
|
||||
@@ -12844,6 +12894,9 @@
|
||||
"id": {
|
||||
"type": "string"
|
||||
},
|
||||
"isPendingSyncReset": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"token": {
|
||||
"type": "string"
|
||||
},
|
||||
@@ -12857,6 +12910,7 @@
|
||||
"deviceOS",
|
||||
"deviceType",
|
||||
"id",
|
||||
"isPendingSyncReset",
|
||||
"token",
|
||||
"updatedAt"
|
||||
],
|
||||
@@ -12882,6 +12936,9 @@
|
||||
"id": {
|
||||
"type": "string"
|
||||
},
|
||||
"isPendingSyncReset": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"updatedAt": {
|
||||
"type": "string"
|
||||
}
|
||||
@@ -12892,6 +12949,7 @@
|
||||
"deviceOS",
|
||||
"deviceType",
|
||||
"id",
|
||||
"isPendingSyncReset",
|
||||
"updatedAt"
|
||||
],
|
||||
"type": "object"
|
||||
@@ -12908,6 +12966,14 @@
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"SessionUpdateDto": {
|
||||
"properties": {
|
||||
"isPendingSyncReset": {
|
||||
"type": "boolean"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"SharedLinkCreateDto": {
|
||||
"properties": {
|
||||
"albumId": {
|
||||
@@ -13806,6 +13872,10 @@
|
||||
"isFavorite": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"livePhotoVideoId": {
|
||||
"nullable": true,
|
||||
"type": "string"
|
||||
},
|
||||
"localDateTime": {
|
||||
"format": "date-time",
|
||||
"nullable": true,
|
||||
@@ -13817,6 +13887,10 @@
|
||||
"ownerId": {
|
||||
"type": "string"
|
||||
},
|
||||
"stackId": {
|
||||
"nullable": true,
|
||||
"type": "string"
|
||||
},
|
||||
"thumbhash": {
|
||||
"nullable": true,
|
||||
"type": "string"
|
||||
@@ -13844,9 +13918,11 @@
|
||||
"fileModifiedAt",
|
||||
"id",
|
||||
"isFavorite",
|
||||
"livePhotoVideoId",
|
||||
"localDateTime",
|
||||
"originalFileName",
|
||||
"ownerId",
|
||||
"stackId",
|
||||
"thumbhash",
|
||||
"type",
|
||||
"visibility"
|
||||
@@ -13888,7 +13964,12 @@
|
||||
"MemoryToAssetDeleteV1",
|
||||
"StackV1",
|
||||
"StackDeleteV1",
|
||||
"SyncAckV1"
|
||||
"PersonV1",
|
||||
"PersonDeleteV1",
|
||||
"UserMetadataV1",
|
||||
"UserMetadataDeleteV1",
|
||||
"SyncAckV1",
|
||||
"SyncResetV1"
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
@@ -14037,6 +14118,74 @@
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"SyncPersonDeleteV1": {
|
||||
"properties": {
|
||||
"personId": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"personId"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"SyncPersonV1": {
|
||||
"properties": {
|
||||
"birthDate": {
|
||||
"format": "date-time",
|
||||
"nullable": true,
|
||||
"type": "string"
|
||||
},
|
||||
"color": {
|
||||
"nullable": true,
|
||||
"type": "string"
|
||||
},
|
||||
"createdAt": {
|
||||
"format": "date-time",
|
||||
"type": "string"
|
||||
},
|
||||
"faceAssetId": {
|
||||
"nullable": true,
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"type": "string"
|
||||
},
|
||||
"isFavorite": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"isHidden": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"ownerId": {
|
||||
"type": "string"
|
||||
},
|
||||
"thumbnailPath": {
|
||||
"type": "string"
|
||||
},
|
||||
"updatedAt": {
|
||||
"format": "date-time",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"birthDate",
|
||||
"color",
|
||||
"createdAt",
|
||||
"faceAssetId",
|
||||
"id",
|
||||
"isFavorite",
|
||||
"isHidden",
|
||||
"name",
|
||||
"ownerId",
|
||||
"thumbnailPath",
|
||||
"updatedAt"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"SyncRequestType": {
|
||||
"enum": [
|
||||
"AlbumsV1",
|
||||
@@ -14053,10 +14202,16 @@
|
||||
"PartnerAssetExifsV1",
|
||||
"PartnerStacksV1",
|
||||
"StacksV1",
|
||||
"UsersV1"
|
||||
"UsersV1",
|
||||
"PeopleV1",
|
||||
"UserMetadataV1"
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"SyncResetV1": {
|
||||
"properties": {},
|
||||
"type": "object"
|
||||
},
|
||||
"SyncStackDeleteV1": {
|
||||
"properties": {
|
||||
"stackId": {
|
||||
@@ -14099,6 +14254,9 @@
|
||||
},
|
||||
"SyncStreamDto": {
|
||||
"properties": {
|
||||
"reset": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"types": {
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/SyncRequestType"
|
||||
@@ -14122,6 +14280,40 @@
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"SyncUserMetadataDeleteV1": {
|
||||
"properties": {
|
||||
"key": {
|
||||
"type": "string"
|
||||
},
|
||||
"userId": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"key",
|
||||
"userId"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"SyncUserMetadataV1": {
|
||||
"properties": {
|
||||
"key": {
|
||||
"type": "string"
|
||||
},
|
||||
"userId": {
|
||||
"type": "string"
|
||||
},
|
||||
"value": {
|
||||
"type": "object"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"key",
|
||||
"userId",
|
||||
"value"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"SyncUserV1": {
|
||||
"properties": {
|
||||
"deletedAt": {
|
||||
@@ -14190,6 +14382,9 @@
|
||||
"newVersionCheck": {
|
||||
"$ref": "#/components/schemas/SystemConfigNewVersionCheckDto"
|
||||
},
|
||||
"nightlyTasks": {
|
||||
"$ref": "#/components/schemas/SystemConfigNightlyTasksDto"
|
||||
},
|
||||
"notifications": {
|
||||
"$ref": "#/components/schemas/SystemConfigNotificationsDto"
|
||||
},
|
||||
@@ -14232,6 +14427,7 @@
|
||||
"map",
|
||||
"metadata",
|
||||
"newVersionCheck",
|
||||
"nightlyTasks",
|
||||
"notifications",
|
||||
"oauth",
|
||||
"passwordLogin",
|
||||
@@ -14662,6 +14858,37 @@
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"SystemConfigNightlyTasksDto": {
|
||||
"properties": {
|
||||
"clusterNewFaces": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"databaseCleanup": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"generateMemories": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"missingThumbnails": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"startTime": {
|
||||
"type": "string"
|
||||
},
|
||||
"syncQuotaUsage": {
|
||||
"type": "boolean"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"clusterNewFaces",
|
||||
"databaseCleanup",
|
||||
"generateMemories",
|
||||
"missingThumbnails",
|
||||
"startTime",
|
||||
"syncQuotaUsage"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"SystemConfigNotificationsDto": {
|
||||
"properties": {
|
||||
"smtp": {
|
||||
|
||||
@@ -1164,6 +1164,7 @@ export type SessionResponseDto = {
|
||||
deviceType: string;
|
||||
expiresAt?: string;
|
||||
id: string;
|
||||
isPendingSyncReset: boolean;
|
||||
updatedAt: string;
|
||||
};
|
||||
export type SessionCreateDto = {
|
||||
@@ -1179,9 +1180,13 @@ export type SessionCreateResponseDto = {
|
||||
deviceType: string;
|
||||
expiresAt?: string;
|
||||
id: string;
|
||||
isPendingSyncReset: boolean;
|
||||
token: string;
|
||||
updatedAt: string;
|
||||
};
|
||||
export type SessionUpdateDto = {
|
||||
isPendingSyncReset?: boolean;
|
||||
};
|
||||
export type SharedLinkResponseDto = {
|
||||
album?: AlbumResponseDto;
|
||||
allowDownload: boolean;
|
||||
@@ -1264,6 +1269,7 @@ export type AssetFullSyncDto = {
|
||||
userId?: string;
|
||||
};
|
||||
export type SyncStreamDto = {
|
||||
reset?: boolean;
|
||||
types: SyncRequestType[];
|
||||
};
|
||||
export type DatabaseBackupConfig = {
|
||||
@@ -1383,6 +1389,14 @@ export type SystemConfigMetadataDto = {
|
||||
export type SystemConfigNewVersionCheckDto = {
|
||||
enabled: boolean;
|
||||
};
|
||||
export type SystemConfigNightlyTasksDto = {
|
||||
clusterNewFaces: boolean;
|
||||
databaseCleanup: boolean;
|
||||
generateMemories: boolean;
|
||||
missingThumbnails: boolean;
|
||||
startTime: string;
|
||||
syncQuotaUsage: boolean;
|
||||
};
|
||||
export type SystemConfigNotificationsDto = {
|
||||
smtp: SystemConfigSmtpDto;
|
||||
};
|
||||
@@ -1451,6 +1465,7 @@ export type SystemConfigDto = {
|
||||
map: SystemConfigMapDto;
|
||||
metadata: SystemConfigMetadataDto;
|
||||
newVersionCheck: SystemConfigNewVersionCheckDto;
|
||||
nightlyTasks: SystemConfigNightlyTasksDto;
|
||||
notifications: SystemConfigNotificationsDto;
|
||||
oauth: SystemConfigOAuthDto;
|
||||
passwordLogin: SystemConfigPasswordLoginDto;
|
||||
@@ -3184,6 +3199,19 @@ export function deleteSession({ id }: {
|
||||
method: "DELETE"
|
||||
}));
|
||||
}
|
||||
export function updateSession({ id, sessionUpdateDto }: {
|
||||
id: string;
|
||||
sessionUpdateDto: SessionUpdateDto;
|
||||
}, opts?: Oazapfts.RequestOpts) {
|
||||
return oazapfts.ok(oazapfts.fetchJson<{
|
||||
status: 200;
|
||||
data: SessionResponseDto;
|
||||
}>(`/sessions/${encodeURIComponent(id)}`, oazapfts.json({
|
||||
...opts,
|
||||
method: "PUT",
|
||||
body: sessionUpdateDto
|
||||
})));
|
||||
}
|
||||
export function lockSession({ id }: {
|
||||
id: string;
|
||||
}, opts?: Oazapfts.RequestOpts) {
|
||||
@@ -4109,7 +4137,12 @@ export enum SyncEntityType {
|
||||
MemoryToAssetDeleteV1 = "MemoryToAssetDeleteV1",
|
||||
StackV1 = "StackV1",
|
||||
StackDeleteV1 = "StackDeleteV1",
|
||||
SyncAckV1 = "SyncAckV1"
|
||||
PersonV1 = "PersonV1",
|
||||
PersonDeleteV1 = "PersonDeleteV1",
|
||||
UserMetadataV1 = "UserMetadataV1",
|
||||
UserMetadataDeleteV1 = "UserMetadataDeleteV1",
|
||||
SyncAckV1 = "SyncAckV1",
|
||||
SyncResetV1 = "SyncResetV1"
|
||||
}
|
||||
export enum SyncRequestType {
|
||||
AlbumsV1 = "AlbumsV1",
|
||||
@@ -4126,7 +4159,9 @@ export enum SyncRequestType {
|
||||
PartnerAssetExifsV1 = "PartnerAssetExifsV1",
|
||||
PartnerStacksV1 = "PartnerStacksV1",
|
||||
StacksV1 = "StacksV1",
|
||||
UsersV1 = "UsersV1"
|
||||
UsersV1 = "UsersV1",
|
||||
PeopleV1 = "PeopleV1",
|
||||
UserMetadataV1 = "UserMetadataV1"
|
||||
}
|
||||
export enum TranscodeHWAccel {
|
||||
Nvenc = "nvenc",
|
||||
|
||||
Reference in New Issue
Block a user