mirror of
https://github.com/fawney19/Aether.git
synced 2026-10-10 19:29:50 +08:00
Merge remote-tracking branch 'upstream/aether-rust-pioneer' into codex/user-groups-default-permissions
This commit is contained in:
@@ -76,6 +76,14 @@ impl<'a> AdminAppState<'a> {
|
||||
self.app.has_gemini_file_mapping_data_writer()
|
||||
}
|
||||
|
||||
pub(crate) fn has_background_task_data_reader(&self) -> bool {
|
||||
self.app.has_background_task_data_reader()
|
||||
}
|
||||
|
||||
pub(crate) fn has_background_task_data_writer(&self) -> bool {
|
||||
self.app.has_background_task_data_writer()
|
||||
}
|
||||
|
||||
pub(crate) fn has_auth_api_key_data_reader(&self) -> bool {
|
||||
self.app.has_auth_api_key_data_reader()
|
||||
}
|
||||
|
||||
@@ -2,6 +2,59 @@ use super::{AdminAppState, AdminCancelVideoTaskError};
|
||||
use crate::GatewayError;
|
||||
|
||||
impl<'a> AdminAppState<'a> {
|
||||
pub(crate) async fn list_background_task_runs(
|
||||
&self,
|
||||
query: &aether_data_contracts::repository::background_tasks::BackgroundTaskListQuery,
|
||||
) -> Result<
|
||||
aether_data_contracts::repository::background_tasks::StoredBackgroundTaskRunPage,
|
||||
GatewayError,
|
||||
> {
|
||||
self.app.list_background_task_runs(query).await
|
||||
}
|
||||
|
||||
pub(crate) async fn find_background_task_run(
|
||||
&self,
|
||||
run_id: &str,
|
||||
) -> Result<
|
||||
Option<aether_data_contracts::repository::background_tasks::StoredBackgroundTaskRun>,
|
||||
GatewayError,
|
||||
> {
|
||||
self.app.find_background_task_run(run_id).await
|
||||
}
|
||||
|
||||
pub(crate) async fn list_background_task_events(
|
||||
&self,
|
||||
run_id: &str,
|
||||
offset: usize,
|
||||
limit: usize,
|
||||
) -> Result<
|
||||
Vec<aether_data_contracts::repository::background_tasks::StoredBackgroundTaskEvent>,
|
||||
GatewayError,
|
||||
> {
|
||||
self.app
|
||||
.list_background_task_events(run_id, offset, limit)
|
||||
.await
|
||||
}
|
||||
|
||||
pub(crate) async fn summarize_background_task_runs(
|
||||
&self,
|
||||
) -> Result<
|
||||
aether_data_contracts::repository::background_tasks::BackgroundTaskSummary,
|
||||
GatewayError,
|
||||
> {
|
||||
self.app.summarize_background_task_runs().await
|
||||
}
|
||||
|
||||
pub(crate) async fn request_cancel_background_task_run(
|
||||
&self,
|
||||
run_id: &str,
|
||||
updated_at_unix_secs: u64,
|
||||
) -> Result<bool, GatewayError> {
|
||||
self.app
|
||||
.request_cancel_background_task_run(run_id, updated_at_unix_secs)
|
||||
.await
|
||||
}
|
||||
|
||||
pub(crate) async fn list_gemini_file_mappings(
|
||||
&self,
|
||||
query: &aether_data::repository::gemini_file_mappings::GeminiFileMappingListQuery,
|
||||
|
||||
Reference in New Issue
Block a user