updates
This commit is contained in:
@@ -267,6 +267,7 @@ export const api = {
|
||||
req<{ user: User; key: string }>("/api/admin/users", { method: "POST", body: JSON.stringify(u) }),
|
||||
adminDelete: (id: string) => req<{ ok: boolean }>(`/api/admin/users/${id}`, { method: "DELETE" }),
|
||||
adminRegenerate: (id: string) => req<{ key: string }>(`/api/admin/users/${id}/regenerate`, { method: "POST" }),
|
||||
adminResetLink: (id: string) => req<{ ok: boolean; email: string }>(`/api/admin/users/${id}/reset-link`, { method: "POST" }),
|
||||
adminShadowban: (id: string, shadowbanned: boolean) =>
|
||||
req<{ shadowbanned: boolean }>(`/api/admin/users/${id}/shadowban`, {
|
||||
method: "POST",
|
||||
|
||||
@@ -244,6 +244,12 @@ const en = {
|
||||
"admin.email": "Email (recovery)",
|
||||
"admin.createFailed": "Create failed",
|
||||
"admin.regenFailed": "Regenerate failed",
|
||||
"admin.resetLink": "Email a password reset link",
|
||||
"admin.resetTitle": "Email a reset link to @{user}?",
|
||||
"admin.resetMsg": "A one-time key-recovery link will be sent to {email}.",
|
||||
"admin.resetConfirm": "Send link",
|
||||
"admin.resetSent": "Reset link sent to @{user} ({email}).",
|
||||
"admin.resetFailed": "Could not send the reset link",
|
||||
"admin.deleteFailed": "Delete failed",
|
||||
"admin.loadFailed": "Load failed",
|
||||
"admin.searchPh": "Search accounts…",
|
||||
@@ -957,6 +963,12 @@ const es: Dict = {
|
||||
"admin.email": "Email (recuperación)",
|
||||
"admin.createFailed": "No se pudo crear",
|
||||
"admin.regenFailed": "No se pudo regenerar",
|
||||
"admin.resetLink": "Email a password reset link",
|
||||
"admin.resetTitle": "Email a reset link to @{user}?",
|
||||
"admin.resetMsg": "A one-time key-recovery link will be sent to {email}.",
|
||||
"admin.resetConfirm": "Send link",
|
||||
"admin.resetSent": "Reset link sent to @{user} ({email}).",
|
||||
"admin.resetFailed": "Could not send the reset link",
|
||||
"admin.deleteFailed": "No se pudo eliminar",
|
||||
"admin.loadFailed": "No se pudo cargar",
|
||||
"admin.searchPh": "Buscar cuentas…",
|
||||
@@ -1662,6 +1674,12 @@ const fr: Dict = {
|
||||
"admin.email": "Email (récupération)",
|
||||
"admin.createFailed": "Création impossible",
|
||||
"admin.regenFailed": "Régénération impossible",
|
||||
"admin.resetLink": "Email a password reset link",
|
||||
"admin.resetTitle": "Email a reset link to @{user}?",
|
||||
"admin.resetMsg": "A one-time key-recovery link will be sent to {email}.",
|
||||
"admin.resetConfirm": "Send link",
|
||||
"admin.resetSent": "Reset link sent to @{user} ({email}).",
|
||||
"admin.resetFailed": "Could not send the reset link",
|
||||
"admin.deleteFailed": "Suppression impossible",
|
||||
"admin.loadFailed": "Chargement impossible",
|
||||
"admin.searchPh": "Rechercher des comptes…",
|
||||
@@ -2361,6 +2379,12 @@ const ru: Dict = {
|
||||
"admin.email": "Email (восстановление)",
|
||||
"admin.createFailed": "Не создалось",
|
||||
"admin.regenFailed": "Не сменилось",
|
||||
"admin.resetLink": "Email a password reset link",
|
||||
"admin.resetTitle": "Email a reset link to @{user}?",
|
||||
"admin.resetMsg": "A one-time key-recovery link will be sent to {email}.",
|
||||
"admin.resetConfirm": "Send link",
|
||||
"admin.resetSent": "Reset link sent to @{user} ({email}).",
|
||||
"admin.resetFailed": "Could not send the reset link",
|
||||
"admin.deleteFailed": "Не удалилось",
|
||||
"admin.loadFailed": "Не загрузилось",
|
||||
"admin.searchPh": "Поиск аккаунтов…",
|
||||
@@ -3055,6 +3079,12 @@ const it: Dict = {
|
||||
"admin.email": "Email (recupero)",
|
||||
"admin.createFailed": "Creazione fallita",
|
||||
"admin.regenFailed": "Rigenerazione fallita",
|
||||
"admin.resetLink": "Email a password reset link",
|
||||
"admin.resetTitle": "Email a reset link to @{user}?",
|
||||
"admin.resetMsg": "A one-time key-recovery link will be sent to {email}.",
|
||||
"admin.resetConfirm": "Send link",
|
||||
"admin.resetSent": "Reset link sent to @{user} ({email}).",
|
||||
"admin.resetFailed": "Could not send the reset link",
|
||||
"admin.deleteFailed": "Eliminazione fallita",
|
||||
"admin.loadFailed": "Caricamento fallito",
|
||||
"admin.searchPh": "Cerca account…",
|
||||
@@ -3750,6 +3780,12 @@ const pt: Dict = {
|
||||
"admin.email": "Email (recuperação)",
|
||||
"admin.createFailed": "Falha ao criar",
|
||||
"admin.regenFailed": "Falha ao regenerar",
|
||||
"admin.resetLink": "Email a password reset link",
|
||||
"admin.resetTitle": "Email a reset link to @{user}?",
|
||||
"admin.resetMsg": "A one-time key-recovery link will be sent to {email}.",
|
||||
"admin.resetConfirm": "Send link",
|
||||
"admin.resetSent": "Reset link sent to @{user} ({email}).",
|
||||
"admin.resetFailed": "Could not send the reset link",
|
||||
"admin.deleteFailed": "Falha ao eliminar",
|
||||
"admin.loadFailed": "Falha ao carregar",
|
||||
"admin.searchPh": "Pesquisar contas…",
|
||||
|
||||
@@ -23,6 +23,8 @@ export interface Conversation {
|
||||
export interface ChatMessage {
|
||||
role: "system" | "user" | "assistant";
|
||||
content: string;
|
||||
/** Fully-qualified model id that produced this message (assistant only, "" = unknown). */
|
||||
model?: string;
|
||||
}
|
||||
|
||||
export interface DriverModel {
|
||||
|
||||
Reference in New Issue
Block a user