import * as plugins from '../plugins.ts';
import * as data from '../data/index.ts';

export interface IReq_AdminLogin extends plugins.typedrequestInterfaces.implementsTR<
  plugins.typedrequestInterfaces.ITypedRequest,
  IReq_AdminLogin
> {
  method: 'adminLogin';
  request: {
    username: string;
    password: string;
  };
  response: {
    identity?: data.IIdentity;
  };
}

export interface IReq_AdminLogout extends plugins.typedrequestInterfaces.implementsTR<
  plugins.typedrequestInterfaces.ITypedRequest,
  IReq_AdminLogout
> {
  method: 'adminLogout';
  request: {
    identity: data.IIdentity;
  };
  response: {
    ok: boolean;
  };
}

export interface IReq_VerifyIdentity extends plugins.typedrequestInterfaces.implementsTR<
  plugins.typedrequestInterfaces.ITypedRequest,
  IReq_VerifyIdentity
> {
  method: 'verifyIdentity';
  request: {
    identity: data.IIdentity;
  };
  response: {
    valid: boolean;
    identity?: data.IIdentity;
  };
}
