chore: build metadata (#10612)

feat: build metadata
This commit is contained in:
Jason Rasmussen
2024-06-26 08:25:09 -04:00
committed by GitHub
parent 15c1cd6449
commit 8a445cac07
24 changed files with 905 additions and 18 deletions

View File

@@ -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": {

View File

@@ -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;