import { Client } from "../_" ; /**
 * Management client
 */ export class ManagementClient extends Client { param username return public async verifyUser ( username ) { await Promise . all ( [ this . cognito . adminConfirmSignUp ( { UserPoolId : process . env . COGNITO_USER_POOL_ID ! , Username : username } ) . promise ( ) , this . cognito . adminUpdateUserAttributes ( { UserPoolId : process . env . COGNITO_USER_POOL_ID ! , Username : username , UserAttributes : [ { Name : "email_verified" , Value : "true" } ] } ) . promise ( ) ] ) ; } param username return public async deleteUser ( username ) { await this . cognito . adminDeleteUser ( { UserPoolId : process . env . COGNITO_USER_POOL_ID ! , Username : username } ) . promise ( ) ; } param username param password return public async changePassword ( username , password ) { await this . cognito . adminSetUserPassword ( { UserPoolId : process . env . COGNITO_USER_POOL_ID ! , Username : username , Password : password , Permanent : true } ) . promise ( ) ; } }