fix: restore missing doc comments on aphoria DTOs (build failure)
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
04ed854954
commit
0fa7cfdf9b
@ -32,39 +32,56 @@ pub struct HostedClient {
|
|||||||
/// Request payload for pushing observations (team storage).
|
/// Request payload for pushing observations (team storage).
|
||||||
#[derive(Debug, Clone, Serialize)]
|
#[derive(Debug, Clone, Serialize)]
|
||||||
pub struct PushObservationsRequest {
|
pub struct PushObservationsRequest {
|
||||||
|
/// Batch of observations to store.
|
||||||
pub observations: Vec<ObservationDto>,
|
pub observations: Vec<ObservationDto>,
|
||||||
|
/// Project identifier.
|
||||||
pub project_id: String,
|
pub project_id: String,
|
||||||
|
/// Optional team scope.
|
||||||
#[serde(skip_serializing_if = "Option::is_none")]
|
#[serde(skip_serializing_if = "Option::is_none")]
|
||||||
pub team_id: Option<String>,
|
pub team_id: Option<String>,
|
||||||
|
/// Aphoria client version string.
|
||||||
pub client_version: String,
|
pub client_version: String,
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Request payload for pushing community observations (corpus aggregation).
|
/// Request payload for pushing community observations (corpus aggregation).
|
||||||
#[derive(Debug, Clone, Serialize)]
|
#[derive(Debug, Clone, Serialize)]
|
||||||
pub struct PushCommunityObservationsRequest {
|
pub struct PushCommunityObservationsRequest {
|
||||||
|
/// Batch of anonymized community observations.
|
||||||
pub observations: Vec<CommunityObservationDto>,
|
pub observations: Vec<CommunityObservationDto>,
|
||||||
/// BLAKE3 hash of project name (prevents name leakage).
|
/// BLAKE3 hash of project name (prevents name leakage).
|
||||||
pub project_hash: String,
|
pub project_hash: String,
|
||||||
|
/// Aphoria client version string.
|
||||||
pub client_version: String,
|
pub client_version: String,
|
||||||
}
|
}
|
||||||
|
/// Response from community observation push.
|
||||||
#[derive(Debug, Clone, Deserialize)]
|
#[derive(Debug, Clone, Deserialize)]
|
||||||
pub struct PushCommunityObservationsResponse {
|
pub struct PushCommunityObservationsResponse {
|
||||||
|
/// Number of observations recorded.
|
||||||
pub recorded: usize,
|
pub recorded: usize,
|
||||||
|
/// New patterns detected.
|
||||||
pub new_patterns: usize,
|
pub new_patterns: usize,
|
||||||
|
/// Existing patterns updated.
|
||||||
pub updated_patterns: usize,
|
pub updated_patterns: usize,
|
||||||
}
|
}
|
||||||
|
|
||||||
/// A single observation in the request (team storage).
|
/// A single observation in the request (team storage).
|
||||||
#[derive(Debug, Clone, Serialize)]
|
#[derive(Debug, Clone, Serialize)]
|
||||||
pub struct ObservationDto {
|
pub struct ObservationDto {
|
||||||
|
/// Subject path (e.g., `code://rust/stemedb-core/imports/tokio`).
|
||||||
pub subject: String,
|
pub subject: String,
|
||||||
|
/// Predicate name (e.g., "imported", "enabled").
|
||||||
pub predicate: String,
|
pub predicate: String,
|
||||||
|
/// Extracted value.
|
||||||
pub object: ObjectValueDto,
|
pub object: ObjectValueDto,
|
||||||
|
/// Extraction confidence (0.0 to 1.0).
|
||||||
pub confidence: f32,
|
pub confidence: f32,
|
||||||
|
/// BLAKE3 hash of source file content.
|
||||||
pub source_hash: String,
|
pub source_hash: String,
|
||||||
|
/// Ed25519 signatures for provenance.
|
||||||
pub signatures: Vec<SignatureDto>,
|
pub signatures: Vec<SignatureDto>,
|
||||||
|
/// Unix timestamp (ms).
|
||||||
pub timestamp: u64,
|
pub timestamp: u64,
|
||||||
|
/// Optional extraction source metadata.
|
||||||
#[serde(skip_serializing_if = "Option::is_none")]
|
#[serde(skip_serializing_if = "Option::is_none")]
|
||||||
pub source_metadata: Option<String>,
|
pub source_metadata: Option<String>,
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user