Add a danger-themed reset button next to the existing copy/eye buttons on the API Info settings page. Confirmation dialog warns that the old key is revoked immediately; on success the new plaintext key replaces the displayed value and is auto-revealed so the user can copy it. Backend: new POST /api/v1/tenants/:id/api-key handler that wraps the existing TenantService.UpdateAPIKey; access is gated by the same authorizeTenantAccess check as other tenant endpoints. The handler returns the freshly generated plaintext key, while the encrypted form is persisted to the database. Frontend: new resetTenantApiKey API client, reset button + confirm dialog wiring in ApiInfo.vue, plus matching i18n entries for zh-CN, en-US, ko-KR, and ru-RU. |
||
|---|---|---|
| .. | ||
| agent | ||
| application | ||
| assets | ||
| common | ||
| config | ||
| container | ||
| database | ||
| datasource | ||
| errors | ||
| event | ||
| handler | ||
| im | ||
| infrastructure | ||
| logger | ||
| mcp | ||
| middleware | ||
| models | ||
| router | ||
| runtime | ||
| sandbox | ||
| searchutil | ||
| stream | ||
| tracing | ||
| types | ||
| utils | ||