pub mod key {
pub const PROVIDER: &str = "provider";
pub const MODEL: &str = "model";
pub const ERROR_CODE: &str = "error_code";
pub const STAGE: &str = "stage";
pub const OP: &str = "op";
pub const RESULT: &str = "result";
pub const DECISION: &str = "decision";
pub const PERIOD: &str = "period";
pub const REASON: &str = "reason";
pub const TRIGGER: &str = "trigger";
pub const KIND: &str = "kind";
pub const TIER: &str = "tier";
pub const RESOURCE_TYPE: &str = "resource_type";
#[allow(dead_code)] pub const STATE: &str = "state";
}
pub mod op {
pub const RETRY: &str = "retry";
pub const EDIT: &str = "edit";
pub const DELETE: &str = "delete";
}
pub mod result {
pub const OK: &str = "ok";
pub const NOT_LATEST: &str = "not_latest";
pub const INVALID_STATE: &str = "invalid_state";
pub const FORBIDDEN: &str = "forbidden";
pub const GENERATION_IN_PROGRESS: &str = "generation_in_progress";
pub const ERROR: &str = "error";
pub const RETRY: &str = "retry";
pub const REJECT: &str = "reject";
}
pub mod decision {
pub const ALLOW: &str = "allow";
pub const DOWNGRADE: &str = "downgrade";
pub const REJECT: &str = "reject";
}
pub mod period {
pub const DAILY: &str = "daily";
pub const MONTHLY: &str = "monthly";
}
pub mod stage {
pub const BEFORE_FIRST_TOKEN: &str = "before_first_token";
pub const MID_STREAM: &str = "mid_stream";
}
pub mod kind {
pub const DOCUMENT: &str = "document";
pub const IMAGE: &str = "image";
}
pub mod upload_result {
pub const OK: &str = "ok";
#[allow(dead_code)] pub const FILE_TOO_LARGE: &str = "file_too_large";
#[allow(dead_code)] pub const UNSUPPORTED_TYPE: &str = "unsupported_type";
pub const PROVIDER_ERROR: &str = "provider_error";
pub const STORAGE_LIMIT_EXCEEDED: &str = "storage_limit_exceeded";
pub const CONCURRENCY_LIMIT: &str = "concurrency_limit";
}
pub mod resource_type {
pub const FILE: &str = "file";
pub const VECTOR_STORE: &str = "vector_store";
}
pub mod cleanup_state {
#[allow(dead_code)] pub const PENDING: &str = "pending";
#[allow(dead_code)] pub const FAILED: &str = "failed";
}
pub mod reason {
#[allow(dead_code)] pub const STALE_PROGRESS: &str = "stale_progress";
}
pub mod trigger {
#[allow(dead_code)] pub const USER_STOP: &str = "user_stop";
pub const DISCONNECT: &str = "disconnect";
#[allow(dead_code)] pub const TIMEOUT: &str = "timeout";
pub const CLIENT_DISCONNECT: &str = "client_disconnect";
pub const ORPHAN_TIMEOUT: &str = "orphan_timeout";
pub const INTERNAL_ABORT: &str = "internal_abort";
}