mirror of
https://github.com/fawney19/Aether.git
synced 2026-10-07 01:47:47 +08:00
feat(admin-users): add plan entitlement revocation flow
This commit is contained in:
@@ -448,6 +448,16 @@ export const usersApi = {
|
||||
return response.data
|
||||
},
|
||||
|
||||
async revokeUserPlanEntitlement(
|
||||
userId: string,
|
||||
entitlementId: string
|
||||
): Promise<AdminUserPlanEntitlementsResponse> {
|
||||
const response = await apiClient.delete<AdminUserPlanEntitlementsResponse>(
|
||||
`/api/admin/users/${userId}/billing/entitlements/${entitlementId}`
|
||||
)
|
||||
return response.data
|
||||
},
|
||||
|
||||
async revokeUserSession(userId: string, sessionId: string): Promise<{ message: string }> {
|
||||
const response = await apiClient.delete<{ message: string }>(`/api/admin/users/${userId}/sessions/${sessionId}`)
|
||||
return response.data
|
||||
|
||||
Reference in New Issue
Block a user