mirror of
https://github.com/wassname/Open-Assistant.git
synced 2026-07-27 11:18:29 +08:00
Merge branch 'main' into 766_admin_enhancement
This commit is contained in:
@@ -164,6 +164,27 @@ export class OasstApiClient {
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the tasks availability information for given `user`.
|
||||
*/
|
||||
async fetch_tasks_availability(user: object): Promise<any> {
|
||||
return this.post("/api/v1/tasks/availability", user);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the message stats from the backend.
|
||||
*/
|
||||
async fetch_stats(): Promise<any> {
|
||||
return this.get("/api/v1/stats/");
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the tree manager stats from the backend.
|
||||
*/
|
||||
async fetch_tree_manager(): Promise<any> {
|
||||
return this.get("/api/v1/stats/tree_manager");
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the `BackendUser` associated with `user_id`
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user