pub struct DocumentsResource<'a> { /* private fields */ }Implementations§
Source§impl<'a> DocumentsResource<'a>
impl<'a> DocumentsResource<'a>
Sourcepub async fn list(&self) -> Result<ListDocumentsResponse>
pub async fn list(&self) -> Result<ListDocumentsResponse>
GET /api/v1/documents
Sourcepub async fn get(&self, id: &str) -> Result<DocumentSummary>
pub async fn get(&self, id: &str) -> Result<DocumentSummary>
GET /api/v1/documents/{id}
Sourcepub async fn status(&self, id: &str) -> Result<TrackStatusResponse>
pub async fn status(&self, id: &str) -> Result<TrackStatusResponse>
GET /api/v1/documents/{id}/status
Sourcepub async fn upload_text(&self, body: &Value) -> Result<UploadDocumentResponse>
pub async fn upload_text(&self, body: &Value) -> Result<UploadDocumentResponse>
POST /api/v1/documents/upload/text
Sourcepub async fn scan(&self, req: &ScanRequest) -> Result<ScanResponse>
pub async fn scan(&self, req: &ScanRequest) -> Result<ScanResponse>
POST /api/v1/documents/scan
Sourcepub async fn deletion_impact(&self, id: &str) -> Result<DeletionImpactResponse>
pub async fn deletion_impact(&self, id: &str) -> Result<DeletionImpactResponse>
GET /api/v1/documents/{id}/deletion-impact
Sourcepub async fn track(&self, track_id: &str) -> Result<TrackStatusResponse>
pub async fn track(&self, track_id: &str) -> Result<TrackStatusResponse>
GET /api/v1/documents/track/{track_id}
Sourcepub async fn get_lineage(&self, id: &str) -> Result<DocumentFullLineage>
pub async fn get_lineage(&self, id: &str) -> Result<DocumentFullLineage>
GET /api/v1/documents/{id}/lineage
Returns complete document lineage (persisted pipeline lineage + metadata). @implements F5 — Single API call retrieves complete lineage tree.
Sourcepub async fn get_metadata(&self, id: &str) -> Result<Value>
pub async fn get_metadata(&self, id: &str) -> Result<Value>
GET /api/v1/documents/{id}/metadata
Returns all document metadata stored in KV storage. @implements F1 — All document metadata retrievable.
Sourcepub async fn delete_all(&self) -> Result<Value>
pub async fn delete_all(&self) -> Result<Value>
DELETE /api/v1/documents — Delete all documents in workspace.
Sourcepub async fn reprocess(&self) -> Result<Value>
pub async fn reprocess(&self) -> Result<Value>
POST /api/v1/documents/reprocess — Retry all failed documents.
Sourcepub async fn recover_stuck(&self) -> Result<Value>
pub async fn recover_stuck(&self) -> Result<Value>
POST /api/v1/documents/recover-stuck — Recover stuck processing docs.
Sourcepub async fn retry_chunks(&self, id: &str) -> Result<Value>
pub async fn retry_chunks(&self, id: &str) -> Result<Value>
POST /api/v1/documents/{id}/retry-chunks — Retry failed chunks for a document.