mirror of
https://github.com/immich-app/immich.git
synced 2025-06-20 17:03:14 +02:00
feat(server): apk links API endpoint for Obtainium Android mobile-server version sync (#18700)
This commit is contained in:
parent
be247395db
commit
8ea40973a7
10 changed files with 263 additions and 0 deletions
open-api/typescript-sdk/src
|
@ -1004,6 +1004,12 @@ export type ServerAboutResponseDto = {
|
|||
version: string;
|
||||
versionUrl: string;
|
||||
};
|
||||
export type ServerApkLinksDto = {
|
||||
arm64v8a: string;
|
||||
armeabiv7a: string;
|
||||
universal: string;
|
||||
x86_64: string;
|
||||
};
|
||||
export type ServerConfigDto = {
|
||||
externalDomain: string;
|
||||
isInitialized: boolean;
|
||||
|
@ -2868,6 +2874,14 @@ export function getAboutInfo(opts?: Oazapfts.RequestOpts) {
|
|||
...opts
|
||||
}));
|
||||
}
|
||||
export function getAndroidLinks(opts?: Oazapfts.RequestOpts) {
|
||||
return oazapfts.ok(oazapfts.fetchJson<{
|
||||
status: 200;
|
||||
data: ServerApkLinksDto;
|
||||
}>("/server/android-links", {
|
||||
...opts
|
||||
}));
|
||||
}
|
||||
export function getServerConfig(opts?: Oazapfts.RequestOpts) {
|
||||
return oazapfts.ok(oazapfts.fetchJson<{
|
||||
status: 200;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue