feat(16.3-01): account token API with OpenAPI and phrase keys

- Add list/create/revoke/scopes handlers, validation, and soft revoke
- Regenerate admin OpenAPI and TS types; inventory and conformance cases
- Add server-side api_tokens phrase keys (en/pl)

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-10-11 01:51:11 +02:00
parent 183583e0e9
commit ffdb5d00ca
13 changed files with 1430 additions and 49 deletions

View File

@@ -231,6 +231,16 @@ permissioneditor:
locked: You cannot change this permission.
empty: No permissions are defined yet.
other: Other
api_tokens:
scope_all: Full access
scope_all_description: Everything you can do in the admin. Your account settings and tokens still need a signed-in session.
scope_admin_read: Read-only, whole admin
scope_admin_read_description: View everything you can see in the admin, without making changes.
name_required: Enter a name for the token.
name_too_long: The name may have at most 100 characters.
expires_invalid: Choose a valid expiry.
scopes_required: Choose at least one scope.
scope_unavailable: The scope :name is not available to you.
myaccount:
menu_label: My account
menu_description: Edit your name, email, subtitle and password.

View File

@@ -253,6 +253,16 @@ permissioneditor:
locked: Nie możesz zmienić tego uprawnienia.
empty: Nie zdefiniowano jeszcze żadnych uprawnień.
other: Inne
api_tokens:
scope_all: Pełny dostęp
scope_all_description: Wszystko, co możesz zrobić w panelu. Ustawienia konta i tokeny nadal wymagają zalogowania.
scope_admin_read: Tylko odczyt, cały panel
scope_admin_read_description: Podgląd wszystkiego, co widzisz w panelu, bez wprowadzania zmian.
name_required: Podaj nazwę tokenu.
name_too_long: Nazwa może mieć najwyżej 100 znaków.
expires_invalid: Wybierz poprawny termin ważności.
scopes_required: Wybierz co najmniej jeden zakres.
scope_unavailable: Zakres :name nie jest dla Ciebie dostępny.
myaccount:
menu_label: Moje konto
menu_description: Zmień imię, nazwisko, e-mail, podtytuł i hasło.