Merge remote-tracking branch 'upstream/dev' into feat/replace-logs

This commit is contained in:
Anish Sarkar 2026-01-15 03:07:20 +05:30
commit 2e0f742000
47 changed files with 2365 additions and 700 deletions

View file

@ -1,4 +1,8 @@
import { getMeResponse } from "@/contracts/types/user.types";
import {
getMeResponse,
updateUserResponse,
type UpdateUserRequest,
} from "@/contracts/types/user.types";
import { baseApiService } from "./base-api.service";
class UserApiService {
@ -8,6 +12,15 @@ class UserApiService {
getMe = async () => {
return baseApiService.get(`/users/me`, getMeResponse);
};
/**
* Update current authenticated user
*/
updateMe = async (request: UpdateUserRequest) => {
return baseApiService.patch(`/users/me`, updateUserResponse, {
body: request,
});
};
}
export const userApiService = new UserApiService();

View file

@ -31,6 +31,9 @@ export interface MessageRecord {
role: "user" | "assistant" | "system";
content: unknown;
created_at: string;
author_id?: string | null;
author_display_name?: string | null;
author_avatar_url?: string | null;
}
export interface ThreadListResponse {

View file

@ -1,10 +1,10 @@
/**
* Environment configuration for the frontend.
*
*
* This file centralizes access to NEXT_PUBLIC_* environment variables.
* For Docker deployments, these placeholders are replaced at container startup
* via sed in the entrypoint script.
*
*
* IMPORTANT: Do not use template literals or complex expressions with these values
* as it may prevent the sed replacement from working correctly.
*/
@ -24,5 +24,5 @@ export const ETL_SERVICE = process.env.NEXT_PUBLIC_ETL_SERVICE || "DOCLING";
// Helper to check if local auth is enabled
export const isLocalAuth = () => AUTH_TYPE === "LOCAL";
// Helper to check if Google auth is enabled
// Helper to check if Google auth is enabled
export const isGoogleAuth = () => AUTH_TYPE === "GOOGLE";