24 lines
564 B
TypeScript
24 lines
564 B
TypeScript
import * as plugins from '../plugins.js';
|
|
import * as authInterfaces from '../data/auth.js';
|
|
|
|
/**
|
|
* List all OpsServer users (admin-only, read-only).
|
|
* Deliberately omits password/secret fields from the response.
|
|
*/
|
|
export interface IReq_ListUsers extends plugins.typedrequestInterfaces.implementsTR<
|
|
plugins.typedrequestInterfaces.ITypedRequest,
|
|
IReq_ListUsers
|
|
> {
|
|
method: 'listUsers';
|
|
request: {
|
|
identity: authInterfaces.IIdentity;
|
|
};
|
|
response: {
|
|
users: Array<{
|
|
id: string;
|
|
username: string;
|
|
role: string;
|
|
}>;
|
|
};
|
|
}
|