feat: facial recognition (#2180)

This commit is contained in:
Jason Rasmussen 2023-05-17 13:07:17 -04:00 committed by GitHub
parent 115a47d4c6
commit 93863b0629
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
107 changed files with 3943 additions and 133 deletions

View file

@ -8,6 +8,7 @@ import {
ConfigurationParameters,
JobApi,
OAuthApi,
PersonApi,
PartnerApi,
SearchApi,
ServerInfoApi,
@ -31,6 +32,7 @@ export class ImmichApi {
public searchApi: SearchApi;
public serverInfoApi: ServerInfoApi;
public shareApi: ShareApi;
public personApi: PersonApi;
public systemConfigApi: SystemConfigApi;
public userApi: UserApi;
@ -49,6 +51,7 @@ export class ImmichApi {
this.searchApi = new SearchApi(this.config);
this.serverInfoApi = new ServerInfoApi(this.config);
this.shareApi = new ShareApi(this.config);
this.personApi = new PersonApi(this.config);
this.systemConfigApi = new SystemConfigApi(this.config);
this.userApi = new UserApi(this.config);
}
@ -98,6 +101,11 @@ export class ImmichApi {
const path = `/user/profile-image/${userId}`;
return this.createUrl(path);
}
public getPeopleThumbnailUrl(personId: string) {
const path = `/person/${personId}/thumbnail`;
return this.createUrl(path);
}
}
export const api = new ImmichApi({ basePath: '/api' });