website cleanup

This commit is contained in:
2025-12-25 00:19:36 +01:00
parent d78854a4c6
commit 9486455b9e
82 changed files with 1223 additions and 363 deletions

View File

@@ -6,6 +6,8 @@ import type { RequestAvatarGenerationOutputDTO } from '../../types/generated/Req
import type { UpdateAvatarInputDTO } from '../../types/generated/UpdateAvatarInputDTO';
import type { UpdateAvatarOutputDTO } from '../../types/generated/UpdateAvatarOutputDTO';
import type { UploadMediaOutputDTO } from '../../types/generated/UploadMediaOutputDTO';
import type { ValidateFaceInputDTO } from '../../types/generated/ValidateFaceInputDTO';
import type { ValidateFaceOutputDTO } from '../../types/generated/ValidateFaceOutputDTO';
import { BaseApiClient } from '../base/BaseApiClient';
/**
@@ -49,4 +51,9 @@ export class MediaApiClient extends BaseApiClient {
updateAvatar(input: UpdateAvatarInputDTO): Promise<UpdateAvatarOutputDTO> {
return this.put<UpdateAvatarOutputDTO>(`/media/avatar/${input.driverId}`, { avatarUrl: input.avatarUrl });
}
/** Validate face photo for avatar generation */
validateFacePhoto(input: ValidateFaceInputDTO): Promise<ValidateFaceOutputDTO> {
return this.post<ValidateFaceOutputDTO>('/media/avatar/validate-face', input);
}
}