import { axiosClient } from '@/api/axiosClient'

export interface ResetPasswordResponse {
  tempPassword: string
  mustChangeOnLogin: boolean
}

export async function resetUserPassword(userId: number): Promise<ResetPasswordResponse> {
  const response = await axiosClient.post<ResetPasswordResponse>(
    `/api/v1/users/${userId}/password/reset`,
  )
  return response.data
}
