- {setupData.backup_codes.map((code, index) => (
+ {setupData.backup_codes.map((code) => (
{code}
diff --git a/web/src/features/profile/components/dialogs/wechat-bind-dialog.tsx b/web/src/features/security/components/dialogs/wechat-bind-dialog.tsx
similarity index 98%
rename from web/src/features/profile/components/dialogs/wechat-bind-dialog.tsx
rename to web/src/features/security/components/dialogs/wechat-bind-dialog.tsx
index 065de48418..c2e18948f8 100644
--- a/web/src/features/profile/components/dialogs/wechat-bind-dialog.tsx
+++ b/web/src/features/security/components/dialogs/wechat-bind-dialog.tsx
@@ -25,8 +25,7 @@ import { Button } from '@/components/ui/button'
import { Field, FieldGroup, FieldLabel } from '@/components/ui/field'
import { Input } from '@/components/ui/input'
import { Spinner } from '@/components/ui/spinner'
-
-import { bindWeChat } from '../../api'
+import { bindWeChat } from '@/features/profile/api'
interface WeChatBindDialogProps {
open: boolean
diff --git a/web/src/features/profile/components/login-session-dialogs.tsx b/web/src/features/security/components/login-session-dialogs.tsx
similarity index 100%
rename from web/src/features/profile/components/login-session-dialogs.tsx
rename to web/src/features/security/components/login-session-dialogs.tsx
diff --git a/web/src/features/profile/components/login-session-item.tsx b/web/src/features/security/components/login-session-item.tsx
similarity index 100%
rename from web/src/features/profile/components/login-session-item.tsx
rename to web/src/features/security/components/login-session-item.tsx
diff --git a/web/src/features/profile/components/login-session-utils.ts b/web/src/features/security/components/login-session-utils.ts
similarity index 100%
rename from web/src/features/profile/components/login-session-utils.ts
rename to web/src/features/security/components/login-session-utils.ts
diff --git a/web/src/features/profile/components/login-sessions-card.tsx b/web/src/features/security/components/login-sessions-card.tsx
similarity index 99%
rename from web/src/features/profile/components/login-sessions-card.tsx
rename to web/src/features/security/components/login-sessions-card.tsx
index 246875be96..0a10c038ee 100644
--- a/web/src/features/profile/components/login-sessions-card.tsx
+++ b/web/src/features/security/components/login-sessions-card.tsx
@@ -42,14 +42,14 @@ import {
} from '@/components/ui/empty'
import { Separator } from '@/components/ui/separator'
import { Skeleton } from '@/components/ui/skeleton'
-import { clearAuthenticatedClientState } from '@/lib/api'
-import type { LoginSession } from '@/stores/auth-store'
-
import {
getLoginSessions,
revokeLoginSession,
revokeOtherLoginSessions,
-} from '../api'
+} from '@/features/profile/api'
+import { clearAuthenticatedClientState } from '@/lib/api'
+import type { LoginSession } from '@/stores/auth-store'
+
import { LoginSessionDialogs } from './login-session-dialogs'
import { LoginSessionItem } from './login-session-item'
diff --git a/web/src/features/profile/components/passkey-card.tsx b/web/src/features/security/components/passkey-card.tsx
similarity index 100%
rename from web/src/features/profile/components/passkey-card.tsx
rename to web/src/features/security/components/passkey-card.tsx
diff --git a/web/src/features/security/components/privacy-card.tsx b/web/src/features/security/components/privacy-card.tsx
new file mode 100644
index 0000000000..a50974bcc4
--- /dev/null
+++ b/web/src/features/security/components/privacy-card.tsx
@@ -0,0 +1,90 @@
+/*
+Copyright (C) 2023-2026 QuantumNous
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU Affero General Public License as
+published by the Free Software Foundation, either version 3 of the
+License, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU Affero General Public License for more details.
+
+You should have received a copy of the GNU Affero General Public License
+along with this program. If not, see
.
+
+For commercial licensing, please contact support@quantumnous.com
+*/
+import { useMutation } from '@tanstack/react-query'
+import { Loader2 } from 'lucide-react'
+import { useEffect, useState } from 'react'
+import { useTranslation } from 'react-i18next'
+import { toast } from 'sonner'
+
+import { Button } from '@/components/ui/button'
+import { Label } from '@/components/ui/label'
+import { Switch } from '@/components/ui/switch'
+import { TitledCard } from '@/components/ui/titled-card'
+import { updateUserSettings } from '@/features/profile/api'
+import { parseUserSettings } from '@/features/profile/lib/format'
+import type { UserProfile } from '@/features/profile/types'
+
+type PrivacyCardProps = {
+ profile: UserProfile
+ onUpdate: () => void
+}
+
+export function PrivacyCard(props: PrivacyCardProps) {
+ const { t } = useTranslation()
+ const [recordIpLog, setRecordIpLog] = useState(() =>
+ Boolean(parseUserSettings(props.profile.setting).record_ip_log)
+ )
+ useEffect(() => {
+ setRecordIpLog(
+ Boolean(parseUserSettings(props.profile.setting).record_ip_log)
+ )
+ }, [props.profile.setting])
+
+ const save = useMutation({
+ mutationFn: async () => {
+ const response = await updateUserSettings({ record_ip_log: recordIpLog })
+ if (!response.success) {
+ throw new Error(response.message || t('Failed to update settings'))
+ }
+ },
+ onSuccess: () => {
+ toast.success(t('Settings updated successfully'))
+ props.onUpdate()
+ },
+ onError: () => toast.error(t('Failed to update settings')),
+ })
+
+ return (
+
+
+ {t('Record IP Address')}
+
+
+
+ save.mutate()}
+ disabled={save.isPending}
+ >
+ {save.isPending && }
+ {save.isPending ? t('Saving...') : t('Save Settings')}
+
+
+
+ )
+}
diff --git a/web/src/features/profile/components/two-fa-card.tsx b/web/src/features/security/components/two-fa-card.tsx
similarity index 99%
rename from web/src/features/profile/components/two-fa-card.tsx
rename to web/src/features/security/components/two-fa-card.tsx
index 60ed416dea..59df8bff7a 100644
--- a/web/src/features/profile/components/two-fa-card.tsx
+++ b/web/src/features/security/components/two-fa-card.tsx
@@ -32,7 +32,7 @@ import { IconBadge } from '@/components/ui/icon-badge'
import { Skeleton } from '@/components/ui/skeleton'
import { useDialogs } from '@/hooks/use-dialog'
-import { useTwoFA } from '../hooks'
+import { useTwoFA } from '../hooks/use-two-fa'
import { TwoFABackupDialog } from './dialogs/two-fa-backup-dialog'
import { TwoFADisableDialog } from './dialogs/two-fa-disable-dialog'
import { TwoFASetupDialog } from './dialogs/two-fa-setup-dialog'
diff --git a/web/src/features/security/hooks/use-access-token.ts b/web/src/features/security/hooks/use-access-token.ts
new file mode 100644
index 0000000000..3c5ef8e8ce
--- /dev/null
+++ b/web/src/features/security/hooks/use-access-token.ts
@@ -0,0 +1,68 @@
+/*
+Copyright (C) 2023-2026 QuantumNous
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU Affero General Public License as
+published by the Free Software Foundation, either version 3 of the
+License, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU Affero General Public License for more details.
+
+You should have received a copy of the GNU Affero General Public License
+along with this program. If not, see
.
+
+For commercial licensing, please contact support@quantumnous.com
+*/
+import { useMutation, useQuery, useQueryClient } from '@tanstack/react-query'
+import { useState } from 'react'
+import { useTranslation } from 'react-i18next'
+import { toast } from 'sonner'
+
+import { useAuthStore } from '@/stores/auth-store'
+
+import {
+ createAccessToken,
+ getAccessTokenStatus,
+ revokeAccessToken,
+} from '../api'
+
+export function useAccessToken() {
+ const { t } = useTranslation()
+ const client = useQueryClient()
+ const userId = useAuthStore((state) => state.auth.user?.id)
+ const statusKey = ['security', 'access-token', 'status', userId] as const
+ const [token, setToken] = useState('')
+ const status = useQuery({
+ queryKey: statusKey,
+ queryFn: getAccessTokenStatus,
+ retry: false,
+ })
+ const refresh = () => client.invalidateQueries({ queryKey: statusKey })
+ const generate = useMutation({
+ // Keep plaintext out of the query/mutation cache and persistent storage.
+ mutationFn: async () => {
+ setToken(await createAccessToken())
+ },
+ onSuccess: refresh,
+ onError: () => {
+ toast.error(t('Failed to generate token'))
+ void refresh()
+ },
+ })
+ const revoke = useMutation({
+ mutationFn: revokeAccessToken,
+ onSuccess: () => {
+ setToken('')
+ toast.success(t('Access token revoked'))
+ return refresh()
+ },
+ onError: () => {
+ toast.error(t('Failed to revoke token'))
+ void refresh()
+ },
+ })
+ return { status, token, clearToken: () => setToken(''), generate, revoke }
+}
diff --git a/web/src/features/profile/hooks/use-two-fa.ts b/web/src/features/security/hooks/use-two-fa.ts
similarity index 96%
rename from web/src/features/profile/hooks/use-two-fa.ts
rename to web/src/features/security/hooks/use-two-fa.ts
index 62bf61059d..2dbd3452b8 100644
--- a/web/src/features/profile/hooks/use-two-fa.ts
+++ b/web/src/features/security/hooks/use-two-fa.ts
@@ -18,10 +18,9 @@ For commercial licensing, please contact support@quantumnous.com
*/
import { useState, useEffect, useCallback } from 'react'
+import type { TwoFAStatus } from '@/features/profile/types'
import { get2FAStatus } from '@/lib/api'
-import type { TwoFAStatus } from '../types'
-
// ============================================================================
// Two-FA Hook
// ============================================================================
diff --git a/web/src/features/security/index.tsx b/web/src/features/security/index.tsx
new file mode 100644
index 0000000000..9119ead42a
--- /dev/null
+++ b/web/src/features/security/index.tsx
@@ -0,0 +1,144 @@
+/*
+Copyright (C) 2023-2026 QuantumNous
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU Affero General Public License as
+published by the Free Software Foundation, either version 3 of the
+License, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU Affero General Public License for more details.
+
+You should have received a copy of the GNU Affero General Public License
+along with this program. If not, see
.
+
+For commercial licensing, please contact support@quantumnous.com
+*/
+import { Link2 } from 'lucide-react'
+import type { ReactNode } from 'react'
+import { useTranslation } from 'react-i18next'
+
+import { SectionPageLayout } from '@/components/layout/components/section-page-layout'
+import { Button } from '@/components/ui/button'
+import {
+ Empty,
+ EmptyDescription,
+ EmptyHeader,
+ EmptyTitle,
+} from '@/components/ui/empty'
+import { Skeleton } from '@/components/ui/skeleton'
+import { TitledCard } from '@/components/ui/titled-card'
+import { useProfile } from '@/features/profile/hooks/use-profile'
+
+import { AccessTokenCard } from './components/access-token-card'
+import { AccountActionCard } from './components/account-action-card'
+import { AccountBindings } from './components/account-bindings'
+import { LoginSessionsCard } from './components/login-sessions-card'
+import { PasskeyCard } from './components/passkey-card'
+import { PrivacyCard } from './components/privacy-card'
+import { TwoFACard } from './components/two-fa-card'
+
+export function Security() {
+ const { t } = useTranslation()
+ const { profile, loading, refreshProfile, fetchProfile } = useProfile()
+
+ let content: ReactNode
+ if (loading) {
+ content = (
+
+
+
+
+
+ )
+ } else if (!profile) {
+ content = (
+
+
+ {t('Failed to load profile')}
+
+ {t('Refresh the list and try again.')}
+
+
+ void fetchProfile()}
+ >
+ {t('Retry')}
+
+
+ )
+ } else {
+ content = (
+
+
+
+
+ {t('Login & Authentication')}
+
+
+ }
+ headerClassName='px-3 py-2.5 !pb-2.5 sm:px-4 sm:py-2.5 sm:!pb-2.5'
+ contentClassName='p-3 sm:p-3'
+ titleClassName='text-sm sm:text-sm'
+ iconClassName='size-7 sm:size-7'
+ disableHoverEffect
+ >
+
+
+
+
+
+ {t('Sessions & Access')}
+
+
+
+
+
+
+ {t('Account Actions')}
+
+
+
+
+
+
+
+ {t('Security verification')}
+
+
+
+
+
+
+
+ )
+ }
+
+ return (
+
+
+ {t('Security & Access')}
+
+
+ {content}
+
+
+ )
+}
diff --git a/web/src/features/system-settings/maintenance/config.ts b/web/src/features/system-settings/maintenance/config.ts
index 0edc503de9..a95e9464ba 100644
--- a/web/src/features/system-settings/maintenance/config.ts
+++ b/web/src/features/system-settings/maintenance/config.ts
@@ -64,6 +64,7 @@ export const SIDEBAR_MODULES_DEFAULT: SidebarModulesAdminConfig = {
detail: true,
token: true,
log: true,
+ audit: true,
midjourney: true,
task: true,
},
@@ -71,6 +72,7 @@ export const SIDEBAR_MODULES_DEFAULT: SidebarModulesAdminConfig = {
enabled: true,
topup: true,
personal: true,
+ security: true,
},
admin: {
enabled: true,
diff --git a/web/src/features/system-settings/maintenance/sidebar-modules-section.tsx b/web/src/features/system-settings/maintenance/sidebar-modules-section.tsx
index cc4c9b34fe..2e6880b689 100644
--- a/web/src/features/system-settings/maintenance/sidebar-modules-section.tsx
+++ b/web/src/features/system-settings/maintenance/sidebar-modules-section.tsx
@@ -110,6 +110,10 @@ export function SidebarModulesSection({
title: t('Usage logs'),
description: t('Detailed request logs for investigations.'),
},
+ audit: {
+ title: t('Audit Logs'),
+ description: t('Login, security and access records'),
+ },
midjourney: {
title: t('Drawing logs'),
description: t('History of MjProxy-style image tasks.'),
@@ -128,6 +132,10 @@ export function SidebarModulesSection({
title: t('Profile'),
description: t('Personal settings and profile management.'),
},
+ security: {
+ title: t('Security & Access'),
+ description: t('Manage your security settings and account access'),
+ },
},
admin: {
channel: {
diff --git a/web/src/features/usage-logs/audit/__tests__/details.test.tsx b/web/src/features/usage-logs/audit/__tests__/details.test.tsx
new file mode 100644
index 0000000000..ca342ceb6a
--- /dev/null
+++ b/web/src/features/usage-logs/audit/__tests__/details.test.tsx
@@ -0,0 +1,289 @@
+/*
+Copyright (C) 2023-2026 QuantumNous
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU Affero General Public License as
+published by the Free Software Foundation, either version 3 of the
+License, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU Affero General Public License for more details.
+
+You should have received a copy of the GNU Affero General Public License
+along with this program. If not, see
.
+
+For commercial licensing, please contact support@quantumnous.com
+*/
+import {
+ render,
+ screen,
+ within,
+ waitFor,
+ cleanup,
+} from '@testing-library/react'
+import userEvent from '@testing-library/user-event'
+import { createInstance } from 'i18next'
+import { I18nextProvider } from 'react-i18next'
+import { afterEach, expect, it, vi } from 'vitest'
+
+import zh from '@/i18n/locales/zh.json'
+
+import type { AuditLog } from '../api'
+import { AuditLogDetailsDialog } from '../components/audit-log-details-dialog'
+
+const userAgent =
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 Chrome/152.0.0.0 Safari/537.36'
+const entry: AuditLog = {
+ event_id: 'audit-event-1',
+ user_id: 1,
+ username: 'root',
+ actor_role: 100,
+ created_at: 1788600600,
+ category: 'operation',
+ action: 'channel.update',
+ token_ref: '',
+ ip: '::1',
+ user_agent: userAgent,
+ method: 'PUT',
+ route: '/api/channel/',
+ status: 200,
+ success: true,
+ request_id: '20260905092951096890008268d9d6b7oeNCj3',
+ content: 'Updated channel batch (ID: 42)',
+ other: {
+ admin_info: {
+ admin_id: 1,
+ admin_username: 'root',
+ admin_role: 100,
+ auth_method: 'session',
+ },
+ op: {
+ action: 'channel.update',
+ params: { id: 42, name: 'batch', changed_fields: [] },
+ },
+ },
+}
+
+afterEach(() => {
+ cleanup()
+ vi.restoreAllMocks()
+ vi.unstubAllGlobals()
+})
+
+it.each([
+ [100, 'root'],
+ [10, 'admin'],
+ [1, 'user'],
+] as const)('keeps role %i as %s in Chinese', async (role, label) => {
+ const i18n = createInstance()
+ await i18n.init({ lng: 'zh', resources: { zh } })
+ const log = {
+ ...entry,
+ actor_role: role,
+ other: {
+ admin_info: { admin_username: 'literal-name', admin_role: role },
+ op: { action: 'channel.update', params: { id: 42, name: 'batch' } },
+ },
+ }
+ render(
+
+
+
+ )
+ await userEvent.click(screen.getByRole('button', { name: '详情' }))
+ const dialog = await screen.findByRole('dialog', { name: '日志详情' })
+ expect(within(dialog).getByText(label)).toBeVisible()
+ expect(within(dialog).getByText('literal-name (ID: 1)')).toBeVisible()
+})
+
+it('uses the returned authentication method for personal access records', async () => {
+ const { dialog } = await openDetails({
+ ...entry,
+ auth_method: 'access_token',
+ })
+ expect(within(dialog).getByText('Access Token')).toBeVisible()
+ expect(within(dialog).queryByText('Session')).not.toBeInTheDocument()
+})
+
+async function openDetails(log: AuditLog = entry) {
+ render(
)
+ const trigger = screen.getByRole('button', { name: 'Details' })
+ trigger.focus()
+ await userEvent.keyboard('{Enter}')
+ return {
+ trigger,
+ dialog: await screen.findByRole('dialog', { name: 'Log Details' }),
+ }
+}
+
+it('renders the channel update as a readable summary and compact operation rows without JSON or empty token fields', async () => {
+ const { dialog } = await openDetails()
+ expect(
+ within(dialog).getByText('Updated channel batch (ID: 42)')
+ ).toBeVisible()
+ expect(
+ within(dialog).getByText('Field change details were not recorded')
+ ).toBeVisible()
+ expect(within(dialog).getByText('root')).toBeVisible()
+ expect(within(dialog).getByText('Session')).toBeVisible()
+ expect(within(dialog).getByText(userAgent)).toBeVisible()
+ expect(within(dialog).queryByText('Token identifier')).not.toBeInTheDocument()
+ expect(
+ within(dialog).queryByRole('button', { name: /Expand|Collapse/ })
+ ).not.toBeInTheDocument()
+ expect(dialog.querySelector('pre')).not.toBeInTheDocument()
+ expect(dialog).not.toHaveTextContent('changed_fields')
+})
+
+it('aligns every request field in the same label and value columns', async () => {
+ const { dialog } = await openDetails({
+ ...entry,
+ token_ref: 'token-fingerprint',
+ })
+ for (const label of [
+ 'Method',
+ 'HTTP',
+ 'IP',
+ 'Client',
+ 'Route',
+ 'Request ID',
+ 'Token identifier',
+ ]) {
+ const row = within(dialog).getByText(label, { exact: true }).parentElement
+ expect(row).toHaveClass(
+ 'grid',
+ 'grid-cols-[5.25rem_minmax(0,1fr)]',
+ 'sm:grid-cols-[7rem_minmax(0,1fr)]'
+ )
+ }
+})
+
+it('shows long values in full, copies the complete identifier, and restores focus when dismissed', async () => {
+ const user = userEvent.setup()
+ const writeText = vi
+ .spyOn(navigator.clipboard, 'writeText')
+ .mockResolvedValue()
+ const requestId = `request-${'x'.repeat(100)}`
+ const { trigger, dialog } = await openDetails({
+ ...entry,
+ request_id: requestId,
+ })
+ expect(within(dialog).getByText(requestId)).toBeVisible()
+ expect(within(dialog).getByText(requestId)).not.toHaveClass('truncate')
+ expect(
+ within(dialog).queryByRole('button', { name: /Expand|Collapse/ })
+ ).not.toBeInTheDocument()
+ await user.click(
+ within(dialog).getByRole('button', { name: 'Copy Request ID' })
+ )
+ expect(writeText).toHaveBeenCalledWith(requestId)
+ expect(within(dialog).getByText(userAgent)).toBeVisible()
+ await user.keyboard('{Escape}')
+ await waitFor(() =>
+ expect(screen.queryByRole('dialog')).not.toBeInTheDocument()
+ )
+ await waitFor(() => expect(trigger).toHaveFocus())
+})
+
+it.each([
+ [
+ 'channel.status_update',
+ { id: 42, status: 2, changed: false },
+ ['Disabled', 'No'],
+ ],
+ [
+ 'channel.status_update_batch',
+ { count: 0, total: 3, status: 1 },
+ ['Enabled', '0 / 3'],
+ ],
+ ['user.create', { username: 'alice', role: 10 }, ['admin', 'alice']],
+])(
+ 'formats known parameters for %s without losing zero or false',
+ async (action, params, values) => {
+ const { dialog } = await openDetails({
+ ...entry,
+ action,
+ other: { op: { action, params } },
+ })
+ for (const value of values) {
+ expect(
+ within(dialog)
+ .getAllByText(value)
+ .some((node) => node.textContent === value)
+ ).toBe(true)
+ }
+ }
+)
+
+it('translates changed field names and shows unknown nested metadata as readable fields', async () => {
+ const { dialog } = await openDetails({
+ ...entry,
+ other: {
+ op: {
+ action: 'channel.update',
+ params: {
+ id: 42,
+ name: 'batch',
+ changed_fields: ['models', 'group'],
+ custom: { attempts: 0, permitted: false },
+ },
+ },
+ },
+ })
+ expect(within(dialog).getByText('Models, Group')).toBeVisible()
+ expect(within(dialog).getByText('custom')).toBeVisible()
+ expect(
+ within(dialog).queryByRole('button', { name: 'custom' })
+ ).not.toBeInTheDocument()
+ expect(within(dialog).getByText('attempts')).toBeVisible()
+ expect(within(dialog).getByText('0')).toBeVisible()
+ expect(within(dialog).getByText('No')).toBeVisible()
+ expect(dialog).not.toHaveTextContent('[object Object]')
+ expect(dialog.querySelector('pre')).not.toBeInTheDocument()
+})
+
+it.each([null, undefined, '', '{broken', [], 42])(
+ 'preserves request details when metadata is missing or invalid (%s)',
+ async (other) => {
+ const { dialog } = await openDetails({
+ ...entry,
+ other: other as unknown as AuditLog['other'],
+ })
+ expect(within(dialog).getByText(entry.request_id)).toBeVisible()
+ expect(within(dialog).getByText(entry.ip)).toBeVisible()
+ expect(dialog).not.toHaveTextContent('{broken')
+ expect(dialog.querySelector('pre')).not.toBeInTheDocument()
+ }
+)
+
+it.each([
+ [
+ 'login',
+ 'login',
+ { method: 'password' },
+ 'Logged in successfully via Password',
+ ],
+ ['security', 'user.2fa_enable', {}, 'Enabled two-factor authentication'],
+ ['access_token', 'access_token.request', {}, 'Access Token'],
+])(
+ 'shows summary and result for %s records',
+ async (category, action, params, summary) => {
+ const { dialog } = await openDetails({
+ ...entry,
+ category,
+ action,
+ actor_role: 1,
+ content: '',
+ success: false,
+ status: 403,
+ other: { op: { action, params } },
+ })
+ expect(within(dialog).getAllByText(summary).length).toBeGreaterThan(0)
+ expect(within(dialog).getByText('Failed')).toBeVisible()
+ expect(within(dialog).getByText('403')).toBeVisible()
+ expect(within(dialog).queryByText('root')).not.toBeInTheDocument()
+ expect(within(dialog).getByText('user')).toBeVisible()
+ }
+)
diff --git a/web/src/features/usage-logs/audit/__tests__/viewer.test.tsx b/web/src/features/usage-logs/audit/__tests__/viewer.test.tsx
new file mode 100644
index 0000000000..b8931a8e9a
--- /dev/null
+++ b/web/src/features/usage-logs/audit/__tests__/viewer.test.tsx
@@ -0,0 +1,561 @@
+/*
+Copyright (C) 2023-2026 QuantumNous
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU Affero General Public License as
+published by the Free Software Foundation, either version 3 of the
+License, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU Affero General Public License for more details.
+
+You should have received a copy of the GNU Affero General Public License
+along with this program. If not, see
.
+
+For commercial licensing, please contact support@quantumnous.com
+*/
+import { QueryClient, QueryClientProvider } from '@tanstack/react-query'
+import {
+ cleanup,
+ fireEvent,
+ render,
+ screen,
+ waitFor,
+ within,
+} from '@testing-library/react'
+import userEvent from '@testing-library/user-event'
+import { AxiosError, type AxiosResponse } from 'axios'
+import { createInstance } from 'i18next'
+import { I18nextProvider } from 'react-i18next'
+import { afterEach, beforeEach, expect, it, vi } from 'vitest'
+
+import en from '@/i18n/locales/en.json'
+import fr from '@/i18n/locales/fr.json'
+import ja from '@/i18n/locales/ja.json'
+import ru from '@/i18n/locales/ru.json'
+import viLocale from '@/i18n/locales/vi.json'
+import zhTW from '@/i18n/locales/zh-TW.json'
+import zh from '@/i18n/locales/zh.json'
+import { api } from '@/lib/api'
+import { useAuthStore } from '@/stores/auth-store'
+
+import { AuditLogs } from '..'
+import { AuditLogViewer } from '../components/audit-log-viewer'
+
+it('uses the shared log toolbar and opens details in a keyboard-accessible dialog without expanding the row', async () => {
+ vi.spyOn(api, 'get').mockResolvedValue({
+ data: {
+ success: true,
+ data: {
+ total: 1,
+ items: [
+ {
+ event_id: 'request-1',
+ created_at: 1788600600,
+ username: 'alice',
+ category: 'access_token',
+ action: 'access_token.request',
+ content: '',
+ other: {},
+ request_id: 'audit-request-42',
+ token_ref: 'a'.repeat(64),
+ user_agent: 'Browser client with a long version description',
+ method: 'GET',
+ route: '/api/user/self',
+ ip: '127.0.0.1',
+ status: 200,
+ success: true,
+ },
+ ],
+ },
+ },
+ })
+ renderViewer()
+ expect(screen.getByRole('button', { name: 'Date Range' })).toBeVisible()
+ expect(screen.getByRole('button', { name: 'Search' })).toBeVisible()
+ expect(
+ await screen.findByRole('button', { name: 'Go to next page' })
+ ).toBeDisabled()
+ const trigger = await screen.findByRole('button', { name: 'Details' })
+ const row = screen.getByRole('row', { name: /127.0.0.1/ })
+ const clientCell = within(row).getByRole('cell', {
+ name: 'Browser client with a long version description',
+ })
+ expect(clientCell.querySelector('.truncate')).toBeInTheDocument()
+ expect(row.querySelector('details')).not.toBeInTheDocument()
+ trigger.focus()
+ await userEvent.keyboard('{Enter}')
+ const dialog = await screen.findByRole('dialog', { name: 'Log Details' })
+ expect(within(dialog).getByText('audit-request-42')).toBeVisible()
+ expect(
+ within(dialog).getByText('Browser client with a long version description')
+ ).toBeVisible()
+ await userEvent.keyboard('{Escape}')
+ await waitFor(() =>
+ expect(screen.queryByRole('dialog')).not.toBeInTheDocument()
+ )
+ await waitFor(() => expect(trigger).toHaveFocus())
+})
+
+it.each([
+ [
+ 'en',
+ en,
+ 'Updated channel status (ID: 42)',
+ 'Batch updated channel status (1/2 changed)',
+ ],
+ ['zh', zh, '更新渠道状态(ID: 42)', '批量更新渠道状态(1/2 个已变更)'],
+ ['zh-TW', zhTW, '更新渠道狀態(ID: 42)', '批次更新渠道狀態(1/2 個已變更)'],
+ [
+ 'fr',
+ fr,
+ 'Statut du canal mis à jour (ID : 42)',
+ 'Statuts des canaux mis à jour par lot (1/2 modifiés)',
+ ],
+ [
+ 'ja',
+ ja,
+ 'チャネルの状態を更新(ID: 42)',
+ 'チャネルの状態を一括更新(1/2 件変更)',
+ ],
+ [
+ 'ru',
+ ru,
+ 'Обновлён статус канала (ID: 42)',
+ 'Массовое обновление статусов каналов (изменено: 1/2)',
+ ],
+ [
+ 'vi',
+ viLocale,
+ 'Đã cập nhật trạng thái kênh (ID: 42)',
+ 'Đã cập nhật trạng thái kênh hàng loạt (1/2 đã thay đổi)',
+ ],
+] as const)(
+ 'renders existing channel status audit records in %s',
+ async (locale, resources, single, batch) => {
+ const i18n = createInstance()
+ await i18n.init({
+ lng: locale,
+ fallbackLng: false,
+ resources: { [locale]: resources },
+ })
+ const client = new QueryClient({
+ defaultOptions: { queries: { retry: false } },
+ })
+ vi.spyOn(api, 'get').mockResolvedValue({
+ data: {
+ success: true,
+ data: {
+ total: 2,
+ items: [
+ {
+ event_id: 'single-status',
+ created_at: 0,
+ username: 'alice',
+ action: 'channel.status_update',
+ content: 'channel.status_update',
+ other: {
+ op: {
+ action: 'channel.status_update',
+ params: { id: 42, status: 2, changed: true },
+ },
+ },
+ },
+ {
+ event_id: 'batch-status',
+ created_at: 0,
+ username: 'alice',
+ action: 'channel.status_update_batch',
+ content: 'channel.status_update_batch',
+ other: {
+ op: {
+ action: 'channel.status_update_batch',
+ params: { count: 1, total: 2, status: 1 },
+ },
+ },
+ },
+ ],
+ },
+ },
+ })
+ render(
+
+
+
+
+
+ )
+ expect(await screen.findByRole('cell', { name: single })).toBeVisible()
+ expect(screen.getByRole('cell', { name: batch })).toBeVisible()
+ expect(
+ screen.queryByRole('cell', { name: 'channel.status_update' })
+ ).not.toBeInTheDocument()
+ expect(
+ screen.queryByRole('cell', { name: 'channel.status_update_batch' })
+ ).not.toBeInTheDocument()
+ }
+)
+
+beforeEach(() => {
+ vi.stubGlobal('localStorage', {
+ getItem: () => null,
+ setItem: () => undefined,
+ removeItem: () => undefined,
+ })
+})
+afterEach(() => {
+ cleanup()
+ useAuthStore.getState().auth.reset()
+ vi.restoreAllMocks()
+ vi.unstubAllGlobals()
+})
+function renderViewer(scope: 'all' | 'self' = 'self') {
+ const client = new QueryClient({
+ defaultOptions: { queries: { retry: false } },
+ })
+ render(
+
+
+
+ )
+}
+
+it('filters own access history by result, generation and time and resets pagination', async () => {
+ const get = vi.spyOn(api, 'get').mockResolvedValue({
+ data: { success: true, data: { items: [], total: 45 } },
+ })
+ renderViewer()
+ const user = userEvent.setup()
+ await waitFor(() =>
+ expect(
+ screen.getByRole('button', { name: 'Go to next page' })
+ ).toBeEnabled()
+ )
+ await user.click(screen.getByRole('button', { name: 'Go to next page' }))
+ await waitFor(() =>
+ expect(get).toHaveBeenLastCalledWith('/api/audit/self', {
+ params: expect.objectContaining({ p: 2, category: 'access_token' }),
+ })
+ )
+ await user.click(screen.getByRole('combobox', { name: 'Result' }))
+ await user.click(await screen.findByRole('option', { name: 'Failed' }))
+ await user.click(screen.getByRole('combobox', { name: 'Token scope' }))
+ await user.click(
+ await screen.findByRole('option', { name: 'Historical tokens' })
+ )
+ await user.click(screen.getByRole('button', { name: 'Date Range' }))
+ fireEvent.change(screen.getByLabelText('Start Time'), {
+ target: { value: '2026-09-01T12:00' },
+ })
+ await user.click(screen.getByRole('button', { name: 'Confirm' }))
+ await waitFor(() =>
+ expect(get).toHaveBeenLastCalledWith('/api/audit/self', {
+ params: expect.objectContaining({
+ p: 1,
+ success: 'false',
+ exclude_token_ref: 'a'.repeat(64),
+ start_timestamp: expect.any(Number),
+ }),
+ })
+ )
+ await user.click(screen.getByRole('combobox', { name: 'Token scope' }))
+ await user.click(await screen.findByRole('option', { name: 'Current token' }))
+ await waitFor(() =>
+ expect(get).toHaveBeenLastCalledWith('/api/audit/self', {
+ params: expect.objectContaining({ token_ref: 'a'.repeat(64) }),
+ })
+ )
+ expect(screen.queryByLabelText('Username')).not.toBeInTheDocument()
+ expect(screen.getByRole('table').style.minWidth).toMatch(/max\(100%, \d+px\)/)
+})
+
+it('a failed history query exposes retry and no empty history claim', async () => {
+ vi.spyOn(api, 'get')
+ .mockRejectedValueOnce(new Error('offline'))
+ .mockResolvedValue({
+ data: { success: true, data: { items: [], total: 0 } },
+ })
+ renderViewer()
+ expect(await screen.findByRole('alert')).toHaveTextContent(
+ 'Failed to load audit records'
+ )
+ expect(screen.queryByText('No records')).not.toBeInTheDocument()
+ await userEvent.click(screen.getByRole('button', { name: 'Retry' }))
+ expect(await screen.findByText('No records')).toBeVisible()
+})
+
+it('administrator scope uses the admin endpoint and exposes the username filter', async () => {
+ const get = vi.spyOn(api, 'get').mockResolvedValue({
+ data: { success: true, data: { items: [], total: 0 } },
+ })
+ renderViewer('all')
+ await userEvent.click(screen.getByRole('button', { name: 'Expand' }))
+ fireEvent.change(screen.getByLabelText('Username'), {
+ target: { value: 'alice' },
+ })
+ await waitFor(() =>
+ expect(get).toHaveBeenLastCalledWith('/api/audit', {
+ params: expect.objectContaining({ username: 'alice' }),
+ })
+ )
+})
+
+it('changing rows per page resets pagination and sends the selected page size', async () => {
+ const get = vi.spyOn(api, 'get').mockResolvedValue({
+ data: { success: true, data: { items: [], total: 80 } },
+ })
+ renderViewer()
+ const user = userEvent.setup()
+ await waitFor(() =>
+ expect(
+ screen.getByRole('button', { name: 'Go to next page' })
+ ).toBeEnabled()
+ )
+ await user.click(screen.getByRole('button', { name: 'Go to next page' }))
+ await waitFor(() =>
+ expect(get).toHaveBeenLastCalledWith('/api/audit/self', {
+ params: expect.objectContaining({ p: 2 }),
+ })
+ )
+ await user.click(screen.getByRole('combobox', { name: '' }))
+ await user.click(await screen.findByRole('option', { name: '50' }))
+ await waitFor(() =>
+ expect(get).toHaveBeenLastCalledWith('/api/audit/self', {
+ params: expect.objectContaining({ p: 1, page_size: 50 }),
+ })
+ )
+})
+
+it.each([10, 100])(
+ 'role %i defaults to all audit records and can switch both ways',
+ async (role) => {
+ useAuthStore.getState().auth.setUser({
+ id: 1,
+ username: 'admin',
+ role,
+ permissions: { admin_permissions: { audit: { read: role === 10 } } },
+ })
+ const get = vi.spyOn(api, 'get').mockResolvedValue({
+ data: { success: true, data: { items: [], total: 0 } },
+ })
+ const client = new QueryClient({
+ defaultOptions: { queries: { retry: false } },
+ })
+ render(
+
+
+
+ )
+ expect(screen.getByRole('tab', { name: 'All' })).toHaveAttribute(
+ 'aria-selected',
+ 'true'
+ )
+ await waitFor(() =>
+ expect(get).toHaveBeenCalledWith('/api/audit', expect.anything())
+ )
+ expect(get).not.toHaveBeenCalledWith('/api/audit/self', expect.anything())
+ await userEvent.click(screen.getByRole('tab', { name: 'Only Mine' }))
+ await waitFor(() =>
+ expect(get).toHaveBeenLastCalledWith('/api/audit/self', expect.anything())
+ )
+ expect(screen.getByRole('tab', { name: 'Only Mine' })).toHaveAttribute(
+ 'aria-selected',
+ 'true'
+ )
+ await userEvent.click(screen.getByRole('tab', { name: 'All' }))
+ await waitFor(() =>
+ expect(get).toHaveBeenLastCalledWith('/api/audit', expect.anything())
+ )
+ expect(screen.getByRole('tab', { name: 'All' })).toHaveAttribute(
+ 'aria-selected',
+ 'true'
+ )
+ }
+)
+
+it.each([1, 10])(
+ 'role %i without an audit grant queries only its own records without scope tabs',
+ async (role) => {
+ useAuthStore.getState().auth.setUser({ id: 2, username: 'alice', role })
+ const get = vi.spyOn(api, 'get').mockResolvedValue({
+ data: { success: true, data: { items: [], total: 0 } },
+ })
+ const client = new QueryClient({
+ defaultOptions: { queries: { retry: false } },
+ })
+ render(
+
+
+
+ )
+ await waitFor(() =>
+ expect(get).toHaveBeenCalledWith('/api/audit/self', expect.anything())
+ )
+ expect(get).not.toHaveBeenCalledWith('/api/audit', expect.anything())
+ expect(
+ screen.queryByRole('tablist', { name: 'View scope' })
+ ).not.toBeInTheDocument()
+ expect(screen.queryByRole('tab', { name: 'All' })).not.toBeInTheDocument()
+ }
+)
+
+it('clears global records and open details on revocation, falls back to self, and refreshes permissions', async () => {
+ const admin = {
+ id: 1,
+ username: 'admin',
+ role: 10,
+ permissions: { admin_permissions: { audit: { read: true } } },
+ }
+ useAuthStore.getState().auth.setUser(admin)
+ const client = new QueryClient({
+ defaultOptions: { queries: { retry: false } },
+ })
+ const forbidden = new AxiosError(
+ 'Forbidden',
+ 'ERR_BAD_REQUEST',
+ undefined,
+ undefined,
+ { status: 403 } as AxiosResponse
+ )
+ let revoked = false
+ const get = vi.spyOn(api, 'get').mockImplementation(async (url) => {
+ if (url === '/api/user/self') {
+ return {
+ data: {
+ success: true,
+ data: {
+ ...admin,
+ permissions: { admin_permissions: { audit: { read: false } } },
+ },
+ },
+ }
+ }
+ if (url === '/api/audit' && revoked) throw forbidden
+ return {
+ data: {
+ success: true,
+ data: {
+ total: url === '/api/audit' ? 1 : 0,
+ items:
+ url === '/api/audit'
+ ? [
+ {
+ event_id: 'private-event',
+ user_id: 2,
+ username: 'other-account',
+ actor_role: 10,
+ created_at: 1788600600,
+ category: 'operation',
+ action: 'channel.update',
+ content: 'Private operation',
+ other: {},
+ request_id: 'private-request',
+ token_ref: '',
+ user_agent: '',
+ method: 'PUT',
+ route: '/api/channel/',
+ ip: '',
+ status: 200,
+ success: true,
+ },
+ ]
+ : [],
+ },
+ },
+ }
+ })
+ client.setQueryData(['audit', 99, 'all'], { items: ['separate-session'] })
+ render(
+
+
+
+ )
+ await screen.findByText('other-account')
+ await userEvent.click(screen.getByRole('button', { name: 'Details' }))
+ expect(
+ await screen.findByRole('dialog', { name: 'Log Details' })
+ ).toBeVisible()
+ revoked = true
+ await client.invalidateQueries({ queryKey: ['audit', 1, 'all'] })
+ await waitFor(() =>
+ expect(screen.queryByRole('dialog')).not.toBeInTheDocument()
+ )
+ await waitFor(() =>
+ expect(get).toHaveBeenCalledWith('/api/audit/self', expect.anything())
+ )
+ await waitFor(() => expect(get).toHaveBeenCalledWith('/api/user/self'))
+ expect(screen.queryByText('other-account')).not.toBeInTheDocument()
+ expect(screen.queryByRole('tab', { name: 'All' })).not.toBeInTheDocument()
+ expect(client.getQueriesData({ queryKey: ['audit', 1, 'all'] })).toHaveLength(
+ 0
+ )
+ expect(client.getQueryData(['audit', 99, 'all'])).toEqual({
+ items: ['separate-session'],
+ })
+ expect(
+ useAuthStore.getState().auth.user?.permissions?.admin_permissions?.audit
+ .read
+ ).toBe(false)
+})
+
+it('mobile access history keeps pagination visible and puts result filters in a drawer', async () => {
+ const pointerCapture = Object.getOwnPropertyDescriptor(
+ HTMLElement.prototype,
+ 'setPointerCapture'
+ )
+ // JSDOM does not implement the pointer-capture API used by the mobile drawer.
+ Object.defineProperty(HTMLElement.prototype, 'setPointerCapture', {
+ configurable: true,
+ value: () => undefined,
+ })
+ try {
+ const matchMedia = window.matchMedia.bind(window)
+ vi.spyOn(window, 'matchMedia').mockImplementation((query) => ({
+ ...matchMedia(query),
+ matches: query === '(max-width: 640px)',
+ }))
+ const get = vi.spyOn(api, 'get').mockResolvedValue({
+ data: { success: true, data: { items: [], total: 0 } },
+ })
+ renderViewer()
+ const user = userEvent.setup()
+ expect(
+ screen.getByRole('button', { name: 'Go to next page' })
+ ).toBeVisible()
+ expect(
+ screen.queryByRole('combobox', { name: 'Result' })
+ ).not.toBeInTheDocument()
+ await user.click(screen.getByRole('button', { name: 'Filter' }))
+ const drawer = await screen.findByRole('dialog', { name: 'Filter' })
+ await user.click(within(drawer).getByRole('combobox', { name: 'Result' }))
+ await user.click(await screen.findByRole('option', { name: 'Failed' }))
+ await waitFor(() =>
+ expect(get).toHaveBeenLastCalledWith('/api/audit/self', {
+ params: expect.objectContaining({ success: 'false', p: 1 }),
+ })
+ )
+ await user.click(within(drawer).getByRole('button', { name: 'Search' }))
+ await waitFor(() =>
+ expect(screen.queryByRole('dialog')).not.toBeInTheDocument()
+ )
+ expect(
+ screen.getByRole('button', { name: 'Go to next page' })
+ ).toBeVisible()
+ } finally {
+ if (pointerCapture) {
+ Object.defineProperty(
+ HTMLElement.prototype,
+ 'setPointerCapture',
+ pointerCapture
+ )
+ } else {
+ Reflect.deleteProperty(HTMLElement.prototype, 'setPointerCapture')
+ }
+ }
+})
diff --git a/web/src/features/usage-logs/audit/api.ts b/web/src/features/usage-logs/audit/api.ts
new file mode 100644
index 0000000000..adf0644719
--- /dev/null
+++ b/web/src/features/usage-logs/audit/api.ts
@@ -0,0 +1,65 @@
+/*
+Copyright (C) 2023-2026 QuantumNous
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU Affero General Public License as
+published by the Free Software Foundation, either version 3 of the
+License, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU Affero General Public License for more details.
+
+You should have received a copy of the GNU Affero General Public License
+along with this program. If not, see
.
+
+For commercial licensing, please contact support@quantumnous.com
+*/
+import type { ApiResponse } from '@/features/profile/types'
+import { api } from '@/lib/api'
+
+export interface AuditLog {
+ event_id: string
+ user_id: number
+ username: string
+ actor_role: number
+ created_at: number
+ category: string
+ action: string
+ token_ref: string
+ auth_method?: string
+ ip: string
+ user_agent: string
+ method: string
+ route: string
+ status: number
+ success: boolean
+ request_id: string
+ content: string
+ other: Record
| null
+}
+export interface AuditFilters {
+ p: number
+ page_size: number
+ start_timestamp?: number
+ end_timestamp?: number
+ success?: string
+ category?: string
+ token_ref?: string
+ exclude_token_ref?: string
+ username?: string
+ request_id?: string
+}
+export async function getAuditLogs(
+ scope: 'all' | 'self',
+ params: AuditFilters
+): Promise<{ items: AuditLog[]; total: number }> {
+ const response = await api.get<
+ ApiResponse<{ items: AuditLog[]; total: number }>
+ >(scope === 'all' ? '/api/audit' : '/api/audit/self', { params })
+ if (!response.data.success || !response.data.data) {
+ throw new Error(response.data.message || 'Failed to load audit records')
+ }
+ return response.data.data
+}
diff --git a/web/src/features/usage-logs/audit/components/audit-detail-fields.tsx b/web/src/features/usage-logs/audit/components/audit-detail-fields.tsx
new file mode 100644
index 0000000000..34a44f84e8
--- /dev/null
+++ b/web/src/features/usage-logs/audit/components/audit-detail-fields.tsx
@@ -0,0 +1,63 @@
+/*
+Copyright (C) 2023-2026 QuantumNous
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU Affero General Public License as
+published by the Free Software Foundation, either version 3 of the
+License, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU Affero General Public License for more details.
+
+You should have received a copy of the GNU Affero General Public License
+along with this program. If not, see .
+
+For commercial licensing, please contact support@quantumnous.com
+*/
+import { useTranslation } from 'react-i18next'
+
+import { DetailRow } from '../../components/dialogs/log-detail-layout'
+import { auditFieldLabel, isAuditDetailObject } from '../lib/audit-details'
+import { AuditDetailValue } from './audit-detail-value'
+
+export function AuditDetailFields(props: {
+ fields: { label: string; value: unknown }[]
+}) {
+ const { t } = useTranslation()
+ return props.fields.map((field) => {
+ const value = field.value
+ if (value === null || value === undefined || value === '') return null
+ if (isAuditDetailObject(value) || Array.isArray(value)) {
+ const entries = Array.isArray(value)
+ ? value.map((item, i) => [String(i + 1), item] as const)
+ : Object.entries(value)
+ if (!entries.length) return null
+ return (
+
+
+ {field.label}
+
+
+
({
+ label: auditFieldLabel(key, t),
+ value: item,
+ }))}
+ />
+
+
+ )
+ }
+ let text = String(value)
+ if (typeof value === 'boolean') text = value ? t('Yes') : t('No')
+ return (
+ }
+ />
+ )
+ })
+}
diff --git a/web/src/features/usage-logs/audit/components/audit-detail-value.tsx b/web/src/features/usage-logs/audit/components/audit-detail-value.tsx
new file mode 100644
index 0000000000..80809b3aa7
--- /dev/null
+++ b/web/src/features/usage-logs/audit/components/audit-detail-value.tsx
@@ -0,0 +1,51 @@
+/*
+Copyright (C) 2023-2026 QuantumNous
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU Affero General Public License as
+published by the Free Software Foundation, either version 3 of the
+License, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU Affero General Public License for more details.
+
+You should have received a copy of the GNU Affero General Public License
+along with this program. If not, see .
+
+For commercial licensing, please contact support@quantumnous.com
+*/
+import { useTranslation } from 'react-i18next'
+
+import { CopyButton } from '@/components/copy-button'
+import { cn } from '@/lib/utils'
+
+export function AuditDetailValue(props: {
+ label: string
+ value: string
+ mono?: boolean
+ copyable?: boolean
+}) {
+ const { t } = useTranslation()
+ return (
+
+
+ {props.value}
+
+ {(props.copyable || props.value.length > 48) && (
+
+ )}
+
+ )
+}
diff --git a/web/src/features/usage-logs/audit/components/audit-log-columns.tsx b/web/src/features/usage-logs/audit/components/audit-log-columns.tsx
new file mode 100644
index 0000000000..806a957eae
--- /dev/null
+++ b/web/src/features/usage-logs/audit/components/audit-log-columns.tsx
@@ -0,0 +1,149 @@
+/*
+Copyright (C) 2023-2026 QuantumNous
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU Affero General Public License as
+published by the Free Software Foundation, either version 3 of the
+License, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU Affero General Public License for more details.
+
+You should have received a copy of the GNU Affero General Public License
+along with this program. If not, see .
+
+For commercial licensing, please contact support@quantumnous.com
+*/
+import type { ColumnDef } from '@tanstack/react-table'
+import { useMemo } from 'react'
+import { useTranslation } from 'react-i18next'
+
+import { TruncatedCell } from '@/components/data-table'
+import { StatusBadge } from '@/components/status-badge'
+import dayjs from '@/lib/dayjs'
+
+import type { AuditLog } from '../api'
+import { buildAuditDetails } from '../lib/audit-details'
+import { AuditLogDetailsDialog } from './audit-log-details-dialog'
+
+export function useAuditLogColumns(
+ accessOnly?: boolean
+): ColumnDef[] {
+ const { t } = useTranslation()
+ return useMemo(() => {
+ const columns: ColumnDef[] = [
+ {
+ accessorKey: 'created_at',
+ header: t('Time'),
+ size: 180,
+ cell: ({ row }) => (
+
+ {dayjs.unix(row.original.created_at).format('YYYY-MM-DD HH:mm:ss')}
+
+ ),
+ meta: { label: t('Time'), mobileTitle: true },
+ },
+ ]
+ if (!accessOnly) {
+ columns.push(
+ {
+ accessorKey: 'username',
+ header: t('Username'),
+ size: 100,
+ meta: { label: t('Username') },
+ },
+ {
+ id: 'event',
+ header: t('Event'),
+ size: 260,
+ accessorFn: (entry) => buildAuditDetails(entry, t).summary,
+ cell: ({ getValue }) => (
+
+ {getValue()}
+
+ ),
+ meta: { label: t('Event') },
+ }
+ )
+ }
+ columns.push(
+ {
+ accessorKey: 'ip',
+ header: 'IP',
+ size: 120,
+ cell: ({ row }) => (
+ {row.original.ip || '—'}
+ ),
+ meta: { label: 'IP' },
+ },
+ {
+ accessorKey: 'user_agent',
+ header: t('Client'),
+ size: 180,
+ cell: ({ row }) => (
+
+ {row.original.user_agent || '—'}
+
+ ),
+ meta: { label: t('Client'), mobileHidden: true },
+ },
+ {
+ accessorKey: 'method',
+ header: t('Method'),
+ size: 76,
+ cell: ({ row }) => (
+
+ {row.original.method || '—'}
+
+ ),
+ meta: { label: t('Method') },
+ },
+ {
+ accessorKey: 'route',
+ header: t('Route'),
+ size: 220,
+ cell: ({ row }) => (
+
+ {row.original.route || '—'}
+
+ ),
+ meta: { label: t('Route') },
+ },
+ {
+ accessorKey: 'status',
+ header: 'HTTP',
+ size: 60,
+ cell: ({ row }) => (
+
+ {row.original.status || '—'}
+
+ ),
+ meta: { label: 'HTTP' },
+ },
+ {
+ accessorKey: 'success',
+ header: t('Result'),
+ size: 82,
+ cell: ({ row }) => (
+
+ ),
+ meta: { label: t('Result'), mobileBadge: true },
+ },
+ {
+ id: 'details',
+ header: t('Details'),
+ size: 70,
+ enableHiding: false,
+ cell: ({ row }) => ,
+ meta: { label: t('Details') },
+ }
+ )
+ return columns
+ }, [accessOnly, t])
+}
diff --git a/web/src/features/usage-logs/audit/components/audit-log-details-dialog.tsx b/web/src/features/usage-logs/audit/components/audit-log-details-dialog.tsx
new file mode 100644
index 0000000000..1ec8b2116a
--- /dev/null
+++ b/web/src/features/usage-logs/audit/components/audit-log-details-dialog.tsx
@@ -0,0 +1,165 @@
+/*
+Copyright (C) 2023-2026 QuantumNous
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU Affero General Public License as
+published by the Free Software Foundation, either version 3 of the
+License, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU Affero General Public License for more details.
+
+You should have received a copy of the GNU Affero General Public License
+along with this program. If not, see .
+
+For commercial licensing, please contact support@quantumnous.com
+*/
+import { useTranslation } from 'react-i18next'
+
+import { Dialog } from '@/components/dialog'
+import { StatusBadge } from '@/components/status-badge'
+import { Button } from '@/components/ui/button'
+import dayjs from '@/lib/dayjs'
+
+import {
+ DetailRow,
+ DetailSection,
+} from '../../components/dialogs/log-detail-layout'
+import type { AuditLog } from '../api'
+import { auditFieldLabel, buildAuditDetails } from '../lib/audit-details'
+import { AuditDetailFields } from './audit-detail-fields'
+import { AuditDetailValue } from './audit-detail-value'
+
+export function AuditLogDetailsDialog(props: { entry: AuditLog }) {
+ const { t } = useTranslation()
+ const detail = buildAuditDetails(props.entry, t)
+ const identifiers = [
+ { label: t('Route'), value: props.entry.route },
+ { label: t('Request ID'), value: props.entry.request_id },
+ { label: t('Token identifier'), value: props.entry.token_ref },
+ ].filter((field) => !!field.value)
+ const hasOperation =
+ detail.actor ||
+ detail.target ||
+ detail.authentication ||
+ detail.fields.length ||
+ detail.metadataUnavailable
+ const hasRequest = Boolean(
+ props.entry.method ||
+ props.entry.status ||
+ props.entry.ip ||
+ props.entry.user_agent ||
+ identifiers.length
+ )
+ return (
+
+ {t('Details')}
+
+ }
+ contentClassName='min-w-0 sm:max-w-lg max-sm:max-h-[calc(100dvh-1.5rem)] max-sm:w-[calc(100vw-1.5rem)] max-sm:max-w-[calc(100vw-1.5rem)]'
+ titleClassName='text-base'
+ contentHeight='auto'
+ bodyClassName='space-y-3'
+ >
+
+
+ {detail.summary}
+
+
+
+ {Number.isFinite(props.entry.created_at) && (
+
+ {dayjs.unix(props.entry.created_at).format('YYYY-MM-DD HH:mm:ss')}
+
+ )}
+
+
+ {hasOperation && (
+
+ {detail.actor && (
+
+ )}
+ {detail.actorRole && (
+
+ )}
+ {detail.target && (
+
+ )}
+ {detail.authentication && (
+
+ )}
+
+ {detail.metadataUnavailable && (
+
+ {t('Audit metadata is unavailable')}
+
+ )}
+
+ )}
+ {hasRequest && (
+
+ {props.entry.method && (
+
+ )}
+ {!!props.entry.status && (
+
+ )}
+ {props.entry.ip && (
+
+ )}
+ {props.entry.user_agent && (
+
+ }
+ />
+ )}
+ {identifiers.map((field) => (
+
+ }
+ />
+ ))}
+
+ )}
+ {!!Object.keys(detail.extra).length && (
+
+ ({
+ label: auditFieldLabel(key, t),
+ value,
+ }))}
+ />
+
+ )}
+
+ )
+}
diff --git a/web/src/features/usage-logs/audit/components/audit-log-filter-bar.tsx b/web/src/features/usage-logs/audit/components/audit-log-filter-bar.tsx
new file mode 100644
index 0000000000..367e6637d8
--- /dev/null
+++ b/web/src/features/usage-logs/audit/components/audit-log-filter-bar.tsx
@@ -0,0 +1,249 @@
+/*
+Copyright (C) 2023-2026 QuantumNous
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU Affero General Public License as
+published by the Free Software Foundation, either version 3 of the
+License, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU Affero General Public License for more details.
+
+You should have received a copy of the GNU Affero General Public License
+along with this program. If not, see .
+
+For commercial licensing, please contact support@quantumnous.com
+*/
+import type { Table } from '@tanstack/react-table'
+import { useTranslation } from 'react-i18next'
+
+import {
+ Select,
+ SelectContent,
+ SelectGroup,
+ SelectItem,
+ SelectTrigger,
+ SelectValue,
+} from '@/components/ui/select'
+
+import { CompactDateTimeRangePicker } from '../../components/compact-date-time-range-picker'
+import {
+ LogsFilterField,
+ LogsFilterInput,
+ LogsFilterToolbar,
+} from '../../components/logs-filter-toolbar'
+import type { AuditFilters, AuditLog } from '../api'
+
+function AuditFilterSelect(props: {
+ label: string
+ value: string
+ options: { value: string; label: string; disabled?: boolean }[]
+ onChange: (value: string) => void
+}) {
+ return (
+
+ {
+ if (value !== null) props.onChange(value)
+ }}
+ >
+
+
+
+
+
+ {props.options.map((option) => (
+
+ {option.label}
+
+ ))}
+
+
+
+
+ )
+}
+
+export function AuditLogFilterBar(props: {
+ table: Table
+ filters: AuditFilters
+ onChange: (patch: Partial) => void
+ scope: 'all' | 'self'
+ accessOnly?: boolean
+ tokenScope: string
+ currentTokenRef?: string
+ onTokenScopeChange: (value: string) => void
+ isFetching: boolean
+ onSearch: () => void
+ onReset: () => void
+}) {
+ const { t } = useTranslation()
+ const dateFilter = (
+
+
+ props.onChange({
+ start_timestamp: start
+ ? Math.floor(start.getTime() / 1000)
+ : undefined,
+ end_timestamp: end ? Math.floor(end.getTime() / 1000) : undefined,
+ })
+ }
+ />
+
+ )
+ const mainFilters = (
+ <>
+
+ props.onChange({ success: value === 'all' ? undefined : value })
+ }
+ />
+ {props.accessOnly ? (
+
+ ) : (
+
+ props.onChange({ category: value === 'all' ? undefined : value })
+ }
+ />
+ )}
+ >
+ )
+ const advancedFilters =
+ !props.accessOnly || props.scope === 'all' ? (
+ <>
+ {!props.accessOnly && (
+ <>
+
+
+ props.onChange({ token_ref: event.target.value || undefined })
+ }
+ />
+
+
+
+ props.onChange({
+ request_id: event.target.value || undefined,
+ })
+ }
+ />
+
+ >
+ )}
+ {props.scope === 'all' && (
+
+
+ props.onChange({ username: event.target.value || undefined })
+ }
+ />
+
+ )}
+ >
+ ) : undefined
+ const advancedCount = [
+ props.filters.token_ref,
+ props.filters.request_id,
+ props.filters.username,
+ ].filter(Boolean).length
+ const filterCount =
+ advancedCount +
+ [
+ props.filters.success,
+ props.filters.category,
+ props.tokenScope !== 'all',
+ ].filter(Boolean).length
+ const hasFilters =
+ filterCount > 0 ||
+ props.filters.start_timestamp !== undefined ||
+ props.filters.end_timestamp !== undefined
+ return (
+
+ {dateFilter}
+ {mainFilters}
+ >
+ }
+ advancedFilters={advancedFilters}
+ mobilePinnedFilters={dateFilter}
+ mobileFilters={
+ <>
+ {mainFilters}
+ {advancedFilters}
+ >
+ }
+ mobileFilterCount={filterCount}
+ advancedFilterCount={advancedCount}
+ hasActiveFilters={hasFilters}
+ hasAdvancedActiveFilters={advancedCount > 0}
+ searchLoading={props.isFetching}
+ onSearch={props.onSearch}
+ onReset={props.onReset}
+ />
+ )
+}
diff --git a/web/src/features/usage-logs/audit/components/audit-log-viewer.tsx b/web/src/features/usage-logs/audit/components/audit-log-viewer.tsx
new file mode 100644
index 0000000000..b3bb6b4d97
--- /dev/null
+++ b/web/src/features/usage-logs/audit/components/audit-log-viewer.tsx
@@ -0,0 +1,171 @@
+/*
+Copyright (C) 2023-2026 QuantumNous
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU Affero General Public License as
+published by the Free Software Foundation, either version 3 of the
+License, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU Affero General Public License for more details.
+
+You should have received a copy of the GNU Affero General Public License
+along with this program. If not, see .
+
+For commercial licensing, please contact support@quantumnous.com
+*/
+import { useQuery } from '@tanstack/react-query'
+import { isAxiosError } from 'axios'
+import { useEffect, useState } from 'react'
+import { useTranslation } from 'react-i18next'
+
+import { DataTablePage, useDataTable } from '@/components/data-table'
+import { Alert, AlertDescription } from '@/components/ui/alert'
+import { Button } from '@/components/ui/button'
+import { useAuthStore } from '@/stores/auth-store'
+
+import { getAuditLogs, type AuditFilters, type AuditLog } from '../api'
+import { useAuditLogColumns } from './audit-log-columns'
+import { AuditLogFilterBar } from './audit-log-filter-bar'
+
+const EMPTY_LOGS: AuditLog[] = []
+
+export function AuditLogViewer(props: {
+ scope: 'all' | 'self'
+ accessOnly?: boolean
+ currentTokenRef?: string
+ onAccessDenied?: () => Promise
+}) {
+ const { t } = useTranslation()
+ const userId = useAuthStore((state) => state.auth.user?.id)
+ const [filters, setFilters] = useState({ p: 1, page_size: 20 })
+ const [tokenScope, setTokenScope] = useState('all')
+ const params = { ...filters }
+ if (props.accessOnly) params.category = 'access_token'
+ if (tokenScope === 'current') params.token_ref = props.currentTokenRef
+ if (tokenScope === 'historical') {
+ params.exclude_token_ref = props.currentTokenRef
+ }
+ const canQuery =
+ tokenScope === 'all' ||
+ (props.currentTokenRef !== undefined &&
+ (tokenScope === 'historical' || !!props.currentTokenRef))
+ const invalidRange =
+ filters.start_timestamp !== undefined &&
+ filters.end_timestamp !== undefined &&
+ filters.start_timestamp > filters.end_timestamp
+ const query = useQuery({
+ queryKey: ['audit', userId, props.scope, params],
+ queryFn: () => getAuditLogs(props.scope, params),
+ enabled: canQuery && !invalidRange,
+ retry: false,
+ })
+ const accessDenied =
+ props.scope === 'all' &&
+ isAxiosError(query.error) &&
+ query.error.response?.status === 403
+ const onAccessDenied = props.onAccessDenied
+ useEffect(() => {
+ if (accessDenied) void onAccessDenied?.()
+ }, [accessDenied, onAccessDenied])
+ const columns = useAuditLogColumns(props.accessOnly)
+ const { table } = useDataTable({
+ columns,
+ data:
+ canQuery && !query.isError
+ ? (query.data?.items ?? EMPTY_LOGS)
+ : EMPTY_LOGS,
+ getRowId: (entry) => entry.event_id,
+ totalCount: query.isError ? 0 : (query.data?.total ?? 0),
+ pagination: { pageIndex: filters.p - 1, pageSize: filters.page_size },
+ onPaginationChange: (updater) => {
+ if (query.isFetching || query.isError || invalidRange || !canQuery) return
+ setFilters((previous) => {
+ const current = {
+ pageIndex: previous.p - 1,
+ pageSize: previous.page_size,
+ }
+ const next = typeof updater === 'function' ? updater(current) : updater
+ return {
+ ...previous,
+ p: next.pageSize === previous.page_size ? next.pageIndex + 1 : 1,
+ page_size: next.pageSize,
+ }
+ })
+ },
+ enableRowSelection: false,
+ enableSorting: false,
+ manualFiltering: true,
+ manualPagination: true,
+ })
+ const update = (patch: Partial) =>
+ setFilters((previous) => ({ ...previous, ...patch, p: 1 }))
+
+ return (
+
+
'py-2'}
+ tableClassName='[&_[data-slot=table]]:text-[13px] [&_[data-slot=table]_td]:text-[13px] [&_[data-slot=table]_td_*]:text-[13px] [&_[data-slot=table]_th]:text-[13px] [&_[data-slot=table]_th_*]:text-[13px]'
+ toolbar={
+
+
{
+ setTokenScope(value)
+ update({})
+ }}
+ isFetching={query.isFetching}
+ onSearch={() => {
+ if (!invalidRange && canQuery) void query.refetch()
+ }}
+ onReset={() => {
+ setTokenScope('all')
+ setFilters({ p: 1, page_size: filters.page_size })
+ }}
+ />
+ {invalidRange && (
+
+
+ {t('End time must be after start time')}
+
+
+ )}
+ {query.isError && (
+
+
+ {t('Failed to load audit records')}
+ void query.refetch()}
+ >
+ {t('Retry')}
+
+
+
+ )}
+
+ }
+ />
+
+ )
+}
diff --git a/web/src/features/usage-logs/audit/index.tsx b/web/src/features/usage-logs/audit/index.tsx
new file mode 100644
index 0000000000..9d5220c440
--- /dev/null
+++ b/web/src/features/usage-logs/audit/index.tsx
@@ -0,0 +1,126 @@
+/*
+Copyright (C) 2023-2026 QuantumNous
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU Affero General Public License as
+published by the Free Software Foundation, either version 3 of the
+License, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU Affero General Public License for more details.
+
+You should have received a copy of the GNU Affero General Public License
+along with this program. If not, see .
+
+For commercial licensing, please contact support@quantumnous.com
+*/
+import { useQueryClient } from '@tanstack/react-query'
+import { useCallback, useState } from 'react'
+import { useTranslation } from 'react-i18next'
+
+import { SectionPageLayout } from '@/components/layout'
+import { Tabs, TabsList, TabsTrigger } from '@/components/ui/tabs'
+import { getUserProfile } from '@/features/profile/api'
+import {
+ ADMIN_PERMISSION_RESOURCES,
+ ADMIN_PERMISSION_ACTIONS,
+ hasPermission,
+} from '@/lib/admin-permissions'
+import { ROLE } from '@/lib/roles'
+import { useAuthStore } from '@/stores/auth-store'
+
+import { AuditLogViewer } from './components/audit-log-viewer'
+
+export function AuditLogs() {
+ const { t } = useTranslation()
+ const user = useAuthStore((state) => state.auth.user)
+ const queryClient = useQueryClient()
+ const [scope, setScope] = useState<'all' | 'self'>('all')
+ const [accessRevoked, setAccessRevoked] = useState(false)
+ const canReadAll =
+ !!user &&
+ user.role >= ROLE.ADMIN &&
+ hasPermission(
+ user,
+ ADMIN_PERMISSION_RESOURCES.AUDIT,
+ ADMIN_PERMISSION_ACTIONS.READ
+ )
+ const effectiveScope = canReadAll && !accessRevoked ? scope : 'self'
+ const userId = user?.id
+ const handleAccessDenied = useCallback(async () => {
+ setAccessRevoked(true)
+ setScope('self')
+ const current = useAuthStore.getState().auth.user
+ if (current && current.id === userId) {
+ useAuthStore.getState().auth.setUser({
+ ...current,
+ permissions: {
+ ...current.permissions,
+ admin_permissions: {
+ ...current.permissions?.admin_permissions,
+ audit: { read: false },
+ },
+ },
+ })
+ }
+ await queryClient.cancelQueries({ queryKey: ['audit', userId, 'all'] })
+ queryClient.removeQueries({ queryKey: ['audit', userId, 'all'] })
+ try {
+ const profile = await getUserProfile()
+ const latest = useAuthStore.getState().auth.user
+ if (
+ profile.success &&
+ profile.data &&
+ latest &&
+ profile.data.id === userId &&
+ latest.id === userId
+ ) {
+ useAuthStore.getState().auth.setUser({
+ ...latest,
+ role: profile.data.role,
+ permissions: profile.data.permissions,
+ })
+ }
+ } catch {
+ // Keep the denied scope closed when refreshing capabilities fails.
+ }
+ }, [queryClient, userId])
+ return (
+
+ {t('Audit Logs')}
+
+ {canReadAll && !accessRevoked && (
+
+ setScope(value === 'all' ? 'all' : 'self')
+ }
+ >
+
+ {t('All')}
+ {t('Only Mine')}
+
+
+ )}
+
+
+
+ {accessRevoked && (
+
+ {t('Audit access changed. Showing only your records.')}
+
+ )}
+
+
+
+
+ )
+}
diff --git a/web/src/features/usage-logs/audit/lib/audit-details.ts b/web/src/features/usage-logs/audit/lib/audit-details.ts
new file mode 100644
index 0000000000..2a3c768fec
--- /dev/null
+++ b/web/src/features/usage-logs/audit/lib/audit-details.ts
@@ -0,0 +1,279 @@
+/*
+Copyright (C) 2023-2026 QuantumNous
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU Affero General Public License as
+published by the Free Software Foundation, either version 3 of the
+License, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU Affero General Public License for more details.
+
+You should have received a copy of the GNU Affero General Public License
+along with this program. If not, see .
+
+For commercial licensing, please contact support@quantumnous.com
+*/
+import type { TFunction } from 'i18next'
+
+import { loginMethodLabel } from '@/features/security/components/login-session-utils'
+import { ROLE } from '@/lib/roles'
+
+import { renderAuditContent } from '../../lib/format'
+import type { LogOtherData } from '../../types'
+import type { AuditLog } from '../api'
+
+const AUDIT_ROLE_NAMES: Record = {
+ [ROLE.GUEST]: 'guest',
+ [ROLE.USER]: 'user',
+ [ROLE.ADMIN]: 'admin',
+ [ROLE.SUPER_ADMIN]: 'root',
+}
+
+export function isAuditDetailObject(
+ value: unknown
+): value is Record {
+ return value !== null && typeof value === 'object' && !Array.isArray(value)
+}
+
+export function auditFieldLabel(key: string, t: TFunction): string {
+ switch (key) {
+ case 'status':
+ return t('Status')
+ case 'role':
+ return t('Role')
+ case 'changed_fields':
+ return t('Changed Fields')
+ case 'changed':
+ return t('State changed')
+ case 'count':
+ return t('Count')
+ case 'total':
+ return t('Total')
+ case 'sourceId':
+ return t('Source ID')
+ case 'id':
+ return 'ID'
+ case 'name':
+ return t('Name')
+ case 'username':
+ return t('Username')
+ case 'target_user_id':
+ return t('User ID')
+ case 'plan_id':
+ return t('Plan ID')
+ case 'plan_title':
+ return t('Plan Title')
+ case 'reset_count':
+ return t('Reset Count')
+ case 'user_count':
+ return t('User Count')
+ case 'advance_reset_time':
+ return t('Advance next reset time')
+ case 'bindingType':
+ return t('Binding Type')
+ case 'from':
+ return t('Previous value')
+ case 'to':
+ return t('New value')
+ case 'action':
+ return t('Operation')
+ case 'method':
+ return t('Authentication Method')
+ case 'key':
+ return t('Key')
+ case 'tag':
+ return t('Tag')
+ case 'group':
+ return t('Group')
+ case 'models':
+ return t('Models')
+ case 'type':
+ return t('Type')
+ case 'base_url':
+ return t('Base URL')
+ case 'quota':
+ return t('Quota')
+ case 'admin_info':
+ return t('Operator Admin')
+ case 'audit_info':
+ return t('Request')
+ default:
+ return key
+ }
+}
+
+export function buildAuditDetails(entry: AuditLog, t: TFunction) {
+ const metadata = isAuditDetailObject(entry.other) ? entry.other : {}
+ const metadataUnavailable =
+ entry.other != null && !isAuditDetailObject(entry.other)
+ const op = isAuditDetailObject(metadata.op) ? metadata.op : {}
+ const action = typeof op.action === 'string' ? op.action : entry.action
+ const params = isAuditDetailObject(op.params) ? { ...op.params } : {}
+ const summaryParams: NonNullable['params']> =
+ {}
+ for (const [key, value] of Object.entries(params)) {
+ if (
+ typeof value === 'string' ||
+ typeof value === 'number' ||
+ typeof value === 'boolean'
+ ) {
+ summaryParams[key] = value
+ } else if (
+ Array.isArray(value) &&
+ value.every((item) => typeof item === 'string')
+ ) {
+ summaryParams[key] = value
+ }
+ }
+ if (typeof summaryParams.method === 'string') {
+ summaryParams.method = loginMethodLabel(summaryParams.method, t)
+ }
+ if (
+ typeof summaryParams.role === 'number' &&
+ [0, 1, 10, 100].includes(summaryParams.role)
+ ) {
+ summaryParams.role = AUDIT_ROLE_NAMES[summaryParams.role]
+ }
+
+ let fallback = t('Operation audit')
+ if (entry.category === 'login') fallback = t('Login')
+ if (entry.category === 'security') fallback = t('Account security')
+ if (entry.category === 'access_token') fallback = t('Access Token')
+ const summary =
+ renderAuditContent({ op: { action, params: summaryParams } }, t) ||
+ (entry.content && entry.content !== action ? entry.content : fallback)
+ const admin = isAuditDetailObject(metadata.admin_info)
+ ? metadata.admin_info
+ : {}
+ const actorName =
+ typeof admin.admin_username === 'string'
+ ? admin.admin_username
+ : entry.username
+ const actorId =
+ typeof admin.admin_id === 'number' || typeof admin.admin_id === 'string'
+ ? admin.admin_id
+ : entry.user_id
+ let actor = actorName
+ if (actorId) {
+ actor = actorName ? `${actorName} (ID: ${actorId})` : `ID: ${actorId}`
+ }
+ let actorRole = ''
+ if ([1, 10, 100].includes(entry.actor_role)) {
+ actorRole = AUDIT_ROLE_NAMES[entry.actor_role]
+ }
+ const authMethod =
+ entry.auth_method ||
+ (typeof admin.auth_method === 'string' ? admin.auth_method : '')
+ let authentication = authMethod
+ if (authMethod === 'session') authentication = t('Session')
+ else if (authMethod === 'access_token') authentication = t('Access Token')
+ else if (authMethod) authentication = loginMethodLabel(authMethod, t)
+
+ let targetName = ''
+ if (typeof params.name === 'string') targetName = params.name
+ else if (typeof params.username === 'string') targetName = params.username
+ const targetId =
+ typeof params.id === 'number' || typeof params.id === 'string'
+ ? params.id
+ : undefined
+ let target = targetName
+ if (targetId !== undefined) {
+ target = targetName ? `${targetName} (ID: ${targetId})` : `ID: ${targetId}`
+ }
+ if (target) {
+ delete params.id
+ delete params.name
+ delete params.username
+ }
+
+ const fields: { label: string; value: unknown }[] = []
+ if (
+ Array.isArray(params.changed_fields) &&
+ params.changed_fields.every((field) => typeof field === 'string')
+ ) {
+ fields.push({
+ label: t('Changed Fields'),
+ value: params.changed_fields.length
+ ? params.changed_fields
+ .map((field) => auditFieldLabel(String(field), t))
+ .join(', ')
+ : t('Field change details were not recorded'),
+ })
+ delete params.changed_fields
+ }
+ if (action.startsWith('channel.') && typeof params.status === 'number') {
+ if (params.status === 1) params.status = t('Enabled')
+ else if (params.status === 2) params.status = t('Disabled')
+ else if (params.status === 3) params.status = t('Auto Disabled')
+ }
+ if (
+ typeof params.role === 'number' &&
+ [0, 1, 10, 100].includes(params.role)
+ ) {
+ params.role = AUDIT_ROLE_NAMES[params.role]
+ }
+ if (typeof params.method === 'string') {
+ params.method = loginMethodLabel(params.method, t)
+ }
+ if (
+ action === 'channel.status_update_batch' &&
+ typeof params.count === 'number' &&
+ typeof params.total === 'number'
+ ) {
+ fields.push({
+ label: t('Changed / Total'),
+ value: `${params.count} / ${params.total}`,
+ })
+ delete params.count
+ delete params.total
+ }
+ for (const [key, value] of Object.entries(params)) {
+ fields.push({ label: auditFieldLabel(key, t), value })
+ }
+ if (
+ typeof metadata.login_method === 'string' &&
+ params.method === undefined
+ ) {
+ fields.push({
+ label: t('Login Method'),
+ value: loginMethodLabel(metadata.login_method, t),
+ })
+ }
+
+ const extra = { ...metadata }
+ delete extra.op
+ delete extra.admin_info
+ delete extra.audit_info
+ delete extra.login_method
+ delete extra.user_agent
+ const adminExtra = { ...admin }
+ for (const key of [
+ 'admin_id',
+ 'admin_username',
+ 'admin_role',
+ 'auth_method',
+ ]) {
+ delete adminExtra[key]
+ }
+ if (Object.keys(adminExtra).length) extra.admin_info = adminExtra
+ if (isAuditDetailObject(metadata.audit_info)) {
+ const auditExtra = { ...metadata.audit_info }
+ for (const key of ['method', 'route', 'path', 'status', 'success']) {
+ delete auditExtra[key]
+ }
+ if (Object.keys(auditExtra).length) extra.audit_info = auditExtra
+ }
+ return {
+ summary,
+ actor,
+ actorRole,
+ target,
+ authentication,
+ fields,
+ extra,
+ metadataUnavailable,
+ }
+}
diff --git a/web/src/features/usage-logs/components/__tests__/log-type-filter.test.tsx b/web/src/features/usage-logs/components/__tests__/log-type-filter.test.tsx
new file mode 100644
index 0000000000..be58957182
--- /dev/null
+++ b/web/src/features/usage-logs/components/__tests__/log-type-filter.test.tsx
@@ -0,0 +1,125 @@
+/*
+Copyright (C) 2023-2026 QuantumNous
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU Affero General Public License as
+published by the Free Software Foundation, either version 3 of the
+License, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU Affero General Public License for more details.
+
+You should have received a copy of the GNU Affero General Public License
+along with this program. If not, see .
+
+For commercial licensing, please contact support@quantumnous.com
+*/
+import { QueryClient, QueryClientProvider } from '@tanstack/react-query'
+import {
+ createMemoryHistory,
+ createRootRoute,
+ createRoute,
+ createRouter,
+ RouterProvider,
+} from '@tanstack/react-router'
+import { getCoreRowModel, useReactTable } from '@tanstack/react-table'
+import {
+ cleanup,
+ render,
+ screen,
+ waitFor,
+ within,
+} from '@testing-library/react'
+import userEvent from '@testing-library/user-event'
+import { afterEach, expect, it, vi } from 'vitest'
+
+import { api } from '@/lib/api'
+
+import { CommonLogsFilterBar } from '../common-logs-filter-bar'
+import { UsageLogsProvider } from '../usage-logs-provider'
+
+function FilterFixture() {
+ const table = useReactTable({
+ data: [],
+ columns: [],
+ getCoreRowModel: getCoreRowModel(),
+ })
+ return (
+
+
+
+ )
+}
+
+async function renderFilter() {
+ vi.spyOn(api, 'get').mockResolvedValue({
+ data: { success: true, data: { quota: 0, rpm: 0, tpm: 0 } },
+ })
+ const root = createRootRoute()
+ const auth = createRoute({ getParentRoute: () => root, id: '_authenticated' })
+ const logs = createRoute({
+ getParentRoute: () => auth,
+ path: '/usage-logs/$section',
+ component: FilterFixture,
+ validateSearch: (search: Record) => search,
+ })
+ const router = createRouter({
+ routeTree: root.addChildren([auth.addChildren([logs])]),
+ history: createMemoryHistory({ initialEntries: ['/usage-logs/common'] }),
+ })
+ const client = new QueryClient({
+ defaultOptions: { queries: { retry: false } },
+ })
+ render(
+
+
+
+ )
+ await screen.findByRole('combobox')
+ return router
+}
+
+afterEach(() => {
+ cleanup()
+ vi.restoreAllMocks()
+})
+
+it('marks only retired log types as deprecated while keeping historical filters selectable', async () => {
+ const router = await renderFilter()
+ await userEvent.click(screen.getByRole('combobox'))
+ for (const label of ['Manage', 'Login']) {
+ expect(
+ within(
+ screen.getByRole('option', { name: new RegExp(`^${label}`) })
+ ).getByText('Deprecated')
+ ).toBeVisible()
+ }
+ for (const label of [
+ 'All Types',
+ 'Top-up',
+ 'Consume',
+ 'System',
+ 'Error',
+ 'Refund',
+ ]) {
+ expect(
+ within(screen.getByRole('option', { name: label })).queryByText(
+ 'Deprecated'
+ )
+ ).not.toBeInTheDocument()
+ }
+ await userEvent.click(screen.getByRole('option', { name: /^Manage/ }))
+ expect(screen.getByRole('combobox')).toHaveTextContent('Deprecated')
+ await userEvent.click(screen.getByRole('button', { name: 'Search' }))
+ await waitFor(() =>
+ expect(router.state.location.search).toMatchObject({ type: ['3'], page: 1 })
+ )
+ await userEvent.click(screen.getByRole('combobox'))
+ await userEvent.click(screen.getByRole('option', { name: /^Login/ }))
+ await userEvent.click(screen.getByRole('button', { name: 'Search' }))
+ await waitFor(() =>
+ expect(router.state.location.search).toMatchObject({ type: ['7'], page: 1 })
+ )
+})
diff --git a/web/src/features/usage-logs/components/common-logs-filter-bar.tsx b/web/src/features/usage-logs/components/common-logs-filter-bar.tsx
index 5744d151fd..ae7d511b95 100644
--- a/web/src/features/usage-logs/components/common-logs-filter-bar.tsx
+++ b/web/src/features/usage-logs/components/common-logs-filter-bar.tsx
@@ -23,6 +23,7 @@ import { Eye, EyeOff } from 'lucide-react'
import { useState, useCallback, useMemo } from 'react'
import { useTranslation } from 'react-i18next'
+import { Badge } from '@/components/ui/badge'
import { Button } from '@/components/ui/button'
import {
Select,
@@ -259,11 +260,14 @@ export function CommonLogsFilterBar(
LOG_TYPE_FILTERS.map((type) => ({
value: type.value,
label: t(type.label),
+ deprecated: type.deprecated,
})),
[t]
)
- const logTypeLabel =
- logTypeItems.find((type) => type.value === logType)?.label ?? t('All Types')
+ const selectedLogType = logTypeItems.find((type) => type.value === logType)
+ const deprecatedTypeDescription = t(
+ 'Only used to find historical logs. New records are available in Audit Logs.'
+ )
const statsBar = (
@@ -345,14 +349,50 @@ export function CommonLogsFilterBar
(
})
}}
>
-
- {logTypeLabel}
+
+
+
+ {selectedLogType?.label ?? t('All Types')}
+
+ {selectedLogType?.deprecated && (
+
+ {t('Deprecated')}
+
+ )}
+
-
+
{LOG_TYPE_FILTERS.map((type) => (
-
+
{t(type.label)}
+ {type.deprecated && (
+
+ {t('Deprecated')}
+
+ )}
))}
diff --git a/web/src/features/usage-logs/components/compact-date-time-range-picker.tsx b/web/src/features/usage-logs/components/compact-date-time-range-picker.tsx
index 409dd1eb8b..c52cfcebc0 100644
--- a/web/src/features/usage-logs/components/compact-date-time-range-picker.tsx
+++ b/web/src/features/usage-logs/components/compact-date-time-range-picker.tsx
@@ -147,6 +147,7 @@ export function CompactDateTimeRangePicker({
setDraftStart(e.target.value)}
className='h-8 text-sm leading-5 tabular-nums'
/>
@@ -161,6 +162,7 @@ export function CompactDateTimeRangePicker({
setDraftEnd(e.target.value)}
className='h-8 text-sm leading-5 tabular-nums'
/>
diff --git a/web/src/features/usage-logs/components/dialogs/details-dialog.tsx b/web/src/features/usage-logs/components/dialogs/details-dialog.tsx
index 8b7861db7a..4788d688e5 100644
--- a/web/src/features/usage-logs/components/dialogs/details-dialog.tsx
+++ b/web/src/features/usage-logs/components/dialogs/details-dialog.tsx
@@ -55,7 +55,6 @@ import { useTranslation } from 'react-i18next'
import { Dialog } from '@/components/dialog'
import { StatusBadge, type StatusBadgeProps } from '@/components/status-badge'
import { Button } from '@/components/ui/button'
-import { IconBadge, type IconBadgeTone } from '@/components/ui/icon-badge'
import { Label } from '@/components/ui/label'
import { DynamicPricingBreakdown } from '@/features/pricing/components/dynamic-pricing-breakdown'
import { usePricingData } from '@/features/pricing/hooks/use-pricing-data'
@@ -85,6 +84,7 @@ import {
} from '../../lib/utils'
import { USAGE_BILLING_PATH, type LogOtherData } from '../../types'
import { PluginAuthorLink } from '../plugin-author-link'
+import { DetailRow, DetailSection } from './log-detail-layout'
// Maps a channel-update changed-field token (as recorded by the backend audit)
// to its i18n label key for display in the audit details.
@@ -105,68 +105,6 @@ function timingTextColorClass(
return 'text-rose-600'
}
-function DetailRow(props: {
- label: React.ReactNode
- value: React.ReactNode
- mono?: boolean
- muted?: boolean
-}) {
- return (
-
-
- {props.label}
-
-
- {props.value}
-
-
- )
-}
-
-function DetailSection(props: {
- icon?: React.ReactNode
- iconTone?: IconBadgeTone
- label: string
- variant?: 'default' | 'danger'
- children: React.ReactNode
-}) {
- const isDanger = props.variant === 'danger'
- const iconTone = isDanger ? 'destructive' : props.iconTone
- return (
-
-
- {props.icon && (
-
- {props.icon}
-
- )}
- {props.label}
-
-
- {props.children}
-
-
- )
-}
-
function formatRatio(ratio: number | undefined): string {
if (ratio == null) return '-'
return ratio.toFixed(4)
diff --git a/web/src/features/usage-logs/components/dialogs/log-detail-layout.tsx b/web/src/features/usage-logs/components/dialogs/log-detail-layout.tsx
new file mode 100644
index 0000000000..accec2ab2a
--- /dev/null
+++ b/web/src/features/usage-logs/components/dialogs/log-detail-layout.tsx
@@ -0,0 +1,85 @@
+/*
+Copyright (C) 2023-2026 QuantumNous
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU Affero General Public License as
+published by the Free Software Foundation, either version 3 of the
+License, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU Affero General Public License for more details.
+
+You should have received a copy of the GNU Affero General Public License
+along with this program. If not, see .
+
+For commercial licensing, please contact support@quantumnous.com
+*/
+import type { ReactNode } from 'react'
+
+import { IconBadge, type IconBadgeTone } from '@/components/ui/icon-badge'
+import { Label } from '@/components/ui/label'
+import { cn } from '@/lib/utils'
+
+export function DetailRow(props: {
+ label: ReactNode
+ value: ReactNode
+ mono?: boolean
+ muted?: boolean
+}) {
+ return (
+
+
+ {props.label}
+
+
+ {props.value}
+
+
+ )
+}
+
+export function DetailSection(props: {
+ icon?: ReactNode
+ iconTone?: IconBadgeTone
+ label: string
+ variant?: 'default' | 'danger'
+ children: ReactNode
+}) {
+ const isDanger = props.variant === 'danger'
+ const iconTone = isDanger ? 'destructive' : props.iconTone
+ return (
+
+
+ {props.icon && (
+
+ {props.icon}
+
+ )}
+ {props.label}
+
+
+ {props.children}
+
+
+ )
+}
diff --git a/web/src/features/usage-logs/constants.ts b/web/src/features/usage-logs/constants.ts
index 7bc23448fa..95f2647ce7 100644
--- a/web/src/features/usage-logs/constants.ts
+++ b/web/src/features/usage-logs/constants.ts
@@ -106,11 +106,14 @@ export const LOG_TYPES = [
* must not expose the display-only "Unknown" label for that value.
*/
export const LOG_TYPE_FILTERS = [
- { label: 'All Types', value: LOG_TYPE_ALL_VALUE },
+ { label: 'All Types', value: LOG_TYPE_ALL_VALUE, deprecated: false },
...LOG_TYPES.filter((type) => type.value !== LOG_TYPE_ENUM.UNKNOWN).map(
(type) => ({
label: type.label,
value: String(type.value),
+ deprecated:
+ type.value === LOG_TYPE_ENUM.MANAGE ||
+ type.value === LOG_TYPE_ENUM.LOGIN,
})
),
] as const
diff --git a/web/src/features/usage-logs/index.tsx b/web/src/features/usage-logs/index.tsx
index 20467b7113..b0f911b715 100644
--- a/web/src/features/usage-logs/index.tsx
+++ b/web/src/features/usage-logs/index.tsx
@@ -128,16 +128,16 @@ function UsageLogsContent() {
{t(pageMeta.titleKey)}
- {canManageScope && (
-
+
+ {canManageScope && (
{t('All')}
{t('Only Mine')}
-
- )}
+ )}
+
{showTaskSwitcher && (
diff --git a/web/src/features/usage-logs/lib/format.ts b/web/src/features/usage-logs/lib/format.ts
index 2a5a30e367..ccfd39dff2 100644
--- a/web/src/features/usage-logs/lib/format.ts
+++ b/web/src/features/usage-logs/lib/format.ts
@@ -389,6 +389,14 @@ export function formatDuration(
* translatable instead of being frozen to whatever language was written to DB.
*/
const AUDIT_TEMPLATES: Record
= {
+ 'access_token.generate': 'Generated a system access token',
+ 'access_token.revoke': 'Revoked the system access token',
+ 'user.2fa_setup': 'Started two-factor authentication setup',
+ 'user.2fa_enable': 'Enabled two-factor authentication',
+ 'user.2fa_disable_self': 'Disabled two-factor authentication',
+ 'user.2fa_backup_codes': 'Regenerated two-factor backup codes',
+ 'user.security_verify': 'Completed security verification',
+
login: 'Logged in successfully via {{method}}',
// User management
'user.create': 'Created user {{username}} (role {{role}})',
@@ -421,6 +429,9 @@ const AUDIT_TEMPLATES: Record = {
// Channel
'channel.create': 'Created channel {{name}} (type {{type}}, count {{count}})',
'channel.update': 'Updated channel {{name}} (ID: {{id}})',
+ 'channel.status_update': 'Updated channel status (ID: {{id}})',
+ 'channel.status_update_batch':
+ 'Batch updated channel status ({{count}}/{{total}} changed)',
'channel.delete': 'Deleted channel {{name}} (ID: {{id}})',
'channel.delete_batch': 'Batch deleted {{count}} channels',
'channel.delete_disabled': 'Deleted all disabled channels ({{count}})',
diff --git a/web/src/features/users/components/__tests__/permissions.test.tsx b/web/src/features/users/components/__tests__/permissions.test.tsx
new file mode 100644
index 0000000000..9369037367
--- /dev/null
+++ b/web/src/features/users/components/__tests__/permissions.test.tsx
@@ -0,0 +1,145 @@
+/*
+Copyright (C) 2023-2026 QuantumNous
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU Affero General Public License as
+published by the Free Software Foundation, either version 3 of the
+License, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU Affero General Public License for more details.
+
+You should have received a copy of the GNU Affero General Public License
+along with this program. If not, see .
+
+For commercial licensing, please contact support@quantumnous.com
+*/
+import { QueryClient, QueryClientProvider } from '@tanstack/react-query'
+import { cleanup, render, screen, waitFor } from '@testing-library/react'
+import userEvent from '@testing-library/user-event'
+import { afterEach, expect, it, vi } from 'vitest'
+
+import { api } from '@/lib/api'
+import { useAuthStore } from '@/stores/auth-store'
+
+import type { User } from '../../types'
+import { UsersMutateDrawer } from '../users-mutate-drawer'
+import { UsersProvider } from '../users-provider'
+
+const target: User = {
+ id: 2,
+ username: 'managed-admin',
+ display_name: 'Managed admin',
+ role: 10,
+ status: 1,
+ quota: 0,
+ used_quota: 0,
+ request_count: 0,
+ group: 'default',
+}
+const label = "View other accounts' audit logs"
+const description =
+ 'View audit records from user and admin roles. Root records are always excluded.'
+
+function renderPermissions(viewerRole: number, allowed?: boolean) {
+ useAuthStore
+ .getState()
+ .auth.setUser({ id: 1, username: 'operator', role: viewerRole })
+ vi.spyOn(api, 'get').mockImplementation(async (url) => {
+ if (url === '/api/authz/catalog') {
+ return {
+ data: {
+ success: true,
+ data: {
+ resources: [
+ {
+ resource: 'audit',
+ label_key: 'Audit Logs',
+ actions: [
+ {
+ action: 'read',
+ label_key: label,
+ description_key: description,
+ },
+ ],
+ },
+ ],
+ roles: [{ key: 'admin', grants: { audit: { read: false } } }],
+ },
+ },
+ }
+ }
+ if (url === '/api/group/') {
+ return { data: { success: true, data: ['default'] } }
+ }
+ return {
+ data: {
+ success: true,
+ data: {
+ ...target,
+ admin_permissions:
+ allowed === undefined ? {} : { audit: { read: allowed } },
+ },
+ },
+ }
+ })
+ const client = new QueryClient({
+ defaultOptions: { queries: { retry: false } },
+ })
+ return render(
+
+
+ undefined}
+ currentRow={target}
+ />
+
+
+ )
+}
+
+afterEach(() => {
+ cleanup()
+ vi.restoreAllMocks()
+ useAuthStore.getState().auth.reset()
+})
+
+it.each([undefined, true])(
+ 'root can save an audit grant or revocation from the existing editor (previous=%s)',
+ async (allowed) => {
+ const put = vi
+ .spyOn(api, 'put')
+ .mockResolvedValue({ data: { success: true } })
+ renderPermissions(100, allowed)
+ await screen.findByDisplayValue('Managed admin')
+ const checkbox = await screen.findByRole('checkbox', {
+ name: new RegExp(label),
+ })
+ await waitFor(() =>
+ expect(checkbox).toHaveAttribute('aria-checked', String(!!allowed))
+ )
+ expect(screen.getByText(description)).toBeVisible()
+ await userEvent.click(checkbox)
+ await userEvent.click(screen.getByRole('button', { name: 'Save changes' }))
+ await waitFor(() =>
+ expect(put).toHaveBeenCalledWith(
+ '/api/user/',
+ expect.objectContaining({
+ id: 2,
+ admin_permissions: { audit: { read: !allowed } },
+ })
+ )
+ )
+ }
+)
+
+it('admin cannot edit the audit permission even when the catalog is available', async () => {
+ renderPermissions(10)
+ await screen.findByDisplayValue('Managed admin')
+ expect(
+ screen.queryByRole('checkbox', { name: new RegExp(label) })
+ ).not.toBeInTheDocument()
+})
diff --git a/web/src/features/users/components/users-mutate-drawer.tsx b/web/src/features/users/components/users-mutate-drawer.tsx
index 8409f5721d..15341c5a27 100644
--- a/web/src/features/users/components/users-mutate-drawer.tsx
+++ b/web/src/features/users/components/users-mutate-drawer.tsx
@@ -89,7 +89,7 @@ import {
transformFormDataToPayload,
transformUserToFormDefaults,
} from '../lib'
-import { type User } from '../types'
+import type { User } from '../types'
import { UserQuotaDialog } from './user-quota-dialog'
import { useUsers } from './users-provider'
@@ -136,11 +136,13 @@ export function UsersMutateDrawer({
useEffect(() => {
if (open && isUpdate && currentRow) {
// For update, fetch fresh data
- getUser(currentRow.id).then((result) => {
- if (result.success && result.data) {
- form.reset(transformUserToFormDefaults(result.data))
- }
- })
+ getUser(currentRow.id)
+ .then((result) => {
+ if (result.success && result.data) {
+ form.reset(transformUserToFormDefaults(result.data))
+ }
+ })
+ .catch(() => undefined)
} else if (open && !isUpdate) {
// For create, reset to defaults
form.reset(USER_FORM_DEFAULT_VALUES)
@@ -195,7 +197,7 @@ export function UsersMutateDrawer({
: t(ERROR_MESSAGES.CREATE_FAILED))
)
}
- } catch (_error) {
+ } catch {
toast.error(t(ERROR_MESSAGES.UNEXPECTED))
} finally {
setIsSubmitting(false)
@@ -360,12 +362,10 @@ export function UsersMutateDrawer({
{t('Group')}
({
- value: group,
- label: group,
- })),
- ]}
+ items={groups.map((group) => ({
+ value: group,
+ label: group,
+ }))}
onValueChange={field.onChange}
value={field.value}
>
@@ -549,7 +549,7 @@ export function UsersMutateDrawer({
{t(
- 'Third-party account bindings (read-only, managed by user in profile settings)'
+ 'Third-party account bindings (read-only, managed by user in Security & Access)'
)}
diff --git a/web/src/hooks/__tests__/sidebar-config.test.tsx b/web/src/hooks/__tests__/sidebar-config.test.tsx
new file mode 100644
index 0000000000..75c3c7ceee
--- /dev/null
+++ b/web/src/hooks/__tests__/sidebar-config.test.tsx
@@ -0,0 +1,182 @@
+/*
+Copyright (C) 2023-2026 QuantumNous
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU Affero General Public License as
+published by the Free Software Foundation, either version 3 of the
+License, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU Affero General Public License for more details.
+
+You should have received a copy of the GNU Affero General Public License
+along with this program. If not, see .
+
+For commercial licensing, please contact support@quantumnous.com
+*/
+import { QueryClient, QueryClientProvider } from '@tanstack/react-query'
+import { cleanup, renderHook } from '@testing-library/react'
+import type { ReactNode } from 'react'
+import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'
+
+import { checkIsActive } from '@/components/layout/lib/url-utils'
+import {
+ parseSidebarModulesAdmin,
+ serializeSidebarModulesAdmin,
+} from '@/features/system-settings/maintenance/config'
+import { useAuthStore } from '@/stores/auth-store'
+
+import { useSidebarConfig } from '../use-sidebar-config'
+import { useSidebarData } from '../use-sidebar-data'
+
+beforeEach(() => {
+ vi.stubGlobal('localStorage', {
+ getItem: () => null,
+ setItem: () => undefined,
+ removeItem: () => undefined,
+ })
+})
+
+afterEach(() => {
+ cleanup()
+ vi.unstubAllGlobals()
+ useAuthStore.getState().auth.reset()
+})
+
+function sidebarFor(admin?: object, user?: object, canConfigure = true) {
+ const client = new QueryClient({
+ defaultOptions: { queries: { retry: false } },
+ })
+ client.setQueryData(['status'], {
+ SidebarModulesAdmin: admin ? JSON.stringify(admin) : '',
+ })
+ useAuthStore.getState().auth.setUser({
+ id: 1,
+ username: 'alice',
+ role: 1,
+ permissions: { sidebar_settings: canConfigure },
+ sidebar_modules: user ? JSON.stringify(user) : '',
+ })
+ function Wrapper(props: { children: ReactNode }) {
+ return (
+
+ {props.children}
+
+ )
+ }
+ const result = renderHook(
+ () => useSidebarConfig(useSidebarData().navGroups),
+ { wrapper: Wrapper }
+ )
+ return result
+}
+
+describe('security sidebar visibility', () => {
+ it('old configurations show Security & Access immediately after Profile and keep API Keys', () => {
+ const { result } = sidebarFor(
+ { personal: { enabled: true, personal: true, topup: true } },
+ { personal: { enabled: true, personal: true } }
+ )
+ expect(
+ result.current
+ .find((group) => group.id === 'personal')
+ ?.items.map((item) => item.title)
+ ).toEqual(['Wallet', 'Profile', 'Security & Access'])
+ expect(
+ result.current
+ .flatMap((group) => group.items)
+ .some((item) => item.title === 'API Keys')
+ ).toBe(true)
+ })
+ it.each([
+ [{ personal: { enabled: true, security: false } }, undefined],
+ [{ personal: { enabled: false } }, { personal: { security: true } }],
+ [undefined, { personal: { enabled: true, security: false } }],
+ [undefined, { personal: { enabled: false } }],
+ ])(
+ 'admin or user disablement hides Security & Access (%j, %j)',
+ (admin, user) => {
+ const { result } = sidebarFor(admin, user)
+ expect(
+ result.current
+ .flatMap((group) => group.items)
+ .some((item) => item.title === 'Security & Access')
+ ).toBe(false)
+ }
+ )
+ it('users without sidebar configuration permission retain the admin view', () => {
+ const { result } = sidebarFor(
+ undefined,
+ { personal: { security: false } },
+ false
+ )
+ expect(
+ result.current
+ .flatMap((group) => group.items)
+ .some((item) => item.title === 'Security & Access')
+ ).toBe(true)
+ })
+})
+
+describe('audit log sidebar entry', () => {
+ it('admin settings default Audit Logs to visible and preserve its independent toggle when saved', () => {
+ const config = parseSidebarModulesAdmin(
+ '{"console":{"enabled":true,"log":true}}'
+ )
+ expect(config.console.audit).toBe(true)
+ config.console.audit = false
+ const saved = parseSidebarModulesAdmin(serializeSidebarModulesAdmin(config))
+ const { result } = sidebarFor(saved)
+ const titles = result.current
+ .flatMap((group) => group.items)
+ .map((item) => item.title)
+ expect(titles).not.toContain('Audit Logs')
+ expect(titles).toContain('Usage Logs')
+ })
+
+ it('legacy configurations show a separate Audit Logs link immediately after Usage Logs', () => {
+ const { result } = sidebarFor(
+ { console: { enabled: true, log: true } },
+ { console: { enabled: true, log: true } }
+ )
+ const items =
+ result.current.find((group) => group.id === 'general')?.items ?? []
+ const usageIndex = items.findIndex((item) => item.title === 'Usage Logs')
+ expect(items[usageIndex + 1]).toMatchObject({
+ title: 'Audit Logs',
+ url: '/usage-logs/audit',
+ })
+ const selected = items.filter((item) =>
+ checkIsActive('/usage-logs/audit', item)
+ )
+ expect(selected.map((item) => item.title)).toEqual(['Audit Logs'])
+ })
+
+ it.each([
+ [{ console: { enabled: true, audit: false } }, undefined],
+ [{ console: { enabled: false } }, { console: { audit: true } }],
+ [undefined, { console: { enabled: true, audit: false } }],
+ [undefined, { console: { enabled: false } }],
+ ])(
+ 'admin and personal visibility rules can hide Audit Logs (%j, %j)',
+ (admin, user) => {
+ const { result } = sidebarFor(admin, user)
+ expect(
+ result.current
+ .flatMap((group) => group.items)
+ .some((item) => item.title === 'Audit Logs')
+ ).toBe(false)
+ }
+ )
+
+ it('hiding Usage Logs does not hide the independently configured Audit Logs entry', () => {
+ const { result } = sidebarFor({ console: { enabled: true, log: false } })
+ const titles = result.current
+ .flatMap((group) => group.items)
+ .map((item) => item.title)
+ expect(titles).not.toContain('Usage Logs')
+ expect(titles).toContain('Audit Logs')
+ })
+})
diff --git a/web/src/hooks/use-sidebar-config.ts b/web/src/hooks/use-sidebar-config.ts
index a026e43ddc..29399447eb 100644
--- a/web/src/hooks/use-sidebar-config.ts
+++ b/web/src/hooks/use-sidebar-config.ts
@@ -47,6 +47,7 @@ const DEFAULT_SIDEBAR_MODULES: SidebarModulesAdminConfig = {
detail: true,
token: true,
log: true,
+ audit: true,
midjourney: true,
task: true,
},
@@ -54,6 +55,7 @@ const DEFAULT_SIDEBAR_MODULES: SidebarModulesAdminConfig = {
enabled: true,
topup: true,
personal: true,
+ security: true,
},
admin: {
enabled: true,
@@ -103,10 +105,12 @@ const URL_TO_CONFIG_MAP: Record = {
'/keys': { section: 'console', module: 'token' },
'/usage-logs': { section: 'console', module: 'log' },
'/usage-logs/common': { section: 'console', module: 'log' },
+ '/usage-logs/audit': { section: 'console', module: 'audit' },
'/usage-logs/drawing': { section: 'console', module: 'midjourney' },
'/usage-logs/task': { section: 'console', module: 'task' },
'/wallet': { section: 'personal', module: 'topup' },
'/profile': { section: 'personal', module: 'personal' },
+ '/security': { section: 'personal', module: 'security' },
'/channels': { section: 'admin', module: 'channel' },
'/models': { section: 'admin', module: 'models' },
'/models/metadata': { section: 'admin', module: 'models' },
diff --git a/web/src/hooks/use-sidebar-data.ts b/web/src/hooks/use-sidebar-data.ts
index 57c194630b..b9fd6542bb 100644
--- a/web/src/hooks/use-sidebar-data.ts
+++ b/web/src/hooks/use-sidebar-data.ts
@@ -19,6 +19,7 @@ For commercial licensing, please contact support@quantumnous.com
import {
Activity,
Box,
+ ClipboardList,
CreditCard,
FileText,
FlaskConical,
@@ -30,6 +31,7 @@ import {
Radio,
ServerCog,
Settings,
+ ShieldCheck,
Ticket,
User,
Users,
@@ -37,7 +39,7 @@ import {
} from 'lucide-react'
import { useTranslation } from 'react-i18next'
-import { type SidebarData } from '@/components/layout/types'
+import type { SidebarData } from '@/components/layout/types'
import { ROLE } from '@/lib/roles'
/**
@@ -91,6 +93,11 @@ export function useSidebarData(): SidebarData {
url: '/usage-logs/common',
icon: FileText,
},
+ {
+ title: t('Audit Logs'),
+ url: '/usage-logs/audit',
+ icon: ClipboardList,
+ },
{
title: t('Task Logs'),
url: '/usage-logs/task',
@@ -114,6 +121,11 @@ export function useSidebarData(): SidebarData {
url: '/profile',
icon: User,
},
+ {
+ title: t('Security & Access'),
+ url: '/security',
+ icon: ShieldCheck,
+ },
],
},
{
diff --git a/web/src/i18n/locales/en.json b/web/src/i18n/locales/en.json
index 64b6c97c0f..fbed19452c 100644
--- a/web/src/i18n/locales/en.json
+++ b/web/src/i18n/locales/en.json
@@ -138,15 +138,19 @@
"Access Forbidden": "Access Forbidden",
"Access Policy (JSON)": "Access Policy (JSON)",
"Access previous conversations and start new ones.": "Access previous conversations and start new ones.",
+ "Access records": "Access records",
"Access Token": "Access Token",
+ "Access token revoked": "Access token revoked",
"Access tokens are shown only once": "Access tokens are shown only once",
"AccessKey / SecretAccessKey": "AccessKey / SecretAccessKey",
+ "Account Actions": "Account Actions",
"Account Binding Management": "Account Binding Management",
"Account Bindings": "Account Bindings",
"Account created! Please sign in": "Account created! Please sign in",
"Account deleted successfully": "Account deleted successfully",
"Account ID *": "Account ID *",
"Account Info": "Account Info",
+ "Account security": "Account security",
"Account used when authenticating with the SMTP server": "Account used when authenticating with the SMTP server",
"acknowledge the related legal risks": "acknowledge the related legal risks",
"Across all groups": "Across all groups",
@@ -315,11 +319,13 @@
"All nodes": "All nodes",
"All playground messages saved in this browser will be removed. This cannot be undone.": "All playground messages saved in this browser will be removed. This cannot be undone.",
"All requests must include": "All requests must include",
+ "All results": "All results",
"All routes": "All routes",
"All Status": "All Status",
"All Sync Status": "All Sync Status",
"All systems operational": "All systems operational",
"All Tags": "All Tags",
+ "All tokens": "All tokens",
"All Types": "All Types",
"All upstream data is trusted": "All upstream data is trusted",
"All users": "All users",
@@ -510,6 +516,10 @@
"Audio Preview": "Audio Preview",
"Audio ratio": "Audio ratio",
"Audio Tokens": "Audio Tokens",
+ "Audit access changed. Showing only your records.": "Audit access changed. Showing only your records.",
+ "Audit Logs": "Audit Logs",
+ "Audit metadata is unavailable": "Audit metadata is unavailable",
+ "Audit records start after this feature was enabled. Earlier records remain in Common Logs.": "Audit records start after this feature was enabled. Earlier records remain in Common Logs.",
"Auth": "Auth",
"Auth configured": "Auth configured",
"Auth name": "Auth name",
@@ -645,6 +655,7 @@
"Batch test completed: {{success}} succeeded, {{failed}} failed": "Batch test completed: {{success}} succeeded, {{failed}} failed",
"Batch test stopped: {{completed}}/{{total}} completed, {{success}} succeeded, {{failed}} failed": "Batch test stopped: {{completed}}/{{total}} completed, {{success}} succeeded, {{failed}} failed",
"Batch testing models...": "Batch testing models...",
+ "Batch updated channel status ({{count}}/{{total}} changed)": "Batch updated channel status ({{count}}/{{total}} changed)",
"Batch upstream model update": "Batch upstream model update",
"Batch upstream model updates applied: {{channels}} channels, {{added}} added, {{removed}} removed, {{fails}} failed": "Batch upstream model updates applied: {{channels}} channels, {{added}} added, {{removed}} removed, {{fails}} failed",
"Best for single-tenant deployments. Pricing and billing options stay hidden.": "Best for single-tenant deployments. Pricing and billing options stay hidden.",
@@ -677,6 +688,7 @@
"Bind WeChat Account": "Bind WeChat Account",
"Binding Information": "Binding Information",
"Binding successful!": "Binding successful!",
+ "Binding Type": "Binding Type",
"Binding your {{provider}} account": "Binding your {{provider}} account",
"Binding...": "Binding...",
"Bindings": "Bindings",
@@ -782,6 +794,7 @@
"Change language": "Change language",
"Change Password": "Change Password",
"Change To": "Change To",
+ "Changed / Total": "Changed / Total",
"Changed Fields": "Changed Fields",
"Changes are written to the settings draft on save.": "Changes are written to the settings draft on save.",
"Changing...": "Changing...",
@@ -928,6 +941,7 @@
"Click to view full error message": "Click to view full error message",
"Click to view full prompt": "Click to view full prompt",
"Click to view image": "Click to view image",
+ "Client": "Client",
"Client header value": "Client header value",
"Client ID": "Client ID",
"Client model": "Client model",
@@ -990,6 +1004,7 @@
"Complete Order": "Complete Order",
"Complete these steps to finish the initial installation.": "Complete these steps to finish the initial installation.",
"Completed": "Completed",
+ "Completed security verification": "Completed security verification",
"Completed top-up order for the user": "Completed top-up order for the user",
"Completion": "Completion",
"Completion price": "Completion price",
@@ -1132,6 +1147,7 @@
"Copied: {{model}}": "Copied: {{model}}",
"Copied!": "Copied!",
"Copy": "Copy",
+ "Copy {{field}}": "Copy {{field}}",
"Copy {{name}} pricing": "Copy {{name}} pricing",
"Copy a request header": "Copy a request header",
"Copy All": "Copy All",
@@ -1264,6 +1280,7 @@
"Current Password": "Current Password",
"Current Price": "Current Price",
"Current quota": "Current quota",
+ "Current token": "Current token",
"Current Value": "Current Value",
"Current version": "Current version",
"Current:": "Current:",
@@ -1419,6 +1436,7 @@
"Deployment Region *": "Deployment Region *",
"Deployment requested": "Deployment requested",
"Deployments": "Deployments",
+ "Deprecated": "Deprecated",
"Desc": "Desc",
"Describe": "Describe",
"Describe this model...": "Describe this model...",
@@ -1465,6 +1483,7 @@
"Disabled lanes are omitted on save.": "Disabled lanes are omitted on save.",
"Disabled Reason": "Disabled Reason",
"Disabled Time": "Disabled Time",
+ "Disabled two-factor authentication": "Disabled two-factor authentication",
"Disabled; fell back to factory": "Disabled; fell back to factory",
"Disabled; platform unavailable": "Disabled; platform unavailable",
"Disabling...": "Disabling...",
@@ -1688,6 +1707,8 @@
"Enable test mode for Creem payments": "Enable test mode for Creem payments",
"Enable this key?": "Enable this key?",
"Enable Turnstile": "Enable Turnstile",
+ "Enable Two-factor Authentication or Passkey in Security & Access to continue.": "Enable Two-factor Authentication or Passkey in Security & Access to continue.",
+ "Enable Two-factor Authentication or Passkey in Security & Access to unlock sensitive operations.": "Enable Two-factor Authentication or Passkey in Security & Access to unlock sensitive operations.",
"Enable Two-factor Authentication or Passkey in your profile to unlock sensitive operations.": "Enable Two-factor Authentication or Passkey in your profile to unlock sensitive operations.",
"Enable unlimited quota for this API key": "Enable unlimited quota for this API key",
"Enable violation deduction": "Enable violation deduction",
@@ -1699,6 +1720,7 @@
"Enabled all channels with tag: {{tag}}": "Enabled all channels with tag: {{tag}}",
"Enabled channels with tag {{tag}}": "Enabled channels with tag {{tag}}",
"Enabled Status": "Enabled Status",
+ "Enabled two-factor authentication": "Enabled two-factor authentication",
"Enabling...": "Enabling...",
"Encourages introducing new topics": "Encourages introducing new topics",
"Encourages new topics": "Encourages new topics",
@@ -1706,6 +1728,7 @@
"End Error": "End Error",
"End Reason": "End Reason",
"End Time": "End Time",
+ "End time must be after start time": "End time must be after start time",
"End-user identifier for abuse monitoring": "End-user identifier for abuse monitoring",
"Endpoint": "Endpoint",
"Endpoint config": "Endpoint config",
@@ -1818,6 +1841,7 @@
"Estimated cost": "Estimated cost",
"Estimated quota cost": "Estimated quota cost",
"Evaluate fields from the provider user info response. Conditions and nested groups use and/or logic.": "Evaluate fields from the provider user info response. Conditions and nested groups use and/or logic.",
+ "Event": "Event",
"Every group name in the pricing table can be used in two places: on a user (the user group, assigned by admins) and on a token (the token group, chosen when creating the token). Same name pool, two different jobs.": "Every group name in the pricing table can be used in two places: on a user (the user group, assigned by admins) and on a token (the token group, chosen when creating the token). Same name pool, two different jobs.",
"Every other device will lose access immediately. This device will remain signed in.": "Every other device will lose access immediately. This device will remain signed in.",
"Everything configured for this group, in one place.": "Everything configured for this group, in one place.",
@@ -1950,6 +1974,7 @@
"Failed to load": "Failed to load",
"Failed to load API keys": "Failed to load API keys",
"Failed to load artifacts": "Failed to load artifacts",
+ "Failed to load audit records": "Failed to load audit records",
"Failed to load billing history": "Failed to load billing history",
"Failed to load enabled models": "Failed to load enabled models",
"Failed to load home page content": "Failed to load home page content",
@@ -1965,6 +1990,7 @@
"Failed to load setup data": "Failed to load setup data",
"Failed to load setup status": "Failed to load setup status",
"Failed to load tag data": "Failed to load tag data",
+ "Failed to load token status": "Failed to load token status",
"Failed to load users": "Failed to load users",
"Failed to parse group items": "Failed to parse group items",
"Failed to parse JSON file: {{name}}": "Failed to parse JSON file: {{name}}",
@@ -1979,6 +2005,7 @@
"Failed to reset model ratios": "Failed to reset model ratios",
"Failed to reset Passkey": "Failed to reset Passkey",
"Failed to reset usage": "Failed to reset usage",
+ "Failed to revoke token": "Failed to revoke token",
"Failed to save": "Failed to save",
"Failed to save announcements": "Failed to save announcements",
"Failed to save API info": "Failed to save API info",
@@ -2054,6 +2081,7 @@
"Fetching upstream ratios...": "Fetching upstream ratios...",
"Fetching...": "Fetching...",
"field": "field",
+ "Field change details were not recorded": "Field change details were not recorded",
"Field Mapping": "Field Mapping",
"Field passthrough controls": "Field passthrough controls",
"Field Path": "Field Path",
@@ -2202,12 +2230,15 @@
"Gemini will continue to auto-detect thinking mode even with the adapter disabled. Enable this only when you need finer control over pricing and budgeting.": "Gemini will continue to auto-detect thinking mode even with the adapter disabled. Enable this only when you need finer control over pricing and budgeting.",
"General": "General",
"General Settings": "General Settings",
+ "Generate": "Generate",
"Generate and manage your API access token": "Generate and manage your API access token",
"Generate Lyrics": "Generate Lyrics",
"Generate Music": "Generate Music",
"Generate new backup codes for account recovery": "Generate new backup codes for account recovery",
"Generate New Codes": "Generate New Codes",
"Generate tokens from the Tokens page; you can scope them to specific models, groups, IPs, and rate-limits.": "Generate tokens from the Tokens page; you can scope them to specific models, groups, IPs, and rate-limits.",
+ "Generated": "Generated",
+ "Generated a system access token": "Generated a system access token",
"Generated image": "Generated image",
"Generating new codes will invalidate all existing backup codes.": "Generating new codes will invalidate all existing backup codes.",
"Generating...": "Generating...",
@@ -2322,6 +2353,7 @@
"High-risk status code retry risk check 4": "I voluntarily accept the system stability risks, including severe client timeouts and possible service crashes, and take responsibility for any resulting request backlog or service outage.",
"High-risk status code retry risk disclaimer": "### ⚠️ High-risk operation: 504/524 status code retry risk notice and disclaimer\n\nBy default, this project does not retry status codes `400` (bad request), `504` (gateway timeout), or `524` (a timeout occurred). Status codes 504 and 524 usually mean that **the request successfully reached the upstream AI service and upstream processing had begun, but the connection was closed because upstream processing took too long**. This usually points to an upstream service bottleneck.\n\nEnabling redirection/retry for these timeout status codes is an **extremely high-risk operation**. Before enabling it, you must carefully read and understand the following consequences:\n\n#### 1. Core risks (read carefully)\n\n1. 💸 Duplicate or multiple billing: Most upstream AI providers **still charge** for requests that started processing but were interrupted by a network timeout (504/524). A retry sends a brand-new upstream request and can result in **duplicate or multiple charges**.\n2. ⏳ Severe client timeout: Once a request has already timed out, adding retries can multiply total latency and cause severe or unacceptable timeouts for the final client or caller.\n3. 💥 Request backlog and service crash: Forced retries keep threads and connections occupied for longer. Under high concurrency, this can cause a serious **request backlog**, exhaust system resources, trigger cascading failures, and crash the proxy service.\n\n#### 2. Risk acknowledgement\n\nIf you still choose to enable this feature, you acknowledge all of the following:",
"Higher priority channels are selected first": "Higher priority channels are selected first",
+ "Historical tokens": "Historical tokens",
"Historical Usage": "Historical Usage",
"History of MjProxy-style image tasks.": "History of MjProxy-style image tasks.",
"Hit criteria: If cached tokens exist in usage, it counts as a hit.": "Hit criteria: If cached tokens exist in usage, it counts as a hit.",
@@ -2577,7 +2609,9 @@
"Last Seen": "Last Seen",
"Last Tested": "Last Tested",
"Last updated:": "Last updated:",
+ "Last used": "Last used",
"Last Used": "Last Used",
+ "Last used IP": "Last used IP",
"Last used:": "Last used:",
"Latency": "Latency",
"Latency check": "Latency check",
@@ -2679,11 +2713,13 @@
"Logged in successfully via {{method}}": "Logged in successfully via {{method}}",
"Logic": "Logic",
"Login": "Login",
+ "Login & Authentication": "Login & Authentication",
"Login failed": "Login failed",
"Login flow expired. Please sign in again.": "Login flow expired. Please sign in again.",
"Login Info": "Login Info",
"Login Method": "Login Method",
"Login sessions": "Login sessions",
+ "Login, security and access records": "Login, security and access records",
"Logo": "Logo",
"Logo URL": "Logo URL",
"Logs": "Logs",
@@ -2779,6 +2815,7 @@
"Merge into Other": "Merge into Other",
"Message Priority": "Message Priority",
"Metadata": "Metadata",
+ "Method": "Method",
"min downtime": "min downtime",
"Min Top-up": "Min Top-up",
"Min Top-up:": "Min Top-up:",
@@ -2993,6 +3030,7 @@
"New Password": "New Password",
"New password must be different from current password": "New password must be different from current password",
"New User Quota": "New User Quota",
+ "New value": "New value",
"New version available: {{version}}": "New version available: {{version}}",
"NewAPI": "NewAPI",
"Newly released": "Newly released",
@@ -3133,6 +3171,7 @@
"No Quota": "No Quota",
"No ratio differences found": "No ratio differences found",
"No recent usage": "No recent usage",
+ "No records": "No records",
"No records found. Try adjusting your filters.": "No records found. Try adjusting your filters.",
"No redemption codes available. Create your first redemption code to get started.": "No redemption codes available. Create your first redemption code to get started.",
"No Redemption Codes Found": "No Redemption Codes Found",
@@ -3192,6 +3231,7 @@
"Not configured": "Not configured",
"Not declared": "Not declared",
"Not Equals": "Not Equals",
+ "Not generated": "Not generated",
"Not in pricing table": "Not in pricing table",
"Not included": "Not included",
"Not installed": "Not installed",
@@ -3285,6 +3325,7 @@
"Only successful requests": "Only successful requests",
"Only successful requests count toward this limit.": "Only successful requests count toward this limit.",
"Only the last {{value}} log files will be retained; the rest will be deleted.": "Only the last {{value}} log files will be retained; the rest will be deleted.",
+ "Only used to find historical logs. New records are available in Audit Logs.": "Only used to find historical logs. New records are available in Audit Logs.",
"Oops! Page Not Found!": "Oops! Page Not Found!",
"Oops! Something went wrong": "Oops! Something went wrong",
"Open": "Open",
@@ -3325,11 +3366,13 @@
"Operate channels": "Operate channels",
"Operation": "Operation",
"operation and charging behavior": "operation and charging behavior",
+ "Operation audit": "Operation audit",
"Operation Audit Info": "Operation Audit Info",
"Operation failed": "Operation failed",
"Operation successful": "Operation successful",
"Operation Type": "Operation Type",
"Operations": "Operations",
+ "Operator": "Operator",
"Operator Admin": "Operator Admin",
"Optimize system for self-hosted single-user usage": "Optimize system for self-hosted single-user usage",
"Optimized network architecture ensures millisecond response times": "Optimized network architecture ensures millisecond response times",
@@ -3545,6 +3588,7 @@
"Pick or create both a store and a product before saving.": "Pick or create both a store and a product before saving.",
"Ping Interval (seconds)": "Ping Interval (seconds)",
"Plan": "Plan",
+ "Plan ID": "Plan ID",
"Plan Name": "Plan Name",
"Plan Price": "Plan Price",
"Plan price must be greater than zero": "Plan price must be greater than zero",
@@ -3684,6 +3728,7 @@
"Previous": "Previous",
"Previous branch": "Previous branch",
"Previous page": "Previous page",
+ "Previous value": "Previous value",
"Price": "Price",
"Price ($/1K calls)": "Price ($/1K calls)",
"Price (local currency / USD)": "Price (local currency / USD)",
@@ -3719,6 +3764,7 @@
"Priority level from 0 (lowest) to 10 (highest), default is 5": "Priority level from 0 (lowest) to 10 (highest), default is 5",
"Priority order for automatic group assignment. New tokens rotate through this list.": "Priority order for automatic group assignment. New tokens rotate through this list.",
"Priority order for tokens in the auto group. The system tries groups from top to bottom.": "Priority order for tokens in the auto group. The system tries groups from top to bottom.",
+ "Privacy": "Privacy",
"Privacy Policy": "Privacy Policy",
"Private Deployment URL": "Private Deployment URL",
"Processing OAuth response...": "Processing OAuth response...",
@@ -3910,6 +3956,7 @@
"Regenerate access token?": "Regenerate access token?",
"Regenerate Backup Codes": "Regenerate Backup Codes",
"Regenerate token": "Regenerate token",
+ "Regenerated two-factor backup codes": "Regenerated two-factor backup codes",
"Regenerating immediately invalidates any existing token.": "Regenerating immediately invalidates any existing token.",
"Regex": "Regex",
"Regex Pattern": "Regex Pattern",
@@ -4043,6 +4090,7 @@
"Reset balance and used quota": "Reset balance and used quota",
"Reset completed": "Reset completed",
"Reset completed. Latest usage has been refreshed.": "Reset completed. Latest usage has been refreshed.",
+ "Reset Count": "Reset Count",
"Reset count:": "Reset count:",
"Reset Credit": "Reset Credit",
"Reset Credits": "Reset Credits",
@@ -4105,7 +4153,9 @@
"Review your payment details": "Review your payment details",
"Review your purchase details before proceeding.": "Review your purchase details before proceeding.",
"Revoke": "Revoke",
+ "Revoke access token?": "Revoke access token?",
"Revoke session?": "Revoke session?",
+ "Revoked the system access token": "Revoked the system access token",
"Rewards will be added directly to your balance": "Rewards will be added directly to your balance",
"Rewrite callback URLs to the local server": "Rewrite callback URLs to the local server",
"Right to Left": "Right to Left",
@@ -4255,6 +4305,7 @@
"Secure & Reliable": "Secure & Reliable",
"Secured": "Secured",
"Security": "Security",
+ "Security & Access": "Security & Access",
"Security & Limits": "Security & Limits",
"Security Check": "Security Check",
"Security verification": "Security verification",
@@ -4372,6 +4423,7 @@
"Session expired!": "Session expired!",
"Session expired?": "Session expired?",
"Session signed out": "Session signed out",
+ "Sessions & Access": "Sessions & Access",
"Set": "Set",
"Set a discount rate for a specific recharge amount threshold.": "Set a discount rate for a specific recharge amount threshold.",
"Set a secure password (min. 8 characters)": "Set a secure password (min. 8 characters)",
@@ -4486,6 +4538,7 @@
"Source Endpoint": "Source Endpoint",
"Source Field": "Source Field",
"Source Header": "Source Header",
+ "Source ID": "Source ID",
"Source name": "Source name",
"sources": "sources",
"Space-separated OAuth scopes": "Space-separated OAuth scopes",
@@ -4515,7 +4568,9 @@
"Start for free with generous limits. No credit card required.": "Start for free with generous limits. No credit card required.",
"Start Time": "Start Time",
"Started": "Started",
+ "Started two-factor authentication setup": "Started two-factor authentication setup",
"STARTTLS": "STARTTLS",
+ "State changed": "State changed",
"Static page describing the platform.": "Static page describing the platform.",
"Statistical count": "Statistical count",
"Statistical quota": "Statistical quota",
@@ -4664,6 +4719,7 @@
"Tags": "Tags",
"Take photo": "Take photo",
"Take screenshot": "Take screenshot",
+ "Target": "Target",
"Target Endpoint": "Target Endpoint",
"Target Field": "Target Field",
"Target Field Path": "Target Field Path",
@@ -4788,6 +4844,7 @@
"Third-party": "Third-party",
"Third-party — use at your own risk": "Third-party — use at your own risk",
"Third-party account bindings (read-only, managed by user in profile settings)": "Third-party account bindings (read-only, managed by user in profile settings)",
+ "Third-party account bindings (read-only, managed by user in Security & Access)": "Third-party account bindings (read-only, managed by user in Security & Access)",
"Third-party Payment Config": "Third-party Payment Config",
"Third-party plugin risk": "Third-party plugin risk",
"Third-party source risk": "Third-party source risk",
@@ -4924,6 +4981,7 @@
"Token estimator": "Token estimator",
"Token group": "Token group",
"Token has no group": "Token has no group",
+ "Token identifier": "Token identifier",
"Token Limits": "Token Limits",
"Token management": "Token management",
"Token Management": "Token Management",
@@ -4937,6 +4995,7 @@
"Token price for image input.": "Token price for image input.",
"Token prices": "Token prices",
"Token regenerated and copied to clipboard": "Token regenerated and copied to clipboard",
+ "Token scope": "Token scope",
"Token share by model author across the last 24 hours": "Token share by model author across the last 24 hours",
"Token share by model author across the past few weeks": "Token share by model author across the past few weeks",
"Token share by model author across the past month": "Token share by model author across the past month",
@@ -4986,6 +5045,7 @@
"Top-up ratio": "Top-up ratio",
"Topup Amount": "Topup Amount",
"Total": "Total",
+ "Total {{count}} records": "Total {{count}} records",
"Total Allocated": "Total Allocated",
"Total check-ins": "Total check-ins",
"Total consumed": "Total consumed",
@@ -5133,6 +5193,7 @@
"Updated a subscription plan": "Updated a subscription plan",
"Updated a vendor": "Updated a vendor",
"Updated channel {{name}} (ID: {{id}})": "Updated channel {{name}} (ID: {{id}})",
+ "Updated channel status (ID: {{id}})": "Updated channel status (ID: {{id}})",
"Updated daily": "Updated daily",
"Updated successfully": "Updated successfully",
"Updated system setting {{key}}": "Updated system setting {{key}}",
@@ -5260,6 +5321,7 @@
"User Analytics": "User Analytics",
"User Consumption Ranking": "User Consumption Ranking",
"User Consumption Trend": "User Consumption Trend",
+ "User Count": "User Count",
"User created successfully": "User created successfully",
"User dashboard and quota controls.": "User dashboard and quota controls.",
"User deleted successfully": "User deleted successfully",
@@ -5354,6 +5416,7 @@
"Vidu": "Vidu",
"View": "View",
"View all currently available models": "View all currently available models",
+ "View audit records from user and admin roles. Root records are always excluded.": "View audit records from user and admin roles. Root records are always excluded.",
"View channel lists and details without secrets.": "View channel lists and details without secrets.",
"View channel secrets": "View channel secrets",
"View detailed information about this user including balance, usage statistics, and invitation details.": "View detailed information about this user including balance, usage statistics, and invitation details.",
@@ -5363,7 +5426,9 @@
"View logs": "View logs",
"View mode": "View mode",
"View model statistics and charts": "View model statistics and charts",
+ "View other accounts' audit logs": "View other accounts' audit logs",
"View Pricing": "View Pricing",
+ "View scope": "View scope",
"View the complete details for this": "View the complete details for this",
"View the complete details for this log entry": "View the complete details for this log entry",
"View the complete details for this task": "View the complete details for this task",
diff --git a/web/src/i18n/locales/fr.json b/web/src/i18n/locales/fr.json
index b68f621284..e7feb3c890 100644
--- a/web/src/i18n/locales/fr.json
+++ b/web/src/i18n/locales/fr.json
@@ -138,15 +138,19 @@
"Access Forbidden": "Accès interdit",
"Access Policy (JSON)": "Politique d'accès (JSON)",
"Access previous conversations and start new ones.": "Accéder aux conversations précédentes et en démarrer de nouvelles.",
+ "Access records": "Historique d’accès",
"Access Token": "Jeton d'accès",
+ "Access token revoked": "Jeton d’accès révoqué",
"Access tokens are shown only once": "Les jetons d'accès ne sont affichés qu'une seule fois",
"AccessKey / SecretAccessKey": "AccessKey / SecretAccessKey",
+ "Account Actions": "Actions sur le compte",
"Account Binding Management": "Gestion des liaisons de compte",
"Account Bindings": "Associations de compte",
"Account created! Please sign in": "Compte créé ! Veuillez vous connecter",
"Account deleted successfully": "Compte supprimé avec succès",
"Account ID *": "ID de compte *",
"Account Info": "Informations du compte",
+ "Account security": "Sécurité du compte",
"Account used when authenticating with the SMTP server": "Compte utilisé lors de l'authentification auprès du serveur SMTP",
"acknowledge the related legal risks": "reconnais les risques juridiques associés",
"Across all groups": "Tous groupes confondus",
@@ -315,11 +319,13 @@
"All nodes": "Tous les nœuds",
"All playground messages saved in this browser will be removed. This cannot be undone.": "Tous les messages du Playground enregistrés dans ce navigateur seront supprimés. Cette action est irréversible.",
"All requests must include": "Toutes les requêtes doivent inclure",
+ "All results": "Tous les résultats",
"All routes": "Toutes les routes",
"All Status": "Tous les statuts",
"All Sync Status": "Tous les statuts de synchronisation",
"All systems operational": "Tous les systèmes opérationnels",
"All Tags": "Tous les tags",
+ "All tokens": "Tous les jetons",
"All Types": "Tous les types",
"All upstream data is trusted": "Toutes les données en amont sont fiables",
"All users": "Tous les utilisateurs",
@@ -510,6 +516,10 @@
"Audio Preview": "Aperçu audio",
"Audio ratio": "Ratio audio",
"Audio Tokens": "Jetons audio",
+ "Audit access changed. Showing only your records.": "Les droits d’accès aux audits ont changé. Seuls vos événements sont affichés.",
+ "Audit Logs": "Journaux d’audit",
+ "Audit metadata is unavailable": "Les informations supplémentaires de cet audit sont indisponibles",
+ "Audit records start after this feature was enabled. Earlier records remain in Common Logs.": "Les audits commencent à l’activation de cette fonction. Les anciens événements restent dans les journaux généraux.",
"Auth": "Auth",
"Auth configured": "Authentification configurée",
"Auth name": "Nom auth",
@@ -645,6 +655,7 @@
"Batch test completed: {{success}} succeeded, {{failed}} failed": "Test par lots terminé : {{success}} réussi(s), {{failed}} échoué(s)",
"Batch test stopped: {{completed}}/{{total}} completed, {{success}} succeeded, {{failed}} failed": "Test par lots arrêté : {{completed}}/{{total}} terminé(s), {{success}} réussi(s), {{failed}} échoué(s)",
"Batch testing models...": "Test des modèles par lots...",
+ "Batch updated channel status ({{count}}/{{total}} changed)": "Statuts des canaux mis à jour par lot ({{count}}/{{total}} modifiés)",
"Batch upstream model update": "Mise à jour groupée des modèles en amont",
"Batch upstream model updates applied: {{channels}} channels, {{added}} added, {{removed}} removed, {{fails}} failed": "Mises à jour par lot des modèles en amont appliquées : {{channels}} canaux, {{added}} ajoutés, {{removed}} supprimés, {{fails}} échoués",
"Best for single-tenant deployments. Pricing and billing options stay hidden.": "Idéal pour les déploiements mono-utilisateur. Les options de tarification et de facturation restent masquées.",
@@ -677,6 +688,7 @@
"Bind WeChat Account": "Lier le compte WeChat",
"Binding Information": "Informations de liaison",
"Binding successful!": "Liaison réussie !",
+ "Binding Type": "Type de liaison",
"Binding your {{provider}} account": "Liaison de votre compte {{provider}}",
"Binding...": "Liaison en cours...",
"Bindings": "Liages",
@@ -782,6 +794,7 @@
"Change language": "Changer de langue",
"Change Password": "Changer le mot de passe",
"Change To": "Changer en",
+ "Changed / Total": "Modifiés / Total",
"Changed Fields": "Champs modifiés",
"Changes are written to the settings draft on save.": "Les modifications sont écrites dans le brouillon des paramètres lors de l’enregistrement.",
"Changing...": "Modification en cours...",
@@ -928,6 +941,7 @@
"Click to view full error message": "Cliquez pour voir le message d'erreur complet",
"Click to view full prompt": "Cliquez pour voir l'invite complète",
"Click to view image": "Cliquer pour voir l’image",
+ "Client": "Client",
"Client header value": "Valeur d'en-tête client",
"Client ID": "ID client",
"Client model": "Modèle client",
@@ -990,6 +1004,7 @@
"Complete Order": "Compléter la commande",
"Complete these steps to finish the initial installation.": "Suivez ces étapes pour terminer l'installation initiale.",
"Completed": "Terminé",
+ "Completed security verification": "Vérification de sécurité terminée",
"Completed top-up order for the user": "Commande de recharge complétée pour l'utilisateur",
"Completion": "Achèvement",
"Completion price": "Prix de complétion",
@@ -1132,6 +1147,7 @@
"Copied: {{model}}": "Copié : {{model}}",
"Copied!": "Copié !",
"Copy": "Copier",
+ "Copy {{field}}": "Copier {{field}}",
"Copy {{name}} pricing": "Copier la tarification de {{name}}",
"Copy a request header": "Copier un en-tête de requête",
"Copy All": "Tout copier",
@@ -1264,6 +1280,7 @@
"Current Password": "Mot de passe actuel",
"Current Price": "Prix actuel",
"Current quota": "Quota actuel",
+ "Current token": "Jeton actuel",
"Current Value": "Valeur actuelle",
"Current version": "Version actuelle",
"Current:": "Actuel :",
@@ -1419,6 +1436,7 @@
"Deployment Region *": "Région de déploiement *",
"Deployment requested": "Déploiement demandé",
"Deployments": "Déploiements",
+ "Deprecated": "Obsolète",
"Desc": "Desc.",
"Describe": "Décrire",
"Describe this model...": "Décrire ce modèle...",
@@ -1465,6 +1483,7 @@
"Disabled lanes are omitted on save.": "Les voies désactivées sont omises à l’enregistrement.",
"Disabled Reason": "Raison de la désactivation",
"Disabled Time": "Heure de désactivation",
+ "Disabled two-factor authentication": "Authentification à deux facteurs désactivée",
"Disabled; fell back to factory": "Désactivé ; retour à la version intégrée",
"Disabled; platform unavailable": "Désactivé ; plateforme indisponible",
"Disabling...": "Désactivation en cours...",
@@ -1688,6 +1707,8 @@
"Enable test mode for Creem payments": "Activer le mode test pour les paiements Creem",
"Enable this key?": "Activer cette clé ?",
"Enable Turnstile": "Activer Turnstile",
+ "Enable Two-factor Authentication or Passkey in Security & Access to continue.": "Activez la double authentification ou une clé d’accès dans « Sécurité et accès » pour continuer.",
+ "Enable Two-factor Authentication or Passkey in Security & Access to unlock sensitive operations.": "Activez la double authentification ou une clé d’accès dans « Sécurité et accès » pour autoriser les opérations sensibles.",
"Enable Two-factor Authentication or Passkey in your profile to unlock sensitive operations.": "Activez l'authentification à deux facteurs ou Passkey dans votre profil pour déverrouiller les opérations sensibles.",
"Enable unlimited quota for this API key": "Activer le quota illimité pour cette clé API",
"Enable violation deduction": "Activer la déduction pour violation",
@@ -1699,6 +1720,7 @@
"Enabled all channels with tag: {{tag}}": "Tous les canaux avec le tag {{tag}} ont été activés",
"Enabled channels with tag {{tag}}": "Canaux avec l'étiquette {{tag}} activés",
"Enabled Status": "Statut activé",
+ "Enabled two-factor authentication": "Authentification à deux facteurs activée",
"Enabling...": "Activation en cours...",
"Encourages introducing new topics": "Encourage l'introduction de nouveaux sujets",
"Encourages new topics": "Encourage de nouveaux sujets",
@@ -1706,6 +1728,7 @@
"End Error": "Erreur finale",
"End Reason": "Raison de fin",
"End Time": "Heure de fin",
+ "End time must be after start time": "La fin doit être postérieure au début",
"End-user identifier for abuse monitoring": "Identifiant d'utilisateur final pour la surveillance des abus",
"Endpoint": "Point d'accès",
"Endpoint config": "Configuration de l'endpoint",
@@ -1818,6 +1841,7 @@
"Estimated cost": "Coût estimé",
"Estimated quota cost": "Coût de quota estimé",
"Evaluate fields from the provider user info response. Conditions and nested groups use and/or logic.": "Évalue les champs de la réponse d'informations utilisateur du fournisseur. Les conditions et groupes imbriqués utilisent la logique and/or.",
+ "Event": "Événement",
"Every group name in the pricing table can be used in two places: on a user (the user group, assigned by admins) and on a token (the token group, chosen when creating the token). Same name pool, two different jobs.": "Chaque nom de groupe du tableau tarifaire peut être utilisé à deux endroits : sur un utilisateur (groupe d’utilisateurs, attribué par les admins) et sur un jeton (groupe de jetons, choisi à la création du jeton). Même ensemble de noms, deux rôles différents.",
"Every other device will lose access immediately. This device will remain signed in.": "Tous les autres appareils perdront immédiatement l’accès. Cet appareil restera connecté.",
"Everything configured for this group, in one place.": "Toute la configuration de ce groupe, au même endroit.",
@@ -1950,6 +1974,7 @@
"Failed to load": "Échec du chargement",
"Failed to load API keys": "Échec du chargement des Clés API",
"Failed to load artifacts": "Échec du chargement des artefacts",
+ "Failed to load audit records": "Échec du chargement des audits",
"Failed to load billing history": "Échec du chargement de l'historique de facturation",
"Failed to load enabled models": "Échec du chargement des modèles activés",
"Failed to load home page content": "Échec du chargement du contenu de la page d'accueil",
@@ -1965,6 +1990,7 @@
"Failed to load setup data": "Échec du chargement des données de configuration",
"Failed to load setup status": "Échec du chargement de l'état de configuration",
"Failed to load tag data": "Échec du chargement des données de tags",
+ "Failed to load token status": "Échec du chargement de l’état du jeton",
"Failed to load users": "Échec du chargement des utilisateurs",
"Failed to parse group items": "Échec de l'analyse des éléments de groupe",
"Failed to parse JSON file: {{name}}": "Échec de l'analyse du fichier JSON : {{name}}",
@@ -1979,6 +2005,7 @@
"Failed to reset model ratios": "Échec de la réinitialisation des ratios du modèle",
"Failed to reset Passkey": "Échec de la réinitialisation de la Passkey",
"Failed to reset usage": "Échec de la réinitialisation de l’utilisation",
+ "Failed to revoke token": "Échec de la révocation du jeton",
"Failed to save": "Échec de la sauvegarde",
"Failed to save announcements": "Échec de la sauvegarde des annonces",
"Failed to save API info": "Échec de l'enregistrement des informations API",
@@ -2054,6 +2081,7 @@
"Fetching upstream ratios...": "Récupération des ratios amont...",
"Fetching...": "Récupération…",
"field": "champ",
+ "Field change details were not recorded": "Le détail des champs modifiés n’a pas été enregistré",
"Field Mapping": "Mappage de champs",
"Field passthrough controls": "Contrôles de transmission des champs",
"Field Path": "Chemin du champ",
@@ -2202,12 +2230,15 @@
"Gemini will continue to auto-detect thinking mode even with the adapter disabled. Enable this only when you need finer control over pricing and budgeting.": "Gemini continuera à détecter automatiquement le mode de pensée même avec l'adaptateur désactivé. Activez ceci uniquement lorsque vous avez besoin d'un contrôle plus fin sur la tarification et le budget.",
"General": "Général",
"General Settings": "Paramètres généraux",
+ "Generate": "Générer",
"Generate and manage your API access token": "Générer et gérer votre jeton d'accès API",
"Generate Lyrics": "Générer des paroles",
"Generate Music": "Générer de la musique",
"Generate new backup codes for account recovery": "Générer de nouveaux codes de secours pour la récupération du compte",
"Generate New Codes": "Générer de nouveaux codes",
"Generate tokens from the Tokens page; you can scope them to specific models, groups, IPs, and rate-limits.": "Générez des jetons depuis la page Jetons ; vous pouvez les restreindre par modèle, groupe, IP et limites de débit.",
+ "Generated": "Généré",
+ "Generated a system access token": "Jeton d’accès système généré",
"Generated image": "Image générée",
"Generating new codes will invalidate all existing backup codes.": "La génération de nouveaux codes invalidera tous les codes de sauvegarde existants.",
"Generating...": "Génération...",
@@ -2322,6 +2353,7 @@
"High-risk status code retry risk check 4": "J'accepte volontairement les risques pour la stabilité du système, notamment les délais d'attente sévères côté client et les pannes possibles du service, et j'assume toute accumulation de requêtes ou indisponibilité qui en résulterait.",
"High-risk status code retry risk disclaimer": "### ⚠️ Opération à haut risque : avertissement et clause de non-responsabilité pour la relance des codes 504/524\n\nPar défaut, ce projet ne relance pas les codes `400` (requête incorrecte), `504` (délai d'attente de la passerelle) et `524` (délai d'attente dépassé). Les codes 504 et 524 signifient généralement que **la requête est bien parvenue au service IA en amont et que le traitement avait commencé, mais que la connexion s'est fermée parce que le traitement en amont a pris trop de temps**. Cela indique généralement un goulot d'étranglement du service en amont.\n\nActiver la redirection ou la relance pour ces codes de délai d'attente est une **opération à risque extrêmement élevé**. Avant de l'activer, vous devez lire attentivement et comprendre les conséquences suivantes :\n\n#### 1. Risques principaux (à lire attentivement)\n\n1. 💸 Facturation double ou multiple : la plupart des fournisseurs d'IA en amont **facturent quand même** les requêtes dont le traitement a commencé mais qui ont été interrompues par un délai réseau (504/524). Une relance envoie une toute nouvelle requête en amont et peut entraîner une **facturation double ou multiple**.\n2. ⏳ Délai d'attente sévère côté client : lorsqu'une requête a déjà expiré, les relances peuvent multiplier la latence totale et provoquer des délais sévères ou inacceptables pour le client final.\n3. 💥 Accumulation de requêtes et panne du service : les relances forcées occupent plus longtemps les threads et les connexions. En cas de forte concurrence, cela peut provoquer une importante **accumulation de requêtes**, épuiser les ressources, déclencher des défaillances en cascade et faire tomber le proxy.\n\n#### 2. Acceptation des risques\n\nSi vous choisissez malgré tout d'activer cette fonction, vous reconnaissez les éléments suivants :",
"Higher priority channels are selected first": "Les canaux de priorité plus élevée sont sélectionnés en premier",
+ "Historical tokens": "Anciens jetons",
"Historical Usage": "Utilisation historique",
"History of MjProxy-style image tasks.": "Historique des tâches d'images style MjProxy.",
"Hit criteria: If cached tokens exist in usage, it counts as a hit.": "Critère de hit : si des tokens en cache existent dans l'utilisation, cela compte comme un hit.",
@@ -2577,7 +2609,9 @@
"Last Seen": "Dernier signal",
"Last Tested": "Dernier testé",
"Last updated:": "Dernière mise à jour :",
+ "Last used": "Dernière utilisation",
"Last Used": "Dernière utilisation",
+ "Last used IP": "Dernière adresse IP",
"Last used:": "Dernière utilisation :",
"Latency": "Latence",
"Latency check": "Contrôle de latence",
@@ -2679,11 +2713,13 @@
"Logged in successfully via {{method}}": "Connexion réussie via {{method}}",
"Logic": "Logique",
"Login": "Connexion",
+ "Login & Authentication": "Connexion et authentification",
"Login failed": "Échec de la connexion",
"Login flow expired. Please sign in again.": "Le processus de connexion a expiré. Veuillez vous reconnecter.",
"Login Info": "Informations de connexion",
"Login Method": "Méthode de connexion",
"Login sessions": "Sessions de connexion",
+ "Login, security and access records": "Historique des connexions, de la sécurité et des accès",
"Logo": "Logo",
"Logo URL": "URL du logo",
"Logs": "Journaux",
@@ -2779,6 +2815,7 @@
"Merge into Other": "Fusionner dans Autres",
"Message Priority": "Priorité du message",
"Metadata": "Métadonnées",
+ "Method": "Méthode",
"min downtime": "min d'interruption",
"Min Top-up": "Recharge min.",
"Min Top-up:": "Recharge min. :",
@@ -2993,6 +3030,7 @@
"New Password": "Nouveau mot de passe",
"New password must be different from current password": "Le nouveau mot de passe doit être différent de l'actuel",
"New User Quota": "Quota nouvel utilisateur",
+ "New value": "Nouvelle valeur",
"New version available: {{version}}": "Nouvelle version disponible : {{version}}",
"NewAPI": "NewAPI",
"Newly released": "Récemment publiés",
@@ -3133,6 +3171,7 @@
"No Quota": "Aucun quota",
"No ratio differences found": "Aucune différence de ratio trouvée",
"No recent usage": "Aucune utilisation récente",
+ "No records": "Aucun enregistrement",
"No records found. Try adjusting your filters.": "Aucun enregistrement trouvé. Essayez d'ajuster vos filtres.",
"No redemption codes available. Create your first redemption code to get started.": "Aucun code d'échange disponible. Créez votre premier code d'échange pour commencer.",
"No Redemption Codes Found": "Aucun code d'échange trouvé",
@@ -3192,6 +3231,7 @@
"Not configured": "Non configuré",
"Not declared": "Non déclaré",
"Not Equals": "Différent de",
+ "Not generated": "Non généré",
"Not in pricing table": "Absent du tableau tarifaire",
"Not included": "Non inclus",
"Not installed": "Non installé",
@@ -3285,6 +3325,7 @@
"Only successful requests": "Uniquement les requêtes réussies",
"Only successful requests count toward this limit.": "Seules les requêtes réussies comptent pour cette limite.",
"Only the last {{value}} log files will be retained; the rest will be deleted.": "Seuls les {{value}} derniers fichiers journaux seront conservés ; le reste sera supprimé.",
+ "Only used to find historical logs. New records are available in Audit Logs.": "Uniquement pour consulter les anciens journaux. Les nouveaux événements figurent dans les journaux d’audit.",
"Oops! Page Not Found!": "Oups ! Page introuvable !",
"Oops! Something went wrong": "Oups ! Quelque chose s'est mal passé",
"Open": "Ouvrir",
@@ -3325,11 +3366,13 @@
"Operate channels": "Exploiter les canaux",
"Operation": "Opération",
"operation and charging behavior": "à l’exploitation et à la facturation",
+ "Operation audit": "Audit des opérations",
"Operation Audit Info": "Informations d'audit d'opération",
"Operation failed": "Opération échouée",
"Operation successful": "Opération réussie",
"Operation Type": "Type d'opération",
"Operations": "Opérations",
+ "Operator": "Auteur de l’opération",
"Operator Admin": "Admin opérateur",
"Optimize system for self-hosted single-user usage": "Optimiser le système pour une utilisation auto-hébergée par un seul utilisateur",
"Optimized network architecture ensures millisecond response times": "Architecture réseau optimisée garantissant des temps de réponse en millisecondes",
@@ -3545,6 +3588,7 @@
"Pick or create both a store and a product before saving.": "Choisissez ou créez à la fois une boutique et un produit avant d’enregistrer.",
"Ping Interval (seconds)": "Intervalle de ping (secondes)",
"Plan": "Plan",
+ "Plan ID": "ID du forfait",
"Plan Name": "Nom du plan",
"Plan Price": "Prix du forfait",
"Plan price must be greater than zero": "Le prix du forfait doit être supérieur à zéro",
@@ -3684,6 +3728,7 @@
"Previous": "Précédent",
"Previous branch": "Branche précédente",
"Previous page": "Page précédente",
+ "Previous value": "Valeur précédente",
"Price": "Prix",
"Price ($/1K calls)": "Prix ($/1K appels)",
"Price (local currency / USD)": "Prix (devise locale / USD)",
@@ -3719,6 +3764,7 @@
"Priority level from 0 (lowest) to 10 (highest), default is 5": "Niveau de priorité de 0 (le plus bas) à 10 (le plus élevé), la valeur par défaut est 5",
"Priority order for automatic group assignment. New tokens rotate through this list.": "Ordre de priorité pour l'attribution automatique des groupes. Les nouveaux jetons alternent dans cette liste.",
"Priority order for tokens in the auto group. The system tries groups from top to bottom.": "Ordre de priorité pour les jetons du groupe auto. Le système essaie les groupes de haut en bas.",
+ "Privacy": "Confidentialité",
"Privacy Policy": "Politique de confidentialité",
"Private Deployment URL": "URL de déploiement privé",
"Processing OAuth response...": "Traitement de la réponse OAuth...",
@@ -3910,6 +3956,7 @@
"Regenerate access token?": "Régénérer le jeton d'accès ?",
"Regenerate Backup Codes": "Régénérer les codes de secours",
"Regenerate token": "Régénérer le jeton",
+ "Regenerated two-factor backup codes": "Codes de secours à deux facteurs régénérés",
"Regenerating immediately invalidates any existing token.": "La régénération invalide immédiatement tout jeton existant.",
"Regex": "Regex",
"Regex Pattern": "Expression régulière",
@@ -4043,6 +4090,7 @@
"Reset balance and used quota": "Réinitialiser le solde et le quota utilisé",
"Reset completed": "Réinitialisation terminée",
"Reset completed. Latest usage has been refreshed.": "Réinitialisation terminée. La dernière utilisation a été actualisée.",
+ "Reset Count": "Nombre de réinitialisations",
"Reset count:": "Nombre de réinitialisations :",
"Reset Credit": "Crédit de réinitialisation",
"Reset Credits": "Crédits de réinitialisation",
@@ -4105,7 +4153,9 @@
"Review your payment details": "Vérifier vos détails de paiement",
"Review your purchase details before proceeding.": "Vérifiez les détails de votre achat avant de continuer.",
"Revoke": "Révoquer",
+ "Revoke access token?": "Révoquer le jeton d’accès ?",
"Revoke session?": "Révoquer cette session ?",
+ "Revoked the system access token": "Jeton d’accès système révoqué",
"Rewards will be added directly to your balance": "Les récompenses seront ajoutées directement à votre solde",
"Rewrite callback URLs to the local server": "Réécrire les URLs de callback vers le serveur local",
"Right to Left": "De droite à gauche",
@@ -4255,6 +4305,7 @@
"Secure & Reliable": "Sécurisé et fiable",
"Secured": "Sécurisé",
"Security": "Sécurité",
+ "Security & Access": "Sécurité et accès",
"Security & Limits": "Sécurité et limites",
"Security Check": "Vérification de sécurité",
"Security verification": "Vérification de sécurité",
@@ -4372,6 +4423,7 @@
"Session expired!": "Session expirée !",
"Session expired?": "Session expirée ?",
"Session signed out": "Session déconnectée",
+ "Sessions & Access": "Sessions et accès",
"Set": "Définir",
"Set a discount rate for a specific recharge amount threshold.": "Définir un taux de réduction pour un seuil de montant de recharge spécifique.",
"Set a secure password (min. 8 characters)": "Définir un mot de passe sécurisé (min. 8 caractères)",
@@ -4486,6 +4538,7 @@
"Source Endpoint": "Point source",
"Source Field": "Champ source",
"Source Header": "En-tête source",
+ "Source ID": "ID source",
"Source name": "Nom de la source",
"sources": "sources",
"Space-separated OAuth scopes": "Scopes OAuth séparés par des espaces",
@@ -4515,7 +4568,9 @@
"Start for free with generous limits. No credit card required.": "Commencez gratuitement avec des limites généreuses. Aucune carte de crédit requise.",
"Start Time": "Heure de début",
"Started": "Démarré",
+ "Started two-factor authentication setup": "Configuration de l’authentification à deux facteurs commencée",
"STARTTLS": "STARTTLS",
+ "State changed": "État modifié",
"Static page describing the platform.": "Page statique décrivant la plateforme.",
"Statistical count": "Nombre statistique",
"Statistical quota": "Quota statistique",
@@ -4664,6 +4719,7 @@
"Tags": "Balises",
"Take photo": "Prendre une photo",
"Take screenshot": "Prendre une capture d'écran",
+ "Target": "Cible",
"Target Endpoint": "Point cible",
"Target Field": "Champ cible",
"Target Field Path": "Chemin du champ cible",
@@ -4788,6 +4844,7 @@
"Third-party": "Tiers",
"Third-party — use at your own risk": "Tiers — à vos risques et périls",
"Third-party account bindings (read-only, managed by user in profile settings)": "Liaisons de comptes tiers (lecture seule, gérées par l'utilisateur dans les paramètres de profil)",
+ "Third-party account bindings (read-only, managed by user in Security & Access)": "Comptes tiers liés (lecture seule, gérés par l’utilisateur dans « Sécurité et accès »)",
"Third-party Payment Config": "Configuration de paiement tiers",
"Third-party plugin risk": "Risque des plugins tiers",
"Third-party source risk": "Risque des sources tierces",
@@ -4924,6 +4981,7 @@
"Token estimator": "Estimation des jetons",
"Token group": "Groupe de jetons",
"Token has no group": "Jeton sans groupe",
+ "Token identifier": "Identifiant du jeton",
"Token Limits": "Limites de jetons",
"Token management": "Gestion des jetons",
"Token Management": "Gestion des tokens",
@@ -4937,6 +4995,7 @@
"Token price for image input.": "Prix par token pour l’entrée image.",
"Token prices": "Prix des tokens",
"Token regenerated and copied to clipboard": "Jeton régénéré et copié dans le presse-papiers",
+ "Token scope": "Portée des jetons",
"Token share by model author across the last 24 hours": "Part des tokens par auteur de modèle sur les dernières 24 heures",
"Token share by model author across the past few weeks": "Part des tokens par auteur de modèle au cours des dernières semaines",
"Token share by model author across the past month": "Part des tokens par auteur de modèle au cours du dernier mois",
@@ -4986,6 +5045,7 @@
"Top-up ratio": "Taux de recharge",
"Topup Amount": "Montant de la recharge",
"Total": "Total",
+ "Total {{count}} records": "{{count}} enregistrements au total",
"Total Allocated": "Total alloué",
"Total check-ins": "Total des connexions",
"Total consumed": "Consommé total",
@@ -5133,6 +5193,7 @@
"Updated a subscription plan": "Forfait d'abonnement mis à jour",
"Updated a vendor": "Fournisseur mis à jour",
"Updated channel {{name}} (ID: {{id}})": "Canal {{name}} mis à jour (ID : {{id}})",
+ "Updated channel status (ID: {{id}})": "Statut du canal mis à jour (ID : {{id}})",
"Updated daily": "Mis à jour quotidiennement",
"Updated successfully": "Mise à jour réussie",
"Updated system setting {{key}}": "Paramètre système {{key}} mis à jour",
@@ -5260,6 +5321,7 @@
"User Analytics": "Statistiques utilisateur",
"User Consumption Ranking": "Classement de consommation",
"User Consumption Trend": "Tendance de consommation",
+ "User Count": "Nombre d’utilisateurs",
"User created successfully": "Utilisateur créé avec succès",
"User dashboard and quota controls.": "Tableau de bord utilisateur et contrôles de quotas.",
"User deleted successfully": "Utilisateur supprimé avec succès",
@@ -5354,6 +5416,7 @@
"Vidu": "Vidu",
"View": "Afficher",
"View all currently available models": "Voir tous les modèles actuellement disponibles",
+ "View audit records from user and admin roles. Root records are always excluded.": "Consulter les audits des rôles user et admin. Les événements du rôle root sont toujours exclus.",
"View channel lists and details without secrets.": "Afficher les listes et détails des canaux sans secrets.",
"View channel secrets": "Voir les secrets des canaux",
"View detailed information about this user including balance, usage statistics, and invitation details.": "Afficher des informations détaillées sur cet utilisateur, y compris le solde, les statistiques d'utilisation et les détails d'invitation.",
@@ -5363,7 +5426,9 @@
"View logs": "Voir les logs",
"View mode": "Mode d'affichage",
"View model statistics and charts": "Afficher les statistiques et graphiques des modèles",
+ "View other accounts' audit logs": "Voir les journaux d’audit des autres comptes",
"View Pricing": "Voir les tarifs",
+ "View scope": "Portée de la vue",
"View the complete details for this": "Voir les détails complets de ce",
"View the complete details for this log entry": "Voir les détails complets de cette entrée de journal",
"View the complete details for this task": "Afficher tous les détails de cette tâche",
diff --git a/web/src/i18n/locales/ja.json b/web/src/i18n/locales/ja.json
index 631c54d5d6..20e7c7a408 100644
--- a/web/src/i18n/locales/ja.json
+++ b/web/src/i18n/locales/ja.json
@@ -138,15 +138,19 @@
"Access Forbidden": "アクセス禁止",
"Access Policy (JSON)": "アクセスポリシー (JSON)",
"Access previous conversations and start new ones.": "以前の会話にアクセスし、新しい会話を開始します。",
+ "Access records": "アクセス履歴",
"Access Token": "アクセストークン",
+ "Access token revoked": "アクセストークンを取り消しました",
"Access tokens are shown only once": "アクセストークンは一度だけ表示されます",
"AccessKey / SecretAccessKey": "AccessKey/SecretAccessKey",
+ "Account Actions": "アカウント操作",
"Account Binding Management": "アカウント連携管理",
"Account Bindings": "アカウントバインディング",
"Account created! Please sign in": "アカウントが作成されました!ログインしてください",
"Account deleted successfully": "アカウントが正常に削除されました",
"Account ID *": "アカウントID *",
"Account Info": "アカウント情報",
+ "Account security": "アカウントのセキュリティ",
"Account used when authenticating with the SMTP server": "SMTPサーバーで認証する際に使用されるアカウント",
"acknowledge the related legal risks": "関連する法的リスクを認識します",
"Across all groups": "全グループを通じて",
@@ -315,11 +319,13 @@
"All nodes": "すべてのノード",
"All playground messages saved in this browser will be removed. This cannot be undone.": "このブラウザに保存されたすべての Playground メッセージが削除されます。この操作は元に戻せません。",
"All requests must include": "すべてのリクエストには",
+ "All results": "すべての結果",
"All routes": "すべてのルート",
"All Status": "すべてのステータス",
"All Sync Status": "すべての同期状態",
"All systems operational": "すべて正常稼働中",
"All Tags": "すべてのタグ",
+ "All tokens": "すべてのトークン",
"All Types": "すべてのタイプ",
"All upstream data is trusted": "すべてのアップストリームデータは信頼されています",
"All users": "すべてのユーザー",
@@ -510,6 +516,10 @@
"Audio Preview": "音声プレビュー",
"Audio ratio": "音声倍率",
"Audio Tokens": "音声トークン",
+ "Audit access changed. Showing only your records.": "監査ログへのアクセス権限が変更されました。自分の記録のみ表示しています。",
+ "Audit Logs": "監査ログ",
+ "Audit metadata is unavailable": "監査の追加情報を取得できません",
+ "Audit records start after this feature was enabled. Earlier records remain in Common Logs.": "この機能の有効化以降の監査記録を表示します。それ以前の記録は通常ログに残ります。",
"Auth": "認証",
"Auth configured": "認証設定済み",
"Auth name": "認証名",
@@ -645,6 +655,7 @@
"Batch test completed: {{success}} succeeded, {{failed}} failed": "バッチテストが完了しました: {{success}} 件成功、{{failed}} 件失敗",
"Batch test stopped: {{completed}}/{{total}} completed, {{success}} succeeded, {{failed}} failed": "バッチテストを停止しました: {{completed}}/{{total}} 完了、{{success}} 件成功、{{failed}} 件失敗",
"Batch testing models...": "モデルをバッチテスト中...",
+ "Batch updated channel status ({{count}}/{{total}} changed)": "チャネルの状態を一括更新({{count}}/{{total}} 件変更)",
"Batch upstream model update": "上流モデル一括更新",
"Batch upstream model updates applied: {{channels}} channels, {{added}} added, {{removed}} removed, {{fails}} failed": "一括上流モデル更新を処理しました:{{channels}} チャネル、{{added}} 個追加、{{removed}} 個削除、{{fails}} 個失敗",
"Best for single-tenant deployments. Pricing and billing options stay hidden.": "シングルテナント環境に最適です。料金設定や請求オプションは非表示になります。",
@@ -677,6 +688,7 @@
"Bind WeChat Account": "WeChatアカウント連携",
"Binding Information": "連携情報",
"Binding successful!": "紐付けが成功しました!",
+ "Binding Type": "連携の種類",
"Binding your {{provider}} account": "{{provider}} アカウントをバインド中",
"Binding...": "連携中...",
"Bindings": "バインド",
@@ -782,6 +794,7 @@
"Change language": "言語を変更",
"Change Password": "パスワードの変更",
"Change To": "変更先",
+ "Changed / Total": "変更件数 / 合計",
"Changed Fields": "変更されたフィールド",
"Changes are written to the settings draft on save.": "保存すると変更は設定ドラフトに書き込まれます。",
"Changing...": "変更中...",
@@ -928,6 +941,7 @@
"Click to view full error message": "クリックしてエラーメッセージ全文を表示",
"Click to view full prompt": "クリックしてプロンプト全文を表示",
"Click to view image": "クリックして画像を表示",
+ "Client": "クライアント",
"Client header value": "クライアントヘッダー値",
"Client ID": "クライアントID",
"Client model": "クライアント model",
@@ -990,6 +1004,7 @@
"Complete Order": "手動チャージ",
"Complete these steps to finish the initial installation.": "初期インストールを完了するには、これらの手順を完了してください。",
"Completed": "完了",
+ "Completed security verification": "セキュリティ確認を完了しました",
"Completed top-up order for the user": "ユーザーのチャージ注文を完了しました",
"Completion": "補完",
"Completion price": "補完価格",
@@ -1132,6 +1147,7 @@
"Copied: {{model}}": "コピーしました: {{model}}",
"Copied!": "コピーしました!",
"Copy": "コピー",
+ "Copy {{field}}": "{{field}}をコピー",
"Copy {{name}} pricing": "{{name}} の料金をコピー",
"Copy a request header": "リクエストヘッダーをコピー",
"Copy All": "すべてコピー",
@@ -1264,6 +1280,7 @@
"Current Password": "現在のパスワード",
"Current Price": "現在の価格",
"Current quota": "現在のクォータ",
+ "Current token": "現在のトークン",
"Current Value": "現在の値",
"Current version": "現在のバージョン",
"Current:": "現在:",
@@ -1419,6 +1436,7 @@
"Deployment Region *": "デプロイリージョン *",
"Deployment requested": "デプロイメントが要求されました",
"Deployments": "デプロイ",
+ "Deprecated": "非推奨",
"Desc": "降順",
"Describe": "説明",
"Describe this model...": "このモデルを説明...",
@@ -1465,6 +1483,7 @@
"Disabled lanes are omitted on save.": "無効な価格レーンは保存時に省略されます。",
"Disabled Reason": "無効化の理由",
"Disabled Time": "無効化された時刻",
+ "Disabled two-factor authentication": "二要素認証を無効にしました",
"Disabled; fell back to factory": "無効;組み込み版へフォールバック",
"Disabled; platform unavailable": "無効;プラットフォーム利用不可",
"Disabling...": "無効化中...",
@@ -1688,6 +1707,8 @@
"Enable test mode for Creem payments": "Creem 決済のテストモードを有効にする",
"Enable this key?": "このキーを有効にしますか?",
"Enable Turnstile": "Turnstileを有効にする",
+ "Enable Two-factor Authentication or Passkey in Security & Access to continue.": "「セキュリティとアクセス」で二要素認証またはパスキーを有効にして続行してください。",
+ "Enable Two-factor Authentication or Passkey in Security & Access to unlock sensitive operations.": "機密性の高い操作を行うには、「セキュリティとアクセス」で二要素認証またはパスキーを有効にしてください。",
"Enable Two-factor Authentication or Passkey in your profile to unlock sensitive operations.": "機密性の高い操作を解除するには、プロフィールで二要素認証またはPasskeyを有効にしてください。",
"Enable unlimited quota for this API key": "このAPIキーの無制限のクォータを有効にする",
"Enable violation deduction": "違反料金控除を有効にする",
@@ -1699,6 +1720,7 @@
"Enabled all channels with tag: {{tag}}": "タグ「{{tag}}」の全チャネルを有効にしました",
"Enabled channels with tag {{tag}}": "タグ {{tag}} のチャネルを有効化しました",
"Enabled Status": "有効ステータス",
+ "Enabled two-factor authentication": "二要素認証を有効にしました",
"Enabling...": "有効化中...",
"Encourages introducing new topics": "新しい話題への展開を促進します",
"Encourages new topics": "新しい話題を促します",
@@ -1706,6 +1728,7 @@
"End Error": "終了エラー",
"End Reason": "終了理由",
"End Time": "終了時間",
+ "End time must be after start time": "終了時刻は開始時刻より後にしてください",
"End-user identifier for abuse monitoring": "悪用検知用のエンドユーザー識別子",
"Endpoint": "エンドポイント",
"Endpoint config": "エンドポイント設定",
@@ -1818,6 +1841,7 @@
"Estimated cost": "推定コスト",
"Estimated quota cost": "想定クォートコスト",
"Evaluate fields from the provider user info response. Conditions and nested groups use and/or logic.": "プロバイダーのユーザー情報レスポンスのフィールドを評価します。条件とネストしたグループでは and/or ロジックを使用します。",
+ "Event": "イベント",
"Every group name in the pricing table can be used in two places: on a user (the user group, assigned by admins) and on a token (the token group, chosen when creating the token). Same name pool, two different jobs.": "料金表の各グループ名は2つの場所で使えます。ユーザー側(ユーザーグループ、管理者が割り当て)とトークン側(トークングループ、トークン作成時に選択)です。同じ名前プールで、役割は2つです。",
"Every other device will lose access immediately. This device will remain signed in.": "他のすべてのデバイスは直ちにアクセスできなくなります。このデバイスはログイン状態を維持します。",
"Everything configured for this group, in one place.": "このグループのすべての設定を一か所で確認できます。",
@@ -1950,6 +1974,7 @@
"Failed to load": "読み込みに失敗しました",
"Failed to load API keys": "APIキーの読み込みに失敗しました",
"Failed to load artifacts": "成果物の読み込みに失敗しました",
+ "Failed to load audit records": "監査記録の読み込みに失敗しました",
"Failed to load billing history": "請求履歴の読み込みに失敗しました",
"Failed to load enabled models": "有効なモデルの取得に失敗しました",
"Failed to load home page content": "ホームページの内容の読み込みに失敗しました",
@@ -1965,6 +1990,7 @@
"Failed to load setup data": "セットアップデータの読み込みに失敗しました",
"Failed to load setup status": "セットアップ状態の読み込みに失敗しました",
"Failed to load tag data": "タグデータの読み込みに失敗しました",
+ "Failed to load token status": "トークン状態の読み込みに失敗しました",
"Failed to load users": "ユーザーの読み込みに失敗しました",
"Failed to parse group items": "グループアイテムの解析に失敗しました",
"Failed to parse JSON file: {{name}}": "JSONファイルの解析に失敗しました: __ PH_0 __",
@@ -1979,6 +2005,7 @@
"Failed to reset model ratios": "モデル比率のリセットに失敗しました",
"Failed to reset Passkey": "パスキーのリセットに失敗しました",
"Failed to reset usage": "使用量のリセットに失敗しました",
+ "Failed to revoke token": "トークンの取り消しに失敗しました",
"Failed to save": "保存に失敗",
"Failed to save announcements": "お知らせの保存に失敗しました",
"Failed to save API info": "API情報の保存に失敗しました",
@@ -2054,6 +2081,7 @@
"Fetching upstream ratios...": "アップストリーム比率をフェッチ中...",
"Fetching...": "取得中…",
"field": "フィールド",
+ "Field change details were not recorded": "フィールドの変更詳細は記録されていません",
"Field Mapping": "フィールドマッピング",
"Field passthrough controls": "フィールドパススルーコントロール",
"Field Path": "フィールドパス",
@@ -2202,12 +2230,15 @@
"Gemini will continue to auto-detect thinking mode even with the adapter disabled. Enable this only when you need finer control over pricing and budgeting.": "アダプターが無効になっていても、Geminiは思考モードを自動検出します。価格設定と予算編成をより細かく制御する必要がある場合にのみ、これを有効にしてください。",
"General": "一般",
"General Settings": "一般設定",
+ "Generate": "生成",
"Generate and manage your API access token": "API アクセス トークンを生成および管理",
"Generate Lyrics": "歌詞を生成",
"Generate Music": "音楽を生成",
"Generate new backup codes for account recovery": "アカウント復旧用の新しいバックアップコードを生成",
"Generate New Codes": "新しいコードを生成",
"Generate tokens from the Tokens page; you can scope them to specific models, groups, IPs, and rate-limits.": "トークンページから API キーを発行できます。モデル、グループ、IP、レート制限ごとに細かく権限を設定可能です。",
+ "Generated": "生成済み",
+ "Generated a system access token": "システムアクセストークンを生成しました",
"Generated image": "生成された画像",
"Generating new codes will invalidate all existing backup codes.": "新しいコードを生成すると、既存のすべてのバックアップコードが無効になります。",
"Generating...": "生成中...",
@@ -2322,6 +2353,7 @@
"High-risk status code retry risk check 4": "深刻なクライアントタイムアウトやサービス停止を含むシステム安定性のリスクを自発的に受け入れ、その結果生じるリクエスト滞留やサービス停止の責任を負います。",
"High-risk status code retry risk disclaimer": "### ⚠️ 高リスク操作:504/524 ステータスコードのリトライに関するリスク通知と免責事項\n\n本プロジェクトは既定で、`400`(不正なリクエスト)、`504`(ゲートウェイタイムアウト)、`524`(タイムアウト発生)をリトライしません。504 と 524 は通常、**リクエストが上流 AI サービスに正常に到達して上流側で処理が始まっているものの、上流処理に時間がかかりすぎて接続が切断された**ことを意味します。多くの場合、これは上流サービス側のボトルネックです。\n\nこれらのタイムアウトコードでリダイレクトまたはリトライを有効にすることは、**極めて高リスクな操作**です。有効にする前に、次の重大な影響を必ず読み、理解してください。\n\n#### 1. 主なリスク(必ずお読みください)\n\n1. 💸 二重・多重課金:多くの上流 AI プロバイダーは、処理開始後にネットワークタイムアウト(504/524)で中断されたリクエストにも**通常どおり課金します**。リトライでは新しい上流リクエストが送信されるため、**二重または多重課金**になる可能性があります。\n2. ⏳ 深刻なクライアントタイムアウト:すでにタイムアウトしたリクエストにリトライを重ねると、総待ち時間が何倍にもなり、最終クライアントで深刻または許容できないタイムアウトが発生する可能性があります。\n3. 💥 リクエスト滞留とサービス停止:強制リトライはスレッドと接続を長時間占有します。高負荷時には深刻な**リクエスト滞留**、リソース枯渇、連鎖障害を招き、プロキシサービスが停止する可能性があります。\n\n#### 2. リスクの確認\n\nそれでもこの機能を有効にする場合は、以下のすべてを確認したものとみなされます。",
"Higher priority channels are selected first": "優先度の高いチャネルが先に選択されます",
+ "Historical tokens": "過去のトークン",
"Historical Usage": "履歴使用状況",
"History of MjProxy-style image tasks.": "MjProxyスタイルの画像タスクの履歴。",
"Hit criteria: If cached tokens exist in usage, it counts as a hit.": "ヒット判定:usage に cached tokens が存在すればヒットとみなします。",
@@ -2577,7 +2609,9 @@
"Last Seen": "最終報告",
"Last Tested": "最終テスト日時",
"Last updated:": "最終更新日:",
+ "Last used": "最終使用",
"Last Used": "最終使用",
+ "Last used IP": "最終使用 IP",
"Last used:": "最終使用日:",
"Latency": "レイテンシ",
"Latency check": "レイテンシ確認",
@@ -2679,11 +2713,13 @@
"Logged in successfully via {{method}}": "{{method}} でログインに成功しました",
"Logic": "ロジック",
"Login": "ログイン",
+ "Login & Authentication": "ログインと認証",
"Login failed": "ログインに失敗しました",
"Login flow expired. Please sign in again.": "ログイン手続きの有効期限が切れました。もう一度サインインしてください。",
"Login Info": "ログイン情報",
"Login Method": "ログイン方法",
"Login sessions": "ログインセッション",
+ "Login, security and access records": "ログイン、セキュリティ、アクセスの記録",
"Logo": "ロゴ",
"Logo URL": "ロゴURL",
"Logs": "ログ",
@@ -2779,6 +2815,7 @@
"Merge into Other": "その他にまとめる",
"Message Priority": "メッセージの優先度",
"Metadata": "メタデータ",
+ "Method": "メソッド",
"min downtime": "分のダウンタイム",
"Min Top-up": "最低チャージ額",
"Min Top-up:": "最小チャージ額:",
@@ -2993,6 +3030,7 @@
"New Password": "新しいパスワード",
"New password must be different from current password": "新しいパスワードは現在のものと異なっていなければなりません",
"New User Quota": "新しいユーザー割り当て",
+ "New value": "新しい値",
"New version available: {{version}}": "新しいバージョンが利用可能です:{{version}}",
"NewAPI": "NewAPI",
"Newly released": "最新リリース",
@@ -3133,6 +3171,7 @@
"No Quota": "クォータなし",
"No ratio differences found": "比率の差異は見つかりませんでした",
"No recent usage": "最近の使用なし",
+ "No records": "記録がありません",
"No records found. Try adjusting your filters.": "記録が見つかりません。フィルターを調整してみてください。",
"No redemption codes available. Create your first redemption code to get started.": "利用可能な引き換えコードがありません。最初の引き換えコードを作成して開始してください。",
"No Redemption Codes Found": "引き換えコードが見つかりません",
@@ -3192,6 +3231,7 @@
"Not configured": "未設定",
"Not declared": "未宣言",
"Not Equals": "等しくない",
+ "Not generated": "未生成",
"Not in pricing table": "料金グループ表にありません",
"Not included": "未登録",
"Not installed": "未インストール",
@@ -3285,6 +3325,7 @@
"Only successful requests": "成功したリクエストのみ",
"Only successful requests count toward this limit.": "成功したリクエストのみがこの制限にカウントされます。",
"Only the last {{value}} log files will be retained; the rest will be deleted.": "最新の{{value}}個のログファイルのみ保持され、残りは削除されます。",
+ "Only used to find historical logs. New records are available in Audit Logs.": "過去のログの検索専用です。新しい記録は監査ログで確認できます。",
"Oops! Page Not Found!": "おっと!ページが見つかりません!",
"Oops! Something went wrong": "おっと!何か問題が発生しました",
"Open": "開く",
@@ -3325,11 +3366,13 @@
"Operate channels": "チャネルを運用",
"Operation": "操作",
"operation and charging behavior": "運用および課金行為に起因する法的責任を負うことを確認します",
+ "Operation audit": "操作監査",
"Operation Audit Info": "操作監査情報",
"Operation failed": "操作に失敗しました",
"Operation successful": "操作が成功しました",
"Operation Type": "操作タイプ",
"Operations": "運用",
+ "Operator": "操作者",
"Operator Admin": "オペレーター管理",
"Optimize system for self-hosted single-user usage": "セルフホスト型の単一ユーザー使用向けにシステムを最適化する",
"Optimized network architecture ensures millisecond response times": "最適化されたネットワークアーキテクチャによりミリ秒単位の応答時間を保証",
@@ -3545,6 +3588,7 @@
"Pick or create both a store and a product before saving.": "保存する前に、ストアと商品の両方を選択または作成してください。",
"Ping Interval (seconds)": "Ping間隔(秒)",
"Plan": "プラン",
+ "Plan ID": "プラン ID",
"Plan Name": "プラン名",
"Plan Price": "プラン価格",
"Plan price must be greater than zero": "プラン価格は 0 より大きい必要があります",
@@ -3684,6 +3728,7 @@
"Previous": "前へ",
"Previous branch": "前のブランチ",
"Previous page": "前のページ",
+ "Previous value": "以前の値",
"Price": "価格",
"Price ($/1K calls)": "価格($/1K 回)",
"Price (local currency / USD)": "価格 (現地通貨 / USD)",
@@ -3719,6 +3764,7 @@
"Priority level from 0 (lowest) to 10 (highest), default is 5": "優先度レベル (0が最低、10が最高、デフォルトは5)",
"Priority order for automatic group assignment. New tokens rotate through this list.": "自動グループ割り当ての優先順位。新しいトークンはこのリストをローテーションします。",
"Priority order for tokens in the auto group. The system tries groups from top to bottom.": "auto グループのトークンの優先順位。システムは上から順にグループを試します。",
+ "Privacy": "プライバシー",
"Privacy Policy": "プライバシーポリシー",
"Private Deployment URL": "プライベートデプロイメントURL",
"Processing OAuth response...": "OAuth応答を処理中...",
@@ -3910,6 +3956,7 @@
"Regenerate access token?": "アクセストークンを再生成しますか?",
"Regenerate Backup Codes": "バックアップコードを再生成",
"Regenerate token": "トークンを再生成",
+ "Regenerated two-factor backup codes": "二要素認証のバックアップコードを再生成しました",
"Regenerating immediately invalidates any existing token.": "再生成すると、既存のトークンは直ちに無効になります。",
"Regex": "正規表現",
"Regex Pattern": "正規表現パターン",
@@ -4043,6 +4090,7 @@
"Reset balance and used quota": "残高と使用済みクォータをリセット",
"Reset completed": "リセット完了",
"Reset completed. Latest usage has been refreshed.": "リセットが完了しました。最新の使用状況を更新しました。",
+ "Reset Count": "リセット件数",
"Reset count:": "リセット回数:",
"Reset Credit": "リセット回数",
"Reset Credits": "リセット回数",
@@ -4105,7 +4153,9 @@
"Review your payment details": "支払い詳細を確認",
"Review your purchase details before proceeding.": "続行前に購入詳細を確認してください。",
"Revoke": "取り消す",
+ "Revoke access token?": "アクセストークンを取り消しますか?",
"Revoke session?": "このセッションを取り消しますか?",
+ "Revoked the system access token": "システムアクセストークンを取り消しました",
"Rewards will be added directly to your balance": "報酬は直接残高に追加されます",
"Rewrite callback URLs to the local server": "コールバック URL をローカルサーバーに書き換え",
"Right to Left": "右から左",
@@ -4255,6 +4305,7 @@
"Secure & Reliable": "セキュア&信頼性",
"Secured": "保護済み",
"Security": "セキュリティ",
+ "Security & Access": "セキュリティとアクセス",
"Security & Limits": "セキュリティと制限",
"Security Check": "セキュリティチェック",
"Security verification": "セキュリティ確認",
@@ -4372,6 +4423,7 @@
"Session expired!": "セッションが期限切れです!",
"Session expired?": "セッションが期限切れになりましたか?",
"Session signed out": "セッションからサインアウトしました",
+ "Sessions & Access": "セッションとアクセス",
"Set": "設定",
"Set a discount rate for a specific recharge amount threshold.": "特定のチャージ金額のしきい値に対して割引率を設定します。",
"Set a secure password (min. 8 characters)": "安全なパスワードを設定してください (最低8文字)",
@@ -4486,6 +4538,7 @@
"Source Endpoint": "ソースエンドポイント",
"Source Field": "コピー元フィールド",
"Source Header": "コピー元ヘッダー",
+ "Source ID": "コピー元 ID",
"Source name": "ソース名",
"sources": "ソース",
"Space-separated OAuth scopes": "スペース区切りのOAuthスコープ",
@@ -4515,7 +4568,9 @@
"Start for free with generous limits. No credit card required.": "豊富な無料枠で始められます。クレジットカードは不要です。",
"Start Time": "開始時間",
"Started": "起動時刻",
+ "Started two-factor authentication setup": "二要素認証の設定を開始しました",
"STARTTLS": "STARTTLS",
+ "State changed": "状態の変更",
"Static page describing the platform.": "プラットフォームを説明する静的ページ。",
"Statistical count": "統計数",
"Statistical quota": "統計クォータ",
@@ -4664,6 +4719,7 @@
"Tags": "タグ",
"Take photo": "写真を撮る",
"Take screenshot": "スクリーンショットを撮る",
+ "Target": "操作対象",
"Target Endpoint": "ターゲットエンドポイント",
"Target Field": "コピー先フィールド",
"Target Field Path": "ターゲットフィールドパス",
@@ -4788,6 +4844,7 @@
"Third-party": "サードパーティ",
"Third-party — use at your own risk": "サードパーティ — 自己責任",
"Third-party account bindings (read-only, managed by user in profile settings)": "サードパーティアカウントのバインディング(読み取り専用、プロファイル設定でユーザーが管理)",
+ "Third-party account bindings (read-only, managed by user in Security & Access)": "外部アカウント連携(読み取り専用、ユーザーが「セキュリティとアクセス」で管理)",
"Third-party Payment Config": "サードパーティ決済設定",
"Third-party plugin risk": "サードパーティプラグインのリスク",
"Third-party source risk": "サードパーティソースのリスク",
@@ -4924,6 +4981,7 @@
"Token estimator": "トークン見積り",
"Token group": "トークングループ",
"Token has no group": "トークンにグループなし",
+ "Token identifier": "トークン識別子",
"Token Limits": "トークン制限",
"Token management": "トークン管理",
"Token Management": "トークン管理",
@@ -4937,6 +4995,7 @@
"Token price for image input.": "画像入力のトークン価格。",
"Token prices": "トークン価格",
"Token regenerated and copied to clipboard": "トークンが再生成され、クリップボードにコピーされました",
+ "Token scope": "トークンの範囲",
"Token share by model author across the last 24 hours": "過去 24 時間におけるモデル提供者別のトークンシェア",
"Token share by model author across the past few weeks": "過去数週間におけるモデル提供者別のトークンシェア",
"Token share by model author across the past month": "過去 1 か月におけるモデル提供者別のトークンシェア",
@@ -4986,6 +5045,7 @@
"Top-up ratio": "チャージ倍率",
"Topup Amount": "チャージ額",
"Total": "合計",
+ "Total {{count}} records": "全 {{count}} 件",
"Total Allocated": "総割り当て",
"Total check-ins": "総チェックイン数",
"Total consumed": "合計消費量",
@@ -5133,6 +5193,7 @@
"Updated a subscription plan": "サブスクリプションプランを更新しました",
"Updated a vendor": "ベンダーを更新しました",
"Updated channel {{name}} (ID: {{id}})": "チャネル {{name}} を更新しました(ID: {{id}})",
+ "Updated channel status (ID: {{id}})": "チャネルの状態を更新(ID: {{id}})",
"Updated daily": "毎日更新",
"Updated successfully": "正常に更新されました",
"Updated system setting {{key}}": "システム設定 {{key}} を更新しました",
@@ -5260,6 +5321,7 @@
"User Analytics": "ユーザー統計",
"User Consumption Ranking": "ユーザー消費ランキング",
"User Consumption Trend": "ユーザー消費トレンド",
+ "User Count": "ユーザー数",
"User created successfully": "ユーザーの作成に成功しました",
"User dashboard and quota controls.": "ユーザーダッシュボードとクォータ制御。",
"User deleted successfully": "ユーザーを削除しました",
@@ -5354,6 +5416,7 @@
"Vidu": "Vidu",
"View": "表示",
"View all currently available models": "現在利用可能なすべてのモデルを表示",
+ "View audit records from user and admin roles. Root records are always excluded.": "user と admin ロールの監査記録を表示します。root ロールの記録は常に除外されます。",
"View channel lists and details without secrets.": "シークレットを含まないチャネル一覧と詳細を表示します。",
"View channel secrets": "チャンネルシークレットを表示",
"View detailed information about this user including balance, usage statistics, and invitation details.": "残高、使用統計、招待の詳細など、このユーザーに関する詳細情報を表示します。",
@@ -5363,7 +5426,9 @@
"View logs": "ログを表示",
"View mode": "表示モード",
"View model statistics and charts": "モデルの統計とグラフを表示",
+ "View other accounts' audit logs": "他のアカウントの監査ログを表示",
"View Pricing": "価格を見る",
+ "View scope": "表示範囲",
"View the complete details for this": "この",
"View the complete details for this log entry": "このログエントリの完全な詳細を表示",
"View the complete details for this task": "このタスクの完全な詳細を表示します",
diff --git a/web/src/i18n/locales/ru.json b/web/src/i18n/locales/ru.json
index aeabf44fd4..c62554b09b 100644
--- a/web/src/i18n/locales/ru.json
+++ b/web/src/i18n/locales/ru.json
@@ -138,15 +138,19 @@
"Access Forbidden": "Доступ запрещен",
"Access Policy (JSON)": "Политика доступа (JSON)",
"Access previous conversations and start new ones.": "Доступ к предыдущим разговорам и начало новых.",
+ "Access records": "История доступа",
"Access Token": "Токен доступа",
+ "Access token revoked": "Токен доступа отозван",
"Access tokens are shown only once": "Токены доступа отображаются только один раз",
"AccessKey / SecretAccessKey": "AccessKey / SecretAccessKey",
+ "Account Actions": "Действия с аккаунтом",
"Account Binding Management": "Управление привязкой аккаунта",
"Account Bindings": "Привязки аккаунта",
"Account created! Please sign in": "Аккаунт создан! Пожалуйста, войдите в систему",
"Account deleted successfully": "Аккаунт успешно удалён",
"Account ID *": "ID аккаунта *",
"Account Info": "Информация об аккаунте",
+ "Account security": "Безопасность аккаунта",
"Account used when authenticating with the SMTP server": "Учетная запись, используемая при аутентификации с SMTP-сервером",
"acknowledge the related legal risks": "признаю связанные правовые риски",
"Across all groups": "По всем группам",
@@ -315,11 +319,13 @@
"All nodes": "Все узлы",
"All playground messages saved in this browser will be removed. This cannot be undone.": "Все сообщения Playground, сохраненные в этом браузере, будут удалены. Это действие нельзя отменить.",
"All requests must include": "Все запросы должны содержать",
+ "All results": "Все результаты",
"All routes": "Все маршруты",
"All Status": "Все статусы",
"All Sync Status": "Все статусы синхронизации",
"All systems operational": "Все системы работают штатно",
"All Tags": "Все теги",
+ "All tokens": "Все токены",
"All Types": "Все типы",
"All upstream data is trusted": "Все вышестоящие данные являются доверенными",
"All users": "Все пользователи",
@@ -510,6 +516,10 @@
"Audio Preview": "Предпросмотр аудио",
"Audio ratio": "Коэффициент аудио",
"Audio Tokens": "Аудио токены",
+ "Audit access changed. Showing only your records.": "Права доступа к аудиту изменились. Показаны только ваши записи.",
+ "Audit Logs": "Журнал аудита",
+ "Audit metadata is unavailable": "Дополнительные сведения аудита недоступны",
+ "Audit records start after this feature was enabled. Earlier records remain in Common Logs.": "Аудит ведётся с момента включения этой функции. Более ранние записи остаются в общих журналах.",
"Auth": "Аутентификация",
"Auth configured": "Аутентификация настроена",
"Auth name": "Имя auth",
@@ -645,6 +655,7 @@
"Batch test completed: {{success}} succeeded, {{failed}} failed": "Пакетный тест завершен: {{success}} успешно, {{failed}} с ошибкой",
"Batch test stopped: {{completed}}/{{total}} completed, {{success}} succeeded, {{failed}} failed": "Пакетный тест остановлен: {{completed}}/{{total}} завершено, {{success}} успешно, {{failed}} с ошибкой",
"Batch testing models...": "Пакетное тестирование моделей...",
+ "Batch updated channel status ({{count}}/{{total}} changed)": "Массовое обновление статусов каналов (изменено: {{count}}/{{total}})",
"Batch upstream model update": "Пакетное обновление вышестоящих моделей",
"Batch upstream model updates applied: {{channels}} channels, {{added}} added, {{removed}} removed, {{fails}} failed": "Пакетное обновление моделей: {{channels}} каналов, {{added}} добавлено, {{removed}} удалено, {{fails}} ошибок",
"Best for single-tenant deployments. Pricing and billing options stay hidden.": "Лучший вариант для однопользовательских развёртываний. Опции ценообразования и биллинга будут скрыты.",
@@ -677,6 +688,7 @@
"Bind WeChat Account": "Привязка аккаунта WeChat",
"Binding Information": "Информация о привязке",
"Binding successful!": "Привязка успешна!",
+ "Binding Type": "Тип привязки",
"Binding your {{provider}} account": "Привязка вашего аккаунта {{provider}}",
"Binding...": "Привязка...",
"Bindings": "Привязки",
@@ -782,6 +794,7 @@
"Change language": "Изменить язык",
"Change Password": "Изменить пароль",
"Change To": "Изменить на",
+ "Changed / Total": "Изменено / Всего",
"Changed Fields": "Изменённые поля",
"Changes are written to the settings draft on save.": "Изменения будут записаны в черновик настроек при сохранении.",
"Changing...": "Изменение...",
@@ -928,6 +941,7 @@
"Click to view full error message": "Нажмите, чтобы увидеть полное сообщение об ошибке",
"Click to view full prompt": "Нажмите, чтобы увидеть полный промпт",
"Click to view image": "Нажмите, чтобы просмотреть изображение",
+ "Client": "Клиент",
"Client header value": "Значение заголовка клиента",
"Client ID": "ID клиента",
"Client model": "Модель клиента",
@@ -990,6 +1004,7 @@
"Complete Order": "Вывод заказа",
"Complete these steps to finish the initial installation.": "Выполните эти шаги, чтобы завершить начальную установку.",
"Completed": "Завершено",
+ "Completed security verification": "Проверка безопасности завершена",
"Completed top-up order for the user": "Заказ на пополнение для пользователя выполнен",
"Completion": "Вывод",
"Completion price": "Цена завершения",
@@ -1132,6 +1147,7 @@
"Copied: {{model}}": "Скопировано: {{model}}",
"Copied!": "Скопировано!",
"Copy": "Копировать",
+ "Copy {{field}}": "Копировать {{field}}",
"Copy {{name}} pricing": "Копировать тариф {{name}}",
"Copy a request header": "Копировать заголовок запроса",
"Copy All": "Скопировать все",
@@ -1264,6 +1280,7 @@
"Current Password": "Текущий пароль",
"Current Price": "Текущая цена",
"Current quota": "Текущая квота",
+ "Current token": "Текущий токен",
"Current Value": "Текущее значение",
"Current version": "Текущая версия",
"Current:": "Текущий:",
@@ -1419,6 +1436,7 @@
"Deployment Region *": "Регион развертывания *",
"Deployment requested": "Развертывание запрошено",
"Deployments": "Развертывания",
+ "Deprecated": "Устарело",
"Desc": "По убыванию",
"Describe": "Описание",
"Describe this model...": "Опишите эту модель...",
@@ -1465,6 +1483,7 @@
"Disabled lanes are omitted on save.": "Отключённые каналы цен не сохраняются.",
"Disabled Reason": "Причина отключения",
"Disabled Time": "Время отключения",
+ "Disabled two-factor authentication": "Двухфакторная аутентификация отключена",
"Disabled; fell back to factory": "Отключён; используется встроенная версия",
"Disabled; platform unavailable": "Отключён; платформа недоступна",
"Disabling...": "Отключение...",
@@ -1688,6 +1707,8 @@
"Enable test mode for Creem payments": "Включить тестовый режим для платежей Creem",
"Enable this key?": "Включить этот ключ?",
"Enable Turnstile": "Включить Turnstile",
+ "Enable Two-factor Authentication or Passkey in Security & Access to continue.": "Для продолжения включите двухфакторную аутентификацию или ключ доступа в разделе «Безопасность и доступ».",
+ "Enable Two-factor Authentication or Passkey in Security & Access to unlock sensitive operations.": "Для выполнения чувствительных операций включите двухфакторную аутентификацию или ключ доступа в разделе «Безопасность и доступ».",
"Enable Two-factor Authentication or Passkey in your profile to unlock sensitive operations.": "Включите двухфакторную аутентификацию или Passkey в своем профиле, чтобы разблокировать конфиденциальные операции.",
"Enable unlimited quota for this API key": "Включить неограниченную квоту для этого ключа API",
"Enable violation deduction": "Включить вычет за нарушения",
@@ -1699,6 +1720,7 @@
"Enabled all channels with tag: {{tag}}": "Все каналы с тегом {{tag}} включены",
"Enabled channels with tag {{tag}}": "Включены каналы с тегом {{tag}}",
"Enabled Status": "Статус включения",
+ "Enabled two-factor authentication": "Двухфакторная аутентификация включена",
"Enabling...": "Включается...",
"Encourages introducing new topics": "Поощряет введение новых тем",
"Encourages new topics": "Стимулирует новые темы",
@@ -1706,6 +1728,7 @@
"End Error": "Ошибка завершения",
"End Reason": "Причина завершения",
"End Time": "Время окончания",
+ "End time must be after start time": "Время окончания должно быть позже начала",
"End-user identifier for abuse monitoring": "Идентификатор конечного пользователя для мониторинга злоупотреблений",
"Endpoint": "Точка доступа",
"Endpoint config": "Конфигурация конечной точки",
@@ -1818,6 +1841,7 @@
"Estimated cost": "Примерная стоимость",
"Estimated quota cost": "Ориентир стоимости квоты",
"Evaluate fields from the provider user info response. Conditions and nested groups use and/or logic.": "Проверяет поля ответа с данными пользователя от провайдера. Условия и вложенные группы используют логику and/or.",
+ "Event": "Событие",
"Every group name in the pricing table can be used in two places: on a user (the user group, assigned by admins) and on a token (the token group, chosen when creating the token). Same name pool, two different jobs.": "Каждое имя группы из таблицы тарифов используется в двух местах: у пользователя (группа пользователя, назначается администратором) и у токена (группа токена, выбирается при создании). Один набор имён — две разные роли.",
"Every other device will lose access immediately. This device will remain signed in.": "Все остальные устройства немедленно потеряют доступ. Это устройство останется в системе.",
"Everything configured for this group, in one place.": "Все настройки этой группы в одном месте.",
@@ -1950,6 +1974,7 @@
"Failed to load": "Не удалось загрузить",
"Failed to load API keys": "Не удалось загрузить API ключи",
"Failed to load artifacts": "Не удалось загрузить артефакты",
+ "Failed to load audit records": "Не удалось загрузить аудит",
"Failed to load billing history": "Не удалось загрузить историю платежей",
"Failed to load enabled models": "Не удалось загрузить включённые модели",
"Failed to load home page content": "Не удалось загрузить содержимое главной страницы",
@@ -1965,6 +1990,7 @@
"Failed to load setup data": "Не удалось загрузить данные настройки",
"Failed to load setup status": "Не удалось загрузить статус настройки",
"Failed to load tag data": "Не удалось загрузить данные тегов",
+ "Failed to load token status": "Не удалось загрузить состояние токена",
"Failed to load users": "Не удалось загрузить пользователей",
"Failed to parse group items": "Не удалось разобрать элементы группы",
"Failed to parse JSON file: {{name}}": "Не удалось проанализировать файл JSON: {{name}}",
@@ -1979,6 +2005,7 @@
"Failed to reset model ratios": "Не удалось сбросить коэффициенты модели",
"Failed to reset Passkey": "Не удалось сбросить Passkey",
"Failed to reset usage": "Не удалось сбросить использование",
+ "Failed to revoke token": "Не удалось отозвать токен",
"Failed to save": "Не удалось сохранить",
"Failed to save announcements": "Не удалось сохранить объявления",
"Failed to save API info": "Не удалось сохранить информацию API",
@@ -2054,6 +2081,7 @@
"Fetching upstream ratios...": "Загрузка коэффициентов upstream...",
"Fetching...": "Загрузка…",
"field": "поле",
+ "Field change details were not recorded": "Подробности изменения полей не записаны",
"Field Mapping": "Сопоставление полей",
"Field passthrough controls": "Полевые сквозные элементы управления",
"Field Path": "Путь к полю",
@@ -2202,12 +2230,15 @@
"Gemini will continue to auto-detect thinking mode even with the adapter disabled. Enable this only when you need finer control over pricing and budgeting.": "Gemini продолжит автоматически определять режим мышления, даже если адаптер отключен. Включайте это только тогда, когда вам нужен более тонкий контроль над ценообразованием и бюджетированием.",
"General": "Общие",
"General Settings": "Общие настройки",
+ "Generate": "Создать",
"Generate and manage your API access token": "Генерировать и управлять вашим токеном доступа API",
"Generate Lyrics": "Создать текст песни",
"Generate Music": "Создать музыку",
"Generate new backup codes for account recovery": "Сгенерировать новые резервные коды для восстановления аккаунта",
"Generate New Codes": "Сгенерировать новые коды",
"Generate tokens from the Tokens page; you can scope them to specific models, groups, IPs, and rate-limits.": "Создавайте токены на странице «Токены». Их можно ограничить моделями, группами, IP и лимитами частоты.",
+ "Generated": "Создан",
+ "Generated a system access token": "Создан системный токен доступа",
"Generated image": "Сгенерированное изображение",
"Generating new codes will invalidate all existing backup codes.": "Генерация новых кодов аннулирует все существующие резервные коды.",
"Generating...": "Создание...",
@@ -2322,6 +2353,7 @@
"High-risk status code retry risk check 4": "Я добровольно принимаю риски для стабильности системы, включая серьёзные тайм-ауты клиента и возможный сбой сервиса, и несу ответственность за возникшую очередь запросов или недоступность сервиса.",
"High-risk status code retry risk disclaimer": "### ⚠️ Операция высокого риска: предупреждение и отказ от ответственности при повторах для кодов 504/524\n\nПо умолчанию проект не повторяет запросы при кодах `400` (неверный запрос), `504` (тайм-аут шлюза) и `524` (истекло время ожидания). Коды 504 и 524 обычно означают, что **запрос успешно дошёл до вышестоящего ИИ-сервиса и обработка на его стороне уже началась, но соединение закрылось из-за слишком долгой обработки вышестоящим сервисом**. Обычно это указывает на узкое место именно вышестоящего сервиса.\n\nВключение перенаправления или повторов для таких кодов тайм-аута — **операция чрезвычайно высокого риска**. Перед включением внимательно прочитайте и поймите следующие последствия:\n\n#### 1. Основные риски (прочитайте внимательно)\n\n1. 💸 Двойное или многократное списание: большинство вышестоящих ИИ-провайдеров **всё равно взимают плату** за запросы, обработка которых началась, но была прервана сетевым тайм-аутом (504/524). Повтор отправляет новый запрос вышестоящему сервису и может привести к **двойному или многократному списанию**.\n2. ⏳ Серьёзный тайм-аут клиента: если запрос уже завершился по тайм-ауту, повторы могут многократно увеличить общую задержку и вызвать неприемлемое ожидание у конечного клиента.\n3. 💥 Очередь запросов и сбой сервиса: принудительные повторы дольше занимают потоки и соединения. При высокой нагрузке это может создать серьёзную **очередь запросов**, исчерпать ресурсы, вызвать каскадный отказ и остановить прокси-сервис.\n\n#### 2. Принятие рисков\n\nЕсли вы всё же включаете эту функцию, вы подтверждаете следующее:",
"Higher priority channels are selected first": "Каналы с более высоким приоритетом выбираются первыми",
+ "Historical tokens": "Предыдущие токены",
"Historical Usage": "История использования",
"History of MjProxy-style image tasks.": "История задач генерации изображений в стиле MjProxy.",
"Hit criteria: If cached tokens exist in usage, it counts as a hit.": "Критерий попадания: если в usage есть кэшированные токены, это считается попаданием.",
@@ -2577,7 +2609,9 @@
"Last Seen": "Последний сигнал",
"Last Tested": "Последняя проверка",
"Last updated:": "Последнее обновление:",
+ "Last used": "Последнее использование",
"Last Used": "Последнее использование",
+ "Last used IP": "Последний IP",
"Last used:": "Последнее использование:",
"Latency": "Задержка",
"Latency check": "Проверка задержки",
@@ -2679,11 +2713,13 @@
"Logged in successfully via {{method}}": "Успешный вход через {{method}}",
"Logic": "Логика",
"Login": "Вход",
+ "Login & Authentication": "Вход и аутентификация",
"Login failed": "Ошибка входа",
"Login flow expired. Please sign in again.": "Процесс входа истёк. Войдите снова.",
"Login Info": "Информация о входе",
"Login Method": "Способ входа",
"Login sessions": "Сеансы входа",
+ "Login, security and access records": "Записи о входах, безопасности и доступе",
"Logo": "Логотип",
"Logo URL": "URL логотипа",
"Logs": "Журналы",
@@ -2779,6 +2815,7 @@
"Merge into Other": "Объединить в «Другое»",
"Message Priority": "Приоритет сообщения",
"Metadata": "Метаданные",
+ "Method": "Метод",
"min downtime": "мин простоя",
"Min Top-up": "Мин. пополнение",
"Min Top-up:": "Мин. пополнение:",
@@ -2993,6 +3030,7 @@
"New Password": "Новый пароль",
"New password must be different from current password": "Новый пароль должен отличаться от текущего пароля",
"New User Quota": "Новая квота пользователя",
+ "New value": "Новое значение",
"New version available: {{version}}": "Доступна новая версия: {{version}}",
"NewAPI": "NewAPI",
"Newly released": "Новые релизы",
@@ -3133,6 +3171,7 @@
"No Quota": "Нет квоты",
"No ratio differences found": "Различия в коэффициентах не найдены",
"No recent usage": "Нет недавнего использования",
+ "No records": "Нет записей",
"No records found. Try adjusting your filters.": "Записи не найдены. Попробуйте изменить фильтры.",
"No redemption codes available. Create your first redemption code to get started.": "Нет доступных кодов активации. Создайте свой первый код активации, чтобы начать.",
"No Redemption Codes Found": "Коды активации не найдены",
@@ -3192,6 +3231,7 @@
"Not configured": "Не настроено",
"Not declared": "Не заявлено",
"Not Equals": "Не равно",
+ "Not generated": "Не создан",
"Not in pricing table": "Нет в таблице тарифных групп",
"Not included": "Не включена",
"Not installed": "Не установлен",
@@ -3204,7 +3244,7 @@
"Not Submitted": "Не отправлено",
"Not tested": "Не протестировано",
"Not used for upstream training by default": "По умолчанию не используется для обучения у поставщика",
- "Not used yet": "Ещё не использовано",
+ "Not used yet": "Ещё не использовался",
"Note": "Примечание",
"Notice": "Уведомления",
"Notification Email": "Электронная почта для уведомлений",
@@ -3285,6 +3325,7 @@
"Only successful requests": "Только успешные запросы",
"Only successful requests count toward this limit.": "Только успешные запросы учитываются в этом лимите.",
"Only the last {{value}} log files will be retained; the rest will be deleted.": "Будут сохранены только последние {{value}} файлов журналов; остальные будут удалены.",
+ "Only used to find historical logs. New records are available in Audit Logs.": "Только для поиска старых журналов. Новые записи доступны в журнале аудита.",
"Oops! Page Not Found!": "Ой! Страница не найдена!",
"Oops! Something went wrong": "Ой! Что-то пошло не так",
"Open": "Открыть",
@@ -3325,11 +3366,13 @@
"Operate channels": "Обслуживание каналов",
"Operation": "Операция",
"operation and charging behavior": "эксплуатацию и взимание платы",
+ "Operation audit": "Аудит операций",
"Operation Audit Info": "Информация об аудите операций",
"Operation failed": "Операция не удалась",
"Operation successful": "Операция выполнена успешно",
"Operation Type": "Тип операции",
"Operations": "Операции",
+ "Operator": "Исполнитель",
"Operator Admin": "Оператор-администратор",
"Optimize system for self-hosted single-user usage": "Оптимизировать систему для самостоятельного использования одним пользователем",
"Optimized network architecture ensures millisecond response times": "Оптимизированная сетевая архитектура обеспечивает время отклика в миллисекунды",
@@ -3545,6 +3588,7 @@
"Pick or create both a store and a product before saving.": "Перед сохранением выберите или создайте и магазин, и продукт.",
"Ping Interval (seconds)": "Интервал Ping (секунды)",
"Plan": "План",
+ "Plan ID": "ID плана",
"Plan Name": "Название плана",
"Plan Price": "Цена тарифа",
"Plan price must be greater than zero": "Цена плана должна быть больше нуля",
@@ -3684,6 +3728,7 @@
"Previous": "Предыдущий шаг",
"Previous branch": "Предыдущая ветка",
"Previous page": "Предыдущая страница",
+ "Previous value": "Предыдущее значение",
"Price": "Цена",
"Price ($/1K calls)": "Цена ($/1K вызовов)",
"Price (local currency / USD)": "Цена (местная валюта / USD)",
@@ -3719,6 +3764,7 @@
"Priority level from 0 (lowest) to 10 (highest), default is 5": "Уровень приоритета от 0 (самый низкий) до 10 (самый высокий), по умолчанию 5",
"Priority order for automatic group assignment. New tokens rotate through this list.": "Порядок приоритета для автоматического назначения групп. Новые токены ротируются по этому списку.",
"Priority order for tokens in the auto group. The system tries groups from top to bottom.": "Порядок приоритета для токенов группы auto. Система перебирает группы сверху вниз.",
+ "Privacy": "Конфиденциальность",
"Privacy Policy": "Политика конфиденциальности",
"Private Deployment URL": "URL частного развертывания",
"Processing OAuth response...": "Обработка ответа OAuth...",
@@ -3910,6 +3956,7 @@
"Regenerate access token?": "Перегенерировать токен доступа?",
"Regenerate Backup Codes": "Сгенерировать резервные коды",
"Regenerate token": "Перегенерировать токен",
+ "Regenerated two-factor backup codes": "Резервные коды двухфакторной аутентификации обновлены",
"Regenerating immediately invalidates any existing token.": "Перегенерация немедленно делает недействительными все существующие токены.",
"Regex": "Регулярное выражение",
"Regex Pattern": "Регулярное выражение",
@@ -4043,6 +4090,7 @@
"Reset balance and used quota": "Сбросить баланс и использованную квоту",
"Reset completed": "Сброс завершён",
"Reset completed. Latest usage has been refreshed.": "Сброс завершён. Последние данные использования обновлены.",
+ "Reset Count": "Количество сбросов",
"Reset count:": "Сбросов:",
"Reset Credit": "Сброс лимита",
"Reset Credits": "Сбросы лимита",
@@ -4105,7 +4153,9 @@
"Review your payment details": "Проверьте свои платежные данные",
"Review your purchase details before proceeding.": "Просмотрите детали покупки перед продолжением.",
"Revoke": "Отозвать",
+ "Revoke access token?": "Отозвать токен доступа?",
"Revoke session?": "Отозвать сеанс?",
+ "Revoked the system access token": "Системный токен доступа отозван",
"Rewards will be added directly to your balance": "Награды будут добавлены напрямую в ваш баланс",
"Rewrite callback URLs to the local server": "Перезаписывать URL обратных вызовов на локальный сервер",
"Right to Left": "Справа налево",
@@ -4255,6 +4305,7 @@
"Secure & Reliable": "Безопасно и надежно",
"Secured": "Защищено",
"Security": "Безопасность",
+ "Security & Access": "Безопасность и доступ",
"Security & Limits": "Безопасность и лимиты",
"Security Check": "Проверка безопасности",
"Security verification": "Подтверждение безопасности",
@@ -4372,6 +4423,7 @@
"Session expired!": "Сессия истекла!",
"Session expired?": "Сессия истекла?",
"Session signed out": "Сеанс завершён",
+ "Sessions & Access": "Сеансы и доступ",
"Set": "Установить",
"Set a discount rate for a specific recharge amount threshold.": "Установите ставку скидки для определенного порога суммы пополнения.",
"Set a secure password (min. 8 characters)": "Установите надежный пароль (минимум 8 символов)",
@@ -4486,6 +4538,7 @@
"Source Endpoint": "Исходная точка",
"Source Field": "Исходное поле",
"Source Header": "Исходный заголовок",
+ "Source ID": "ID источника",
"Source name": "Название источника",
"sources": "источники",
"Space-separated OAuth scopes": "Области доступа OAuth, разделенные пробелами",
@@ -4515,7 +4568,9 @@
"Start for free with generous limits. No credit card required.": "Начните бесплатно с щедрыми лимитами. Кредитная карта не требуется.",
"Start Time": "Время начала",
"Started": "Запущен",
+ "Started two-factor authentication setup": "Начата настройка двухфакторной аутентификации",
"STARTTLS": "STARTTLS",
+ "State changed": "Состояние изменено",
"Static page describing the platform.": "Статическая страница, описывающая платформу.",
"Statistical count": "Статистический подсчет",
"Statistical quota": "Статистическая квота",
@@ -4664,6 +4719,7 @@
"Tags": "Теги",
"Take photo": "Сделать фото",
"Take screenshot": "Сделать скриншот",
+ "Target": "Объект операции",
"Target Endpoint": "Целевая точка",
"Target Field": "Целевое поле",
"Target Field Path": "Путь целевого поля",
@@ -4788,6 +4844,7 @@
"Third-party": "Сторонний",
"Third-party — use at your own risk": "Сторонний — на ваш риск",
"Third-party account bindings (read-only, managed by user in profile settings)": "Привязки сторонних учетных записей (только для чтения, управляется пользователем в настройках профиля)",
+ "Third-party account bindings (read-only, managed by user in Security & Access)": "Привязанные сторонние аккаунты (только чтение, управляются пользователем в разделе «Безопасность и доступ»)",
"Third-party Payment Config": "Настройка стороннего платежа",
"Third-party plugin risk": "Риск стороннего плагина",
"Third-party source risk": "Риск сторонних источников",
@@ -4924,6 +4981,7 @@
"Token estimator": "Оценка токенов",
"Token group": "Группа токена",
"Token has no group": "У токена нет группы",
+ "Token identifier": "Идентификатор токена",
"Token Limits": "Ограничения токенов",
"Token management": "Управление токенами",
"Token Management": "Управление токенами",
@@ -4937,6 +4995,7 @@
"Token price for image input.": "Цена токенов для входного изображения.",
"Token prices": "Цены токенов",
"Token regenerated and copied to clipboard": "Токен перегенерирован и скопирован в буфер обмена",
+ "Token scope": "Выбор токенов",
"Token share by model author across the last 24 hours": "Доля токенов по автору модели за последние 24 часа",
"Token share by model author across the past few weeks": "Доля токенов по автору модели за последние недели",
"Token share by model author across the past month": "Доля токенов по автору модели за последний месяц",
@@ -4986,6 +5045,7 @@
"Top-up ratio": "Коэффициент пополнения",
"Topup Amount": "Сумма пополнения",
"Total": "Всего",
+ "Total {{count}} records": "Всего записей: {{count}}",
"Total Allocated": "Всего выделено",
"Total check-ins": "Общая проверка",
"Total consumed": "Всего использовано",
@@ -5133,6 +5193,7 @@
"Updated a subscription plan": "Обновлён тарифный план подписки",
"Updated a vendor": "Обновлён поставщик",
"Updated channel {{name}} (ID: {{id}})": "Обновлён канал {{name}} (ID: {{id}})",
+ "Updated channel status (ID: {{id}})": "Обновлён статус канала (ID: {{id}})",
"Updated daily": "Обновляется ежедневно",
"Updated successfully": "Обновлено успешно",
"Updated system setting {{key}}": "Обновлён системный параметр {{key}}",
@@ -5260,6 +5321,7 @@
"User Analytics": "Аналитика пользователей",
"User Consumption Ranking": "Рейтинг потребления",
"User Consumption Trend": "Тренд потребления",
+ "User Count": "Количество пользователей",
"User created successfully": "Пользователь успешно создан",
"User dashboard and quota controls.": "Панель пользователя и управление квотами.",
"User deleted successfully": "Пользователь успешно удален",
@@ -5354,6 +5416,7 @@
"Vidu": "Vidu",
"View": "Просмотр",
"View all currently available models": "Просмотреть все доступные модели",
+ "View audit records from user and admin roles. Root records are always excluded.": "Просмотр записей аудита ролей user и admin. Записи роли root всегда исключены.",
"View channel lists and details without secrets.": "Просмотр списков и сведений о каналах без секретов.",
"View channel secrets": "Просматривать секреты каналов",
"View detailed information about this user including balance, usage statistics, and invitation details.": "Просмотр подробной информации об этом пользователе, включая баланс, статистику использования и данные приглашения.",
@@ -5363,7 +5426,9 @@
"View logs": "Просмотреть логи",
"View mode": "Режим отображения",
"View model statistics and charts": "Просмотр статистики и графиков моделей",
+ "View other accounts' audit logs": "Просмотр аудита других аккаунтов",
"View Pricing": "Посмотреть цены",
+ "View scope": "Область просмотра",
"View the complete details for this": "Просмотр полных деталей этой",
"View the complete details for this log entry": "Просмотр полной информации об этой записи журнала",
"View the complete details for this task": "Просмотреть полные сведения об этой задаче",
diff --git a/web/src/i18n/locales/vi.json b/web/src/i18n/locales/vi.json
index 40fc633bee..096373980f 100644
--- a/web/src/i18n/locales/vi.json
+++ b/web/src/i18n/locales/vi.json
@@ -138,15 +138,19 @@
"Access Forbidden": "Truy cập bị cấm",
"Access Policy (JSON)": "Chính sách truy cập (JSON)",
"Access previous conversations and start new ones.": "Truy cập các cuộc trò chuyện trước đó và bắt đầu các cuộc trò chuyện mới.",
+ "Access records": "Lịch sử truy cập",
"Access Token": "Token truy cập",
+ "Access token revoked": "Đã thu hồi token truy cập",
"Access tokens are shown only once": "Token truy cập chỉ được hiển thị một lần",
"AccessKey / SecretAccessKey": "AccessKey / SecretAccessKey",
+ "Account Actions": "Thao tác tài khoản",
"Account Binding Management": "Quản lý liên kết tài khoản",
"Account Bindings": "Liên kết tài khoản",
"Account created! Please sign in": "Tài khoản đã được tạo! Vui lòng đăng nhập",
"Account deleted successfully": "Tài khoản đã được xóa thành công",
"Account ID *": "ID tài khoản *",
"Account Info": "Thông tin tài khoản",
+ "Account security": "Bảo mật tài khoản",
"Account used when authenticating with the SMTP server": "Tài khoản được sử dụng khi xác thực với máy chủ SMTP",
"acknowledge the related legal risks": "thừa nhận các rủi ro pháp lý liên quan",
"Across all groups": "Trên mọi nhóm",
@@ -315,11 +319,13 @@
"All nodes": "Tất cả nút",
"All playground messages saved in this browser will be removed. This cannot be undone.": "Tất cả tin nhắn Playground đã lưu trong trình duyệt này sẽ bị xóa. Không thể hoàn tác hành động này.",
"All requests must include": "Mọi yêu cầu phải có header",
+ "All results": "Tất cả kết quả",
"All routes": "Tất cả tuyến",
"All Status": "Tất cả trạng thái",
"All Sync Status": "Tất cả Trạng thái Đồng bộ",
"All systems operational": "Tất cả hệ thống hoạt động bình thường",
"All Tags": "Tất cả Thẻ",
+ "All tokens": "Tất cả token",
"All Types": "All types",
"All upstream data is trusted": "Tất cả dữ liệu thượng nguồn đều được tin cậy",
"All users": "Tất cả người dùng",
@@ -510,6 +516,10 @@
"Audio Preview": "Xem trước âm thanh",
"Audio ratio": "Tỷ lệ âm thanh",
"Audio Tokens": "Token âm thanh",
+ "Audit access changed. Showing only your records.": "Quyền truy cập kiểm toán đã thay đổi. Chỉ hiển thị bản ghi của bạn.",
+ "Audit Logs": "Nhật ký kiểm toán",
+ "Audit metadata is unavailable": "Thông tin kiểm toán bổ sung không khả dụng",
+ "Audit records start after this feature was enabled. Earlier records remain in Common Logs.": "Bản ghi kiểm toán bắt đầu từ khi tính năng này được bật. Các bản ghi cũ vẫn nằm trong nhật ký chung.",
"Auth": "Xác thực",
"Auth configured": "Đã cấu hình xác thực",
"Auth name": "Tên xác thực",
@@ -645,6 +655,7 @@
"Batch test completed: {{success}} succeeded, {{failed}} failed": "Kiểm thử hàng loạt hoàn tất: {{success}} thành công, {{failed}} thất bại",
"Batch test stopped: {{completed}}/{{total}} completed, {{success}} succeeded, {{failed}} failed": "Đã dừng kiểm thử hàng loạt: hoàn tất {{completed}}/{{total}}, {{success}} thành công, {{failed}} thất bại",
"Batch testing models...": "Đang kiểm thử mô hình hàng loạt...",
+ "Batch updated channel status ({{count}}/{{total}} changed)": "Đã cập nhật trạng thái kênh hàng loạt ({{count}}/{{total}} đã thay đổi)",
"Batch upstream model update": "Cập nhật mô hình thượng nguồn hàng loạt",
"Batch upstream model updates applied: {{channels}} channels, {{added}} added, {{removed}} removed, {{fails}} failed": "Đã áp dụng cập nhật hàng loạt mô hình upstream: {{channels}} kênh, {{added}} đã thêm, {{removed}} đã xóa, {{fails}} thất bại",
"Best for single-tenant deployments. Pricing and billing options stay hidden.": "Phù hợp nhất cho triển khai đơn người dùng. Các tùy chọn giá và thanh toán sẽ được ẩn.",
@@ -677,6 +688,7 @@
"Bind WeChat Account": "Liên kết tài khoản WeChat",
"Binding Information": "Thông tin Ràng buộc",
"Binding successful!": "Liên kết thành công!",
+ "Binding Type": "Loại liên kết",
"Binding your {{provider}} account": "Đang liên kết tài khoản {{provider}} của bạn",
"Binding...": "Đang liên kết...",
"Bindings": "Ràng buộc",
@@ -782,6 +794,7 @@
"Change language": "Đổi ngôn ngữ",
"Change Password": "Đổi mật khẩu",
"Change To": "Thay đổi thành",
+ "Changed / Total": "Đã thay đổi / Tổng số",
"Changed Fields": "Trường đã thay đổi",
"Changes are written to the settings draft on save.": "Các thay đổi sẽ được ghi vào bản nháp cài đặt khi lưu.",
"Changing...": "Đang thay đổi...",
@@ -928,6 +941,7 @@
"Click to view full error message": "Nhấp để xem toàn bộ thông báo lỗi",
"Click to view full prompt": "Nhấp để xem toàn bộ lời nhắc",
"Click to view image": "Nhấp để xem hình ảnh",
+ "Client": "Máy khách",
"Client header value": "Giá trị header client",
"Client ID": "Mã khách hàng",
"Client model": "Model phía client",
@@ -990,6 +1004,7 @@
"Complete Order": "Hoàn thành đơn hàng",
"Complete these steps to finish the initial installation.": "Hoàn thành các bước này để hoàn tất quá trình cài đặt ban đầu.",
"Completed": "Hoàn thành",
+ "Completed security verification": "Đã hoàn tất xác minh bảo mật",
"Completed top-up order for the user": "Đã hoàn tất đơn nạp tiền cho người dùng",
"Completion": "Hoàn thành",
"Completion price": "Giá hoàn thành",
@@ -1132,6 +1147,7 @@
"Copied: {{model}}": "Đã sao chép: {{model}}",
"Copied!": "Đã sao chép!",
"Copy": "Sao chép",
+ "Copy {{field}}": "Sao chép {{field}}",
"Copy {{name}} pricing": "Sao chép giá của {{name}}",
"Copy a request header": "Sao chép header yêu cầu",
"Copy All": "Sao chép tất cả",
@@ -1264,6 +1280,7 @@
"Current Password": "Mật khẩu hiện tại",
"Current Price": "Giá hiện tại",
"Current quota": "Hạn mức hiện tại",
+ "Current token": "Token hiện tại",
"Current Value": "Present value",
"Current version": "Phiên bản hiện tại",
"Current:": "Hiện tại:",
@@ -1419,6 +1436,7 @@
"Deployment Region *": "Khu vực triển khai *",
"Deployment requested": "Yêu cầu triển khai",
"Deployments": "Triển khai",
+ "Deprecated": "Đã ngừng dùng",
"Desc": "Giảm dần",
"Describe": "Mô tả",
"Describe this model...": "Mô tả mô hình này...",
@@ -1465,6 +1483,7 @@
"Disabled lanes are omitted on save.": "Các kênh bị tắt sẽ được bỏ qua khi lưu.",
"Disabled Reason": "Lý do vô hiệu hóa",
"Disabled Time": "Thời gian vô hiệu hóa",
+ "Disabled two-factor authentication": "Đã tắt xác thực hai yếu tố",
"Disabled; fell back to factory": "Đã tắt; dùng lại bản tích hợp",
"Disabled; platform unavailable": "Đã tắt; nền tảng không khả dụng",
"Disabling...": "Đang vô hiệu hóa...",
@@ -1688,6 +1707,8 @@
"Enable test mode for Creem payments": "Bật chế độ thử nghiệm cho thanh toán Creem",
"Enable this key?": "Kích hoạt khóa này?",
"Enable Turnstile": "Bật Turnstile",
+ "Enable Two-factor Authentication or Passkey in Security & Access to continue.": "Bật xác thực hai yếu tố hoặc Passkey trong « Bảo mật và truy cập » để tiếp tục.",
+ "Enable Two-factor Authentication or Passkey in Security & Access to unlock sensitive operations.": "Bật xác thực hai yếu tố hoặc Passkey trong « Bảo mật và truy cập » để thực hiện các thao tác nhạy cảm.",
"Enable Two-factor Authentication or Passkey in your profile to unlock sensitive operations.": "Bật Xác thực hai yếu tố hoặc Passkey trong hồ sơ của bạn để mở khóa các thao tác nhạy cảm.",
"Enable unlimited quota for this API key": "Kích hoạt hạn mức không giới hạn cho khóa API này",
"Enable violation deduction": "Bật trừ tiền vi phạm",
@@ -1699,6 +1720,7 @@
"Enabled all channels with tag: {{tag}}": "Đã bật tất cả kênh với nhãn: {{tag}}",
"Enabled channels with tag {{tag}}": "Đã kích hoạt các kênh có thẻ {{tag}}",
"Enabled Status": "Trạng thái kích hoạt",
+ "Enabled two-factor authentication": "Đã bật xác thực hai yếu tố",
"Enabling...": "Đang bật...",
"Encourages introducing new topics": "Khuyến khích chủ đề mới",
"Encourages new topics": "Khuyến khích chủ đề mới",
@@ -1706,6 +1728,7 @@
"End Error": "Lỗi kết thúc",
"End Reason": "Lý do kết thúc",
"End Time": "Thời gian kết thúc",
+ "End time must be after start time": "Thời gian kết thúc phải sau thời gian bắt đầu",
"End-user identifier for abuse monitoring": "Định danh người dùng cuối để giám sát lạm dụng",
"Endpoint": "Endpoint",
"Endpoint config": "Cấu hình điểm cuối",
@@ -1818,6 +1841,7 @@
"Estimated cost": "Chi phí ước tính",
"Estimated quota cost": "Ước tính chi phí hạn mức",
"Evaluate fields from the provider user info response. Conditions and nested groups use and/or logic.": "Đánh giá các trường trong phản hồi thông tin người dùng của nhà cung cấp. Điều kiện và nhóm lồng nhau sử dụng logic and/or.",
+ "Event": "Sự kiện",
"Every group name in the pricing table can be used in two places: on a user (the user group, assigned by admins) and on a token (the token group, chosen when creating the token). Same name pool, two different jobs.": "Mỗi tên nhóm trong bảng định giá có thể dùng ở hai nơi: trên người dùng (nhóm người dùng, do quản trị viên gán) và trên token (nhóm token, chọn khi tạo token). Cùng một bộ tên, hai vai trò khác nhau.",
"Every other device will lose access immediately. This device will remain signed in.": "Mọi thiết bị khác sẽ mất quyền truy cập ngay lập tức. Thiết bị này vẫn duy trì đăng nhập.",
"Everything configured for this group, in one place.": "Toàn bộ cấu hình của nhóm này, tại một nơi.",
@@ -1950,6 +1974,7 @@
"Failed to load": "Tải thất bại",
"Failed to load API keys": "Không thể tải khóa API",
"Failed to load artifacts": "Không thể tải sản phẩm",
+ "Failed to load audit records": "Không thể tải bản ghi kiểm toán",
"Failed to load billing history": "Không thể tải lịch sử thanh toán",
"Failed to load enabled models": "Không thể tải các mô hình đã bật",
"Failed to load home page content": "Không thể tải nội dung trang chủ",
@@ -1965,6 +1990,7 @@
"Failed to load setup data": "Không thể tải dữ liệu thiết lập",
"Failed to load setup status": "Không thể tải trạng thái thiết lập",
"Failed to load tag data": "Không thể tải dữ liệu thẻ",
+ "Failed to load token status": "Không thể tải trạng thái token",
"Failed to load users": "Không thể tải người dùng",
"Failed to parse group items": "Thất bại khi phân tích các mục nhóm",
"Failed to parse JSON file: {{name}}": "Không thể phân tích cú pháp tệp JSON: {{name}}",
@@ -1979,6 +2005,7 @@
"Failed to reset model ratios": "Không thể đặt lại tỷ lệ mô hình",
"Failed to reset Passkey": "Không thể đặt lại Passkey",
"Failed to reset usage": "Không thể đặt lại mức dùng",
+ "Failed to revoke token": "Không thể thu hồi token",
"Failed to save": "Lưu thất bại",
"Failed to save announcements": "Không thể lưu thông báo",
"Failed to save API info": "Không thể lưu thông tin API",
@@ -2054,6 +2081,7 @@
"Fetching upstream ratios...": "Đang lấy tỷ lệ thượng nguồn...",
"Fetching...": "Đang tải…",
"field": "trường",
+ "Field change details were not recorded": "Chi tiết thay đổi trường chưa được ghi lại",
"Field Mapping": "Ánh Xạ Trường",
"Field passthrough controls": "Điều khiển chuyển tiếp trường",
"Field Path": "Đường dẫn trường",
@@ -2202,12 +2230,15 @@
"Gemini will continue to auto-detect thinking mode even with the adapter disabled. Enable this only when you need finer control over pricing and budgeting.": "Gemini sẽ tiếp tục tự động phát hiện chế độ suy nghĩ ngay cả khi bộ điều hợp bị tắt. Chỉ bật tính năng này khi bạn cần kiểm soát chi tiết hơn về giá cả và lập ngân sách.",
"General": "Chung",
"General Settings": "General settings",
+ "Generate": "Tạo",
"Generate and manage your API access token": "Tạo và quản lý mã thông báo truy cập API của bạn",
"Generate Lyrics": "Tạo lời bài hát",
"Generate Music": "Tạo nhạc",
"Generate new backup codes for account recovery": "Tạo mã dự phòng mới để khôi phục tài khoản",
"Generate New Codes": "Tạo mã mới",
"Generate tokens from the Tokens page; you can scope them to specific models, groups, IPs, and rate-limits.": "Tạo token tại trang Tokens; bạn có thể giới hạn theo model, nhóm, IP và rate-limit.",
+ "Generated": "Đã tạo",
+ "Generated a system access token": "Đã tạo token truy cập hệ thống",
"Generated image": "Ảnh được tạo",
"Generating new codes will invalidate all existing backup codes.": "Tạo mã mới sẽ vô hiệu hóa tất cả các mã dự phòng hiện có.",
"Generating...": "Đang tạo...",
@@ -2322,6 +2353,7 @@
"High-risk status code retry risk check 4": "Tôi tự nguyện chấp nhận rủi ro về độ ổn định hệ thống, gồm hết thời gian chờ nghiêm trọng ở phía máy khách và khả năng dịch vụ gặp sự cố, đồng thời chịu trách nhiệm về tình trạng tồn đọng yêu cầu hoặc gián đoạn dịch vụ phát sinh.",
"High-risk status code retry risk disclaimer": "### ⚠️ Thao tác rủi ro cao: cảnh báo và tuyên bố miễn trừ trách nhiệm khi thử lại mã 504/524\n\nTheo mặc định, dự án không thử lại với mã `400` (yêu cầu không hợp lệ), `504` (gateway hết thời gian chờ) hoặc `524` (đã hết thời gian chờ). Mã 504 và 524 thường có nghĩa là **yêu cầu đã đến dịch vụ AI thượng nguồn thành công và phía thượng nguồn đã bắt đầu xử lý, nhưng kết nối bị đóng vì quá trình xử lý ở thượng nguồn mất quá nhiều thời gian**. Điều này thường cho thấy nút thắt nằm ở dịch vụ thượng nguồn.\n\nBật chuyển hướng hoặc thử lại cho các mã hết thời gian chờ này là một **thao tác có rủi ro cực kỳ cao**. Trước khi bật, bạn phải đọc kỹ và hiểu các hậu quả sau:\n\n#### 1. Rủi ro chính (hãy đọc kỹ)\n\n1. 💸 Tính phí hai lần hoặc nhiều lần: phần lớn nhà cung cấp AI thượng nguồn **vẫn tính phí** cho yêu cầu đã bắt đầu xử lý nhưng bị ngắt do hết thời gian chờ mạng (504/524). Mỗi lần thử lại gửi một yêu cầu hoàn toàn mới đến thượng nguồn và có thể gây **tính phí hai lần hoặc nhiều lần**.\n2. ⏳ Hết thời gian chờ nghiêm trọng ở phía máy khách: khi một yêu cầu đã hết thời gian chờ, việc thử lại có thể làm tổng độ trễ tăng nhiều lần và gây thời gian chờ nghiêm trọng hoặc không thể chấp nhận cho máy khách cuối.\n3. 💥 Tồn đọng yêu cầu và sự cố dịch vụ: buộc thử lại giữ luồng và kết nối lâu hơn. Khi tải cao, điều này có thể gây **tồn đọng yêu cầu** nghiêm trọng, cạn kiệt tài nguyên, phát sinh lỗi dây chuyền và làm dịch vụ proxy ngừng hoạt động.\n\n#### 2. Xác nhận rủi ro\n\nNếu vẫn chọn bật tính năng này, bạn xác nhận tất cả nội dung sau:",
"Higher priority channels are selected first": "Các kênh ưu tiên cao hơn được chọn trước tiên",
+ "Historical tokens": "Token trước đây",
"Historical Usage": "Lịch sử sử dụng",
"History of MjProxy-style image tasks.": "Lịch sử các tác vụ hình ảnh kiểu MjProxy.",
"Hit criteria: If cached tokens exist in usage, it counts as a hit.": "Tiêu chí trúng: Nếu cached tokens tồn tại trong usage, được tính là trúng.",
@@ -2577,7 +2609,9 @@
"Last Seen": "Lần cuối thấy",
"Last Tested": "Được kiểm tra lần cuối",
"Last updated:": "Cập nhật lần cuối:",
+ "Last used": "Lần dùng cuối",
"Last Used": "Dùng lần cuối",
+ "Last used IP": "IP sử dụng gần nhất",
"Last used:": "Lần cuối sử dụng:",
"Latency": "Độ trễ",
"Latency check": "Kiểm tra độ trễ",
@@ -2679,11 +2713,13 @@
"Logged in successfully via {{method}}": "Đăng nhập thành công qua {{method}}",
"Logic": "Logic",
"Login": "Đăng nhập",
+ "Login & Authentication": "Đăng nhập và xác thực",
"Login failed": "Đăng nhập thất bại",
"Login flow expired. Please sign in again.": "Quy trình đăng nhập đã hết hạn. Vui lòng đăng nhập lại.",
"Login Info": "Thông tin đăng nhập",
"Login Method": "Phương thức đăng nhập",
"Login sessions": "Phiên đăng nhập",
+ "Login, security and access records": "Nhật ký đăng nhập, bảo mật và truy cập",
"Logo": "Logo",
"Logo URL": "URL Logo",
"Logs": "Nhật ký",
@@ -2779,6 +2815,7 @@
"Merge into Other": "Gộp vào Khác",
"Message Priority": "Ưu tiên tin nhắn",
"Metadata": "Siêu dữ liệu",
+ "Method": "Phương thức",
"min downtime": "phút gián đoạn",
"Min Top-up": "Nạp tối thiểu",
"Min Top-up:": "Nạp tối thiểu:",
@@ -2993,6 +3030,7 @@
"New Password": "Mật khẩu mới",
"New password must be different from current password": "Mật khẩu mới phải khác với mật khẩu hiện tại",
"New User Quota": "Hạn mức người dùng mới",
+ "New value": "Giá trị mới",
"New version available: {{version}}": "Có phiên bản mới: {{version}}",
"NewAPI": "NewAPI",
"Newly released": "Vừa phát hành",
@@ -3133,6 +3171,7 @@
"No Quota": "Không hạn ngạch",
"No ratio differences found": "Không tìm thấy sự khác biệt tỷ lệ",
"No recent usage": "Chưa có sử dụng gần đây",
+ "No records": "Chưa có bản ghi",
"No records found. Try adjusting your filters.": "Không tìm thấy bản ghi nào. Hãy thử điều chỉnh bộ lọc của bạn.",
"No redemption codes available. Create your first redemption code to get started.": "Hiện không có mã đổi thưởng nào. Hãy tạo mã đổi thưởng đầu tiên của bạn để bắt đầu.",
"No Redemption Codes Found": "Không tìm thấy mã đổi thưởng",
@@ -3192,6 +3231,7 @@
"Not configured": "Chưa cấu hình",
"Not declared": "Không khai báo",
"Not Equals": "Không bằng",
+ "Not generated": "Chưa tạo",
"Not in pricing table": "Không có trong bảng định giá",
"Not included": "Không bao gồm",
"Not installed": "Chưa cài đặt",
@@ -3285,6 +3325,7 @@
"Only successful requests": "Chỉ các yêu cầu thành công",
"Only successful requests count toward this limit.": "Chỉ những yêu cầu thành công mới được tính vào giới hạn này.",
"Only the last {{value}} log files will be retained; the rest will be deleted.": "Chỉ giữ lại {{value}} tệp nhật ký gần nhất; phần còn lại sẽ bị xóa.",
+ "Only used to find historical logs. New records are available in Audit Logs.": "Chỉ dùng để tìm nhật ký cũ. Bản ghi mới có trong Nhật ký kiểm toán.",
"Oops! Page Not Found!": "Ối! Không tìm thấy trang!",
"Oops! Something went wrong": "Oops! An error occurred.",
"Open": "Mở",
@@ -3325,11 +3366,13 @@
"Operate channels": "Vận hành kênh",
"Operation": "Thao tác",
"operation and charging behavior": "vận hành và thu phí",
+ "Operation audit": "Kiểm toán thao tác",
"Operation Audit Info": "Thông tin kiểm toán thao tác",
"Operation failed": "Thao tác thất bại",
"Operation successful": "Thao tác thành công",
"Operation Type": "Loại thao tác",
"Operations": "Vận hành",
+ "Operator": "Người thực hiện",
"Operator Admin": "Quản trị viên vận hành",
"Optimize system for self-hosted single-user usage": "Tối ưu hóa hệ thống cho việc sử dụng đơn người dùng tự lưu trữ",
"Optimized network architecture ensures millisecond response times": "Kiến trúc mạng tối ưu đảm bảo thời gian phản hồi mili giây",
@@ -3545,6 +3588,7 @@
"Pick or create both a store and a product before saving.": "Hãy chọn hoặc tạo cả cửa hàng và sản phẩm trước khi lưu.",
"Ping Interval (seconds)": "Thời gian Ping (giây)",
"Plan": "Gói",
+ "Plan ID": "ID gói",
"Plan Name": "Tên gói",
"Plan Price": "Giá gói",
"Plan price must be greater than zero": "Giá gói phải lớn hơn 0",
@@ -3684,6 +3728,7 @@
"Previous": "Trước",
"Previous branch": "Nhánh trước",
"Previous page": "Trang trước",
+ "Previous value": "Giá trị trước đó",
"Price": "Giá",
"Price ($/1K calls)": "Giá ($/1K lượt gọi)",
"Price (local currency / USD)": "Giá (tiền tệ địa phương / USD)",
@@ -3719,6 +3764,7 @@
"Priority level from 0 (lowest) to 10 (highest), default is 5": "Mức độ ưu tiên từ 0 (thấp nhất) đến 10 (cao nhất), mặc định là 5",
"Priority order for automatic group assignment. New tokens rotate through this list.": "Thứ tự ưu tiên cho việc gán nhóm tự động. Các token mới sẽ luân phiên qua danh sách này.",
"Priority order for tokens in the auto group. The system tries groups from top to bottom.": "Thứ tự ưu tiên cho token trong nhóm auto. Hệ thống thử các nhóm từ trên xuống dưới.",
+ "Privacy": "Quyền riêng tư",
"Privacy Policy": "Chính sách quyền riêng tư",
"Private Deployment URL": "URL Triển khai Riêng",
"Processing OAuth response...": "Đang xử lý phản hồi OAuth...",
@@ -3910,6 +3956,7 @@
"Regenerate access token?": "Tạo lại token truy cập?",
"Regenerate Backup Codes": "Tạo lại Mã dự phòng",
"Regenerate token": "Tạo lại token",
+ "Regenerated two-factor backup codes": "Đã tạo lại mã dự phòng xác thực hai yếu tố",
"Regenerating immediately invalidates any existing token.": "Việc tạo lại sẽ vô hiệu hóa ngay mọi token hiện có.",
"Regex": "Biểu thức chính quy",
"Regex Pattern": "Mẫu biểu thức chính quy",
@@ -4043,6 +4090,7 @@
"Reset balance and used quota": "Đặt lại số dư và hạn mức đã sử dụng",
"Reset completed": "Đặt lại hoàn tất",
"Reset completed. Latest usage has been refreshed.": "Đặt lại hoàn tất. Dữ liệu sử dụng mới nhất đã được làm mới.",
+ "Reset Count": "Số lượng đặt lại",
"Reset count:": "Số lần đặt lại:",
"Reset Credit": "Lượt đặt lại",
"Reset Credits": "Lượt đặt lại",
@@ -4105,7 +4153,9 @@
"Review your payment details": "Xem lại chi tiết thanh toán của bạn",
"Review your purchase details before proceeding.": "Xem lại chi tiết mua hàng trước khi tiếp tục.",
"Revoke": "Thu hồi",
+ "Revoke access token?": "Thu hồi token truy cập?",
"Revoke session?": "Thu hồi phiên này?",
+ "Revoked the system access token": "Đã thu hồi token truy cập hệ thống",
"Rewards will be added directly to your balance": "Phần thưởng sẽ được thêm trực tiếp vào số dư của bạn",
"Rewrite callback URLs to the local server": "Viết lại URL callback đến máy chủ cục bộ",
"Right to Left": "Phải sang trái",
@@ -4255,6 +4305,7 @@
"Secure & Reliable": "An toàn & Đáng tin cậy",
"Secured": "Đã bảo vệ",
"Security": "Bảo mật",
+ "Security & Access": "Bảo mật và truy cập",
"Security & Limits": "Bảo mật & giới hạn",
"Security Check": "Kiểm tra bảo mật",
"Security verification": "Xác minh bảo mật",
@@ -4372,6 +4423,7 @@
"Session expired!": "Phiên hết hạn!",
"Session expired?": "Phiên đã hết hạn?",
"Session signed out": "Đã đăng xuất phiên",
+ "Sessions & Access": "Phiên và truy cập",
"Set": "Đặt",
"Set a discount rate for a specific recharge amount threshold.": "Đặt tỷ lệ chiết khấu cho một ngưỡng số tiền nạp cụ thể.",
"Set a secure password (min. 8 characters)": "Đặt mật khẩu an toàn (tối thiểu 8 ký tự)",
@@ -4486,6 +4538,7 @@
"Source Endpoint": "Điểm nguồn",
"Source Field": "Trường nguồn",
"Source Header": "Header nguồn",
+ "Source ID": "ID nguồn",
"Source name": "Tên nguồn",
"sources": "nguồn",
"Space-separated OAuth scopes": "Phạm vi OAuth phân cách bằng dấu cách",
@@ -4515,7 +4568,9 @@
"Start for free with generous limits. No credit card required.": "Bắt đầu miễn phí với giới hạn hào phóng. Không cần thẻ tín dụng.",
"Start Time": "Thời gian bắt đầu",
"Started": "Đã khởi động",
+ "Started two-factor authentication setup": "Đã bắt đầu thiết lập xác thực hai yếu tố",
"STARTTLS": "STARTTLS",
+ "State changed": "Trạng thái đã thay đổi",
"Static page describing the platform.": "Trang tĩnh mô tả nền tảng.",
"Statistical count": "Số đếm thống kê",
"Statistical quota": "Chỉ tiêu thống kê",
@@ -4664,6 +4719,7 @@
"Tags": "Thẻ",
"Take photo": "Chụp ảnh",
"Take screenshot": "Chụp màn hình",
+ "Target": "Đối tượng thao tác",
"Target Endpoint": "Điểm đích",
"Target Field": "Trường đích",
"Target Field Path": "Đường dẫn trường đích",
@@ -4788,6 +4844,7 @@
"Third-party": "Bên thứ ba",
"Third-party — use at your own risk": "Bên thứ ba — tự chịu rủi ro",
"Third-party account bindings (read-only, managed by user in profile settings)": "Liên kết tài khoản bên thứ ba (chỉ đọc, do người dùng quản lý trong cài đặt hồ sơ)",
+ "Third-party account bindings (read-only, managed by user in Security & Access)": "Tài khoản bên thứ ba liên kết (chỉ đọc, người dùng quản lý trong « Bảo mật và truy cập »)",
"Third-party Payment Config": "Cấu hình thanh toán bên thứ ba",
"Third-party plugin risk": "Rủi ro plugin bên thứ ba",
"Third-party source risk": "Rủi ro nguồn bên thứ ba",
@@ -4924,6 +4981,7 @@
"Token estimator": "Ước tính token",
"Token group": "Nhóm token",
"Token has no group": "Token không có nhóm",
+ "Token identifier": "Mã định danh token",
"Token Limits": "Giới hạn token",
"Token management": "Quản lý token",
"Token Management": "Quản lý token",
@@ -4937,6 +4995,7 @@
"Token price for image input.": "Giá token cho đầu vào hình ảnh.",
"Token prices": "Giá token",
"Token regenerated and copied to clipboard": "Token đã được tạo lại và sao chép vào bộ nhớ tạm",
+ "Token scope": "Phạm vi token",
"Token share by model author across the last 24 hours": "Tỷ lệ token theo nhà phát triển trong 24 giờ qua",
"Token share by model author across the past few weeks": "Tỷ lệ token theo nhà phát triển trong vài tuần qua",
"Token share by model author across the past month": "Tỷ lệ token theo nhà phát triển trong tháng qua",
@@ -4986,6 +5045,7 @@
"Top-up ratio": "Hệ số nạp tiền",
"Topup Amount": "Số tiền nạp",
"Total": "Tổng cộng",
+ "Total {{count}} records": "Tổng cộng {{count}} bản ghi",
"Total Allocated": "Tổng phân bổ",
"Total check-ins": "Tổng số lần điểm danh",
"Total consumed": "Tổng tiêu thụ",
@@ -5133,6 +5193,7 @@
"Updated a subscription plan": "Đã cập nhật một gói đăng ký",
"Updated a vendor": "Đã cập nhật một nhà cung cấp",
"Updated channel {{name}} (ID: {{id}})": "Đã cập nhật kênh {{name}} (ID: {{id}})",
+ "Updated channel status (ID: {{id}})": "Đã cập nhật trạng thái kênh (ID: {{id}})",
"Updated daily": "Cập nhật hàng ngày",
"Updated successfully": "Cập nhật thành công",
"Updated system setting {{key}}": "Đã cập nhật cài đặt hệ thống {{key}}",
@@ -5260,6 +5321,7 @@
"User Analytics": "Thống kê người dùng",
"User Consumption Ranking": "Xếp hạng tiêu thụ",
"User Consumption Trend": "Xu hướng tiêu thụ",
+ "User Count": "Số người dùng",
"User created successfully": "Tạo người dùng thành công",
"User dashboard and quota controls.": "Bảng điều khiển người dùng và kiểm soát hạn ngạch.",
"User deleted successfully": "Xóa người dùng thành công",
@@ -5354,6 +5416,7 @@
"Vidu": "Vidu",
"View": "Xem",
"View all currently available models": "Xem tất cả mô hình hiện có",
+ "View audit records from user and admin roles. Root records are always excluded.": "Xem bản ghi kiểm toán của vai trò user và admin. Luôn loại trừ bản ghi của vai trò root.",
"View channel lists and details without secrets.": "Xem danh sách và chi tiết kênh không chứa bí mật.",
"View channel secrets": "Xem bí mật kênh",
"View detailed information about this user including balance, usage statistics, and invitation details.": "Xem thông tin chi tiết về người dùng này bao gồm số dư, thống kê sử dụng và chi tiết lời mời.",
@@ -5363,7 +5426,9 @@
"View logs": "Xem nhật ký",
"View mode": "Chế độ xem",
"View model statistics and charts": "Xem thống kê và biểu đồ mô hình",
+ "View other accounts' audit logs": "Xem nhật ký kiểm toán của tài khoản khác",
"View Pricing": "View price",
+ "View scope": "Phạm vi xem",
"View the complete details for this": "Xem chi tiết đầy đủ của",
"View the complete details for this log entry": "Xem chi tiết đầy đủ cho mục nhật ký này",
"View the complete details for this task": "Xem đầy đủ chi tiết của tác vụ này",
diff --git a/web/src/i18n/locales/zh-TW.json b/web/src/i18n/locales/zh-TW.json
index 1ac31aed2c..f7415994ae 100644
--- a/web/src/i18n/locales/zh-TW.json
+++ b/web/src/i18n/locales/zh-TW.json
@@ -138,15 +138,19 @@
"Access Forbidden": "禁止存取",
"Access Policy (JSON)": "存取政策 (JSON)",
"Access previous conversations and start new ones.": "存取之前的對話並開始新的對話。",
+ "Access records": "存取記錄",
"Access Token": "存取令牌",
+ "Access token revoked": "存取權杖已撤銷",
"Access tokens are shown only once": "存取令牌僅顯示一次",
"AccessKey / SecretAccessKey": "AccessKey / SecretAccessKey",
+ "Account Actions": "帳戶操作",
"Account Binding Management": "用戶連結管理",
"Account Bindings": "用戶連結",
"Account created! Please sign in": "用戶已建立!請登入",
"Account deleted successfully": "用戶刪除成功",
"Account ID *": "用戶 ID *",
"Account Info": "用戶資訊",
+ "Account security": "帳戶安全",
"Account used when authenticating with the SMTP server": "用於與 SMTP 伺服器進行身份驗證的用戶",
"acknowledge the related legal risks": "確認相關法律風險",
"Across all groups": "跨所有分組",
@@ -315,11 +319,13 @@
"All nodes": "全部節點",
"All playground messages saved in this browser will be removed. This cannot be undone.": "儲存在此瀏覽器中的所有遊樂場訊息都將被移除。此操作無法撤銷。",
"All requests must include": "所有請求必須攜帶",
+ "All results": "所有結果",
"All routes": "全部路由",
"All Status": "所有狀態",
"All Sync Status": "所有同步狀態",
"All systems operational": "所有系統正常運作",
"All Tags": "所有標籤",
+ "All tokens": "所有權杖",
"All Types": "所有類型",
"All upstream data is trusted": "所有上游數據均受信任",
"All users": "全部用戶",
@@ -510,6 +516,10 @@
"Audio Preview": "音樂預覽",
"Audio ratio": "音頻倍率",
"Audio Tokens": "語音 Token",
+ "Audit access changed. Showing only your records.": "稽核存取權限已變更,現在僅顯示本人的記錄。",
+ "Audit Logs": "稽核日誌",
+ "Audit metadata is unavailable": "稽核附加資訊無法使用",
+ "Audit records start after this feature was enabled. Earlier records remain in Common Logs.": "僅顯示此功能啟用後的稽核記錄,歷史記錄仍在一般日誌中。",
"Auth": "認證",
"Auth configured": "認證已設定",
"Auth name": "認證名稱",
@@ -645,6 +655,7 @@
"Batch test completed: {{success}} succeeded, {{failed}} failed": "大量測試完成:{{success}} 個成功,{{failed}} 個失敗",
"Batch test stopped: {{completed}}/{{total}} completed, {{success}} succeeded, {{failed}} failed": "大量測試已停止:已完成 {{completed}}/{{total}},{{success}} 個成功,{{failed}} 個失敗",
"Batch testing models...": "正在大量測試模型...",
+ "Batch updated channel status ({{count}}/{{total}} changed)": "批次更新渠道狀態({{count}}/{{total}} 個已變更)",
"Batch upstream model update": "上游模型大量更新",
"Batch upstream model updates applied: {{channels}} channels, {{added}} added, {{removed}} removed, {{fails}} failed": "已大量處理上游模型更新:渠道 {{channels}} 個,加入 {{added}} 個,刪除 {{removed}} 個,失敗 {{fails}} 個",
"Best for single-tenant deployments. Pricing and billing options stay hidden.": "適合單用戶部署。定價和收費選項將被隱藏。",
@@ -677,6 +688,7 @@
"Bind WeChat Account": "連結微信用戶",
"Binding Information": "連結資訊",
"Binding successful!": "連結成功!",
+ "Binding Type": "綁定類型",
"Binding your {{provider}} account": "正在連結您的 {{provider}} 賬號",
"Binding...": "連結中...",
"Bindings": "連結",
@@ -782,6 +794,7 @@
"Change language": "更改語言",
"Change Password": "更改密碼",
"Change To": "更改為",
+ "Changed / Total": "已變更 / 總數",
"Changed Fields": "變更欄位",
"Changes are written to the settings draft on save.": "儲存後會寫入設定草稿。",
"Changing...": "修改中...",
@@ -928,6 +941,7 @@
"Click to view full error message": "點擊查看完整錯誤訊息",
"Click to view full prompt": "點擊查看完整提示詞",
"Click to view image": "點擊查看圖片",
+ "Client": "用戶端",
"Client header value": "用戶端請求頭值",
"Client ID": "Client ID",
"Client model": "客戶端 model",
@@ -990,6 +1004,7 @@
"Complete Order": "補單",
"Complete these steps to finish the initial installation.": "完成這些步驟以完成初始安裝。",
"Completed": "已完成",
+ "Completed security verification": "已完成安全驗證",
"Completed top-up order for the user": "為用戶完成補單",
"Completion": "補全",
"Completion price": "補全價格",
@@ -1132,6 +1147,7 @@
"Copied: {{model}}": "已複製: {{model}}",
"Copied!": "已複製!",
"Copy": "複製",
+ "Copy {{field}}": "複製{{field}}",
"Copy {{name}} pricing": "複製 {{name}} 定價",
"Copy a request header": "複製請求頭",
"Copy All": "全部複製",
@@ -1264,6 +1280,7 @@
"Current Password": "目前密碼",
"Current Price": "目前價格",
"Current quota": "目前額度",
+ "Current token": "目前權杖",
"Current Value": "目前值",
"Current version": "目前版本",
"Current:": "目前:",
@@ -1419,6 +1436,7 @@
"Deployment Region *": "部署區域 *",
"Deployment requested": "部署已請求",
"Deployments": "部署",
+ "Deprecated": "已棄用",
"Desc": "降序",
"Describe": "圖生文",
"Describe this model...": "描述此模型...",
@@ -1465,6 +1483,7 @@
"Disabled lanes are omitted on save.": "關閉的價格通道儲存時會被省略。",
"Disabled Reason": "停用原因",
"Disabled Time": "停用時間",
+ "Disabled two-factor authentication": "已停用兩步驟驗證",
"Disabled; fell back to factory": "已禁用;已回落內建版",
"Disabled; platform unavailable": "已禁用;平台不可用",
"Disabling...": "停用中...",
@@ -1688,6 +1707,8 @@
"Enable test mode for Creem payments": "啟用 Creem 支付測試模式",
"Enable this key?": "啟用此金鑰?",
"Enable Turnstile": "啟用 Turnstile",
+ "Enable Two-factor Authentication or Passkey in Security & Access to continue.": "請在「安全與存取」中啟用兩步驟驗證或 Passkey 後繼續。",
+ "Enable Two-factor Authentication or Passkey in Security & Access to unlock sensitive operations.": "請在「安全與存取」中啟用兩步驟驗證或 Passkey,以進行敏感操作。",
"Enable Two-factor Authentication or Passkey in your profile to unlock sensitive operations.": "在您的個人資料中啟用雙重身份驗證或 Passkey 以解鎖敏感操作。",
"Enable unlimited quota for this API key": "為此 API 金鑰啟用無限配額",
"Enable violation deduction": "啟用違規扣費",
@@ -1699,6 +1720,7 @@
"Enabled all channels with tag: {{tag}}": "已啟用標籤「{{tag}}」下的所有渠道",
"Enabled channels with tag {{tag}}": "啟用標籤為 {{tag}} 的渠道",
"Enabled Status": "啟用狀態",
+ "Enabled two-factor authentication": "已啟用兩步驟驗證",
"Enabling...": "正在啟用...",
"Encourages introducing new topics": "鼓勵引入新話題",
"Encourages new topics": "鼓勵討論新話題",
@@ -1706,6 +1728,7 @@
"End Error": "結束錯誤",
"End Reason": "結束原因",
"End Time": "結束時間",
+ "End time must be after start time": "結束時間必須晚於開始時間",
"End-user identifier for abuse monitoring": "用於風險審計的終端用戶標識",
"Endpoint": "端點",
"Endpoint config": "端點設定",
@@ -1818,6 +1841,7 @@
"Estimated cost": "預計成本",
"Estimated quota cost": "估算配額費用",
"Evaluate fields from the provider user info response. Conditions and nested groups use and/or logic.": "根據提供商回傳的用戶資訊欄位執行政策判斷。條件和巢狀分組支援 and/or 邏輯。",
+ "Event": "事件",
"Every group name in the pricing table can be used in two places: on a user (the user group, assigned by admins) and on a token (the token group, chosen when creating the token). Same name pool, two different jobs.": "定價表中的每個分組名可用在兩個地方:用戶身上(用戶分組,由管理員分配)和令牌身上(令牌分組,建立令牌時選擇)。同一批名字,兩種不同職責。",
"Every other device will lose access immediately. This device will remain signed in.": "其他所有裝置將立即失去存取權限,目前裝置將保持登入。",
"Everything configured for this group, in one place.": "該分組的全部設定,一處看全。",
@@ -1950,6 +1974,7 @@
"Failed to load": "載入失敗",
"Failed to load API keys": "載入 API 金鑰失敗",
"Failed to load artifacts": "製品載入失敗",
+ "Failed to load audit records": "載入稽核記錄失敗",
"Failed to load billing history": "載入收費歷史失敗",
"Failed to load enabled models": "獲取啟用模型失敗",
"Failed to load home page content": "載入首頁內容失敗",
@@ -1965,6 +1990,7 @@
"Failed to load setup data": "無法載入設定數據",
"Failed to load setup status": "無法載入設定狀態",
"Failed to load tag data": "載入標籤數據失敗",
+ "Failed to load token status": "載入權杖狀態失敗",
"Failed to load users": "載入用戶失敗",
"Failed to parse group items": "解析組項目失敗",
"Failed to parse JSON file: {{name}}": "解析 JSON 檔案失敗:{{name}}",
@@ -1979,6 +2005,7 @@
"Failed to reset model ratios": "重置模型比率失敗",
"Failed to reset Passkey": "重置 Passkey 失敗",
"Failed to reset usage": "重置用量失敗",
+ "Failed to revoke token": "撤銷權杖失敗",
"Failed to save": "儲存失敗",
"Failed to save announcements": "儲存公告失敗",
"Failed to save API info": "儲存 API 資訊失敗",
@@ -2054,6 +2081,7 @@
"Fetching upstream ratios...": "正在獲取上游比例...",
"Fetching...": "正在取得…",
"field": "欄位",
+ "Field change details were not recorded": "未記錄欄位變更明細",
"Field Mapping": "欄位映射",
"Field passthrough controls": "欄位透傳控制",
"Field Path": "欄位路徑",
@@ -2202,12 +2230,15 @@
"Gemini will continue to auto-detect thinking mode even with the adapter disabled. Enable this only when you need finer control over pricing and budgeting.": "即使停用配接器,Gemini 也會繼續自動偵測思考模式。僅當您需要對定價和預算進行更精細的控制時才啟用此選項。",
"General": "常規",
"General Settings": "通用設定",
+ "Generate": "產生",
"Generate and manage your API access token": "生成和管理您的 API 存取令牌",
"Generate Lyrics": "生成歌詞",
"Generate Music": "生成音樂",
"Generate new backup codes for account recovery": "生成新的備份代碼用於用戶恢復",
"Generate New Codes": "生成新代碼",
"Generate tokens from the Tokens page; you can scope them to specific models, groups, IPs, and rate-limits.": "在「令牌」頁面生成 API Key,可以按模型、分組、IP、速率等維度精細化授權。",
+ "Generated": "已產生",
+ "Generated a system access token": "已產生系統存取權杖",
"Generated image": "生成的圖像",
"Generating new codes will invalidate all existing backup codes.": "生成新代碼將使所有現有備份代碼失效。",
"Generating...": "生成中...",
@@ -2322,6 +2353,7 @@
"High-risk status code retry risk check 4": "我自願承擔系統穩定性風險:本人知悉該操作可能導致用戶端嚴重逾時及服務崩潰。若因本人開啟此功能導致請求積壓或服務不可用,後果由本人自行承擔。",
"High-risk status code retry risk disclaimer": "### ⚠️ 高風險操作:504/524 狀態碼重試風險告知與免責聲明\n\n本專案預設對 `400`(請求錯誤)、`504`(閘道逾時)與 `524`(CDN 逾時)狀態碼不進行重試。504 與 524 錯誤通常代表**請求已成功送達上游 AI 服務,且上游正在處理,但因上游處理時間過長導致連線中斷**。這通常表示逾時源於上游服務瓶頸。\n\n開啟此類逾時狀態碼的重新導向/重試屬於**極高風險操作**。在開啟該功能前,您必須仔細閱讀並知悉以下嚴重後果:\n\n#### 一、核心風險告知(請仔細閱讀)\n\n1. 💸 雙重/多重計費風險:多數 AI 上游廠商對於已開始處理但因網路原因中斷(504/524)的請求**仍然會扣費**。此時若觸發重試,將會向上游發起全新請求,導致您被**雙重甚至多重計費**。\n2. ⏳ 用戶端嚴重逾時:單次請求已觸發逾時,疊加重試機制會使總請求耗時成倍增加,導致最終用戶端(或呼叫方)出現嚴重甚至無法接受的逾時現象。\n3. 💥 請求積壓與系統崩潰風險:強制重試逾時請求會長時間占用系統執行緒與連線數。在高併發場景下,這將導致嚴重的**請求積壓**,進而耗盡系統資源,引發雪崩效應,造成整個代理服務崩潰。\n\n#### 二、風險確認聲明\n\n若您堅持開啟該功能,即代表您作出以下確認:",
"Higher priority channels are selected first": "優先級更高的渠道優先被選中",
+ "Historical tokens": "歷史權杖",
"Historical Usage": "歷史使用情況",
"History of MjProxy-style image tasks.": "MjProxy 風格圖像任務歷史。",
"Hit criteria: If cached tokens exist in usage, it counts as a hit.": "命中判定:usage 中存在 cached tokens 即視為命中。",
@@ -2577,7 +2609,9 @@
"Last Seen": "最後上報",
"Last Tested": "上次測試",
"Last updated:": "上次更新時間:",
+ "Last used": "上次使用",
"Last Used": "最後使用時間",
+ "Last used IP": "上次使用 IP",
"Last used:": "上次使用時間:",
"Latency": "延遲",
"Latency check": "延遲檢測",
@@ -2679,11 +2713,13 @@
"Logged in successfully via {{method}}": "登入成功(透過 {{method}})",
"Logic": "邏輯",
"Login": "登入",
+ "Login & Authentication": "登入與驗證",
"Login failed": "登入失敗",
"Login flow expired. Please sign in again.": "登入流程已過期,請重新登入。",
"Login Info": "登入資訊",
"Login Method": "登入方式",
"Login sessions": "登入工作階段",
+ "Login, security and access records": "登入、安全與存取記錄",
"Logo": "徽標",
"Logo URL": "徽標 URL",
"Logs": "日誌",
@@ -2779,6 +2815,7 @@
"Merge into Other": "合併為其他",
"Message Priority": "訊息優先級",
"Metadata": "元資訊",
+ "Method": "請求方法",
"min downtime": "分鐘停機",
"Min Top-up": "最低儲值",
"Min Top-up:": "最低儲值:",
@@ -2993,6 +3030,7 @@
"New Password": "新密碼",
"New password must be different from current password": "新密碼必須與目前密碼不同",
"New User Quota": "新用戶配額",
+ "New value": "新值",
"New version available: {{version}}": "有新版本可用:{{version}}",
"NewAPI": "NewAPI",
"Newly released": "最新發佈",
@@ -3133,6 +3171,7 @@
"No Quota": "無餘額",
"No ratio differences found": "未發現比率差異",
"No recent usage": "暫無使用記錄",
+ "No records": "尚無記錄",
"No records found. Try adjusting your filters.": "未找到記錄。嘗試調整您的篩選條件。",
"No redemption codes available. Create your first redemption code to get started.": "沒有可用的兌換碼。建立您的第一個兌換碼即可開始使用。",
"No Redemption Codes Found": "未找到兌換碼",
@@ -3192,6 +3231,7 @@
"Not configured": "未設定",
"Not declared": "未宣告",
"Not Equals": "不等於",
+ "Not generated": "尚未產生",
"Not in pricing table": "不在定價分組表中",
"Not included": "未加入",
"Not installed": "未安裝",
@@ -3204,7 +3244,7 @@
"Not Submitted": "未提交",
"Not tested": "未測試",
"Not used for upstream training by default": "預設不會用於上游訓練",
- "Not used yet": "暫未使用",
+ "Not used yet": "尚未使用",
"Note": "備註",
"Notice": "通知",
"Notification Email": "通知電郵",
@@ -3285,6 +3325,7 @@
"Only successful requests": "僅成功的請求",
"Only successful requests count toward this limit.": "僅成功的請求計入此限制。",
"Only the last {{value}} log files will be retained; the rest will be deleted.": "將只保留最近 {{value}} 個日誌檔案,其餘將被刪除。",
+ "Only used to find historical logs. New records are available in Audit Logs.": "僅用於查詢歷史日誌,新記錄請前往稽核日誌查看。",
"Oops! Page Not Found!": "糟糕!頁面未找到!",
"Oops! Something went wrong": "糟糕!出錯了",
"Open": "打開",
@@ -3325,11 +3366,13 @@
"Operate channels": "運維渠道",
"Operation": "操作",
"operation and charging behavior": "運營和收費行為產生的法律責任",
+ "Operation audit": "操作稽核",
"Operation Audit Info": "操作審計資訊",
"Operation failed": "操作失敗",
"Operation successful": "操作成功",
"Operation Type": "操作類型",
"Operations": "運維",
+ "Operator": "操作者",
"Operator Admin": "操作管理員",
"Optimize system for self-hosted single-user usage": "優化系統以適應自託管單用戶使用",
"Optimized network architecture ensures millisecond response times": "優化的網絡架構,確保毫秒級回應時間",
@@ -3545,6 +3588,7 @@
"Pick or create both a store and a product before saving.": "儲存前請同時選擇或建立店鋪和產品。",
"Ping Interval (seconds)": "Ping 間隔(秒)",
"Plan": "套餐",
+ "Plan ID": "方案 ID",
"Plan Name": "套餐名稱",
"Plan Price": "套餐價格",
"Plan price must be greater than zero": "套餐價格必須大於 0",
@@ -3684,6 +3728,7 @@
"Previous": "上一步",
"Previous branch": "上一分支",
"Previous page": "上一頁",
+ "Previous value": "原值",
"Price": "價格",
"Price ($/1K calls)": "價格($/1K 次)",
"Price (local currency / USD)": "價格(本地貨幣/美元)",
@@ -3719,6 +3764,7 @@
"Priority level from 0 (lowest) to 10 (highest), default is 5": "優先級,從 0(最低)到 10(最高),預設為 5",
"Priority order for automatic group assignment. New tokens rotate through this list.": "自動分組分配的優先級順序。新 token 將按此清單輪換。",
"Priority order for tokens in the auto group. The system tries groups from top to bottom.": "auto 分組令牌的優先順序。系統會從上到下依次嘗試各分組。",
+ "Privacy": "隱私",
"Privacy Policy": "私隱政策",
"Private Deployment URL": "私有部署 URL",
"Processing OAuth response...": "正在處理 OAuth 回應...",
@@ -3910,6 +3956,7 @@
"Regenerate access token?": "重新生成存取令牌?",
"Regenerate Backup Codes": "重新生成備用代碼",
"Regenerate token": "重新生成令牌",
+ "Regenerated two-factor backup codes": "已重新產生兩步驟驗證備用碼",
"Regenerating immediately invalidates any existing token.": "重新生成會立即使所有現有令牌失效。",
"Regex": "正則",
"Regex Pattern": "正則表達式",
@@ -4043,6 +4090,7 @@
"Reset balance and used quota": "重置餘額和已用配額",
"Reset completed": "重置完成",
"Reset completed. Latest usage has been refreshed.": "重置完成,已重新整理最新用量。",
+ "Reset Count": "重設數量",
"Reset count:": "重置次數:",
"Reset Credit": "重置次數",
"Reset Credits": "重置次數",
@@ -4105,7 +4153,9 @@
"Review your payment details": "查看您的付款詳情",
"Review your purchase details before proceeding.": "在繼續之前,請審閱您的購買詳情。",
"Revoke": "撤銷",
+ "Revoke access token?": "撤銷存取權杖?",
"Revoke session?": "撤銷此工作階段?",
+ "Revoked the system access token": "已撤銷系統存取權杖",
"Rewards will be added directly to your balance": "獎勵將直接新增到您的餘額",
"Rewrite callback URLs to the local server": "將Callback URL 重寫到本地伺服器",
"Right to Left": "從右到左",
@@ -4255,6 +4305,7 @@
"Secure & Reliable": "安全可靠",
"Secured": "已保護",
"Security": "安全",
+ "Security & Access": "安全與存取",
"Security & Limits": "安全與限制",
"Security Check": "安全驗證",
"Security verification": "安全驗證",
@@ -4372,6 +4423,7 @@
"Session expired!": "對話已過期!",
"Session expired?": "對話已過期?",
"Session signed out": "已登出此工作階段",
+ "Sessions & Access": "工作階段與存取",
"Set": "設定",
"Set a discount rate for a specific recharge amount threshold.": "為特定的儲值金額閾值設定折扣率。",
"Set a secure password (min. 8 characters)": "設定安全密碼(最少 8 個字元)",
@@ -4486,6 +4538,7 @@
"Source Endpoint": "來源端點",
"Source Field": "來源欄位",
"Source Header": "來源請求頭",
+ "Source ID": "來源 ID",
"Source name": "來源名稱",
"sources": "來源",
"Space-separated OAuth scopes": "以空格分隔的OAuth作用域",
@@ -4515,7 +4568,9 @@
"Start for free with generous limits. No credit card required.": "免費開始使用,額度充足,無需連結信用卡。",
"Start Time": "起始時間",
"Started": "啟動時間",
+ "Started two-factor authentication setup": "開始設定兩步驟驗證",
"STARTTLS": "STARTTLS",
+ "State changed": "狀態已變更",
"Static page describing the platform.": "描述平台的靜態頁面。",
"Statistical count": "統計計數",
"Statistical quota": "統計配額",
@@ -4664,6 +4719,7 @@
"Tags": "標籤",
"Take photo": "拍照",
"Take screenshot": "截圖",
+ "Target": "操作對象",
"Target Endpoint": "目標端點",
"Target Field": "目標欄位",
"Target Field Path": "目標欄位路徑",
@@ -4788,6 +4844,7 @@
"Third-party": "第三方",
"Third-party — use at your own risk": "第三方 — 風險自負",
"Third-party account bindings (read-only, managed by user in profile settings)": "第三方用戶連結(唯讀,由用戶在個人資料設定中管理)",
+ "Third-party account bindings (read-only, managed by user in Security & Access)": "第三方帳戶綁定(唯讀,由使用者在「安全與存取」中管理)",
"Third-party Payment Config": "第三方支付設定",
"Third-party plugin risk": "第三方外掛风险",
"Third-party source risk": "第三方來源風險",
@@ -4924,6 +4981,7 @@
"Token estimator": "Token 估算器",
"Token group": "令牌分組",
"Token has no group": "令牌未設定分組",
+ "Token identifier": "權杖識別碼",
"Token Limits": "令牌限制",
"Token management": "令牌管理",
"Token Management": "令牌管理",
@@ -4937,6 +4995,7 @@
"Token price for image input.": "圖像輸入 token 價格。",
"Token prices": "Token 價格",
"Token regenerated and copied to clipboard": "令牌已重新生成並複製到剪貼簿",
+ "Token scope": "權杖範圍",
"Token share by model author across the last 24 hours": "過去 24 小時內各廠商的 Token 佔比",
"Token share by model author across the past few weeks": "最近幾週內各廠商的 Token 佔比",
"Token share by model author across the past month": "過去一個月內各廠商的 Token 佔比",
@@ -4986,6 +5045,7 @@
"Top-up ratio": "儲值倍率",
"Topup Amount": "儲值金額",
"Total": "總計",
+ "Total {{count}} records": "共 {{count}} 筆記錄",
"Total Allocated": "總分配",
"Total check-ins": "累計簽到",
"Total consumed": "總消耗",
@@ -5133,6 +5193,7 @@
"Updated a subscription plan": "更新了一個訂閱計劃",
"Updated a vendor": "更新了一個供應商",
"Updated channel {{name}} (ID: {{id}})": "更新渠道 {{name}}(ID: {{id}})",
+ "Updated channel status (ID: {{id}})": "更新渠道狀態(ID: {{id}})",
"Updated daily": "每日更新",
"Updated successfully": "更新成功",
"Updated system setting {{key}}": "修改系統設定 {{key}}",
@@ -5260,6 +5321,7 @@
"User Analytics": "用戶統計",
"User Consumption Ranking": "用戶消耗排行",
"User Consumption Trend": "用戶消耗趨勢",
+ "User Count": "使用者數量",
"User created successfully": "用戶建立成功",
"User dashboard and quota controls.": "用戶儀表板和配額控制。",
"User deleted successfully": "用戶刪除成功",
@@ -5354,6 +5416,7 @@
"Vidu": "Vidu",
"View": "查看",
"View all currently available models": "查看目前可用的所有模型",
+ "View audit records from user and admin roles. Root records are always excluded.": "查看 user 和 admin 角色的稽核記錄,一律排除 root 層級記錄。",
"View channel lists and details without secrets.": "查看不含金鑰的渠道列表和詳情。",
"View channel secrets": "查看渠道金鑰",
"View detailed information about this user including balance, usage statistics, and invitation details.": "查看此用戶的詳細資訊,包括餘額、使用統計和邀請詳情。",
@@ -5363,7 +5426,9 @@
"View logs": "查看日誌",
"View mode": "檢視模式",
"View model statistics and charts": "查看模型統計和圖表",
+ "View other accounts' audit logs": "查看其他帳戶稽核日誌",
"View Pricing": "查看定價",
+ "View scope": "檢視範圍",
"View the complete details for this": "查看此條",
"View the complete details for this log entry": "查看此日誌條目的完整詳情",
"View the complete details for this task": "查看此任務的完整詳情",
diff --git a/web/src/i18n/locales/zh.json b/web/src/i18n/locales/zh.json
index c963eb8e55..c2693360ed 100644
--- a/web/src/i18n/locales/zh.json
+++ b/web/src/i18n/locales/zh.json
@@ -138,15 +138,19 @@
"Access Forbidden": "禁止访问",
"Access Policy (JSON)": "访问策略 (JSON)",
"Access previous conversations and start new ones.": "访问之前的对话并开始新的对话。",
+ "Access records": "访问记录",
"Access Token": "访问令牌",
+ "Access token revoked": "访问令牌已撤销",
"Access tokens are shown only once": "访问令牌仅显示一次",
"AccessKey / SecretAccessKey": "AccessKey / SecretAccessKey",
+ "Account Actions": "账户操作",
"Account Binding Management": "账户绑定管理",
"Account Bindings": "账户绑定",
"Account created! Please sign in": "账户已创建!请登录",
"Account deleted successfully": "账户删除成功",
"Account ID *": "账户 ID *",
"Account Info": "账户信息",
+ "Account security": "账户安全",
"Account used when authenticating with the SMTP server": "用于与 SMTP 服务器进行身份验证的账户",
"acknowledge the related legal risks": "确认相关法律风险",
"Across all groups": "跨所有分组",
@@ -315,11 +319,13 @@
"All nodes": "全部节点",
"All playground messages saved in this browser will be removed. This cannot be undone.": "保存在此浏览器中的所有游乐场消息都将被移除。此操作无法撤销。",
"All requests must include": "所有请求必须携带",
+ "All results": "全部结果",
"All routes": "全部路由",
"All Status": "所有状态",
"All Sync Status": "所有同步状态",
"All systems operational": "所有系统正常运行",
"All Tags": "所有标签",
+ "All tokens": "全部令牌",
"All Types": "所有类型",
"All upstream data is trusted": "所有上游数据均受信任",
"All users": "全部用户",
@@ -510,6 +516,10 @@
"Audio Preview": "音乐预览",
"Audio ratio": "音频倍率",
"Audio Tokens": "语音 Token",
+ "Audit access changed. Showing only your records.": "审计访问权限已变更,现仅显示本人的记录。",
+ "Audit Logs": "审计日志",
+ "Audit metadata is unavailable": "审计附加信息不可用",
+ "Audit records start after this feature was enabled. Earlier records remain in Common Logs.": "仅显示此功能启用后的审计记录,历史记录仍在通用日志中。",
"Auth": "认证",
"Auth configured": "认证已配置",
"Auth name": "认证名称",
@@ -645,6 +655,7 @@
"Batch test completed: {{success}} succeeded, {{failed}} failed": "批量测试完成:{{success}} 个成功,{{failed}} 个失败",
"Batch test stopped: {{completed}}/{{total}} completed, {{success}} succeeded, {{failed}} failed": "批量测试已停止:已完成 {{completed}}/{{total}},{{success}} 个成功,{{failed}} 个失败",
"Batch testing models...": "正在批量测试模型...",
+ "Batch updated channel status ({{count}}/{{total}} changed)": "批量更新渠道状态({{count}}/{{total}} 个已变更)",
"Batch upstream model update": "上游模型批量更新",
"Batch upstream model updates applied: {{channels}} channels, {{added}} added, {{removed}} removed, {{fails}} failed": "已批量处理上游模型更新:渠道 {{channels}} 个,加入 {{added}} 个,删除 {{removed}} 个,失败 {{fails}} 个",
"Best for single-tenant deployments. Pricing and billing options stay hidden.": "适合单用户部署。定价和计费选项将被隐藏。",
@@ -677,6 +688,7 @@
"Bind WeChat Account": "绑定微信账户",
"Binding Information": "绑定信息",
"Binding successful!": "绑定成功!",
+ "Binding Type": "绑定类型",
"Binding your {{provider}} account": "正在绑定您的 {{provider}} 账号",
"Binding...": "绑定中...",
"Bindings": "绑定",
@@ -782,6 +794,7 @@
"Change language": "更改语言",
"Change Password": "更改密码",
"Change To": "更改为",
+ "Changed / Total": "已变更 / 总数",
"Changed Fields": "变更字段",
"Changes are written to the settings draft on save.": "保存后会写入设置草稿。",
"Changing...": "修改中...",
@@ -928,6 +941,7 @@
"Click to view full error message": "点击查看完整错误信息",
"Click to view full prompt": "点击查看完整提示词",
"Click to view image": "点击查看图片",
+ "Client": "客户端",
"Client header value": "客户端请求头值",
"Client ID": "Client ID",
"Client model": "客户端 model",
@@ -990,6 +1004,7 @@
"Complete Order": "补单",
"Complete these steps to finish the initial installation.": "完成这些步骤以完成初始安装。",
"Completed": "已完成",
+ "Completed security verification": "完成了安全验证",
"Completed top-up order for the user": "为用户完成补单",
"Completion": "补全",
"Completion price": "补全价格",
@@ -1132,6 +1147,7 @@
"Copied: {{model}}": "已复制: {{model}}",
"Copied!": "已复制!",
"Copy": "复制",
+ "Copy {{field}}": "复制{{field}}",
"Copy {{name}} pricing": "复制 {{name}} 定价",
"Copy a request header": "复制请求头",
"Copy All": "全部复制",
@@ -1264,6 +1280,7 @@
"Current Password": "当前密码",
"Current Price": "当前价格",
"Current quota": "当前额度",
+ "Current token": "当前令牌",
"Current Value": "当前值",
"Current version": "当前版本",
"Current:": "当前:",
@@ -1419,6 +1436,7 @@
"Deployment Region *": "部署区域 *",
"Deployment requested": "部署已请求",
"Deployments": "部署",
+ "Deprecated": "已弃用",
"Desc": "降序",
"Describe": "图生文",
"Describe this model...": "描述此模型...",
@@ -1465,6 +1483,7 @@
"Disabled lanes are omitted on save.": "关闭的价格通道保存时会被省略。",
"Disabled Reason": "禁用原因",
"Disabled Time": "禁用时间",
+ "Disabled two-factor authentication": "关闭了两步验证",
"Disabled; fell back to factory": "已禁用;已回落出厂版",
"Disabled; platform unavailable": "已禁用;平台不可用",
"Disabling...": "禁用中...",
@@ -1688,6 +1707,8 @@
"Enable test mode for Creem payments": "启用 Creem 支付测试模式",
"Enable this key?": "启用此密钥?",
"Enable Turnstile": "启用 Turnstile",
+ "Enable Two-factor Authentication or Passkey in Security & Access to continue.": "请在“安全与访问”中启用两步验证或 Passkey 后继续。",
+ "Enable Two-factor Authentication or Passkey in Security & Access to unlock sensitive operations.": "请在“安全与访问”中启用两步验证或 Passkey,以进行敏感操作。",
"Enable Two-factor Authentication or Passkey in your profile to unlock sensitive operations.": "在您的个人资料中启用双重身份验证或 Passkey 以解锁敏感操作。",
"Enable unlimited quota for this API key": "为此 API 密钥启用无限配额",
"Enable violation deduction": "启用违规扣费",
@@ -1699,6 +1720,7 @@
"Enabled all channels with tag: {{tag}}": "已启用标签「{{tag}}」下的所有渠道",
"Enabled channels with tag {{tag}}": "启用标签为 {{tag}} 的渠道",
"Enabled Status": "启用状态",
+ "Enabled two-factor authentication": "启用了两步验证",
"Enabling...": "正在启用...",
"Encourages introducing new topics": "鼓励引入新话题",
"Encourages new topics": "鼓励讨论新话题",
@@ -1706,6 +1728,7 @@
"End Error": "结束错误",
"End Reason": "结束原因",
"End Time": "结束时间",
+ "End time must be after start time": "结束时间必须晚于开始时间",
"End-user identifier for abuse monitoring": "用于风险审计的终端用户标识",
"Endpoint": "端点",
"Endpoint config": "端点配置",
@@ -1818,6 +1841,7 @@
"Estimated cost": "预计成本",
"Estimated quota cost": "估算配额费用",
"Evaluate fields from the provider user info response. Conditions and nested groups use and/or logic.": "根据提供商返回的用户信息字段执行策略判断。条件和嵌套分组支持 and/or 逻辑。",
+ "Event": "事件",
"Every group name in the pricing table can be used in two places: on a user (the user group, assigned by admins) and on a token (the token group, chosen when creating the token). Same name pool, two different jobs.": "定价表中的每个分组名可用在两个地方:用户身上(用户分组,由管理员分配)和令牌身上(令牌分组,创建令牌时选择)。同一批名字,两种不同职责。",
"Every other device will lose access immediately. This device will remain signed in.": "其他所有设备将立即失去访问权限,当前设备将保持登录。",
"Everything configured for this group, in one place.": "该分组的全部配置,一处看全。",
@@ -1950,6 +1974,7 @@
"Failed to load": "加载失败",
"Failed to load API keys": "加载 API 密钥失败",
"Failed to load artifacts": "制品加载失败",
+ "Failed to load audit records": "加载审计记录失败",
"Failed to load billing history": "加载计费历史失败",
"Failed to load enabled models": "获取启用模型失败",
"Failed to load home page content": "加载首页内容失败",
@@ -1965,6 +1990,7 @@
"Failed to load setup data": "无法加载设置数据",
"Failed to load setup status": "无法加载设置状态",
"Failed to load tag data": "加载标签数据失败",
+ "Failed to load token status": "加载令牌状态失败",
"Failed to load users": "加载用户失败",
"Failed to parse group items": "解析组项目失败",
"Failed to parse JSON file: {{name}}": "解析 JSON 文件失败:{{name}}",
@@ -1979,6 +2005,7 @@
"Failed to reset model ratios": "重置模型比率失败",
"Failed to reset Passkey": "重置 Passkey 失败",
"Failed to reset usage": "重置用量失败",
+ "Failed to revoke token": "撤销令牌失败",
"Failed to save": "保存失败",
"Failed to save announcements": "保存公告失败",
"Failed to save API info": "保存 API 信息失败",
@@ -2054,6 +2081,7 @@
"Fetching upstream ratios...": "正在获取上游比例...",
"Fetching...": "正在拉取…",
"field": "字段",
+ "Field change details were not recorded": "未记录字段变更明细",
"Field Mapping": "字段映射",
"Field passthrough controls": "字段透传控制",
"Field Path": "字段路径",
@@ -2202,12 +2230,15 @@
"Gemini will continue to auto-detect thinking mode even with the adapter disabled. Enable this only when you need finer control over pricing and budgeting.": "即使禁用适配器,Gemini 也会继续自动检测思维模式。仅当您需要对定价和预算进行更精细的控制时才启用此选项。",
"General": "常规",
"General Settings": "通用设置",
+ "Generate": "生成",
"Generate and manage your API access token": "生成和管理您的 API 访问令牌",
"Generate Lyrics": "生成歌词",
"Generate Music": "生成音乐",
"Generate new backup codes for account recovery": "生成新的备份代码用于账户恢复",
"Generate New Codes": "生成新代码",
"Generate tokens from the Tokens page; you can scope them to specific models, groups, IPs, and rate-limits.": "在「令牌」页面生成 API Key,可以按模型、分组、IP、速率等维度精细化授权。",
+ "Generated": "已生成",
+ "Generated a system access token": "生成了系统访问令牌",
"Generated image": "生成的图像",
"Generating new codes will invalidate all existing backup codes.": "生成新代码将使所有现有备份代码失效。",
"Generating...": "生成中...",
@@ -2322,6 +2353,7 @@
"High-risk status code retry risk check 4": "我自愿承担系统稳定性风险:本人知晓该操作可能导致客户端严重超时及服务崩溃。若因本人开启此功能导致请求积压或服务不可用,后果由本人自行承担。",
"High-risk status code retry risk disclaimer": "### ⚠️ 高危操作:504/524 状态码重试风险告知与免责声明\n\n本项目默认对 `400`(请求错误)、`504`(网关超时)和 `524`(CDN 超时)状态码不进行重试。504 和 524 错误通常意味着**请求已成功送达上游 AI 服务,且上游正在处理,但因上游处理时间过长导致连接断开**。这通常说明超时源于上游服务瓶颈。\n\n开启对此类超时状态码的重定向/重试属于**极高风险操作**。在开启该功能前,您必须仔细阅读并知悉以下严重后果:\n\n#### 一、核心风险告知(请仔细阅读)\n\n1. 💸 双重/多重计费风险:绝大多数 AI 上游厂商对于已经开始处理但因网络原因中断(504/524)的请求**依然会进行扣费**。此时若触发重试,将会向上游发起全新请求,导致您被**双重甚至多重计费**。\n2. ⏳ 客户端严重超时:单次请求已经触发超时,叠加重试机制将会使总请求耗时成倍增加,导致您的最终客户端(或调用方)出现严重甚至完全无法接受的超时现象。\n3. 💥 请求积压与系统崩溃风险:强制重试超时请求会长时间占用系统线程和连接数。在高并发场景下,这会导致严重的**请求积压**,进而耗尽系统资源,引发雪崩效应,导致您的整个代理服务崩溃。\n\n#### 二、风险确认声明\n\n如果您坚持开启该功能,即代表您作出以下确认:",
"Higher priority channels are selected first": "优先级更高的渠道优先被选中",
+ "Historical tokens": "历史令牌",
"Historical Usage": "历史使用情况",
"History of MjProxy-style image tasks.": "MjProxy 风格图像任务历史。",
"Hit criteria: If cached tokens exist in usage, it counts as a hit.": "命中判定:usage 中存在 cached tokens 即视为命中。",
@@ -2577,7 +2609,9 @@
"Last Seen": "最后上报",
"Last Tested": "上次测试",
"Last updated:": "上次更新时间:",
+ "Last used": "最后使用",
"Last Used": "最后使用时间",
+ "Last used IP": "最后使用 IP",
"Last used:": "上次使用时间:",
"Latency": "延迟",
"Latency check": "延迟检测",
@@ -2679,11 +2713,13 @@
"Logged in successfully via {{method}}": "登录成功(通过 {{method}})",
"Logic": "逻辑",
"Login": "登录",
+ "Login & Authentication": "登录与认证",
"Login failed": "登录失败",
"Login flow expired. Please sign in again.": "登录流程已过期,请重新登录。",
"Login Info": "登录信息",
"Login Method": "登录方式",
"Login sessions": "登录会话",
+ "Login, security and access records": "登录、安全与访问记录",
"Logo": "徽标",
"Logo URL": "徽标 URL",
"Logs": "日志",
@@ -2779,6 +2815,7 @@
"Merge into Other": "合并为其他",
"Message Priority": "消息优先级",
"Metadata": "元信息",
+ "Method": "请求方法",
"min downtime": "分钟停机",
"Min Top-up": "最低充值",
"Min Top-up:": "最低充值:",
@@ -2993,6 +3030,7 @@
"New Password": "新密码",
"New password must be different from current password": "新密码必须与当前密码不同",
"New User Quota": "新用户配额",
+ "New value": "新值",
"New version available: {{version}}": "有新版本可用:{{version}}",
"NewAPI": "NewAPI",
"Newly released": "最新发布",
@@ -3133,6 +3171,7 @@
"No Quota": "无余额",
"No ratio differences found": "未发现比率差异",
"No recent usage": "暂无使用记录",
+ "No records": "暂无记录",
"No records found. Try adjusting your filters.": "未找到记录。尝试调整您的筛选条件。",
"No redemption codes available. Create your first redemption code to get started.": "没有可用的兑换码。创建您的第一个兑换码即可开始使用。",
"No Redemption Codes Found": "未找到兑换码",
@@ -3192,6 +3231,7 @@
"Not configured": "未配置",
"Not declared": "未声明",
"Not Equals": "不等于",
+ "Not generated": "未生成",
"Not in pricing table": "不在定价分组表中",
"Not included": "未加入",
"Not installed": "未安装",
@@ -3204,7 +3244,7 @@
"Not Submitted": "未提交",
"Not tested": "未测试",
"Not used for upstream training by default": "默认不会用于上游训练",
- "Not used yet": "暂未使用",
+ "Not used yet": "尚未使用",
"Note": "备注",
"Notice": "通知",
"Notification Email": "通知邮箱",
@@ -3285,6 +3325,7 @@
"Only successful requests": "仅成功的请求",
"Only successful requests count toward this limit.": "仅成功的请求计入此限制。",
"Only the last {{value}} log files will be retained; the rest will be deleted.": "将只保留最近 {{value}} 个日志文件,其余将被删除。",
+ "Only used to find historical logs. New records are available in Audit Logs.": "仅用于查询历史日志,新记录请前往审计日志查看。",
"Oops! Page Not Found!": "糟糕!页面未找到!",
"Oops! Something went wrong": "糟糕!出错了",
"Open": "打开",
@@ -3325,11 +3366,13 @@
"Operate channels": "运维渠道",
"Operation": "操作",
"operation and charging behavior": "运营和收费行为产生的法律责任",
+ "Operation audit": "操作审计",
"Operation Audit Info": "操作审计信息",
"Operation failed": "操作失败",
"Operation successful": "操作成功",
"Operation Type": "操作类型",
"Operations": "运维",
+ "Operator": "操作人",
"Operator Admin": "操作管理员",
"Optimize system for self-hosted single-user usage": "优化系统以适应自托管单用户使用",
"Optimized network architecture ensures millisecond response times": "优化的网络架构,确保毫秒级响应时间",
@@ -3545,6 +3588,7 @@
"Pick or create both a store and a product before saving.": "保存前请同时选择或创建店铺和产品。",
"Ping Interval (seconds)": "Ping 间隔(秒)",
"Plan": "套餐",
+ "Plan ID": "套餐 ID",
"Plan Name": "套餐名称",
"Plan Price": "套餐价格",
"Plan price must be greater than zero": "套餐价格必须大于 0",
@@ -3684,6 +3728,7 @@
"Previous": "上一步",
"Previous branch": "上一分支",
"Previous page": "上一页",
+ "Previous value": "原值",
"Price": "价格",
"Price ($/1K calls)": "价格($/1K 次)",
"Price (local currency / USD)": "价格(本地货币/美元)",
@@ -3719,6 +3764,7 @@
"Priority level from 0 (lowest) to 10 (highest), default is 5": "优先级,从 0(最低)到 10(最高),默认为 5",
"Priority order for automatic group assignment. New tokens rotate through this list.": "自动分组分配的优先级顺序。新 token 将按此列表轮换。",
"Priority order for tokens in the auto group. The system tries groups from top to bottom.": "auto 分组令牌的优先顺序。系统会从上到下依次尝试各分组。",
+ "Privacy": "隐私",
"Privacy Policy": "隐私政策",
"Private Deployment URL": "私有部署 URL",
"Processing OAuth response...": "正在处理 OAuth 响应...",
@@ -3910,6 +3956,7 @@
"Regenerate access token?": "重新生成访问令牌?",
"Regenerate Backup Codes": "重新生成备用代码",
"Regenerate token": "重新生成令牌",
+ "Regenerated two-factor backup codes": "重新生成了两步验证备用码",
"Regenerating immediately invalidates any existing token.": "重新生成会立即使所有现有令牌失效。",
"Regex": "正则",
"Regex Pattern": "正则表达式",
@@ -4043,6 +4090,7 @@
"Reset balance and used quota": "重置余额和已用配额",
"Reset completed": "重置完成",
"Reset completed. Latest usage has been refreshed.": "重置完成,已刷新最新用量。",
+ "Reset Count": "重置数量",
"Reset count:": "重置次数:",
"Reset Credit": "重置次数",
"Reset Credits": "重置次数",
@@ -4105,7 +4153,9 @@
"Review your payment details": "查看您的付款详情",
"Review your purchase details before proceeding.": "在继续之前,请审阅您的购买详情。",
"Revoke": "撤销",
+ "Revoke access token?": "撤销访问令牌?",
"Revoke session?": "撤销此会话?",
+ "Revoked the system access token": "撤销了系统访问令牌",
"Rewards will be added directly to your balance": "奖励将直接添加到您的余额",
"Rewrite callback URLs to the local server": "将回调 URL 重写到本地服务器",
"Right to Left": "从右到左",
@@ -4255,6 +4305,7 @@
"Secure & Reliable": "安全可靠",
"Secured": "已保护",
"Security": "安全",
+ "Security & Access": "安全与访问",
"Security & Limits": "安全与限制",
"Security Check": "安全验证",
"Security verification": "安全验证",
@@ -4372,6 +4423,7 @@
"Session expired!": "会话已过期!",
"Session expired?": "会话已过期?",
"Session signed out": "已退出此会话",
+ "Sessions & Access": "会话与访问",
"Set": "设置",
"Set a discount rate for a specific recharge amount threshold.": "为特定的充值金额阈值设置折扣率。",
"Set a secure password (min. 8 characters)": "设置安全密码(最少 8 个字符)",
@@ -4486,6 +4538,7 @@
"Source Endpoint": "来源端点",
"Source Field": "来源字段",
"Source Header": "来源请求头",
+ "Source ID": "来源 ID",
"Source name": "源名称",
"sources": "来源",
"Space-separated OAuth scopes": "以空格分隔的OAuth作用域",
@@ -4515,7 +4568,9 @@
"Start for free with generous limits. No credit card required.": "免费开始使用,额度充足,无需绑定信用卡。",
"Start Time": "起始时间",
"Started": "启动时间",
+ "Started two-factor authentication setup": "开始设置两步验证",
"STARTTLS": "STARTTLS",
+ "State changed": "状态已变更",
"Static page describing the platform.": "描述平台的静态页面。",
"Statistical count": "统计计数",
"Statistical quota": "统计配额",
@@ -4664,6 +4719,7 @@
"Tags": "标签",
"Take photo": "拍照",
"Take screenshot": "截图",
+ "Target": "操作对象",
"Target Endpoint": "目标端点",
"Target Field": "目标字段",
"Target Field Path": "目标字段路径",
@@ -4788,6 +4844,7 @@
"Third-party": "第三方",
"Third-party — use at your own risk": "第三方 — 风险自担",
"Third-party account bindings (read-only, managed by user in profile settings)": "第三方账户绑定(只读,由用户在个人资料设置中管理)",
+ "Third-party account bindings (read-only, managed by user in Security & Access)": "第三方账户绑定(只读,由用户在“安全与访问”中管理)",
"Third-party Payment Config": "第三方支付配置",
"Third-party plugin risk": "第三方插件风险",
"Third-party source risk": "第三方源风险",
@@ -4924,6 +4981,7 @@
"Token estimator": "Token 估算器",
"Token group": "令牌分组",
"Token has no group": "令牌未设置分组",
+ "Token identifier": "令牌标识",
"Token Limits": "令牌限制",
"Token management": "令牌管理",
"Token Management": "令牌管理",
@@ -4937,6 +4995,7 @@
"Token price for image input.": "图像输入 token 价格。",
"Token prices": "Token 价格",
"Token regenerated and copied to clipboard": "令牌已重新生成并复制到剪贴板",
+ "Token scope": "令牌范围",
"Token share by model author across the last 24 hours": "过去 24 小时内各厂商的 Token 占比",
"Token share by model author across the past few weeks": "最近几周内各厂商的 Token 占比",
"Token share by model author across the past month": "过去一个月内各厂商的 Token 占比",
@@ -4986,6 +5045,7 @@
"Top-up ratio": "充值倍率",
"Topup Amount": "充值金额",
"Total": "总计",
+ "Total {{count}} records": "共 {{count}} 条记录",
"Total Allocated": "总分配",
"Total check-ins": "累计签到",
"Total consumed": "总消耗",
@@ -5133,6 +5193,7 @@
"Updated a subscription plan": "更新了一个订阅计划",
"Updated a vendor": "更新了一个供应商",
"Updated channel {{name}} (ID: {{id}})": "更新渠道 {{name}}(ID: {{id}})",
+ "Updated channel status (ID: {{id}})": "更新渠道状态(ID: {{id}})",
"Updated daily": "每日更新",
"Updated successfully": "更新成功",
"Updated system setting {{key}}": "修改系统设置 {{key}}",
@@ -5260,6 +5321,7 @@
"User Analytics": "用户统计",
"User Consumption Ranking": "用户消耗排行",
"User Consumption Trend": "用户消耗趋势",
+ "User Count": "用户数量",
"User created successfully": "用户创建成功",
"User dashboard and quota controls.": "用户仪表板和配额控制。",
"User deleted successfully": "用户删除成功",
@@ -5354,6 +5416,7 @@
"Vidu": "Vidu",
"View": "查看",
"View all currently available models": "查看当前可用的所有模型",
+ "View audit records from user and admin roles. Root records are always excluded.": "查看 user 和 admin 角色的审计记录,始终排除 root 级别记录。",
"View channel lists and details without secrets.": "查看不含密钥的渠道列表和详情。",
"View channel secrets": "查看渠道密钥",
"View detailed information about this user including balance, usage statistics, and invitation details.": "查看此用户的详细信息,包括余额、使用统计和邀请详情。",
@@ -5363,7 +5426,9 @@
"View logs": "查看日志",
"View mode": "视图模式",
"View model statistics and charts": "查看模型统计和图表",
+ "View other accounts' audit logs": "查看其他账户审计日志",
"View Pricing": "查看定价",
+ "View scope": "查看范围",
"View the complete details for this": "查看此条",
"View the complete details for this log entry": "查看此日志条目的完整详情",
"View the complete details for this task": "查看此任务的完整详情",
diff --git a/web/src/i18n/static-keys.ts b/web/src/i18n/static-keys.ts
index f4807fa5f4..ce495676b1 100644
--- a/web/src/i18n/static-keys.ts
+++ b/web/src/i18n/static-keys.ts
@@ -552,6 +552,12 @@ export const STATIC_I18N_KEYS = [
'The model that was requested',
'The upstream channel that served the requests',
+ // Channel status audit events
+ "View other accounts' audit logs",
+ 'View audit records from user and admin roles. Root records are always excluded.',
+ 'Updated channel status (ID: {{id}})',
+ 'Batch updated channel status ({{count}}/{{total}} changed)',
+
// Misc
'Cancel',
'Status',
diff --git a/web/src/lib/__tests__/http-cache.test.ts b/web/src/lib/__tests__/http-cache.test.ts
new file mode 100644
index 0000000000..4894073694
--- /dev/null
+++ b/web/src/lib/__tests__/http-cache.test.ts
@@ -0,0 +1,78 @@
+/*
+Copyright (C) 2023-2026 QuantumNous
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU Affero General Public License as
+published by the Free Software Foundation, either version 3 of the
+License, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU Affero General Public License for more details.
+
+You should have received a copy of the GNU Affero General Public License
+along with this program. If not, see .
+
+For commercial licensing, please contact support@quantumnous.com
+*/
+import { AxiosError, type AxiosAdapter } from 'axios'
+import { afterEach, expect, it, vi } from 'vitest'
+
+import { api, getNotice } from '../api'
+
+const originalAdapter = api.defaults.adapter
+
+afterEach(() => {
+ api.defaults.adapter = originalAdapter
+ vi.restoreAllMocks()
+})
+
+it('a retry after 404 revalidates HTTP caches instead of accepting a stored error', async () => {
+ const adapter = vi
+ .fn()
+ .mockImplementationOnce(async (config) => {
+ throw new AxiosError('Not Found', 'ERR_BAD_REQUEST', config, undefined, {
+ data: { error: { message: 'Invalid URL' } },
+ status: 404,
+ statusText: 'Not Found',
+ headers: {},
+ config,
+ })
+ })
+ .mockImplementationOnce(async (config) => ({
+ data: { success: true, data: { exists: false } },
+ status: 200,
+ statusText: 'OK',
+ headers: {},
+ config,
+ }))
+ api.defaults.adapter = adapter
+ const config = { skipErrorHandler: true }
+ await expect(api.get('/api/user/token/status', config)).rejects.toMatchObject(
+ { response: { status: 404 } }
+ )
+ const response = await api.get('/api/user/token/status', config)
+ expect(response.data.data.exists).toBe(false)
+ expect(adapter).toHaveBeenCalledTimes(2)
+ for (const [request] of adapter.mock.calls) {
+ const directives = String(request.headers.get('Cache-Control'))
+ .split(',')
+ .map((value: string) => value.trim())
+ expect(directives).toContain('no-cache')
+ expect(directives).toContain('no-store')
+ }
+})
+
+it('public notices keep their existing ETag revalidation policy', async () => {
+ const adapter = vi.fn(async (config) => ({
+ data: { success: true },
+ status: 200,
+ statusText: 'OK',
+ headers: {},
+ config,
+ }))
+ api.defaults.adapter = adapter
+ await getNotice()
+ expect(adapter.mock.calls[0][0].headers.get('Cache-Control')).toBeNull()
+})
diff --git a/web/src/lib/admin-permissions.ts b/web/src/lib/admin-permissions.ts
index 4c28653ed3..b6e9ecb8e9 100644
--- a/web/src/lib/admin-permissions.ts
+++ b/web/src/lib/admin-permissions.ts
@@ -24,6 +24,7 @@ export type AdminPermissionMatrix = Record>
export type AdminCapabilities = AdminPermissionMatrix
export const ADMIN_PERMISSION_RESOURCES = {
+ AUDIT: 'audit',
CHANNEL: 'channel',
TASK_PLUGIN: 'task_plugin',
} as const
diff --git a/web/src/lib/auth-session.ts b/web/src/lib/auth-session.ts
index acc415dfb8..33916d6400 100644
--- a/web/src/lib/auth-session.ts
+++ b/web/src/lib/auth-session.ts
@@ -71,7 +71,8 @@ const authClient = axios.create({
baseURL: '',
withCredentials: true,
headers: {
- 'Cache-Control': 'no-store',
+ // no-store forbids storage; no-cache also revalidates any older cached response.
+ 'Cache-Control': 'no-cache, no-store',
},
})
diff --git a/web/src/lib/http-client.ts b/web/src/lib/http-client.ts
index 0a1269b395..f75e95df75 100644
--- a/web/src/lib/http-client.ts
+++ b/web/src/lib/http-client.ts
@@ -45,7 +45,8 @@ export const api = axios.create({
baseURL: '',
withCredentials: true,
headers: {
- 'Cache-Control': 'no-store',
+ // no-store forbids storage; no-cache also revalidates any older cached response.
+ 'Cache-Control': 'no-cache, no-store',
},
})
diff --git a/web/src/routeTree.gen.ts b/web/src/routeTree.gen.ts
index e216b885f5..5df3c24490 100644
--- a/web/src/routeTree.gen.ts
+++ b/web/src/routeTree.gen.ts
@@ -45,12 +45,14 @@ import { Route as AuthenticatedModelsSectionRouteImport } from './routes/_authen
import { Route as AuthenticatedPlaygroundIndexRouteImport } from './routes/_authenticated/playground/index'
import { Route as AuthenticatedProfileIndexRouteImport } from './routes/_authenticated/profile/index'
import { Route as AuthenticatedRedemptionCodesIndexRouteImport } from './routes/_authenticated/redemption-codes/index'
+import { Route as AuthenticatedSecurityIndexRouteImport } from './routes/_authenticated/security/index'
import { Route as AuthenticatedSubscriptionsIndexRouteImport } from './routes/_authenticated/subscriptions/index'
import { Route as AuthenticatedSystemInfoIndexRouteImport } from './routes/_authenticated/system-info/index'
import { Route as AuthenticatedSystemSettingsIndexRouteImport } from './routes/_authenticated/system-settings/index'
import { Route as AuthenticatedTaskPluginsIndexRouteImport } from './routes/_authenticated/task-plugins/index'
import { Route as AuthenticatedUsageLogsIndexRouteImport } from './routes/_authenticated/usage-logs/index'
import { Route as AuthenticatedUsageLogsSectionRouteImport } from './routes/_authenticated/usage-logs/$section'
+import { Route as AuthenticatedUsageLogsAuditRouteImport } from './routes/_authenticated/usage-logs/audit'
import { Route as AuthenticatedUsersIndexRouteImport } from './routes/_authenticated/users/index'
import { Route as AuthenticatedWalletIndexRouteImport } from './routes/_authenticated/wallet/index'
import { Route as PricingModelIdIndexRouteImport } from './routes/pricing/$modelId/index'
@@ -257,6 +259,12 @@ const AuthenticatedRedemptionCodesIndexRoute =
path: '/redemption-codes/',
getParentRoute: () => AuthenticatedRouteRoute,
} as any)
+const AuthenticatedSecurityIndexRoute =
+ AuthenticatedSecurityIndexRouteImport.update({
+ id: '/security/',
+ path: '/security/',
+ getParentRoute: () => AuthenticatedRouteRoute,
+ } as any)
const AuthenticatedSubscriptionsIndexRoute =
AuthenticatedSubscriptionsIndexRouteImport.update({
id: '/subscriptions/',
@@ -293,6 +301,12 @@ const AuthenticatedUsageLogsSectionRoute =
path: '/usage-logs/$section',
getParentRoute: () => AuthenticatedRouteRoute,
} as any)
+const AuthenticatedUsageLogsAuditRoute =
+ AuthenticatedUsageLogsAuditRouteImport.update({
+ id: '/usage-logs/audit',
+ path: '/usage-logs/audit',
+ getParentRoute: () => AuthenticatedRouteRoute,
+ } as any)
const AuthenticatedUsersIndexRoute = AuthenticatedUsersIndexRouteImport.update({
id: '/users/',
path: '/users/',
@@ -423,6 +437,7 @@ export interface FileRoutesByFullPath {
'/errors/$error': typeof AuthenticatedErrorsErrorRoute
'/models/$section': typeof AuthenticatedModelsSectionRoute
'/usage-logs/$section': typeof AuthenticatedUsageLogsSectionRoute
+ '/usage-logs/audit': typeof AuthenticatedUsageLogsAuditRoute
'/channels/': typeof AuthenticatedChannelsIndexRoute
'/dashboard/': typeof AuthenticatedDashboardIndexRoute
'/keys/': typeof AuthenticatedKeysIndexRoute
@@ -430,6 +445,7 @@ export interface FileRoutesByFullPath {
'/playground/': typeof AuthenticatedPlaygroundIndexRoute
'/profile/': typeof AuthenticatedProfileIndexRoute
'/redemption-codes/': typeof AuthenticatedRedemptionCodesIndexRoute
+ '/security/': typeof AuthenticatedSecurityIndexRoute
'/subscriptions/': typeof AuthenticatedSubscriptionsIndexRoute
'/system-info/': typeof AuthenticatedSystemInfoIndexRoute
'/system-settings/': typeof AuthenticatedSystemSettingsIndexRoute
@@ -481,6 +497,7 @@ export interface FileRoutesByTo {
'/errors/$error': typeof AuthenticatedErrorsErrorRoute
'/models/$section': typeof AuthenticatedModelsSectionRoute
'/usage-logs/$section': typeof AuthenticatedUsageLogsSectionRoute
+ '/usage-logs/audit': typeof AuthenticatedUsageLogsAuditRoute
'/channels': typeof AuthenticatedChannelsIndexRoute
'/dashboard': typeof AuthenticatedDashboardIndexRoute
'/keys': typeof AuthenticatedKeysIndexRoute
@@ -488,6 +505,7 @@ export interface FileRoutesByTo {
'/playground': typeof AuthenticatedPlaygroundIndexRoute
'/profile': typeof AuthenticatedProfileIndexRoute
'/redemption-codes': typeof AuthenticatedRedemptionCodesIndexRoute
+ '/security': typeof AuthenticatedSecurityIndexRoute
'/subscriptions': typeof AuthenticatedSubscriptionsIndexRoute
'/system-info': typeof AuthenticatedSystemInfoIndexRoute
'/system-settings': typeof AuthenticatedSystemSettingsIndexRoute
@@ -543,6 +561,7 @@ export interface FileRoutesById {
'/_authenticated/errors/$error': typeof AuthenticatedErrorsErrorRoute
'/_authenticated/models/$section': typeof AuthenticatedModelsSectionRoute
'/_authenticated/usage-logs/$section': typeof AuthenticatedUsageLogsSectionRoute
+ '/_authenticated/usage-logs/audit': typeof AuthenticatedUsageLogsAuditRoute
'/_authenticated/channels/': typeof AuthenticatedChannelsIndexRoute
'/_authenticated/dashboard/': typeof AuthenticatedDashboardIndexRoute
'/_authenticated/keys/': typeof AuthenticatedKeysIndexRoute
@@ -550,6 +569,7 @@ export interface FileRoutesById {
'/_authenticated/playground/': typeof AuthenticatedPlaygroundIndexRoute
'/_authenticated/profile/': typeof AuthenticatedProfileIndexRoute
'/_authenticated/redemption-codes/': typeof AuthenticatedRedemptionCodesIndexRoute
+ '/_authenticated/security/': typeof AuthenticatedSecurityIndexRoute
'/_authenticated/subscriptions/': typeof AuthenticatedSubscriptionsIndexRoute
'/_authenticated/system-info/': typeof AuthenticatedSystemInfoIndexRoute
'/_authenticated/system-settings/': typeof AuthenticatedSystemSettingsIndexRoute
@@ -604,6 +624,7 @@ export interface FileRouteTypes {
| '/errors/$error'
| '/models/$section'
| '/usage-logs/$section'
+ | '/usage-logs/audit'
| '/channels/'
| '/dashboard/'
| '/keys/'
@@ -611,6 +632,7 @@ export interface FileRouteTypes {
| '/playground/'
| '/profile/'
| '/redemption-codes/'
+ | '/security/'
| '/subscriptions/'
| '/system-info/'
| '/system-settings/'
@@ -662,6 +684,7 @@ export interface FileRouteTypes {
| '/errors/$error'
| '/models/$section'
| '/usage-logs/$section'
+ | '/usage-logs/audit'
| '/channels'
| '/dashboard'
| '/keys'
@@ -669,6 +692,7 @@ export interface FileRouteTypes {
| '/playground'
| '/profile'
| '/redemption-codes'
+ | '/security'
| '/subscriptions'
| '/system-info'
| '/system-settings'
@@ -723,6 +747,7 @@ export interface FileRouteTypes {
| '/_authenticated/errors/$error'
| '/_authenticated/models/$section'
| '/_authenticated/usage-logs/$section'
+ | '/_authenticated/usage-logs/audit'
| '/_authenticated/channels/'
| '/_authenticated/dashboard/'
| '/_authenticated/keys/'
@@ -730,6 +755,7 @@ export interface FileRouteTypes {
| '/_authenticated/playground/'
| '/_authenticated/profile/'
| '/_authenticated/redemption-codes/'
+ | '/_authenticated/security/'
| '/_authenticated/subscriptions/'
| '/_authenticated/system-info/'
| '/_authenticated/system-settings/'
@@ -1027,6 +1053,13 @@ declare module '@tanstack/react-router' {
preLoaderRoute: typeof AuthenticatedRedemptionCodesIndexRouteImport
parentRoute: typeof AuthenticatedRouteRoute
}
+ '/_authenticated/security/': {
+ id: '/_authenticated/security/'
+ path: '/security'
+ fullPath: '/security/'
+ preLoaderRoute: typeof AuthenticatedSecurityIndexRouteImport
+ parentRoute: typeof AuthenticatedRouteRoute
+ }
'/_authenticated/subscriptions/': {
id: '/_authenticated/subscriptions/'
path: '/subscriptions'
@@ -1069,6 +1102,13 @@ declare module '@tanstack/react-router' {
preLoaderRoute: typeof AuthenticatedUsageLogsSectionRouteImport
parentRoute: typeof AuthenticatedRouteRoute
}
+ '/_authenticated/usage-logs/audit': {
+ id: '/_authenticated/usage-logs/audit'
+ path: '/usage-logs/audit'
+ fullPath: '/usage-logs/audit'
+ preLoaderRoute: typeof AuthenticatedUsageLogsAuditRouteImport
+ parentRoute: typeof AuthenticatedRouteRoute
+ }
'/_authenticated/users/': {
id: '/_authenticated/users/'
path: '/users'
@@ -1282,6 +1322,7 @@ interface AuthenticatedRouteRouteChildren {
AuthenticatedErrorsErrorRoute: typeof AuthenticatedErrorsErrorRoute
AuthenticatedModelsSectionRoute: typeof AuthenticatedModelsSectionRoute
AuthenticatedUsageLogsSectionRoute: typeof AuthenticatedUsageLogsSectionRoute
+ AuthenticatedUsageLogsAuditRoute: typeof AuthenticatedUsageLogsAuditRoute
AuthenticatedChannelsIndexRoute: typeof AuthenticatedChannelsIndexRoute
AuthenticatedDashboardIndexRoute: typeof AuthenticatedDashboardIndexRoute
AuthenticatedKeysIndexRoute: typeof AuthenticatedKeysIndexRoute
@@ -1289,6 +1330,7 @@ interface AuthenticatedRouteRouteChildren {
AuthenticatedPlaygroundIndexRoute: typeof AuthenticatedPlaygroundIndexRoute
AuthenticatedProfileIndexRoute: typeof AuthenticatedProfileIndexRoute
AuthenticatedRedemptionCodesIndexRoute: typeof AuthenticatedRedemptionCodesIndexRoute
+ AuthenticatedSecurityIndexRoute: typeof AuthenticatedSecurityIndexRoute
AuthenticatedSubscriptionsIndexRoute: typeof AuthenticatedSubscriptionsIndexRoute
AuthenticatedSystemInfoIndexRoute: typeof AuthenticatedSystemInfoIndexRoute
AuthenticatedTaskPluginsIndexRoute: typeof AuthenticatedTaskPluginsIndexRoute
@@ -1306,6 +1348,7 @@ const AuthenticatedRouteRouteChildren: AuthenticatedRouteRouteChildren = {
AuthenticatedErrorsErrorRoute: AuthenticatedErrorsErrorRoute,
AuthenticatedModelsSectionRoute: AuthenticatedModelsSectionRoute,
AuthenticatedUsageLogsSectionRoute: AuthenticatedUsageLogsSectionRoute,
+ AuthenticatedUsageLogsAuditRoute: AuthenticatedUsageLogsAuditRoute,
AuthenticatedChannelsIndexRoute: AuthenticatedChannelsIndexRoute,
AuthenticatedDashboardIndexRoute: AuthenticatedDashboardIndexRoute,
AuthenticatedKeysIndexRoute: AuthenticatedKeysIndexRoute,
@@ -1314,6 +1357,7 @@ const AuthenticatedRouteRouteChildren: AuthenticatedRouteRouteChildren = {
AuthenticatedProfileIndexRoute: AuthenticatedProfileIndexRoute,
AuthenticatedRedemptionCodesIndexRoute:
AuthenticatedRedemptionCodesIndexRoute,
+ AuthenticatedSecurityIndexRoute: AuthenticatedSecurityIndexRoute,
AuthenticatedSubscriptionsIndexRoute: AuthenticatedSubscriptionsIndexRoute,
AuthenticatedSystemInfoIndexRoute: AuthenticatedSystemInfoIndexRoute,
AuthenticatedTaskPluginsIndexRoute: AuthenticatedTaskPluginsIndexRoute,
diff --git a/web/src/routes/_authenticated/security/index.tsx b/web/src/routes/_authenticated/security/index.tsx
new file mode 100644
index 0000000000..23a268d6aa
--- /dev/null
+++ b/web/src/routes/_authenticated/security/index.tsx
@@ -0,0 +1,25 @@
+/*
+Copyright (C) 2023-2026 QuantumNous
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU Affero General Public License as
+published by the Free Software Foundation, either version 3 of the
+License, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU Affero General Public License for more details.
+
+You should have received a copy of the GNU Affero General Public License
+along with this program. If not, see .
+
+For commercial licensing, please contact support@quantumnous.com
+*/
+import { createFileRoute } from '@tanstack/react-router'
+
+import { Security } from '@/features/security'
+
+export const Route = createFileRoute('/_authenticated/security/')({
+ component: Security,
+})
diff --git a/web/src/routes/_authenticated/usage-logs/audit.tsx b/web/src/routes/_authenticated/usage-logs/audit.tsx
new file mode 100644
index 0000000000..74e331f3a0
--- /dev/null
+++ b/web/src/routes/_authenticated/usage-logs/audit.tsx
@@ -0,0 +1,25 @@
+/*
+Copyright (C) 2023-2026 QuantumNous
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU Affero General Public License as
+published by the Free Software Foundation, either version 3 of the
+License, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU Affero General Public License for more details.
+
+You should have received a copy of the GNU Affero General Public License
+along with this program. If not, see .
+
+For commercial licensing, please contact support@quantumnous.com
+*/
+import { createFileRoute } from '@tanstack/react-router'
+
+import { AuditLogs } from '@/features/usage-logs/audit'
+
+export const Route = createFileRoute('/_authenticated/usage-logs/audit')({
+ component: AuditLogs,
+})