fix: fix superadmin impersonation

This commit is contained in:
Abhishek Kumar 2026-07-11 15:51:36 +05:30
parent d1339970a5
commit e405457676
16 changed files with 593 additions and 172 deletions

View file

@ -3125,8 +3125,9 @@ export type HuggingFaceSttConfiguration = {
*
* Request payload for superadmin impersonation.
*
* Either ``provider_user_id`` **or** ``user_id`` must be supplied. If both are
* provided, ``provider_user_id`` takes precedence.
* ``provider_user_id``, ``user_id``, or ``email`` may be supplied. If more
* than one is provided, ``provider_user_id`` takes precedence, followed by
* ``user_id`` and then ``email``.
*/
export type ImpersonateRequest = {
/**
@ -3137,6 +3138,10 @@ export type ImpersonateRequest = {
* User Id
*/
user_id?: number | null;
/**
* Email
*/
email?: string | null;
};
/**