Self-hosted dashboard and admin auth (#4837)

Co-authored-by: kartik-mem0 <kartik.labhshetwar@mem0.ai>
This commit is contained in:
Gabriel Stein
2026-04-23 19:06:36 +05:30
committed by GitHub
co-authored by kartik-mem0
parent 15feaa8ac4
commit db8ac61713
252 changed files with 20275 additions and 331 deletions
@@ -0,0 +1,34 @@
export const AUTH_ENDPOINTS = {
SETUP_STATUS: "/auth/setup-status",
REGISTER: "/auth/register",
LOGIN: "/auth/login",
REFRESH: "/auth/refresh",
ME: "/auth/me",
CHANGE_PASSWORD: "/auth/change-password",
ONBOARDING_COMPLETE: "/auth/onboarding-complete",
} as const;
export const MEMORY_ENDPOINTS = {
BASE: "/memories",
BY_ID: (memoryId: string) => `/memories/${memoryId}`,
HISTORY: (memoryId: string) => `/memories/${memoryId}/history`,
CONFIGURE: "/configure",
CONFIGURE_PROVIDERS: "/configure/providers",
RESET: "/reset",
GENERATE_INSTRUCTIONS: "/generate-instructions",
} as const;
export const API_KEY_ENDPOINTS = {
BASE: "/api-keys",
BY_ID: (keyId: string) => `/api-keys/${keyId}`,
} as const;
export const REQUEST_ENDPOINTS = {
BASE: "/requests",
} as const;
export const ENTITY_ENDPOINTS = {
BASE: "/entities",
BY_ID: (type: string, id: string) =>
`/entities/${type}/${encodeURIComponent(id)}`,
} as const;