mirror of
https://github.com/immich-app/immich.git
synced 2025-12-24 09:14:58 +03:00
@@ -4718,6 +4718,38 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"/server-info/about": {
|
||||
"get": {
|
||||
"operationId": "getAboutInfo",
|
||||
"parameters": [],
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/ServerAboutResponseDto"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": ""
|
||||
}
|
||||
},
|
||||
"security": [
|
||||
{
|
||||
"bearer": []
|
||||
},
|
||||
{
|
||||
"cookie": []
|
||||
},
|
||||
{
|
||||
"api_key": []
|
||||
}
|
||||
],
|
||||
"tags": [
|
||||
"Server Info"
|
||||
]
|
||||
}
|
||||
},
|
||||
"/server-info/config": {
|
||||
"get": {
|
||||
"operationId": "getServerConfig",
|
||||
@@ -9630,6 +9662,63 @@
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"ServerAboutResponseDto": {
|
||||
"properties": {
|
||||
"build": {
|
||||
"type": "string"
|
||||
},
|
||||
"buildImage": {
|
||||
"type": "string"
|
||||
},
|
||||
"buildImageUrl": {
|
||||
"type": "string"
|
||||
},
|
||||
"buildUrl": {
|
||||
"type": "string"
|
||||
},
|
||||
"exiftool": {
|
||||
"type": "string"
|
||||
},
|
||||
"ffmpeg": {
|
||||
"type": "string"
|
||||
},
|
||||
"imagemagick": {
|
||||
"type": "string"
|
||||
},
|
||||
"libvips": {
|
||||
"type": "string"
|
||||
},
|
||||
"nodejs": {
|
||||
"type": "string"
|
||||
},
|
||||
"repository": {
|
||||
"type": "string"
|
||||
},
|
||||
"repositoryUrl": {
|
||||
"type": "string"
|
||||
},
|
||||
"sourceCommit": {
|
||||
"type": "string"
|
||||
},
|
||||
"sourceRef": {
|
||||
"type": "string"
|
||||
},
|
||||
"sourceUrl": {
|
||||
"type": "string"
|
||||
},
|
||||
"version": {
|
||||
"type": "string"
|
||||
},
|
||||
"versionUrl": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"version",
|
||||
"versionUrl"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"ServerConfigDto": {
|
||||
"properties": {
|
||||
"externalDomain": {
|
||||
|
||||
@@ -787,6 +787,24 @@ export type SmartSearchDto = {
|
||||
withDeleted?: boolean;
|
||||
withExif?: boolean;
|
||||
};
|
||||
export type ServerAboutResponseDto = {
|
||||
build?: string;
|
||||
buildImage?: string;
|
||||
buildImageUrl?: string;
|
||||
buildUrl?: string;
|
||||
exiftool?: string;
|
||||
ffmpeg?: string;
|
||||
imagemagick?: string;
|
||||
libvips?: string;
|
||||
nodejs?: string;
|
||||
repository?: string;
|
||||
repositoryUrl?: string;
|
||||
sourceCommit?: string;
|
||||
sourceRef?: string;
|
||||
sourceUrl?: string;
|
||||
version: string;
|
||||
versionUrl: string;
|
||||
};
|
||||
export type ServerConfigDto = {
|
||||
externalDomain: string;
|
||||
isInitialized: boolean;
|
||||
@@ -2363,6 +2381,14 @@ export function getSearchSuggestions({ country, make, model, state, $type }: {
|
||||
...opts
|
||||
}));
|
||||
}
|
||||
export function getAboutInfo(opts?: Oazapfts.RequestOpts) {
|
||||
return oazapfts.ok(oazapfts.fetchJson<{
|
||||
status: 200;
|
||||
data: ServerAboutResponseDto;
|
||||
}>("/server-info/about", {
|
||||
...opts
|
||||
}));
|
||||
}
|
||||
export function getServerConfig(opts?: Oazapfts.RequestOpts) {
|
||||
return oazapfts.ok(oazapfts.fetchJson<{
|
||||
status: 200;
|
||||
|
||||
Reference in New Issue
Block a user